api.go 401 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package opsworks provides a client for AWS OpsWorks.
  3. package opsworks
  4. import (
  5. "fmt"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. "github.com/aws/aws-sdk-go/private/protocol"
  9. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  10. )
  11. const opAssignInstance = "AssignInstance"
  12. // AssignInstanceRequest generates a "aws/request.Request" representing the
  13. // client's request for the AssignInstance operation. The "output" return
  14. // value can be used to capture response data after the request's "Send" method
  15. // is called.
  16. //
  17. // See AssignInstance for usage and error information.
  18. //
  19. // Creating a request object using this method should be used when you want to inject
  20. // custom logic into the request's lifecycle using a custom handler, or if you want to
  21. // access properties on the request object before or after sending the request. If
  22. // you just want the service response, call the AssignInstance method directly
  23. // instead.
  24. //
  25. // Note: You must call the "Send" method on the returned request object in order
  26. // to execute the request.
  27. //
  28. // // Example sending a request using the AssignInstanceRequest method.
  29. // req, resp := client.AssignInstanceRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *request.Request, output *AssignInstanceOutput) {
  37. op := &request.Operation{
  38. Name: opAssignInstance,
  39. HTTPMethod: "POST",
  40. HTTPPath: "/",
  41. }
  42. if input == nil {
  43. input = &AssignInstanceInput{}
  44. }
  45. req = c.newRequest(op, input, output)
  46. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  47. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  48. output = &AssignInstanceOutput{}
  49. req.Data = output
  50. return
  51. }
  52. // AssignInstance API operation for AWS OpsWorks.
  53. //
  54. // Assign a registered instance to a layer.
  55. //
  56. // * You can assign registered on-premises instances to any layer type.
  57. //
  58. // * You can assign registered Amazon EC2 instances only to custom layers.
  59. //
  60. // * You cannot use this action with instances that were created with AWS
  61. // OpsWorks.
  62. //
  63. // Required Permissions: To use this action, an AWS Identity and Access Management
  64. // (IAM) user must have a Manage permissions level for the stack or an attached
  65. // policy that explicitly grants permissions. For more information on user permissions,
  66. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  67. //
  68. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  69. // with awserr.Error's Code and Message methods to get detailed information about
  70. // the error.
  71. //
  72. // See the AWS API reference guide for AWS OpsWorks's
  73. // API operation AssignInstance for usage and error information.
  74. //
  75. // Returned Error Codes:
  76. // * ValidationException
  77. // Indicates that a request was not valid.
  78. //
  79. // * ResourceNotFoundException
  80. // Indicates that a resource was not found.
  81. //
  82. func (c *OpsWorks) AssignInstance(input *AssignInstanceInput) (*AssignInstanceOutput, error) {
  83. req, out := c.AssignInstanceRequest(input)
  84. err := req.Send()
  85. return out, err
  86. }
  87. const opAssignVolume = "AssignVolume"
  88. // AssignVolumeRequest generates a "aws/request.Request" representing the
  89. // client's request for the AssignVolume operation. The "output" return
  90. // value can be used to capture response data after the request's "Send" method
  91. // is called.
  92. //
  93. // See AssignVolume for usage and error information.
  94. //
  95. // Creating a request object using this method should be used when you want to inject
  96. // custom logic into the request's lifecycle using a custom handler, or if you want to
  97. // access properties on the request object before or after sending the request. If
  98. // you just want the service response, call the AssignVolume method directly
  99. // instead.
  100. //
  101. // Note: You must call the "Send" method on the returned request object in order
  102. // to execute the request.
  103. //
  104. // // Example sending a request using the AssignVolumeRequest method.
  105. // req, resp := client.AssignVolumeRequest(params)
  106. //
  107. // err := req.Send()
  108. // if err == nil { // resp is now filled
  109. // fmt.Println(resp)
  110. // }
  111. //
  112. func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.Request, output *AssignVolumeOutput) {
  113. op := &request.Operation{
  114. Name: opAssignVolume,
  115. HTTPMethod: "POST",
  116. HTTPPath: "/",
  117. }
  118. if input == nil {
  119. input = &AssignVolumeInput{}
  120. }
  121. req = c.newRequest(op, input, output)
  122. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  123. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  124. output = &AssignVolumeOutput{}
  125. req.Data = output
  126. return
  127. }
  128. // AssignVolume API operation for AWS OpsWorks.
  129. //
  130. // Assigns one of the stack's registered Amazon EBS volumes to a specified instance.
  131. // The volume must first be registered with the stack by calling RegisterVolume.
  132. // After you register the volume, you must call UpdateVolume to specify a mount
  133. // point before calling AssignVolume. For more information, see Resource Management
  134. // (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  135. //
  136. // Required Permissions: To use this action, an IAM user must have a Manage
  137. // permissions level for the stack, or an attached policy that explicitly grants
  138. // permissions. For more information on user permissions, see Managing User
  139. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  140. //
  141. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  142. // with awserr.Error's Code and Message methods to get detailed information about
  143. // the error.
  144. //
  145. // See the AWS API reference guide for AWS OpsWorks's
  146. // API operation AssignVolume for usage and error information.
  147. //
  148. // Returned Error Codes:
  149. // * ValidationException
  150. // Indicates that a request was not valid.
  151. //
  152. // * ResourceNotFoundException
  153. // Indicates that a resource was not found.
  154. //
  155. func (c *OpsWorks) AssignVolume(input *AssignVolumeInput) (*AssignVolumeOutput, error) {
  156. req, out := c.AssignVolumeRequest(input)
  157. err := req.Send()
  158. return out, err
  159. }
  160. const opAssociateElasticIp = "AssociateElasticIp"
  161. // AssociateElasticIpRequest generates a "aws/request.Request" representing the
  162. // client's request for the AssociateElasticIp operation. The "output" return
  163. // value can be used to capture response data after the request's "Send" method
  164. // is called.
  165. //
  166. // See AssociateElasticIp for usage and error information.
  167. //
  168. // Creating a request object using this method should be used when you want to inject
  169. // custom logic into the request's lifecycle using a custom handler, or if you want to
  170. // access properties on the request object before or after sending the request. If
  171. // you just want the service response, call the AssociateElasticIp method directly
  172. // instead.
  173. //
  174. // Note: You must call the "Send" method on the returned request object in order
  175. // to execute the request.
  176. //
  177. // // Example sending a request using the AssociateElasticIpRequest method.
  178. // req, resp := client.AssociateElasticIpRequest(params)
  179. //
  180. // err := req.Send()
  181. // if err == nil { // resp is now filled
  182. // fmt.Println(resp)
  183. // }
  184. //
  185. func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (req *request.Request, output *AssociateElasticIpOutput) {
  186. op := &request.Operation{
  187. Name: opAssociateElasticIp,
  188. HTTPMethod: "POST",
  189. HTTPPath: "/",
  190. }
  191. if input == nil {
  192. input = &AssociateElasticIpInput{}
  193. }
  194. req = c.newRequest(op, input, output)
  195. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  196. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  197. output = &AssociateElasticIpOutput{}
  198. req.Data = output
  199. return
  200. }
  201. // AssociateElasticIp API operation for AWS OpsWorks.
  202. //
  203. // Associates one of the stack's registered Elastic IP addresses with a specified
  204. // instance. The address must first be registered with the stack by calling
  205. // RegisterElasticIp. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  206. //
  207. // Required Permissions: To use this action, an IAM user must have a Manage
  208. // permissions level for the stack, or an attached policy that explicitly grants
  209. // permissions. For more information on user permissions, see Managing User
  210. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  211. //
  212. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  213. // with awserr.Error's Code and Message methods to get detailed information about
  214. // the error.
  215. //
  216. // See the AWS API reference guide for AWS OpsWorks's
  217. // API operation AssociateElasticIp for usage and error information.
  218. //
  219. // Returned Error Codes:
  220. // * ValidationException
  221. // Indicates that a request was not valid.
  222. //
  223. // * ResourceNotFoundException
  224. // Indicates that a resource was not found.
  225. //
  226. func (c *OpsWorks) AssociateElasticIp(input *AssociateElasticIpInput) (*AssociateElasticIpOutput, error) {
  227. req, out := c.AssociateElasticIpRequest(input)
  228. err := req.Send()
  229. return out, err
  230. }
  231. const opAttachElasticLoadBalancer = "AttachElasticLoadBalancer"
  232. // AttachElasticLoadBalancerRequest generates a "aws/request.Request" representing the
  233. // client's request for the AttachElasticLoadBalancer operation. The "output" return
  234. // value can be used to capture response data after the request's "Send" method
  235. // is called.
  236. //
  237. // See AttachElasticLoadBalancer for usage and error information.
  238. //
  239. // Creating a request object using this method should be used when you want to inject
  240. // custom logic into the request's lifecycle using a custom handler, or if you want to
  241. // access properties on the request object before or after sending the request. If
  242. // you just want the service response, call the AttachElasticLoadBalancer method directly
  243. // instead.
  244. //
  245. // Note: You must call the "Send" method on the returned request object in order
  246. // to execute the request.
  247. //
  248. // // Example sending a request using the AttachElasticLoadBalancerRequest method.
  249. // req, resp := client.AttachElasticLoadBalancerRequest(params)
  250. //
  251. // err := req.Send()
  252. // if err == nil { // resp is now filled
  253. // fmt.Println(resp)
  254. // }
  255. //
  256. func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBalancerInput) (req *request.Request, output *AttachElasticLoadBalancerOutput) {
  257. op := &request.Operation{
  258. Name: opAttachElasticLoadBalancer,
  259. HTTPMethod: "POST",
  260. HTTPPath: "/",
  261. }
  262. if input == nil {
  263. input = &AttachElasticLoadBalancerInput{}
  264. }
  265. req = c.newRequest(op, input, output)
  266. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  267. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  268. output = &AttachElasticLoadBalancerOutput{}
  269. req.Data = output
  270. return
  271. }
  272. // AttachElasticLoadBalancer API operation for AWS OpsWorks.
  273. //
  274. // Attaches an Elastic Load Balancing load balancer to a specified layer. For
  275. // more information, see Elastic Load Balancing (http://docs.aws.amazon.com/opsworks/latest/userguide/load-balancer-elb.html).
  276. //
  277. // You must create the Elastic Load Balancing instance separately, by using
  278. // the Elastic Load Balancing console, API, or CLI. For more information, see
  279. // Elastic Load Balancing Developer Guide (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/Welcome.html).
  280. //
  281. // Required Permissions: To use this action, an IAM user must have a Manage
  282. // permissions level for the stack, or an attached policy that explicitly grants
  283. // permissions. For more information on user permissions, see Managing User
  284. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  285. //
  286. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  287. // with awserr.Error's Code and Message methods to get detailed information about
  288. // the error.
  289. //
  290. // See the AWS API reference guide for AWS OpsWorks's
  291. // API operation AttachElasticLoadBalancer for usage and error information.
  292. //
  293. // Returned Error Codes:
  294. // * ValidationException
  295. // Indicates that a request was not valid.
  296. //
  297. // * ResourceNotFoundException
  298. // Indicates that a resource was not found.
  299. //
  300. func (c *OpsWorks) AttachElasticLoadBalancer(input *AttachElasticLoadBalancerInput) (*AttachElasticLoadBalancerOutput, error) {
  301. req, out := c.AttachElasticLoadBalancerRequest(input)
  302. err := req.Send()
  303. return out, err
  304. }
  305. const opCloneStack = "CloneStack"
  306. // CloneStackRequest generates a "aws/request.Request" representing the
  307. // client's request for the CloneStack operation. The "output" return
  308. // value can be used to capture response data after the request's "Send" method
  309. // is called.
  310. //
  311. // See CloneStack for usage and error information.
  312. //
  313. // Creating a request object using this method should be used when you want to inject
  314. // custom logic into the request's lifecycle using a custom handler, or if you want to
  315. // access properties on the request object before or after sending the request. If
  316. // you just want the service response, call the CloneStack method directly
  317. // instead.
  318. //
  319. // Note: You must call the "Send" method on the returned request object in order
  320. // to execute the request.
  321. //
  322. // // Example sending a request using the CloneStackRequest method.
  323. // req, resp := client.CloneStackRequest(params)
  324. //
  325. // err := req.Send()
  326. // if err == nil { // resp is now filled
  327. // fmt.Println(resp)
  328. // }
  329. //
  330. func (c *OpsWorks) CloneStackRequest(input *CloneStackInput) (req *request.Request, output *CloneStackOutput) {
  331. op := &request.Operation{
  332. Name: opCloneStack,
  333. HTTPMethod: "POST",
  334. HTTPPath: "/",
  335. }
  336. if input == nil {
  337. input = &CloneStackInput{}
  338. }
  339. req = c.newRequest(op, input, output)
  340. output = &CloneStackOutput{}
  341. req.Data = output
  342. return
  343. }
  344. // CloneStack API operation for AWS OpsWorks.
  345. //
  346. // Creates a clone of a specified stack. For more information, see Clone a Stack
  347. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-cloning.html).
  348. // By default, all parameters are set to the values used by the parent stack.
  349. //
  350. // Required Permissions: To use this action, an IAM user must have an attached
  351. // policy that explicitly grants permissions. For more information on user permissions,
  352. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  353. //
  354. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  355. // with awserr.Error's Code and Message methods to get detailed information about
  356. // the error.
  357. //
  358. // See the AWS API reference guide for AWS OpsWorks's
  359. // API operation CloneStack for usage and error information.
  360. //
  361. // Returned Error Codes:
  362. // * ValidationException
  363. // Indicates that a request was not valid.
  364. //
  365. // * ResourceNotFoundException
  366. // Indicates that a resource was not found.
  367. //
  368. func (c *OpsWorks) CloneStack(input *CloneStackInput) (*CloneStackOutput, error) {
  369. req, out := c.CloneStackRequest(input)
  370. err := req.Send()
  371. return out, err
  372. }
  373. const opCreateApp = "CreateApp"
  374. // CreateAppRequest generates a "aws/request.Request" representing the
  375. // client's request for the CreateApp operation. The "output" return
  376. // value can be used to capture response data after the request's "Send" method
  377. // is called.
  378. //
  379. // See CreateApp for usage and error information.
  380. //
  381. // Creating a request object using this method should be used when you want to inject
  382. // custom logic into the request's lifecycle using a custom handler, or if you want to
  383. // access properties on the request object before or after sending the request. If
  384. // you just want the service response, call the CreateApp method directly
  385. // instead.
  386. //
  387. // Note: You must call the "Send" method on the returned request object in order
  388. // to execute the request.
  389. //
  390. // // Example sending a request using the CreateAppRequest method.
  391. // req, resp := client.CreateAppRequest(params)
  392. //
  393. // err := req.Send()
  394. // if err == nil { // resp is now filled
  395. // fmt.Println(resp)
  396. // }
  397. //
  398. func (c *OpsWorks) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) {
  399. op := &request.Operation{
  400. Name: opCreateApp,
  401. HTTPMethod: "POST",
  402. HTTPPath: "/",
  403. }
  404. if input == nil {
  405. input = &CreateAppInput{}
  406. }
  407. req = c.newRequest(op, input, output)
  408. output = &CreateAppOutput{}
  409. req.Data = output
  410. return
  411. }
  412. // CreateApp API operation for AWS OpsWorks.
  413. //
  414. // Creates an app for a specified stack. For more information, see Creating
  415. // Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html).
  416. //
  417. // Required Permissions: To use this action, an IAM user must have a Manage
  418. // permissions level for the stack, or an attached policy that explicitly grants
  419. // permissions. For more information on user permissions, see Managing User
  420. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  421. //
  422. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  423. // with awserr.Error's Code and Message methods to get detailed information about
  424. // the error.
  425. //
  426. // See the AWS API reference guide for AWS OpsWorks's
  427. // API operation CreateApp for usage and error information.
  428. //
  429. // Returned Error Codes:
  430. // * ValidationException
  431. // Indicates that a request was not valid.
  432. //
  433. // * ResourceNotFoundException
  434. // Indicates that a resource was not found.
  435. //
  436. func (c *OpsWorks) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) {
  437. req, out := c.CreateAppRequest(input)
  438. err := req.Send()
  439. return out, err
  440. }
  441. const opCreateDeployment = "CreateDeployment"
  442. // CreateDeploymentRequest generates a "aws/request.Request" representing the
  443. // client's request for the CreateDeployment operation. The "output" return
  444. // value can be used to capture response data after the request's "Send" method
  445. // is called.
  446. //
  447. // See CreateDeployment for usage and error information.
  448. //
  449. // Creating a request object using this method should be used when you want to inject
  450. // custom logic into the request's lifecycle using a custom handler, or if you want to
  451. // access properties on the request object before or after sending the request. If
  452. // you just want the service response, call the CreateDeployment method directly
  453. // instead.
  454. //
  455. // Note: You must call the "Send" method on the returned request object in order
  456. // to execute the request.
  457. //
  458. // // Example sending a request using the CreateDeploymentRequest method.
  459. // req, resp := client.CreateDeploymentRequest(params)
  460. //
  461. // err := req.Send()
  462. // if err == nil { // resp is now filled
  463. // fmt.Println(resp)
  464. // }
  465. //
  466. func (c *OpsWorks) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) {
  467. op := &request.Operation{
  468. Name: opCreateDeployment,
  469. HTTPMethod: "POST",
  470. HTTPPath: "/",
  471. }
  472. if input == nil {
  473. input = &CreateDeploymentInput{}
  474. }
  475. req = c.newRequest(op, input, output)
  476. output = &CreateDeploymentOutput{}
  477. req.Data = output
  478. return
  479. }
  480. // CreateDeployment API operation for AWS OpsWorks.
  481. //
  482. // Runs deployment or stack commands. For more information, see Deploying Apps
  483. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-deploying.html)
  484. // and Run Stack Commands (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-commands.html).
  485. //
  486. // Required Permissions: To use this action, an IAM user must have a Deploy
  487. // or Manage permissions level for the stack, or an attached policy that explicitly
  488. // grants permissions. For more information on user permissions, see Managing
  489. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  490. //
  491. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  492. // with awserr.Error's Code and Message methods to get detailed information about
  493. // the error.
  494. //
  495. // See the AWS API reference guide for AWS OpsWorks's
  496. // API operation CreateDeployment for usage and error information.
  497. //
  498. // Returned Error Codes:
  499. // * ValidationException
  500. // Indicates that a request was not valid.
  501. //
  502. // * ResourceNotFoundException
  503. // Indicates that a resource was not found.
  504. //
  505. func (c *OpsWorks) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) {
  506. req, out := c.CreateDeploymentRequest(input)
  507. err := req.Send()
  508. return out, err
  509. }
  510. const opCreateInstance = "CreateInstance"
  511. // CreateInstanceRequest generates a "aws/request.Request" representing the
  512. // client's request for the CreateInstance operation. The "output" return
  513. // value can be used to capture response data after the request's "Send" method
  514. // is called.
  515. //
  516. // See CreateInstance for usage and error information.
  517. //
  518. // Creating a request object using this method should be used when you want to inject
  519. // custom logic into the request's lifecycle using a custom handler, or if you want to
  520. // access properties on the request object before or after sending the request. If
  521. // you just want the service response, call the CreateInstance method directly
  522. // instead.
  523. //
  524. // Note: You must call the "Send" method on the returned request object in order
  525. // to execute the request.
  526. //
  527. // // Example sending a request using the CreateInstanceRequest method.
  528. // req, resp := client.CreateInstanceRequest(params)
  529. //
  530. // err := req.Send()
  531. // if err == nil { // resp is now filled
  532. // fmt.Println(resp)
  533. // }
  534. //
  535. func (c *OpsWorks) CreateInstanceRequest(input *CreateInstanceInput) (req *request.Request, output *CreateInstanceOutput) {
  536. op := &request.Operation{
  537. Name: opCreateInstance,
  538. HTTPMethod: "POST",
  539. HTTPPath: "/",
  540. }
  541. if input == nil {
  542. input = &CreateInstanceInput{}
  543. }
  544. req = c.newRequest(op, input, output)
  545. output = &CreateInstanceOutput{}
  546. req.Data = output
  547. return
  548. }
  549. // CreateInstance API operation for AWS OpsWorks.
  550. //
  551. // Creates an instance in a specified stack. For more information, see Adding
  552. // an Instance to a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
  553. //
  554. // Required Permissions: To use this action, an IAM user must have a Manage
  555. // permissions level for the stack, or an attached policy that explicitly grants
  556. // permissions. For more information on user permissions, see Managing User
  557. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  558. //
  559. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  560. // with awserr.Error's Code and Message methods to get detailed information about
  561. // the error.
  562. //
  563. // See the AWS API reference guide for AWS OpsWorks's
  564. // API operation CreateInstance for usage and error information.
  565. //
  566. // Returned Error Codes:
  567. // * ValidationException
  568. // Indicates that a request was not valid.
  569. //
  570. // * ResourceNotFoundException
  571. // Indicates that a resource was not found.
  572. //
  573. func (c *OpsWorks) CreateInstance(input *CreateInstanceInput) (*CreateInstanceOutput, error) {
  574. req, out := c.CreateInstanceRequest(input)
  575. err := req.Send()
  576. return out, err
  577. }
  578. const opCreateLayer = "CreateLayer"
  579. // CreateLayerRequest generates a "aws/request.Request" representing the
  580. // client's request for the CreateLayer operation. The "output" return
  581. // value can be used to capture response data after the request's "Send" method
  582. // is called.
  583. //
  584. // See CreateLayer for usage and error information.
  585. //
  586. // Creating a request object using this method should be used when you want to inject
  587. // custom logic into the request's lifecycle using a custom handler, or if you want to
  588. // access properties on the request object before or after sending the request. If
  589. // you just want the service response, call the CreateLayer method directly
  590. // instead.
  591. //
  592. // Note: You must call the "Send" method on the returned request object in order
  593. // to execute the request.
  594. //
  595. // // Example sending a request using the CreateLayerRequest method.
  596. // req, resp := client.CreateLayerRequest(params)
  597. //
  598. // err := req.Send()
  599. // if err == nil { // resp is now filled
  600. // fmt.Println(resp)
  601. // }
  602. //
  603. func (c *OpsWorks) CreateLayerRequest(input *CreateLayerInput) (req *request.Request, output *CreateLayerOutput) {
  604. op := &request.Operation{
  605. Name: opCreateLayer,
  606. HTTPMethod: "POST",
  607. HTTPPath: "/",
  608. }
  609. if input == nil {
  610. input = &CreateLayerInput{}
  611. }
  612. req = c.newRequest(op, input, output)
  613. output = &CreateLayerOutput{}
  614. req.Data = output
  615. return
  616. }
  617. // CreateLayer API operation for AWS OpsWorks.
  618. //
  619. // Creates a layer. For more information, see How to Create a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-create.html).
  620. //
  621. // You should use CreateLayer for noncustom layer types such as PHP App Server
  622. // only if the stack does not have an existing layer of that type. A stack can
  623. // have at most one instance of each noncustom layer; if you attempt to create
  624. // a second instance, CreateLayer fails. A stack can have an arbitrary number
  625. // of custom layers, so you can call CreateLayer as many times as you like for
  626. // that layer type.
  627. //
  628. // Required Permissions: To use this action, an IAM user must have a Manage
  629. // permissions level for the stack, or an attached policy that explicitly grants
  630. // permissions. For more information on user permissions, see Managing User
  631. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  632. //
  633. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  634. // with awserr.Error's Code and Message methods to get detailed information about
  635. // the error.
  636. //
  637. // See the AWS API reference guide for AWS OpsWorks's
  638. // API operation CreateLayer for usage and error information.
  639. //
  640. // Returned Error Codes:
  641. // * ValidationException
  642. // Indicates that a request was not valid.
  643. //
  644. // * ResourceNotFoundException
  645. // Indicates that a resource was not found.
  646. //
  647. func (c *OpsWorks) CreateLayer(input *CreateLayerInput) (*CreateLayerOutput, error) {
  648. req, out := c.CreateLayerRequest(input)
  649. err := req.Send()
  650. return out, err
  651. }
  652. const opCreateStack = "CreateStack"
  653. // CreateStackRequest generates a "aws/request.Request" representing the
  654. // client's request for the CreateStack operation. The "output" return
  655. // value can be used to capture response data after the request's "Send" method
  656. // is called.
  657. //
  658. // See CreateStack for usage and error information.
  659. //
  660. // Creating a request object using this method should be used when you want to inject
  661. // custom logic into the request's lifecycle using a custom handler, or if you want to
  662. // access properties on the request object before or after sending the request. If
  663. // you just want the service response, call the CreateStack method directly
  664. // instead.
  665. //
  666. // Note: You must call the "Send" method on the returned request object in order
  667. // to execute the request.
  668. //
  669. // // Example sending a request using the CreateStackRequest method.
  670. // req, resp := client.CreateStackRequest(params)
  671. //
  672. // err := req.Send()
  673. // if err == nil { // resp is now filled
  674. // fmt.Println(resp)
  675. // }
  676. //
  677. func (c *OpsWorks) CreateStackRequest(input *CreateStackInput) (req *request.Request, output *CreateStackOutput) {
  678. op := &request.Operation{
  679. Name: opCreateStack,
  680. HTTPMethod: "POST",
  681. HTTPPath: "/",
  682. }
  683. if input == nil {
  684. input = &CreateStackInput{}
  685. }
  686. req = c.newRequest(op, input, output)
  687. output = &CreateStackOutput{}
  688. req.Data = output
  689. return
  690. }
  691. // CreateStack API operation for AWS OpsWorks.
  692. //
  693. // Creates a new stack. For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-edit.html).
  694. //
  695. // Required Permissions: To use this action, an IAM user must have an attached
  696. // policy that explicitly grants permissions. For more information on user permissions,
  697. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  698. //
  699. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  700. // with awserr.Error's Code and Message methods to get detailed information about
  701. // the error.
  702. //
  703. // See the AWS API reference guide for AWS OpsWorks's
  704. // API operation CreateStack for usage and error information.
  705. //
  706. // Returned Error Codes:
  707. // * ValidationException
  708. // Indicates that a request was not valid.
  709. //
  710. func (c *OpsWorks) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) {
  711. req, out := c.CreateStackRequest(input)
  712. err := req.Send()
  713. return out, err
  714. }
  715. const opCreateUserProfile = "CreateUserProfile"
  716. // CreateUserProfileRequest generates a "aws/request.Request" representing the
  717. // client's request for the CreateUserProfile operation. The "output" return
  718. // value can be used to capture response data after the request's "Send" method
  719. // is called.
  720. //
  721. // See CreateUserProfile for usage and error information.
  722. //
  723. // Creating a request object using this method should be used when you want to inject
  724. // custom logic into the request's lifecycle using a custom handler, or if you want to
  725. // access properties on the request object before or after sending the request. If
  726. // you just want the service response, call the CreateUserProfile method directly
  727. // instead.
  728. //
  729. // Note: You must call the "Send" method on the returned request object in order
  730. // to execute the request.
  731. //
  732. // // Example sending a request using the CreateUserProfileRequest method.
  733. // req, resp := client.CreateUserProfileRequest(params)
  734. //
  735. // err := req.Send()
  736. // if err == nil { // resp is now filled
  737. // fmt.Println(resp)
  738. // }
  739. //
  740. func (c *OpsWorks) CreateUserProfileRequest(input *CreateUserProfileInput) (req *request.Request, output *CreateUserProfileOutput) {
  741. op := &request.Operation{
  742. Name: opCreateUserProfile,
  743. HTTPMethod: "POST",
  744. HTTPPath: "/",
  745. }
  746. if input == nil {
  747. input = &CreateUserProfileInput{}
  748. }
  749. req = c.newRequest(op, input, output)
  750. output = &CreateUserProfileOutput{}
  751. req.Data = output
  752. return
  753. }
  754. // CreateUserProfile API operation for AWS OpsWorks.
  755. //
  756. // Creates a new user profile.
  757. //
  758. // Required Permissions: To use this action, an IAM user must have an attached
  759. // policy that explicitly grants permissions. For more information on user permissions,
  760. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  761. //
  762. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  763. // with awserr.Error's Code and Message methods to get detailed information about
  764. // the error.
  765. //
  766. // See the AWS API reference guide for AWS OpsWorks's
  767. // API operation CreateUserProfile for usage and error information.
  768. //
  769. // Returned Error Codes:
  770. // * ValidationException
  771. // Indicates that a request was not valid.
  772. //
  773. func (c *OpsWorks) CreateUserProfile(input *CreateUserProfileInput) (*CreateUserProfileOutput, error) {
  774. req, out := c.CreateUserProfileRequest(input)
  775. err := req.Send()
  776. return out, err
  777. }
  778. const opDeleteApp = "DeleteApp"
  779. // DeleteAppRequest generates a "aws/request.Request" representing the
  780. // client's request for the DeleteApp operation. The "output" return
  781. // value can be used to capture response data after the request's "Send" method
  782. // is called.
  783. //
  784. // See DeleteApp for usage and error information.
  785. //
  786. // Creating a request object using this method should be used when you want to inject
  787. // custom logic into the request's lifecycle using a custom handler, or if you want to
  788. // access properties on the request object before or after sending the request. If
  789. // you just want the service response, call the DeleteApp method directly
  790. // instead.
  791. //
  792. // Note: You must call the "Send" method on the returned request object in order
  793. // to execute the request.
  794. //
  795. // // Example sending a request using the DeleteAppRequest method.
  796. // req, resp := client.DeleteAppRequest(params)
  797. //
  798. // err := req.Send()
  799. // if err == nil { // resp is now filled
  800. // fmt.Println(resp)
  801. // }
  802. //
  803. func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) {
  804. op := &request.Operation{
  805. Name: opDeleteApp,
  806. HTTPMethod: "POST",
  807. HTTPPath: "/",
  808. }
  809. if input == nil {
  810. input = &DeleteAppInput{}
  811. }
  812. req = c.newRequest(op, input, output)
  813. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  814. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  815. output = &DeleteAppOutput{}
  816. req.Data = output
  817. return
  818. }
  819. // DeleteApp API operation for AWS OpsWorks.
  820. //
  821. // Deletes a specified app.
  822. //
  823. // Required Permissions: To use this action, an IAM user must have a Manage
  824. // permissions level for the stack, or an attached policy that explicitly grants
  825. // permissions. For more information on user permissions, see Managing User
  826. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  827. //
  828. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  829. // with awserr.Error's Code and Message methods to get detailed information about
  830. // the error.
  831. //
  832. // See the AWS API reference guide for AWS OpsWorks's
  833. // API operation DeleteApp for usage and error information.
  834. //
  835. // Returned Error Codes:
  836. // * ValidationException
  837. // Indicates that a request was not valid.
  838. //
  839. // * ResourceNotFoundException
  840. // Indicates that a resource was not found.
  841. //
  842. func (c *OpsWorks) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) {
  843. req, out := c.DeleteAppRequest(input)
  844. err := req.Send()
  845. return out, err
  846. }
  847. const opDeleteInstance = "DeleteInstance"
  848. // DeleteInstanceRequest generates a "aws/request.Request" representing the
  849. // client's request for the DeleteInstance operation. The "output" return
  850. // value can be used to capture response data after the request's "Send" method
  851. // is called.
  852. //
  853. // See DeleteInstance for usage and error information.
  854. //
  855. // Creating a request object using this method should be used when you want to inject
  856. // custom logic into the request's lifecycle using a custom handler, or if you want to
  857. // access properties on the request object before or after sending the request. If
  858. // you just want the service response, call the DeleteInstance method directly
  859. // instead.
  860. //
  861. // Note: You must call the "Send" method on the returned request object in order
  862. // to execute the request.
  863. //
  864. // // Example sending a request using the DeleteInstanceRequest method.
  865. // req, resp := client.DeleteInstanceRequest(params)
  866. //
  867. // err := req.Send()
  868. // if err == nil { // resp is now filled
  869. // fmt.Println(resp)
  870. // }
  871. //
  872. func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *request.Request, output *DeleteInstanceOutput) {
  873. op := &request.Operation{
  874. Name: opDeleteInstance,
  875. HTTPMethod: "POST",
  876. HTTPPath: "/",
  877. }
  878. if input == nil {
  879. input = &DeleteInstanceInput{}
  880. }
  881. req = c.newRequest(op, input, output)
  882. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  883. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  884. output = &DeleteInstanceOutput{}
  885. req.Data = output
  886. return
  887. }
  888. // DeleteInstance API operation for AWS OpsWorks.
  889. //
  890. // Deletes a specified instance, which terminates the associated Amazon EC2
  891. // instance. You must stop an instance before you can delete it.
  892. //
  893. // For more information, see Deleting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-delete.html).
  894. //
  895. // Required Permissions: To use this action, an IAM user must have a Manage
  896. // permissions level for the stack, or an attached policy that explicitly grants
  897. // permissions. For more information on user permissions, see Managing User
  898. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  899. //
  900. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  901. // with awserr.Error's Code and Message methods to get detailed information about
  902. // the error.
  903. //
  904. // See the AWS API reference guide for AWS OpsWorks's
  905. // API operation DeleteInstance for usage and error information.
  906. //
  907. // Returned Error Codes:
  908. // * ValidationException
  909. // Indicates that a request was not valid.
  910. //
  911. // * ResourceNotFoundException
  912. // Indicates that a resource was not found.
  913. //
  914. func (c *OpsWorks) DeleteInstance(input *DeleteInstanceInput) (*DeleteInstanceOutput, error) {
  915. req, out := c.DeleteInstanceRequest(input)
  916. err := req.Send()
  917. return out, err
  918. }
  919. const opDeleteLayer = "DeleteLayer"
  920. // DeleteLayerRequest generates a "aws/request.Request" representing the
  921. // client's request for the DeleteLayer operation. The "output" return
  922. // value can be used to capture response data after the request's "Send" method
  923. // is called.
  924. //
  925. // See DeleteLayer for usage and error information.
  926. //
  927. // Creating a request object using this method should be used when you want to inject
  928. // custom logic into the request's lifecycle using a custom handler, or if you want to
  929. // access properties on the request object before or after sending the request. If
  930. // you just want the service response, call the DeleteLayer method directly
  931. // instead.
  932. //
  933. // Note: You must call the "Send" method on the returned request object in order
  934. // to execute the request.
  935. //
  936. // // Example sending a request using the DeleteLayerRequest method.
  937. // req, resp := client.DeleteLayerRequest(params)
  938. //
  939. // err := req.Send()
  940. // if err == nil { // resp is now filled
  941. // fmt.Println(resp)
  942. // }
  943. //
  944. func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Request, output *DeleteLayerOutput) {
  945. op := &request.Operation{
  946. Name: opDeleteLayer,
  947. HTTPMethod: "POST",
  948. HTTPPath: "/",
  949. }
  950. if input == nil {
  951. input = &DeleteLayerInput{}
  952. }
  953. req = c.newRequest(op, input, output)
  954. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  955. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  956. output = &DeleteLayerOutput{}
  957. req.Data = output
  958. return
  959. }
  960. // DeleteLayer API operation for AWS OpsWorks.
  961. //
  962. // Deletes a specified layer. You must first stop and then delete all associated
  963. // instances or unassign registered instances. For more information, see How
  964. // to Delete a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-delete.html).
  965. //
  966. // Required Permissions: To use this action, an IAM user must have a Manage
  967. // permissions level for the stack, or an attached policy that explicitly grants
  968. // permissions. For more information on user permissions, see Managing User
  969. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  970. //
  971. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  972. // with awserr.Error's Code and Message methods to get detailed information about
  973. // the error.
  974. //
  975. // See the AWS API reference guide for AWS OpsWorks's
  976. // API operation DeleteLayer for usage and error information.
  977. //
  978. // Returned Error Codes:
  979. // * ValidationException
  980. // Indicates that a request was not valid.
  981. //
  982. // * ResourceNotFoundException
  983. // Indicates that a resource was not found.
  984. //
  985. func (c *OpsWorks) DeleteLayer(input *DeleteLayerInput) (*DeleteLayerOutput, error) {
  986. req, out := c.DeleteLayerRequest(input)
  987. err := req.Send()
  988. return out, err
  989. }
  990. const opDeleteStack = "DeleteStack"
  991. // DeleteStackRequest generates a "aws/request.Request" representing the
  992. // client's request for the DeleteStack operation. The "output" return
  993. // value can be used to capture response data after the request's "Send" method
  994. // is called.
  995. //
  996. // See DeleteStack for usage and error information.
  997. //
  998. // Creating a request object using this method should be used when you want to inject
  999. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1000. // access properties on the request object before or after sending the request. If
  1001. // you just want the service response, call the DeleteStack method directly
  1002. // instead.
  1003. //
  1004. // Note: You must call the "Send" method on the returned request object in order
  1005. // to execute the request.
  1006. //
  1007. // // Example sending a request using the DeleteStackRequest method.
  1008. // req, resp := client.DeleteStackRequest(params)
  1009. //
  1010. // err := req.Send()
  1011. // if err == nil { // resp is now filled
  1012. // fmt.Println(resp)
  1013. // }
  1014. //
  1015. func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Request, output *DeleteStackOutput) {
  1016. op := &request.Operation{
  1017. Name: opDeleteStack,
  1018. HTTPMethod: "POST",
  1019. HTTPPath: "/",
  1020. }
  1021. if input == nil {
  1022. input = &DeleteStackInput{}
  1023. }
  1024. req = c.newRequest(op, input, output)
  1025. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1026. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1027. output = &DeleteStackOutput{}
  1028. req.Data = output
  1029. return
  1030. }
  1031. // DeleteStack API operation for AWS OpsWorks.
  1032. //
  1033. // Deletes a specified stack. You must first delete all instances, layers, and
  1034. // apps or deregister registered instances. For more information, see Shut Down
  1035. // a Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-shutting.html).
  1036. //
  1037. // Required Permissions: To use this action, an IAM user must have a Manage
  1038. // permissions level for the stack, or an attached policy that explicitly grants
  1039. // permissions. For more information on user permissions, see Managing User
  1040. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1041. //
  1042. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1043. // with awserr.Error's Code and Message methods to get detailed information about
  1044. // the error.
  1045. //
  1046. // See the AWS API reference guide for AWS OpsWorks's
  1047. // API operation DeleteStack for usage and error information.
  1048. //
  1049. // Returned Error Codes:
  1050. // * ValidationException
  1051. // Indicates that a request was not valid.
  1052. //
  1053. // * ResourceNotFoundException
  1054. // Indicates that a resource was not found.
  1055. //
  1056. func (c *OpsWorks) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) {
  1057. req, out := c.DeleteStackRequest(input)
  1058. err := req.Send()
  1059. return out, err
  1060. }
  1061. const opDeleteUserProfile = "DeleteUserProfile"
  1062. // DeleteUserProfileRequest generates a "aws/request.Request" representing the
  1063. // client's request for the DeleteUserProfile operation. The "output" return
  1064. // value can be used to capture response data after the request's "Send" method
  1065. // is called.
  1066. //
  1067. // See DeleteUserProfile for usage and error information.
  1068. //
  1069. // Creating a request object using this method should be used when you want to inject
  1070. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1071. // access properties on the request object before or after sending the request. If
  1072. // you just want the service response, call the DeleteUserProfile method directly
  1073. // instead.
  1074. //
  1075. // Note: You must call the "Send" method on the returned request object in order
  1076. // to execute the request.
  1077. //
  1078. // // Example sending a request using the DeleteUserProfileRequest method.
  1079. // req, resp := client.DeleteUserProfileRequest(params)
  1080. //
  1081. // err := req.Send()
  1082. // if err == nil { // resp is now filled
  1083. // fmt.Println(resp)
  1084. // }
  1085. //
  1086. func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) {
  1087. op := &request.Operation{
  1088. Name: opDeleteUserProfile,
  1089. HTTPMethod: "POST",
  1090. HTTPPath: "/",
  1091. }
  1092. if input == nil {
  1093. input = &DeleteUserProfileInput{}
  1094. }
  1095. req = c.newRequest(op, input, output)
  1096. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1097. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1098. output = &DeleteUserProfileOutput{}
  1099. req.Data = output
  1100. return
  1101. }
  1102. // DeleteUserProfile API operation for AWS OpsWorks.
  1103. //
  1104. // Deletes a user profile.
  1105. //
  1106. // Required Permissions: To use this action, an IAM user must have an attached
  1107. // policy that explicitly grants permissions. For more information on user permissions,
  1108. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1109. //
  1110. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1111. // with awserr.Error's Code and Message methods to get detailed information about
  1112. // the error.
  1113. //
  1114. // See the AWS API reference guide for AWS OpsWorks's
  1115. // API operation DeleteUserProfile for usage and error information.
  1116. //
  1117. // Returned Error Codes:
  1118. // * ValidationException
  1119. // Indicates that a request was not valid.
  1120. //
  1121. // * ResourceNotFoundException
  1122. // Indicates that a resource was not found.
  1123. //
  1124. func (c *OpsWorks) DeleteUserProfile(input *DeleteUserProfileInput) (*DeleteUserProfileOutput, error) {
  1125. req, out := c.DeleteUserProfileRequest(input)
  1126. err := req.Send()
  1127. return out, err
  1128. }
  1129. const opDeregisterEcsCluster = "DeregisterEcsCluster"
  1130. // DeregisterEcsClusterRequest generates a "aws/request.Request" representing the
  1131. // client's request for the DeregisterEcsCluster operation. The "output" return
  1132. // value can be used to capture response data after the request's "Send" method
  1133. // is called.
  1134. //
  1135. // See DeregisterEcsCluster for usage and error information.
  1136. //
  1137. // Creating a request object using this method should be used when you want to inject
  1138. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1139. // access properties on the request object before or after sending the request. If
  1140. // you just want the service response, call the DeregisterEcsCluster method directly
  1141. // instead.
  1142. //
  1143. // Note: You must call the "Send" method on the returned request object in order
  1144. // to execute the request.
  1145. //
  1146. // // Example sending a request using the DeregisterEcsClusterRequest method.
  1147. // req, resp := client.DeregisterEcsClusterRequest(params)
  1148. //
  1149. // err := req.Send()
  1150. // if err == nil { // resp is now filled
  1151. // fmt.Println(resp)
  1152. // }
  1153. //
  1154. func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) (req *request.Request, output *DeregisterEcsClusterOutput) {
  1155. op := &request.Operation{
  1156. Name: opDeregisterEcsCluster,
  1157. HTTPMethod: "POST",
  1158. HTTPPath: "/",
  1159. }
  1160. if input == nil {
  1161. input = &DeregisterEcsClusterInput{}
  1162. }
  1163. req = c.newRequest(op, input, output)
  1164. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1165. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1166. output = &DeregisterEcsClusterOutput{}
  1167. req.Data = output
  1168. return
  1169. }
  1170. // DeregisterEcsCluster API operation for AWS OpsWorks.
  1171. //
  1172. // Deregisters a specified Amazon ECS cluster from a stack. For more information,
  1173. // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html#workinglayers-ecscluster-delete).
  1174. //
  1175. // Required Permissions: To use this action, an IAM user must have a Manage
  1176. // permissions level for the stack or an attached policy that explicitly grants
  1177. // permissions. For more information on user permissions, see http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html
  1178. // (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1179. //
  1180. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1181. // with awserr.Error's Code and Message methods to get detailed information about
  1182. // the error.
  1183. //
  1184. // See the AWS API reference guide for AWS OpsWorks's
  1185. // API operation DeregisterEcsCluster for usage and error information.
  1186. //
  1187. // Returned Error Codes:
  1188. // * ValidationException
  1189. // Indicates that a request was not valid.
  1190. //
  1191. // * ResourceNotFoundException
  1192. // Indicates that a resource was not found.
  1193. //
  1194. func (c *OpsWorks) DeregisterEcsCluster(input *DeregisterEcsClusterInput) (*DeregisterEcsClusterOutput, error) {
  1195. req, out := c.DeregisterEcsClusterRequest(input)
  1196. err := req.Send()
  1197. return out, err
  1198. }
  1199. const opDeregisterElasticIp = "DeregisterElasticIp"
  1200. // DeregisterElasticIpRequest generates a "aws/request.Request" representing the
  1201. // client's request for the DeregisterElasticIp operation. The "output" return
  1202. // value can be used to capture response data after the request's "Send" method
  1203. // is called.
  1204. //
  1205. // See DeregisterElasticIp for usage and error information.
  1206. //
  1207. // Creating a request object using this method should be used when you want to inject
  1208. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1209. // access properties on the request object before or after sending the request. If
  1210. // you just want the service response, call the DeregisterElasticIp method directly
  1211. // instead.
  1212. //
  1213. // Note: You must call the "Send" method on the returned request object in order
  1214. // to execute the request.
  1215. //
  1216. // // Example sending a request using the DeregisterElasticIpRequest method.
  1217. // req, resp := client.DeregisterElasticIpRequest(params)
  1218. //
  1219. // err := req.Send()
  1220. // if err == nil { // resp is now filled
  1221. // fmt.Println(resp)
  1222. // }
  1223. //
  1224. func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) (req *request.Request, output *DeregisterElasticIpOutput) {
  1225. op := &request.Operation{
  1226. Name: opDeregisterElasticIp,
  1227. HTTPMethod: "POST",
  1228. HTTPPath: "/",
  1229. }
  1230. if input == nil {
  1231. input = &DeregisterElasticIpInput{}
  1232. }
  1233. req = c.newRequest(op, input, output)
  1234. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1235. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1236. output = &DeregisterElasticIpOutput{}
  1237. req.Data = output
  1238. return
  1239. }
  1240. // DeregisterElasticIp API operation for AWS OpsWorks.
  1241. //
  1242. // Deregisters a specified Elastic IP address. The address can then be registered
  1243. // by another stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  1244. //
  1245. // Required Permissions: To use this action, an IAM user must have a Manage
  1246. // permissions level for the stack, or an attached policy that explicitly grants
  1247. // permissions. For more information on user permissions, see Managing User
  1248. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1249. //
  1250. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1251. // with awserr.Error's Code and Message methods to get detailed information about
  1252. // the error.
  1253. //
  1254. // See the AWS API reference guide for AWS OpsWorks's
  1255. // API operation DeregisterElasticIp for usage and error information.
  1256. //
  1257. // Returned Error Codes:
  1258. // * ValidationException
  1259. // Indicates that a request was not valid.
  1260. //
  1261. // * ResourceNotFoundException
  1262. // Indicates that a resource was not found.
  1263. //
  1264. func (c *OpsWorks) DeregisterElasticIp(input *DeregisterElasticIpInput) (*DeregisterElasticIpOutput, error) {
  1265. req, out := c.DeregisterElasticIpRequest(input)
  1266. err := req.Send()
  1267. return out, err
  1268. }
  1269. const opDeregisterInstance = "DeregisterInstance"
  1270. // DeregisterInstanceRequest generates a "aws/request.Request" representing the
  1271. // client's request for the DeregisterInstance operation. The "output" return
  1272. // value can be used to capture response data after the request's "Send" method
  1273. // is called.
  1274. //
  1275. // See DeregisterInstance for usage and error information.
  1276. //
  1277. // Creating a request object using this method should be used when you want to inject
  1278. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1279. // access properties on the request object before or after sending the request. If
  1280. // you just want the service response, call the DeregisterInstance method directly
  1281. // instead.
  1282. //
  1283. // Note: You must call the "Send" method on the returned request object in order
  1284. // to execute the request.
  1285. //
  1286. // // Example sending a request using the DeregisterInstanceRequest method.
  1287. // req, resp := client.DeregisterInstanceRequest(params)
  1288. //
  1289. // err := req.Send()
  1290. // if err == nil { // resp is now filled
  1291. // fmt.Println(resp)
  1292. // }
  1293. //
  1294. func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (req *request.Request, output *DeregisterInstanceOutput) {
  1295. op := &request.Operation{
  1296. Name: opDeregisterInstance,
  1297. HTTPMethod: "POST",
  1298. HTTPPath: "/",
  1299. }
  1300. if input == nil {
  1301. input = &DeregisterInstanceInput{}
  1302. }
  1303. req = c.newRequest(op, input, output)
  1304. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1305. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1306. output = &DeregisterInstanceOutput{}
  1307. req.Data = output
  1308. return
  1309. }
  1310. // DeregisterInstance API operation for AWS OpsWorks.
  1311. //
  1312. // Deregister a registered Amazon EC2 or on-premises instance. This action removes
  1313. // the instance from the stack and returns it to your control. This action can
  1314. // not be used with instances that were created with AWS OpsWorks.
  1315. //
  1316. // Required Permissions: To use this action, an IAM user must have a Manage
  1317. // permissions level for the stack or an attached policy that explicitly grants
  1318. // permissions. For more information on user permissions, see Managing User
  1319. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1320. //
  1321. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1322. // with awserr.Error's Code and Message methods to get detailed information about
  1323. // the error.
  1324. //
  1325. // See the AWS API reference guide for AWS OpsWorks's
  1326. // API operation DeregisterInstance for usage and error information.
  1327. //
  1328. // Returned Error Codes:
  1329. // * ValidationException
  1330. // Indicates that a request was not valid.
  1331. //
  1332. // * ResourceNotFoundException
  1333. // Indicates that a resource was not found.
  1334. //
  1335. func (c *OpsWorks) DeregisterInstance(input *DeregisterInstanceInput) (*DeregisterInstanceOutput, error) {
  1336. req, out := c.DeregisterInstanceRequest(input)
  1337. err := req.Send()
  1338. return out, err
  1339. }
  1340. const opDeregisterRdsDbInstance = "DeregisterRdsDbInstance"
  1341. // DeregisterRdsDbInstanceRequest generates a "aws/request.Request" representing the
  1342. // client's request for the DeregisterRdsDbInstance operation. The "output" return
  1343. // value can be used to capture response data after the request's "Send" method
  1344. // is called.
  1345. //
  1346. // See DeregisterRdsDbInstance for usage and error information.
  1347. //
  1348. // Creating a request object using this method should be used when you want to inject
  1349. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1350. // access properties on the request object before or after sending the request. If
  1351. // you just want the service response, call the DeregisterRdsDbInstance method directly
  1352. // instead.
  1353. //
  1354. // Note: You must call the "Send" method on the returned request object in order
  1355. // to execute the request.
  1356. //
  1357. // // Example sending a request using the DeregisterRdsDbInstanceRequest method.
  1358. // req, resp := client.DeregisterRdsDbInstanceRequest(params)
  1359. //
  1360. // err := req.Send()
  1361. // if err == nil { // resp is now filled
  1362. // fmt.Println(resp)
  1363. // }
  1364. //
  1365. func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstanceInput) (req *request.Request, output *DeregisterRdsDbInstanceOutput) {
  1366. op := &request.Operation{
  1367. Name: opDeregisterRdsDbInstance,
  1368. HTTPMethod: "POST",
  1369. HTTPPath: "/",
  1370. }
  1371. if input == nil {
  1372. input = &DeregisterRdsDbInstanceInput{}
  1373. }
  1374. req = c.newRequest(op, input, output)
  1375. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1376. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1377. output = &DeregisterRdsDbInstanceOutput{}
  1378. req.Data = output
  1379. return
  1380. }
  1381. // DeregisterRdsDbInstance API operation for AWS OpsWorks.
  1382. //
  1383. // Deregisters an Amazon RDS instance.
  1384. //
  1385. // Required Permissions: To use this action, an IAM user must have a Manage
  1386. // permissions level for the stack, or an attached policy that explicitly grants
  1387. // permissions. For more information on user permissions, see Managing User
  1388. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1389. //
  1390. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1391. // with awserr.Error's Code and Message methods to get detailed information about
  1392. // the error.
  1393. //
  1394. // See the AWS API reference guide for AWS OpsWorks's
  1395. // API operation DeregisterRdsDbInstance for usage and error information.
  1396. //
  1397. // Returned Error Codes:
  1398. // * ValidationException
  1399. // Indicates that a request was not valid.
  1400. //
  1401. // * ResourceNotFoundException
  1402. // Indicates that a resource was not found.
  1403. //
  1404. func (c *OpsWorks) DeregisterRdsDbInstance(input *DeregisterRdsDbInstanceInput) (*DeregisterRdsDbInstanceOutput, error) {
  1405. req, out := c.DeregisterRdsDbInstanceRequest(input)
  1406. err := req.Send()
  1407. return out, err
  1408. }
  1409. const opDeregisterVolume = "DeregisterVolume"
  1410. // DeregisterVolumeRequest generates a "aws/request.Request" representing the
  1411. // client's request for the DeregisterVolume operation. The "output" return
  1412. // value can be used to capture response data after the request's "Send" method
  1413. // is called.
  1414. //
  1415. // See DeregisterVolume for usage and error information.
  1416. //
  1417. // Creating a request object using this method should be used when you want to inject
  1418. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1419. // access properties on the request object before or after sending the request. If
  1420. // you just want the service response, call the DeregisterVolume method directly
  1421. // instead.
  1422. //
  1423. // Note: You must call the "Send" method on the returned request object in order
  1424. // to execute the request.
  1425. //
  1426. // // Example sending a request using the DeregisterVolumeRequest method.
  1427. // req, resp := client.DeregisterVolumeRequest(params)
  1428. //
  1429. // err := req.Send()
  1430. // if err == nil { // resp is now filled
  1431. // fmt.Println(resp)
  1432. // }
  1433. //
  1434. func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *request.Request, output *DeregisterVolumeOutput) {
  1435. op := &request.Operation{
  1436. Name: opDeregisterVolume,
  1437. HTTPMethod: "POST",
  1438. HTTPPath: "/",
  1439. }
  1440. if input == nil {
  1441. input = &DeregisterVolumeInput{}
  1442. }
  1443. req = c.newRequest(op, input, output)
  1444. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1445. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1446. output = &DeregisterVolumeOutput{}
  1447. req.Data = output
  1448. return
  1449. }
  1450. // DeregisterVolume API operation for AWS OpsWorks.
  1451. //
  1452. // Deregisters an Amazon EBS volume. The volume can then be registered by another
  1453. // stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  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. //
  1460. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1461. // with awserr.Error's Code and Message methods to get detailed information about
  1462. // the error.
  1463. //
  1464. // See the AWS API reference guide for AWS OpsWorks's
  1465. // API operation DeregisterVolume for usage and error information.
  1466. //
  1467. // Returned Error Codes:
  1468. // * ValidationException
  1469. // Indicates that a request was not valid.
  1470. //
  1471. // * ResourceNotFoundException
  1472. // Indicates that a resource was not found.
  1473. //
  1474. func (c *OpsWorks) DeregisterVolume(input *DeregisterVolumeInput) (*DeregisterVolumeOutput, error) {
  1475. req, out := c.DeregisterVolumeRequest(input)
  1476. err := req.Send()
  1477. return out, err
  1478. }
  1479. const opDescribeAgentVersions = "DescribeAgentVersions"
  1480. // DescribeAgentVersionsRequest generates a "aws/request.Request" representing the
  1481. // client's request for the DescribeAgentVersions operation. The "output" return
  1482. // value can be used to capture response data after the request's "Send" method
  1483. // is called.
  1484. //
  1485. // See DescribeAgentVersions for usage and error information.
  1486. //
  1487. // Creating a request object using this method should be used when you want to inject
  1488. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1489. // access properties on the request object before or after sending the request. If
  1490. // you just want the service response, call the DescribeAgentVersions method directly
  1491. // instead.
  1492. //
  1493. // Note: You must call the "Send" method on the returned request object in order
  1494. // to execute the request.
  1495. //
  1496. // // Example sending a request using the DescribeAgentVersionsRequest method.
  1497. // req, resp := client.DescribeAgentVersionsRequest(params)
  1498. //
  1499. // err := req.Send()
  1500. // if err == nil { // resp is now filled
  1501. // fmt.Println(resp)
  1502. // }
  1503. //
  1504. func (c *OpsWorks) DescribeAgentVersionsRequest(input *DescribeAgentVersionsInput) (req *request.Request, output *DescribeAgentVersionsOutput) {
  1505. op := &request.Operation{
  1506. Name: opDescribeAgentVersions,
  1507. HTTPMethod: "POST",
  1508. HTTPPath: "/",
  1509. }
  1510. if input == nil {
  1511. input = &DescribeAgentVersionsInput{}
  1512. }
  1513. req = c.newRequest(op, input, output)
  1514. output = &DescribeAgentVersionsOutput{}
  1515. req.Data = output
  1516. return
  1517. }
  1518. // DescribeAgentVersions API operation for AWS OpsWorks.
  1519. //
  1520. // Describes the available AWS OpsWorks agent versions. You must specify a stack
  1521. // ID or a configuration manager. DescribeAgentVersions returns a list of available
  1522. // agent versions for the specified stack or configuration manager.
  1523. //
  1524. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1525. // with awserr.Error's Code and Message methods to get detailed information about
  1526. // the error.
  1527. //
  1528. // See the AWS API reference guide for AWS OpsWorks's
  1529. // API operation DescribeAgentVersions for usage and error information.
  1530. //
  1531. // Returned Error Codes:
  1532. // * ValidationException
  1533. // Indicates that a request was not valid.
  1534. //
  1535. // * ResourceNotFoundException
  1536. // Indicates that a resource was not found.
  1537. //
  1538. func (c *OpsWorks) DescribeAgentVersions(input *DescribeAgentVersionsInput) (*DescribeAgentVersionsOutput, error) {
  1539. req, out := c.DescribeAgentVersionsRequest(input)
  1540. err := req.Send()
  1541. return out, err
  1542. }
  1543. const opDescribeApps = "DescribeApps"
  1544. // DescribeAppsRequest generates a "aws/request.Request" representing the
  1545. // client's request for the DescribeApps operation. The "output" return
  1546. // value can be used to capture response data after the request's "Send" method
  1547. // is called.
  1548. //
  1549. // See DescribeApps for usage and error information.
  1550. //
  1551. // Creating a request object using this method should be used when you want to inject
  1552. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1553. // access properties on the request object before or after sending the request. If
  1554. // you just want the service response, call the DescribeApps method directly
  1555. // instead.
  1556. //
  1557. // Note: You must call the "Send" method on the returned request object in order
  1558. // to execute the request.
  1559. //
  1560. // // Example sending a request using the DescribeAppsRequest method.
  1561. // req, resp := client.DescribeAppsRequest(params)
  1562. //
  1563. // err := req.Send()
  1564. // if err == nil { // resp is now filled
  1565. // fmt.Println(resp)
  1566. // }
  1567. //
  1568. func (c *OpsWorks) DescribeAppsRequest(input *DescribeAppsInput) (req *request.Request, output *DescribeAppsOutput) {
  1569. op := &request.Operation{
  1570. Name: opDescribeApps,
  1571. HTTPMethod: "POST",
  1572. HTTPPath: "/",
  1573. }
  1574. if input == nil {
  1575. input = &DescribeAppsInput{}
  1576. }
  1577. req = c.newRequest(op, input, output)
  1578. output = &DescribeAppsOutput{}
  1579. req.Data = output
  1580. return
  1581. }
  1582. // DescribeApps API operation for AWS OpsWorks.
  1583. //
  1584. // Requests a description of a specified set of apps.
  1585. //
  1586. // You must specify at least one of the parameters.
  1587. //
  1588. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  1589. // or Manage permissions level for the stack, or an attached policy that explicitly
  1590. // grants permissions. For more information on user permissions, see Managing
  1591. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1592. //
  1593. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1594. // with awserr.Error's Code and Message methods to get detailed information about
  1595. // the error.
  1596. //
  1597. // See the AWS API reference guide for AWS OpsWorks's
  1598. // API operation DescribeApps for usage and error information.
  1599. //
  1600. // Returned Error Codes:
  1601. // * ValidationException
  1602. // Indicates that a request was not valid.
  1603. //
  1604. // * ResourceNotFoundException
  1605. // Indicates that a resource was not found.
  1606. //
  1607. func (c *OpsWorks) DescribeApps(input *DescribeAppsInput) (*DescribeAppsOutput, error) {
  1608. req, out := c.DescribeAppsRequest(input)
  1609. err := req.Send()
  1610. return out, err
  1611. }
  1612. const opDescribeCommands = "DescribeCommands"
  1613. // DescribeCommandsRequest generates a "aws/request.Request" representing the
  1614. // client's request for the DescribeCommands operation. The "output" return
  1615. // value can be used to capture response data after the request's "Send" method
  1616. // is called.
  1617. //
  1618. // See DescribeCommands for usage and error information.
  1619. //
  1620. // Creating a request object using this method should be used when you want to inject
  1621. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1622. // access properties on the request object before or after sending the request. If
  1623. // you just want the service response, call the DescribeCommands method directly
  1624. // instead.
  1625. //
  1626. // Note: You must call the "Send" method on the returned request object in order
  1627. // to execute the request.
  1628. //
  1629. // // Example sending a request using the DescribeCommandsRequest method.
  1630. // req, resp := client.DescribeCommandsRequest(params)
  1631. //
  1632. // err := req.Send()
  1633. // if err == nil { // resp is now filled
  1634. // fmt.Println(resp)
  1635. // }
  1636. //
  1637. func (c *OpsWorks) DescribeCommandsRequest(input *DescribeCommandsInput) (req *request.Request, output *DescribeCommandsOutput) {
  1638. op := &request.Operation{
  1639. Name: opDescribeCommands,
  1640. HTTPMethod: "POST",
  1641. HTTPPath: "/",
  1642. }
  1643. if input == nil {
  1644. input = &DescribeCommandsInput{}
  1645. }
  1646. req = c.newRequest(op, input, output)
  1647. output = &DescribeCommandsOutput{}
  1648. req.Data = output
  1649. return
  1650. }
  1651. // DescribeCommands API operation for AWS OpsWorks.
  1652. //
  1653. // Describes the results of specified commands.
  1654. //
  1655. // You must specify at least one of the parameters.
  1656. //
  1657. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  1658. // or Manage permissions level for the stack, or an attached policy that explicitly
  1659. // grants permissions. For more information on user permissions, see Managing
  1660. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1661. //
  1662. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1663. // with awserr.Error's Code and Message methods to get detailed information about
  1664. // the error.
  1665. //
  1666. // See the AWS API reference guide for AWS OpsWorks's
  1667. // API operation DescribeCommands for usage and error information.
  1668. //
  1669. // Returned Error Codes:
  1670. // * ValidationException
  1671. // Indicates that a request was not valid.
  1672. //
  1673. // * ResourceNotFoundException
  1674. // Indicates that a resource was not found.
  1675. //
  1676. func (c *OpsWorks) DescribeCommands(input *DescribeCommandsInput) (*DescribeCommandsOutput, error) {
  1677. req, out := c.DescribeCommandsRequest(input)
  1678. err := req.Send()
  1679. return out, err
  1680. }
  1681. const opDescribeDeployments = "DescribeDeployments"
  1682. // DescribeDeploymentsRequest generates a "aws/request.Request" representing the
  1683. // client's request for the DescribeDeployments operation. The "output" return
  1684. // value can be used to capture response data after the request's "Send" method
  1685. // is called.
  1686. //
  1687. // See DescribeDeployments for usage and error information.
  1688. //
  1689. // Creating a request object using this method should be used when you want to inject
  1690. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1691. // access properties on the request object before or after sending the request. If
  1692. // you just want the service response, call the DescribeDeployments method directly
  1693. // instead.
  1694. //
  1695. // Note: You must call the "Send" method on the returned request object in order
  1696. // to execute the request.
  1697. //
  1698. // // Example sending a request using the DescribeDeploymentsRequest method.
  1699. // req, resp := client.DescribeDeploymentsRequest(params)
  1700. //
  1701. // err := req.Send()
  1702. // if err == nil { // resp is now filled
  1703. // fmt.Println(resp)
  1704. // }
  1705. //
  1706. func (c *OpsWorks) DescribeDeploymentsRequest(input *DescribeDeploymentsInput) (req *request.Request, output *DescribeDeploymentsOutput) {
  1707. op := &request.Operation{
  1708. Name: opDescribeDeployments,
  1709. HTTPMethod: "POST",
  1710. HTTPPath: "/",
  1711. }
  1712. if input == nil {
  1713. input = &DescribeDeploymentsInput{}
  1714. }
  1715. req = c.newRequest(op, input, output)
  1716. output = &DescribeDeploymentsOutput{}
  1717. req.Data = output
  1718. return
  1719. }
  1720. // DescribeDeployments API operation for AWS OpsWorks.
  1721. //
  1722. // Requests a description of a specified set of deployments.
  1723. //
  1724. // You must specify at least one of the parameters.
  1725. //
  1726. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  1727. // or Manage permissions level for the stack, or an attached policy that explicitly
  1728. // grants permissions. For more information on user permissions, see Managing
  1729. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1730. //
  1731. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1732. // with awserr.Error's Code and Message methods to get detailed information about
  1733. // the error.
  1734. //
  1735. // See the AWS API reference guide for AWS OpsWorks's
  1736. // API operation DescribeDeployments for usage and error information.
  1737. //
  1738. // Returned Error Codes:
  1739. // * ValidationException
  1740. // Indicates that a request was not valid.
  1741. //
  1742. // * ResourceNotFoundException
  1743. // Indicates that a resource was not found.
  1744. //
  1745. func (c *OpsWorks) DescribeDeployments(input *DescribeDeploymentsInput) (*DescribeDeploymentsOutput, error) {
  1746. req, out := c.DescribeDeploymentsRequest(input)
  1747. err := req.Send()
  1748. return out, err
  1749. }
  1750. const opDescribeEcsClusters = "DescribeEcsClusters"
  1751. // DescribeEcsClustersRequest generates a "aws/request.Request" representing the
  1752. // client's request for the DescribeEcsClusters operation. The "output" return
  1753. // value can be used to capture response data after the request's "Send" method
  1754. // is called.
  1755. //
  1756. // See DescribeEcsClusters for usage and error information.
  1757. //
  1758. // Creating a request object using this method should be used when you want to inject
  1759. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1760. // access properties on the request object before or after sending the request. If
  1761. // you just want the service response, call the DescribeEcsClusters method directly
  1762. // instead.
  1763. //
  1764. // Note: You must call the "Send" method on the returned request object in order
  1765. // to execute the request.
  1766. //
  1767. // // Example sending a request using the DescribeEcsClustersRequest method.
  1768. // req, resp := client.DescribeEcsClustersRequest(params)
  1769. //
  1770. // err := req.Send()
  1771. // if err == nil { // resp is now filled
  1772. // fmt.Println(resp)
  1773. // }
  1774. //
  1775. func (c *OpsWorks) DescribeEcsClustersRequest(input *DescribeEcsClustersInput) (req *request.Request, output *DescribeEcsClustersOutput) {
  1776. op := &request.Operation{
  1777. Name: opDescribeEcsClusters,
  1778. HTTPMethod: "POST",
  1779. HTTPPath: "/",
  1780. Paginator: &request.Paginator{
  1781. InputTokens: []string{"NextToken"},
  1782. OutputTokens: []string{"NextToken"},
  1783. LimitToken: "MaxResults",
  1784. TruncationToken: "",
  1785. },
  1786. }
  1787. if input == nil {
  1788. input = &DescribeEcsClustersInput{}
  1789. }
  1790. req = c.newRequest(op, input, output)
  1791. output = &DescribeEcsClustersOutput{}
  1792. req.Data = output
  1793. return
  1794. }
  1795. // DescribeEcsClusters API operation for AWS OpsWorks.
  1796. //
  1797. // Describes Amazon ECS clusters that are registered with a stack. If you specify
  1798. // only a stack ID, you can use the MaxResults and NextToken parameters to paginate
  1799. // the response. However, AWS OpsWorks currently supports only one cluster per
  1800. // layer, so the result set has a maximum of one element.
  1801. //
  1802. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  1803. // or Manage permissions level for the stack or an attached policy that explicitly
  1804. // grants permission. For more information on user permissions, see Managing
  1805. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1806. //
  1807. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1808. // with awserr.Error's Code and Message methods to get detailed information about
  1809. // the error.
  1810. //
  1811. // See the AWS API reference guide for AWS OpsWorks's
  1812. // API operation DescribeEcsClusters for usage and error information.
  1813. //
  1814. // Returned Error Codes:
  1815. // * ValidationException
  1816. // Indicates that a request was not valid.
  1817. //
  1818. // * ResourceNotFoundException
  1819. // Indicates that a resource was not found.
  1820. //
  1821. func (c *OpsWorks) DescribeEcsClusters(input *DescribeEcsClustersInput) (*DescribeEcsClustersOutput, error) {
  1822. req, out := c.DescribeEcsClustersRequest(input)
  1823. err := req.Send()
  1824. return out, err
  1825. }
  1826. // DescribeEcsClustersPages iterates over the pages of a DescribeEcsClusters operation,
  1827. // calling the "fn" function with the response data for each page. To stop
  1828. // iterating, return false from the fn function.
  1829. //
  1830. // See DescribeEcsClusters method for more information on how to use this operation.
  1831. //
  1832. // Note: This operation can generate multiple requests to a service.
  1833. //
  1834. // // Example iterating over at most 3 pages of a DescribeEcsClusters operation.
  1835. // pageNum := 0
  1836. // err := client.DescribeEcsClustersPages(params,
  1837. // func(page *DescribeEcsClustersOutput, lastPage bool) bool {
  1838. // pageNum++
  1839. // fmt.Println(page)
  1840. // return pageNum <= 3
  1841. // })
  1842. //
  1843. func (c *OpsWorks) DescribeEcsClustersPages(input *DescribeEcsClustersInput, fn func(p *DescribeEcsClustersOutput, lastPage bool) (shouldContinue bool)) error {
  1844. page, _ := c.DescribeEcsClustersRequest(input)
  1845. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1846. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1847. return fn(p.(*DescribeEcsClustersOutput), lastPage)
  1848. })
  1849. }
  1850. const opDescribeElasticIps = "DescribeElasticIps"
  1851. // DescribeElasticIpsRequest generates a "aws/request.Request" representing the
  1852. // client's request for the DescribeElasticIps operation. The "output" return
  1853. // value can be used to capture response data after the request's "Send" method
  1854. // is called.
  1855. //
  1856. // See DescribeElasticIps for usage and error information.
  1857. //
  1858. // Creating a request object using this method should be used when you want to inject
  1859. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1860. // access properties on the request object before or after sending the request. If
  1861. // you just want the service response, call the DescribeElasticIps method directly
  1862. // instead.
  1863. //
  1864. // Note: You must call the "Send" method on the returned request object in order
  1865. // to execute the request.
  1866. //
  1867. // // Example sending a request using the DescribeElasticIpsRequest method.
  1868. // req, resp := client.DescribeElasticIpsRequest(params)
  1869. //
  1870. // err := req.Send()
  1871. // if err == nil { // resp is now filled
  1872. // fmt.Println(resp)
  1873. // }
  1874. //
  1875. func (c *OpsWorks) DescribeElasticIpsRequest(input *DescribeElasticIpsInput) (req *request.Request, output *DescribeElasticIpsOutput) {
  1876. op := &request.Operation{
  1877. Name: opDescribeElasticIps,
  1878. HTTPMethod: "POST",
  1879. HTTPPath: "/",
  1880. }
  1881. if input == nil {
  1882. input = &DescribeElasticIpsInput{}
  1883. }
  1884. req = c.newRequest(op, input, output)
  1885. output = &DescribeElasticIpsOutput{}
  1886. req.Data = output
  1887. return
  1888. }
  1889. // DescribeElasticIps API operation for AWS OpsWorks.
  1890. //
  1891. // Describes Elastic IP addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html).
  1892. //
  1893. // You must specify at least one of the parameters.
  1894. //
  1895. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  1896. // or Manage permissions level for the stack, or an attached policy that explicitly
  1897. // grants permissions. For more information on user permissions, see Managing
  1898. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1899. //
  1900. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1901. // with awserr.Error's Code and Message methods to get detailed information about
  1902. // the error.
  1903. //
  1904. // See the AWS API reference guide for AWS OpsWorks's
  1905. // API operation DescribeElasticIps for usage and error information.
  1906. //
  1907. // Returned Error Codes:
  1908. // * ValidationException
  1909. // Indicates that a request was not valid.
  1910. //
  1911. // * ResourceNotFoundException
  1912. // Indicates that a resource was not found.
  1913. //
  1914. func (c *OpsWorks) DescribeElasticIps(input *DescribeElasticIpsInput) (*DescribeElasticIpsOutput, error) {
  1915. req, out := c.DescribeElasticIpsRequest(input)
  1916. err := req.Send()
  1917. return out, err
  1918. }
  1919. const opDescribeElasticLoadBalancers = "DescribeElasticLoadBalancers"
  1920. // DescribeElasticLoadBalancersRequest generates a "aws/request.Request" representing the
  1921. // client's request for the DescribeElasticLoadBalancers operation. The "output" return
  1922. // value can be used to capture response data after the request's "Send" method
  1923. // is called.
  1924. //
  1925. // See DescribeElasticLoadBalancers for usage and error information.
  1926. //
  1927. // Creating a request object using this method should be used when you want to inject
  1928. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1929. // access properties on the request object before or after sending the request. If
  1930. // you just want the service response, call the DescribeElasticLoadBalancers method directly
  1931. // instead.
  1932. //
  1933. // Note: You must call the "Send" method on the returned request object in order
  1934. // to execute the request.
  1935. //
  1936. // // Example sending a request using the DescribeElasticLoadBalancersRequest method.
  1937. // req, resp := client.DescribeElasticLoadBalancersRequest(params)
  1938. //
  1939. // err := req.Send()
  1940. // if err == nil { // resp is now filled
  1941. // fmt.Println(resp)
  1942. // }
  1943. //
  1944. func (c *OpsWorks) DescribeElasticLoadBalancersRequest(input *DescribeElasticLoadBalancersInput) (req *request.Request, output *DescribeElasticLoadBalancersOutput) {
  1945. op := &request.Operation{
  1946. Name: opDescribeElasticLoadBalancers,
  1947. HTTPMethod: "POST",
  1948. HTTPPath: "/",
  1949. }
  1950. if input == nil {
  1951. input = &DescribeElasticLoadBalancersInput{}
  1952. }
  1953. req = c.newRequest(op, input, output)
  1954. output = &DescribeElasticLoadBalancersOutput{}
  1955. req.Data = output
  1956. return
  1957. }
  1958. // DescribeElasticLoadBalancers API operation for AWS OpsWorks.
  1959. //
  1960. // Describes a stack's Elastic Load Balancing instances.
  1961. //
  1962. // You must specify at least one of the parameters.
  1963. //
  1964. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  1965. // or Manage permissions level for the stack, or an attached policy that explicitly
  1966. // grants permissions. For more information on user permissions, see Managing
  1967. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1968. //
  1969. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1970. // with awserr.Error's Code and Message methods to get detailed information about
  1971. // the error.
  1972. //
  1973. // See the AWS API reference guide for AWS OpsWorks's
  1974. // API operation DescribeElasticLoadBalancers for usage and error information.
  1975. //
  1976. // Returned Error Codes:
  1977. // * ValidationException
  1978. // Indicates that a request was not valid.
  1979. //
  1980. // * ResourceNotFoundException
  1981. // Indicates that a resource was not found.
  1982. //
  1983. func (c *OpsWorks) DescribeElasticLoadBalancers(input *DescribeElasticLoadBalancersInput) (*DescribeElasticLoadBalancersOutput, error) {
  1984. req, out := c.DescribeElasticLoadBalancersRequest(input)
  1985. err := req.Send()
  1986. return out, err
  1987. }
  1988. const opDescribeInstances = "DescribeInstances"
  1989. // DescribeInstancesRequest generates a "aws/request.Request" representing the
  1990. // client's request for the DescribeInstances operation. The "output" return
  1991. // value can be used to capture response data after the request's "Send" method
  1992. // is called.
  1993. //
  1994. // See DescribeInstances for usage and error information.
  1995. //
  1996. // Creating a request object using this method should be used when you want to inject
  1997. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1998. // access properties on the request object before or after sending the request. If
  1999. // you just want the service response, call the DescribeInstances method directly
  2000. // instead.
  2001. //
  2002. // Note: You must call the "Send" method on the returned request object in order
  2003. // to execute the request.
  2004. //
  2005. // // Example sending a request using the DescribeInstancesRequest method.
  2006. // req, resp := client.DescribeInstancesRequest(params)
  2007. //
  2008. // err := req.Send()
  2009. // if err == nil { // resp is now filled
  2010. // fmt.Println(resp)
  2011. // }
  2012. //
  2013. func (c *OpsWorks) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) {
  2014. op := &request.Operation{
  2015. Name: opDescribeInstances,
  2016. HTTPMethod: "POST",
  2017. HTTPPath: "/",
  2018. }
  2019. if input == nil {
  2020. input = &DescribeInstancesInput{}
  2021. }
  2022. req = c.newRequest(op, input, output)
  2023. output = &DescribeInstancesOutput{}
  2024. req.Data = output
  2025. return
  2026. }
  2027. // DescribeInstances API operation for AWS OpsWorks.
  2028. //
  2029. // Requests a description of a set of instances.
  2030. //
  2031. // You must specify at least one of the parameters.
  2032. //
  2033. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  2034. // or Manage permissions level for the stack, or an attached policy that explicitly
  2035. // grants permissions. For more information on user permissions, see Managing
  2036. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2037. //
  2038. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2039. // with awserr.Error's Code and Message methods to get detailed information about
  2040. // the error.
  2041. //
  2042. // See the AWS API reference guide for AWS OpsWorks's
  2043. // API operation DescribeInstances for usage and error information.
  2044. //
  2045. // Returned Error Codes:
  2046. // * ValidationException
  2047. // Indicates that a request was not valid.
  2048. //
  2049. // * ResourceNotFoundException
  2050. // Indicates that a resource was not found.
  2051. //
  2052. func (c *OpsWorks) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) {
  2053. req, out := c.DescribeInstancesRequest(input)
  2054. err := req.Send()
  2055. return out, err
  2056. }
  2057. const opDescribeLayers = "DescribeLayers"
  2058. // DescribeLayersRequest generates a "aws/request.Request" representing the
  2059. // client's request for the DescribeLayers operation. The "output" return
  2060. // value can be used to capture response data after the request's "Send" method
  2061. // is called.
  2062. //
  2063. // See DescribeLayers for usage and error information.
  2064. //
  2065. // Creating a request object using this method should be used when you want to inject
  2066. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2067. // access properties on the request object before or after sending the request. If
  2068. // you just want the service response, call the DescribeLayers method directly
  2069. // instead.
  2070. //
  2071. // Note: You must call the "Send" method on the returned request object in order
  2072. // to execute the request.
  2073. //
  2074. // // Example sending a request using the DescribeLayersRequest method.
  2075. // req, resp := client.DescribeLayersRequest(params)
  2076. //
  2077. // err := req.Send()
  2078. // if err == nil { // resp is now filled
  2079. // fmt.Println(resp)
  2080. // }
  2081. //
  2082. func (c *OpsWorks) DescribeLayersRequest(input *DescribeLayersInput) (req *request.Request, output *DescribeLayersOutput) {
  2083. op := &request.Operation{
  2084. Name: opDescribeLayers,
  2085. HTTPMethod: "POST",
  2086. HTTPPath: "/",
  2087. }
  2088. if input == nil {
  2089. input = &DescribeLayersInput{}
  2090. }
  2091. req = c.newRequest(op, input, output)
  2092. output = &DescribeLayersOutput{}
  2093. req.Data = output
  2094. return
  2095. }
  2096. // DescribeLayers API operation for AWS OpsWorks.
  2097. //
  2098. // Requests a description of one or more layers in a specified stack.
  2099. //
  2100. // You must specify at least one of the parameters.
  2101. //
  2102. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  2103. // or Manage permissions level for the stack, or an attached policy that explicitly
  2104. // grants permissions. For more information on user permissions, see Managing
  2105. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2106. //
  2107. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2108. // with awserr.Error's Code and Message methods to get detailed information about
  2109. // the error.
  2110. //
  2111. // See the AWS API reference guide for AWS OpsWorks's
  2112. // API operation DescribeLayers for usage and error information.
  2113. //
  2114. // Returned Error Codes:
  2115. // * ValidationException
  2116. // Indicates that a request was not valid.
  2117. //
  2118. // * ResourceNotFoundException
  2119. // Indicates that a resource was not found.
  2120. //
  2121. func (c *OpsWorks) DescribeLayers(input *DescribeLayersInput) (*DescribeLayersOutput, error) {
  2122. req, out := c.DescribeLayersRequest(input)
  2123. err := req.Send()
  2124. return out, err
  2125. }
  2126. const opDescribeLoadBasedAutoScaling = "DescribeLoadBasedAutoScaling"
  2127. // DescribeLoadBasedAutoScalingRequest generates a "aws/request.Request" representing the
  2128. // client's request for the DescribeLoadBasedAutoScaling operation. The "output" return
  2129. // value can be used to capture response data after the request's "Send" method
  2130. // is called.
  2131. //
  2132. // See DescribeLoadBasedAutoScaling for usage and error information.
  2133. //
  2134. // Creating a request object using this method should be used when you want to inject
  2135. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2136. // access properties on the request object before or after sending the request. If
  2137. // you just want the service response, call the DescribeLoadBasedAutoScaling method directly
  2138. // instead.
  2139. //
  2140. // Note: You must call the "Send" method on the returned request object in order
  2141. // to execute the request.
  2142. //
  2143. // // Example sending a request using the DescribeLoadBasedAutoScalingRequest method.
  2144. // req, resp := client.DescribeLoadBasedAutoScalingRequest(params)
  2145. //
  2146. // err := req.Send()
  2147. // if err == nil { // resp is now filled
  2148. // fmt.Println(resp)
  2149. // }
  2150. //
  2151. func (c *OpsWorks) DescribeLoadBasedAutoScalingRequest(input *DescribeLoadBasedAutoScalingInput) (req *request.Request, output *DescribeLoadBasedAutoScalingOutput) {
  2152. op := &request.Operation{
  2153. Name: opDescribeLoadBasedAutoScaling,
  2154. HTTPMethod: "POST",
  2155. HTTPPath: "/",
  2156. }
  2157. if input == nil {
  2158. input = &DescribeLoadBasedAutoScalingInput{}
  2159. }
  2160. req = c.newRequest(op, input, output)
  2161. output = &DescribeLoadBasedAutoScalingOutput{}
  2162. req.Data = output
  2163. return
  2164. }
  2165. // DescribeLoadBasedAutoScaling API operation for AWS OpsWorks.
  2166. //
  2167. // Describes load-based auto scaling configurations for specified layers.
  2168. //
  2169. // You must specify at least one of the parameters.
  2170. //
  2171. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  2172. // or Manage permissions level for the stack, or an attached policy that explicitly
  2173. // grants permissions. For more information on user permissions, see Managing
  2174. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2175. //
  2176. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2177. // with awserr.Error's Code and Message methods to get detailed information about
  2178. // the error.
  2179. //
  2180. // See the AWS API reference guide for AWS OpsWorks's
  2181. // API operation DescribeLoadBasedAutoScaling for usage and error information.
  2182. //
  2183. // Returned Error Codes:
  2184. // * ValidationException
  2185. // Indicates that a request was not valid.
  2186. //
  2187. // * ResourceNotFoundException
  2188. // Indicates that a resource was not found.
  2189. //
  2190. func (c *OpsWorks) DescribeLoadBasedAutoScaling(input *DescribeLoadBasedAutoScalingInput) (*DescribeLoadBasedAutoScalingOutput, error) {
  2191. req, out := c.DescribeLoadBasedAutoScalingRequest(input)
  2192. err := req.Send()
  2193. return out, err
  2194. }
  2195. const opDescribeMyUserProfile = "DescribeMyUserProfile"
  2196. // DescribeMyUserProfileRequest generates a "aws/request.Request" representing the
  2197. // client's request for the DescribeMyUserProfile operation. The "output" return
  2198. // value can be used to capture response data after the request's "Send" method
  2199. // is called.
  2200. //
  2201. // See DescribeMyUserProfile for usage and error information.
  2202. //
  2203. // Creating a request object using this method should be used when you want to inject
  2204. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2205. // access properties on the request object before or after sending the request. If
  2206. // you just want the service response, call the DescribeMyUserProfile method directly
  2207. // instead.
  2208. //
  2209. // Note: You must call the "Send" method on the returned request object in order
  2210. // to execute the request.
  2211. //
  2212. // // Example sending a request using the DescribeMyUserProfileRequest method.
  2213. // req, resp := client.DescribeMyUserProfileRequest(params)
  2214. //
  2215. // err := req.Send()
  2216. // if err == nil { // resp is now filled
  2217. // fmt.Println(resp)
  2218. // }
  2219. //
  2220. func (c *OpsWorks) DescribeMyUserProfileRequest(input *DescribeMyUserProfileInput) (req *request.Request, output *DescribeMyUserProfileOutput) {
  2221. op := &request.Operation{
  2222. Name: opDescribeMyUserProfile,
  2223. HTTPMethod: "POST",
  2224. HTTPPath: "/",
  2225. }
  2226. if input == nil {
  2227. input = &DescribeMyUserProfileInput{}
  2228. }
  2229. req = c.newRequest(op, input, output)
  2230. output = &DescribeMyUserProfileOutput{}
  2231. req.Data = output
  2232. return
  2233. }
  2234. // DescribeMyUserProfile API operation for AWS OpsWorks.
  2235. //
  2236. // Describes a user's SSH information.
  2237. //
  2238. // Required Permissions: To use this action, an IAM user must have self-management
  2239. // enabled or an attached policy that explicitly grants permissions. For more
  2240. // information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2241. //
  2242. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2243. // with awserr.Error's Code and Message methods to get detailed information about
  2244. // the error.
  2245. //
  2246. // See the AWS API reference guide for AWS OpsWorks's
  2247. // API operation DescribeMyUserProfile for usage and error information.
  2248. func (c *OpsWorks) DescribeMyUserProfile(input *DescribeMyUserProfileInput) (*DescribeMyUserProfileOutput, error) {
  2249. req, out := c.DescribeMyUserProfileRequest(input)
  2250. err := req.Send()
  2251. return out, err
  2252. }
  2253. const opDescribePermissions = "DescribePermissions"
  2254. // DescribePermissionsRequest generates a "aws/request.Request" representing the
  2255. // client's request for the DescribePermissions operation. The "output" return
  2256. // value can be used to capture response data after the request's "Send" method
  2257. // is called.
  2258. //
  2259. // See DescribePermissions for usage and error information.
  2260. //
  2261. // Creating a request object using this method should be used when you want to inject
  2262. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2263. // access properties on the request object before or after sending the request. If
  2264. // you just want the service response, call the DescribePermissions method directly
  2265. // instead.
  2266. //
  2267. // Note: You must call the "Send" method on the returned request object in order
  2268. // to execute the request.
  2269. //
  2270. // // Example sending a request using the DescribePermissionsRequest method.
  2271. // req, resp := client.DescribePermissionsRequest(params)
  2272. //
  2273. // err := req.Send()
  2274. // if err == nil { // resp is now filled
  2275. // fmt.Println(resp)
  2276. // }
  2277. //
  2278. func (c *OpsWorks) DescribePermissionsRequest(input *DescribePermissionsInput) (req *request.Request, output *DescribePermissionsOutput) {
  2279. op := &request.Operation{
  2280. Name: opDescribePermissions,
  2281. HTTPMethod: "POST",
  2282. HTTPPath: "/",
  2283. }
  2284. if input == nil {
  2285. input = &DescribePermissionsInput{}
  2286. }
  2287. req = c.newRequest(op, input, output)
  2288. output = &DescribePermissionsOutput{}
  2289. req.Data = output
  2290. return
  2291. }
  2292. // DescribePermissions API operation for AWS OpsWorks.
  2293. //
  2294. // Describes the permissions for a specified stack.
  2295. //
  2296. // Required Permissions: To use this action, an IAM user must have a Manage
  2297. // permissions level for the stack, or an attached policy that explicitly grants
  2298. // permissions. For more information on user permissions, see Managing User
  2299. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2300. //
  2301. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2302. // with awserr.Error's Code and Message methods to get detailed information about
  2303. // the error.
  2304. //
  2305. // See the AWS API reference guide for AWS OpsWorks's
  2306. // API operation DescribePermissions for usage and error information.
  2307. //
  2308. // Returned Error Codes:
  2309. // * ValidationException
  2310. // Indicates that a request was not valid.
  2311. //
  2312. // * ResourceNotFoundException
  2313. // Indicates that a resource was not found.
  2314. //
  2315. func (c *OpsWorks) DescribePermissions(input *DescribePermissionsInput) (*DescribePermissionsOutput, error) {
  2316. req, out := c.DescribePermissionsRequest(input)
  2317. err := req.Send()
  2318. return out, err
  2319. }
  2320. const opDescribeRaidArrays = "DescribeRaidArrays"
  2321. // DescribeRaidArraysRequest generates a "aws/request.Request" representing the
  2322. // client's request for the DescribeRaidArrays operation. The "output" return
  2323. // value can be used to capture response data after the request's "Send" method
  2324. // is called.
  2325. //
  2326. // See DescribeRaidArrays for usage and error information.
  2327. //
  2328. // Creating a request object using this method should be used when you want to inject
  2329. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2330. // access properties on the request object before or after sending the request. If
  2331. // you just want the service response, call the DescribeRaidArrays method directly
  2332. // instead.
  2333. //
  2334. // Note: You must call the "Send" method on the returned request object in order
  2335. // to execute the request.
  2336. //
  2337. // // Example sending a request using the DescribeRaidArraysRequest method.
  2338. // req, resp := client.DescribeRaidArraysRequest(params)
  2339. //
  2340. // err := req.Send()
  2341. // if err == nil { // resp is now filled
  2342. // fmt.Println(resp)
  2343. // }
  2344. //
  2345. func (c *OpsWorks) DescribeRaidArraysRequest(input *DescribeRaidArraysInput) (req *request.Request, output *DescribeRaidArraysOutput) {
  2346. op := &request.Operation{
  2347. Name: opDescribeRaidArrays,
  2348. HTTPMethod: "POST",
  2349. HTTPPath: "/",
  2350. }
  2351. if input == nil {
  2352. input = &DescribeRaidArraysInput{}
  2353. }
  2354. req = c.newRequest(op, input, output)
  2355. output = &DescribeRaidArraysOutput{}
  2356. req.Data = output
  2357. return
  2358. }
  2359. // DescribeRaidArrays API operation for AWS OpsWorks.
  2360. //
  2361. // Describe an instance's RAID arrays.
  2362. //
  2363. // You must specify at least one of the parameters.
  2364. //
  2365. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  2366. // or Manage permissions level for the stack, or an attached policy that explicitly
  2367. // grants permissions. For more information on user permissions, see Managing
  2368. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2369. //
  2370. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2371. // with awserr.Error's Code and Message methods to get detailed information about
  2372. // the error.
  2373. //
  2374. // See the AWS API reference guide for AWS OpsWorks's
  2375. // API operation DescribeRaidArrays for usage and error information.
  2376. //
  2377. // Returned Error Codes:
  2378. // * ValidationException
  2379. // Indicates that a request was not valid.
  2380. //
  2381. // * ResourceNotFoundException
  2382. // Indicates that a resource was not found.
  2383. //
  2384. func (c *OpsWorks) DescribeRaidArrays(input *DescribeRaidArraysInput) (*DescribeRaidArraysOutput, error) {
  2385. req, out := c.DescribeRaidArraysRequest(input)
  2386. err := req.Send()
  2387. return out, err
  2388. }
  2389. const opDescribeRdsDbInstances = "DescribeRdsDbInstances"
  2390. // DescribeRdsDbInstancesRequest generates a "aws/request.Request" representing the
  2391. // client's request for the DescribeRdsDbInstances operation. The "output" return
  2392. // value can be used to capture response data after the request's "Send" method
  2393. // is called.
  2394. //
  2395. // See DescribeRdsDbInstances for usage and error information.
  2396. //
  2397. // Creating a request object using this method should be used when you want to inject
  2398. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2399. // access properties on the request object before or after sending the request. If
  2400. // you just want the service response, call the DescribeRdsDbInstances method directly
  2401. // instead.
  2402. //
  2403. // Note: You must call the "Send" method on the returned request object in order
  2404. // to execute the request.
  2405. //
  2406. // // Example sending a request using the DescribeRdsDbInstancesRequest method.
  2407. // req, resp := client.DescribeRdsDbInstancesRequest(params)
  2408. //
  2409. // err := req.Send()
  2410. // if err == nil { // resp is now filled
  2411. // fmt.Println(resp)
  2412. // }
  2413. //
  2414. func (c *OpsWorks) DescribeRdsDbInstancesRequest(input *DescribeRdsDbInstancesInput) (req *request.Request, output *DescribeRdsDbInstancesOutput) {
  2415. op := &request.Operation{
  2416. Name: opDescribeRdsDbInstances,
  2417. HTTPMethod: "POST",
  2418. HTTPPath: "/",
  2419. }
  2420. if input == nil {
  2421. input = &DescribeRdsDbInstancesInput{}
  2422. }
  2423. req = c.newRequest(op, input, output)
  2424. output = &DescribeRdsDbInstancesOutput{}
  2425. req.Data = output
  2426. return
  2427. }
  2428. // DescribeRdsDbInstances API operation for AWS OpsWorks.
  2429. //
  2430. // Describes Amazon RDS instances.
  2431. //
  2432. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  2433. // or Manage permissions level for the stack, or an attached policy that explicitly
  2434. // grants permissions. For more information on user permissions, see Managing
  2435. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2436. //
  2437. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2438. // with awserr.Error's Code and Message methods to get detailed information about
  2439. // the error.
  2440. //
  2441. // See the AWS API reference guide for AWS OpsWorks's
  2442. // API operation DescribeRdsDbInstances for usage and error information.
  2443. //
  2444. // Returned Error Codes:
  2445. // * ValidationException
  2446. // Indicates that a request was not valid.
  2447. //
  2448. // * ResourceNotFoundException
  2449. // Indicates that a resource was not found.
  2450. //
  2451. func (c *OpsWorks) DescribeRdsDbInstances(input *DescribeRdsDbInstancesInput) (*DescribeRdsDbInstancesOutput, error) {
  2452. req, out := c.DescribeRdsDbInstancesRequest(input)
  2453. err := req.Send()
  2454. return out, err
  2455. }
  2456. const opDescribeServiceErrors = "DescribeServiceErrors"
  2457. // DescribeServiceErrorsRequest generates a "aws/request.Request" representing the
  2458. // client's request for the DescribeServiceErrors operation. The "output" return
  2459. // value can be used to capture response data after the request's "Send" method
  2460. // is called.
  2461. //
  2462. // See DescribeServiceErrors for usage and error information.
  2463. //
  2464. // Creating a request object using this method should be used when you want to inject
  2465. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2466. // access properties on the request object before or after sending the request. If
  2467. // you just want the service response, call the DescribeServiceErrors method directly
  2468. // instead.
  2469. //
  2470. // Note: You must call the "Send" method on the returned request object in order
  2471. // to execute the request.
  2472. //
  2473. // // Example sending a request using the DescribeServiceErrorsRequest method.
  2474. // req, resp := client.DescribeServiceErrorsRequest(params)
  2475. //
  2476. // err := req.Send()
  2477. // if err == nil { // resp is now filled
  2478. // fmt.Println(resp)
  2479. // }
  2480. //
  2481. func (c *OpsWorks) DescribeServiceErrorsRequest(input *DescribeServiceErrorsInput) (req *request.Request, output *DescribeServiceErrorsOutput) {
  2482. op := &request.Operation{
  2483. Name: opDescribeServiceErrors,
  2484. HTTPMethod: "POST",
  2485. HTTPPath: "/",
  2486. }
  2487. if input == nil {
  2488. input = &DescribeServiceErrorsInput{}
  2489. }
  2490. req = c.newRequest(op, input, output)
  2491. output = &DescribeServiceErrorsOutput{}
  2492. req.Data = output
  2493. return
  2494. }
  2495. // DescribeServiceErrors API operation for AWS OpsWorks.
  2496. //
  2497. // Describes AWS OpsWorks service errors.
  2498. //
  2499. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  2500. // or Manage permissions level for the stack, or an attached policy that explicitly
  2501. // grants permissions. For more information on user permissions, see Managing
  2502. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2503. //
  2504. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2505. // with awserr.Error's Code and Message methods to get detailed information about
  2506. // the error.
  2507. //
  2508. // See the AWS API reference guide for AWS OpsWorks's
  2509. // API operation DescribeServiceErrors for usage and error information.
  2510. //
  2511. // Returned Error Codes:
  2512. // * ValidationException
  2513. // Indicates that a request was not valid.
  2514. //
  2515. // * ResourceNotFoundException
  2516. // Indicates that a resource was not found.
  2517. //
  2518. func (c *OpsWorks) DescribeServiceErrors(input *DescribeServiceErrorsInput) (*DescribeServiceErrorsOutput, error) {
  2519. req, out := c.DescribeServiceErrorsRequest(input)
  2520. err := req.Send()
  2521. return out, err
  2522. }
  2523. const opDescribeStackProvisioningParameters = "DescribeStackProvisioningParameters"
  2524. // DescribeStackProvisioningParametersRequest generates a "aws/request.Request" representing the
  2525. // client's request for the DescribeStackProvisioningParameters operation. The "output" return
  2526. // value can be used to capture response data after the request's "Send" method
  2527. // is called.
  2528. //
  2529. // See DescribeStackProvisioningParameters for usage and error information.
  2530. //
  2531. // Creating a request object using this method should be used when you want to inject
  2532. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2533. // access properties on the request object before or after sending the request. If
  2534. // you just want the service response, call the DescribeStackProvisioningParameters method directly
  2535. // instead.
  2536. //
  2537. // Note: You must call the "Send" method on the returned request object in order
  2538. // to execute the request.
  2539. //
  2540. // // Example sending a request using the DescribeStackProvisioningParametersRequest method.
  2541. // req, resp := client.DescribeStackProvisioningParametersRequest(params)
  2542. //
  2543. // err := req.Send()
  2544. // if err == nil { // resp is now filled
  2545. // fmt.Println(resp)
  2546. // }
  2547. //
  2548. func (c *OpsWorks) DescribeStackProvisioningParametersRequest(input *DescribeStackProvisioningParametersInput) (req *request.Request, output *DescribeStackProvisioningParametersOutput) {
  2549. op := &request.Operation{
  2550. Name: opDescribeStackProvisioningParameters,
  2551. HTTPMethod: "POST",
  2552. HTTPPath: "/",
  2553. }
  2554. if input == nil {
  2555. input = &DescribeStackProvisioningParametersInput{}
  2556. }
  2557. req = c.newRequest(op, input, output)
  2558. output = &DescribeStackProvisioningParametersOutput{}
  2559. req.Data = output
  2560. return
  2561. }
  2562. // DescribeStackProvisioningParameters API operation for AWS OpsWorks.
  2563. //
  2564. // Requests a description of a stack's provisioning parameters.
  2565. //
  2566. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  2567. // or Manage permissions level for the stack or an attached policy that explicitly
  2568. // grants permissions. For more information on user permissions, see Managing
  2569. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2570. //
  2571. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2572. // with awserr.Error's Code and Message methods to get detailed information about
  2573. // the error.
  2574. //
  2575. // See the AWS API reference guide for AWS OpsWorks's
  2576. // API operation DescribeStackProvisioningParameters for usage and error information.
  2577. //
  2578. // Returned Error Codes:
  2579. // * ValidationException
  2580. // Indicates that a request was not valid.
  2581. //
  2582. // * ResourceNotFoundException
  2583. // Indicates that a resource was not found.
  2584. //
  2585. func (c *OpsWorks) DescribeStackProvisioningParameters(input *DescribeStackProvisioningParametersInput) (*DescribeStackProvisioningParametersOutput, error) {
  2586. req, out := c.DescribeStackProvisioningParametersRequest(input)
  2587. err := req.Send()
  2588. return out, err
  2589. }
  2590. const opDescribeStackSummary = "DescribeStackSummary"
  2591. // DescribeStackSummaryRequest generates a "aws/request.Request" representing the
  2592. // client's request for the DescribeStackSummary operation. The "output" return
  2593. // value can be used to capture response data after the request's "Send" method
  2594. // is called.
  2595. //
  2596. // See DescribeStackSummary for usage and error information.
  2597. //
  2598. // Creating a request object using this method should be used when you want to inject
  2599. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2600. // access properties on the request object before or after sending the request. If
  2601. // you just want the service response, call the DescribeStackSummary method directly
  2602. // instead.
  2603. //
  2604. // Note: You must call the "Send" method on the returned request object in order
  2605. // to execute the request.
  2606. //
  2607. // // Example sending a request using the DescribeStackSummaryRequest method.
  2608. // req, resp := client.DescribeStackSummaryRequest(params)
  2609. //
  2610. // err := req.Send()
  2611. // if err == nil { // resp is now filled
  2612. // fmt.Println(resp)
  2613. // }
  2614. //
  2615. func (c *OpsWorks) DescribeStackSummaryRequest(input *DescribeStackSummaryInput) (req *request.Request, output *DescribeStackSummaryOutput) {
  2616. op := &request.Operation{
  2617. Name: opDescribeStackSummary,
  2618. HTTPMethod: "POST",
  2619. HTTPPath: "/",
  2620. }
  2621. if input == nil {
  2622. input = &DescribeStackSummaryInput{}
  2623. }
  2624. req = c.newRequest(op, input, output)
  2625. output = &DescribeStackSummaryOutput{}
  2626. req.Data = output
  2627. return
  2628. }
  2629. // DescribeStackSummary API operation for AWS OpsWorks.
  2630. //
  2631. // Describes the number of layers and apps in a specified stack, and the number
  2632. // of instances in each state, such as running_setup or online.
  2633. //
  2634. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  2635. // or Manage permissions level for the stack, or an attached policy that explicitly
  2636. // grants permissions. For more information on user permissions, see Managing
  2637. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2638. //
  2639. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2640. // with awserr.Error's Code and Message methods to get detailed information about
  2641. // the error.
  2642. //
  2643. // See the AWS API reference guide for AWS OpsWorks's
  2644. // API operation DescribeStackSummary for usage and error information.
  2645. //
  2646. // Returned Error Codes:
  2647. // * ValidationException
  2648. // Indicates that a request was not valid.
  2649. //
  2650. // * ResourceNotFoundException
  2651. // Indicates that a resource was not found.
  2652. //
  2653. func (c *OpsWorks) DescribeStackSummary(input *DescribeStackSummaryInput) (*DescribeStackSummaryOutput, error) {
  2654. req, out := c.DescribeStackSummaryRequest(input)
  2655. err := req.Send()
  2656. return out, err
  2657. }
  2658. const opDescribeStacks = "DescribeStacks"
  2659. // DescribeStacksRequest generates a "aws/request.Request" representing the
  2660. // client's request for the DescribeStacks operation. The "output" return
  2661. // value can be used to capture response data after the request's "Send" method
  2662. // is called.
  2663. //
  2664. // See DescribeStacks for usage and error information.
  2665. //
  2666. // Creating a request object using this method should be used when you want to inject
  2667. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2668. // access properties on the request object before or after sending the request. If
  2669. // you just want the service response, call the DescribeStacks method directly
  2670. // instead.
  2671. //
  2672. // Note: You must call the "Send" method on the returned request object in order
  2673. // to execute the request.
  2674. //
  2675. // // Example sending a request using the DescribeStacksRequest method.
  2676. // req, resp := client.DescribeStacksRequest(params)
  2677. //
  2678. // err := req.Send()
  2679. // if err == nil { // resp is now filled
  2680. // fmt.Println(resp)
  2681. // }
  2682. //
  2683. func (c *OpsWorks) DescribeStacksRequest(input *DescribeStacksInput) (req *request.Request, output *DescribeStacksOutput) {
  2684. op := &request.Operation{
  2685. Name: opDescribeStacks,
  2686. HTTPMethod: "POST",
  2687. HTTPPath: "/",
  2688. }
  2689. if input == nil {
  2690. input = &DescribeStacksInput{}
  2691. }
  2692. req = c.newRequest(op, input, output)
  2693. output = &DescribeStacksOutput{}
  2694. req.Data = output
  2695. return
  2696. }
  2697. // DescribeStacks API operation for AWS OpsWorks.
  2698. //
  2699. // Requests a description of one or more stacks.
  2700. //
  2701. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  2702. // or Manage permissions level for the stack, or an attached policy that explicitly
  2703. // grants permissions. For more information on user permissions, see Managing
  2704. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2705. //
  2706. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2707. // with awserr.Error's Code and Message methods to get detailed information about
  2708. // the error.
  2709. //
  2710. // See the AWS API reference guide for AWS OpsWorks's
  2711. // API operation DescribeStacks for usage and error information.
  2712. //
  2713. // Returned Error Codes:
  2714. // * ValidationException
  2715. // Indicates that a request was not valid.
  2716. //
  2717. // * ResourceNotFoundException
  2718. // Indicates that a resource was not found.
  2719. //
  2720. func (c *OpsWorks) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) {
  2721. req, out := c.DescribeStacksRequest(input)
  2722. err := req.Send()
  2723. return out, err
  2724. }
  2725. const opDescribeTimeBasedAutoScaling = "DescribeTimeBasedAutoScaling"
  2726. // DescribeTimeBasedAutoScalingRequest generates a "aws/request.Request" representing the
  2727. // client's request for the DescribeTimeBasedAutoScaling operation. The "output" return
  2728. // value can be used to capture response data after the request's "Send" method
  2729. // is called.
  2730. //
  2731. // See DescribeTimeBasedAutoScaling for usage and error information.
  2732. //
  2733. // Creating a request object using this method should be used when you want to inject
  2734. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2735. // access properties on the request object before or after sending the request. If
  2736. // you just want the service response, call the DescribeTimeBasedAutoScaling method directly
  2737. // instead.
  2738. //
  2739. // Note: You must call the "Send" method on the returned request object in order
  2740. // to execute the request.
  2741. //
  2742. // // Example sending a request using the DescribeTimeBasedAutoScalingRequest method.
  2743. // req, resp := client.DescribeTimeBasedAutoScalingRequest(params)
  2744. //
  2745. // err := req.Send()
  2746. // if err == nil { // resp is now filled
  2747. // fmt.Println(resp)
  2748. // }
  2749. //
  2750. func (c *OpsWorks) DescribeTimeBasedAutoScalingRequest(input *DescribeTimeBasedAutoScalingInput) (req *request.Request, output *DescribeTimeBasedAutoScalingOutput) {
  2751. op := &request.Operation{
  2752. Name: opDescribeTimeBasedAutoScaling,
  2753. HTTPMethod: "POST",
  2754. HTTPPath: "/",
  2755. }
  2756. if input == nil {
  2757. input = &DescribeTimeBasedAutoScalingInput{}
  2758. }
  2759. req = c.newRequest(op, input, output)
  2760. output = &DescribeTimeBasedAutoScalingOutput{}
  2761. req.Data = output
  2762. return
  2763. }
  2764. // DescribeTimeBasedAutoScaling API operation for AWS OpsWorks.
  2765. //
  2766. // Describes time-based auto scaling configurations for specified instances.
  2767. //
  2768. // You must specify at least one of the parameters.
  2769. //
  2770. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  2771. // or Manage permissions level for the stack, or an attached policy that explicitly
  2772. // grants permissions. For more information on user permissions, see Managing
  2773. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2774. //
  2775. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2776. // with awserr.Error's Code and Message methods to get detailed information about
  2777. // the error.
  2778. //
  2779. // See the AWS API reference guide for AWS OpsWorks's
  2780. // API operation DescribeTimeBasedAutoScaling for usage and error information.
  2781. //
  2782. // Returned Error Codes:
  2783. // * ValidationException
  2784. // Indicates that a request was not valid.
  2785. //
  2786. // * ResourceNotFoundException
  2787. // Indicates that a resource was not found.
  2788. //
  2789. func (c *OpsWorks) DescribeTimeBasedAutoScaling(input *DescribeTimeBasedAutoScalingInput) (*DescribeTimeBasedAutoScalingOutput, error) {
  2790. req, out := c.DescribeTimeBasedAutoScalingRequest(input)
  2791. err := req.Send()
  2792. return out, err
  2793. }
  2794. const opDescribeUserProfiles = "DescribeUserProfiles"
  2795. // DescribeUserProfilesRequest generates a "aws/request.Request" representing the
  2796. // client's request for the DescribeUserProfiles operation. The "output" return
  2797. // value can be used to capture response data after the request's "Send" method
  2798. // is called.
  2799. //
  2800. // See DescribeUserProfiles for usage and error information.
  2801. //
  2802. // Creating a request object using this method should be used when you want to inject
  2803. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2804. // access properties on the request object before or after sending the request. If
  2805. // you just want the service response, call the DescribeUserProfiles method directly
  2806. // instead.
  2807. //
  2808. // Note: You must call the "Send" method on the returned request object in order
  2809. // to execute the request.
  2810. //
  2811. // // Example sending a request using the DescribeUserProfilesRequest method.
  2812. // req, resp := client.DescribeUserProfilesRequest(params)
  2813. //
  2814. // err := req.Send()
  2815. // if err == nil { // resp is now filled
  2816. // fmt.Println(resp)
  2817. // }
  2818. //
  2819. func (c *OpsWorks) DescribeUserProfilesRequest(input *DescribeUserProfilesInput) (req *request.Request, output *DescribeUserProfilesOutput) {
  2820. op := &request.Operation{
  2821. Name: opDescribeUserProfiles,
  2822. HTTPMethod: "POST",
  2823. HTTPPath: "/",
  2824. }
  2825. if input == nil {
  2826. input = &DescribeUserProfilesInput{}
  2827. }
  2828. req = c.newRequest(op, input, output)
  2829. output = &DescribeUserProfilesOutput{}
  2830. req.Data = output
  2831. return
  2832. }
  2833. // DescribeUserProfiles API operation for AWS OpsWorks.
  2834. //
  2835. // Describe specified users.
  2836. //
  2837. // Required Permissions: To use this action, an IAM user must have an attached
  2838. // policy that explicitly grants permissions. For more information on user permissions,
  2839. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2840. //
  2841. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2842. // with awserr.Error's Code and Message methods to get detailed information about
  2843. // the error.
  2844. //
  2845. // See the AWS API reference guide for AWS OpsWorks's
  2846. // API operation DescribeUserProfiles for usage and error information.
  2847. //
  2848. // Returned Error Codes:
  2849. // * ValidationException
  2850. // Indicates that a request was not valid.
  2851. //
  2852. // * ResourceNotFoundException
  2853. // Indicates that a resource was not found.
  2854. //
  2855. func (c *OpsWorks) DescribeUserProfiles(input *DescribeUserProfilesInput) (*DescribeUserProfilesOutput, error) {
  2856. req, out := c.DescribeUserProfilesRequest(input)
  2857. err := req.Send()
  2858. return out, err
  2859. }
  2860. const opDescribeVolumes = "DescribeVolumes"
  2861. // DescribeVolumesRequest generates a "aws/request.Request" representing the
  2862. // client's request for the DescribeVolumes operation. The "output" return
  2863. // value can be used to capture response data after the request's "Send" method
  2864. // is called.
  2865. //
  2866. // See DescribeVolumes for usage and error information.
  2867. //
  2868. // Creating a request object using this method should be used when you want to inject
  2869. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2870. // access properties on the request object before or after sending the request. If
  2871. // you just want the service response, call the DescribeVolumes method directly
  2872. // instead.
  2873. //
  2874. // Note: You must call the "Send" method on the returned request object in order
  2875. // to execute the request.
  2876. //
  2877. // // Example sending a request using the DescribeVolumesRequest method.
  2878. // req, resp := client.DescribeVolumesRequest(params)
  2879. //
  2880. // err := req.Send()
  2881. // if err == nil { // resp is now filled
  2882. // fmt.Println(resp)
  2883. // }
  2884. //
  2885. func (c *OpsWorks) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request.Request, output *DescribeVolumesOutput) {
  2886. op := &request.Operation{
  2887. Name: opDescribeVolumes,
  2888. HTTPMethod: "POST",
  2889. HTTPPath: "/",
  2890. }
  2891. if input == nil {
  2892. input = &DescribeVolumesInput{}
  2893. }
  2894. req = c.newRequest(op, input, output)
  2895. output = &DescribeVolumesOutput{}
  2896. req.Data = output
  2897. return
  2898. }
  2899. // DescribeVolumes API operation for AWS OpsWorks.
  2900. //
  2901. // Describes an instance's Amazon EBS volumes.
  2902. //
  2903. // You must specify at least one of the parameters.
  2904. //
  2905. // Required Permissions: To use this action, an IAM user must have a Show, Deploy,
  2906. // or Manage permissions level for the stack, or an attached policy that explicitly
  2907. // grants permissions. For more information on user permissions, see Managing
  2908. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2909. //
  2910. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2911. // with awserr.Error's Code and Message methods to get detailed information about
  2912. // the error.
  2913. //
  2914. // See the AWS API reference guide for AWS OpsWorks's
  2915. // API operation DescribeVolumes for usage and error information.
  2916. //
  2917. // Returned Error Codes:
  2918. // * ValidationException
  2919. // Indicates that a request was not valid.
  2920. //
  2921. // * ResourceNotFoundException
  2922. // Indicates that a resource was not found.
  2923. //
  2924. func (c *OpsWorks) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) {
  2925. req, out := c.DescribeVolumesRequest(input)
  2926. err := req.Send()
  2927. return out, err
  2928. }
  2929. const opDetachElasticLoadBalancer = "DetachElasticLoadBalancer"
  2930. // DetachElasticLoadBalancerRequest generates a "aws/request.Request" representing the
  2931. // client's request for the DetachElasticLoadBalancer operation. The "output" return
  2932. // value can be used to capture response data after the request's "Send" method
  2933. // is called.
  2934. //
  2935. // See DetachElasticLoadBalancer for usage and error information.
  2936. //
  2937. // Creating a request object using this method should be used when you want to inject
  2938. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2939. // access properties on the request object before or after sending the request. If
  2940. // you just want the service response, call the DetachElasticLoadBalancer method directly
  2941. // instead.
  2942. //
  2943. // Note: You must call the "Send" method on the returned request object in order
  2944. // to execute the request.
  2945. //
  2946. // // Example sending a request using the DetachElasticLoadBalancerRequest method.
  2947. // req, resp := client.DetachElasticLoadBalancerRequest(params)
  2948. //
  2949. // err := req.Send()
  2950. // if err == nil { // resp is now filled
  2951. // fmt.Println(resp)
  2952. // }
  2953. //
  2954. func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBalancerInput) (req *request.Request, output *DetachElasticLoadBalancerOutput) {
  2955. op := &request.Operation{
  2956. Name: opDetachElasticLoadBalancer,
  2957. HTTPMethod: "POST",
  2958. HTTPPath: "/",
  2959. }
  2960. if input == nil {
  2961. input = &DetachElasticLoadBalancerInput{}
  2962. }
  2963. req = c.newRequest(op, input, output)
  2964. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2965. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2966. output = &DetachElasticLoadBalancerOutput{}
  2967. req.Data = output
  2968. return
  2969. }
  2970. // DetachElasticLoadBalancer API operation for AWS OpsWorks.
  2971. //
  2972. // Detaches a specified Elastic Load Balancing instance from its layer.
  2973. //
  2974. // Required Permissions: To use this action, an IAM user must have a Manage
  2975. // permissions level for the stack, or an attached policy that explicitly grants
  2976. // permissions. For more information on user permissions, see Managing User
  2977. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2978. //
  2979. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2980. // with awserr.Error's Code and Message methods to get detailed information about
  2981. // the error.
  2982. //
  2983. // See the AWS API reference guide for AWS OpsWorks's
  2984. // API operation DetachElasticLoadBalancer for usage and error information.
  2985. //
  2986. // Returned Error Codes:
  2987. // * ResourceNotFoundException
  2988. // Indicates that a resource was not found.
  2989. //
  2990. func (c *OpsWorks) DetachElasticLoadBalancer(input *DetachElasticLoadBalancerInput) (*DetachElasticLoadBalancerOutput, error) {
  2991. req, out := c.DetachElasticLoadBalancerRequest(input)
  2992. err := req.Send()
  2993. return out, err
  2994. }
  2995. const opDisassociateElasticIp = "DisassociateElasticIp"
  2996. // DisassociateElasticIpRequest generates a "aws/request.Request" representing the
  2997. // client's request for the DisassociateElasticIp operation. The "output" return
  2998. // value can be used to capture response data after the request's "Send" method
  2999. // is called.
  3000. //
  3001. // See DisassociateElasticIp for usage and error information.
  3002. //
  3003. // Creating a request object using this method should be used when you want to inject
  3004. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3005. // access properties on the request object before or after sending the request. If
  3006. // you just want the service response, call the DisassociateElasticIp method directly
  3007. // instead.
  3008. //
  3009. // Note: You must call the "Send" method on the returned request object in order
  3010. // to execute the request.
  3011. //
  3012. // // Example sending a request using the DisassociateElasticIpRequest method.
  3013. // req, resp := client.DisassociateElasticIpRequest(params)
  3014. //
  3015. // err := req.Send()
  3016. // if err == nil { // resp is now filled
  3017. // fmt.Println(resp)
  3018. // }
  3019. //
  3020. func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInput) (req *request.Request, output *DisassociateElasticIpOutput) {
  3021. op := &request.Operation{
  3022. Name: opDisassociateElasticIp,
  3023. HTTPMethod: "POST",
  3024. HTTPPath: "/",
  3025. }
  3026. if input == nil {
  3027. input = &DisassociateElasticIpInput{}
  3028. }
  3029. req = c.newRequest(op, input, output)
  3030. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3031. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3032. output = &DisassociateElasticIpOutput{}
  3033. req.Data = output
  3034. return
  3035. }
  3036. // DisassociateElasticIp API operation for AWS OpsWorks.
  3037. //
  3038. // Disassociates an Elastic IP address from its instance. The address remains
  3039. // registered with the stack. For more information, see Resource Management
  3040. // (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  3041. //
  3042. // Required Permissions: To use this action, an IAM user must have a Manage
  3043. // permissions level for the stack, or an attached policy that explicitly grants
  3044. // permissions. For more information on user permissions, see Managing User
  3045. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3046. //
  3047. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3048. // with awserr.Error's Code and Message methods to get detailed information about
  3049. // the error.
  3050. //
  3051. // See the AWS API reference guide for AWS OpsWorks's
  3052. // API operation DisassociateElasticIp for usage and error information.
  3053. //
  3054. // Returned Error Codes:
  3055. // * ValidationException
  3056. // Indicates that a request was not valid.
  3057. //
  3058. // * ResourceNotFoundException
  3059. // Indicates that a resource was not found.
  3060. //
  3061. func (c *OpsWorks) DisassociateElasticIp(input *DisassociateElasticIpInput) (*DisassociateElasticIpOutput, error) {
  3062. req, out := c.DisassociateElasticIpRequest(input)
  3063. err := req.Send()
  3064. return out, err
  3065. }
  3066. const opGetHostnameSuggestion = "GetHostnameSuggestion"
  3067. // GetHostnameSuggestionRequest generates a "aws/request.Request" representing the
  3068. // client's request for the GetHostnameSuggestion operation. The "output" return
  3069. // value can be used to capture response data after the request's "Send" method
  3070. // is called.
  3071. //
  3072. // See GetHostnameSuggestion for usage and error information.
  3073. //
  3074. // Creating a request object using this method should be used when you want to inject
  3075. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3076. // access properties on the request object before or after sending the request. If
  3077. // you just want the service response, call the GetHostnameSuggestion method directly
  3078. // instead.
  3079. //
  3080. // Note: You must call the "Send" method on the returned request object in order
  3081. // to execute the request.
  3082. //
  3083. // // Example sending a request using the GetHostnameSuggestionRequest method.
  3084. // req, resp := client.GetHostnameSuggestionRequest(params)
  3085. //
  3086. // err := req.Send()
  3087. // if err == nil { // resp is now filled
  3088. // fmt.Println(resp)
  3089. // }
  3090. //
  3091. func (c *OpsWorks) GetHostnameSuggestionRequest(input *GetHostnameSuggestionInput) (req *request.Request, output *GetHostnameSuggestionOutput) {
  3092. op := &request.Operation{
  3093. Name: opGetHostnameSuggestion,
  3094. HTTPMethod: "POST",
  3095. HTTPPath: "/",
  3096. }
  3097. if input == nil {
  3098. input = &GetHostnameSuggestionInput{}
  3099. }
  3100. req = c.newRequest(op, input, output)
  3101. output = &GetHostnameSuggestionOutput{}
  3102. req.Data = output
  3103. return
  3104. }
  3105. // GetHostnameSuggestion API operation for AWS OpsWorks.
  3106. //
  3107. // Gets a generated host name for the specified layer, based on the current
  3108. // host name theme.
  3109. //
  3110. // Required Permissions: To use this action, an IAM user must have a Manage
  3111. // permissions level for the stack, or an attached policy that explicitly grants
  3112. // permissions. For more information on user permissions, see Managing User
  3113. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3114. //
  3115. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3116. // with awserr.Error's Code and Message methods to get detailed information about
  3117. // the error.
  3118. //
  3119. // See the AWS API reference guide for AWS OpsWorks's
  3120. // API operation GetHostnameSuggestion for usage and error information.
  3121. //
  3122. // Returned Error Codes:
  3123. // * ValidationException
  3124. // Indicates that a request was not valid.
  3125. //
  3126. // * ResourceNotFoundException
  3127. // Indicates that a resource was not found.
  3128. //
  3129. func (c *OpsWorks) GetHostnameSuggestion(input *GetHostnameSuggestionInput) (*GetHostnameSuggestionOutput, error) {
  3130. req, out := c.GetHostnameSuggestionRequest(input)
  3131. err := req.Send()
  3132. return out, err
  3133. }
  3134. const opGrantAccess = "GrantAccess"
  3135. // GrantAccessRequest generates a "aws/request.Request" representing the
  3136. // client's request for the GrantAccess operation. The "output" return
  3137. // value can be used to capture response data after the request's "Send" method
  3138. // is called.
  3139. //
  3140. // See GrantAccess for usage and error information.
  3141. //
  3142. // Creating a request object using this method should be used when you want to inject
  3143. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3144. // access properties on the request object before or after sending the request. If
  3145. // you just want the service response, call the GrantAccess method directly
  3146. // instead.
  3147. //
  3148. // Note: You must call the "Send" method on the returned request object in order
  3149. // to execute the request.
  3150. //
  3151. // // Example sending a request using the GrantAccessRequest method.
  3152. // req, resp := client.GrantAccessRequest(params)
  3153. //
  3154. // err := req.Send()
  3155. // if err == nil { // resp is now filled
  3156. // fmt.Println(resp)
  3157. // }
  3158. //
  3159. func (c *OpsWorks) GrantAccessRequest(input *GrantAccessInput) (req *request.Request, output *GrantAccessOutput) {
  3160. op := &request.Operation{
  3161. Name: opGrantAccess,
  3162. HTTPMethod: "POST",
  3163. HTTPPath: "/",
  3164. }
  3165. if input == nil {
  3166. input = &GrantAccessInput{}
  3167. }
  3168. req = c.newRequest(op, input, output)
  3169. output = &GrantAccessOutput{}
  3170. req.Data = output
  3171. return
  3172. }
  3173. // GrantAccess API operation for AWS OpsWorks.
  3174. //
  3175. // This action can be used only with Windows stacks.
  3176. //
  3177. // Grants RDP access to a Windows instance for a specified time period.
  3178. //
  3179. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3180. // with awserr.Error's Code and Message methods to get detailed information about
  3181. // the error.
  3182. //
  3183. // See the AWS API reference guide for AWS OpsWorks's
  3184. // API operation GrantAccess for usage and error information.
  3185. //
  3186. // Returned Error Codes:
  3187. // * ValidationException
  3188. // Indicates that a request was not valid.
  3189. //
  3190. // * ResourceNotFoundException
  3191. // Indicates that a resource was not found.
  3192. //
  3193. func (c *OpsWorks) GrantAccess(input *GrantAccessInput) (*GrantAccessOutput, error) {
  3194. req, out := c.GrantAccessRequest(input)
  3195. err := req.Send()
  3196. return out, err
  3197. }
  3198. const opRebootInstance = "RebootInstance"
  3199. // RebootInstanceRequest generates a "aws/request.Request" representing the
  3200. // client's request for the RebootInstance operation. The "output" return
  3201. // value can be used to capture response data after the request's "Send" method
  3202. // is called.
  3203. //
  3204. // See RebootInstance for usage and error information.
  3205. //
  3206. // Creating a request object using this method should be used when you want to inject
  3207. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3208. // access properties on the request object before or after sending the request. If
  3209. // you just want the service response, call the RebootInstance method directly
  3210. // instead.
  3211. //
  3212. // Note: You must call the "Send" method on the returned request object in order
  3213. // to execute the request.
  3214. //
  3215. // // Example sending a request using the RebootInstanceRequest method.
  3216. // req, resp := client.RebootInstanceRequest(params)
  3217. //
  3218. // err := req.Send()
  3219. // if err == nil { // resp is now filled
  3220. // fmt.Println(resp)
  3221. // }
  3222. //
  3223. func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *request.Request, output *RebootInstanceOutput) {
  3224. op := &request.Operation{
  3225. Name: opRebootInstance,
  3226. HTTPMethod: "POST",
  3227. HTTPPath: "/",
  3228. }
  3229. if input == nil {
  3230. input = &RebootInstanceInput{}
  3231. }
  3232. req = c.newRequest(op, input, output)
  3233. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3234. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3235. output = &RebootInstanceOutput{}
  3236. req.Data = output
  3237. return
  3238. }
  3239. // RebootInstance API operation for AWS OpsWorks.
  3240. //
  3241. // Reboots a specified instance. For more information, see Starting, Stopping,
  3242. // and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html).
  3243. //
  3244. // Required Permissions: To use this action, an IAM user must have a Manage
  3245. // permissions level for the stack, or an attached policy that explicitly grants
  3246. // permissions. For more information on user permissions, see Managing User
  3247. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3248. //
  3249. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3250. // with awserr.Error's Code and Message methods to get detailed information about
  3251. // the error.
  3252. //
  3253. // See the AWS API reference guide for AWS OpsWorks's
  3254. // API operation RebootInstance for usage and error information.
  3255. //
  3256. // Returned Error Codes:
  3257. // * ValidationException
  3258. // Indicates that a request was not valid.
  3259. //
  3260. // * ResourceNotFoundException
  3261. // Indicates that a resource was not found.
  3262. //
  3263. func (c *OpsWorks) RebootInstance(input *RebootInstanceInput) (*RebootInstanceOutput, error) {
  3264. req, out := c.RebootInstanceRequest(input)
  3265. err := req.Send()
  3266. return out, err
  3267. }
  3268. const opRegisterEcsCluster = "RegisterEcsCluster"
  3269. // RegisterEcsClusterRequest generates a "aws/request.Request" representing the
  3270. // client's request for the RegisterEcsCluster operation. The "output" return
  3271. // value can be used to capture response data after the request's "Send" method
  3272. // is called.
  3273. //
  3274. // See RegisterEcsCluster for usage and error information.
  3275. //
  3276. // Creating a request object using this method should be used when you want to inject
  3277. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3278. // access properties on the request object before or after sending the request. If
  3279. // you just want the service response, call the RegisterEcsCluster method directly
  3280. // instead.
  3281. //
  3282. // Note: You must call the "Send" method on the returned request object in order
  3283. // to execute the request.
  3284. //
  3285. // // Example sending a request using the RegisterEcsClusterRequest method.
  3286. // req, resp := client.RegisterEcsClusterRequest(params)
  3287. //
  3288. // err := req.Send()
  3289. // if err == nil { // resp is now filled
  3290. // fmt.Println(resp)
  3291. // }
  3292. //
  3293. func (c *OpsWorks) RegisterEcsClusterRequest(input *RegisterEcsClusterInput) (req *request.Request, output *RegisterEcsClusterOutput) {
  3294. op := &request.Operation{
  3295. Name: opRegisterEcsCluster,
  3296. HTTPMethod: "POST",
  3297. HTTPPath: "/",
  3298. }
  3299. if input == nil {
  3300. input = &RegisterEcsClusterInput{}
  3301. }
  3302. req = c.newRequest(op, input, output)
  3303. output = &RegisterEcsClusterOutput{}
  3304. req.Data = output
  3305. return
  3306. }
  3307. // RegisterEcsCluster API operation for AWS OpsWorks.
  3308. //
  3309. // Registers a specified Amazon ECS cluster with a stack. You can register only
  3310. // one cluster with a stack. A cluster can be registered with only one stack.
  3311. // For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html).
  3312. //
  3313. // Required Permissions: To use this action, an IAM user must have a Manage
  3314. // permissions level for the stack or an attached policy that explicitly grants
  3315. // permissions. For more information on user permissions, see Managing User
  3316. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3317. //
  3318. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3319. // with awserr.Error's Code and Message methods to get detailed information about
  3320. // the error.
  3321. //
  3322. // See the AWS API reference guide for AWS OpsWorks's
  3323. // API operation RegisterEcsCluster for usage and error information.
  3324. //
  3325. // Returned Error Codes:
  3326. // * ValidationException
  3327. // Indicates that a request was not valid.
  3328. //
  3329. // * ResourceNotFoundException
  3330. // Indicates that a resource was not found.
  3331. //
  3332. func (c *OpsWorks) RegisterEcsCluster(input *RegisterEcsClusterInput) (*RegisterEcsClusterOutput, error) {
  3333. req, out := c.RegisterEcsClusterRequest(input)
  3334. err := req.Send()
  3335. return out, err
  3336. }
  3337. const opRegisterElasticIp = "RegisterElasticIp"
  3338. // RegisterElasticIpRequest generates a "aws/request.Request" representing the
  3339. // client's request for the RegisterElasticIp operation. The "output" return
  3340. // value can be used to capture response data after the request's "Send" method
  3341. // is called.
  3342. //
  3343. // See RegisterElasticIp for usage and error information.
  3344. //
  3345. // Creating a request object using this method should be used when you want to inject
  3346. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3347. // access properties on the request object before or after sending the request. If
  3348. // you just want the service response, call the RegisterElasticIp method directly
  3349. // instead.
  3350. //
  3351. // Note: You must call the "Send" method on the returned request object in order
  3352. // to execute the request.
  3353. //
  3354. // // Example sending a request using the RegisterElasticIpRequest method.
  3355. // req, resp := client.RegisterElasticIpRequest(params)
  3356. //
  3357. // err := req.Send()
  3358. // if err == nil { // resp is now filled
  3359. // fmt.Println(resp)
  3360. // }
  3361. //
  3362. func (c *OpsWorks) RegisterElasticIpRequest(input *RegisterElasticIpInput) (req *request.Request, output *RegisterElasticIpOutput) {
  3363. op := &request.Operation{
  3364. Name: opRegisterElasticIp,
  3365. HTTPMethod: "POST",
  3366. HTTPPath: "/",
  3367. }
  3368. if input == nil {
  3369. input = &RegisterElasticIpInput{}
  3370. }
  3371. req = c.newRequest(op, input, output)
  3372. output = &RegisterElasticIpOutput{}
  3373. req.Data = output
  3374. return
  3375. }
  3376. // RegisterElasticIp API operation for AWS OpsWorks.
  3377. //
  3378. // Registers an Elastic IP address with a specified stack. An address can be
  3379. // registered with only one stack at a time. If the address is already registered,
  3380. // you must first deregister it by calling DeregisterElasticIp. For more information,
  3381. // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  3382. //
  3383. // Required Permissions: To use this action, an IAM user must have a Manage
  3384. // permissions level for the stack, or an attached policy that explicitly grants
  3385. // permissions. For more information on user permissions, see Managing User
  3386. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3387. //
  3388. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3389. // with awserr.Error's Code and Message methods to get detailed information about
  3390. // the error.
  3391. //
  3392. // See the AWS API reference guide for AWS OpsWorks's
  3393. // API operation RegisterElasticIp for usage and error information.
  3394. //
  3395. // Returned Error Codes:
  3396. // * ValidationException
  3397. // Indicates that a request was not valid.
  3398. //
  3399. // * ResourceNotFoundException
  3400. // Indicates that a resource was not found.
  3401. //
  3402. func (c *OpsWorks) RegisterElasticIp(input *RegisterElasticIpInput) (*RegisterElasticIpOutput, error) {
  3403. req, out := c.RegisterElasticIpRequest(input)
  3404. err := req.Send()
  3405. return out, err
  3406. }
  3407. const opRegisterInstance = "RegisterInstance"
  3408. // RegisterInstanceRequest generates a "aws/request.Request" representing the
  3409. // client's request for the RegisterInstance operation. The "output" return
  3410. // value can be used to capture response data after the request's "Send" method
  3411. // is called.
  3412. //
  3413. // See RegisterInstance for usage and error information.
  3414. //
  3415. // Creating a request object using this method should be used when you want to inject
  3416. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3417. // access properties on the request object before or after sending the request. If
  3418. // you just want the service response, call the RegisterInstance method directly
  3419. // instead.
  3420. //
  3421. // Note: You must call the "Send" method on the returned request object in order
  3422. // to execute the request.
  3423. //
  3424. // // Example sending a request using the RegisterInstanceRequest method.
  3425. // req, resp := client.RegisterInstanceRequest(params)
  3426. //
  3427. // err := req.Send()
  3428. // if err == nil { // resp is now filled
  3429. // fmt.Println(resp)
  3430. // }
  3431. //
  3432. func (c *OpsWorks) RegisterInstanceRequest(input *RegisterInstanceInput) (req *request.Request, output *RegisterInstanceOutput) {
  3433. op := &request.Operation{
  3434. Name: opRegisterInstance,
  3435. HTTPMethod: "POST",
  3436. HTTPPath: "/",
  3437. }
  3438. if input == nil {
  3439. input = &RegisterInstanceInput{}
  3440. }
  3441. req = c.newRequest(op, input, output)
  3442. output = &RegisterInstanceOutput{}
  3443. req.Data = output
  3444. return
  3445. }
  3446. // RegisterInstance API operation for AWS OpsWorks.
  3447. //
  3448. // Registers instances with a specified stack that were created outside of AWS
  3449. // OpsWorks.
  3450. //
  3451. // We do not recommend using this action to register instances. The complete
  3452. // registration operation has two primary steps, installing the AWS OpsWorks
  3453. // agent on the instance and registering the instance with the stack. RegisterInstance
  3454. // handles only the second step. You should instead use the AWS CLI register
  3455. // command, which performs the entire registration operation. For more information,
  3456. // see Registering an Instance with an AWS OpsWorks Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/registered-instances-register.html).
  3457. //
  3458. // Required Permissions: To use this action, an IAM user must have a Manage
  3459. // permissions level for the stack or an attached policy that explicitly grants
  3460. // permissions. For more information on user permissions, see Managing User
  3461. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3462. //
  3463. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3464. // with awserr.Error's Code and Message methods to get detailed information about
  3465. // the error.
  3466. //
  3467. // See the AWS API reference guide for AWS OpsWorks's
  3468. // API operation RegisterInstance for usage and error information.
  3469. //
  3470. // Returned Error Codes:
  3471. // * ValidationException
  3472. // Indicates that a request was not valid.
  3473. //
  3474. // * ResourceNotFoundException
  3475. // Indicates that a resource was not found.
  3476. //
  3477. func (c *OpsWorks) RegisterInstance(input *RegisterInstanceInput) (*RegisterInstanceOutput, error) {
  3478. req, out := c.RegisterInstanceRequest(input)
  3479. err := req.Send()
  3480. return out, err
  3481. }
  3482. const opRegisterRdsDbInstance = "RegisterRdsDbInstance"
  3483. // RegisterRdsDbInstanceRequest generates a "aws/request.Request" representing the
  3484. // client's request for the RegisterRdsDbInstance operation. The "output" return
  3485. // value can be used to capture response data after the request's "Send" method
  3486. // is called.
  3487. //
  3488. // See RegisterRdsDbInstance for usage and error information.
  3489. //
  3490. // Creating a request object using this method should be used when you want to inject
  3491. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3492. // access properties on the request object before or after sending the request. If
  3493. // you just want the service response, call the RegisterRdsDbInstance method directly
  3494. // instead.
  3495. //
  3496. // Note: You must call the "Send" method on the returned request object in order
  3497. // to execute the request.
  3498. //
  3499. // // Example sending a request using the RegisterRdsDbInstanceRequest method.
  3500. // req, resp := client.RegisterRdsDbInstanceRequest(params)
  3501. //
  3502. // err := req.Send()
  3503. // if err == nil { // resp is now filled
  3504. // fmt.Println(resp)
  3505. // }
  3506. //
  3507. func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInput) (req *request.Request, output *RegisterRdsDbInstanceOutput) {
  3508. op := &request.Operation{
  3509. Name: opRegisterRdsDbInstance,
  3510. HTTPMethod: "POST",
  3511. HTTPPath: "/",
  3512. }
  3513. if input == nil {
  3514. input = &RegisterRdsDbInstanceInput{}
  3515. }
  3516. req = c.newRequest(op, input, output)
  3517. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3518. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3519. output = &RegisterRdsDbInstanceOutput{}
  3520. req.Data = output
  3521. return
  3522. }
  3523. // RegisterRdsDbInstance API operation for AWS OpsWorks.
  3524. //
  3525. // Registers an Amazon RDS instance with a stack.
  3526. //
  3527. // Required Permissions: To use this action, an IAM user must have a Manage
  3528. // permissions level for the stack, or an attached policy that explicitly grants
  3529. // permissions. For more information on user permissions, see Managing User
  3530. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3531. //
  3532. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3533. // with awserr.Error's Code and Message methods to get detailed information about
  3534. // the error.
  3535. //
  3536. // See the AWS API reference guide for AWS OpsWorks's
  3537. // API operation RegisterRdsDbInstance for usage and error information.
  3538. //
  3539. // Returned Error Codes:
  3540. // * ValidationException
  3541. // Indicates that a request was not valid.
  3542. //
  3543. // * ResourceNotFoundException
  3544. // Indicates that a resource was not found.
  3545. //
  3546. func (c *OpsWorks) RegisterRdsDbInstance(input *RegisterRdsDbInstanceInput) (*RegisterRdsDbInstanceOutput, error) {
  3547. req, out := c.RegisterRdsDbInstanceRequest(input)
  3548. err := req.Send()
  3549. return out, err
  3550. }
  3551. const opRegisterVolume = "RegisterVolume"
  3552. // RegisterVolumeRequest generates a "aws/request.Request" representing the
  3553. // client's request for the RegisterVolume operation. The "output" return
  3554. // value can be used to capture response data after the request's "Send" method
  3555. // is called.
  3556. //
  3557. // See RegisterVolume for usage and error information.
  3558. //
  3559. // Creating a request object using this method should be used when you want to inject
  3560. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3561. // access properties on the request object before or after sending the request. If
  3562. // you just want the service response, call the RegisterVolume method directly
  3563. // instead.
  3564. //
  3565. // Note: You must call the "Send" method on the returned request object in order
  3566. // to execute the request.
  3567. //
  3568. // // Example sending a request using the RegisterVolumeRequest method.
  3569. // req, resp := client.RegisterVolumeRequest(params)
  3570. //
  3571. // err := req.Send()
  3572. // if err == nil { // resp is now filled
  3573. // fmt.Println(resp)
  3574. // }
  3575. //
  3576. func (c *OpsWorks) RegisterVolumeRequest(input *RegisterVolumeInput) (req *request.Request, output *RegisterVolumeOutput) {
  3577. op := &request.Operation{
  3578. Name: opRegisterVolume,
  3579. HTTPMethod: "POST",
  3580. HTTPPath: "/",
  3581. }
  3582. if input == nil {
  3583. input = &RegisterVolumeInput{}
  3584. }
  3585. req = c.newRequest(op, input, output)
  3586. output = &RegisterVolumeOutput{}
  3587. req.Data = output
  3588. return
  3589. }
  3590. // RegisterVolume API operation for AWS OpsWorks.
  3591. //
  3592. // Registers an Amazon EBS volume with a specified stack. A volume can be registered
  3593. // with only one stack at a time. If the volume is already registered, you must
  3594. // first deregister it by calling DeregisterVolume. For more information, see
  3595. // Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  3596. //
  3597. // Required Permissions: To use this action, an IAM user must have a Manage
  3598. // permissions level for the stack, or an attached policy that explicitly grants
  3599. // permissions. For more information on user permissions, see Managing User
  3600. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3601. //
  3602. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3603. // with awserr.Error's Code and Message methods to get detailed information about
  3604. // the error.
  3605. //
  3606. // See the AWS API reference guide for AWS OpsWorks's
  3607. // API operation RegisterVolume for usage and error information.
  3608. //
  3609. // Returned Error Codes:
  3610. // * ValidationException
  3611. // Indicates that a request was not valid.
  3612. //
  3613. // * ResourceNotFoundException
  3614. // Indicates that a resource was not found.
  3615. //
  3616. func (c *OpsWorks) RegisterVolume(input *RegisterVolumeInput) (*RegisterVolumeOutput, error) {
  3617. req, out := c.RegisterVolumeRequest(input)
  3618. err := req.Send()
  3619. return out, err
  3620. }
  3621. const opSetLoadBasedAutoScaling = "SetLoadBasedAutoScaling"
  3622. // SetLoadBasedAutoScalingRequest generates a "aws/request.Request" representing the
  3623. // client's request for the SetLoadBasedAutoScaling operation. The "output" return
  3624. // value can be used to capture response data after the request's "Send" method
  3625. // is called.
  3626. //
  3627. // See SetLoadBasedAutoScaling for usage and error information.
  3628. //
  3629. // Creating a request object using this method should be used when you want to inject
  3630. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3631. // access properties on the request object before or after sending the request. If
  3632. // you just want the service response, call the SetLoadBasedAutoScaling method directly
  3633. // instead.
  3634. //
  3635. // Note: You must call the "Send" method on the returned request object in order
  3636. // to execute the request.
  3637. //
  3638. // // Example sending a request using the SetLoadBasedAutoScalingRequest method.
  3639. // req, resp := client.SetLoadBasedAutoScalingRequest(params)
  3640. //
  3641. // err := req.Send()
  3642. // if err == nil { // resp is now filled
  3643. // fmt.Println(resp)
  3644. // }
  3645. //
  3646. func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScalingInput) (req *request.Request, output *SetLoadBasedAutoScalingOutput) {
  3647. op := &request.Operation{
  3648. Name: opSetLoadBasedAutoScaling,
  3649. HTTPMethod: "POST",
  3650. HTTPPath: "/",
  3651. }
  3652. if input == nil {
  3653. input = &SetLoadBasedAutoScalingInput{}
  3654. }
  3655. req = c.newRequest(op, input, output)
  3656. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3657. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3658. output = &SetLoadBasedAutoScalingOutput{}
  3659. req.Data = output
  3660. return
  3661. }
  3662. // SetLoadBasedAutoScaling API operation for AWS OpsWorks.
  3663. //
  3664. // Specify the load-based auto scaling configuration for a specified layer.
  3665. // For more information, see Managing Load with Time-based and Load-based Instances
  3666. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html).
  3667. //
  3668. // To use load-based auto scaling, you must create a set of load-based auto
  3669. // scaling instances. Load-based auto scaling operates only on the instances
  3670. // from that set, so you must ensure that you have created enough instances
  3671. // to handle the maximum anticipated load.
  3672. //
  3673. // Required Permissions: To use this action, an IAM user must have a Manage
  3674. // permissions level for the stack, or an attached policy that explicitly grants
  3675. // permissions. For more information on user permissions, see Managing User
  3676. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3677. //
  3678. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3679. // with awserr.Error's Code and Message methods to get detailed information about
  3680. // the error.
  3681. //
  3682. // See the AWS API reference guide for AWS OpsWorks's
  3683. // API operation SetLoadBasedAutoScaling for usage and error information.
  3684. //
  3685. // Returned Error Codes:
  3686. // * ValidationException
  3687. // Indicates that a request was not valid.
  3688. //
  3689. // * ResourceNotFoundException
  3690. // Indicates that a resource was not found.
  3691. //
  3692. func (c *OpsWorks) SetLoadBasedAutoScaling(input *SetLoadBasedAutoScalingInput) (*SetLoadBasedAutoScalingOutput, error) {
  3693. req, out := c.SetLoadBasedAutoScalingRequest(input)
  3694. err := req.Send()
  3695. return out, err
  3696. }
  3697. const opSetPermission = "SetPermission"
  3698. // SetPermissionRequest generates a "aws/request.Request" representing the
  3699. // client's request for the SetPermission operation. The "output" return
  3700. // value can be used to capture response data after the request's "Send" method
  3701. // is called.
  3702. //
  3703. // See SetPermission for usage and error information.
  3704. //
  3705. // Creating a request object using this method should be used when you want to inject
  3706. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3707. // access properties on the request object before or after sending the request. If
  3708. // you just want the service response, call the SetPermission method directly
  3709. // instead.
  3710. //
  3711. // Note: You must call the "Send" method on the returned request object in order
  3712. // to execute the request.
  3713. //
  3714. // // Example sending a request using the SetPermissionRequest method.
  3715. // req, resp := client.SetPermissionRequest(params)
  3716. //
  3717. // err := req.Send()
  3718. // if err == nil { // resp is now filled
  3719. // fmt.Println(resp)
  3720. // }
  3721. //
  3722. func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request.Request, output *SetPermissionOutput) {
  3723. op := &request.Operation{
  3724. Name: opSetPermission,
  3725. HTTPMethod: "POST",
  3726. HTTPPath: "/",
  3727. }
  3728. if input == nil {
  3729. input = &SetPermissionInput{}
  3730. }
  3731. req = c.newRequest(op, input, output)
  3732. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3733. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3734. output = &SetPermissionOutput{}
  3735. req.Data = output
  3736. return
  3737. }
  3738. // SetPermission API operation for AWS OpsWorks.
  3739. //
  3740. // Specifies a user's permissions. For more information, see Security and Permissions
  3741. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingsecurity.html).
  3742. //
  3743. // Required Permissions: To use this action, an IAM user must have a Manage
  3744. // permissions level for the stack, or an attached policy that explicitly grants
  3745. // permissions. For more information on user permissions, see Managing User
  3746. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3747. //
  3748. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3749. // with awserr.Error's Code and Message methods to get detailed information about
  3750. // the error.
  3751. //
  3752. // See the AWS API reference guide for AWS OpsWorks's
  3753. // API operation SetPermission for usage and error information.
  3754. //
  3755. // Returned Error Codes:
  3756. // * ValidationException
  3757. // Indicates that a request was not valid.
  3758. //
  3759. // * ResourceNotFoundException
  3760. // Indicates that a resource was not found.
  3761. //
  3762. func (c *OpsWorks) SetPermission(input *SetPermissionInput) (*SetPermissionOutput, error) {
  3763. req, out := c.SetPermissionRequest(input)
  3764. err := req.Send()
  3765. return out, err
  3766. }
  3767. const opSetTimeBasedAutoScaling = "SetTimeBasedAutoScaling"
  3768. // SetTimeBasedAutoScalingRequest generates a "aws/request.Request" representing the
  3769. // client's request for the SetTimeBasedAutoScaling operation. The "output" return
  3770. // value can be used to capture response data after the request's "Send" method
  3771. // is called.
  3772. //
  3773. // See SetTimeBasedAutoScaling for usage and error information.
  3774. //
  3775. // Creating a request object using this method should be used when you want to inject
  3776. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3777. // access properties on the request object before or after sending the request. If
  3778. // you just want the service response, call the SetTimeBasedAutoScaling method directly
  3779. // instead.
  3780. //
  3781. // Note: You must call the "Send" method on the returned request object in order
  3782. // to execute the request.
  3783. //
  3784. // // Example sending a request using the SetTimeBasedAutoScalingRequest method.
  3785. // req, resp := client.SetTimeBasedAutoScalingRequest(params)
  3786. //
  3787. // err := req.Send()
  3788. // if err == nil { // resp is now filled
  3789. // fmt.Println(resp)
  3790. // }
  3791. //
  3792. func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScalingInput) (req *request.Request, output *SetTimeBasedAutoScalingOutput) {
  3793. op := &request.Operation{
  3794. Name: opSetTimeBasedAutoScaling,
  3795. HTTPMethod: "POST",
  3796. HTTPPath: "/",
  3797. }
  3798. if input == nil {
  3799. input = &SetTimeBasedAutoScalingInput{}
  3800. }
  3801. req = c.newRequest(op, input, output)
  3802. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3803. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3804. output = &SetTimeBasedAutoScalingOutput{}
  3805. req.Data = output
  3806. return
  3807. }
  3808. // SetTimeBasedAutoScaling API operation for AWS OpsWorks.
  3809. //
  3810. // Specify the time-based auto scaling configuration for a specified instance.
  3811. // For more information, see Managing Load with Time-based and Load-based Instances
  3812. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html).
  3813. //
  3814. // Required Permissions: To use this action, an IAM user must have a Manage
  3815. // permissions level for the stack, or an attached policy that explicitly grants
  3816. // permissions. For more information on user permissions, see Managing User
  3817. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3818. //
  3819. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3820. // with awserr.Error's Code and Message methods to get detailed information about
  3821. // the error.
  3822. //
  3823. // See the AWS API reference guide for AWS OpsWorks's
  3824. // API operation SetTimeBasedAutoScaling for usage and error information.
  3825. //
  3826. // Returned Error Codes:
  3827. // * ValidationException
  3828. // Indicates that a request was not valid.
  3829. //
  3830. // * ResourceNotFoundException
  3831. // Indicates that a resource was not found.
  3832. //
  3833. func (c *OpsWorks) SetTimeBasedAutoScaling(input *SetTimeBasedAutoScalingInput) (*SetTimeBasedAutoScalingOutput, error) {
  3834. req, out := c.SetTimeBasedAutoScalingRequest(input)
  3835. err := req.Send()
  3836. return out, err
  3837. }
  3838. const opStartInstance = "StartInstance"
  3839. // StartInstanceRequest generates a "aws/request.Request" representing the
  3840. // client's request for the StartInstance operation. The "output" return
  3841. // value can be used to capture response data after the request's "Send" method
  3842. // is called.
  3843. //
  3844. // See StartInstance for usage and error information.
  3845. //
  3846. // Creating a request object using this method should be used when you want to inject
  3847. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3848. // access properties on the request object before or after sending the request. If
  3849. // you just want the service response, call the StartInstance method directly
  3850. // instead.
  3851. //
  3852. // Note: You must call the "Send" method on the returned request object in order
  3853. // to execute the request.
  3854. //
  3855. // // Example sending a request using the StartInstanceRequest method.
  3856. // req, resp := client.StartInstanceRequest(params)
  3857. //
  3858. // err := req.Send()
  3859. // if err == nil { // resp is now filled
  3860. // fmt.Println(resp)
  3861. // }
  3862. //
  3863. func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request.Request, output *StartInstanceOutput) {
  3864. op := &request.Operation{
  3865. Name: opStartInstance,
  3866. HTTPMethod: "POST",
  3867. HTTPPath: "/",
  3868. }
  3869. if input == nil {
  3870. input = &StartInstanceInput{}
  3871. }
  3872. req = c.newRequest(op, input, output)
  3873. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3874. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3875. output = &StartInstanceOutput{}
  3876. req.Data = output
  3877. return
  3878. }
  3879. // StartInstance API operation for AWS OpsWorks.
  3880. //
  3881. // Starts a specified instance. For more information, see Starting, Stopping,
  3882. // and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html).
  3883. //
  3884. // Required Permissions: To use this action, an IAM user must have a Manage
  3885. // permissions level for the stack, or an attached policy that explicitly grants
  3886. // permissions. For more information on user permissions, see Managing User
  3887. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3888. //
  3889. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3890. // with awserr.Error's Code and Message methods to get detailed information about
  3891. // the error.
  3892. //
  3893. // See the AWS API reference guide for AWS OpsWorks's
  3894. // API operation StartInstance for usage and error information.
  3895. //
  3896. // Returned Error Codes:
  3897. // * ValidationException
  3898. // Indicates that a request was not valid.
  3899. //
  3900. // * ResourceNotFoundException
  3901. // Indicates that a resource was not found.
  3902. //
  3903. func (c *OpsWorks) StartInstance(input *StartInstanceInput) (*StartInstanceOutput, error) {
  3904. req, out := c.StartInstanceRequest(input)
  3905. err := req.Send()
  3906. return out, err
  3907. }
  3908. const opStartStack = "StartStack"
  3909. // StartStackRequest generates a "aws/request.Request" representing the
  3910. // client's request for the StartStack operation. The "output" return
  3911. // value can be used to capture response data after the request's "Send" method
  3912. // is called.
  3913. //
  3914. // See StartStack for usage and error information.
  3915. //
  3916. // Creating a request object using this method should be used when you want to inject
  3917. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3918. // access properties on the request object before or after sending the request. If
  3919. // you just want the service response, call the StartStack method directly
  3920. // instead.
  3921. //
  3922. // Note: You must call the "Send" method on the returned request object in order
  3923. // to execute the request.
  3924. //
  3925. // // Example sending a request using the StartStackRequest method.
  3926. // req, resp := client.StartStackRequest(params)
  3927. //
  3928. // err := req.Send()
  3929. // if err == nil { // resp is now filled
  3930. // fmt.Println(resp)
  3931. // }
  3932. //
  3933. func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Request, output *StartStackOutput) {
  3934. op := &request.Operation{
  3935. Name: opStartStack,
  3936. HTTPMethod: "POST",
  3937. HTTPPath: "/",
  3938. }
  3939. if input == nil {
  3940. input = &StartStackInput{}
  3941. }
  3942. req = c.newRequest(op, input, output)
  3943. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3944. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3945. output = &StartStackOutput{}
  3946. req.Data = output
  3947. return
  3948. }
  3949. // StartStack API operation for AWS OpsWorks.
  3950. //
  3951. // Starts a stack's instances.
  3952. //
  3953. // Required Permissions: To use this action, an IAM user must have a Manage
  3954. // permissions level for the stack, or an attached policy that explicitly grants
  3955. // permissions. For more information on user permissions, see Managing User
  3956. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3957. //
  3958. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3959. // with awserr.Error's Code and Message methods to get detailed information about
  3960. // the error.
  3961. //
  3962. // See the AWS API reference guide for AWS OpsWorks's
  3963. // API operation StartStack for usage and error information.
  3964. //
  3965. // Returned Error Codes:
  3966. // * ValidationException
  3967. // Indicates that a request was not valid.
  3968. //
  3969. // * ResourceNotFoundException
  3970. // Indicates that a resource was not found.
  3971. //
  3972. func (c *OpsWorks) StartStack(input *StartStackInput) (*StartStackOutput, error) {
  3973. req, out := c.StartStackRequest(input)
  3974. err := req.Send()
  3975. return out, err
  3976. }
  3977. const opStopInstance = "StopInstance"
  3978. // StopInstanceRequest generates a "aws/request.Request" representing the
  3979. // client's request for the StopInstance operation. The "output" return
  3980. // value can be used to capture response data after the request's "Send" method
  3981. // is called.
  3982. //
  3983. // See StopInstance for usage and error information.
  3984. //
  3985. // Creating a request object using this method should be used when you want to inject
  3986. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3987. // access properties on the request object before or after sending the request. If
  3988. // you just want the service response, call the StopInstance method directly
  3989. // instead.
  3990. //
  3991. // Note: You must call the "Send" method on the returned request object in order
  3992. // to execute the request.
  3993. //
  3994. // // Example sending a request using the StopInstanceRequest method.
  3995. // req, resp := client.StopInstanceRequest(params)
  3996. //
  3997. // err := req.Send()
  3998. // if err == nil { // resp is now filled
  3999. // fmt.Println(resp)
  4000. // }
  4001. //
  4002. func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.Request, output *StopInstanceOutput) {
  4003. op := &request.Operation{
  4004. Name: opStopInstance,
  4005. HTTPMethod: "POST",
  4006. HTTPPath: "/",
  4007. }
  4008. if input == nil {
  4009. input = &StopInstanceInput{}
  4010. }
  4011. req = c.newRequest(op, input, output)
  4012. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4013. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4014. output = &StopInstanceOutput{}
  4015. req.Data = output
  4016. return
  4017. }
  4018. // StopInstance API operation for AWS OpsWorks.
  4019. //
  4020. // Stops a specified instance. When you stop a standard instance, the data disappears
  4021. // and must be reinstalled when you restart the instance. You can stop an Amazon
  4022. // EBS-backed instance without losing data. For more information, see Starting,
  4023. // Stopping, and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html).
  4024. //
  4025. // Required Permissions: To use this action, an IAM user must have a Manage
  4026. // permissions level for the stack, or an attached policy that explicitly grants
  4027. // permissions. For more information on user permissions, see Managing User
  4028. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4029. //
  4030. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4031. // with awserr.Error's Code and Message methods to get detailed information about
  4032. // the error.
  4033. //
  4034. // See the AWS API reference guide for AWS OpsWorks's
  4035. // API operation StopInstance for usage and error information.
  4036. //
  4037. // Returned Error Codes:
  4038. // * ValidationException
  4039. // Indicates that a request was not valid.
  4040. //
  4041. // * ResourceNotFoundException
  4042. // Indicates that a resource was not found.
  4043. //
  4044. func (c *OpsWorks) StopInstance(input *StopInstanceInput) (*StopInstanceOutput, error) {
  4045. req, out := c.StopInstanceRequest(input)
  4046. err := req.Send()
  4047. return out, err
  4048. }
  4049. const opStopStack = "StopStack"
  4050. // StopStackRequest generates a "aws/request.Request" representing the
  4051. // client's request for the StopStack operation. The "output" return
  4052. // value can be used to capture response data after the request's "Send" method
  4053. // is called.
  4054. //
  4055. // See StopStack for usage and error information.
  4056. //
  4057. // Creating a request object using this method should be used when you want to inject
  4058. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4059. // access properties on the request object before or after sending the request. If
  4060. // you just want the service response, call the StopStack method directly
  4061. // instead.
  4062. //
  4063. // Note: You must call the "Send" method on the returned request object in order
  4064. // to execute the request.
  4065. //
  4066. // // Example sending a request using the StopStackRequest method.
  4067. // req, resp := client.StopStackRequest(params)
  4068. //
  4069. // err := req.Send()
  4070. // if err == nil { // resp is now filled
  4071. // fmt.Println(resp)
  4072. // }
  4073. //
  4074. func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request, output *StopStackOutput) {
  4075. op := &request.Operation{
  4076. Name: opStopStack,
  4077. HTTPMethod: "POST",
  4078. HTTPPath: "/",
  4079. }
  4080. if input == nil {
  4081. input = &StopStackInput{}
  4082. }
  4083. req = c.newRequest(op, input, output)
  4084. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4085. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4086. output = &StopStackOutput{}
  4087. req.Data = output
  4088. return
  4089. }
  4090. // StopStack API operation for AWS OpsWorks.
  4091. //
  4092. // Stops a specified stack.
  4093. //
  4094. // Required Permissions: To use this action, an IAM user must have a Manage
  4095. // permissions level for the stack, or an attached policy that explicitly grants
  4096. // permissions. For more information on user permissions, see Managing User
  4097. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4098. //
  4099. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4100. // with awserr.Error's Code and Message methods to get detailed information about
  4101. // the error.
  4102. //
  4103. // See the AWS API reference guide for AWS OpsWorks's
  4104. // API operation StopStack for usage and error information.
  4105. //
  4106. // Returned Error Codes:
  4107. // * ValidationException
  4108. // Indicates that a request was not valid.
  4109. //
  4110. // * ResourceNotFoundException
  4111. // Indicates that a resource was not found.
  4112. //
  4113. func (c *OpsWorks) StopStack(input *StopStackInput) (*StopStackOutput, error) {
  4114. req, out := c.StopStackRequest(input)
  4115. err := req.Send()
  4116. return out, err
  4117. }
  4118. const opUnassignInstance = "UnassignInstance"
  4119. // UnassignInstanceRequest generates a "aws/request.Request" representing the
  4120. // client's request for the UnassignInstance operation. The "output" return
  4121. // value can be used to capture response data after the request's "Send" method
  4122. // is called.
  4123. //
  4124. // See UnassignInstance for usage and error information.
  4125. //
  4126. // Creating a request object using this method should be used when you want to inject
  4127. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4128. // access properties on the request object before or after sending the request. If
  4129. // you just want the service response, call the UnassignInstance method directly
  4130. // instead.
  4131. //
  4132. // Note: You must call the "Send" method on the returned request object in order
  4133. // to execute the request.
  4134. //
  4135. // // Example sending a request using the UnassignInstanceRequest method.
  4136. // req, resp := client.UnassignInstanceRequest(params)
  4137. //
  4138. // err := req.Send()
  4139. // if err == nil { // resp is now filled
  4140. // fmt.Println(resp)
  4141. // }
  4142. //
  4143. func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *request.Request, output *UnassignInstanceOutput) {
  4144. op := &request.Operation{
  4145. Name: opUnassignInstance,
  4146. HTTPMethod: "POST",
  4147. HTTPPath: "/",
  4148. }
  4149. if input == nil {
  4150. input = &UnassignInstanceInput{}
  4151. }
  4152. req = c.newRequest(op, input, output)
  4153. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4154. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4155. output = &UnassignInstanceOutput{}
  4156. req.Data = output
  4157. return
  4158. }
  4159. // UnassignInstance API operation for AWS OpsWorks.
  4160. //
  4161. // Unassigns a registered instance from all of it's layers. The instance remains
  4162. // in the stack as an unassigned instance and can be assigned to another layer,
  4163. // as needed. You cannot use this action with instances that were created with
  4164. // AWS OpsWorks.
  4165. //
  4166. // Required Permissions: To use this action, an IAM user must have a Manage
  4167. // permissions level for the stack or an attached policy that explicitly grants
  4168. // permissions. For more information on user permissions, see Managing User
  4169. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4170. //
  4171. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4172. // with awserr.Error's Code and Message methods to get detailed information about
  4173. // the error.
  4174. //
  4175. // See the AWS API reference guide for AWS OpsWorks's
  4176. // API operation UnassignInstance for usage and error information.
  4177. //
  4178. // Returned Error Codes:
  4179. // * ValidationException
  4180. // Indicates that a request was not valid.
  4181. //
  4182. // * ResourceNotFoundException
  4183. // Indicates that a resource was not found.
  4184. //
  4185. func (c *OpsWorks) UnassignInstance(input *UnassignInstanceInput) (*UnassignInstanceOutput, error) {
  4186. req, out := c.UnassignInstanceRequest(input)
  4187. err := req.Send()
  4188. return out, err
  4189. }
  4190. const opUnassignVolume = "UnassignVolume"
  4191. // UnassignVolumeRequest generates a "aws/request.Request" representing the
  4192. // client's request for the UnassignVolume operation. The "output" return
  4193. // value can be used to capture response data after the request's "Send" method
  4194. // is called.
  4195. //
  4196. // See UnassignVolume for usage and error information.
  4197. //
  4198. // Creating a request object using this method should be used when you want to inject
  4199. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4200. // access properties on the request object before or after sending the request. If
  4201. // you just want the service response, call the UnassignVolume method directly
  4202. // instead.
  4203. //
  4204. // Note: You must call the "Send" method on the returned request object in order
  4205. // to execute the request.
  4206. //
  4207. // // Example sending a request using the UnassignVolumeRequest method.
  4208. // req, resp := client.UnassignVolumeRequest(params)
  4209. //
  4210. // err := req.Send()
  4211. // if err == nil { // resp is now filled
  4212. // fmt.Println(resp)
  4213. // }
  4214. //
  4215. func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *request.Request, output *UnassignVolumeOutput) {
  4216. op := &request.Operation{
  4217. Name: opUnassignVolume,
  4218. HTTPMethod: "POST",
  4219. HTTPPath: "/",
  4220. }
  4221. if input == nil {
  4222. input = &UnassignVolumeInput{}
  4223. }
  4224. req = c.newRequest(op, input, output)
  4225. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4226. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4227. output = &UnassignVolumeOutput{}
  4228. req.Data = output
  4229. return
  4230. }
  4231. // UnassignVolume API operation for AWS OpsWorks.
  4232. //
  4233. // Unassigns an assigned Amazon EBS volume. The volume remains registered with
  4234. // the stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  4235. //
  4236. // Required Permissions: To use this action, an IAM user must have a Manage
  4237. // permissions level for the stack, or an attached policy that explicitly grants
  4238. // permissions. For more information on user permissions, see Managing User
  4239. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4240. //
  4241. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4242. // with awserr.Error's Code and Message methods to get detailed information about
  4243. // the error.
  4244. //
  4245. // See the AWS API reference guide for AWS OpsWorks's
  4246. // API operation UnassignVolume for usage and error information.
  4247. //
  4248. // Returned Error Codes:
  4249. // * ValidationException
  4250. // Indicates that a request was not valid.
  4251. //
  4252. // * ResourceNotFoundException
  4253. // Indicates that a resource was not found.
  4254. //
  4255. func (c *OpsWorks) UnassignVolume(input *UnassignVolumeInput) (*UnassignVolumeOutput, error) {
  4256. req, out := c.UnassignVolumeRequest(input)
  4257. err := req.Send()
  4258. return out, err
  4259. }
  4260. const opUpdateApp = "UpdateApp"
  4261. // UpdateAppRequest generates a "aws/request.Request" representing the
  4262. // client's request for the UpdateApp operation. The "output" return
  4263. // value can be used to capture response data after the request's "Send" method
  4264. // is called.
  4265. //
  4266. // See UpdateApp for usage and error information.
  4267. //
  4268. // Creating a request object using this method should be used when you want to inject
  4269. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4270. // access properties on the request object before or after sending the request. If
  4271. // you just want the service response, call the UpdateApp method directly
  4272. // instead.
  4273. //
  4274. // Note: You must call the "Send" method on the returned request object in order
  4275. // to execute the request.
  4276. //
  4277. // // Example sending a request using the UpdateAppRequest method.
  4278. // req, resp := client.UpdateAppRequest(params)
  4279. //
  4280. // err := req.Send()
  4281. // if err == nil { // resp is now filled
  4282. // fmt.Println(resp)
  4283. // }
  4284. //
  4285. func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, output *UpdateAppOutput) {
  4286. op := &request.Operation{
  4287. Name: opUpdateApp,
  4288. HTTPMethod: "POST",
  4289. HTTPPath: "/",
  4290. }
  4291. if input == nil {
  4292. input = &UpdateAppInput{}
  4293. }
  4294. req = c.newRequest(op, input, output)
  4295. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4296. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4297. output = &UpdateAppOutput{}
  4298. req.Data = output
  4299. return
  4300. }
  4301. // UpdateApp API operation for AWS OpsWorks.
  4302. //
  4303. // Updates a specified app.
  4304. //
  4305. // Required Permissions: To use this action, an IAM user must have a Deploy
  4306. // or Manage permissions level for the stack, or an attached policy that explicitly
  4307. // grants permissions. For more information on user permissions, see Managing
  4308. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4309. //
  4310. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4311. // with awserr.Error's Code and Message methods to get detailed information about
  4312. // the error.
  4313. //
  4314. // See the AWS API reference guide for AWS OpsWorks's
  4315. // API operation UpdateApp for usage and error information.
  4316. //
  4317. // Returned Error Codes:
  4318. // * ValidationException
  4319. // Indicates that a request was not valid.
  4320. //
  4321. // * ResourceNotFoundException
  4322. // Indicates that a resource was not found.
  4323. //
  4324. func (c *OpsWorks) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) {
  4325. req, out := c.UpdateAppRequest(input)
  4326. err := req.Send()
  4327. return out, err
  4328. }
  4329. const opUpdateElasticIp = "UpdateElasticIp"
  4330. // UpdateElasticIpRequest generates a "aws/request.Request" representing the
  4331. // client's request for the UpdateElasticIp operation. The "output" return
  4332. // value can be used to capture response data after the request's "Send" method
  4333. // is called.
  4334. //
  4335. // See UpdateElasticIp for usage and error information.
  4336. //
  4337. // Creating a request object using this method should be used when you want to inject
  4338. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4339. // access properties on the request object before or after sending the request. If
  4340. // you just want the service response, call the UpdateElasticIp method directly
  4341. // instead.
  4342. //
  4343. // Note: You must call the "Send" method on the returned request object in order
  4344. // to execute the request.
  4345. //
  4346. // // Example sending a request using the UpdateElasticIpRequest method.
  4347. // req, resp := client.UpdateElasticIpRequest(params)
  4348. //
  4349. // err := req.Send()
  4350. // if err == nil { // resp is now filled
  4351. // fmt.Println(resp)
  4352. // }
  4353. //
  4354. func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *request.Request, output *UpdateElasticIpOutput) {
  4355. op := &request.Operation{
  4356. Name: opUpdateElasticIp,
  4357. HTTPMethod: "POST",
  4358. HTTPPath: "/",
  4359. }
  4360. if input == nil {
  4361. input = &UpdateElasticIpInput{}
  4362. }
  4363. req = c.newRequest(op, input, output)
  4364. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4365. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4366. output = &UpdateElasticIpOutput{}
  4367. req.Data = output
  4368. return
  4369. }
  4370. // UpdateElasticIp API operation for AWS OpsWorks.
  4371. //
  4372. // Updates a registered Elastic IP address's name. For more information, see
  4373. // Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  4374. //
  4375. // Required Permissions: To use this action, an IAM user must have a Manage
  4376. // permissions level for the stack, or an attached policy that explicitly grants
  4377. // permissions. For more information on user permissions, see Managing User
  4378. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4379. //
  4380. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4381. // with awserr.Error's Code and Message methods to get detailed information about
  4382. // the error.
  4383. //
  4384. // See the AWS API reference guide for AWS OpsWorks's
  4385. // API operation UpdateElasticIp for usage and error information.
  4386. //
  4387. // Returned Error Codes:
  4388. // * ValidationException
  4389. // Indicates that a request was not valid.
  4390. //
  4391. // * ResourceNotFoundException
  4392. // Indicates that a resource was not found.
  4393. //
  4394. func (c *OpsWorks) UpdateElasticIp(input *UpdateElasticIpInput) (*UpdateElasticIpOutput, error) {
  4395. req, out := c.UpdateElasticIpRequest(input)
  4396. err := req.Send()
  4397. return out, err
  4398. }
  4399. const opUpdateInstance = "UpdateInstance"
  4400. // UpdateInstanceRequest generates a "aws/request.Request" representing the
  4401. // client's request for the UpdateInstance operation. The "output" return
  4402. // value can be used to capture response data after the request's "Send" method
  4403. // is called.
  4404. //
  4405. // See UpdateInstance for usage and error information.
  4406. //
  4407. // Creating a request object using this method should be used when you want to inject
  4408. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4409. // access properties on the request object before or after sending the request. If
  4410. // you just want the service response, call the UpdateInstance method directly
  4411. // instead.
  4412. //
  4413. // Note: You must call the "Send" method on the returned request object in order
  4414. // to execute the request.
  4415. //
  4416. // // Example sending a request using the UpdateInstanceRequest method.
  4417. // req, resp := client.UpdateInstanceRequest(params)
  4418. //
  4419. // err := req.Send()
  4420. // if err == nil { // resp is now filled
  4421. // fmt.Println(resp)
  4422. // }
  4423. //
  4424. func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *request.Request, output *UpdateInstanceOutput) {
  4425. op := &request.Operation{
  4426. Name: opUpdateInstance,
  4427. HTTPMethod: "POST",
  4428. HTTPPath: "/",
  4429. }
  4430. if input == nil {
  4431. input = &UpdateInstanceInput{}
  4432. }
  4433. req = c.newRequest(op, input, output)
  4434. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4435. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4436. output = &UpdateInstanceOutput{}
  4437. req.Data = output
  4438. return
  4439. }
  4440. // UpdateInstance API operation for AWS OpsWorks.
  4441. //
  4442. // Updates a specified instance.
  4443. //
  4444. // Required Permissions: To use this action, an IAM user must have a Manage
  4445. // permissions level for the stack, or an attached policy that explicitly grants
  4446. // permissions. For more information on user permissions, see Managing User
  4447. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4448. //
  4449. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4450. // with awserr.Error's Code and Message methods to get detailed information about
  4451. // the error.
  4452. //
  4453. // See the AWS API reference guide for AWS OpsWorks's
  4454. // API operation UpdateInstance for usage and error information.
  4455. //
  4456. // Returned Error Codes:
  4457. // * ValidationException
  4458. // Indicates that a request was not valid.
  4459. //
  4460. // * ResourceNotFoundException
  4461. // Indicates that a resource was not found.
  4462. //
  4463. func (c *OpsWorks) UpdateInstance(input *UpdateInstanceInput) (*UpdateInstanceOutput, error) {
  4464. req, out := c.UpdateInstanceRequest(input)
  4465. err := req.Send()
  4466. return out, err
  4467. }
  4468. const opUpdateLayer = "UpdateLayer"
  4469. // UpdateLayerRequest generates a "aws/request.Request" representing the
  4470. // client's request for the UpdateLayer operation. The "output" return
  4471. // value can be used to capture response data after the request's "Send" method
  4472. // is called.
  4473. //
  4474. // See UpdateLayer for usage and error information.
  4475. //
  4476. // Creating a request object using this method should be used when you want to inject
  4477. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4478. // access properties on the request object before or after sending the request. If
  4479. // you just want the service response, call the UpdateLayer method directly
  4480. // instead.
  4481. //
  4482. // Note: You must call the "Send" method on the returned request object in order
  4483. // to execute the request.
  4484. //
  4485. // // Example sending a request using the UpdateLayerRequest method.
  4486. // req, resp := client.UpdateLayerRequest(params)
  4487. //
  4488. // err := req.Send()
  4489. // if err == nil { // resp is now filled
  4490. // fmt.Println(resp)
  4491. // }
  4492. //
  4493. func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Request, output *UpdateLayerOutput) {
  4494. op := &request.Operation{
  4495. Name: opUpdateLayer,
  4496. HTTPMethod: "POST",
  4497. HTTPPath: "/",
  4498. }
  4499. if input == nil {
  4500. input = &UpdateLayerInput{}
  4501. }
  4502. req = c.newRequest(op, input, output)
  4503. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4504. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4505. output = &UpdateLayerOutput{}
  4506. req.Data = output
  4507. return
  4508. }
  4509. // UpdateLayer API operation for AWS OpsWorks.
  4510. //
  4511. // Updates a specified layer.
  4512. //
  4513. // Required Permissions: To use this action, an IAM user must have a Manage
  4514. // permissions level for the stack, or an attached policy that explicitly grants
  4515. // permissions. For more information on user permissions, see Managing User
  4516. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4517. //
  4518. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4519. // with awserr.Error's Code and Message methods to get detailed information about
  4520. // the error.
  4521. //
  4522. // See the AWS API reference guide for AWS OpsWorks's
  4523. // API operation UpdateLayer for usage and error information.
  4524. //
  4525. // Returned Error Codes:
  4526. // * ValidationException
  4527. // Indicates that a request was not valid.
  4528. //
  4529. // * ResourceNotFoundException
  4530. // Indicates that a resource was not found.
  4531. //
  4532. func (c *OpsWorks) UpdateLayer(input *UpdateLayerInput) (*UpdateLayerOutput, error) {
  4533. req, out := c.UpdateLayerRequest(input)
  4534. err := req.Send()
  4535. return out, err
  4536. }
  4537. const opUpdateMyUserProfile = "UpdateMyUserProfile"
  4538. // UpdateMyUserProfileRequest generates a "aws/request.Request" representing the
  4539. // client's request for the UpdateMyUserProfile operation. The "output" return
  4540. // value can be used to capture response data after the request's "Send" method
  4541. // is called.
  4542. //
  4543. // See UpdateMyUserProfile for usage and error information.
  4544. //
  4545. // Creating a request object using this method should be used when you want to inject
  4546. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4547. // access properties on the request object before or after sending the request. If
  4548. // you just want the service response, call the UpdateMyUserProfile method directly
  4549. // instead.
  4550. //
  4551. // Note: You must call the "Send" method on the returned request object in order
  4552. // to execute the request.
  4553. //
  4554. // // Example sending a request using the UpdateMyUserProfileRequest method.
  4555. // req, resp := client.UpdateMyUserProfileRequest(params)
  4556. //
  4557. // err := req.Send()
  4558. // if err == nil { // resp is now filled
  4559. // fmt.Println(resp)
  4560. // }
  4561. //
  4562. func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) (req *request.Request, output *UpdateMyUserProfileOutput) {
  4563. op := &request.Operation{
  4564. Name: opUpdateMyUserProfile,
  4565. HTTPMethod: "POST",
  4566. HTTPPath: "/",
  4567. }
  4568. if input == nil {
  4569. input = &UpdateMyUserProfileInput{}
  4570. }
  4571. req = c.newRequest(op, input, output)
  4572. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4573. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4574. output = &UpdateMyUserProfileOutput{}
  4575. req.Data = output
  4576. return
  4577. }
  4578. // UpdateMyUserProfile API operation for AWS OpsWorks.
  4579. //
  4580. // Updates a user's SSH public key.
  4581. //
  4582. // Required Permissions: To use this action, an IAM user must have self-management
  4583. // enabled or an attached policy that explicitly grants permissions. For more
  4584. // information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4585. //
  4586. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4587. // with awserr.Error's Code and Message methods to get detailed information about
  4588. // the error.
  4589. //
  4590. // See the AWS API reference guide for AWS OpsWorks's
  4591. // API operation UpdateMyUserProfile for usage and error information.
  4592. //
  4593. // Returned Error Codes:
  4594. // * ValidationException
  4595. // Indicates that a request was not valid.
  4596. //
  4597. func (c *OpsWorks) UpdateMyUserProfile(input *UpdateMyUserProfileInput) (*UpdateMyUserProfileOutput, error) {
  4598. req, out := c.UpdateMyUserProfileRequest(input)
  4599. err := req.Send()
  4600. return out, err
  4601. }
  4602. const opUpdateRdsDbInstance = "UpdateRdsDbInstance"
  4603. // UpdateRdsDbInstanceRequest generates a "aws/request.Request" representing the
  4604. // client's request for the UpdateRdsDbInstance operation. The "output" return
  4605. // value can be used to capture response data after the request's "Send" method
  4606. // is called.
  4607. //
  4608. // See UpdateRdsDbInstance for usage and error information.
  4609. //
  4610. // Creating a request object using this method should be used when you want to inject
  4611. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4612. // access properties on the request object before or after sending the request. If
  4613. // you just want the service response, call the UpdateRdsDbInstance method directly
  4614. // instead.
  4615. //
  4616. // Note: You must call the "Send" method on the returned request object in order
  4617. // to execute the request.
  4618. //
  4619. // // Example sending a request using the UpdateRdsDbInstanceRequest method.
  4620. // req, resp := client.UpdateRdsDbInstanceRequest(params)
  4621. //
  4622. // err := req.Send()
  4623. // if err == nil { // resp is now filled
  4624. // fmt.Println(resp)
  4625. // }
  4626. //
  4627. func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) (req *request.Request, output *UpdateRdsDbInstanceOutput) {
  4628. op := &request.Operation{
  4629. Name: opUpdateRdsDbInstance,
  4630. HTTPMethod: "POST",
  4631. HTTPPath: "/",
  4632. }
  4633. if input == nil {
  4634. input = &UpdateRdsDbInstanceInput{}
  4635. }
  4636. req = c.newRequest(op, input, output)
  4637. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4638. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4639. output = &UpdateRdsDbInstanceOutput{}
  4640. req.Data = output
  4641. return
  4642. }
  4643. // UpdateRdsDbInstance API operation for AWS OpsWorks.
  4644. //
  4645. // Updates an Amazon RDS instance.
  4646. //
  4647. // Required Permissions: To use this action, an IAM user must have a Manage
  4648. // permissions level for the stack, or an attached policy that explicitly grants
  4649. // permissions. For more information on user permissions, see Managing User
  4650. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4651. //
  4652. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4653. // with awserr.Error's Code and Message methods to get detailed information about
  4654. // the error.
  4655. //
  4656. // See the AWS API reference guide for AWS OpsWorks's
  4657. // API operation UpdateRdsDbInstance for usage and error information.
  4658. //
  4659. // Returned Error Codes:
  4660. // * ValidationException
  4661. // Indicates that a request was not valid.
  4662. //
  4663. // * ResourceNotFoundException
  4664. // Indicates that a resource was not found.
  4665. //
  4666. func (c *OpsWorks) UpdateRdsDbInstance(input *UpdateRdsDbInstanceInput) (*UpdateRdsDbInstanceOutput, error) {
  4667. req, out := c.UpdateRdsDbInstanceRequest(input)
  4668. err := req.Send()
  4669. return out, err
  4670. }
  4671. const opUpdateStack = "UpdateStack"
  4672. // UpdateStackRequest generates a "aws/request.Request" representing the
  4673. // client's request for the UpdateStack operation. The "output" return
  4674. // value can be used to capture response data after the request's "Send" method
  4675. // is called.
  4676. //
  4677. // See UpdateStack for usage and error information.
  4678. //
  4679. // Creating a request object using this method should be used when you want to inject
  4680. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4681. // access properties on the request object before or after sending the request. If
  4682. // you just want the service response, call the UpdateStack method directly
  4683. // instead.
  4684. //
  4685. // Note: You must call the "Send" method on the returned request object in order
  4686. // to execute the request.
  4687. //
  4688. // // Example sending a request using the UpdateStackRequest method.
  4689. // req, resp := client.UpdateStackRequest(params)
  4690. //
  4691. // err := req.Send()
  4692. // if err == nil { // resp is now filled
  4693. // fmt.Println(resp)
  4694. // }
  4695. //
  4696. func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Request, output *UpdateStackOutput) {
  4697. op := &request.Operation{
  4698. Name: opUpdateStack,
  4699. HTTPMethod: "POST",
  4700. HTTPPath: "/",
  4701. }
  4702. if input == nil {
  4703. input = &UpdateStackInput{}
  4704. }
  4705. req = c.newRequest(op, input, output)
  4706. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4707. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4708. output = &UpdateStackOutput{}
  4709. req.Data = output
  4710. return
  4711. }
  4712. // UpdateStack API operation for AWS OpsWorks.
  4713. //
  4714. // Updates a specified stack.
  4715. //
  4716. // Required Permissions: To use this action, an IAM user must have a Manage
  4717. // permissions level for the stack, or an attached policy that explicitly grants
  4718. // permissions. For more information on user permissions, see Managing User
  4719. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4720. //
  4721. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4722. // with awserr.Error's Code and Message methods to get detailed information about
  4723. // the error.
  4724. //
  4725. // See the AWS API reference guide for AWS OpsWorks's
  4726. // API operation UpdateStack for usage and error information.
  4727. //
  4728. // Returned Error Codes:
  4729. // * ValidationException
  4730. // Indicates that a request was not valid.
  4731. //
  4732. // * ResourceNotFoundException
  4733. // Indicates that a resource was not found.
  4734. //
  4735. func (c *OpsWorks) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) {
  4736. req, out := c.UpdateStackRequest(input)
  4737. err := req.Send()
  4738. return out, err
  4739. }
  4740. const opUpdateUserProfile = "UpdateUserProfile"
  4741. // UpdateUserProfileRequest generates a "aws/request.Request" representing the
  4742. // client's request for the UpdateUserProfile operation. The "output" return
  4743. // value can be used to capture response data after the request's "Send" method
  4744. // is called.
  4745. //
  4746. // See UpdateUserProfile for usage and error information.
  4747. //
  4748. // Creating a request object using this method should be used when you want to inject
  4749. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4750. // access properties on the request object before or after sending the request. If
  4751. // you just want the service response, call the UpdateUserProfile method directly
  4752. // instead.
  4753. //
  4754. // Note: You must call the "Send" method on the returned request object in order
  4755. // to execute the request.
  4756. //
  4757. // // Example sending a request using the UpdateUserProfileRequest method.
  4758. // req, resp := client.UpdateUserProfileRequest(params)
  4759. //
  4760. // err := req.Send()
  4761. // if err == nil { // resp is now filled
  4762. // fmt.Println(resp)
  4763. // }
  4764. //
  4765. func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req *request.Request, output *UpdateUserProfileOutput) {
  4766. op := &request.Operation{
  4767. Name: opUpdateUserProfile,
  4768. HTTPMethod: "POST",
  4769. HTTPPath: "/",
  4770. }
  4771. if input == nil {
  4772. input = &UpdateUserProfileInput{}
  4773. }
  4774. req = c.newRequest(op, input, output)
  4775. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4776. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4777. output = &UpdateUserProfileOutput{}
  4778. req.Data = output
  4779. return
  4780. }
  4781. // UpdateUserProfile API operation for AWS OpsWorks.
  4782. //
  4783. // Updates a specified user profile.
  4784. //
  4785. // Required Permissions: To use this action, an IAM user must have an attached
  4786. // policy that explicitly grants permissions. For more information on user permissions,
  4787. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4788. //
  4789. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4790. // with awserr.Error's Code and Message methods to get detailed information about
  4791. // the error.
  4792. //
  4793. // See the AWS API reference guide for AWS OpsWorks's
  4794. // API operation UpdateUserProfile for usage and error information.
  4795. //
  4796. // Returned Error Codes:
  4797. // * ValidationException
  4798. // Indicates that a request was not valid.
  4799. //
  4800. // * ResourceNotFoundException
  4801. // Indicates that a resource was not found.
  4802. //
  4803. func (c *OpsWorks) UpdateUserProfile(input *UpdateUserProfileInput) (*UpdateUserProfileOutput, error) {
  4804. req, out := c.UpdateUserProfileRequest(input)
  4805. err := req.Send()
  4806. return out, err
  4807. }
  4808. const opUpdateVolume = "UpdateVolume"
  4809. // UpdateVolumeRequest generates a "aws/request.Request" representing the
  4810. // client's request for the UpdateVolume operation. The "output" return
  4811. // value can be used to capture response data after the request's "Send" method
  4812. // is called.
  4813. //
  4814. // See UpdateVolume for usage and error information.
  4815. //
  4816. // Creating a request object using this method should be used when you want to inject
  4817. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4818. // access properties on the request object before or after sending the request. If
  4819. // you just want the service response, call the UpdateVolume method directly
  4820. // instead.
  4821. //
  4822. // Note: You must call the "Send" method on the returned request object in order
  4823. // to execute the request.
  4824. //
  4825. // // Example sending a request using the UpdateVolumeRequest method.
  4826. // req, resp := client.UpdateVolumeRequest(params)
  4827. //
  4828. // err := req.Send()
  4829. // if err == nil { // resp is now filled
  4830. // fmt.Println(resp)
  4831. // }
  4832. //
  4833. func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.Request, output *UpdateVolumeOutput) {
  4834. op := &request.Operation{
  4835. Name: opUpdateVolume,
  4836. HTTPMethod: "POST",
  4837. HTTPPath: "/",
  4838. }
  4839. if input == nil {
  4840. input = &UpdateVolumeInput{}
  4841. }
  4842. req = c.newRequest(op, input, output)
  4843. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  4844. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4845. output = &UpdateVolumeOutput{}
  4846. req.Data = output
  4847. return
  4848. }
  4849. // UpdateVolume API operation for AWS OpsWorks.
  4850. //
  4851. // Updates an Amazon EBS volume's name or mount point. For more information,
  4852. // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  4853. //
  4854. // Required Permissions: To use this action, an IAM user must have a Manage
  4855. // permissions level for the stack, or an attached policy that explicitly grants
  4856. // permissions. For more information on user permissions, see Managing User
  4857. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  4858. //
  4859. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4860. // with awserr.Error's Code and Message methods to get detailed information about
  4861. // the error.
  4862. //
  4863. // See the AWS API reference guide for AWS OpsWorks's
  4864. // API operation UpdateVolume for usage and error information.
  4865. //
  4866. // Returned Error Codes:
  4867. // * ValidationException
  4868. // Indicates that a request was not valid.
  4869. //
  4870. // * ResourceNotFoundException
  4871. // Indicates that a resource was not found.
  4872. //
  4873. func (c *OpsWorks) UpdateVolume(input *UpdateVolumeInput) (*UpdateVolumeOutput, error) {
  4874. req, out := c.UpdateVolumeRequest(input)
  4875. err := req.Send()
  4876. return out, err
  4877. }
  4878. // Describes an agent version.
  4879. type AgentVersion struct {
  4880. _ struct{} `type:"structure"`
  4881. // The configuration manager.
  4882. ConfigurationManager *StackConfigurationManager `type:"structure"`
  4883. // The agent version.
  4884. Version *string `type:"string"`
  4885. }
  4886. // String returns the string representation
  4887. func (s AgentVersion) String() string {
  4888. return awsutil.Prettify(s)
  4889. }
  4890. // GoString returns the string representation
  4891. func (s AgentVersion) GoString() string {
  4892. return s.String()
  4893. }
  4894. // A description of the app.
  4895. type App struct {
  4896. _ struct{} `type:"structure"`
  4897. // The app ID.
  4898. AppId *string `type:"string"`
  4899. // A Source object that describes the app repository.
  4900. AppSource *Source `type:"structure"`
  4901. // The stack attributes.
  4902. Attributes map[string]*string `type:"map"`
  4903. // When the app was created.
  4904. CreatedAt *string `type:"string"`
  4905. // The app's data sources.
  4906. DataSources []*DataSource `type:"list"`
  4907. // A description of the app.
  4908. Description *string `type:"string"`
  4909. // The app vhost settings with multiple domains separated by commas. For example:
  4910. // 'www.example.com, example.com'
  4911. Domains []*string `type:"list"`
  4912. // Whether to enable SSL for the app.
  4913. EnableSsl *bool `type:"boolean"`
  4914. // An array of EnvironmentVariable objects that specify environment variables
  4915. // to be associated with the app. After you deploy the app, these variables
  4916. // are defined on the associated app server instances. For more information,
  4917. // see Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).
  4918. //
  4919. // There is no specific limit on the number of environment variables. However,
  4920. // the size of the associated data structure - which includes the variable names,
  4921. // values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This
  4922. // limit should accommodate most if not all use cases, but if you do exceed
  4923. // it, you will cause an exception (API) with an "Environment: is too large
  4924. // (maximum is 10KB)" message.
  4925. Environment []*EnvironmentVariable `type:"list"`
  4926. // The app name.
  4927. Name *string `type:"string"`
  4928. // The app's short name.
  4929. Shortname *string `type:"string"`
  4930. // An SslConfiguration object with the SSL configuration.
  4931. SslConfiguration *SslConfiguration `type:"structure"`
  4932. // The app stack ID.
  4933. StackId *string `type:"string"`
  4934. // The app type.
  4935. Type *string `type:"string" enum:"AppType"`
  4936. }
  4937. // String returns the string representation
  4938. func (s App) String() string {
  4939. return awsutil.Prettify(s)
  4940. }
  4941. // GoString returns the string representation
  4942. func (s App) GoString() string {
  4943. return s.String()
  4944. }
  4945. type AssignInstanceInput struct {
  4946. _ struct{} `type:"structure"`
  4947. // The instance ID.
  4948. //
  4949. // InstanceId is a required field
  4950. InstanceId *string `type:"string" required:"true"`
  4951. // The layer ID, which must correspond to a custom layer. You cannot assign
  4952. // a registered instance to a built-in layer.
  4953. //
  4954. // LayerIds is a required field
  4955. LayerIds []*string `type:"list" required:"true"`
  4956. }
  4957. // String returns the string representation
  4958. func (s AssignInstanceInput) String() string {
  4959. return awsutil.Prettify(s)
  4960. }
  4961. // GoString returns the string representation
  4962. func (s AssignInstanceInput) GoString() string {
  4963. return s.String()
  4964. }
  4965. // Validate inspects the fields of the type to determine if they are valid.
  4966. func (s *AssignInstanceInput) Validate() error {
  4967. invalidParams := request.ErrInvalidParams{Context: "AssignInstanceInput"}
  4968. if s.InstanceId == nil {
  4969. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  4970. }
  4971. if s.LayerIds == nil {
  4972. invalidParams.Add(request.NewErrParamRequired("LayerIds"))
  4973. }
  4974. if invalidParams.Len() > 0 {
  4975. return invalidParams
  4976. }
  4977. return nil
  4978. }
  4979. type AssignInstanceOutput struct {
  4980. _ struct{} `type:"structure"`
  4981. }
  4982. // String returns the string representation
  4983. func (s AssignInstanceOutput) String() string {
  4984. return awsutil.Prettify(s)
  4985. }
  4986. // GoString returns the string representation
  4987. func (s AssignInstanceOutput) GoString() string {
  4988. return s.String()
  4989. }
  4990. type AssignVolumeInput struct {
  4991. _ struct{} `type:"structure"`
  4992. // The instance ID.
  4993. InstanceId *string `type:"string"`
  4994. // The volume ID.
  4995. //
  4996. // VolumeId is a required field
  4997. VolumeId *string `type:"string" required:"true"`
  4998. }
  4999. // String returns the string representation
  5000. func (s AssignVolumeInput) String() string {
  5001. return awsutil.Prettify(s)
  5002. }
  5003. // GoString returns the string representation
  5004. func (s AssignVolumeInput) GoString() string {
  5005. return s.String()
  5006. }
  5007. // Validate inspects the fields of the type to determine if they are valid.
  5008. func (s *AssignVolumeInput) Validate() error {
  5009. invalidParams := request.ErrInvalidParams{Context: "AssignVolumeInput"}
  5010. if s.VolumeId == nil {
  5011. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  5012. }
  5013. if invalidParams.Len() > 0 {
  5014. return invalidParams
  5015. }
  5016. return nil
  5017. }
  5018. type AssignVolumeOutput struct {
  5019. _ struct{} `type:"structure"`
  5020. }
  5021. // String returns the string representation
  5022. func (s AssignVolumeOutput) String() string {
  5023. return awsutil.Prettify(s)
  5024. }
  5025. // GoString returns the string representation
  5026. func (s AssignVolumeOutput) GoString() string {
  5027. return s.String()
  5028. }
  5029. type AssociateElasticIpInput struct {
  5030. _ struct{} `type:"structure"`
  5031. // The Elastic IP address.
  5032. //
  5033. // ElasticIp is a required field
  5034. ElasticIp *string `type:"string" required:"true"`
  5035. // The instance ID.
  5036. InstanceId *string `type:"string"`
  5037. }
  5038. // String returns the string representation
  5039. func (s AssociateElasticIpInput) String() string {
  5040. return awsutil.Prettify(s)
  5041. }
  5042. // GoString returns the string representation
  5043. func (s AssociateElasticIpInput) GoString() string {
  5044. return s.String()
  5045. }
  5046. // Validate inspects the fields of the type to determine if they are valid.
  5047. func (s *AssociateElasticIpInput) Validate() error {
  5048. invalidParams := request.ErrInvalidParams{Context: "AssociateElasticIpInput"}
  5049. if s.ElasticIp == nil {
  5050. invalidParams.Add(request.NewErrParamRequired("ElasticIp"))
  5051. }
  5052. if invalidParams.Len() > 0 {
  5053. return invalidParams
  5054. }
  5055. return nil
  5056. }
  5057. type AssociateElasticIpOutput struct {
  5058. _ struct{} `type:"structure"`
  5059. }
  5060. // String returns the string representation
  5061. func (s AssociateElasticIpOutput) String() string {
  5062. return awsutil.Prettify(s)
  5063. }
  5064. // GoString returns the string representation
  5065. func (s AssociateElasticIpOutput) GoString() string {
  5066. return s.String()
  5067. }
  5068. type AttachElasticLoadBalancerInput struct {
  5069. _ struct{} `type:"structure"`
  5070. // The Elastic Load Balancing instance's name.
  5071. //
  5072. // ElasticLoadBalancerName is a required field
  5073. ElasticLoadBalancerName *string `type:"string" required:"true"`
  5074. // The ID of the layer that the Elastic Load Balancing instance is to be attached
  5075. // to.
  5076. //
  5077. // LayerId is a required field
  5078. LayerId *string `type:"string" required:"true"`
  5079. }
  5080. // String returns the string representation
  5081. func (s AttachElasticLoadBalancerInput) String() string {
  5082. return awsutil.Prettify(s)
  5083. }
  5084. // GoString returns the string representation
  5085. func (s AttachElasticLoadBalancerInput) GoString() string {
  5086. return s.String()
  5087. }
  5088. // Validate inspects the fields of the type to determine if they are valid.
  5089. func (s *AttachElasticLoadBalancerInput) Validate() error {
  5090. invalidParams := request.ErrInvalidParams{Context: "AttachElasticLoadBalancerInput"}
  5091. if s.ElasticLoadBalancerName == nil {
  5092. invalidParams.Add(request.NewErrParamRequired("ElasticLoadBalancerName"))
  5093. }
  5094. if s.LayerId == nil {
  5095. invalidParams.Add(request.NewErrParamRequired("LayerId"))
  5096. }
  5097. if invalidParams.Len() > 0 {
  5098. return invalidParams
  5099. }
  5100. return nil
  5101. }
  5102. type AttachElasticLoadBalancerOutput struct {
  5103. _ struct{} `type:"structure"`
  5104. }
  5105. // String returns the string representation
  5106. func (s AttachElasticLoadBalancerOutput) String() string {
  5107. return awsutil.Prettify(s)
  5108. }
  5109. // GoString returns the string representation
  5110. func (s AttachElasticLoadBalancerOutput) GoString() string {
  5111. return s.String()
  5112. }
  5113. // Describes a load-based auto scaling upscaling or downscaling threshold configuration,
  5114. // which specifies when AWS OpsWorks starts or stops load-based instances.
  5115. type AutoScalingThresholds struct {
  5116. _ struct{} `type:"structure"`
  5117. // Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter
  5118. // takes a list of up to five alarm names, which are case sensitive and must
  5119. // be in the same region as the stack.
  5120. //
  5121. // To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms.
  5122. // You can either have AWS OpsWorks update the role for you when you first use
  5123. // this feature or you can edit the role manually. For more information, see
  5124. // Allowing AWS OpsWorks to Act on Your Behalf (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-servicerole.html).
  5125. Alarms []*string `type:"list"`
  5126. // The CPU utilization threshold, as a percent of the available CPU. A value
  5127. // of -1 disables the threshold.
  5128. CpuThreshold *float64 `type:"double"`
  5129. // The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks
  5130. // should ignore metrics and suppress additional scaling events. For example,
  5131. // AWS OpsWorks adds new instances following an upscaling event but the instances
  5132. // won't start reducing the load until they have been booted and configured.
  5133. // There is no point in raising additional scaling events during that operation,
  5134. // which typically takes several minutes. IgnoreMetricsTime allows you to direct
  5135. // AWS OpsWorks to suppress scaling events long enough to get the new instances
  5136. // online.
  5137. IgnoreMetricsTime *int64 `min:"1" type:"integer"`
  5138. // The number of instances to add or remove when the load exceeds a threshold.
  5139. InstanceCount *int64 `type:"integer"`
  5140. // The load threshold. A value of -1 disables the threshold. For more information
  5141. // about how load is computed, see Load (computing) (http://en.wikipedia.org/wiki/Load_%28computing%29).
  5142. LoadThreshold *float64 `type:"double"`
  5143. // The memory utilization threshold, as a percent of the available memory. A
  5144. // value of -1 disables the threshold.
  5145. MemoryThreshold *float64 `type:"double"`
  5146. // The amount of time, in minutes, that the load must exceed a threshold before
  5147. // more instances are added or removed.
  5148. ThresholdsWaitTime *int64 `min:"1" type:"integer"`
  5149. }
  5150. // String returns the string representation
  5151. func (s AutoScalingThresholds) String() string {
  5152. return awsutil.Prettify(s)
  5153. }
  5154. // GoString returns the string representation
  5155. func (s AutoScalingThresholds) GoString() string {
  5156. return s.String()
  5157. }
  5158. // Validate inspects the fields of the type to determine if they are valid.
  5159. func (s *AutoScalingThresholds) Validate() error {
  5160. invalidParams := request.ErrInvalidParams{Context: "AutoScalingThresholds"}
  5161. if s.IgnoreMetricsTime != nil && *s.IgnoreMetricsTime < 1 {
  5162. invalidParams.Add(request.NewErrParamMinValue("IgnoreMetricsTime", 1))
  5163. }
  5164. if s.ThresholdsWaitTime != nil && *s.ThresholdsWaitTime < 1 {
  5165. invalidParams.Add(request.NewErrParamMinValue("ThresholdsWaitTime", 1))
  5166. }
  5167. if invalidParams.Len() > 0 {
  5168. return invalidParams
  5169. }
  5170. return nil
  5171. }
  5172. // Describes a block device mapping. This data type maps directly to the Amazon
  5173. // EC2 BlockDeviceMapping (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html)
  5174. // data type.
  5175. type BlockDeviceMapping struct {
  5176. _ struct{} `type:"structure"`
  5177. // The device name that is exposed to the instance, such as /dev/sdh. For the
  5178. // root device, you can use the explicit device name or you can set this parameter
  5179. // to ROOT_DEVICE and AWS OpsWorks will provide the correct device name.
  5180. DeviceName *string `type:"string"`
  5181. // An EBSBlockDevice that defines how to configure an Amazon EBS volume when
  5182. // the instance is launched.
  5183. Ebs *EbsBlockDevice `type:"structure"`
  5184. // Suppresses the specified device included in the AMI's block device mapping.
  5185. NoDevice *string `type:"string"`
  5186. // The virtual device name. For more information, see BlockDeviceMapping (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html).
  5187. VirtualName *string `type:"string"`
  5188. }
  5189. // String returns the string representation
  5190. func (s BlockDeviceMapping) String() string {
  5191. return awsutil.Prettify(s)
  5192. }
  5193. // GoString returns the string representation
  5194. func (s BlockDeviceMapping) GoString() string {
  5195. return s.String()
  5196. }
  5197. // Describes the Chef configuration.
  5198. type ChefConfiguration struct {
  5199. _ struct{} `type:"structure"`
  5200. // The Berkshelf version.
  5201. BerkshelfVersion *string `type:"string"`
  5202. // Whether to enable Berkshelf.
  5203. ManageBerkshelf *bool `type:"boolean"`
  5204. }
  5205. // String returns the string representation
  5206. func (s ChefConfiguration) String() string {
  5207. return awsutil.Prettify(s)
  5208. }
  5209. // GoString returns the string representation
  5210. func (s ChefConfiguration) GoString() string {
  5211. return s.String()
  5212. }
  5213. type CloneStackInput struct {
  5214. _ struct{} `type:"structure"`
  5215. // The default AWS OpsWorks agent version. You have the following options:
  5216. //
  5217. // * Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically
  5218. // installs new agent versions on the stack's instances as soon as they are
  5219. // available.
  5220. //
  5221. // * Fixed version - Set this parameter to your preferred agent version.
  5222. // To update the agent version, you must edit the stack configuration and
  5223. // specify a new version. AWS OpsWorks then automatically installs that version
  5224. // on the stack's instances.
  5225. //
  5226. // The default setting is LATEST. To specify an agent version, you must use
  5227. // the complete version number, not the abbreviated number shown on the console.
  5228. // For a list of available agent version numbers, call DescribeAgentVersions.
  5229. //
  5230. // You can also specify an agent version when you create or update an instance,
  5231. // which overrides the stack's default setting.
  5232. AgentVersion *string `type:"string"`
  5233. // A list of stack attributes and values as key/value pairs to be added to the
  5234. // cloned stack.
  5235. Attributes map[string]*string `type:"map"`
  5236. // A ChefConfiguration object that specifies whether to enable Berkshelf and
  5237. // the Berkshelf version on Chef 11.10 stacks. For more information, see Create
  5238. // a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  5239. ChefConfiguration *ChefConfiguration `type:"structure"`
  5240. // A list of source stack app IDs to be included in the cloned stack.
  5241. CloneAppIds []*string `type:"list"`
  5242. // Whether to clone the source stack's permissions.
  5243. ClonePermissions *bool `type:"boolean"`
  5244. // The configuration manager. When you clone a stack we recommend that you use
  5245. // the configuration manager to specify the Chef version: 12, 11.10, or 11.4
  5246. // for Linux stacks, or 12.2 for Windows stacks. The default value for Linux
  5247. // stacks is currently 12.
  5248. ConfigurationManager *StackConfigurationManager `type:"structure"`
  5249. // Contains the information required to retrieve an app or cookbook from a repository.
  5250. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  5251. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  5252. CustomCookbooksSource *Source `type:"structure"`
  5253. // A string that contains user-defined, custom JSON. It is used to override
  5254. // the corresponding default stack configuration JSON values. The string should
  5255. // be in the following format:
  5256. //
  5257. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  5258. //
  5259. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  5260. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html)
  5261. CustomJson *string `type:"string"`
  5262. // The cloned stack's default Availability Zone, which must be in the specified
  5263. // region. For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  5264. // If you also specify a value for DefaultSubnetId, the subnet must be in the
  5265. // same zone. For more information, see the VpcId parameter description.
  5266. DefaultAvailabilityZone *string `type:"string"`
  5267. // The Amazon Resource Name (ARN) of an IAM profile that is the default profile
  5268. // for all of the stack's EC2 instances. For more information about IAM ARNs,
  5269. // see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  5270. DefaultInstanceProfileArn *string `type:"string"`
  5271. // The stack's operating system, which must be set to one of the following.
  5272. //
  5273. // * A supported Linux operating system: An Amazon Linux version, such as
  5274. // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
  5275. //
  5276. // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
  5277. // 14.04 LTS, or Ubuntu 12.04 LTS.
  5278. //
  5279. // * CentOS 7
  5280. //
  5281. // * Red Hat Enterprise Linux 7
  5282. //
  5283. // * Microsoft Windows Server 2012 R2 Base, Microsoft Windows Server 2012
  5284. // R2 with SQL Server Express, Microsoft Windows Server 2012 R2 with SQL
  5285. // Server Standard, or Microsoft Windows Server 2012 R2 with SQL Server Web.
  5286. //
  5287. // * A custom AMI: Custom. You specify the custom AMI you want to use when
  5288. // you create instances. For more information on how to use custom AMIs with
  5289. // OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  5290. //
  5291. // The default option is the parent stack's operating system. For more information
  5292. // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  5293. //
  5294. // You can specify a different Linux operating system for the cloned stack,
  5295. // but you cannot change from Linux to Windows or Windows to Linux.
  5296. DefaultOs *string `type:"string"`
  5297. // The default root device type. This value is used by default for all instances
  5298. // in the cloned stack, but you can override it when you create an instance.
  5299. // For more information, see Storage for the Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  5300. DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`
  5301. // A default Amazon EC2 key pair name. The default value is none. If you specify
  5302. // a key pair name, AWS OpsWorks installs the public key on the instance and
  5303. // you can use the private key with an SSH client to log in to the instance.
  5304. // For more information, see Using SSH to Communicate with an Instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html)
  5305. // and Managing SSH Access (http://docs.aws.amazon.com/opsworks/latest/userguide/security-ssh-access.html).
  5306. // You can override this setting by specifying a different key pair, or no key
  5307. // pair, when you create an instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
  5308. DefaultSshKeyName *string `type:"string"`
  5309. // The stack's default VPC subnet ID. This parameter is required if you specify
  5310. // a value for the VpcId parameter. All instances are launched into this subnet
  5311. // unless you specify otherwise when you create the instance. If you also specify
  5312. // a value for DefaultAvailabilityZone, the subnet must be in that zone. For
  5313. // information on default values and when this parameter is required, see the
  5314. // VpcId parameter description.
  5315. DefaultSubnetId *string `type:"string"`
  5316. // The stack's host name theme, with spaces are replaced by underscores. The
  5317. // theme is used to generate host names for the stack's instances. By default,
  5318. // HostnameTheme is set to Layer_Dependent, which creates host names by appending
  5319. // integers to the layer's short name. The other themes are:
  5320. //
  5321. // * Baked_Goods
  5322. //
  5323. // * Clouds
  5324. //
  5325. // * Europe_Cities
  5326. //
  5327. // * Fruits
  5328. //
  5329. // * Greek_Deities
  5330. //
  5331. // * Legendary_creatures_from_Japan
  5332. //
  5333. // * Planets_and_Moons
  5334. //
  5335. // * Roman_Deities
  5336. //
  5337. // * Scottish_Islands
  5338. //
  5339. // * US_Cities
  5340. //
  5341. // * Wild_Cats
  5342. //
  5343. // To obtain a generated host name, call GetHostNameSuggestion, which returns
  5344. // a host name based on the current theme.
  5345. HostnameTheme *string `type:"string"`
  5346. // The cloned stack name.
  5347. Name *string `type:"string"`
  5348. // The cloned stack AWS region, such as "ap-northeast-2". For more information
  5349. // about AWS regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  5350. Region *string `type:"string"`
  5351. // The stack AWS Identity and Access Management (IAM) role, which allows AWS
  5352. // OpsWorks to work with AWS resources on your behalf. You must set this parameter
  5353. // to the Amazon Resource Name (ARN) for an existing IAM role. If you create
  5354. // a stack by using the AWS OpsWorks console, it creates the role for you. You
  5355. // can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions.
  5356. // For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  5357. //
  5358. // You must set this parameter to a valid service role ARN or the action will
  5359. // fail; there is no default value. You can specify the source stack's service
  5360. // role ARN, if you prefer, but you must do so explicitly.
  5361. //
  5362. // ServiceRoleArn is a required field
  5363. ServiceRoleArn *string `type:"string" required:"true"`
  5364. // The source stack ID.
  5365. //
  5366. // SourceStackId is a required field
  5367. SourceStackId *string `type:"string" required:"true"`
  5368. // Whether to use custom cookbooks.
  5369. UseCustomCookbooks *bool `type:"boolean"`
  5370. // Whether to associate the AWS OpsWorks built-in security groups with the stack's
  5371. // layers.
  5372. //
  5373. // AWS OpsWorks provides a standard set of built-in security groups, one for
  5374. // each layer, which are associated with layers by default. With UseOpsworksSecurityGroups
  5375. // you can instead provide your own custom security groups. UseOpsworksSecurityGroups
  5376. // has the following settings:
  5377. //
  5378. // * True - AWS OpsWorks automatically associates the appropriate built-in
  5379. // security group with each layer (default setting). You can associate additional
  5380. // security groups with a layer after you create it but you cannot delete
  5381. // the built-in security group.
  5382. //
  5383. // * False - AWS OpsWorks does not associate built-in security groups with
  5384. // layers. You must create appropriate Amazon Elastic Compute Cloud (Amazon
  5385. // EC2) security groups and associate a security group with each layer that
  5386. // you create. However, you can still manually associate a built-in security
  5387. // group with a layer on creation; custom security groups are required only
  5388. // for those layers that need custom settings.
  5389. //
  5390. // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  5391. UseOpsworksSecurityGroups *bool `type:"boolean"`
  5392. // The ID of the VPC that the cloned stack is to be launched into. It must be
  5393. // in the specified region. All instances are launched into this VPC, and you
  5394. // cannot change the ID later.
  5395. //
  5396. // * If your account supports EC2 Classic, the default value is no VPC.
  5397. //
  5398. // * If your account does not support EC2 Classic, the default value is the
  5399. // default VPC for the specified region.
  5400. //
  5401. // If the VPC ID corresponds to a default VPC and you have specified either
  5402. // the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks
  5403. // infers the value of the other parameter. If you specify neither parameter,
  5404. // AWS OpsWorks sets these parameters to the first valid Availability Zone for
  5405. // the specified region and the corresponding default VPC subnet ID, respectively.
  5406. //
  5407. // If you specify a nondefault VPC ID, note the following:
  5408. //
  5409. // * It must belong to a VPC in your account that is in the specified region.
  5410. //
  5411. // * You must specify a value for DefaultSubnetId.
  5412. //
  5413. // For more information on how to use AWS OpsWorks with a VPC, see Running a
  5414. // Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html).
  5415. // For more information on default VPC and EC2 Classic, see Supported Platforms
  5416. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html).
  5417. VpcId *string `type:"string"`
  5418. }
  5419. // String returns the string representation
  5420. func (s CloneStackInput) String() string {
  5421. return awsutil.Prettify(s)
  5422. }
  5423. // GoString returns the string representation
  5424. func (s CloneStackInput) GoString() string {
  5425. return s.String()
  5426. }
  5427. // Validate inspects the fields of the type to determine if they are valid.
  5428. func (s *CloneStackInput) Validate() error {
  5429. invalidParams := request.ErrInvalidParams{Context: "CloneStackInput"}
  5430. if s.ServiceRoleArn == nil {
  5431. invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn"))
  5432. }
  5433. if s.SourceStackId == nil {
  5434. invalidParams.Add(request.NewErrParamRequired("SourceStackId"))
  5435. }
  5436. if invalidParams.Len() > 0 {
  5437. return invalidParams
  5438. }
  5439. return nil
  5440. }
  5441. // Contains the response to a CloneStack request.
  5442. type CloneStackOutput struct {
  5443. _ struct{} `type:"structure"`
  5444. // The cloned stack ID.
  5445. StackId *string `type:"string"`
  5446. }
  5447. // String returns the string representation
  5448. func (s CloneStackOutput) String() string {
  5449. return awsutil.Prettify(s)
  5450. }
  5451. // GoString returns the string representation
  5452. func (s CloneStackOutput) GoString() string {
  5453. return s.String()
  5454. }
  5455. // Describes a command.
  5456. type Command struct {
  5457. _ struct{} `type:"structure"`
  5458. // Date and time when the command was acknowledged.
  5459. AcknowledgedAt *string `type:"string"`
  5460. // The command ID.
  5461. CommandId *string `type:"string"`
  5462. // Date when the command completed.
  5463. CompletedAt *string `type:"string"`
  5464. // Date and time when the command was run.
  5465. CreatedAt *string `type:"string"`
  5466. // The command deployment ID.
  5467. DeploymentId *string `type:"string"`
  5468. // The command exit code.
  5469. ExitCode *int64 `type:"integer"`
  5470. // The ID of the instance where the command was executed.
  5471. InstanceId *string `type:"string"`
  5472. // The URL of the command log.
  5473. LogUrl *string `type:"string"`
  5474. // The command status:
  5475. //
  5476. // * failed
  5477. //
  5478. // * successful
  5479. //
  5480. // * skipped
  5481. //
  5482. // * pending
  5483. Status *string `type:"string"`
  5484. // The command type:
  5485. //
  5486. // * deploy
  5487. //
  5488. // * rollback
  5489. //
  5490. // * start
  5491. //
  5492. // * stop
  5493. //
  5494. // * restart
  5495. //
  5496. // * undeploy
  5497. //
  5498. // * update_dependencies
  5499. //
  5500. // * install_dependencies
  5501. //
  5502. // * update_custom_cookbooks
  5503. //
  5504. // * execute_recipes
  5505. Type *string `type:"string"`
  5506. }
  5507. // String returns the string representation
  5508. func (s Command) String() string {
  5509. return awsutil.Prettify(s)
  5510. }
  5511. // GoString returns the string representation
  5512. func (s Command) GoString() string {
  5513. return s.String()
  5514. }
  5515. type CreateAppInput struct {
  5516. _ struct{} `type:"structure"`
  5517. // A Source object that specifies the app repository.
  5518. AppSource *Source `type:"structure"`
  5519. // One or more user-defined key/value pairs to be added to the stack attributes.
  5520. Attributes map[string]*string `type:"map"`
  5521. // The app's data source.
  5522. DataSources []*DataSource `type:"list"`
  5523. // A description of the app.
  5524. Description *string `type:"string"`
  5525. // The app virtual host settings, with multiple domains separated by commas.
  5526. // For example: 'www.example.com, example.com'
  5527. Domains []*string `type:"list"`
  5528. // Whether to enable SSL for the app.
  5529. EnableSsl *bool `type:"boolean"`
  5530. // An array of EnvironmentVariable objects that specify environment variables
  5531. // to be associated with the app. After you deploy the app, these variables
  5532. // are defined on the associated app server instance. For more information,
  5533. // see Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).
  5534. //
  5535. // There is no specific limit on the number of environment variables. However,
  5536. // the size of the associated data structure - which includes the variables'
  5537. // names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes).
  5538. // This limit should accommodate most if not all use cases. Exceeding it will
  5539. // cause an exception with the message, "Environment: is too large (maximum
  5540. // is 10KB)."
  5541. //
  5542. // This parameter is supported only by Chef 11.10 stacks. If you have specified
  5543. // one or more environment variables, you cannot modify the stack's Chef version.
  5544. Environment []*EnvironmentVariable `type:"list"`
  5545. // The app name.
  5546. //
  5547. // Name is a required field
  5548. Name *string `type:"string" required:"true"`
  5549. // The app's short name.
  5550. Shortname *string `type:"string"`
  5551. // An SslConfiguration object with the SSL configuration.
  5552. SslConfiguration *SslConfiguration `type:"structure"`
  5553. // The stack ID.
  5554. //
  5555. // StackId is a required field
  5556. StackId *string `type:"string" required:"true"`
  5557. // The app type. Each supported type is associated with a particular layer.
  5558. // For example, PHP applications are associated with a PHP layer. AWS OpsWorks
  5559. // deploys an application to those instances that are members of the corresponding
  5560. // layer. If your app isn't one of the standard types, or you prefer to implement
  5561. // your own Deploy recipes, specify other.
  5562. //
  5563. // Type is a required field
  5564. Type *string `type:"string" required:"true" enum:"AppType"`
  5565. }
  5566. // String returns the string representation
  5567. func (s CreateAppInput) String() string {
  5568. return awsutil.Prettify(s)
  5569. }
  5570. // GoString returns the string representation
  5571. func (s CreateAppInput) GoString() string {
  5572. return s.String()
  5573. }
  5574. // Validate inspects the fields of the type to determine if they are valid.
  5575. func (s *CreateAppInput) Validate() error {
  5576. invalidParams := request.ErrInvalidParams{Context: "CreateAppInput"}
  5577. if s.Name == nil {
  5578. invalidParams.Add(request.NewErrParamRequired("Name"))
  5579. }
  5580. if s.StackId == nil {
  5581. invalidParams.Add(request.NewErrParamRequired("StackId"))
  5582. }
  5583. if s.Type == nil {
  5584. invalidParams.Add(request.NewErrParamRequired("Type"))
  5585. }
  5586. if s.Environment != nil {
  5587. for i, v := range s.Environment {
  5588. if v == nil {
  5589. continue
  5590. }
  5591. if err := v.Validate(); err != nil {
  5592. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Environment", i), err.(request.ErrInvalidParams))
  5593. }
  5594. }
  5595. }
  5596. if s.SslConfiguration != nil {
  5597. if err := s.SslConfiguration.Validate(); err != nil {
  5598. invalidParams.AddNested("SslConfiguration", err.(request.ErrInvalidParams))
  5599. }
  5600. }
  5601. if invalidParams.Len() > 0 {
  5602. return invalidParams
  5603. }
  5604. return nil
  5605. }
  5606. // Contains the response to a CreateApp request.
  5607. type CreateAppOutput struct {
  5608. _ struct{} `type:"structure"`
  5609. // The app ID.
  5610. AppId *string `type:"string"`
  5611. }
  5612. // String returns the string representation
  5613. func (s CreateAppOutput) String() string {
  5614. return awsutil.Prettify(s)
  5615. }
  5616. // GoString returns the string representation
  5617. func (s CreateAppOutput) GoString() string {
  5618. return s.String()
  5619. }
  5620. type CreateDeploymentInput struct {
  5621. _ struct{} `type:"structure"`
  5622. // The app ID. This parameter is required for app deployments, but not for other
  5623. // deployment commands.
  5624. AppId *string `type:"string"`
  5625. // A DeploymentCommand object that specifies the deployment command and any
  5626. // associated arguments.
  5627. //
  5628. // Command is a required field
  5629. Command *DeploymentCommand `type:"structure" required:"true"`
  5630. // A user-defined comment.
  5631. Comment *string `type:"string"`
  5632. // A string that contains user-defined, custom JSON. It is used to override
  5633. // the corresponding default stack configuration JSON values. The string should
  5634. // be in the following format:
  5635. //
  5636. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  5637. //
  5638. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  5639. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  5640. CustomJson *string `type:"string"`
  5641. // The instance IDs for the deployment targets.
  5642. InstanceIds []*string `type:"list"`
  5643. // The layer IDs for the deployment targets.
  5644. LayerIds []*string `type:"list"`
  5645. // The stack ID.
  5646. //
  5647. // StackId is a required field
  5648. StackId *string `type:"string" required:"true"`
  5649. }
  5650. // String returns the string representation
  5651. func (s CreateDeploymentInput) String() string {
  5652. return awsutil.Prettify(s)
  5653. }
  5654. // GoString returns the string representation
  5655. func (s CreateDeploymentInput) GoString() string {
  5656. return s.String()
  5657. }
  5658. // Validate inspects the fields of the type to determine if they are valid.
  5659. func (s *CreateDeploymentInput) Validate() error {
  5660. invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"}
  5661. if s.Command == nil {
  5662. invalidParams.Add(request.NewErrParamRequired("Command"))
  5663. }
  5664. if s.StackId == nil {
  5665. invalidParams.Add(request.NewErrParamRequired("StackId"))
  5666. }
  5667. if s.Command != nil {
  5668. if err := s.Command.Validate(); err != nil {
  5669. invalidParams.AddNested("Command", err.(request.ErrInvalidParams))
  5670. }
  5671. }
  5672. if invalidParams.Len() > 0 {
  5673. return invalidParams
  5674. }
  5675. return nil
  5676. }
  5677. // Contains the response to a CreateDeployment request.
  5678. type CreateDeploymentOutput struct {
  5679. _ struct{} `type:"structure"`
  5680. // The deployment ID, which can be used with other requests to identify the
  5681. // deployment.
  5682. DeploymentId *string `type:"string"`
  5683. }
  5684. // String returns the string representation
  5685. func (s CreateDeploymentOutput) String() string {
  5686. return awsutil.Prettify(s)
  5687. }
  5688. // GoString returns the string representation
  5689. func (s CreateDeploymentOutput) GoString() string {
  5690. return s.String()
  5691. }
  5692. type CreateInstanceInput struct {
  5693. _ struct{} `type:"structure"`
  5694. // The default AWS OpsWorks agent version. You have the following options:
  5695. //
  5696. // * INHERIT - Use the stack's default agent version setting.
  5697. //
  5698. // * version_number - Use the specified agent version. This value overrides
  5699. // the stack's default setting. To update the agent version, edit the instance
  5700. // configuration and specify a new version. AWS OpsWorks then automatically
  5701. // installs that version on the instance.
  5702. //
  5703. // The default setting is INHERIT. To specify an agent version, you must use
  5704. // the complete version number, not the abbreviated number shown on the console.
  5705. // For a list of available agent version numbers, call DescribeAgentVersions.
  5706. AgentVersion *string `type:"string"`
  5707. // A custom AMI ID to be used to create the instance. The AMI should be based
  5708. // on one of the supported operating systems. For more information, see Using
  5709. // Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  5710. //
  5711. // If you specify a custom AMI, you must set Os to Custom.
  5712. AmiId *string `type:"string"`
  5713. // The instance architecture. The default option is x86_64. Instance types do
  5714. // not necessarily support both architectures. For a list of the architectures
  5715. // that are supported by the different instance types, see Instance Families
  5716. // and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  5717. Architecture *string `type:"string" enum:"Architecture"`
  5718. // For load-based or time-based instances, the type. Windows stacks can use
  5719. // only time-based instances.
  5720. AutoScalingType *string `type:"string" enum:"AutoScalingType"`
  5721. // The instance Availability Zone. For more information, see Regions and Endpoints
  5722. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  5723. AvailabilityZone *string `type:"string"`
  5724. // An array of BlockDeviceMapping objects that specify the instance's block
  5725. // devices. For more information, see Block Device Mapping (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html).
  5726. // Note that block device mappings are not supported for custom AMIs.
  5727. BlockDeviceMappings []*BlockDeviceMapping `type:"list"`
  5728. // Whether to create an Amazon EBS-optimized instance.
  5729. EbsOptimized *bool `type:"boolean"`
  5730. // The instance host name.
  5731. Hostname *string `type:"string"`
  5732. // Whether to install operating system and package updates when the instance
  5733. // boots. The default value is true. To control when updates are installed,
  5734. // set this value to false. You must then update your instances manually by
  5735. // using CreateDeployment to run the update_dependencies stack command or by
  5736. // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
  5737. //
  5738. // We strongly recommend using the default value of true to ensure that your
  5739. // instances have the latest security updates.
  5740. InstallUpdatesOnBoot *bool `type:"boolean"`
  5741. // The instance type, such as t2.micro. For a list of supported instance types,
  5742. // open the stack in the console, choose Instances, and choose + Instance. The
  5743. // Size list contains the currently supported types. For more information, see
  5744. // Instance Families and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  5745. // The parameter values that you use to specify the various types are in the
  5746. // API Name column of the Available Instance Types table.
  5747. //
  5748. // InstanceType is a required field
  5749. InstanceType *string `type:"string" required:"true"`
  5750. // An array that contains the instance's layer IDs.
  5751. //
  5752. // LayerIds is a required field
  5753. LayerIds []*string `type:"list" required:"true"`
  5754. // The instance's operating system, which must be set to one of the following.
  5755. //
  5756. // * A supported Linux operating system: An Amazon Linux version, such as
  5757. // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
  5758. //
  5759. // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
  5760. // 14.04 LTS, or Ubuntu 12.04 LTS.
  5761. //
  5762. // * CentOS 7
  5763. //
  5764. // * Red Hat Enterprise Linux 7
  5765. //
  5766. // * A supported Windows operating system, such as Microsoft Windows Server
  5767. // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express,
  5768. // Microsoft Windows Server 2012 R2 with SQL Server Standard, or Microsoft
  5769. // Windows Server 2012 R2 with SQL Server Web.
  5770. //
  5771. // * A custom AMI: Custom.
  5772. //
  5773. // For more information on the supported operating systems, see AWS OpsWorks
  5774. // Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  5775. //
  5776. // The default option is the current Amazon Linux version. If you set this parameter
  5777. // to Custom, you must use the CreateInstance action's AmiId parameter to specify
  5778. // the custom AMI that you want to use. Block device mappings are not supported
  5779. // if the value is Custom. For more information on the supported operating systems,
  5780. // see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html)For
  5781. // more information on how to use custom AMIs with AWS OpsWorks, see Using Custom
  5782. // AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  5783. Os *string `type:"string"`
  5784. // The instance root device type. For more information, see Storage for the
  5785. // Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  5786. RootDeviceType *string `type:"string" enum:"RootDeviceType"`
  5787. // The instance's Amazon EC2 key-pair name.
  5788. SshKeyName *string `type:"string"`
  5789. // The stack ID.
  5790. //
  5791. // StackId is a required field
  5792. StackId *string `type:"string" required:"true"`
  5793. // The ID of the instance's subnet. If the stack is running in a VPC, you can
  5794. // use this parameter to override the stack's default subnet ID value and direct
  5795. // AWS OpsWorks to launch the instance in a different subnet.
  5796. SubnetId *string `type:"string"`
  5797. // The instance's tenancy option. The default option is no tenancy, or if the
  5798. // instance is running in a VPC, inherit tenancy settings from the VPC. The
  5799. // following are valid values for this parameter: dedicated, default, or host.
  5800. // Because there are costs associated with changes in tenancy options, we recommend
  5801. // that you research tenancy options before choosing them for your instances.
  5802. // For more information about dedicated hosts, see Dedicated Hosts Overview
  5803. // (http://aws.amazon.com/ec2/dedicated-hosts/) and Amazon EC2 Dedicated Hosts
  5804. // (http://aws.amazon.com/ec2/dedicated-hosts/). For more information about
  5805. // dedicated instances, see Dedicated Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/dedicated-instance.html)
  5806. // and Amazon EC2 Dedicated Instances (http://aws.amazon.com/ec2/purchasing-options/dedicated-instances/).
  5807. Tenancy *string `type:"string"`
  5808. // The instance's virtualization type, paravirtual or hvm.
  5809. VirtualizationType *string `type:"string"`
  5810. }
  5811. // String returns the string representation
  5812. func (s CreateInstanceInput) String() string {
  5813. return awsutil.Prettify(s)
  5814. }
  5815. // GoString returns the string representation
  5816. func (s CreateInstanceInput) GoString() string {
  5817. return s.String()
  5818. }
  5819. // Validate inspects the fields of the type to determine if they are valid.
  5820. func (s *CreateInstanceInput) Validate() error {
  5821. invalidParams := request.ErrInvalidParams{Context: "CreateInstanceInput"}
  5822. if s.InstanceType == nil {
  5823. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  5824. }
  5825. if s.LayerIds == nil {
  5826. invalidParams.Add(request.NewErrParamRequired("LayerIds"))
  5827. }
  5828. if s.StackId == nil {
  5829. invalidParams.Add(request.NewErrParamRequired("StackId"))
  5830. }
  5831. if invalidParams.Len() > 0 {
  5832. return invalidParams
  5833. }
  5834. return nil
  5835. }
  5836. // Contains the response to a CreateInstance request.
  5837. type CreateInstanceOutput struct {
  5838. _ struct{} `type:"structure"`
  5839. // The instance ID.
  5840. InstanceId *string `type:"string"`
  5841. }
  5842. // String returns the string representation
  5843. func (s CreateInstanceOutput) String() string {
  5844. return awsutil.Prettify(s)
  5845. }
  5846. // GoString returns the string representation
  5847. func (s CreateInstanceOutput) GoString() string {
  5848. return s.String()
  5849. }
  5850. type CreateLayerInput struct {
  5851. _ struct{} `type:"structure"`
  5852. // One or more user-defined key-value pairs to be added to the stack attributes.
  5853. //
  5854. // To create a cluster layer, set the EcsClusterArn attribute to the cluster's
  5855. // ARN.
  5856. Attributes map[string]*string `type:"map"`
  5857. // Whether to automatically assign an Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  5858. // 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).
  5859. AutoAssignElasticIps *bool `type:"boolean"`
  5860. // For stacks that are running in a VPC, whether to automatically assign a public
  5861. // IP address to the layer's instances. For more information, see How to Edit
  5862. // a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
  5863. AutoAssignPublicIps *bool `type:"boolean"`
  5864. // The ARN of an IAM profile to be used for the layer's EC2 instances. For more
  5865. // information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  5866. CustomInstanceProfileArn *string `type:"string"`
  5867. // A JSON-formatted string containing custom stack configuration and deployment
  5868. // attributes to be installed on the layer's instances. For more information,
  5869. // see Using Custom JSON (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json-override.html).
  5870. // This feature is supported as of version 1.7.42 of the AWS CLI.
  5871. CustomJson *string `type:"string"`
  5872. // A LayerCustomRecipes object that specifies the layer custom recipes.
  5873. CustomRecipes *Recipes `type:"structure"`
  5874. // An array containing the layer custom security group IDs.
  5875. CustomSecurityGroupIds []*string `type:"list"`
  5876. // Whether to disable auto healing for the layer.
  5877. EnableAutoHealing *bool `type:"boolean"`
  5878. // Whether to install operating system and package updates when the instance
  5879. // boots. The default value is true. To control when updates are installed,
  5880. // set this value to false. You must then update your instances manually by
  5881. // using CreateDeployment to run the update_dependencies stack command or by
  5882. // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
  5883. //
  5884. // To ensure that your instances have the latest security updates, we strongly
  5885. // recommend using the default value of true.
  5886. InstallUpdatesOnBoot *bool `type:"boolean"`
  5887. // A LifeCycleEventConfiguration object that you can use to configure the Shutdown
  5888. // event to specify an execution timeout and enable or disable Elastic Load
  5889. // Balancer connection draining.
  5890. LifecycleEventConfiguration *LifecycleEventConfiguration `type:"structure"`
  5891. // The layer name, which is used by the console.
  5892. //
  5893. // Name is a required field
  5894. Name *string `type:"string" required:"true"`
  5895. // An array of Package objects that describes the layer packages.
  5896. Packages []*string `type:"list"`
  5897. // For custom layers only, use this parameter to specify the layer's short name,
  5898. // which is used internally by AWS OpsWorks and by Chef recipes. The short name
  5899. // is also used as the name for the directory where your app files are installed.
  5900. // It can have a maximum of 200 characters, which are limited to the alphanumeric
  5901. // characters, '-', '_', and '.'.
  5902. //
  5903. // The built-in layers' short names are defined by AWS OpsWorks. For more information,
  5904. // see the Layer Reference (http://docs.aws.amazon.com/opsworks/latest/userguide/layers.html).
  5905. //
  5906. // Shortname is a required field
  5907. Shortname *string `type:"string" required:"true"`
  5908. // The layer stack ID.
  5909. //
  5910. // StackId is a required field
  5911. StackId *string `type:"string" required:"true"`
  5912. // The layer type. A stack cannot have more than one built-in layer of the same
  5913. // type. It can have any number of custom layers. Built-in layers are not available
  5914. // in Chef 12 stacks.
  5915. //
  5916. // Type is a required field
  5917. Type *string `type:"string" required:"true" enum:"LayerType"`
  5918. // Whether to use Amazon EBS-optimized instances.
  5919. UseEbsOptimizedInstances *bool `type:"boolean"`
  5920. // A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
  5921. VolumeConfigurations []*VolumeConfiguration `type:"list"`
  5922. }
  5923. // String returns the string representation
  5924. func (s CreateLayerInput) String() string {
  5925. return awsutil.Prettify(s)
  5926. }
  5927. // GoString returns the string representation
  5928. func (s CreateLayerInput) GoString() string {
  5929. return s.String()
  5930. }
  5931. // Validate inspects the fields of the type to determine if they are valid.
  5932. func (s *CreateLayerInput) Validate() error {
  5933. invalidParams := request.ErrInvalidParams{Context: "CreateLayerInput"}
  5934. if s.Name == nil {
  5935. invalidParams.Add(request.NewErrParamRequired("Name"))
  5936. }
  5937. if s.Shortname == nil {
  5938. invalidParams.Add(request.NewErrParamRequired("Shortname"))
  5939. }
  5940. if s.StackId == nil {
  5941. invalidParams.Add(request.NewErrParamRequired("StackId"))
  5942. }
  5943. if s.Type == nil {
  5944. invalidParams.Add(request.NewErrParamRequired("Type"))
  5945. }
  5946. if s.VolumeConfigurations != nil {
  5947. for i, v := range s.VolumeConfigurations {
  5948. if v == nil {
  5949. continue
  5950. }
  5951. if err := v.Validate(); err != nil {
  5952. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VolumeConfigurations", i), err.(request.ErrInvalidParams))
  5953. }
  5954. }
  5955. }
  5956. if invalidParams.Len() > 0 {
  5957. return invalidParams
  5958. }
  5959. return nil
  5960. }
  5961. // Contains the response to a CreateLayer request.
  5962. type CreateLayerOutput struct {
  5963. _ struct{} `type:"structure"`
  5964. // The layer ID.
  5965. LayerId *string `type:"string"`
  5966. }
  5967. // String returns the string representation
  5968. func (s CreateLayerOutput) String() string {
  5969. return awsutil.Prettify(s)
  5970. }
  5971. // GoString returns the string representation
  5972. func (s CreateLayerOutput) GoString() string {
  5973. return s.String()
  5974. }
  5975. type CreateStackInput struct {
  5976. _ struct{} `type:"structure"`
  5977. // The default AWS OpsWorks agent version. You have the following options:
  5978. //
  5979. // * Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically
  5980. // installs new agent versions on the stack's instances as soon as they are
  5981. // available.
  5982. //
  5983. // * Fixed version - Set this parameter to your preferred agent version.
  5984. // To update the agent version, you must edit the stack configuration and
  5985. // specify a new version. AWS OpsWorks then automatically installs that version
  5986. // on the stack's instances.
  5987. //
  5988. // The default setting is the most recent release of the agent. To specify an
  5989. // agent version, you must use the complete version number, not the abbreviated
  5990. // number shown on the console. For a list of available agent version numbers,
  5991. // call DescribeAgentVersions.
  5992. //
  5993. // You can also specify an agent version when you create or update an instance,
  5994. // which overrides the stack's default setting.
  5995. AgentVersion *string `type:"string"`
  5996. // One or more user-defined key-value pairs to be added to the stack attributes.
  5997. Attributes map[string]*string `type:"map"`
  5998. // A ChefConfiguration object that specifies whether to enable Berkshelf and
  5999. // the Berkshelf version on Chef 11.10 stacks. For more information, see Create
  6000. // a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  6001. ChefConfiguration *ChefConfiguration `type:"structure"`
  6002. // The configuration manager. When you create a stack we recommend that you
  6003. // use the configuration manager to specify the Chef version: 12, 11.10, or
  6004. // 11.4 for Linux stacks, or 12.2 for Windows stacks. The default value for
  6005. // Linux stacks is currently 11.4.
  6006. ConfigurationManager *StackConfigurationManager `type:"structure"`
  6007. // Contains the information required to retrieve an app or cookbook from a repository.
  6008. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  6009. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  6010. CustomCookbooksSource *Source `type:"structure"`
  6011. // A string that contains user-defined, custom JSON. It can be used to override
  6012. // the corresponding default stack configuration attribute values or to pass
  6013. // data to recipes. The string should be in the following format:
  6014. //
  6015. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  6016. //
  6017. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  6018. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  6019. CustomJson *string `type:"string"`
  6020. // The stack's default Availability Zone, which must be in the specified region.
  6021. // For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  6022. // If you also specify a value for DefaultSubnetId, the subnet must be in the
  6023. // same zone. For more information, see the VpcId parameter description.
  6024. DefaultAvailabilityZone *string `type:"string"`
  6025. // The Amazon Resource Name (ARN) of an IAM profile that is the default profile
  6026. // for all of the stack's EC2 instances. For more information about IAM ARNs,
  6027. // see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  6028. //
  6029. // DefaultInstanceProfileArn is a required field
  6030. DefaultInstanceProfileArn *string `type:"string" required:"true"`
  6031. // The stack's default operating system, which is installed on every instance
  6032. // unless you specify a different operating system when you create the instance.
  6033. // You can specify one of the following.
  6034. //
  6035. // * A supported Linux operating system: An Amazon Linux version, such as
  6036. // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
  6037. //
  6038. // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
  6039. // 14.04 LTS, or Ubuntu 12.04 LTS.
  6040. //
  6041. // * CentOS 7
  6042. //
  6043. // * Red Hat Enterprise Linux 7
  6044. //
  6045. // * A supported Windows operating system, such as Microsoft Windows Server
  6046. // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express,
  6047. // Microsoft Windows Server 2012 R2 with SQL Server Standard, or Microsoft
  6048. // Windows Server 2012 R2 with SQL Server Web.
  6049. //
  6050. // * A custom AMI: Custom. You specify the custom AMI you want to use when
  6051. // you create instances. For more information, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  6052. //
  6053. // The default option is the current Amazon Linux version. For more information
  6054. // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  6055. DefaultOs *string `type:"string"`
  6056. // The default root device type. This value is the default for all instances
  6057. // in the stack, but you can override it when you create an instance. The default
  6058. // option is instance-store. For more information, see Storage for the Root
  6059. // Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  6060. DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`
  6061. // A default Amazon EC2 key pair name. The default value is none. If you specify
  6062. // a key pair name, AWS OpsWorks installs the public key on the instance and
  6063. // you can use the private key with an SSH client to log in to the instance.
  6064. // For more information, see Using SSH to Communicate with an Instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html)
  6065. // and Managing SSH Access (http://docs.aws.amazon.com/opsworks/latest/userguide/security-ssh-access.html).
  6066. // You can override this setting by specifying a different key pair, or no key
  6067. // pair, when you create an instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
  6068. DefaultSshKeyName *string `type:"string"`
  6069. // The stack's default VPC subnet ID. This parameter is required if you specify
  6070. // a value for the VpcId parameter. All instances are launched into this subnet
  6071. // unless you specify otherwise when you create the instance. If you also specify
  6072. // a value for DefaultAvailabilityZone, the subnet must be in that zone. For
  6073. // information on default values and when this parameter is required, see the
  6074. // VpcId parameter description.
  6075. DefaultSubnetId *string `type:"string"`
  6076. // The stack's host name theme, with spaces replaced by underscores. The theme
  6077. // is used to generate host names for the stack's instances. By default, HostnameTheme
  6078. // is set to Layer_Dependent, which creates host names by appending integers
  6079. // to the layer's short name. The other themes are:
  6080. //
  6081. // * Baked_Goods
  6082. //
  6083. // * Clouds
  6084. //
  6085. // * Europe_Cities
  6086. //
  6087. // * Fruits
  6088. //
  6089. // * Greek_Deities
  6090. //
  6091. // * Legendary_creatures_from_Japan
  6092. //
  6093. // * Planets_and_Moons
  6094. //
  6095. // * Roman_Deities
  6096. //
  6097. // * Scottish_Islands
  6098. //
  6099. // * US_Cities
  6100. //
  6101. // * Wild_Cats
  6102. //
  6103. // To obtain a generated host name, call GetHostNameSuggestion, which returns
  6104. // a host name based on the current theme.
  6105. HostnameTheme *string `type:"string"`
  6106. // The stack name.
  6107. //
  6108. // Name is a required field
  6109. Name *string `type:"string" required:"true"`
  6110. // The stack's AWS region, such as "ap-south-1". For more information about
  6111. // Amazon regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  6112. //
  6113. // Region is a required field
  6114. Region *string `type:"string" required:"true"`
  6115. // The stack's AWS Identity and Access Management (IAM) role, which allows AWS
  6116. // OpsWorks to work with AWS resources on your behalf. You must set this parameter
  6117. // to the Amazon Resource Name (ARN) for an existing IAM role. For more information
  6118. // about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  6119. //
  6120. // ServiceRoleArn is a required field
  6121. ServiceRoleArn *string `type:"string" required:"true"`
  6122. // Whether the stack uses custom cookbooks.
  6123. UseCustomCookbooks *bool `type:"boolean"`
  6124. // Whether to associate the AWS OpsWorks built-in security groups with the stack's
  6125. // layers.
  6126. //
  6127. // AWS OpsWorks provides a standard set of built-in security groups, one for
  6128. // each layer, which are associated with layers by default. With UseOpsworksSecurityGroups
  6129. // you can instead provide your own custom security groups. UseOpsworksSecurityGroups
  6130. // has the following settings:
  6131. //
  6132. // * True - AWS OpsWorks automatically associates the appropriate built-in
  6133. // security group with each layer (default setting). You can associate additional
  6134. // security groups with a layer after you create it, but you cannot delete
  6135. // the built-in security group.
  6136. //
  6137. // * False - AWS OpsWorks does not associate built-in security groups with
  6138. // layers. You must create appropriate EC2 security groups and associate
  6139. // a security group with each layer that you create. However, you can still
  6140. // manually associate a built-in security group with a layer on creation;
  6141. // custom security groups are required only for those layers that need custom
  6142. // settings.
  6143. //
  6144. // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  6145. UseOpsworksSecurityGroups *bool `type:"boolean"`
  6146. // The ID of the VPC that the stack is to be launched into. The VPC must be
  6147. // in the stack's region. All instances are launched into this VPC. You cannot
  6148. // change the ID later.
  6149. //
  6150. // * If your account supports EC2-Classic, the default value is no VPC.
  6151. //
  6152. // * If your account does not support EC2-Classic, the default value is the
  6153. // default VPC for the specified region.
  6154. //
  6155. // If the VPC ID corresponds to a default VPC and you have specified either
  6156. // the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks
  6157. // infers the value of the other parameter. If you specify neither parameter,
  6158. // AWS OpsWorks sets these parameters to the first valid Availability Zone for
  6159. // the specified region and the corresponding default VPC subnet ID, respectively.
  6160. //
  6161. // If you specify a nondefault VPC ID, note the following:
  6162. //
  6163. // * It must belong to a VPC in your account that is in the specified region.
  6164. //
  6165. // * You must specify a value for DefaultSubnetId.
  6166. //
  6167. // For more information on how to use AWS OpsWorks with a VPC, see Running a
  6168. // Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html).
  6169. // For more information on default VPC and EC2-Classic, see Supported Platforms
  6170. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html).
  6171. VpcId *string `type:"string"`
  6172. }
  6173. // String returns the string representation
  6174. func (s CreateStackInput) String() string {
  6175. return awsutil.Prettify(s)
  6176. }
  6177. // GoString returns the string representation
  6178. func (s CreateStackInput) GoString() string {
  6179. return s.String()
  6180. }
  6181. // Validate inspects the fields of the type to determine if they are valid.
  6182. func (s *CreateStackInput) Validate() error {
  6183. invalidParams := request.ErrInvalidParams{Context: "CreateStackInput"}
  6184. if s.DefaultInstanceProfileArn == nil {
  6185. invalidParams.Add(request.NewErrParamRequired("DefaultInstanceProfileArn"))
  6186. }
  6187. if s.Name == nil {
  6188. invalidParams.Add(request.NewErrParamRequired("Name"))
  6189. }
  6190. if s.Region == nil {
  6191. invalidParams.Add(request.NewErrParamRequired("Region"))
  6192. }
  6193. if s.ServiceRoleArn == nil {
  6194. invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn"))
  6195. }
  6196. if invalidParams.Len() > 0 {
  6197. return invalidParams
  6198. }
  6199. return nil
  6200. }
  6201. // Contains the response to a CreateStack request.
  6202. type CreateStackOutput struct {
  6203. _ struct{} `type:"structure"`
  6204. // The stack ID, which is an opaque string that you use to identify the stack
  6205. // when performing actions such as DescribeStacks.
  6206. StackId *string `type:"string"`
  6207. }
  6208. // String returns the string representation
  6209. func (s CreateStackOutput) String() string {
  6210. return awsutil.Prettify(s)
  6211. }
  6212. // GoString returns the string representation
  6213. func (s CreateStackOutput) GoString() string {
  6214. return s.String()
  6215. }
  6216. type CreateUserProfileInput struct {
  6217. _ struct{} `type:"structure"`
  6218. // Whether users can specify their own SSH public key through the My Settings
  6219. // page. For more information, see Setting an IAM User's Public SSH Key (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).
  6220. AllowSelfManagement *bool `type:"boolean"`
  6221. // The user's IAM ARN; this can also be a federated user's ARN.
  6222. //
  6223. // IamUserArn is a required field
  6224. IamUserArn *string `type:"string" required:"true"`
  6225. // The user's public SSH key.
  6226. SshPublicKey *string `type:"string"`
  6227. // The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9],
  6228. // '-', and '_'. If the specified name includes other punctuation marks, AWS
  6229. // OpsWorks removes them. For example, my.name will be changed to myname. If
  6230. // you do not specify an SSH user name, AWS OpsWorks generates one from the
  6231. // IAM user name.
  6232. SshUsername *string `type:"string"`
  6233. }
  6234. // String returns the string representation
  6235. func (s CreateUserProfileInput) String() string {
  6236. return awsutil.Prettify(s)
  6237. }
  6238. // GoString returns the string representation
  6239. func (s CreateUserProfileInput) GoString() string {
  6240. return s.String()
  6241. }
  6242. // Validate inspects the fields of the type to determine if they are valid.
  6243. func (s *CreateUserProfileInput) Validate() error {
  6244. invalidParams := request.ErrInvalidParams{Context: "CreateUserProfileInput"}
  6245. if s.IamUserArn == nil {
  6246. invalidParams.Add(request.NewErrParamRequired("IamUserArn"))
  6247. }
  6248. if invalidParams.Len() > 0 {
  6249. return invalidParams
  6250. }
  6251. return nil
  6252. }
  6253. // Contains the response to a CreateUserProfile request.
  6254. type CreateUserProfileOutput struct {
  6255. _ struct{} `type:"structure"`
  6256. // The user's IAM ARN.
  6257. IamUserArn *string `type:"string"`
  6258. }
  6259. // String returns the string representation
  6260. func (s CreateUserProfileOutput) String() string {
  6261. return awsutil.Prettify(s)
  6262. }
  6263. // GoString returns the string representation
  6264. func (s CreateUserProfileOutput) GoString() string {
  6265. return s.String()
  6266. }
  6267. // Describes an app's data source.
  6268. type DataSource struct {
  6269. _ struct{} `type:"structure"`
  6270. // The data source's ARN.
  6271. Arn *string `type:"string"`
  6272. // The database name.
  6273. DatabaseName *string `type:"string"`
  6274. // The data source's type, AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance,
  6275. // or RdsDbInstance.
  6276. Type *string `type:"string"`
  6277. }
  6278. // String returns the string representation
  6279. func (s DataSource) String() string {
  6280. return awsutil.Prettify(s)
  6281. }
  6282. // GoString returns the string representation
  6283. func (s DataSource) GoString() string {
  6284. return s.String()
  6285. }
  6286. type DeleteAppInput struct {
  6287. _ struct{} `type:"structure"`
  6288. // The app ID.
  6289. //
  6290. // AppId is a required field
  6291. AppId *string `type:"string" required:"true"`
  6292. }
  6293. // String returns the string representation
  6294. func (s DeleteAppInput) String() string {
  6295. return awsutil.Prettify(s)
  6296. }
  6297. // GoString returns the string representation
  6298. func (s DeleteAppInput) GoString() string {
  6299. return s.String()
  6300. }
  6301. // Validate inspects the fields of the type to determine if they are valid.
  6302. func (s *DeleteAppInput) Validate() error {
  6303. invalidParams := request.ErrInvalidParams{Context: "DeleteAppInput"}
  6304. if s.AppId == nil {
  6305. invalidParams.Add(request.NewErrParamRequired("AppId"))
  6306. }
  6307. if invalidParams.Len() > 0 {
  6308. return invalidParams
  6309. }
  6310. return nil
  6311. }
  6312. type DeleteAppOutput struct {
  6313. _ struct{} `type:"structure"`
  6314. }
  6315. // String returns the string representation
  6316. func (s DeleteAppOutput) String() string {
  6317. return awsutil.Prettify(s)
  6318. }
  6319. // GoString returns the string representation
  6320. func (s DeleteAppOutput) GoString() string {
  6321. return s.String()
  6322. }
  6323. type DeleteInstanceInput struct {
  6324. _ struct{} `type:"structure"`
  6325. // Whether to delete the instance Elastic IP address.
  6326. DeleteElasticIp *bool `type:"boolean"`
  6327. // Whether to delete the instance's Amazon EBS volumes.
  6328. DeleteVolumes *bool `type:"boolean"`
  6329. // The instance ID.
  6330. //
  6331. // InstanceId is a required field
  6332. InstanceId *string `type:"string" required:"true"`
  6333. }
  6334. // String returns the string representation
  6335. func (s DeleteInstanceInput) String() string {
  6336. return awsutil.Prettify(s)
  6337. }
  6338. // GoString returns the string representation
  6339. func (s DeleteInstanceInput) GoString() string {
  6340. return s.String()
  6341. }
  6342. // Validate inspects the fields of the type to determine if they are valid.
  6343. func (s *DeleteInstanceInput) Validate() error {
  6344. invalidParams := request.ErrInvalidParams{Context: "DeleteInstanceInput"}
  6345. if s.InstanceId == nil {
  6346. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  6347. }
  6348. if invalidParams.Len() > 0 {
  6349. return invalidParams
  6350. }
  6351. return nil
  6352. }
  6353. type DeleteInstanceOutput struct {
  6354. _ struct{} `type:"structure"`
  6355. }
  6356. // String returns the string representation
  6357. func (s DeleteInstanceOutput) String() string {
  6358. return awsutil.Prettify(s)
  6359. }
  6360. // GoString returns the string representation
  6361. func (s DeleteInstanceOutput) GoString() string {
  6362. return s.String()
  6363. }
  6364. type DeleteLayerInput struct {
  6365. _ struct{} `type:"structure"`
  6366. // The layer ID.
  6367. //
  6368. // LayerId is a required field
  6369. LayerId *string `type:"string" required:"true"`
  6370. }
  6371. // String returns the string representation
  6372. func (s DeleteLayerInput) String() string {
  6373. return awsutil.Prettify(s)
  6374. }
  6375. // GoString returns the string representation
  6376. func (s DeleteLayerInput) GoString() string {
  6377. return s.String()
  6378. }
  6379. // Validate inspects the fields of the type to determine if they are valid.
  6380. func (s *DeleteLayerInput) Validate() error {
  6381. invalidParams := request.ErrInvalidParams{Context: "DeleteLayerInput"}
  6382. if s.LayerId == nil {
  6383. invalidParams.Add(request.NewErrParamRequired("LayerId"))
  6384. }
  6385. if invalidParams.Len() > 0 {
  6386. return invalidParams
  6387. }
  6388. return nil
  6389. }
  6390. type DeleteLayerOutput struct {
  6391. _ struct{} `type:"structure"`
  6392. }
  6393. // String returns the string representation
  6394. func (s DeleteLayerOutput) String() string {
  6395. return awsutil.Prettify(s)
  6396. }
  6397. // GoString returns the string representation
  6398. func (s DeleteLayerOutput) GoString() string {
  6399. return s.String()
  6400. }
  6401. type DeleteStackInput struct {
  6402. _ struct{} `type:"structure"`
  6403. // The stack ID.
  6404. //
  6405. // StackId is a required field
  6406. StackId *string `type:"string" required:"true"`
  6407. }
  6408. // String returns the string representation
  6409. func (s DeleteStackInput) String() string {
  6410. return awsutil.Prettify(s)
  6411. }
  6412. // GoString returns the string representation
  6413. func (s DeleteStackInput) GoString() string {
  6414. return s.String()
  6415. }
  6416. // Validate inspects the fields of the type to determine if they are valid.
  6417. func (s *DeleteStackInput) Validate() error {
  6418. invalidParams := request.ErrInvalidParams{Context: "DeleteStackInput"}
  6419. if s.StackId == nil {
  6420. invalidParams.Add(request.NewErrParamRequired("StackId"))
  6421. }
  6422. if invalidParams.Len() > 0 {
  6423. return invalidParams
  6424. }
  6425. return nil
  6426. }
  6427. type DeleteStackOutput struct {
  6428. _ struct{} `type:"structure"`
  6429. }
  6430. // String returns the string representation
  6431. func (s DeleteStackOutput) String() string {
  6432. return awsutil.Prettify(s)
  6433. }
  6434. // GoString returns the string representation
  6435. func (s DeleteStackOutput) GoString() string {
  6436. return s.String()
  6437. }
  6438. type DeleteUserProfileInput struct {
  6439. _ struct{} `type:"structure"`
  6440. // The user's IAM ARN. This can also be a federated user's ARN.
  6441. //
  6442. // IamUserArn is a required field
  6443. IamUserArn *string `type:"string" required:"true"`
  6444. }
  6445. // String returns the string representation
  6446. func (s DeleteUserProfileInput) String() string {
  6447. return awsutil.Prettify(s)
  6448. }
  6449. // GoString returns the string representation
  6450. func (s DeleteUserProfileInput) GoString() string {
  6451. return s.String()
  6452. }
  6453. // Validate inspects the fields of the type to determine if they are valid.
  6454. func (s *DeleteUserProfileInput) Validate() error {
  6455. invalidParams := request.ErrInvalidParams{Context: "DeleteUserProfileInput"}
  6456. if s.IamUserArn == nil {
  6457. invalidParams.Add(request.NewErrParamRequired("IamUserArn"))
  6458. }
  6459. if invalidParams.Len() > 0 {
  6460. return invalidParams
  6461. }
  6462. return nil
  6463. }
  6464. type DeleteUserProfileOutput struct {
  6465. _ struct{} `type:"structure"`
  6466. }
  6467. // String returns the string representation
  6468. func (s DeleteUserProfileOutput) String() string {
  6469. return awsutil.Prettify(s)
  6470. }
  6471. // GoString returns the string representation
  6472. func (s DeleteUserProfileOutput) GoString() string {
  6473. return s.String()
  6474. }
  6475. // Describes a deployment of a stack or app.
  6476. type Deployment struct {
  6477. _ struct{} `type:"structure"`
  6478. // The app ID.
  6479. AppId *string `type:"string"`
  6480. // Used to specify a stack or deployment command.
  6481. Command *DeploymentCommand `type:"structure"`
  6482. // A user-defined comment.
  6483. Comment *string `type:"string"`
  6484. // Date when the deployment completed.
  6485. CompletedAt *string `type:"string"`
  6486. // Date when the deployment was created.
  6487. CreatedAt *string `type:"string"`
  6488. // A string that contains user-defined custom JSON. It can be used to override
  6489. // the corresponding default stack configuration attribute values for stack
  6490. // or to pass data to recipes. The string should be in the following format:
  6491. //
  6492. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  6493. //
  6494. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  6495. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  6496. CustomJson *string `type:"string"`
  6497. // The deployment ID.
  6498. DeploymentId *string `type:"string"`
  6499. // The deployment duration.
  6500. Duration *int64 `type:"integer"`
  6501. // The user's IAM ARN.
  6502. IamUserArn *string `type:"string"`
  6503. // The IDs of the target instances.
  6504. InstanceIds []*string `type:"list"`
  6505. // The stack ID.
  6506. StackId *string `type:"string"`
  6507. // The deployment status:
  6508. //
  6509. // * running
  6510. //
  6511. // * successful
  6512. //
  6513. // * failed
  6514. Status *string `type:"string"`
  6515. }
  6516. // String returns the string representation
  6517. func (s Deployment) String() string {
  6518. return awsutil.Prettify(s)
  6519. }
  6520. // GoString returns the string representation
  6521. func (s Deployment) GoString() string {
  6522. return s.String()
  6523. }
  6524. // Used to specify a stack or deployment command.
  6525. type DeploymentCommand struct {
  6526. _ struct{} `type:"structure"`
  6527. // The arguments of those commands that take arguments. It should be set to
  6528. // a JSON object with the following format:
  6529. //
  6530. // {"arg_name1" : ["value1", "value2", ...], "arg_name2" : ["value1", "value2",
  6531. // ...], ...}
  6532. //
  6533. // The update_dependencies command takes two arguments:
  6534. //
  6535. // * upgrade_os_to - Specifies the desired Amazon Linux version for instances
  6536. // whose OS you want to upgrade, such as Amazon Linux 2014.09. You must also
  6537. // set the allow_reboot argument to true.
  6538. //
  6539. // * allow_reboot - Specifies whether to allow AWS OpsWorks to reboot the
  6540. // instances if necessary, after installing the updates. This argument can
  6541. // be set to either true or false. The default value is false.
  6542. //
  6543. // For example, to upgrade an instance to Amazon Linux 2014.09, set Args to
  6544. // the following.
  6545. //
  6546. // { "upgrade_os_to":["Amazon Linux 2014.09"], "allow_reboot":["true"] }
  6547. Args map[string][]*string `type:"map"`
  6548. // Specifies the operation. You can specify only one command.
  6549. //
  6550. // For stacks, the following commands are available:
  6551. //
  6552. // * execute_recipes: Execute one or more recipes. To specify the recipes,
  6553. // set an Args parameter named recipes to the list of recipes to be executed.
  6554. // For example, to execute phpapp::appsetup, set Args to {"recipes":["phpapp::appsetup"]}.
  6555. //
  6556. // * install_dependencies: Install the stack's dependencies.
  6557. //
  6558. // * update_custom_cookbooks: Update the stack's custom cookbooks.
  6559. //
  6560. // * update_dependencies: Update the stack's dependencies.
  6561. //
  6562. // The update_dependencies and install_dependencies commands are supported only
  6563. // for Linux instances. You can run the commands successfully on Windows instances,
  6564. // but they do nothing.
  6565. //
  6566. // For apps, the following commands are available:
  6567. //
  6568. // * deploy: Deploy an app. Ruby on Rails apps have an optional Args parameter
  6569. // named migrate. Set Args to {"migrate":["true"]} to migrate the database.
  6570. // The default setting is {"migrate":["false"]}.
  6571. //
  6572. // * rollback Roll the app back to the previous version. When you update
  6573. // an app, AWS OpsWorks stores the previous version, up to a maximum of five
  6574. // versions. You can use this command to roll an app back as many as four
  6575. // versions.
  6576. //
  6577. // * start: Start the app's web or application server.
  6578. //
  6579. // * stop: Stop the app's web or application server.
  6580. //
  6581. // * restart: Restart the app's web or application server.
  6582. //
  6583. // * undeploy: Undeploy the app.
  6584. //
  6585. // Name is a required field
  6586. Name *string `type:"string" required:"true" enum:"DeploymentCommandName"`
  6587. }
  6588. // String returns the string representation
  6589. func (s DeploymentCommand) String() string {
  6590. return awsutil.Prettify(s)
  6591. }
  6592. // GoString returns the string representation
  6593. func (s DeploymentCommand) GoString() string {
  6594. return s.String()
  6595. }
  6596. // Validate inspects the fields of the type to determine if they are valid.
  6597. func (s *DeploymentCommand) Validate() error {
  6598. invalidParams := request.ErrInvalidParams{Context: "DeploymentCommand"}
  6599. if s.Name == nil {
  6600. invalidParams.Add(request.NewErrParamRequired("Name"))
  6601. }
  6602. if invalidParams.Len() > 0 {
  6603. return invalidParams
  6604. }
  6605. return nil
  6606. }
  6607. type DeregisterEcsClusterInput struct {
  6608. _ struct{} `type:"structure"`
  6609. // The cluster's ARN.
  6610. //
  6611. // EcsClusterArn is a required field
  6612. EcsClusterArn *string `type:"string" required:"true"`
  6613. }
  6614. // String returns the string representation
  6615. func (s DeregisterEcsClusterInput) String() string {
  6616. return awsutil.Prettify(s)
  6617. }
  6618. // GoString returns the string representation
  6619. func (s DeregisterEcsClusterInput) GoString() string {
  6620. return s.String()
  6621. }
  6622. // Validate inspects the fields of the type to determine if they are valid.
  6623. func (s *DeregisterEcsClusterInput) Validate() error {
  6624. invalidParams := request.ErrInvalidParams{Context: "DeregisterEcsClusterInput"}
  6625. if s.EcsClusterArn == nil {
  6626. invalidParams.Add(request.NewErrParamRequired("EcsClusterArn"))
  6627. }
  6628. if invalidParams.Len() > 0 {
  6629. return invalidParams
  6630. }
  6631. return nil
  6632. }
  6633. type DeregisterEcsClusterOutput struct {
  6634. _ struct{} `type:"structure"`
  6635. }
  6636. // String returns the string representation
  6637. func (s DeregisterEcsClusterOutput) String() string {
  6638. return awsutil.Prettify(s)
  6639. }
  6640. // GoString returns the string representation
  6641. func (s DeregisterEcsClusterOutput) GoString() string {
  6642. return s.String()
  6643. }
  6644. type DeregisterElasticIpInput struct {
  6645. _ struct{} `type:"structure"`
  6646. // The Elastic IP address.
  6647. //
  6648. // ElasticIp is a required field
  6649. ElasticIp *string `type:"string" required:"true"`
  6650. }
  6651. // String returns the string representation
  6652. func (s DeregisterElasticIpInput) String() string {
  6653. return awsutil.Prettify(s)
  6654. }
  6655. // GoString returns the string representation
  6656. func (s DeregisterElasticIpInput) GoString() string {
  6657. return s.String()
  6658. }
  6659. // Validate inspects the fields of the type to determine if they are valid.
  6660. func (s *DeregisterElasticIpInput) Validate() error {
  6661. invalidParams := request.ErrInvalidParams{Context: "DeregisterElasticIpInput"}
  6662. if s.ElasticIp == nil {
  6663. invalidParams.Add(request.NewErrParamRequired("ElasticIp"))
  6664. }
  6665. if invalidParams.Len() > 0 {
  6666. return invalidParams
  6667. }
  6668. return nil
  6669. }
  6670. type DeregisterElasticIpOutput struct {
  6671. _ struct{} `type:"structure"`
  6672. }
  6673. // String returns the string representation
  6674. func (s DeregisterElasticIpOutput) String() string {
  6675. return awsutil.Prettify(s)
  6676. }
  6677. // GoString returns the string representation
  6678. func (s DeregisterElasticIpOutput) GoString() string {
  6679. return s.String()
  6680. }
  6681. type DeregisterInstanceInput struct {
  6682. _ struct{} `type:"structure"`
  6683. // The instance ID.
  6684. //
  6685. // InstanceId is a required field
  6686. InstanceId *string `type:"string" required:"true"`
  6687. }
  6688. // String returns the string representation
  6689. func (s DeregisterInstanceInput) String() string {
  6690. return awsutil.Prettify(s)
  6691. }
  6692. // GoString returns the string representation
  6693. func (s DeregisterInstanceInput) GoString() string {
  6694. return s.String()
  6695. }
  6696. // Validate inspects the fields of the type to determine if they are valid.
  6697. func (s *DeregisterInstanceInput) Validate() error {
  6698. invalidParams := request.ErrInvalidParams{Context: "DeregisterInstanceInput"}
  6699. if s.InstanceId == nil {
  6700. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  6701. }
  6702. if invalidParams.Len() > 0 {
  6703. return invalidParams
  6704. }
  6705. return nil
  6706. }
  6707. type DeregisterInstanceOutput struct {
  6708. _ struct{} `type:"structure"`
  6709. }
  6710. // String returns the string representation
  6711. func (s DeregisterInstanceOutput) String() string {
  6712. return awsutil.Prettify(s)
  6713. }
  6714. // GoString returns the string representation
  6715. func (s DeregisterInstanceOutput) GoString() string {
  6716. return s.String()
  6717. }
  6718. type DeregisterRdsDbInstanceInput struct {
  6719. _ struct{} `type:"structure"`
  6720. // The Amazon RDS instance's ARN.
  6721. //
  6722. // RdsDbInstanceArn is a required field
  6723. RdsDbInstanceArn *string `type:"string" required:"true"`
  6724. }
  6725. // String returns the string representation
  6726. func (s DeregisterRdsDbInstanceInput) String() string {
  6727. return awsutil.Prettify(s)
  6728. }
  6729. // GoString returns the string representation
  6730. func (s DeregisterRdsDbInstanceInput) GoString() string {
  6731. return s.String()
  6732. }
  6733. // Validate inspects the fields of the type to determine if they are valid.
  6734. func (s *DeregisterRdsDbInstanceInput) Validate() error {
  6735. invalidParams := request.ErrInvalidParams{Context: "DeregisterRdsDbInstanceInput"}
  6736. if s.RdsDbInstanceArn == nil {
  6737. invalidParams.Add(request.NewErrParamRequired("RdsDbInstanceArn"))
  6738. }
  6739. if invalidParams.Len() > 0 {
  6740. return invalidParams
  6741. }
  6742. return nil
  6743. }
  6744. type DeregisterRdsDbInstanceOutput struct {
  6745. _ struct{} `type:"structure"`
  6746. }
  6747. // String returns the string representation
  6748. func (s DeregisterRdsDbInstanceOutput) String() string {
  6749. return awsutil.Prettify(s)
  6750. }
  6751. // GoString returns the string representation
  6752. func (s DeregisterRdsDbInstanceOutput) GoString() string {
  6753. return s.String()
  6754. }
  6755. type DeregisterVolumeInput struct {
  6756. _ struct{} `type:"structure"`
  6757. // The AWS OpsWorks volume ID, which is the GUID that AWS OpsWorks assigned
  6758. // to the instance when you registered the volume with the stack, not the Amazon
  6759. // EC2 volume ID.
  6760. //
  6761. // VolumeId is a required field
  6762. VolumeId *string `type:"string" required:"true"`
  6763. }
  6764. // String returns the string representation
  6765. func (s DeregisterVolumeInput) String() string {
  6766. return awsutil.Prettify(s)
  6767. }
  6768. // GoString returns the string representation
  6769. func (s DeregisterVolumeInput) GoString() string {
  6770. return s.String()
  6771. }
  6772. // Validate inspects the fields of the type to determine if they are valid.
  6773. func (s *DeregisterVolumeInput) Validate() error {
  6774. invalidParams := request.ErrInvalidParams{Context: "DeregisterVolumeInput"}
  6775. if s.VolumeId == nil {
  6776. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  6777. }
  6778. if invalidParams.Len() > 0 {
  6779. return invalidParams
  6780. }
  6781. return nil
  6782. }
  6783. type DeregisterVolumeOutput struct {
  6784. _ struct{} `type:"structure"`
  6785. }
  6786. // String returns the string representation
  6787. func (s DeregisterVolumeOutput) String() string {
  6788. return awsutil.Prettify(s)
  6789. }
  6790. // GoString returns the string representation
  6791. func (s DeregisterVolumeOutput) GoString() string {
  6792. return s.String()
  6793. }
  6794. type DescribeAgentVersionsInput struct {
  6795. _ struct{} `type:"structure"`
  6796. // The configuration manager.
  6797. ConfigurationManager *StackConfigurationManager `type:"structure"`
  6798. // The stack ID.
  6799. StackId *string `type:"string"`
  6800. }
  6801. // String returns the string representation
  6802. func (s DescribeAgentVersionsInput) String() string {
  6803. return awsutil.Prettify(s)
  6804. }
  6805. // GoString returns the string representation
  6806. func (s DescribeAgentVersionsInput) GoString() string {
  6807. return s.String()
  6808. }
  6809. // Contains the response to a DescribeAgentVersions request.
  6810. type DescribeAgentVersionsOutput struct {
  6811. _ struct{} `type:"structure"`
  6812. // The agent versions for the specified stack or configuration manager. Note
  6813. // that this value is the complete version number, not the abbreviated number
  6814. // used by the console.
  6815. AgentVersions []*AgentVersion `type:"list"`
  6816. }
  6817. // String returns the string representation
  6818. func (s DescribeAgentVersionsOutput) String() string {
  6819. return awsutil.Prettify(s)
  6820. }
  6821. // GoString returns the string representation
  6822. func (s DescribeAgentVersionsOutput) GoString() string {
  6823. return s.String()
  6824. }
  6825. type DescribeAppsInput struct {
  6826. _ struct{} `type:"structure"`
  6827. // An array of app IDs for the apps to be described. If you use this parameter,
  6828. // DescribeApps returns a description of the specified apps. Otherwise, it returns
  6829. // a description of every app.
  6830. AppIds []*string `type:"list"`
  6831. // The app stack ID. If you use this parameter, DescribeApps returns a description
  6832. // of the apps in the specified stack.
  6833. StackId *string `type:"string"`
  6834. }
  6835. // String returns the string representation
  6836. func (s DescribeAppsInput) String() string {
  6837. return awsutil.Prettify(s)
  6838. }
  6839. // GoString returns the string representation
  6840. func (s DescribeAppsInput) GoString() string {
  6841. return s.String()
  6842. }
  6843. // Contains the response to a DescribeApps request.
  6844. type DescribeAppsOutput struct {
  6845. _ struct{} `type:"structure"`
  6846. // An array of App objects that describe the specified apps.
  6847. Apps []*App `type:"list"`
  6848. }
  6849. // String returns the string representation
  6850. func (s DescribeAppsOutput) String() string {
  6851. return awsutil.Prettify(s)
  6852. }
  6853. // GoString returns the string representation
  6854. func (s DescribeAppsOutput) GoString() string {
  6855. return s.String()
  6856. }
  6857. type DescribeCommandsInput struct {
  6858. _ struct{} `type:"structure"`
  6859. // An array of command IDs. If you include this parameter, DescribeCommands
  6860. // returns a description of the specified commands. Otherwise, it returns a
  6861. // description of every command.
  6862. CommandIds []*string `type:"list"`
  6863. // The deployment ID. If you include this parameter, DescribeCommands returns
  6864. // a description of the commands associated with the specified deployment.
  6865. DeploymentId *string `type:"string"`
  6866. // The instance ID. If you include this parameter, DescribeCommands returns
  6867. // a description of the commands associated with the specified instance.
  6868. InstanceId *string `type:"string"`
  6869. }
  6870. // String returns the string representation
  6871. func (s DescribeCommandsInput) String() string {
  6872. return awsutil.Prettify(s)
  6873. }
  6874. // GoString returns the string representation
  6875. func (s DescribeCommandsInput) GoString() string {
  6876. return s.String()
  6877. }
  6878. // Contains the response to a DescribeCommands request.
  6879. type DescribeCommandsOutput struct {
  6880. _ struct{} `type:"structure"`
  6881. // An array of Command objects that describe each of the specified commands.
  6882. Commands []*Command `type:"list"`
  6883. }
  6884. // String returns the string representation
  6885. func (s DescribeCommandsOutput) String() string {
  6886. return awsutil.Prettify(s)
  6887. }
  6888. // GoString returns the string representation
  6889. func (s DescribeCommandsOutput) GoString() string {
  6890. return s.String()
  6891. }
  6892. type DescribeDeploymentsInput struct {
  6893. _ struct{} `type:"structure"`
  6894. // The app ID. If you include this parameter, DescribeDeployments returns a
  6895. // description of the commands associated with the specified app.
  6896. AppId *string `type:"string"`
  6897. // An array of deployment IDs to be described. If you include this parameter,
  6898. // DescribeDeployments returns a description of the specified deployments. Otherwise,
  6899. // it returns a description of every deployment.
  6900. DeploymentIds []*string `type:"list"`
  6901. // The stack ID. If you include this parameter, DescribeDeployments returns
  6902. // a description of the commands associated with the specified stack.
  6903. StackId *string `type:"string"`
  6904. }
  6905. // String returns the string representation
  6906. func (s DescribeDeploymentsInput) String() string {
  6907. return awsutil.Prettify(s)
  6908. }
  6909. // GoString returns the string representation
  6910. func (s DescribeDeploymentsInput) GoString() string {
  6911. return s.String()
  6912. }
  6913. // Contains the response to a DescribeDeployments request.
  6914. type DescribeDeploymentsOutput struct {
  6915. _ struct{} `type:"structure"`
  6916. // An array of Deployment objects that describe the deployments.
  6917. Deployments []*Deployment `type:"list"`
  6918. }
  6919. // String returns the string representation
  6920. func (s DescribeDeploymentsOutput) String() string {
  6921. return awsutil.Prettify(s)
  6922. }
  6923. // GoString returns the string representation
  6924. func (s DescribeDeploymentsOutput) GoString() string {
  6925. return s.String()
  6926. }
  6927. type DescribeEcsClustersInput struct {
  6928. _ struct{} `type:"structure"`
  6929. // A list of ARNs, one for each cluster to be described.
  6930. EcsClusterArns []*string `type:"list"`
  6931. // To receive a paginated response, use this parameter to specify the maximum
  6932. // number of results to be returned with a single call. If the number of available
  6933. // results exceeds this maximum, the response includes a NextToken value that
  6934. // you can assign to the NextToken request parameter to get the next set of
  6935. // results.
  6936. MaxResults *int64 `type:"integer"`
  6937. // If the previous paginated request did not return all of the remaining results,
  6938. // the response object'sNextToken parameter value is set to a token. To retrieve
  6939. // the next set of results, call DescribeEcsClusters again and assign that token
  6940. // to the request object's NextToken parameter. If there are no remaining results,
  6941. // the previous response object's NextToken parameter is set to null.
  6942. NextToken *string `type:"string"`
  6943. // A stack ID. DescribeEcsClusters returns a description of the cluster that
  6944. // is registered with the stack.
  6945. StackId *string `type:"string"`
  6946. }
  6947. // String returns the string representation
  6948. func (s DescribeEcsClustersInput) String() string {
  6949. return awsutil.Prettify(s)
  6950. }
  6951. // GoString returns the string representation
  6952. func (s DescribeEcsClustersInput) GoString() string {
  6953. return s.String()
  6954. }
  6955. // Contains the response to a DescribeEcsClusters request.
  6956. type DescribeEcsClustersOutput struct {
  6957. _ struct{} `type:"structure"`
  6958. // A list of EcsCluster objects containing the cluster descriptions.
  6959. EcsClusters []*EcsCluster `type:"list"`
  6960. // If a paginated request does not return all of the remaining results, this
  6961. // parameter is set to a token that you can assign to the request object's NextToken
  6962. // parameter to retrieve the next set of results. If the previous paginated
  6963. // request returned all of the remaining results, this parameter is set to null.
  6964. NextToken *string `type:"string"`
  6965. }
  6966. // String returns the string representation
  6967. func (s DescribeEcsClustersOutput) String() string {
  6968. return awsutil.Prettify(s)
  6969. }
  6970. // GoString returns the string representation
  6971. func (s DescribeEcsClustersOutput) GoString() string {
  6972. return s.String()
  6973. }
  6974. type DescribeElasticIpsInput struct {
  6975. _ struct{} `type:"structure"`
  6976. // The instance ID. If you include this parameter, DescribeElasticIps returns
  6977. // a description of the Elastic IP addresses associated with the specified instance.
  6978. InstanceId *string `type:"string"`
  6979. // An array of Elastic IP addresses to be described. If you include this parameter,
  6980. // DescribeElasticIps returns a description of the specified Elastic IP addresses.
  6981. // Otherwise, it returns a description of every Elastic IP address.
  6982. Ips []*string `type:"list"`
  6983. // A stack ID. If you include this parameter, DescribeElasticIps returns a description
  6984. // of the Elastic IP addresses that are registered with the specified stack.
  6985. StackId *string `type:"string"`
  6986. }
  6987. // String returns the string representation
  6988. func (s DescribeElasticIpsInput) String() string {
  6989. return awsutil.Prettify(s)
  6990. }
  6991. // GoString returns the string representation
  6992. func (s DescribeElasticIpsInput) GoString() string {
  6993. return s.String()
  6994. }
  6995. // Contains the response to a DescribeElasticIps request.
  6996. type DescribeElasticIpsOutput struct {
  6997. _ struct{} `type:"structure"`
  6998. // An ElasticIps object that describes the specified Elastic IP addresses.
  6999. ElasticIps []*ElasticIp `type:"list"`
  7000. }
  7001. // String returns the string representation
  7002. func (s DescribeElasticIpsOutput) String() string {
  7003. return awsutil.Prettify(s)
  7004. }
  7005. // GoString returns the string representation
  7006. func (s DescribeElasticIpsOutput) GoString() string {
  7007. return s.String()
  7008. }
  7009. type DescribeElasticLoadBalancersInput struct {
  7010. _ struct{} `type:"structure"`
  7011. // A list of layer IDs. The action describes the Elastic Load Balancing instances
  7012. // for the specified layers.
  7013. LayerIds []*string `type:"list"`
  7014. // A stack ID. The action describes the stack's Elastic Load Balancing instances.
  7015. StackId *string `type:"string"`
  7016. }
  7017. // String returns the string representation
  7018. func (s DescribeElasticLoadBalancersInput) String() string {
  7019. return awsutil.Prettify(s)
  7020. }
  7021. // GoString returns the string representation
  7022. func (s DescribeElasticLoadBalancersInput) GoString() string {
  7023. return s.String()
  7024. }
  7025. // Contains the response to a DescribeElasticLoadBalancers request.
  7026. type DescribeElasticLoadBalancersOutput struct {
  7027. _ struct{} `type:"structure"`
  7028. // A list of ElasticLoadBalancer objects that describe the specified Elastic
  7029. // Load Balancing instances.
  7030. ElasticLoadBalancers []*ElasticLoadBalancer `type:"list"`
  7031. }
  7032. // String returns the string representation
  7033. func (s DescribeElasticLoadBalancersOutput) String() string {
  7034. return awsutil.Prettify(s)
  7035. }
  7036. // GoString returns the string representation
  7037. func (s DescribeElasticLoadBalancersOutput) GoString() string {
  7038. return s.String()
  7039. }
  7040. type DescribeInstancesInput struct {
  7041. _ struct{} `type:"structure"`
  7042. // An array of instance IDs to be described. If you use this parameter, DescribeInstances
  7043. // returns a description of the specified instances. Otherwise, it returns a
  7044. // description of every instance.
  7045. InstanceIds []*string `type:"list"`
  7046. // A layer ID. If you use this parameter, DescribeInstances returns descriptions
  7047. // of the instances associated with the specified layer.
  7048. LayerId *string `type:"string"`
  7049. // A stack ID. If you use this parameter, DescribeInstances returns descriptions
  7050. // of the instances associated with the specified stack.
  7051. StackId *string `type:"string"`
  7052. }
  7053. // String returns the string representation
  7054. func (s DescribeInstancesInput) String() string {
  7055. return awsutil.Prettify(s)
  7056. }
  7057. // GoString returns the string representation
  7058. func (s DescribeInstancesInput) GoString() string {
  7059. return s.String()
  7060. }
  7061. // Contains the response to a DescribeInstances request.
  7062. type DescribeInstancesOutput struct {
  7063. _ struct{} `type:"structure"`
  7064. // An array of Instance objects that describe the instances.
  7065. Instances []*Instance `type:"list"`
  7066. }
  7067. // String returns the string representation
  7068. func (s DescribeInstancesOutput) String() string {
  7069. return awsutil.Prettify(s)
  7070. }
  7071. // GoString returns the string representation
  7072. func (s DescribeInstancesOutput) GoString() string {
  7073. return s.String()
  7074. }
  7075. type DescribeLayersInput struct {
  7076. _ struct{} `type:"structure"`
  7077. // An array of layer IDs that specify the layers to be described. If you omit
  7078. // this parameter, DescribeLayers returns a description of every layer in the
  7079. // specified stack.
  7080. LayerIds []*string `type:"list"`
  7081. // The stack ID.
  7082. StackId *string `type:"string"`
  7083. }
  7084. // String returns the string representation
  7085. func (s DescribeLayersInput) String() string {
  7086. return awsutil.Prettify(s)
  7087. }
  7088. // GoString returns the string representation
  7089. func (s DescribeLayersInput) GoString() string {
  7090. return s.String()
  7091. }
  7092. // Contains the response to a DescribeLayers request.
  7093. type DescribeLayersOutput struct {
  7094. _ struct{} `type:"structure"`
  7095. // An array of Layer objects that describe the layers.
  7096. Layers []*Layer `type:"list"`
  7097. }
  7098. // String returns the string representation
  7099. func (s DescribeLayersOutput) String() string {
  7100. return awsutil.Prettify(s)
  7101. }
  7102. // GoString returns the string representation
  7103. func (s DescribeLayersOutput) GoString() string {
  7104. return s.String()
  7105. }
  7106. type DescribeLoadBasedAutoScalingInput struct {
  7107. _ struct{} `type:"structure"`
  7108. // An array of layer IDs.
  7109. //
  7110. // LayerIds is a required field
  7111. LayerIds []*string `type:"list" required:"true"`
  7112. }
  7113. // String returns the string representation
  7114. func (s DescribeLoadBasedAutoScalingInput) String() string {
  7115. return awsutil.Prettify(s)
  7116. }
  7117. // GoString returns the string representation
  7118. func (s DescribeLoadBasedAutoScalingInput) GoString() string {
  7119. return s.String()
  7120. }
  7121. // Validate inspects the fields of the type to determine if they are valid.
  7122. func (s *DescribeLoadBasedAutoScalingInput) Validate() error {
  7123. invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBasedAutoScalingInput"}
  7124. if s.LayerIds == nil {
  7125. invalidParams.Add(request.NewErrParamRequired("LayerIds"))
  7126. }
  7127. if invalidParams.Len() > 0 {
  7128. return invalidParams
  7129. }
  7130. return nil
  7131. }
  7132. // Contains the response to a DescribeLoadBasedAutoScaling request.
  7133. type DescribeLoadBasedAutoScalingOutput struct {
  7134. _ struct{} `type:"structure"`
  7135. // An array of LoadBasedAutoScalingConfiguration objects that describe each
  7136. // layer's configuration.
  7137. LoadBasedAutoScalingConfigurations []*LoadBasedAutoScalingConfiguration `type:"list"`
  7138. }
  7139. // String returns the string representation
  7140. func (s DescribeLoadBasedAutoScalingOutput) String() string {
  7141. return awsutil.Prettify(s)
  7142. }
  7143. // GoString returns the string representation
  7144. func (s DescribeLoadBasedAutoScalingOutput) GoString() string {
  7145. return s.String()
  7146. }
  7147. type DescribeMyUserProfileInput struct {
  7148. _ struct{} `type:"structure"`
  7149. }
  7150. // String returns the string representation
  7151. func (s DescribeMyUserProfileInput) String() string {
  7152. return awsutil.Prettify(s)
  7153. }
  7154. // GoString returns the string representation
  7155. func (s DescribeMyUserProfileInput) GoString() string {
  7156. return s.String()
  7157. }
  7158. // Contains the response to a DescribeMyUserProfile request.
  7159. type DescribeMyUserProfileOutput struct {
  7160. _ struct{} `type:"structure"`
  7161. // A UserProfile object that describes the user's SSH information.
  7162. UserProfile *SelfUserProfile `type:"structure"`
  7163. }
  7164. // String returns the string representation
  7165. func (s DescribeMyUserProfileOutput) String() string {
  7166. return awsutil.Prettify(s)
  7167. }
  7168. // GoString returns the string representation
  7169. func (s DescribeMyUserProfileOutput) GoString() string {
  7170. return s.String()
  7171. }
  7172. type DescribePermissionsInput struct {
  7173. _ struct{} `type:"structure"`
  7174. // The user's IAM ARN. This can also be a federated user's ARN. For more information
  7175. // about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  7176. IamUserArn *string `type:"string"`
  7177. // The stack ID.
  7178. StackId *string `type:"string"`
  7179. }
  7180. // String returns the string representation
  7181. func (s DescribePermissionsInput) String() string {
  7182. return awsutil.Prettify(s)
  7183. }
  7184. // GoString returns the string representation
  7185. func (s DescribePermissionsInput) GoString() string {
  7186. return s.String()
  7187. }
  7188. // Contains the response to a DescribePermissions request.
  7189. type DescribePermissionsOutput struct {
  7190. _ struct{} `type:"structure"`
  7191. // An array of Permission objects that describe the stack permissions.
  7192. //
  7193. // * If the request object contains only a stack ID, the array contains a
  7194. // Permission object with permissions for each of the stack IAM ARNs.
  7195. //
  7196. // * If the request object contains only an IAM ARN, the array contains a
  7197. // Permission object with permissions for each of the user's stack IDs.
  7198. //
  7199. // * If the request contains a stack ID and an IAM ARN, the array contains
  7200. // a single Permission object with permissions for the specified stack and
  7201. // IAM ARN.
  7202. Permissions []*Permission `type:"list"`
  7203. }
  7204. // String returns the string representation
  7205. func (s DescribePermissionsOutput) String() string {
  7206. return awsutil.Prettify(s)
  7207. }
  7208. // GoString returns the string representation
  7209. func (s DescribePermissionsOutput) GoString() string {
  7210. return s.String()
  7211. }
  7212. type DescribeRaidArraysInput struct {
  7213. _ struct{} `type:"structure"`
  7214. // The instance ID. If you use this parameter, DescribeRaidArrays returns descriptions
  7215. // of the RAID arrays associated with the specified instance.
  7216. InstanceId *string `type:"string"`
  7217. // An array of RAID array IDs. If you use this parameter, DescribeRaidArrays
  7218. // returns descriptions of the specified arrays. Otherwise, it returns a description
  7219. // of every array.
  7220. RaidArrayIds []*string `type:"list"`
  7221. // The stack ID.
  7222. StackId *string `type:"string"`
  7223. }
  7224. // String returns the string representation
  7225. func (s DescribeRaidArraysInput) String() string {
  7226. return awsutil.Prettify(s)
  7227. }
  7228. // GoString returns the string representation
  7229. func (s DescribeRaidArraysInput) GoString() string {
  7230. return s.String()
  7231. }
  7232. // Contains the response to a DescribeRaidArrays request.
  7233. type DescribeRaidArraysOutput struct {
  7234. _ struct{} `type:"structure"`
  7235. // A RaidArrays object that describes the specified RAID arrays.
  7236. RaidArrays []*RaidArray `type:"list"`
  7237. }
  7238. // String returns the string representation
  7239. func (s DescribeRaidArraysOutput) String() string {
  7240. return awsutil.Prettify(s)
  7241. }
  7242. // GoString returns the string representation
  7243. func (s DescribeRaidArraysOutput) GoString() string {
  7244. return s.String()
  7245. }
  7246. type DescribeRdsDbInstancesInput struct {
  7247. _ struct{} `type:"structure"`
  7248. // An array containing the ARNs of the instances to be described.
  7249. RdsDbInstanceArns []*string `type:"list"`
  7250. // The stack ID that the instances are registered with. The operation returns
  7251. // descriptions of all registered Amazon RDS instances.
  7252. //
  7253. // StackId is a required field
  7254. StackId *string `type:"string" required:"true"`
  7255. }
  7256. // String returns the string representation
  7257. func (s DescribeRdsDbInstancesInput) String() string {
  7258. return awsutil.Prettify(s)
  7259. }
  7260. // GoString returns the string representation
  7261. func (s DescribeRdsDbInstancesInput) GoString() string {
  7262. return s.String()
  7263. }
  7264. // Validate inspects the fields of the type to determine if they are valid.
  7265. func (s *DescribeRdsDbInstancesInput) Validate() error {
  7266. invalidParams := request.ErrInvalidParams{Context: "DescribeRdsDbInstancesInput"}
  7267. if s.StackId == nil {
  7268. invalidParams.Add(request.NewErrParamRequired("StackId"))
  7269. }
  7270. if invalidParams.Len() > 0 {
  7271. return invalidParams
  7272. }
  7273. return nil
  7274. }
  7275. // Contains the response to a DescribeRdsDbInstances request.
  7276. type DescribeRdsDbInstancesOutput struct {
  7277. _ struct{} `type:"structure"`
  7278. // An a array of RdsDbInstance objects that describe the instances.
  7279. RdsDbInstances []*RdsDbInstance `type:"list"`
  7280. }
  7281. // String returns the string representation
  7282. func (s DescribeRdsDbInstancesOutput) String() string {
  7283. return awsutil.Prettify(s)
  7284. }
  7285. // GoString returns the string representation
  7286. func (s DescribeRdsDbInstancesOutput) GoString() string {
  7287. return s.String()
  7288. }
  7289. type DescribeServiceErrorsInput struct {
  7290. _ struct{} `type:"structure"`
  7291. // The instance ID. If you use this parameter, DescribeServiceErrors returns
  7292. // descriptions of the errors associated with the specified instance.
  7293. InstanceId *string `type:"string"`
  7294. // An array of service error IDs. If you use this parameter, DescribeServiceErrors
  7295. // returns descriptions of the specified errors. Otherwise, it returns a description
  7296. // of every error.
  7297. ServiceErrorIds []*string `type:"list"`
  7298. // The stack ID. If you use this parameter, DescribeServiceErrors returns descriptions
  7299. // of the errors associated with the specified stack.
  7300. StackId *string `type:"string"`
  7301. }
  7302. // String returns the string representation
  7303. func (s DescribeServiceErrorsInput) String() string {
  7304. return awsutil.Prettify(s)
  7305. }
  7306. // GoString returns the string representation
  7307. func (s DescribeServiceErrorsInput) GoString() string {
  7308. return s.String()
  7309. }
  7310. // Contains the response to a DescribeServiceErrors request.
  7311. type DescribeServiceErrorsOutput struct {
  7312. _ struct{} `type:"structure"`
  7313. // An array of ServiceError objects that describe the specified service errors.
  7314. ServiceErrors []*ServiceError `type:"list"`
  7315. }
  7316. // String returns the string representation
  7317. func (s DescribeServiceErrorsOutput) String() string {
  7318. return awsutil.Prettify(s)
  7319. }
  7320. // GoString returns the string representation
  7321. func (s DescribeServiceErrorsOutput) GoString() string {
  7322. return s.String()
  7323. }
  7324. type DescribeStackProvisioningParametersInput struct {
  7325. _ struct{} `type:"structure"`
  7326. // The stack ID
  7327. //
  7328. // StackId is a required field
  7329. StackId *string `type:"string" required:"true"`
  7330. }
  7331. // String returns the string representation
  7332. func (s DescribeStackProvisioningParametersInput) String() string {
  7333. return awsutil.Prettify(s)
  7334. }
  7335. // GoString returns the string representation
  7336. func (s DescribeStackProvisioningParametersInput) GoString() string {
  7337. return s.String()
  7338. }
  7339. // Validate inspects the fields of the type to determine if they are valid.
  7340. func (s *DescribeStackProvisioningParametersInput) Validate() error {
  7341. invalidParams := request.ErrInvalidParams{Context: "DescribeStackProvisioningParametersInput"}
  7342. if s.StackId == nil {
  7343. invalidParams.Add(request.NewErrParamRequired("StackId"))
  7344. }
  7345. if invalidParams.Len() > 0 {
  7346. return invalidParams
  7347. }
  7348. return nil
  7349. }
  7350. // Contains the response to a DescribeStackProvisioningParameters request.
  7351. type DescribeStackProvisioningParametersOutput struct {
  7352. _ struct{} `type:"structure"`
  7353. // The AWS OpsWorks agent installer's URL.
  7354. AgentInstallerUrl *string `type:"string"`
  7355. // An embedded object that contains the provisioning parameters.
  7356. Parameters map[string]*string `type:"map"`
  7357. }
  7358. // String returns the string representation
  7359. func (s DescribeStackProvisioningParametersOutput) String() string {
  7360. return awsutil.Prettify(s)
  7361. }
  7362. // GoString returns the string representation
  7363. func (s DescribeStackProvisioningParametersOutput) GoString() string {
  7364. return s.String()
  7365. }
  7366. type DescribeStackSummaryInput struct {
  7367. _ struct{} `type:"structure"`
  7368. // The stack ID.
  7369. //
  7370. // StackId is a required field
  7371. StackId *string `type:"string" required:"true"`
  7372. }
  7373. // String returns the string representation
  7374. func (s DescribeStackSummaryInput) String() string {
  7375. return awsutil.Prettify(s)
  7376. }
  7377. // GoString returns the string representation
  7378. func (s DescribeStackSummaryInput) GoString() string {
  7379. return s.String()
  7380. }
  7381. // Validate inspects the fields of the type to determine if they are valid.
  7382. func (s *DescribeStackSummaryInput) Validate() error {
  7383. invalidParams := request.ErrInvalidParams{Context: "DescribeStackSummaryInput"}
  7384. if s.StackId == nil {
  7385. invalidParams.Add(request.NewErrParamRequired("StackId"))
  7386. }
  7387. if invalidParams.Len() > 0 {
  7388. return invalidParams
  7389. }
  7390. return nil
  7391. }
  7392. // Contains the response to a DescribeStackSummary request.
  7393. type DescribeStackSummaryOutput struct {
  7394. _ struct{} `type:"structure"`
  7395. // A StackSummary object that contains the results.
  7396. StackSummary *StackSummary `type:"structure"`
  7397. }
  7398. // String returns the string representation
  7399. func (s DescribeStackSummaryOutput) String() string {
  7400. return awsutil.Prettify(s)
  7401. }
  7402. // GoString returns the string representation
  7403. func (s DescribeStackSummaryOutput) GoString() string {
  7404. return s.String()
  7405. }
  7406. type DescribeStacksInput struct {
  7407. _ struct{} `type:"structure"`
  7408. // An array of stack IDs that specify the stacks to be described. If you omit
  7409. // this parameter, DescribeStacks returns a description of every stack.
  7410. StackIds []*string `type:"list"`
  7411. }
  7412. // String returns the string representation
  7413. func (s DescribeStacksInput) String() string {
  7414. return awsutil.Prettify(s)
  7415. }
  7416. // GoString returns the string representation
  7417. func (s DescribeStacksInput) GoString() string {
  7418. return s.String()
  7419. }
  7420. // Contains the response to a DescribeStacks request.
  7421. type DescribeStacksOutput struct {
  7422. _ struct{} `type:"structure"`
  7423. // An array of Stack objects that describe the stacks.
  7424. Stacks []*Stack `type:"list"`
  7425. }
  7426. // String returns the string representation
  7427. func (s DescribeStacksOutput) String() string {
  7428. return awsutil.Prettify(s)
  7429. }
  7430. // GoString returns the string representation
  7431. func (s DescribeStacksOutput) GoString() string {
  7432. return s.String()
  7433. }
  7434. type DescribeTimeBasedAutoScalingInput struct {
  7435. _ struct{} `type:"structure"`
  7436. // An array of instance IDs.
  7437. //
  7438. // InstanceIds is a required field
  7439. InstanceIds []*string `type:"list" required:"true"`
  7440. }
  7441. // String returns the string representation
  7442. func (s DescribeTimeBasedAutoScalingInput) String() string {
  7443. return awsutil.Prettify(s)
  7444. }
  7445. // GoString returns the string representation
  7446. func (s DescribeTimeBasedAutoScalingInput) GoString() string {
  7447. return s.String()
  7448. }
  7449. // Validate inspects the fields of the type to determine if they are valid.
  7450. func (s *DescribeTimeBasedAutoScalingInput) Validate() error {
  7451. invalidParams := request.ErrInvalidParams{Context: "DescribeTimeBasedAutoScalingInput"}
  7452. if s.InstanceIds == nil {
  7453. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  7454. }
  7455. if invalidParams.Len() > 0 {
  7456. return invalidParams
  7457. }
  7458. return nil
  7459. }
  7460. // Contains the response to a DescribeTimeBasedAutoScaling request.
  7461. type DescribeTimeBasedAutoScalingOutput struct {
  7462. _ struct{} `type:"structure"`
  7463. // An array of TimeBasedAutoScalingConfiguration objects that describe the configuration
  7464. // for the specified instances.
  7465. TimeBasedAutoScalingConfigurations []*TimeBasedAutoScalingConfiguration `type:"list"`
  7466. }
  7467. // String returns the string representation
  7468. func (s DescribeTimeBasedAutoScalingOutput) String() string {
  7469. return awsutil.Prettify(s)
  7470. }
  7471. // GoString returns the string representation
  7472. func (s DescribeTimeBasedAutoScalingOutput) GoString() string {
  7473. return s.String()
  7474. }
  7475. type DescribeUserProfilesInput struct {
  7476. _ struct{} `type:"structure"`
  7477. // An array of IAM or federated user ARNs that identify the users to be described.
  7478. IamUserArns []*string `type:"list"`
  7479. }
  7480. // String returns the string representation
  7481. func (s DescribeUserProfilesInput) String() string {
  7482. return awsutil.Prettify(s)
  7483. }
  7484. // GoString returns the string representation
  7485. func (s DescribeUserProfilesInput) GoString() string {
  7486. return s.String()
  7487. }
  7488. // Contains the response to a DescribeUserProfiles request.
  7489. type DescribeUserProfilesOutput struct {
  7490. _ struct{} `type:"structure"`
  7491. // A Users object that describes the specified users.
  7492. UserProfiles []*UserProfile `type:"list"`
  7493. }
  7494. // String returns the string representation
  7495. func (s DescribeUserProfilesOutput) String() string {
  7496. return awsutil.Prettify(s)
  7497. }
  7498. // GoString returns the string representation
  7499. func (s DescribeUserProfilesOutput) GoString() string {
  7500. return s.String()
  7501. }
  7502. type DescribeVolumesInput struct {
  7503. _ struct{} `type:"structure"`
  7504. // The instance ID. If you use this parameter, DescribeVolumes returns descriptions
  7505. // of the volumes associated with the specified instance.
  7506. InstanceId *string `type:"string"`
  7507. // The RAID array ID. If you use this parameter, DescribeVolumes returns descriptions
  7508. // of the volumes associated with the specified RAID array.
  7509. RaidArrayId *string `type:"string"`
  7510. // A stack ID. The action describes the stack's registered Amazon EBS volumes.
  7511. StackId *string `type:"string"`
  7512. // Am array of volume IDs. If you use this parameter, DescribeVolumes returns
  7513. // descriptions of the specified volumes. Otherwise, it returns a description
  7514. // of every volume.
  7515. VolumeIds []*string `type:"list"`
  7516. }
  7517. // String returns the string representation
  7518. func (s DescribeVolumesInput) String() string {
  7519. return awsutil.Prettify(s)
  7520. }
  7521. // GoString returns the string representation
  7522. func (s DescribeVolumesInput) GoString() string {
  7523. return s.String()
  7524. }
  7525. // Contains the response to a DescribeVolumes request.
  7526. type DescribeVolumesOutput struct {
  7527. _ struct{} `type:"structure"`
  7528. // An array of volume IDs.
  7529. Volumes []*Volume `type:"list"`
  7530. }
  7531. // String returns the string representation
  7532. func (s DescribeVolumesOutput) String() string {
  7533. return awsutil.Prettify(s)
  7534. }
  7535. // GoString returns the string representation
  7536. func (s DescribeVolumesOutput) GoString() string {
  7537. return s.String()
  7538. }
  7539. type DetachElasticLoadBalancerInput struct {
  7540. _ struct{} `type:"structure"`
  7541. // The Elastic Load Balancing instance's name.
  7542. //
  7543. // ElasticLoadBalancerName is a required field
  7544. ElasticLoadBalancerName *string `type:"string" required:"true"`
  7545. // The ID of the layer that the Elastic Load Balancing instance is attached
  7546. // to.
  7547. //
  7548. // LayerId is a required field
  7549. LayerId *string `type:"string" required:"true"`
  7550. }
  7551. // String returns the string representation
  7552. func (s DetachElasticLoadBalancerInput) String() string {
  7553. return awsutil.Prettify(s)
  7554. }
  7555. // GoString returns the string representation
  7556. func (s DetachElasticLoadBalancerInput) GoString() string {
  7557. return s.String()
  7558. }
  7559. // Validate inspects the fields of the type to determine if they are valid.
  7560. func (s *DetachElasticLoadBalancerInput) Validate() error {
  7561. invalidParams := request.ErrInvalidParams{Context: "DetachElasticLoadBalancerInput"}
  7562. if s.ElasticLoadBalancerName == nil {
  7563. invalidParams.Add(request.NewErrParamRequired("ElasticLoadBalancerName"))
  7564. }
  7565. if s.LayerId == nil {
  7566. invalidParams.Add(request.NewErrParamRequired("LayerId"))
  7567. }
  7568. if invalidParams.Len() > 0 {
  7569. return invalidParams
  7570. }
  7571. return nil
  7572. }
  7573. type DetachElasticLoadBalancerOutput struct {
  7574. _ struct{} `type:"structure"`
  7575. }
  7576. // String returns the string representation
  7577. func (s DetachElasticLoadBalancerOutput) String() string {
  7578. return awsutil.Prettify(s)
  7579. }
  7580. // GoString returns the string representation
  7581. func (s DetachElasticLoadBalancerOutput) GoString() string {
  7582. return s.String()
  7583. }
  7584. type DisassociateElasticIpInput struct {
  7585. _ struct{} `type:"structure"`
  7586. // The Elastic IP address.
  7587. //
  7588. // ElasticIp is a required field
  7589. ElasticIp *string `type:"string" required:"true"`
  7590. }
  7591. // String returns the string representation
  7592. func (s DisassociateElasticIpInput) String() string {
  7593. return awsutil.Prettify(s)
  7594. }
  7595. // GoString returns the string representation
  7596. func (s DisassociateElasticIpInput) GoString() string {
  7597. return s.String()
  7598. }
  7599. // Validate inspects the fields of the type to determine if they are valid.
  7600. func (s *DisassociateElasticIpInput) Validate() error {
  7601. invalidParams := request.ErrInvalidParams{Context: "DisassociateElasticIpInput"}
  7602. if s.ElasticIp == nil {
  7603. invalidParams.Add(request.NewErrParamRequired("ElasticIp"))
  7604. }
  7605. if invalidParams.Len() > 0 {
  7606. return invalidParams
  7607. }
  7608. return nil
  7609. }
  7610. type DisassociateElasticIpOutput struct {
  7611. _ struct{} `type:"structure"`
  7612. }
  7613. // String returns the string representation
  7614. func (s DisassociateElasticIpOutput) String() string {
  7615. return awsutil.Prettify(s)
  7616. }
  7617. // GoString returns the string representation
  7618. func (s DisassociateElasticIpOutput) GoString() string {
  7619. return s.String()
  7620. }
  7621. // Describes an Amazon EBS volume. This data type maps directly to the Amazon
  7622. // EC2 EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html)
  7623. // data type.
  7624. type EbsBlockDevice struct {
  7625. _ struct{} `type:"structure"`
  7626. // Whether the volume is deleted on instance termination.
  7627. DeleteOnTermination *bool `type:"boolean"`
  7628. // The number of I/O operations per second (IOPS) that the volume supports.
  7629. // For more information, see EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html).
  7630. Iops *int64 `type:"integer"`
  7631. // The snapshot ID.
  7632. SnapshotId *string `type:"string"`
  7633. // The volume size, in GiB. For more information, see EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html).
  7634. VolumeSize *int64 `type:"integer"`
  7635. // The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned
  7636. // IOPS (SSD) volumes, and standard for Magnetic volumes.
  7637. VolumeType *string `type:"string" enum:"VolumeType"`
  7638. }
  7639. // String returns the string representation
  7640. func (s EbsBlockDevice) String() string {
  7641. return awsutil.Prettify(s)
  7642. }
  7643. // GoString returns the string representation
  7644. func (s EbsBlockDevice) GoString() string {
  7645. return s.String()
  7646. }
  7647. // Describes a registered Amazon ECS cluster.
  7648. type EcsCluster struct {
  7649. _ struct{} `type:"structure"`
  7650. // The cluster's ARN.
  7651. EcsClusterArn *string `type:"string"`
  7652. // The cluster name.
  7653. EcsClusterName *string `type:"string"`
  7654. // The time and date that the cluster was registered with the stack.
  7655. RegisteredAt *string `type:"string"`
  7656. // The stack ID.
  7657. StackId *string `type:"string"`
  7658. }
  7659. // String returns the string representation
  7660. func (s EcsCluster) String() string {
  7661. return awsutil.Prettify(s)
  7662. }
  7663. // GoString returns the string representation
  7664. func (s EcsCluster) GoString() string {
  7665. return s.String()
  7666. }
  7667. // Describes an Elastic IP address.
  7668. type ElasticIp struct {
  7669. _ struct{} `type:"structure"`
  7670. // The domain.
  7671. Domain *string `type:"string"`
  7672. // The ID of the instance that the address is attached to.
  7673. InstanceId *string `type:"string"`
  7674. // The IP address.
  7675. Ip *string `type:"string"`
  7676. // The name.
  7677. Name *string `type:"string"`
  7678. // The AWS region. For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  7679. Region *string `type:"string"`
  7680. }
  7681. // String returns the string representation
  7682. func (s ElasticIp) String() string {
  7683. return awsutil.Prettify(s)
  7684. }
  7685. // GoString returns the string representation
  7686. func (s ElasticIp) GoString() string {
  7687. return s.String()
  7688. }
  7689. // Describes an Elastic Load Balancing instance.
  7690. type ElasticLoadBalancer struct {
  7691. _ struct{} `type:"structure"`
  7692. // A list of Availability Zones.
  7693. AvailabilityZones []*string `type:"list"`
  7694. // The instance's public DNS name.
  7695. DnsName *string `type:"string"`
  7696. // A list of the EC2 instances that the Elastic Load Balancing instance is managing
  7697. // traffic for.
  7698. Ec2InstanceIds []*string `type:"list"`
  7699. // The Elastic Load Balancing instance's name.
  7700. ElasticLoadBalancerName *string `type:"string"`
  7701. // The ID of the layer that the instance is attached to.
  7702. LayerId *string `type:"string"`
  7703. // The instance's AWS region.
  7704. Region *string `type:"string"`
  7705. // The ID of the stack that the instance is associated with.
  7706. StackId *string `type:"string"`
  7707. // A list of subnet IDs, if the stack is running in a VPC.
  7708. SubnetIds []*string `type:"list"`
  7709. // The VPC ID.
  7710. VpcId *string `type:"string"`
  7711. }
  7712. // String returns the string representation
  7713. func (s ElasticLoadBalancer) String() string {
  7714. return awsutil.Prettify(s)
  7715. }
  7716. // GoString returns the string representation
  7717. func (s ElasticLoadBalancer) GoString() string {
  7718. return s.String()
  7719. }
  7720. // Represents an app's environment variable.
  7721. type EnvironmentVariable struct {
  7722. _ struct{} `type:"structure"`
  7723. // (Required) The environment variable's name, which can consist of up to 64
  7724. // characters and must be specified. The name can contain upper- and lowercase
  7725. // letters, numbers, and underscores (_), but it must start with a letter or
  7726. // underscore.
  7727. //
  7728. // Key is a required field
  7729. Key *string `type:"string" required:"true"`
  7730. // (Optional) Whether the variable's value will be returned by the DescribeApps
  7731. // action. To conceal an environment variable's value, set Secure to true. DescribeApps
  7732. // then returns *****FILTERED***** instead of the actual value. The default
  7733. // value for Secure is false.
  7734. Secure *bool `type:"boolean"`
  7735. // (Optional) The environment variable's value, which can be left empty. If
  7736. // you specify a value, it can contain up to 256 characters, which must all
  7737. // be printable.
  7738. //
  7739. // Value is a required field
  7740. Value *string `type:"string" required:"true"`
  7741. }
  7742. // String returns the string representation
  7743. func (s EnvironmentVariable) String() string {
  7744. return awsutil.Prettify(s)
  7745. }
  7746. // GoString returns the string representation
  7747. func (s EnvironmentVariable) GoString() string {
  7748. return s.String()
  7749. }
  7750. // Validate inspects the fields of the type to determine if they are valid.
  7751. func (s *EnvironmentVariable) Validate() error {
  7752. invalidParams := request.ErrInvalidParams{Context: "EnvironmentVariable"}
  7753. if s.Key == nil {
  7754. invalidParams.Add(request.NewErrParamRequired("Key"))
  7755. }
  7756. if s.Value == nil {
  7757. invalidParams.Add(request.NewErrParamRequired("Value"))
  7758. }
  7759. if invalidParams.Len() > 0 {
  7760. return invalidParams
  7761. }
  7762. return nil
  7763. }
  7764. type GetHostnameSuggestionInput struct {
  7765. _ struct{} `type:"structure"`
  7766. // The layer ID.
  7767. //
  7768. // LayerId is a required field
  7769. LayerId *string `type:"string" required:"true"`
  7770. }
  7771. // String returns the string representation
  7772. func (s GetHostnameSuggestionInput) String() string {
  7773. return awsutil.Prettify(s)
  7774. }
  7775. // GoString returns the string representation
  7776. func (s GetHostnameSuggestionInput) GoString() string {
  7777. return s.String()
  7778. }
  7779. // Validate inspects the fields of the type to determine if they are valid.
  7780. func (s *GetHostnameSuggestionInput) Validate() error {
  7781. invalidParams := request.ErrInvalidParams{Context: "GetHostnameSuggestionInput"}
  7782. if s.LayerId == nil {
  7783. invalidParams.Add(request.NewErrParamRequired("LayerId"))
  7784. }
  7785. if invalidParams.Len() > 0 {
  7786. return invalidParams
  7787. }
  7788. return nil
  7789. }
  7790. // Contains the response to a GetHostnameSuggestion request.
  7791. type GetHostnameSuggestionOutput struct {
  7792. _ struct{} `type:"structure"`
  7793. // The generated host name.
  7794. Hostname *string `type:"string"`
  7795. // The layer ID.
  7796. LayerId *string `type:"string"`
  7797. }
  7798. // String returns the string representation
  7799. func (s GetHostnameSuggestionOutput) String() string {
  7800. return awsutil.Prettify(s)
  7801. }
  7802. // GoString returns the string representation
  7803. func (s GetHostnameSuggestionOutput) GoString() string {
  7804. return s.String()
  7805. }
  7806. type GrantAccessInput struct {
  7807. _ struct{} `type:"structure"`
  7808. // The instance's AWS OpsWorks ID.
  7809. //
  7810. // InstanceId is a required field
  7811. InstanceId *string `type:"string" required:"true"`
  7812. // The length of time (in minutes) that the grant is valid. When the grant expires
  7813. // at the end of this period, the user will no longer be able to use the credentials
  7814. // to log in. If the user is logged in at the time, he or she automatically
  7815. // will be logged out.
  7816. ValidForInMinutes *int64 `min:"60" type:"integer"`
  7817. }
  7818. // String returns the string representation
  7819. func (s GrantAccessInput) String() string {
  7820. return awsutil.Prettify(s)
  7821. }
  7822. // GoString returns the string representation
  7823. func (s GrantAccessInput) GoString() string {
  7824. return s.String()
  7825. }
  7826. // Validate inspects the fields of the type to determine if they are valid.
  7827. func (s *GrantAccessInput) Validate() error {
  7828. invalidParams := request.ErrInvalidParams{Context: "GrantAccessInput"}
  7829. if s.InstanceId == nil {
  7830. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  7831. }
  7832. if s.ValidForInMinutes != nil && *s.ValidForInMinutes < 60 {
  7833. invalidParams.Add(request.NewErrParamMinValue("ValidForInMinutes", 60))
  7834. }
  7835. if invalidParams.Len() > 0 {
  7836. return invalidParams
  7837. }
  7838. return nil
  7839. }
  7840. // Contains the response to a GrantAccess request.
  7841. type GrantAccessOutput struct {
  7842. _ struct{} `type:"structure"`
  7843. // A TemporaryCredential object that contains the data needed to log in to the
  7844. // instance by RDP clients, such as the Microsoft Remote Desktop Connection.
  7845. TemporaryCredential *TemporaryCredential `type:"structure"`
  7846. }
  7847. // String returns the string representation
  7848. func (s GrantAccessOutput) String() string {
  7849. return awsutil.Prettify(s)
  7850. }
  7851. // GoString returns the string representation
  7852. func (s GrantAccessOutput) GoString() string {
  7853. return s.String()
  7854. }
  7855. // Describes an instance.
  7856. type Instance struct {
  7857. _ struct{} `type:"structure"`
  7858. // The agent version. This parameter is set to INHERIT if the instance inherits
  7859. // the default stack setting or to a a version number for a fixed agent version.
  7860. AgentVersion *string `type:"string"`
  7861. // A custom AMI ID to be used to create the instance. For more information,
  7862. // see Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html)
  7863. AmiId *string `type:"string"`
  7864. // The instance architecture: "i386" or "x86_64".
  7865. Architecture *string `type:"string" enum:"Architecture"`
  7866. // For load-based or time-based instances, the type.
  7867. AutoScalingType *string `type:"string" enum:"AutoScalingType"`
  7868. // The instance Availability Zone. For more information, see Regions and Endpoints
  7869. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  7870. AvailabilityZone *string `type:"string"`
  7871. // An array of BlockDeviceMapping objects that specify the instance's block
  7872. // device mappings.
  7873. BlockDeviceMappings []*BlockDeviceMapping `type:"list"`
  7874. // The time that the instance was created.
  7875. CreatedAt *string `type:"string"`
  7876. // Whether this is an Amazon EBS-optimized instance.
  7877. EbsOptimized *bool `type:"boolean"`
  7878. // The ID of the associated Amazon EC2 instance.
  7879. Ec2InstanceId *string `type:"string"`
  7880. // For container instances, the Amazon ECS cluster's ARN.
  7881. EcsClusterArn *string `type:"string"`
  7882. // For container instances, the instance's ARN.
  7883. EcsContainerInstanceArn *string `type:"string"`
  7884. // The instance Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html).
  7885. ElasticIp *string `type:"string"`
  7886. // The instance host name.
  7887. Hostname *string `type:"string"`
  7888. // For registered instances, the infrastructure class: ec2 or on-premises.
  7889. InfrastructureClass *string `type:"string"`
  7890. // Whether to install operating system and package updates when the instance
  7891. // boots. The default value is true. If this value is set to false, you must
  7892. // then update your instances manually by using CreateDeployment to run the
  7893. // update_dependencies stack command or by manually running yum (Amazon Linux)
  7894. // or apt-get (Ubuntu) on the instances.
  7895. //
  7896. // We strongly recommend using the default value of true, to ensure that your
  7897. // instances have the latest security updates.
  7898. InstallUpdatesOnBoot *bool `type:"boolean"`
  7899. // The instance ID.
  7900. InstanceId *string `type:"string"`
  7901. // The ARN of the instance's IAM profile. For more information about IAM ARNs,
  7902. // see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  7903. InstanceProfileArn *string `type:"string"`
  7904. // The instance type, such as t2.micro.
  7905. InstanceType *string `type:"string"`
  7906. // The ID of the last service error. For more information, call DescribeServiceErrors.
  7907. LastServiceErrorId *string `type:"string"`
  7908. // An array containing the instance layer IDs.
  7909. LayerIds []*string `type:"list"`
  7910. // The instance's operating system.
  7911. Os *string `type:"string"`
  7912. // The instance's platform.
  7913. Platform *string `type:"string"`
  7914. // The The instance's private DNS name.
  7915. PrivateDns *string `type:"string"`
  7916. // The instance's private IP address.
  7917. PrivateIp *string `type:"string"`
  7918. // The instance public DNS name.
  7919. PublicDns *string `type:"string"`
  7920. // The instance public IP address.
  7921. PublicIp *string `type:"string"`
  7922. // For registered instances, who performed the registration.
  7923. RegisteredBy *string `type:"string"`
  7924. // The instance's reported AWS OpsWorks agent version.
  7925. ReportedAgentVersion *string `type:"string"`
  7926. // For registered instances, the reported operating system.
  7927. ReportedOs *ReportedOs `type:"structure"`
  7928. // The instance's root device type. For more information, see Storage for the
  7929. // Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  7930. RootDeviceType *string `type:"string" enum:"RootDeviceType"`
  7931. // The root device volume ID.
  7932. RootDeviceVolumeId *string `type:"string"`
  7933. // An array containing the instance security group IDs.
  7934. SecurityGroupIds []*string `type:"list"`
  7935. // The SSH key's Deep Security Agent (DSA) fingerprint.
  7936. SshHostDsaKeyFingerprint *string `type:"string"`
  7937. // The SSH key's RSA fingerprint.
  7938. SshHostRsaKeyFingerprint *string `type:"string"`
  7939. // The instance's Amazon EC2 key-pair name.
  7940. SshKeyName *string `type:"string"`
  7941. // The stack ID.
  7942. StackId *string `type:"string"`
  7943. // The instance status:
  7944. //
  7945. // * booting
  7946. //
  7947. // * connection_lost
  7948. //
  7949. // * online
  7950. //
  7951. // * pending
  7952. //
  7953. // * rebooting
  7954. //
  7955. // * requested
  7956. //
  7957. // * running_setup
  7958. //
  7959. // * setup_failed
  7960. //
  7961. // * shutting_down
  7962. //
  7963. // * start_failed
  7964. //
  7965. // * stop_failed
  7966. //
  7967. // * stopped
  7968. //
  7969. // * stopping
  7970. //
  7971. // * terminated
  7972. //
  7973. // * terminating
  7974. Status *string `type:"string"`
  7975. // The instance's subnet ID; applicable only if the stack is running in a VPC.
  7976. SubnetId *string `type:"string"`
  7977. // The instance's tenancy option, such as dedicated or host.
  7978. Tenancy *string `type:"string"`
  7979. // The instance's virtualization type: paravirtual or hvm.
  7980. VirtualizationType *string `type:"string" enum:"VirtualizationType"`
  7981. }
  7982. // String returns the string representation
  7983. func (s Instance) String() string {
  7984. return awsutil.Prettify(s)
  7985. }
  7986. // GoString returns the string representation
  7987. func (s Instance) GoString() string {
  7988. return s.String()
  7989. }
  7990. // Contains a description of an Amazon EC2 instance from the Amazon EC2 metadata
  7991. // service. For more information, see Instance Metadata and User Data (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/Index.html).
  7992. type InstanceIdentity struct {
  7993. _ struct{} `type:"structure"`
  7994. // A JSON document that contains the metadata.
  7995. Document *string `type:"string"`
  7996. // A signature that can be used to verify the document's accuracy and authenticity.
  7997. Signature *string `type:"string"`
  7998. }
  7999. // String returns the string representation
  8000. func (s InstanceIdentity) String() string {
  8001. return awsutil.Prettify(s)
  8002. }
  8003. // GoString returns the string representation
  8004. func (s InstanceIdentity) GoString() string {
  8005. return s.String()
  8006. }
  8007. // Describes how many instances a stack has for each status.
  8008. type InstancesCount struct {
  8009. _ struct{} `type:"structure"`
  8010. // The number of instances in the Assigning state.
  8011. Assigning *int64 `type:"integer"`
  8012. // The number of instances with booting status.
  8013. Booting *int64 `type:"integer"`
  8014. // The number of instances with connection_lost status.
  8015. ConnectionLost *int64 `type:"integer"`
  8016. // The number of instances in the Deregistering state.
  8017. Deregistering *int64 `type:"integer"`
  8018. // The number of instances with online status.
  8019. Online *int64 `type:"integer"`
  8020. // The number of instances with pending status.
  8021. Pending *int64 `type:"integer"`
  8022. // The number of instances with rebooting status.
  8023. Rebooting *int64 `type:"integer"`
  8024. // The number of instances in the Registered state.
  8025. Registered *int64 `type:"integer"`
  8026. // The number of instances in the Registering state.
  8027. Registering *int64 `type:"integer"`
  8028. // The number of instances with requested status.
  8029. Requested *int64 `type:"integer"`
  8030. // The number of instances with running_setup status.
  8031. RunningSetup *int64 `type:"integer"`
  8032. // The number of instances with setup_failed status.
  8033. SetupFailed *int64 `type:"integer"`
  8034. // The number of instances with shutting_down status.
  8035. ShuttingDown *int64 `type:"integer"`
  8036. // The number of instances with start_failed status.
  8037. StartFailed *int64 `type:"integer"`
  8038. // The number of instances with stopped status.
  8039. Stopped *int64 `type:"integer"`
  8040. // The number of instances with stopping status.
  8041. Stopping *int64 `type:"integer"`
  8042. // The number of instances with terminated status.
  8043. Terminated *int64 `type:"integer"`
  8044. // The number of instances with terminating status.
  8045. Terminating *int64 `type:"integer"`
  8046. // The number of instances in the Unassigning state.
  8047. Unassigning *int64 `type:"integer"`
  8048. }
  8049. // String returns the string representation
  8050. func (s InstancesCount) String() string {
  8051. return awsutil.Prettify(s)
  8052. }
  8053. // GoString returns the string representation
  8054. func (s InstancesCount) GoString() string {
  8055. return s.String()
  8056. }
  8057. // Describes a layer.
  8058. type Layer struct {
  8059. _ struct{} `type:"structure"`
  8060. // The layer attributes.
  8061. //
  8062. // For the HaproxyStatsPassword, MysqlRootPassword, and GangliaPassword attributes,
  8063. // AWS OpsWorks returns *****FILTERED***** instead of the actual value
  8064. //
  8065. // For an ECS Cluster layer, AWS OpsWorks the EcsClusterArn attribute is set
  8066. // to the cluster's ARN.
  8067. Attributes map[string]*string `type:"map"`
  8068. // Whether to automatically assign an Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  8069. // 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).
  8070. AutoAssignElasticIps *bool `type:"boolean"`
  8071. // For stacks that are running in a VPC, whether to automatically assign a public
  8072. // IP address to the layer's instances. For more information, see How to Edit
  8073. // a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
  8074. AutoAssignPublicIps *bool `type:"boolean"`
  8075. // Date when the layer was created.
  8076. CreatedAt *string `type:"string"`
  8077. // The ARN of the default IAM profile to be used for the layer's EC2 instances.
  8078. // For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  8079. CustomInstanceProfileArn *string `type:"string"`
  8080. // A JSON formatted string containing the layer's custom stack configuration
  8081. // and deployment attributes.
  8082. CustomJson *string `type:"string"`
  8083. // A LayerCustomRecipes object that specifies the layer's custom recipes.
  8084. CustomRecipes *Recipes `type:"structure"`
  8085. // An array containing the layer's custom security group IDs.
  8086. CustomSecurityGroupIds []*string `type:"list"`
  8087. // AWS OpsWorks supports five lifecycle events: setup, configuration, deploy,
  8088. // undeploy, and shutdown. For each layer, AWS OpsWorks runs a set of standard
  8089. // recipes for each event. In addition, you can provide custom recipes for any
  8090. // or all layers and events. AWS OpsWorks runs custom event recipes after the
  8091. // standard recipes. LayerCustomRecipes specifies the custom recipes for a particular
  8092. // layer to be run in response to each of the five events.
  8093. //
  8094. // To specify a recipe, use the cookbook's directory name in the repository
  8095. // followed by two colons and the recipe name, which is the recipe's file name
  8096. // without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb
  8097. // recipe in the repository's phpapp2 folder.
  8098. DefaultRecipes *Recipes `type:"structure"`
  8099. // An array containing the layer's security group names.
  8100. DefaultSecurityGroupNames []*string `type:"list"`
  8101. // Whether auto healing is disabled for the layer.
  8102. EnableAutoHealing *bool `type:"boolean"`
  8103. // Whether to install operating system and package updates when the instance
  8104. // boots. The default value is true. If this value is set to false, you must
  8105. // then update your instances manually by using CreateDeployment to run the
  8106. // update_dependencies stack command or manually running yum (Amazon Linux)
  8107. // or apt-get (Ubuntu) on the instances.
  8108. //
  8109. // We strongly recommend using the default value of true, to ensure that your
  8110. // instances have the latest security updates.
  8111. InstallUpdatesOnBoot *bool `type:"boolean"`
  8112. // The layer ID.
  8113. LayerId *string `type:"string"`
  8114. // A LifeCycleEventConfiguration object that specifies the Shutdown event configuration.
  8115. LifecycleEventConfiguration *LifecycleEventConfiguration `type:"structure"`
  8116. // The layer name.
  8117. Name *string `type:"string"`
  8118. // An array of Package objects that describe the layer's packages.
  8119. Packages []*string `type:"list"`
  8120. // The layer short name.
  8121. Shortname *string `type:"string"`
  8122. // The layer stack ID.
  8123. StackId *string `type:"string"`
  8124. // The layer type.
  8125. Type *string `type:"string" enum:"LayerType"`
  8126. // Whether the layer uses Amazon EBS-optimized instances.
  8127. UseEbsOptimizedInstances *bool `type:"boolean"`
  8128. // A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
  8129. VolumeConfigurations []*VolumeConfiguration `type:"list"`
  8130. }
  8131. // String returns the string representation
  8132. func (s Layer) String() string {
  8133. return awsutil.Prettify(s)
  8134. }
  8135. // GoString returns the string representation
  8136. func (s Layer) GoString() string {
  8137. return s.String()
  8138. }
  8139. // Specifies the lifecycle event configuration
  8140. type LifecycleEventConfiguration struct {
  8141. _ struct{} `type:"structure"`
  8142. // A ShutdownEventConfiguration object that specifies the Shutdown event configuration.
  8143. Shutdown *ShutdownEventConfiguration `type:"structure"`
  8144. }
  8145. // String returns the string representation
  8146. func (s LifecycleEventConfiguration) String() string {
  8147. return awsutil.Prettify(s)
  8148. }
  8149. // GoString returns the string representation
  8150. func (s LifecycleEventConfiguration) GoString() string {
  8151. return s.String()
  8152. }
  8153. // Describes a layer's load-based auto scaling configuration.
  8154. type LoadBasedAutoScalingConfiguration struct {
  8155. _ struct{} `type:"structure"`
  8156. // An AutoScalingThresholds object that describes the downscaling configuration,
  8157. // which defines how and when AWS OpsWorks reduces the number of instances.
  8158. DownScaling *AutoScalingThresholds `type:"structure"`
  8159. // Whether load-based auto scaling is enabled for the layer.
  8160. Enable *bool `type:"boolean"`
  8161. // The layer ID.
  8162. LayerId *string `type:"string"`
  8163. // An AutoScalingThresholds object that describes the upscaling configuration,
  8164. // which defines how and when AWS OpsWorks increases the number of instances.
  8165. UpScaling *AutoScalingThresholds `type:"structure"`
  8166. }
  8167. // String returns the string representation
  8168. func (s LoadBasedAutoScalingConfiguration) String() string {
  8169. return awsutil.Prettify(s)
  8170. }
  8171. // GoString returns the string representation
  8172. func (s LoadBasedAutoScalingConfiguration) GoString() string {
  8173. return s.String()
  8174. }
  8175. // Describes stack or user permissions.
  8176. type Permission struct {
  8177. _ struct{} `type:"structure"`
  8178. // Whether the user can use SSH.
  8179. AllowSsh *bool `type:"boolean"`
  8180. // Whether the user can use sudo.
  8181. AllowSudo *bool `type:"boolean"`
  8182. // The Amazon Resource Name (ARN) for an AWS Identity and Access Management
  8183. // (IAM) role. For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  8184. IamUserArn *string `type:"string"`
  8185. // The user's permission level, which must be the following:
  8186. //
  8187. // * deny
  8188. //
  8189. // * show
  8190. //
  8191. // * deploy
  8192. //
  8193. // * manage
  8194. //
  8195. // * iam_only
  8196. //
  8197. // For more information on the permissions associated with these levels, see
  8198. // Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html)
  8199. Level *string `type:"string"`
  8200. // A stack ID.
  8201. StackId *string `type:"string"`
  8202. }
  8203. // String returns the string representation
  8204. func (s Permission) String() string {
  8205. return awsutil.Prettify(s)
  8206. }
  8207. // GoString returns the string representation
  8208. func (s Permission) GoString() string {
  8209. return s.String()
  8210. }
  8211. // Describes an instance's RAID array.
  8212. type RaidArray struct {
  8213. _ struct{} `type:"structure"`
  8214. // The array's Availability Zone. For more information, see Regions and Endpoints
  8215. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  8216. AvailabilityZone *string `type:"string"`
  8217. // When the RAID array was created.
  8218. CreatedAt *string `type:"string"`
  8219. // The array's Linux device. For example /dev/mdadm0.
  8220. Device *string `type:"string"`
  8221. // The instance ID.
  8222. InstanceId *string `type:"string"`
  8223. // For PIOPS volumes, the IOPS per disk.
  8224. Iops *int64 `type:"integer"`
  8225. // The array's mount point.
  8226. MountPoint *string `type:"string"`
  8227. // The array name.
  8228. Name *string `type:"string"`
  8229. // The number of disks in the array.
  8230. NumberOfDisks *int64 `type:"integer"`
  8231. // The array ID.
  8232. RaidArrayId *string `type:"string"`
  8233. // The RAID level (http://en.wikipedia.org/wiki/Standard_RAID_levels).
  8234. RaidLevel *int64 `type:"integer"`
  8235. // The array's size.
  8236. Size *int64 `type:"integer"`
  8237. // The stack ID.
  8238. StackId *string `type:"string"`
  8239. // The volume type, standard or PIOPS.
  8240. VolumeType *string `type:"string"`
  8241. }
  8242. // String returns the string representation
  8243. func (s RaidArray) String() string {
  8244. return awsutil.Prettify(s)
  8245. }
  8246. // GoString returns the string representation
  8247. func (s RaidArray) GoString() string {
  8248. return s.String()
  8249. }
  8250. // Describes an Amazon RDS instance.
  8251. type RdsDbInstance struct {
  8252. _ struct{} `type:"structure"`
  8253. // The instance's address.
  8254. Address *string `type:"string"`
  8255. // The DB instance identifier.
  8256. DbInstanceIdentifier *string `type:"string"`
  8257. // AWS OpsWorks returns *****FILTERED***** instead of the actual value.
  8258. DbPassword *string `type:"string"`
  8259. // The master user name.
  8260. DbUser *string `type:"string"`
  8261. // The instance's database engine.
  8262. Engine *string `type:"string"`
  8263. // Set to true if AWS OpsWorks was unable to discover the Amazon RDS instance.
  8264. // AWS OpsWorks attempts to discover the instance only once. If this value is
  8265. // set to true, you must deregister the instance and then register it again.
  8266. MissingOnRds *bool `type:"boolean"`
  8267. // The instance's ARN.
  8268. RdsDbInstanceArn *string `type:"string"`
  8269. // The instance's AWS region.
  8270. Region *string `type:"string"`
  8271. // The ID of the stack that the instance is registered with.
  8272. StackId *string `type:"string"`
  8273. }
  8274. // String returns the string representation
  8275. func (s RdsDbInstance) String() string {
  8276. return awsutil.Prettify(s)
  8277. }
  8278. // GoString returns the string representation
  8279. func (s RdsDbInstance) GoString() string {
  8280. return s.String()
  8281. }
  8282. type RebootInstanceInput struct {
  8283. _ struct{} `type:"structure"`
  8284. // The instance ID.
  8285. //
  8286. // InstanceId is a required field
  8287. InstanceId *string `type:"string" required:"true"`
  8288. }
  8289. // String returns the string representation
  8290. func (s RebootInstanceInput) String() string {
  8291. return awsutil.Prettify(s)
  8292. }
  8293. // GoString returns the string representation
  8294. func (s RebootInstanceInput) GoString() string {
  8295. return s.String()
  8296. }
  8297. // Validate inspects the fields of the type to determine if they are valid.
  8298. func (s *RebootInstanceInput) Validate() error {
  8299. invalidParams := request.ErrInvalidParams{Context: "RebootInstanceInput"}
  8300. if s.InstanceId == nil {
  8301. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  8302. }
  8303. if invalidParams.Len() > 0 {
  8304. return invalidParams
  8305. }
  8306. return nil
  8307. }
  8308. type RebootInstanceOutput struct {
  8309. _ struct{} `type:"structure"`
  8310. }
  8311. // String returns the string representation
  8312. func (s RebootInstanceOutput) String() string {
  8313. return awsutil.Prettify(s)
  8314. }
  8315. // GoString returns the string representation
  8316. func (s RebootInstanceOutput) GoString() string {
  8317. return s.String()
  8318. }
  8319. // AWS OpsWorks supports five lifecycle events: setup, configuration, deploy,
  8320. // undeploy, and shutdown. For each layer, AWS OpsWorks runs a set of standard
  8321. // recipes for each event. In addition, you can provide custom recipes for any
  8322. // or all layers and events. AWS OpsWorks runs custom event recipes after the
  8323. // standard recipes. LayerCustomRecipes specifies the custom recipes for a particular
  8324. // layer to be run in response to each of the five events.
  8325. //
  8326. // To specify a recipe, use the cookbook's directory name in the repository
  8327. // followed by two colons and the recipe name, which is the recipe's file name
  8328. // without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb
  8329. // recipe in the repository's phpapp2 folder.
  8330. type Recipes struct {
  8331. _ struct{} `type:"structure"`
  8332. // An array of custom recipe names to be run following a configure event.
  8333. Configure []*string `type:"list"`
  8334. // An array of custom recipe names to be run following a deploy event.
  8335. Deploy []*string `type:"list"`
  8336. // An array of custom recipe names to be run following a setup event.
  8337. Setup []*string `type:"list"`
  8338. // An array of custom recipe names to be run following a shutdown event.
  8339. Shutdown []*string `type:"list"`
  8340. // An array of custom recipe names to be run following a undeploy event.
  8341. Undeploy []*string `type:"list"`
  8342. }
  8343. // String returns the string representation
  8344. func (s Recipes) String() string {
  8345. return awsutil.Prettify(s)
  8346. }
  8347. // GoString returns the string representation
  8348. func (s Recipes) GoString() string {
  8349. return s.String()
  8350. }
  8351. type RegisterEcsClusterInput struct {
  8352. _ struct{} `type:"structure"`
  8353. // The cluster's ARN.
  8354. //
  8355. // EcsClusterArn is a required field
  8356. EcsClusterArn *string `type:"string" required:"true"`
  8357. // The stack ID.
  8358. //
  8359. // StackId is a required field
  8360. StackId *string `type:"string" required:"true"`
  8361. }
  8362. // String returns the string representation
  8363. func (s RegisterEcsClusterInput) String() string {
  8364. return awsutil.Prettify(s)
  8365. }
  8366. // GoString returns the string representation
  8367. func (s RegisterEcsClusterInput) GoString() string {
  8368. return s.String()
  8369. }
  8370. // Validate inspects the fields of the type to determine if they are valid.
  8371. func (s *RegisterEcsClusterInput) Validate() error {
  8372. invalidParams := request.ErrInvalidParams{Context: "RegisterEcsClusterInput"}
  8373. if s.EcsClusterArn == nil {
  8374. invalidParams.Add(request.NewErrParamRequired("EcsClusterArn"))
  8375. }
  8376. if s.StackId == nil {
  8377. invalidParams.Add(request.NewErrParamRequired("StackId"))
  8378. }
  8379. if invalidParams.Len() > 0 {
  8380. return invalidParams
  8381. }
  8382. return nil
  8383. }
  8384. // Contains the response to a RegisterEcsCluster request.
  8385. type RegisterEcsClusterOutput struct {
  8386. _ struct{} `type:"structure"`
  8387. // The cluster's ARN.
  8388. EcsClusterArn *string `type:"string"`
  8389. }
  8390. // String returns the string representation
  8391. func (s RegisterEcsClusterOutput) String() string {
  8392. return awsutil.Prettify(s)
  8393. }
  8394. // GoString returns the string representation
  8395. func (s RegisterEcsClusterOutput) GoString() string {
  8396. return s.String()
  8397. }
  8398. type RegisterElasticIpInput struct {
  8399. _ struct{} `type:"structure"`
  8400. // The Elastic IP address.
  8401. //
  8402. // ElasticIp is a required field
  8403. ElasticIp *string `type:"string" required:"true"`
  8404. // The stack ID.
  8405. //
  8406. // StackId is a required field
  8407. StackId *string `type:"string" required:"true"`
  8408. }
  8409. // String returns the string representation
  8410. func (s RegisterElasticIpInput) String() string {
  8411. return awsutil.Prettify(s)
  8412. }
  8413. // GoString returns the string representation
  8414. func (s RegisterElasticIpInput) GoString() string {
  8415. return s.String()
  8416. }
  8417. // Validate inspects the fields of the type to determine if they are valid.
  8418. func (s *RegisterElasticIpInput) Validate() error {
  8419. invalidParams := request.ErrInvalidParams{Context: "RegisterElasticIpInput"}
  8420. if s.ElasticIp == nil {
  8421. invalidParams.Add(request.NewErrParamRequired("ElasticIp"))
  8422. }
  8423. if s.StackId == nil {
  8424. invalidParams.Add(request.NewErrParamRequired("StackId"))
  8425. }
  8426. if invalidParams.Len() > 0 {
  8427. return invalidParams
  8428. }
  8429. return nil
  8430. }
  8431. // Contains the response to a RegisterElasticIp request.
  8432. type RegisterElasticIpOutput struct {
  8433. _ struct{} `type:"structure"`
  8434. // The Elastic IP address.
  8435. ElasticIp *string `type:"string"`
  8436. }
  8437. // String returns the string representation
  8438. func (s RegisterElasticIpOutput) String() string {
  8439. return awsutil.Prettify(s)
  8440. }
  8441. // GoString returns the string representation
  8442. func (s RegisterElasticIpOutput) GoString() string {
  8443. return s.String()
  8444. }
  8445. type RegisterInstanceInput struct {
  8446. _ struct{} `type:"structure"`
  8447. // The instance's hostname.
  8448. Hostname *string `type:"string"`
  8449. // An InstanceIdentity object that contains the instance's identity.
  8450. InstanceIdentity *InstanceIdentity `type:"structure"`
  8451. // The instance's private IP address.
  8452. PrivateIp *string `type:"string"`
  8453. // The instance's public IP address.
  8454. PublicIp *string `type:"string"`
  8455. // The instances public RSA key. This key is used to encrypt communication between
  8456. // the instance and the service.
  8457. RsaPublicKey *string `type:"string"`
  8458. // The instances public RSA key fingerprint.
  8459. RsaPublicKeyFingerprint *string `type:"string"`
  8460. // The ID of the stack that the instance is to be registered with.
  8461. //
  8462. // StackId is a required field
  8463. StackId *string `type:"string" required:"true"`
  8464. }
  8465. // String returns the string representation
  8466. func (s RegisterInstanceInput) String() string {
  8467. return awsutil.Prettify(s)
  8468. }
  8469. // GoString returns the string representation
  8470. func (s RegisterInstanceInput) GoString() string {
  8471. return s.String()
  8472. }
  8473. // Validate inspects the fields of the type to determine if they are valid.
  8474. func (s *RegisterInstanceInput) Validate() error {
  8475. invalidParams := request.ErrInvalidParams{Context: "RegisterInstanceInput"}
  8476. if s.StackId == nil {
  8477. invalidParams.Add(request.NewErrParamRequired("StackId"))
  8478. }
  8479. if invalidParams.Len() > 0 {
  8480. return invalidParams
  8481. }
  8482. return nil
  8483. }
  8484. // Contains the response to a RegisterInstanceResult request.
  8485. type RegisterInstanceOutput struct {
  8486. _ struct{} `type:"structure"`
  8487. // The registered instance's AWS OpsWorks ID.
  8488. InstanceId *string `type:"string"`
  8489. }
  8490. // String returns the string representation
  8491. func (s RegisterInstanceOutput) String() string {
  8492. return awsutil.Prettify(s)
  8493. }
  8494. // GoString returns the string representation
  8495. func (s RegisterInstanceOutput) GoString() string {
  8496. return s.String()
  8497. }
  8498. type RegisterRdsDbInstanceInput struct {
  8499. _ struct{} `type:"structure"`
  8500. // The database password.
  8501. //
  8502. // DbPassword is a required field
  8503. DbPassword *string `type:"string" required:"true"`
  8504. // The database's master user name.
  8505. //
  8506. // DbUser is a required field
  8507. DbUser *string `type:"string" required:"true"`
  8508. // The Amazon RDS instance's ARN.
  8509. //
  8510. // RdsDbInstanceArn is a required field
  8511. RdsDbInstanceArn *string `type:"string" required:"true"`
  8512. // The stack ID.
  8513. //
  8514. // StackId is a required field
  8515. StackId *string `type:"string" required:"true"`
  8516. }
  8517. // String returns the string representation
  8518. func (s RegisterRdsDbInstanceInput) String() string {
  8519. return awsutil.Prettify(s)
  8520. }
  8521. // GoString returns the string representation
  8522. func (s RegisterRdsDbInstanceInput) GoString() string {
  8523. return s.String()
  8524. }
  8525. // Validate inspects the fields of the type to determine if they are valid.
  8526. func (s *RegisterRdsDbInstanceInput) Validate() error {
  8527. invalidParams := request.ErrInvalidParams{Context: "RegisterRdsDbInstanceInput"}
  8528. if s.DbPassword == nil {
  8529. invalidParams.Add(request.NewErrParamRequired("DbPassword"))
  8530. }
  8531. if s.DbUser == nil {
  8532. invalidParams.Add(request.NewErrParamRequired("DbUser"))
  8533. }
  8534. if s.RdsDbInstanceArn == nil {
  8535. invalidParams.Add(request.NewErrParamRequired("RdsDbInstanceArn"))
  8536. }
  8537. if s.StackId == nil {
  8538. invalidParams.Add(request.NewErrParamRequired("StackId"))
  8539. }
  8540. if invalidParams.Len() > 0 {
  8541. return invalidParams
  8542. }
  8543. return nil
  8544. }
  8545. type RegisterRdsDbInstanceOutput struct {
  8546. _ struct{} `type:"structure"`
  8547. }
  8548. // String returns the string representation
  8549. func (s RegisterRdsDbInstanceOutput) String() string {
  8550. return awsutil.Prettify(s)
  8551. }
  8552. // GoString returns the string representation
  8553. func (s RegisterRdsDbInstanceOutput) GoString() string {
  8554. return s.String()
  8555. }
  8556. type RegisterVolumeInput struct {
  8557. _ struct{} `type:"structure"`
  8558. // The Amazon EBS volume ID.
  8559. Ec2VolumeId *string `type:"string"`
  8560. // The stack ID.
  8561. //
  8562. // StackId is a required field
  8563. StackId *string `type:"string" required:"true"`
  8564. }
  8565. // String returns the string representation
  8566. func (s RegisterVolumeInput) String() string {
  8567. return awsutil.Prettify(s)
  8568. }
  8569. // GoString returns the string representation
  8570. func (s RegisterVolumeInput) GoString() string {
  8571. return s.String()
  8572. }
  8573. // Validate inspects the fields of the type to determine if they are valid.
  8574. func (s *RegisterVolumeInput) Validate() error {
  8575. invalidParams := request.ErrInvalidParams{Context: "RegisterVolumeInput"}
  8576. if s.StackId == nil {
  8577. invalidParams.Add(request.NewErrParamRequired("StackId"))
  8578. }
  8579. if invalidParams.Len() > 0 {
  8580. return invalidParams
  8581. }
  8582. return nil
  8583. }
  8584. // Contains the response to a RegisterVolume request.
  8585. type RegisterVolumeOutput struct {
  8586. _ struct{} `type:"structure"`
  8587. // The volume ID.
  8588. VolumeId *string `type:"string"`
  8589. }
  8590. // String returns the string representation
  8591. func (s RegisterVolumeOutput) String() string {
  8592. return awsutil.Prettify(s)
  8593. }
  8594. // GoString returns the string representation
  8595. func (s RegisterVolumeOutput) GoString() string {
  8596. return s.String()
  8597. }
  8598. // A registered instance's reported operating system.
  8599. type ReportedOs struct {
  8600. _ struct{} `type:"structure"`
  8601. // The operating system family.
  8602. Family *string `type:"string"`
  8603. // The operating system name.
  8604. Name *string `type:"string"`
  8605. // The operating system version.
  8606. Version *string `type:"string"`
  8607. }
  8608. // String returns the string representation
  8609. func (s ReportedOs) String() string {
  8610. return awsutil.Prettify(s)
  8611. }
  8612. // GoString returns the string representation
  8613. func (s ReportedOs) GoString() string {
  8614. return s.String()
  8615. }
  8616. // Describes a user's SSH information.
  8617. type SelfUserProfile struct {
  8618. _ struct{} `type:"structure"`
  8619. // The user's IAM ARN.
  8620. IamUserArn *string `type:"string"`
  8621. // The user's name.
  8622. Name *string `type:"string"`
  8623. // The user's SSH public key.
  8624. SshPublicKey *string `type:"string"`
  8625. // The user's SSH user name.
  8626. SshUsername *string `type:"string"`
  8627. }
  8628. // String returns the string representation
  8629. func (s SelfUserProfile) String() string {
  8630. return awsutil.Prettify(s)
  8631. }
  8632. // GoString returns the string representation
  8633. func (s SelfUserProfile) GoString() string {
  8634. return s.String()
  8635. }
  8636. // Describes an AWS OpsWorks service error.
  8637. type ServiceError struct {
  8638. _ struct{} `type:"structure"`
  8639. // When the error occurred.
  8640. CreatedAt *string `type:"string"`
  8641. // The instance ID.
  8642. InstanceId *string `type:"string"`
  8643. // A message that describes the error.
  8644. Message *string `type:"string"`
  8645. // The error ID.
  8646. ServiceErrorId *string `type:"string"`
  8647. // The stack ID.
  8648. StackId *string `type:"string"`
  8649. // The error type.
  8650. Type *string `type:"string"`
  8651. }
  8652. // String returns the string representation
  8653. func (s ServiceError) String() string {
  8654. return awsutil.Prettify(s)
  8655. }
  8656. // GoString returns the string representation
  8657. func (s ServiceError) GoString() string {
  8658. return s.String()
  8659. }
  8660. type SetLoadBasedAutoScalingInput struct {
  8661. _ struct{} `type:"structure"`
  8662. // An AutoScalingThresholds object with the downscaling threshold configuration.
  8663. // If the load falls below these thresholds for a specified amount of time,
  8664. // AWS OpsWorks stops a specified number of instances.
  8665. DownScaling *AutoScalingThresholds `type:"structure"`
  8666. // Enables load-based auto scaling for the layer.
  8667. Enable *bool `type:"boolean"`
  8668. // The layer ID.
  8669. //
  8670. // LayerId is a required field
  8671. LayerId *string `type:"string" required:"true"`
  8672. // An AutoScalingThresholds object with the upscaling threshold configuration.
  8673. // If the load exceeds these thresholds for a specified amount of time, AWS
  8674. // OpsWorks starts a specified number of instances.
  8675. UpScaling *AutoScalingThresholds `type:"structure"`
  8676. }
  8677. // String returns the string representation
  8678. func (s SetLoadBasedAutoScalingInput) String() string {
  8679. return awsutil.Prettify(s)
  8680. }
  8681. // GoString returns the string representation
  8682. func (s SetLoadBasedAutoScalingInput) GoString() string {
  8683. return s.String()
  8684. }
  8685. // Validate inspects the fields of the type to determine if they are valid.
  8686. func (s *SetLoadBasedAutoScalingInput) Validate() error {
  8687. invalidParams := request.ErrInvalidParams{Context: "SetLoadBasedAutoScalingInput"}
  8688. if s.LayerId == nil {
  8689. invalidParams.Add(request.NewErrParamRequired("LayerId"))
  8690. }
  8691. if s.DownScaling != nil {
  8692. if err := s.DownScaling.Validate(); err != nil {
  8693. invalidParams.AddNested("DownScaling", err.(request.ErrInvalidParams))
  8694. }
  8695. }
  8696. if s.UpScaling != nil {
  8697. if err := s.UpScaling.Validate(); err != nil {
  8698. invalidParams.AddNested("UpScaling", err.(request.ErrInvalidParams))
  8699. }
  8700. }
  8701. if invalidParams.Len() > 0 {
  8702. return invalidParams
  8703. }
  8704. return nil
  8705. }
  8706. type SetLoadBasedAutoScalingOutput struct {
  8707. _ struct{} `type:"structure"`
  8708. }
  8709. // String returns the string representation
  8710. func (s SetLoadBasedAutoScalingOutput) String() string {
  8711. return awsutil.Prettify(s)
  8712. }
  8713. // GoString returns the string representation
  8714. func (s SetLoadBasedAutoScalingOutput) GoString() string {
  8715. return s.String()
  8716. }
  8717. type SetPermissionInput struct {
  8718. _ struct{} `type:"structure"`
  8719. // The user is allowed to use SSH to communicate with the instance.
  8720. AllowSsh *bool `type:"boolean"`
  8721. // The user is allowed to use sudo to elevate privileges.
  8722. AllowSudo *bool `type:"boolean"`
  8723. // The user's IAM ARN. This can also be a federated user's ARN.
  8724. //
  8725. // IamUserArn is a required field
  8726. IamUserArn *string `type:"string" required:"true"`
  8727. // The user's permission level, which must be set to one of the following strings.
  8728. // You cannot set your own permissions level.
  8729. //
  8730. // * deny
  8731. //
  8732. // * show
  8733. //
  8734. // * deploy
  8735. //
  8736. // * manage
  8737. //
  8738. // * iam_only
  8739. //
  8740. // For more information on the permissions associated with these levels, see
  8741. // Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  8742. Level *string `type:"string"`
  8743. // The stack ID.
  8744. //
  8745. // StackId is a required field
  8746. StackId *string `type:"string" required:"true"`
  8747. }
  8748. // String returns the string representation
  8749. func (s SetPermissionInput) String() string {
  8750. return awsutil.Prettify(s)
  8751. }
  8752. // GoString returns the string representation
  8753. func (s SetPermissionInput) GoString() string {
  8754. return s.String()
  8755. }
  8756. // Validate inspects the fields of the type to determine if they are valid.
  8757. func (s *SetPermissionInput) Validate() error {
  8758. invalidParams := request.ErrInvalidParams{Context: "SetPermissionInput"}
  8759. if s.IamUserArn == nil {
  8760. invalidParams.Add(request.NewErrParamRequired("IamUserArn"))
  8761. }
  8762. if s.StackId == nil {
  8763. invalidParams.Add(request.NewErrParamRequired("StackId"))
  8764. }
  8765. if invalidParams.Len() > 0 {
  8766. return invalidParams
  8767. }
  8768. return nil
  8769. }
  8770. type SetPermissionOutput struct {
  8771. _ struct{} `type:"structure"`
  8772. }
  8773. // String returns the string representation
  8774. func (s SetPermissionOutput) String() string {
  8775. return awsutil.Prettify(s)
  8776. }
  8777. // GoString returns the string representation
  8778. func (s SetPermissionOutput) GoString() string {
  8779. return s.String()
  8780. }
  8781. type SetTimeBasedAutoScalingInput struct {
  8782. _ struct{} `type:"structure"`
  8783. // An AutoScalingSchedule with the instance schedule.
  8784. AutoScalingSchedule *WeeklyAutoScalingSchedule `type:"structure"`
  8785. // The instance ID.
  8786. //
  8787. // InstanceId is a required field
  8788. InstanceId *string `type:"string" required:"true"`
  8789. }
  8790. // String returns the string representation
  8791. func (s SetTimeBasedAutoScalingInput) String() string {
  8792. return awsutil.Prettify(s)
  8793. }
  8794. // GoString returns the string representation
  8795. func (s SetTimeBasedAutoScalingInput) GoString() string {
  8796. return s.String()
  8797. }
  8798. // Validate inspects the fields of the type to determine if they are valid.
  8799. func (s *SetTimeBasedAutoScalingInput) Validate() error {
  8800. invalidParams := request.ErrInvalidParams{Context: "SetTimeBasedAutoScalingInput"}
  8801. if s.InstanceId == nil {
  8802. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  8803. }
  8804. if invalidParams.Len() > 0 {
  8805. return invalidParams
  8806. }
  8807. return nil
  8808. }
  8809. type SetTimeBasedAutoScalingOutput struct {
  8810. _ struct{} `type:"structure"`
  8811. }
  8812. // String returns the string representation
  8813. func (s SetTimeBasedAutoScalingOutput) String() string {
  8814. return awsutil.Prettify(s)
  8815. }
  8816. // GoString returns the string representation
  8817. func (s SetTimeBasedAutoScalingOutput) GoString() string {
  8818. return s.String()
  8819. }
  8820. // The Shutdown event configuration.
  8821. type ShutdownEventConfiguration struct {
  8822. _ struct{} `type:"structure"`
  8823. // Whether to enable Elastic Load Balancing connection draining. For more information,
  8824. // see Connection Draining (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#conn-drain)
  8825. DelayUntilElbConnectionsDrained *bool `type:"boolean"`
  8826. // The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown
  8827. // event before shutting down an instance.
  8828. ExecutionTimeout *int64 `type:"integer"`
  8829. }
  8830. // String returns the string representation
  8831. func (s ShutdownEventConfiguration) String() string {
  8832. return awsutil.Prettify(s)
  8833. }
  8834. // GoString returns the string representation
  8835. func (s ShutdownEventConfiguration) GoString() string {
  8836. return s.String()
  8837. }
  8838. // Contains the information required to retrieve an app or cookbook from a repository.
  8839. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  8840. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  8841. type Source struct {
  8842. _ struct{} `type:"structure"`
  8843. // When included in a request, the parameter depends on the repository type.
  8844. //
  8845. // * For Amazon S3 bundles, set Password to the appropriate IAM secret access
  8846. // key.
  8847. //
  8848. // * For HTTP bundles and Subversion repositories, set Password to the password.
  8849. //
  8850. // For more information on how to safely handle IAM credentials, see http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html
  8851. // (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html).
  8852. //
  8853. // In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual
  8854. // value.
  8855. Password *string `type:"string"`
  8856. // The application's version. AWS OpsWorks enables you to easily deploy new
  8857. // versions of an application. One of the simplest approaches is to have branches
  8858. // or revisions in your repository that represent different versions that can
  8859. // potentially be deployed.
  8860. Revision *string `type:"string"`
  8861. // In requests, the repository's SSH key.
  8862. //
  8863. // In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual
  8864. // value.
  8865. SshKey *string `type:"string"`
  8866. // The repository type.
  8867. Type *string `type:"string" enum:"SourceType"`
  8868. // The source URL.
  8869. Url *string `type:"string"`
  8870. // This parameter depends on the repository type.
  8871. //
  8872. // * For Amazon S3 bundles, set Username to the appropriate IAM access key
  8873. // ID.
  8874. //
  8875. // * For HTTP bundles, Git repositories, and Subversion repositories, set
  8876. // Username to the user name.
  8877. Username *string `type:"string"`
  8878. }
  8879. // String returns the string representation
  8880. func (s Source) String() string {
  8881. return awsutil.Prettify(s)
  8882. }
  8883. // GoString returns the string representation
  8884. func (s Source) GoString() string {
  8885. return s.String()
  8886. }
  8887. // Describes an app's SSL configuration.
  8888. type SslConfiguration struct {
  8889. _ struct{} `type:"structure"`
  8890. // The contents of the certificate's domain.crt file.
  8891. //
  8892. // Certificate is a required field
  8893. Certificate *string `type:"string" required:"true"`
  8894. // Optional. Can be used to specify an intermediate certificate authority key
  8895. // or client authentication.
  8896. Chain *string `type:"string"`
  8897. // The private key; the contents of the certificate's domain.kex file.
  8898. //
  8899. // PrivateKey is a required field
  8900. PrivateKey *string `type:"string" required:"true"`
  8901. }
  8902. // String returns the string representation
  8903. func (s SslConfiguration) String() string {
  8904. return awsutil.Prettify(s)
  8905. }
  8906. // GoString returns the string representation
  8907. func (s SslConfiguration) GoString() string {
  8908. return s.String()
  8909. }
  8910. // Validate inspects the fields of the type to determine if they are valid.
  8911. func (s *SslConfiguration) Validate() error {
  8912. invalidParams := request.ErrInvalidParams{Context: "SslConfiguration"}
  8913. if s.Certificate == nil {
  8914. invalidParams.Add(request.NewErrParamRequired("Certificate"))
  8915. }
  8916. if s.PrivateKey == nil {
  8917. invalidParams.Add(request.NewErrParamRequired("PrivateKey"))
  8918. }
  8919. if invalidParams.Len() > 0 {
  8920. return invalidParams
  8921. }
  8922. return nil
  8923. }
  8924. // Describes a stack.
  8925. type Stack struct {
  8926. _ struct{} `type:"structure"`
  8927. // The agent version. This parameter is set to LATEST for auto-update. or a
  8928. // version number for a fixed agent version.
  8929. AgentVersion *string `type:"string"`
  8930. // The stack's ARN.
  8931. Arn *string `type:"string"`
  8932. // The stack's attributes.
  8933. Attributes map[string]*string `type:"map"`
  8934. // A ChefConfiguration object that specifies whether to enable Berkshelf and
  8935. // the Berkshelf version. For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  8936. ChefConfiguration *ChefConfiguration `type:"structure"`
  8937. // The configuration manager.
  8938. ConfigurationManager *StackConfigurationManager `type:"structure"`
  8939. // The date when the stack was created.
  8940. CreatedAt *string `type:"string"`
  8941. // Contains the information required to retrieve an app or cookbook from a repository.
  8942. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  8943. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  8944. CustomCookbooksSource *Source `type:"structure"`
  8945. // A JSON object that contains user-defined attributes to be added to the stack
  8946. // configuration and deployment attributes. You can use custom JSON to override
  8947. // the corresponding default stack configuration attribute values or to pass
  8948. // data to recipes. The string should be in the following format:
  8949. //
  8950. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  8951. //
  8952. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  8953. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  8954. CustomJson *string `type:"string"`
  8955. // The stack's default Availability Zone. For more information, see Regions
  8956. // and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  8957. DefaultAvailabilityZone *string `type:"string"`
  8958. // The ARN of an IAM profile that is the default profile for all of the stack's
  8959. // EC2 instances. For more information about IAM ARNs, see Using Identifiers
  8960. // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  8961. DefaultInstanceProfileArn *string `type:"string"`
  8962. // The stack's default operating system.
  8963. DefaultOs *string `type:"string"`
  8964. // The default root device type. This value is used by default for all instances
  8965. // in the stack, but you can override it when you create an instance. For more
  8966. // information, see Storage for the Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  8967. DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`
  8968. // A default Amazon EC2 key pair for the stack's instances. You can override
  8969. // this value when you create or update an instance.
  8970. DefaultSshKeyName *string `type:"string"`
  8971. // The default subnet ID; applicable only if the stack is running in a VPC.
  8972. DefaultSubnetId *string `type:"string"`
  8973. // The stack host name theme, with spaces replaced by underscores.
  8974. HostnameTheme *string `type:"string"`
  8975. // The stack name.
  8976. Name *string `type:"string"`
  8977. // The stack AWS region, such as "ap-northeast-2". For more information about
  8978. // AWS regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  8979. Region *string `type:"string"`
  8980. // The stack AWS Identity and Access Management (IAM) role.
  8981. ServiceRoleArn *string `type:"string"`
  8982. // The stack ID.
  8983. StackId *string `type:"string"`
  8984. // Whether the stack uses custom cookbooks.
  8985. UseCustomCookbooks *bool `type:"boolean"`
  8986. // Whether the stack automatically associates the AWS OpsWorks built-in security
  8987. // groups with the stack's layers.
  8988. UseOpsworksSecurityGroups *bool `type:"boolean"`
  8989. // The VPC ID; applicable only if the stack is running in a VPC.
  8990. VpcId *string `type:"string"`
  8991. }
  8992. // String returns the string representation
  8993. func (s Stack) String() string {
  8994. return awsutil.Prettify(s)
  8995. }
  8996. // GoString returns the string representation
  8997. func (s Stack) GoString() string {
  8998. return s.String()
  8999. }
  9000. // Describes the configuration manager.
  9001. type StackConfigurationManager struct {
  9002. _ struct{} `type:"structure"`
  9003. // The name. This parameter must be set to "Chef".
  9004. Name *string `type:"string"`
  9005. // The Chef version. This parameter must be set to 12, 11.10, or 11.4 for Linux
  9006. // stacks, and to 12.2 for Windows stacks. The default value for Linux stacks
  9007. // is 11.4.
  9008. Version *string `type:"string"`
  9009. }
  9010. // String returns the string representation
  9011. func (s StackConfigurationManager) String() string {
  9012. return awsutil.Prettify(s)
  9013. }
  9014. // GoString returns the string representation
  9015. func (s StackConfigurationManager) GoString() string {
  9016. return s.String()
  9017. }
  9018. // Summarizes the number of layers, instances, and apps in a stack.
  9019. type StackSummary struct {
  9020. _ struct{} `type:"structure"`
  9021. // The number of apps.
  9022. AppsCount *int64 `type:"integer"`
  9023. // The stack's ARN.
  9024. Arn *string `type:"string"`
  9025. // An InstancesCount object with the number of instances in each status.
  9026. InstancesCount *InstancesCount `type:"structure"`
  9027. // The number of layers.
  9028. LayersCount *int64 `type:"integer"`
  9029. // The stack name.
  9030. Name *string `type:"string"`
  9031. // The stack ID.
  9032. StackId *string `type:"string"`
  9033. }
  9034. // String returns the string representation
  9035. func (s StackSummary) String() string {
  9036. return awsutil.Prettify(s)
  9037. }
  9038. // GoString returns the string representation
  9039. func (s StackSummary) GoString() string {
  9040. return s.String()
  9041. }
  9042. type StartInstanceInput struct {
  9043. _ struct{} `type:"structure"`
  9044. // The instance ID.
  9045. //
  9046. // InstanceId is a required field
  9047. InstanceId *string `type:"string" required:"true"`
  9048. }
  9049. // String returns the string representation
  9050. func (s StartInstanceInput) String() string {
  9051. return awsutil.Prettify(s)
  9052. }
  9053. // GoString returns the string representation
  9054. func (s StartInstanceInput) GoString() string {
  9055. return s.String()
  9056. }
  9057. // Validate inspects the fields of the type to determine if they are valid.
  9058. func (s *StartInstanceInput) Validate() error {
  9059. invalidParams := request.ErrInvalidParams{Context: "StartInstanceInput"}
  9060. if s.InstanceId == nil {
  9061. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  9062. }
  9063. if invalidParams.Len() > 0 {
  9064. return invalidParams
  9065. }
  9066. return nil
  9067. }
  9068. type StartInstanceOutput struct {
  9069. _ struct{} `type:"structure"`
  9070. }
  9071. // String returns the string representation
  9072. func (s StartInstanceOutput) String() string {
  9073. return awsutil.Prettify(s)
  9074. }
  9075. // GoString returns the string representation
  9076. func (s StartInstanceOutput) GoString() string {
  9077. return s.String()
  9078. }
  9079. type StartStackInput struct {
  9080. _ struct{} `type:"structure"`
  9081. // The stack ID.
  9082. //
  9083. // StackId is a required field
  9084. StackId *string `type:"string" required:"true"`
  9085. }
  9086. // String returns the string representation
  9087. func (s StartStackInput) String() string {
  9088. return awsutil.Prettify(s)
  9089. }
  9090. // GoString returns the string representation
  9091. func (s StartStackInput) GoString() string {
  9092. return s.String()
  9093. }
  9094. // Validate inspects the fields of the type to determine if they are valid.
  9095. func (s *StartStackInput) Validate() error {
  9096. invalidParams := request.ErrInvalidParams{Context: "StartStackInput"}
  9097. if s.StackId == nil {
  9098. invalidParams.Add(request.NewErrParamRequired("StackId"))
  9099. }
  9100. if invalidParams.Len() > 0 {
  9101. return invalidParams
  9102. }
  9103. return nil
  9104. }
  9105. type StartStackOutput struct {
  9106. _ struct{} `type:"structure"`
  9107. }
  9108. // String returns the string representation
  9109. func (s StartStackOutput) String() string {
  9110. return awsutil.Prettify(s)
  9111. }
  9112. // GoString returns the string representation
  9113. func (s StartStackOutput) GoString() string {
  9114. return s.String()
  9115. }
  9116. type StopInstanceInput struct {
  9117. _ struct{} `type:"structure"`
  9118. // The instance ID.
  9119. //
  9120. // InstanceId is a required field
  9121. InstanceId *string `type:"string" required:"true"`
  9122. }
  9123. // String returns the string representation
  9124. func (s StopInstanceInput) String() string {
  9125. return awsutil.Prettify(s)
  9126. }
  9127. // GoString returns the string representation
  9128. func (s StopInstanceInput) GoString() string {
  9129. return s.String()
  9130. }
  9131. // Validate inspects the fields of the type to determine if they are valid.
  9132. func (s *StopInstanceInput) Validate() error {
  9133. invalidParams := request.ErrInvalidParams{Context: "StopInstanceInput"}
  9134. if s.InstanceId == nil {
  9135. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  9136. }
  9137. if invalidParams.Len() > 0 {
  9138. return invalidParams
  9139. }
  9140. return nil
  9141. }
  9142. type StopInstanceOutput struct {
  9143. _ struct{} `type:"structure"`
  9144. }
  9145. // String returns the string representation
  9146. func (s StopInstanceOutput) String() string {
  9147. return awsutil.Prettify(s)
  9148. }
  9149. // GoString returns the string representation
  9150. func (s StopInstanceOutput) GoString() string {
  9151. return s.String()
  9152. }
  9153. type StopStackInput struct {
  9154. _ struct{} `type:"structure"`
  9155. // The stack ID.
  9156. //
  9157. // StackId is a required field
  9158. StackId *string `type:"string" required:"true"`
  9159. }
  9160. // String returns the string representation
  9161. func (s StopStackInput) String() string {
  9162. return awsutil.Prettify(s)
  9163. }
  9164. // GoString returns the string representation
  9165. func (s StopStackInput) GoString() string {
  9166. return s.String()
  9167. }
  9168. // Validate inspects the fields of the type to determine if they are valid.
  9169. func (s *StopStackInput) Validate() error {
  9170. invalidParams := request.ErrInvalidParams{Context: "StopStackInput"}
  9171. if s.StackId == nil {
  9172. invalidParams.Add(request.NewErrParamRequired("StackId"))
  9173. }
  9174. if invalidParams.Len() > 0 {
  9175. return invalidParams
  9176. }
  9177. return nil
  9178. }
  9179. type StopStackOutput struct {
  9180. _ struct{} `type:"structure"`
  9181. }
  9182. // String returns the string representation
  9183. func (s StopStackOutput) String() string {
  9184. return awsutil.Prettify(s)
  9185. }
  9186. // GoString returns the string representation
  9187. func (s StopStackOutput) GoString() string {
  9188. return s.String()
  9189. }
  9190. // Contains the data needed by RDP clients such as the Microsoft Remote Desktop
  9191. // Connection to log in to the instance.
  9192. type TemporaryCredential struct {
  9193. _ struct{} `type:"structure"`
  9194. // The instance's AWS OpsWorks ID.
  9195. InstanceId *string `type:"string"`
  9196. // The password.
  9197. Password *string `type:"string"`
  9198. // The user name.
  9199. Username *string `type:"string"`
  9200. // The length of time (in minutes) that the grant is valid. When the grant expires,
  9201. // at the end of this period, the user will no longer be able to use the credentials
  9202. // to log in. If they are logged in at the time, they will be automatically
  9203. // logged out.
  9204. ValidForInMinutes *int64 `type:"integer"`
  9205. }
  9206. // String returns the string representation
  9207. func (s TemporaryCredential) String() string {
  9208. return awsutil.Prettify(s)
  9209. }
  9210. // GoString returns the string representation
  9211. func (s TemporaryCredential) GoString() string {
  9212. return s.String()
  9213. }
  9214. // Describes an instance's time-based auto scaling configuration.
  9215. type TimeBasedAutoScalingConfiguration struct {
  9216. _ struct{} `type:"structure"`
  9217. // A WeeklyAutoScalingSchedule object with the instance schedule.
  9218. AutoScalingSchedule *WeeklyAutoScalingSchedule `type:"structure"`
  9219. // The instance ID.
  9220. InstanceId *string `type:"string"`
  9221. }
  9222. // String returns the string representation
  9223. func (s TimeBasedAutoScalingConfiguration) String() string {
  9224. return awsutil.Prettify(s)
  9225. }
  9226. // GoString returns the string representation
  9227. func (s TimeBasedAutoScalingConfiguration) GoString() string {
  9228. return s.String()
  9229. }
  9230. type UnassignInstanceInput struct {
  9231. _ struct{} `type:"structure"`
  9232. // The instance ID.
  9233. //
  9234. // InstanceId is a required field
  9235. InstanceId *string `type:"string" required:"true"`
  9236. }
  9237. // String returns the string representation
  9238. func (s UnassignInstanceInput) String() string {
  9239. return awsutil.Prettify(s)
  9240. }
  9241. // GoString returns the string representation
  9242. func (s UnassignInstanceInput) GoString() string {
  9243. return s.String()
  9244. }
  9245. // Validate inspects the fields of the type to determine if they are valid.
  9246. func (s *UnassignInstanceInput) Validate() error {
  9247. invalidParams := request.ErrInvalidParams{Context: "UnassignInstanceInput"}
  9248. if s.InstanceId == nil {
  9249. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  9250. }
  9251. if invalidParams.Len() > 0 {
  9252. return invalidParams
  9253. }
  9254. return nil
  9255. }
  9256. type UnassignInstanceOutput struct {
  9257. _ struct{} `type:"structure"`
  9258. }
  9259. // String returns the string representation
  9260. func (s UnassignInstanceOutput) String() string {
  9261. return awsutil.Prettify(s)
  9262. }
  9263. // GoString returns the string representation
  9264. func (s UnassignInstanceOutput) GoString() string {
  9265. return s.String()
  9266. }
  9267. type UnassignVolumeInput struct {
  9268. _ struct{} `type:"structure"`
  9269. // The volume ID.
  9270. //
  9271. // VolumeId is a required field
  9272. VolumeId *string `type:"string" required:"true"`
  9273. }
  9274. // String returns the string representation
  9275. func (s UnassignVolumeInput) String() string {
  9276. return awsutil.Prettify(s)
  9277. }
  9278. // GoString returns the string representation
  9279. func (s UnassignVolumeInput) GoString() string {
  9280. return s.String()
  9281. }
  9282. // Validate inspects the fields of the type to determine if they are valid.
  9283. func (s *UnassignVolumeInput) Validate() error {
  9284. invalidParams := request.ErrInvalidParams{Context: "UnassignVolumeInput"}
  9285. if s.VolumeId == nil {
  9286. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  9287. }
  9288. if invalidParams.Len() > 0 {
  9289. return invalidParams
  9290. }
  9291. return nil
  9292. }
  9293. type UnassignVolumeOutput struct {
  9294. _ struct{} `type:"structure"`
  9295. }
  9296. // String returns the string representation
  9297. func (s UnassignVolumeOutput) String() string {
  9298. return awsutil.Prettify(s)
  9299. }
  9300. // GoString returns the string representation
  9301. func (s UnassignVolumeOutput) GoString() string {
  9302. return s.String()
  9303. }
  9304. type UpdateAppInput struct {
  9305. _ struct{} `type:"structure"`
  9306. // The app ID.
  9307. //
  9308. // AppId is a required field
  9309. AppId *string `type:"string" required:"true"`
  9310. // A Source object that specifies the app repository.
  9311. AppSource *Source `type:"structure"`
  9312. // One or more user-defined key/value pairs to be added to the stack attributes.
  9313. Attributes map[string]*string `type:"map"`
  9314. // The app's data sources.
  9315. DataSources []*DataSource `type:"list"`
  9316. // A description of the app.
  9317. Description *string `type:"string"`
  9318. // The app's virtual host settings, with multiple domains separated by commas.
  9319. // For example: 'www.example.com, example.com'
  9320. Domains []*string `type:"list"`
  9321. // Whether SSL is enabled for the app.
  9322. EnableSsl *bool `type:"boolean"`
  9323. // An array of EnvironmentVariable objects that specify environment variables
  9324. // to be associated with the app. After you deploy the app, these variables
  9325. // are defined on the associated app server instances.For more information,
  9326. // see Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).
  9327. //
  9328. // There is no specific limit on the number of environment variables. However,
  9329. // the size of the associated data structure - which includes the variables'
  9330. // names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes).
  9331. // This limit should accommodate most if not all use cases. Exceeding it will
  9332. // cause an exception with the message, "Environment: is too large (maximum
  9333. // is 10KB)."
  9334. //
  9335. // This parameter is supported only by Chef 11.10 stacks. If you have specified
  9336. // one or more environment variables, you cannot modify the stack's Chef version.
  9337. Environment []*EnvironmentVariable `type:"list"`
  9338. // The app name.
  9339. Name *string `type:"string"`
  9340. // An SslConfiguration object with the SSL configuration.
  9341. SslConfiguration *SslConfiguration `type:"structure"`
  9342. // The app type.
  9343. Type *string `type:"string" enum:"AppType"`
  9344. }
  9345. // String returns the string representation
  9346. func (s UpdateAppInput) String() string {
  9347. return awsutil.Prettify(s)
  9348. }
  9349. // GoString returns the string representation
  9350. func (s UpdateAppInput) GoString() string {
  9351. return s.String()
  9352. }
  9353. // Validate inspects the fields of the type to determine if they are valid.
  9354. func (s *UpdateAppInput) Validate() error {
  9355. invalidParams := request.ErrInvalidParams{Context: "UpdateAppInput"}
  9356. if s.AppId == nil {
  9357. invalidParams.Add(request.NewErrParamRequired("AppId"))
  9358. }
  9359. if s.Environment != nil {
  9360. for i, v := range s.Environment {
  9361. if v == nil {
  9362. continue
  9363. }
  9364. if err := v.Validate(); err != nil {
  9365. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Environment", i), err.(request.ErrInvalidParams))
  9366. }
  9367. }
  9368. }
  9369. if s.SslConfiguration != nil {
  9370. if err := s.SslConfiguration.Validate(); err != nil {
  9371. invalidParams.AddNested("SslConfiguration", err.(request.ErrInvalidParams))
  9372. }
  9373. }
  9374. if invalidParams.Len() > 0 {
  9375. return invalidParams
  9376. }
  9377. return nil
  9378. }
  9379. type UpdateAppOutput struct {
  9380. _ struct{} `type:"structure"`
  9381. }
  9382. // String returns the string representation
  9383. func (s UpdateAppOutput) String() string {
  9384. return awsutil.Prettify(s)
  9385. }
  9386. // GoString returns the string representation
  9387. func (s UpdateAppOutput) GoString() string {
  9388. return s.String()
  9389. }
  9390. type UpdateElasticIpInput struct {
  9391. _ struct{} `type:"structure"`
  9392. // The address.
  9393. //
  9394. // ElasticIp is a required field
  9395. ElasticIp *string `type:"string" required:"true"`
  9396. // The new name.
  9397. Name *string `type:"string"`
  9398. }
  9399. // String returns the string representation
  9400. func (s UpdateElasticIpInput) String() string {
  9401. return awsutil.Prettify(s)
  9402. }
  9403. // GoString returns the string representation
  9404. func (s UpdateElasticIpInput) GoString() string {
  9405. return s.String()
  9406. }
  9407. // Validate inspects the fields of the type to determine if they are valid.
  9408. func (s *UpdateElasticIpInput) Validate() error {
  9409. invalidParams := request.ErrInvalidParams{Context: "UpdateElasticIpInput"}
  9410. if s.ElasticIp == nil {
  9411. invalidParams.Add(request.NewErrParamRequired("ElasticIp"))
  9412. }
  9413. if invalidParams.Len() > 0 {
  9414. return invalidParams
  9415. }
  9416. return nil
  9417. }
  9418. type UpdateElasticIpOutput struct {
  9419. _ struct{} `type:"structure"`
  9420. }
  9421. // String returns the string representation
  9422. func (s UpdateElasticIpOutput) String() string {
  9423. return awsutil.Prettify(s)
  9424. }
  9425. // GoString returns the string representation
  9426. func (s UpdateElasticIpOutput) GoString() string {
  9427. return s.String()
  9428. }
  9429. type UpdateInstanceInput struct {
  9430. _ struct{} `type:"structure"`
  9431. // The default AWS OpsWorks agent version. You have the following options:
  9432. //
  9433. // * INHERIT - Use the stack's default agent version setting.
  9434. //
  9435. // * version_number - Use the specified agent version. This value overrides
  9436. // the stack's default setting. To update the agent version, you must edit
  9437. // the instance configuration and specify a new version. AWS OpsWorks then
  9438. // automatically installs that version on the instance.
  9439. //
  9440. // The default setting is INHERIT. To specify an agent version, you must use
  9441. // the complete version number, not the abbreviated number shown on the console.
  9442. // For a list of available agent version numbers, call DescribeAgentVersions.
  9443. AgentVersion *string `type:"string"`
  9444. // The ID of the AMI that was used to create the instance. The value of this
  9445. // parameter must be the same AMI ID that the instance is already using. You
  9446. // cannot apply a new AMI to an instance by running UpdateInstance. UpdateInstance
  9447. // does not work on instances that are using custom AMIs.
  9448. AmiId *string `type:"string"`
  9449. // The instance architecture. Instance types do not necessarily support both
  9450. // architectures. For a list of the architectures that are supported by the
  9451. // different instance types, see Instance Families and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  9452. Architecture *string `type:"string" enum:"Architecture"`
  9453. // For load-based or time-based instances, the type. Windows stacks can use
  9454. // only time-based instances.
  9455. AutoScalingType *string `type:"string" enum:"AutoScalingType"`
  9456. // This property cannot be updated.
  9457. EbsOptimized *bool `type:"boolean"`
  9458. // The instance host name.
  9459. Hostname *string `type:"string"`
  9460. // Whether to install operating system and package updates when the instance
  9461. // boots. The default value is true. To control when updates are installed,
  9462. // set this value to false. You must then update your instances manually by
  9463. // using CreateDeployment to run the update_dependencies stack command or by
  9464. // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
  9465. //
  9466. // We strongly recommend using the default value of true, to ensure that your
  9467. // instances have the latest security updates.
  9468. InstallUpdatesOnBoot *bool `type:"boolean"`
  9469. // The instance ID.
  9470. //
  9471. // InstanceId is a required field
  9472. InstanceId *string `type:"string" required:"true"`
  9473. // The instance type, such as t2.micro. For a list of supported instance types,
  9474. // open the stack in the console, choose Instances, and choose + Instance. The
  9475. // Size list contains the currently supported types. For more information, see
  9476. // Instance Families and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  9477. // The parameter values that you use to specify the various types are in the
  9478. // API Name column of the Available Instance Types table.
  9479. InstanceType *string `type:"string"`
  9480. // The instance's layer IDs.
  9481. LayerIds []*string `type:"list"`
  9482. // The instance's operating system, which must be set to one of the following.
  9483. // You cannot update an instance that is using a custom AMI.
  9484. //
  9485. // * A supported Linux operating system: An Amazon Linux version, such as
  9486. // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
  9487. //
  9488. // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
  9489. // 14.04 LTS, or Ubuntu 12.04 LTS.
  9490. //
  9491. // * CentOS 7
  9492. //
  9493. // * Red Hat Enterprise Linux 7
  9494. //
  9495. // * A supported Windows operating system, such as Microsoft Windows Server
  9496. // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express,
  9497. // Microsoft Windows Server 2012 R2 with SQL Server Standard, or Microsoft
  9498. // Windows Server 2012 R2 with SQL Server Web.
  9499. //
  9500. // For more information on the supported operating systems, see AWS OpsWorks
  9501. // Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  9502. //
  9503. // The default option is the current Amazon Linux version. If you set this parameter
  9504. // to Custom, you must use the AmiId parameter to specify the custom AMI that
  9505. // you want to use. For more information on the supported operating systems,
  9506. // see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  9507. // For more information on how to use custom AMIs with OpsWorks, see Using Custom
  9508. // AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  9509. //
  9510. // You can specify a different Linux operating system for the updated stack,
  9511. // but you cannot change from Linux to Windows or Windows to Linux.
  9512. Os *string `type:"string"`
  9513. // The instance's Amazon EC2 key name.
  9514. SshKeyName *string `type:"string"`
  9515. }
  9516. // String returns the string representation
  9517. func (s UpdateInstanceInput) String() string {
  9518. return awsutil.Prettify(s)
  9519. }
  9520. // GoString returns the string representation
  9521. func (s UpdateInstanceInput) GoString() string {
  9522. return s.String()
  9523. }
  9524. // Validate inspects the fields of the type to determine if they are valid.
  9525. func (s *UpdateInstanceInput) Validate() error {
  9526. invalidParams := request.ErrInvalidParams{Context: "UpdateInstanceInput"}
  9527. if s.InstanceId == nil {
  9528. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  9529. }
  9530. if invalidParams.Len() > 0 {
  9531. return invalidParams
  9532. }
  9533. return nil
  9534. }
  9535. type UpdateInstanceOutput struct {
  9536. _ struct{} `type:"structure"`
  9537. }
  9538. // String returns the string representation
  9539. func (s UpdateInstanceOutput) String() string {
  9540. return awsutil.Prettify(s)
  9541. }
  9542. // GoString returns the string representation
  9543. func (s UpdateInstanceOutput) GoString() string {
  9544. return s.String()
  9545. }
  9546. type UpdateLayerInput struct {
  9547. _ struct{} `type:"structure"`
  9548. // One or more user-defined key/value pairs to be added to the stack attributes.
  9549. Attributes map[string]*string `type:"map"`
  9550. // Whether to automatically assign an Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  9551. // 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).
  9552. AutoAssignElasticIps *bool `type:"boolean"`
  9553. // For stacks that are running in a VPC, whether to automatically assign a public
  9554. // IP address to the layer's instances. For more information, see How to Edit
  9555. // a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
  9556. AutoAssignPublicIps *bool `type:"boolean"`
  9557. // The ARN of an IAM profile to be used for all of the layer's EC2 instances.
  9558. // For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  9559. CustomInstanceProfileArn *string `type:"string"`
  9560. // A JSON-formatted string containing custom stack configuration and deployment
  9561. // attributes to be installed on the layer's instances. For more information,
  9562. // see Using Custom JSON (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json-override.html).
  9563. CustomJson *string `type:"string"`
  9564. // A LayerCustomRecipes object that specifies the layer's custom recipes.
  9565. CustomRecipes *Recipes `type:"structure"`
  9566. // An array containing the layer's custom security group IDs.
  9567. CustomSecurityGroupIds []*string `type:"list"`
  9568. // Whether to disable auto healing for the layer.
  9569. EnableAutoHealing *bool `type:"boolean"`
  9570. // Whether to install operating system and package updates when the instance
  9571. // boots. The default value is true. To control when updates are installed,
  9572. // set this value to false. You must then update your instances manually by
  9573. // using CreateDeployment to run the update_dependencies stack command or manually
  9574. // running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
  9575. //
  9576. // We strongly recommend using the default value of true, to ensure that your
  9577. // instances have the latest security updates.
  9578. InstallUpdatesOnBoot *bool `type:"boolean"`
  9579. // The layer ID.
  9580. //
  9581. // LayerId is a required field
  9582. LayerId *string `type:"string" required:"true"`
  9583. LifecycleEventConfiguration *LifecycleEventConfiguration `type:"structure"`
  9584. // The layer name, which is used by the console.
  9585. Name *string `type:"string"`
  9586. // An array of Package objects that describe the layer's packages.
  9587. Packages []*string `type:"list"`
  9588. // For custom layers only, use this parameter to specify the layer's short name,
  9589. // which is used internally by AWS OpsWorksand by Chef. The short name is also
  9590. // used as the name for the directory where your app files are installed. It
  9591. // can have a maximum of 200 characters and must be in the following format:
  9592. // /\A[a-z0-9\-\_\.]+\Z/.
  9593. //
  9594. // The built-in layers' short names are defined by AWS OpsWorks. For more information,
  9595. // see the Layer Reference (http://docs.aws.amazon.com/opsworks/latest/userguide/layers.html)
  9596. Shortname *string `type:"string"`
  9597. // Whether to use Amazon EBS-optimized instances.
  9598. UseEbsOptimizedInstances *bool `type:"boolean"`
  9599. // A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
  9600. VolumeConfigurations []*VolumeConfiguration `type:"list"`
  9601. }
  9602. // String returns the string representation
  9603. func (s UpdateLayerInput) String() string {
  9604. return awsutil.Prettify(s)
  9605. }
  9606. // GoString returns the string representation
  9607. func (s UpdateLayerInput) GoString() string {
  9608. return s.String()
  9609. }
  9610. // Validate inspects the fields of the type to determine if they are valid.
  9611. func (s *UpdateLayerInput) Validate() error {
  9612. invalidParams := request.ErrInvalidParams{Context: "UpdateLayerInput"}
  9613. if s.LayerId == nil {
  9614. invalidParams.Add(request.NewErrParamRequired("LayerId"))
  9615. }
  9616. if s.VolumeConfigurations != nil {
  9617. for i, v := range s.VolumeConfigurations {
  9618. if v == nil {
  9619. continue
  9620. }
  9621. if err := v.Validate(); err != nil {
  9622. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VolumeConfigurations", i), err.(request.ErrInvalidParams))
  9623. }
  9624. }
  9625. }
  9626. if invalidParams.Len() > 0 {
  9627. return invalidParams
  9628. }
  9629. return nil
  9630. }
  9631. type UpdateLayerOutput struct {
  9632. _ struct{} `type:"structure"`
  9633. }
  9634. // String returns the string representation
  9635. func (s UpdateLayerOutput) String() string {
  9636. return awsutil.Prettify(s)
  9637. }
  9638. // GoString returns the string representation
  9639. func (s UpdateLayerOutput) GoString() string {
  9640. return s.String()
  9641. }
  9642. type UpdateMyUserProfileInput struct {
  9643. _ struct{} `type:"structure"`
  9644. // The user's SSH public key.
  9645. SshPublicKey *string `type:"string"`
  9646. }
  9647. // String returns the string representation
  9648. func (s UpdateMyUserProfileInput) String() string {
  9649. return awsutil.Prettify(s)
  9650. }
  9651. // GoString returns the string representation
  9652. func (s UpdateMyUserProfileInput) GoString() string {
  9653. return s.String()
  9654. }
  9655. type UpdateMyUserProfileOutput struct {
  9656. _ struct{} `type:"structure"`
  9657. }
  9658. // String returns the string representation
  9659. func (s UpdateMyUserProfileOutput) String() string {
  9660. return awsutil.Prettify(s)
  9661. }
  9662. // GoString returns the string representation
  9663. func (s UpdateMyUserProfileOutput) GoString() string {
  9664. return s.String()
  9665. }
  9666. type UpdateRdsDbInstanceInput struct {
  9667. _ struct{} `type:"structure"`
  9668. // The database password.
  9669. DbPassword *string `type:"string"`
  9670. // The master user name.
  9671. DbUser *string `type:"string"`
  9672. // The Amazon RDS instance's ARN.
  9673. //
  9674. // RdsDbInstanceArn is a required field
  9675. RdsDbInstanceArn *string `type:"string" required:"true"`
  9676. }
  9677. // String returns the string representation
  9678. func (s UpdateRdsDbInstanceInput) String() string {
  9679. return awsutil.Prettify(s)
  9680. }
  9681. // GoString returns the string representation
  9682. func (s UpdateRdsDbInstanceInput) GoString() string {
  9683. return s.String()
  9684. }
  9685. // Validate inspects the fields of the type to determine if they are valid.
  9686. func (s *UpdateRdsDbInstanceInput) Validate() error {
  9687. invalidParams := request.ErrInvalidParams{Context: "UpdateRdsDbInstanceInput"}
  9688. if s.RdsDbInstanceArn == nil {
  9689. invalidParams.Add(request.NewErrParamRequired("RdsDbInstanceArn"))
  9690. }
  9691. if invalidParams.Len() > 0 {
  9692. return invalidParams
  9693. }
  9694. return nil
  9695. }
  9696. type UpdateRdsDbInstanceOutput struct {
  9697. _ struct{} `type:"structure"`
  9698. }
  9699. // String returns the string representation
  9700. func (s UpdateRdsDbInstanceOutput) String() string {
  9701. return awsutil.Prettify(s)
  9702. }
  9703. // GoString returns the string representation
  9704. func (s UpdateRdsDbInstanceOutput) GoString() string {
  9705. return s.String()
  9706. }
  9707. type UpdateStackInput struct {
  9708. _ struct{} `type:"structure"`
  9709. // The default AWS OpsWorks agent version. You have the following options:
  9710. //
  9711. // * Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically
  9712. // installs new agent versions on the stack's instances as soon as they are
  9713. // available.
  9714. //
  9715. // * Fixed version - Set this parameter to your preferred agent version.
  9716. // To update the agent version, you must edit the stack configuration and
  9717. // specify a new version. AWS OpsWorks then automatically installs that version
  9718. // on the stack's instances.
  9719. //
  9720. // The default setting is LATEST. To specify an agent version, you must use
  9721. // the complete version number, not the abbreviated number shown on the console.
  9722. // For a list of available agent version numbers, call DescribeAgentVersions.
  9723. //
  9724. // You can also specify an agent version when you create or update an instance,
  9725. // which overrides the stack's default setting.
  9726. AgentVersion *string `type:"string"`
  9727. // One or more user-defined key-value pairs to be added to the stack attributes.
  9728. Attributes map[string]*string `type:"map"`
  9729. // A ChefConfiguration object that specifies whether to enable Berkshelf and
  9730. // the Berkshelf version on Chef 11.10 stacks. For more information, see Create
  9731. // a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  9732. ChefConfiguration *ChefConfiguration `type:"structure"`
  9733. // The configuration manager. When you update a stack, we recommend that you
  9734. // use the configuration manager to specify the Chef version: 12, 11.10, or
  9735. // 11.4 for Linux stacks, or 12.2 for Windows stacks. The default value for
  9736. // Linux stacks is currently 11.4.
  9737. ConfigurationManager *StackConfigurationManager `type:"structure"`
  9738. // Contains the information required to retrieve an app or cookbook from a repository.
  9739. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  9740. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  9741. CustomCookbooksSource *Source `type:"structure"`
  9742. // A string that contains user-defined, custom JSON. It can be used to override
  9743. // the corresponding default stack configuration JSON values or to pass data
  9744. // to recipes. The string should be in the following format:
  9745. //
  9746. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  9747. //
  9748. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  9749. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  9750. CustomJson *string `type:"string"`
  9751. // The stack's default Availability Zone, which must be in the stack's region.
  9752. // For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  9753. // If you also specify a value for DefaultSubnetId, the subnet must be in the
  9754. // same zone. For more information, see CreateStack.
  9755. DefaultAvailabilityZone *string `type:"string"`
  9756. // The ARN of an IAM profile that is the default profile for all of the stack's
  9757. // EC2 instances. For more information about IAM ARNs, see Using Identifiers
  9758. // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  9759. DefaultInstanceProfileArn *string `type:"string"`
  9760. // The stack's operating system, which must be set to one of the following:
  9761. //
  9762. // * A supported Linux operating system: An Amazon Linux version, such as
  9763. // Amazon Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
  9764. //
  9765. // * A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
  9766. // 14.04 LTS, or Ubuntu 12.04 LTS.
  9767. //
  9768. // * CentOS 7
  9769. //
  9770. // * Red Hat Enterprise Linux 7
  9771. //
  9772. // * A supported Windows operating system, such as Microsoft Windows Server
  9773. // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express,
  9774. // Microsoft Windows Server 2012 R2 with SQL Server Standard, or Microsoft
  9775. // Windows Server 2012 R2 with SQL Server Web.
  9776. //
  9777. // * A custom AMI: Custom. You specify the custom AMI you want to use when
  9778. // you create instances. For more information on how to use custom AMIs with
  9779. // OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  9780. //
  9781. // The default option is the stack's current operating system. For more information
  9782. // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  9783. DefaultOs *string `type:"string"`
  9784. // The default root device type. This value is used by default for all instances
  9785. // in the stack, but you can override it when you create an instance. For more
  9786. // information, see Storage for the Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  9787. DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`
  9788. // A default Amazon EC2 key-pair name. The default value is none. If you specify
  9789. // a key-pair name, AWS OpsWorks installs the public key on the instance and
  9790. // you can use the private key with an SSH client to log in to the instance.
  9791. // For more information, see Using SSH to Communicate with an Instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html)
  9792. // and Managing SSH Access (http://docs.aws.amazon.com/opsworks/latest/userguide/security-ssh-access.html).
  9793. // You can override this setting by specifying a different key pair, or no key
  9794. // pair, when you create an instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
  9795. DefaultSshKeyName *string `type:"string"`
  9796. // The stack's default VPC subnet ID. This parameter is required if you specify
  9797. // a value for the VpcId parameter. All instances are launched into this subnet
  9798. // unless you specify otherwise when you create the instance. If you also specify
  9799. // a value for DefaultAvailabilityZone, the subnet must be in that zone. For
  9800. // information on default values and when this parameter is required, see the
  9801. // VpcId parameter description.
  9802. DefaultSubnetId *string `type:"string"`
  9803. // The stack's new host name theme, with spaces replaced by underscores. The
  9804. // theme is used to generate host names for the stack's instances. By default,
  9805. // HostnameTheme is set to Layer_Dependent, which creates host names by appending
  9806. // integers to the layer's short name. The other themes are:
  9807. //
  9808. // * Baked_Goods
  9809. //
  9810. // * Clouds
  9811. //
  9812. // * Europe_Cities
  9813. //
  9814. // * Fruits
  9815. //
  9816. // * Greek_Deities
  9817. //
  9818. // * Legendary_creatures_from_Japan
  9819. //
  9820. // * Planets_and_Moons
  9821. //
  9822. // * Roman_Deities
  9823. //
  9824. // * Scottish_Islands
  9825. //
  9826. // * US_Cities
  9827. //
  9828. // * Wild_Cats
  9829. //
  9830. // To obtain a generated host name, call GetHostNameSuggestion, which returns
  9831. // a host name based on the current theme.
  9832. HostnameTheme *string `type:"string"`
  9833. // The stack's new name.
  9834. Name *string `type:"string"`
  9835. // Do not use this parameter. You cannot update a stack's service role.
  9836. ServiceRoleArn *string `type:"string"`
  9837. // The stack ID.
  9838. //
  9839. // StackId is a required field
  9840. StackId *string `type:"string" required:"true"`
  9841. // Whether the stack uses custom cookbooks.
  9842. UseCustomCookbooks *bool `type:"boolean"`
  9843. // Whether to associate the AWS OpsWorks built-in security groups with the stack's
  9844. // layers.
  9845. //
  9846. // AWS OpsWorks provides a standard set of built-in security groups, one for
  9847. // each layer, which are associated with layers by default. UseOpsworksSecurityGroups
  9848. // allows you to provide your own custom security groups instead of using the
  9849. // built-in groups. UseOpsworksSecurityGroups has the following settings:
  9850. //
  9851. // * True - AWS OpsWorks automatically associates the appropriate built-in
  9852. // security group with each layer (default setting). You can associate additional
  9853. // security groups with a layer after you create it, but you cannot delete
  9854. // the built-in security group.
  9855. //
  9856. // * False - AWS OpsWorks does not associate built-in security groups with
  9857. // layers. You must create appropriate EC2 security groups and associate
  9858. // a security group with each layer that you create. However, you can still
  9859. // manually associate a built-in security group with a layer on. Custom security
  9860. // groups are required only for those layers that need custom settings.
  9861. //
  9862. // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  9863. UseOpsworksSecurityGroups *bool `type:"boolean"`
  9864. }
  9865. // String returns the string representation
  9866. func (s UpdateStackInput) String() string {
  9867. return awsutil.Prettify(s)
  9868. }
  9869. // GoString returns the string representation
  9870. func (s UpdateStackInput) GoString() string {
  9871. return s.String()
  9872. }
  9873. // Validate inspects the fields of the type to determine if they are valid.
  9874. func (s *UpdateStackInput) Validate() error {
  9875. invalidParams := request.ErrInvalidParams{Context: "UpdateStackInput"}
  9876. if s.StackId == nil {
  9877. invalidParams.Add(request.NewErrParamRequired("StackId"))
  9878. }
  9879. if invalidParams.Len() > 0 {
  9880. return invalidParams
  9881. }
  9882. return nil
  9883. }
  9884. type UpdateStackOutput struct {
  9885. _ struct{} `type:"structure"`
  9886. }
  9887. // String returns the string representation
  9888. func (s UpdateStackOutput) String() string {
  9889. return awsutil.Prettify(s)
  9890. }
  9891. // GoString returns the string representation
  9892. func (s UpdateStackOutput) GoString() string {
  9893. return s.String()
  9894. }
  9895. type UpdateUserProfileInput struct {
  9896. _ struct{} `type:"structure"`
  9897. // Whether users can specify their own SSH public key through the My Settings
  9898. // page. For more information, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).
  9899. AllowSelfManagement *bool `type:"boolean"`
  9900. // The user IAM ARN. This can also be a federated user's ARN.
  9901. //
  9902. // IamUserArn is a required field
  9903. IamUserArn *string `type:"string" required:"true"`
  9904. // The user's new SSH public key.
  9905. SshPublicKey *string `type:"string"`
  9906. // The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9],
  9907. // '-', and '_'. If the specified name includes other punctuation marks, AWS
  9908. // OpsWorks removes them. For example, my.name will be changed to myname. If
  9909. // you do not specify an SSH user name, AWS OpsWorks generates one from the
  9910. // IAM user name.
  9911. SshUsername *string `type:"string"`
  9912. }
  9913. // String returns the string representation
  9914. func (s UpdateUserProfileInput) String() string {
  9915. return awsutil.Prettify(s)
  9916. }
  9917. // GoString returns the string representation
  9918. func (s UpdateUserProfileInput) GoString() string {
  9919. return s.String()
  9920. }
  9921. // Validate inspects the fields of the type to determine if they are valid.
  9922. func (s *UpdateUserProfileInput) Validate() error {
  9923. invalidParams := request.ErrInvalidParams{Context: "UpdateUserProfileInput"}
  9924. if s.IamUserArn == nil {
  9925. invalidParams.Add(request.NewErrParamRequired("IamUserArn"))
  9926. }
  9927. if invalidParams.Len() > 0 {
  9928. return invalidParams
  9929. }
  9930. return nil
  9931. }
  9932. type UpdateUserProfileOutput struct {
  9933. _ struct{} `type:"structure"`
  9934. }
  9935. // String returns the string representation
  9936. func (s UpdateUserProfileOutput) String() string {
  9937. return awsutil.Prettify(s)
  9938. }
  9939. // GoString returns the string representation
  9940. func (s UpdateUserProfileOutput) GoString() string {
  9941. return s.String()
  9942. }
  9943. type UpdateVolumeInput struct {
  9944. _ struct{} `type:"structure"`
  9945. // The new mount point.
  9946. MountPoint *string `type:"string"`
  9947. // The new name.
  9948. Name *string `type:"string"`
  9949. // The volume ID.
  9950. //
  9951. // VolumeId is a required field
  9952. VolumeId *string `type:"string" required:"true"`
  9953. }
  9954. // String returns the string representation
  9955. func (s UpdateVolumeInput) String() string {
  9956. return awsutil.Prettify(s)
  9957. }
  9958. // GoString returns the string representation
  9959. func (s UpdateVolumeInput) GoString() string {
  9960. return s.String()
  9961. }
  9962. // Validate inspects the fields of the type to determine if they are valid.
  9963. func (s *UpdateVolumeInput) Validate() error {
  9964. invalidParams := request.ErrInvalidParams{Context: "UpdateVolumeInput"}
  9965. if s.VolumeId == nil {
  9966. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  9967. }
  9968. if invalidParams.Len() > 0 {
  9969. return invalidParams
  9970. }
  9971. return nil
  9972. }
  9973. type UpdateVolumeOutput struct {
  9974. _ struct{} `type:"structure"`
  9975. }
  9976. // String returns the string representation
  9977. func (s UpdateVolumeOutput) String() string {
  9978. return awsutil.Prettify(s)
  9979. }
  9980. // GoString returns the string representation
  9981. func (s UpdateVolumeOutput) GoString() string {
  9982. return s.String()
  9983. }
  9984. // Describes a user's SSH information.
  9985. type UserProfile struct {
  9986. _ struct{} `type:"structure"`
  9987. // Whether users can specify their own SSH public key through the My Settings
  9988. // page. For more information, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).
  9989. AllowSelfManagement *bool `type:"boolean"`
  9990. // The user's IAM ARN.
  9991. IamUserArn *string `type:"string"`
  9992. // The user's name.
  9993. Name *string `type:"string"`
  9994. // The user's SSH public key.
  9995. SshPublicKey *string `type:"string"`
  9996. // The user's SSH user name.
  9997. SshUsername *string `type:"string"`
  9998. }
  9999. // String returns the string representation
  10000. func (s UserProfile) String() string {
  10001. return awsutil.Prettify(s)
  10002. }
  10003. // GoString returns the string representation
  10004. func (s UserProfile) GoString() string {
  10005. return s.String()
  10006. }
  10007. // Describes an instance's Amazon EBS volume.
  10008. type Volume struct {
  10009. _ struct{} `type:"structure"`
  10010. // The volume Availability Zone. For more information, see Regions and Endpoints
  10011. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  10012. AvailabilityZone *string `type:"string"`
  10013. // The device name.
  10014. Device *string `type:"string"`
  10015. // The Amazon EC2 volume ID.
  10016. Ec2VolumeId *string `type:"string"`
  10017. // The instance ID.
  10018. InstanceId *string `type:"string"`
  10019. // For PIOPS volumes, the IOPS per disk.
  10020. Iops *int64 `type:"integer"`
  10021. // The volume mount point. For example, "/mnt/disk1".
  10022. MountPoint *string `type:"string"`
  10023. // The volume name.
  10024. Name *string `type:"string"`
  10025. // The RAID array ID.
  10026. RaidArrayId *string `type:"string"`
  10027. // The AWS region. For more information about AWS regions, see Regions and Endpoints
  10028. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  10029. Region *string `type:"string"`
  10030. // The volume size.
  10031. Size *int64 `type:"integer"`
  10032. // The value returned by DescribeVolumes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeVolumes.html).
  10033. Status *string `type:"string"`
  10034. // The volume ID.
  10035. VolumeId *string `type:"string"`
  10036. // The volume type, standard or PIOPS.
  10037. VolumeType *string `type:"string"`
  10038. }
  10039. // String returns the string representation
  10040. func (s Volume) String() string {
  10041. return awsutil.Prettify(s)
  10042. }
  10043. // GoString returns the string representation
  10044. func (s Volume) GoString() string {
  10045. return s.String()
  10046. }
  10047. // Describes an Amazon EBS volume configuration.
  10048. type VolumeConfiguration struct {
  10049. _ struct{} `type:"structure"`
  10050. // For PIOPS volumes, the IOPS per disk.
  10051. Iops *int64 `type:"integer"`
  10052. // The volume mount point. For example "/dev/sdh".
  10053. //
  10054. // MountPoint is a required field
  10055. MountPoint *string `type:"string" required:"true"`
  10056. // The number of disks in the volume.
  10057. //
  10058. // NumberOfDisks is a required field
  10059. NumberOfDisks *int64 `type:"integer" required:"true"`
  10060. // The volume RAID level (http://en.wikipedia.org/wiki/Standard_RAID_levels).
  10061. RaidLevel *int64 `type:"integer"`
  10062. // The volume size.
  10063. //
  10064. // Size is a required field
  10065. Size *int64 `type:"integer" required:"true"`
  10066. // The volume type:
  10067. //
  10068. // * standard - Magnetic
  10069. //
  10070. // * io1 - Provisioned IOPS (SSD)
  10071. //
  10072. // * gp2 - General Purpose (SSD)
  10073. VolumeType *string `type:"string"`
  10074. }
  10075. // String returns the string representation
  10076. func (s VolumeConfiguration) String() string {
  10077. return awsutil.Prettify(s)
  10078. }
  10079. // GoString returns the string representation
  10080. func (s VolumeConfiguration) GoString() string {
  10081. return s.String()
  10082. }
  10083. // Validate inspects the fields of the type to determine if they are valid.
  10084. func (s *VolumeConfiguration) Validate() error {
  10085. invalidParams := request.ErrInvalidParams{Context: "VolumeConfiguration"}
  10086. if s.MountPoint == nil {
  10087. invalidParams.Add(request.NewErrParamRequired("MountPoint"))
  10088. }
  10089. if s.NumberOfDisks == nil {
  10090. invalidParams.Add(request.NewErrParamRequired("NumberOfDisks"))
  10091. }
  10092. if s.Size == nil {
  10093. invalidParams.Add(request.NewErrParamRequired("Size"))
  10094. }
  10095. if invalidParams.Len() > 0 {
  10096. return invalidParams
  10097. }
  10098. return nil
  10099. }
  10100. // Describes a time-based instance's auto scaling schedule. The schedule consists
  10101. // of a set of key-value pairs.
  10102. //
  10103. // * The key is the time period (a UTC hour) and must be an integer from
  10104. // 0 - 23.
  10105. //
  10106. // * The value indicates whether the instance should be online or offline
  10107. // for the specified period, and must be set to "on" or "off"
  10108. //
  10109. // The default setting for all time periods is off, so you use the following
  10110. // parameters primarily to specify the online periods. You don't have to explicitly
  10111. // specify offline periods unless you want to change an online period to an
  10112. // offline period.
  10113. //
  10114. // The following example specifies that the instance should be online for four
  10115. // hours, from UTC 1200 - 1600. It will be off for the remainder of the day.
  10116. //
  10117. // { "12":"on", "13":"on", "14":"on", "15":"on" }
  10118. type WeeklyAutoScalingSchedule struct {
  10119. _ struct{} `type:"structure"`
  10120. // The schedule for Friday.
  10121. Friday map[string]*string `type:"map"`
  10122. // The schedule for Monday.
  10123. Monday map[string]*string `type:"map"`
  10124. // The schedule for Saturday.
  10125. Saturday map[string]*string `type:"map"`
  10126. // The schedule for Sunday.
  10127. Sunday map[string]*string `type:"map"`
  10128. // The schedule for Thursday.
  10129. Thursday map[string]*string `type:"map"`
  10130. // The schedule for Tuesday.
  10131. Tuesday map[string]*string `type:"map"`
  10132. // The schedule for Wednesday.
  10133. Wednesday map[string]*string `type:"map"`
  10134. }
  10135. // String returns the string representation
  10136. func (s WeeklyAutoScalingSchedule) String() string {
  10137. return awsutil.Prettify(s)
  10138. }
  10139. // GoString returns the string representation
  10140. func (s WeeklyAutoScalingSchedule) GoString() string {
  10141. return s.String()
  10142. }
  10143. const (
  10144. // AppAttributesKeysDocumentRoot is a AppAttributesKeys enum value
  10145. AppAttributesKeysDocumentRoot = "DocumentRoot"
  10146. // AppAttributesKeysRailsEnv is a AppAttributesKeys enum value
  10147. AppAttributesKeysRailsEnv = "RailsEnv"
  10148. // AppAttributesKeysAutoBundleOnDeploy is a AppAttributesKeys enum value
  10149. AppAttributesKeysAutoBundleOnDeploy = "AutoBundleOnDeploy"
  10150. // AppAttributesKeysAwsFlowRubySettings is a AppAttributesKeys enum value
  10151. AppAttributesKeysAwsFlowRubySettings = "AwsFlowRubySettings"
  10152. )
  10153. const (
  10154. // AppTypeAwsFlowRuby is a AppType enum value
  10155. AppTypeAwsFlowRuby = "aws-flow-ruby"
  10156. // AppTypeJava is a AppType enum value
  10157. AppTypeJava = "java"
  10158. // AppTypeRails is a AppType enum value
  10159. AppTypeRails = "rails"
  10160. // AppTypePhp is a AppType enum value
  10161. AppTypePhp = "php"
  10162. // AppTypeNodejs is a AppType enum value
  10163. AppTypeNodejs = "nodejs"
  10164. // AppTypeStatic is a AppType enum value
  10165. AppTypeStatic = "static"
  10166. // AppTypeOther is a AppType enum value
  10167. AppTypeOther = "other"
  10168. )
  10169. const (
  10170. // ArchitectureX8664 is a Architecture enum value
  10171. ArchitectureX8664 = "x86_64"
  10172. // ArchitectureI386 is a Architecture enum value
  10173. ArchitectureI386 = "i386"
  10174. )
  10175. const (
  10176. // AutoScalingTypeLoad is a AutoScalingType enum value
  10177. AutoScalingTypeLoad = "load"
  10178. // AutoScalingTypeTimer is a AutoScalingType enum value
  10179. AutoScalingTypeTimer = "timer"
  10180. )
  10181. const (
  10182. // DeploymentCommandNameInstallDependencies is a DeploymentCommandName enum value
  10183. DeploymentCommandNameInstallDependencies = "install_dependencies"
  10184. // DeploymentCommandNameUpdateDependencies is a DeploymentCommandName enum value
  10185. DeploymentCommandNameUpdateDependencies = "update_dependencies"
  10186. // DeploymentCommandNameUpdateCustomCookbooks is a DeploymentCommandName enum value
  10187. DeploymentCommandNameUpdateCustomCookbooks = "update_custom_cookbooks"
  10188. // DeploymentCommandNameExecuteRecipes is a DeploymentCommandName enum value
  10189. DeploymentCommandNameExecuteRecipes = "execute_recipes"
  10190. // DeploymentCommandNameConfigure is a DeploymentCommandName enum value
  10191. DeploymentCommandNameConfigure = "configure"
  10192. // DeploymentCommandNameSetup is a DeploymentCommandName enum value
  10193. DeploymentCommandNameSetup = "setup"
  10194. // DeploymentCommandNameDeploy is a DeploymentCommandName enum value
  10195. DeploymentCommandNameDeploy = "deploy"
  10196. // DeploymentCommandNameRollback is a DeploymentCommandName enum value
  10197. DeploymentCommandNameRollback = "rollback"
  10198. // DeploymentCommandNameStart is a DeploymentCommandName enum value
  10199. DeploymentCommandNameStart = "start"
  10200. // DeploymentCommandNameStop is a DeploymentCommandName enum value
  10201. DeploymentCommandNameStop = "stop"
  10202. // DeploymentCommandNameRestart is a DeploymentCommandName enum value
  10203. DeploymentCommandNameRestart = "restart"
  10204. // DeploymentCommandNameUndeploy is a DeploymentCommandName enum value
  10205. DeploymentCommandNameUndeploy = "undeploy"
  10206. )
  10207. const (
  10208. // LayerAttributesKeysEcsClusterArn is a LayerAttributesKeys enum value
  10209. LayerAttributesKeysEcsClusterArn = "EcsClusterArn"
  10210. // LayerAttributesKeysEnableHaproxyStats is a LayerAttributesKeys enum value
  10211. LayerAttributesKeysEnableHaproxyStats = "EnableHaproxyStats"
  10212. // LayerAttributesKeysHaproxyStatsUrl is a LayerAttributesKeys enum value
  10213. LayerAttributesKeysHaproxyStatsUrl = "HaproxyStatsUrl"
  10214. // LayerAttributesKeysHaproxyStatsUser is a LayerAttributesKeys enum value
  10215. LayerAttributesKeysHaproxyStatsUser = "HaproxyStatsUser"
  10216. // LayerAttributesKeysHaproxyStatsPassword is a LayerAttributesKeys enum value
  10217. LayerAttributesKeysHaproxyStatsPassword = "HaproxyStatsPassword"
  10218. // LayerAttributesKeysHaproxyHealthCheckUrl is a LayerAttributesKeys enum value
  10219. LayerAttributesKeysHaproxyHealthCheckUrl = "HaproxyHealthCheckUrl"
  10220. // LayerAttributesKeysHaproxyHealthCheckMethod is a LayerAttributesKeys enum value
  10221. LayerAttributesKeysHaproxyHealthCheckMethod = "HaproxyHealthCheckMethod"
  10222. // LayerAttributesKeysMysqlRootPassword is a LayerAttributesKeys enum value
  10223. LayerAttributesKeysMysqlRootPassword = "MysqlRootPassword"
  10224. // LayerAttributesKeysMysqlRootPasswordUbiquitous is a LayerAttributesKeys enum value
  10225. LayerAttributesKeysMysqlRootPasswordUbiquitous = "MysqlRootPasswordUbiquitous"
  10226. // LayerAttributesKeysGangliaUrl is a LayerAttributesKeys enum value
  10227. LayerAttributesKeysGangliaUrl = "GangliaUrl"
  10228. // LayerAttributesKeysGangliaUser is a LayerAttributesKeys enum value
  10229. LayerAttributesKeysGangliaUser = "GangliaUser"
  10230. // LayerAttributesKeysGangliaPassword is a LayerAttributesKeys enum value
  10231. LayerAttributesKeysGangliaPassword = "GangliaPassword"
  10232. // LayerAttributesKeysMemcachedMemory is a LayerAttributesKeys enum value
  10233. LayerAttributesKeysMemcachedMemory = "MemcachedMemory"
  10234. // LayerAttributesKeysNodejsVersion is a LayerAttributesKeys enum value
  10235. LayerAttributesKeysNodejsVersion = "NodejsVersion"
  10236. // LayerAttributesKeysRubyVersion is a LayerAttributesKeys enum value
  10237. LayerAttributesKeysRubyVersion = "RubyVersion"
  10238. // LayerAttributesKeysRubygemsVersion is a LayerAttributesKeys enum value
  10239. LayerAttributesKeysRubygemsVersion = "RubygemsVersion"
  10240. // LayerAttributesKeysManageBundler is a LayerAttributesKeys enum value
  10241. LayerAttributesKeysManageBundler = "ManageBundler"
  10242. // LayerAttributesKeysBundlerVersion is a LayerAttributesKeys enum value
  10243. LayerAttributesKeysBundlerVersion = "BundlerVersion"
  10244. // LayerAttributesKeysRailsStack is a LayerAttributesKeys enum value
  10245. LayerAttributesKeysRailsStack = "RailsStack"
  10246. // LayerAttributesKeysPassengerVersion is a LayerAttributesKeys enum value
  10247. LayerAttributesKeysPassengerVersion = "PassengerVersion"
  10248. // LayerAttributesKeysJvm is a LayerAttributesKeys enum value
  10249. LayerAttributesKeysJvm = "Jvm"
  10250. // LayerAttributesKeysJvmVersion is a LayerAttributesKeys enum value
  10251. LayerAttributesKeysJvmVersion = "JvmVersion"
  10252. // LayerAttributesKeysJvmOptions is a LayerAttributesKeys enum value
  10253. LayerAttributesKeysJvmOptions = "JvmOptions"
  10254. // LayerAttributesKeysJavaAppServer is a LayerAttributesKeys enum value
  10255. LayerAttributesKeysJavaAppServer = "JavaAppServer"
  10256. // LayerAttributesKeysJavaAppServerVersion is a LayerAttributesKeys enum value
  10257. LayerAttributesKeysJavaAppServerVersion = "JavaAppServerVersion"
  10258. )
  10259. const (
  10260. // LayerTypeAwsFlowRuby is a LayerType enum value
  10261. LayerTypeAwsFlowRuby = "aws-flow-ruby"
  10262. // LayerTypeEcsCluster is a LayerType enum value
  10263. LayerTypeEcsCluster = "ecs-cluster"
  10264. // LayerTypeJavaApp is a LayerType enum value
  10265. LayerTypeJavaApp = "java-app"
  10266. // LayerTypeLb is a LayerType enum value
  10267. LayerTypeLb = "lb"
  10268. // LayerTypeWeb is a LayerType enum value
  10269. LayerTypeWeb = "web"
  10270. // LayerTypePhpApp is a LayerType enum value
  10271. LayerTypePhpApp = "php-app"
  10272. // LayerTypeRailsApp is a LayerType enum value
  10273. LayerTypeRailsApp = "rails-app"
  10274. // LayerTypeNodejsApp is a LayerType enum value
  10275. LayerTypeNodejsApp = "nodejs-app"
  10276. // LayerTypeMemcached is a LayerType enum value
  10277. LayerTypeMemcached = "memcached"
  10278. // LayerTypeDbMaster is a LayerType enum value
  10279. LayerTypeDbMaster = "db-master"
  10280. // LayerTypeMonitoringMaster is a LayerType enum value
  10281. LayerTypeMonitoringMaster = "monitoring-master"
  10282. // LayerTypeCustom is a LayerType enum value
  10283. LayerTypeCustom = "custom"
  10284. )
  10285. const (
  10286. // RootDeviceTypeEbs is a RootDeviceType enum value
  10287. RootDeviceTypeEbs = "ebs"
  10288. // RootDeviceTypeInstanceStore is a RootDeviceType enum value
  10289. RootDeviceTypeInstanceStore = "instance-store"
  10290. )
  10291. const (
  10292. // SourceTypeGit is a SourceType enum value
  10293. SourceTypeGit = "git"
  10294. // SourceTypeSvn is a SourceType enum value
  10295. SourceTypeSvn = "svn"
  10296. // SourceTypeArchive is a SourceType enum value
  10297. SourceTypeArchive = "archive"
  10298. // SourceTypeS3 is a SourceType enum value
  10299. SourceTypeS3 = "s3"
  10300. )
  10301. const (
  10302. // StackAttributesKeysColor is a StackAttributesKeys enum value
  10303. StackAttributesKeysColor = "Color"
  10304. )
  10305. const (
  10306. // VirtualizationTypeParavirtual is a VirtualizationType enum value
  10307. VirtualizationTypeParavirtual = "paravirtual"
  10308. // VirtualizationTypeHvm is a VirtualizationType enum value
  10309. VirtualizationTypeHvm = "hvm"
  10310. )
  10311. const (
  10312. // VolumeTypeGp2 is a VolumeType enum value
  10313. VolumeTypeGp2 = "gp2"
  10314. // VolumeTypeIo1 is a VolumeType enum value
  10315. VolumeTypeIo1 = "io1"
  10316. // VolumeTypeStandard is a VolumeType enum value
  10317. VolumeTypeStandard = "standard"
  10318. )