api.go 353 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469
  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. // Creating a request object using this method should be used when you want to inject
  18. // custom logic into the request's lifecycle using a custom handler, or if you want to
  19. // access properties on the request object before or after sending the request. If
  20. // you just want the service response, call the AssignInstance method directly
  21. // instead.
  22. //
  23. // Note: You must call the "Send" method on the returned request object in order
  24. // to execute the request.
  25. //
  26. // // Example sending a request using the AssignInstanceRequest method.
  27. // req, resp := client.AssignInstanceRequest(params)
  28. //
  29. // err := req.Send()
  30. // if err == nil { // resp is now filled
  31. // fmt.Println(resp)
  32. // }
  33. //
  34. func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *request.Request, output *AssignInstanceOutput) {
  35. op := &request.Operation{
  36. Name: opAssignInstance,
  37. HTTPMethod: "POST",
  38. HTTPPath: "/",
  39. }
  40. if input == nil {
  41. input = &AssignInstanceInput{}
  42. }
  43. req = c.newRequest(op, input, output)
  44. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  45. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  46. output = &AssignInstanceOutput{}
  47. req.Data = output
  48. return
  49. }
  50. // Assign a registered instance to a layer.
  51. //
  52. // You can assign registered on-premises instances to any layer type.
  53. //
  54. // You can assign registered Amazon EC2 instances only to custom layers.
  55. //
  56. // You cannot use this action with instances that were created with AWS OpsWorks.
  57. //
  58. // Required Permissions: To use this action, an AWS Identity and Access
  59. // Management (IAM) user must have a Manage permissions level for the stack
  60. // or an attached policy that explicitly grants permissions. For more information
  61. // on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  62. func (c *OpsWorks) AssignInstance(input *AssignInstanceInput) (*AssignInstanceOutput, error) {
  63. req, out := c.AssignInstanceRequest(input)
  64. err := req.Send()
  65. return out, err
  66. }
  67. const opAssignVolume = "AssignVolume"
  68. // AssignVolumeRequest generates a "aws/request.Request" representing the
  69. // client's request for the AssignVolume operation. The "output" return
  70. // value can be used to capture response data after the request's "Send" method
  71. // is called.
  72. //
  73. // Creating a request object using this method should be used when you want to inject
  74. // custom logic into the request's lifecycle using a custom handler, or if you want to
  75. // access properties on the request object before or after sending the request. If
  76. // you just want the service response, call the AssignVolume method directly
  77. // instead.
  78. //
  79. // Note: You must call the "Send" method on the returned request object in order
  80. // to execute the request.
  81. //
  82. // // Example sending a request using the AssignVolumeRequest method.
  83. // req, resp := client.AssignVolumeRequest(params)
  84. //
  85. // err := req.Send()
  86. // if err == nil { // resp is now filled
  87. // fmt.Println(resp)
  88. // }
  89. //
  90. func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.Request, output *AssignVolumeOutput) {
  91. op := &request.Operation{
  92. Name: opAssignVolume,
  93. HTTPMethod: "POST",
  94. HTTPPath: "/",
  95. }
  96. if input == nil {
  97. input = &AssignVolumeInput{}
  98. }
  99. req = c.newRequest(op, input, output)
  100. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  101. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  102. output = &AssignVolumeOutput{}
  103. req.Data = output
  104. return
  105. }
  106. // Assigns one of the stack's registered Amazon EBS volumes to a specified instance.
  107. // The volume must first be registered with the stack by calling RegisterVolume.
  108. // After you register the volume, you must call UpdateVolume to specify a mount
  109. // point before calling AssignVolume. For more information, see Resource Management
  110. // (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  111. //
  112. // Required Permissions: To use this action, an IAM user must have a Manage
  113. // permissions level for the stack, or an attached policy that explicitly grants
  114. // permissions. For more information on user permissions, see Managing User
  115. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  116. func (c *OpsWorks) AssignVolume(input *AssignVolumeInput) (*AssignVolumeOutput, error) {
  117. req, out := c.AssignVolumeRequest(input)
  118. err := req.Send()
  119. return out, err
  120. }
  121. const opAssociateElasticIp = "AssociateElasticIp"
  122. // AssociateElasticIpRequest generates a "aws/request.Request" representing the
  123. // client's request for the AssociateElasticIp operation. The "output" return
  124. // value can be used to capture response data after the request's "Send" method
  125. // is called.
  126. //
  127. // Creating a request object using this method should be used when you want to inject
  128. // custom logic into the request's lifecycle using a custom handler, or if you want to
  129. // access properties on the request object before or after sending the request. If
  130. // you just want the service response, call the AssociateElasticIp method directly
  131. // instead.
  132. //
  133. // Note: You must call the "Send" method on the returned request object in order
  134. // to execute the request.
  135. //
  136. // // Example sending a request using the AssociateElasticIpRequest method.
  137. // req, resp := client.AssociateElasticIpRequest(params)
  138. //
  139. // err := req.Send()
  140. // if err == nil { // resp is now filled
  141. // fmt.Println(resp)
  142. // }
  143. //
  144. func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (req *request.Request, output *AssociateElasticIpOutput) {
  145. op := &request.Operation{
  146. Name: opAssociateElasticIp,
  147. HTTPMethod: "POST",
  148. HTTPPath: "/",
  149. }
  150. if input == nil {
  151. input = &AssociateElasticIpInput{}
  152. }
  153. req = c.newRequest(op, input, output)
  154. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  155. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  156. output = &AssociateElasticIpOutput{}
  157. req.Data = output
  158. return
  159. }
  160. // Associates one of the stack's registered Elastic IP addresses with a specified
  161. // instance. The address must first be registered with the stack by calling
  162. // RegisterElasticIp. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  163. //
  164. // Required Permissions: To use this action, an IAM user must have a Manage
  165. // permissions level for the stack, or an attached policy that explicitly grants
  166. // permissions. For more information on user permissions, see Managing User
  167. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  168. func (c *OpsWorks) AssociateElasticIp(input *AssociateElasticIpInput) (*AssociateElasticIpOutput, error) {
  169. req, out := c.AssociateElasticIpRequest(input)
  170. err := req.Send()
  171. return out, err
  172. }
  173. const opAttachElasticLoadBalancer = "AttachElasticLoadBalancer"
  174. // AttachElasticLoadBalancerRequest generates a "aws/request.Request" representing the
  175. // client's request for the AttachElasticLoadBalancer operation. The "output" return
  176. // value can be used to capture response data after the request's "Send" method
  177. // is called.
  178. //
  179. // Creating a request object using this method should be used when you want to inject
  180. // custom logic into the request's lifecycle using a custom handler, or if you want to
  181. // access properties on the request object before or after sending the request. If
  182. // you just want the service response, call the AttachElasticLoadBalancer method directly
  183. // instead.
  184. //
  185. // Note: You must call the "Send" method on the returned request object in order
  186. // to execute the request.
  187. //
  188. // // Example sending a request using the AttachElasticLoadBalancerRequest method.
  189. // req, resp := client.AttachElasticLoadBalancerRequest(params)
  190. //
  191. // err := req.Send()
  192. // if err == nil { // resp is now filled
  193. // fmt.Println(resp)
  194. // }
  195. //
  196. func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBalancerInput) (req *request.Request, output *AttachElasticLoadBalancerOutput) {
  197. op := &request.Operation{
  198. Name: opAttachElasticLoadBalancer,
  199. HTTPMethod: "POST",
  200. HTTPPath: "/",
  201. }
  202. if input == nil {
  203. input = &AttachElasticLoadBalancerInput{}
  204. }
  205. req = c.newRequest(op, input, output)
  206. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  207. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  208. output = &AttachElasticLoadBalancerOutput{}
  209. req.Data = output
  210. return
  211. }
  212. // Attaches an Elastic Load Balancing load balancer to a specified layer. For
  213. // more information, see Elastic Load Balancing (http://docs.aws.amazon.com/opsworks/latest/userguide/load-balancer-elb.html).
  214. //
  215. // You must create the Elastic Load Balancing instance separately, by using
  216. // the Elastic Load Balancing console, API, or CLI. For more information, see
  217. // Elastic Load Balancing Developer Guide (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/Welcome.html).
  218. //
  219. // Required Permissions: To use this action, an IAM user must have a Manage
  220. // permissions level for the stack, or an attached policy that explicitly grants
  221. // permissions. For more information on user permissions, see Managing User
  222. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  223. func (c *OpsWorks) AttachElasticLoadBalancer(input *AttachElasticLoadBalancerInput) (*AttachElasticLoadBalancerOutput, error) {
  224. req, out := c.AttachElasticLoadBalancerRequest(input)
  225. err := req.Send()
  226. return out, err
  227. }
  228. const opCloneStack = "CloneStack"
  229. // CloneStackRequest generates a "aws/request.Request" representing the
  230. // client's request for the CloneStack operation. The "output" return
  231. // value can be used to capture response data after the request's "Send" method
  232. // is called.
  233. //
  234. // Creating a request object using this method should be used when you want to inject
  235. // custom logic into the request's lifecycle using a custom handler, or if you want to
  236. // access properties on the request object before or after sending the request. If
  237. // you just want the service response, call the CloneStack method directly
  238. // instead.
  239. //
  240. // Note: You must call the "Send" method on the returned request object in order
  241. // to execute the request.
  242. //
  243. // // Example sending a request using the CloneStackRequest method.
  244. // req, resp := client.CloneStackRequest(params)
  245. //
  246. // err := req.Send()
  247. // if err == nil { // resp is now filled
  248. // fmt.Println(resp)
  249. // }
  250. //
  251. func (c *OpsWorks) CloneStackRequest(input *CloneStackInput) (req *request.Request, output *CloneStackOutput) {
  252. op := &request.Operation{
  253. Name: opCloneStack,
  254. HTTPMethod: "POST",
  255. HTTPPath: "/",
  256. }
  257. if input == nil {
  258. input = &CloneStackInput{}
  259. }
  260. req = c.newRequest(op, input, output)
  261. output = &CloneStackOutput{}
  262. req.Data = output
  263. return
  264. }
  265. // Creates a clone of a specified stack. For more information, see Clone a Stack
  266. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-cloning.html).
  267. // By default, all parameters are set to the values used by the parent stack.
  268. //
  269. // Required Permissions: To use this action, an IAM user must have an attached
  270. // policy that explicitly grants permissions. For more information on user permissions,
  271. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  272. func (c *OpsWorks) CloneStack(input *CloneStackInput) (*CloneStackOutput, error) {
  273. req, out := c.CloneStackRequest(input)
  274. err := req.Send()
  275. return out, err
  276. }
  277. const opCreateApp = "CreateApp"
  278. // CreateAppRequest generates a "aws/request.Request" representing the
  279. // client's request for the CreateApp operation. The "output" return
  280. // value can be used to capture response data after the request's "Send" method
  281. // is called.
  282. //
  283. // Creating a request object using this method should be used when you want to inject
  284. // custom logic into the request's lifecycle using a custom handler, or if you want to
  285. // access properties on the request object before or after sending the request. If
  286. // you just want the service response, call the CreateApp method directly
  287. // instead.
  288. //
  289. // Note: You must call the "Send" method on the returned request object in order
  290. // to execute the request.
  291. //
  292. // // Example sending a request using the CreateAppRequest method.
  293. // req, resp := client.CreateAppRequest(params)
  294. //
  295. // err := req.Send()
  296. // if err == nil { // resp is now filled
  297. // fmt.Println(resp)
  298. // }
  299. //
  300. func (c *OpsWorks) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) {
  301. op := &request.Operation{
  302. Name: opCreateApp,
  303. HTTPMethod: "POST",
  304. HTTPPath: "/",
  305. }
  306. if input == nil {
  307. input = &CreateAppInput{}
  308. }
  309. req = c.newRequest(op, input, output)
  310. output = &CreateAppOutput{}
  311. req.Data = output
  312. return
  313. }
  314. // Creates an app for a specified stack. For more information, see Creating
  315. // Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html).
  316. //
  317. // Required Permissions: To use this action, an IAM user must have a Manage
  318. // permissions level for the stack, or an attached policy that explicitly grants
  319. // permissions. For more information on user permissions, see Managing User
  320. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  321. func (c *OpsWorks) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) {
  322. req, out := c.CreateAppRequest(input)
  323. err := req.Send()
  324. return out, err
  325. }
  326. const opCreateDeployment = "CreateDeployment"
  327. // CreateDeploymentRequest generates a "aws/request.Request" representing the
  328. // client's request for the CreateDeployment operation. The "output" return
  329. // value can be used to capture response data after the request's "Send" method
  330. // is called.
  331. //
  332. // Creating a request object using this method should be used when you want to inject
  333. // custom logic into the request's lifecycle using a custom handler, or if you want to
  334. // access properties on the request object before or after sending the request. If
  335. // you just want the service response, call the CreateDeployment method directly
  336. // instead.
  337. //
  338. // Note: You must call the "Send" method on the returned request object in order
  339. // to execute the request.
  340. //
  341. // // Example sending a request using the CreateDeploymentRequest method.
  342. // req, resp := client.CreateDeploymentRequest(params)
  343. //
  344. // err := req.Send()
  345. // if err == nil { // resp is now filled
  346. // fmt.Println(resp)
  347. // }
  348. //
  349. func (c *OpsWorks) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) {
  350. op := &request.Operation{
  351. Name: opCreateDeployment,
  352. HTTPMethod: "POST",
  353. HTTPPath: "/",
  354. }
  355. if input == nil {
  356. input = &CreateDeploymentInput{}
  357. }
  358. req = c.newRequest(op, input, output)
  359. output = &CreateDeploymentOutput{}
  360. req.Data = output
  361. return
  362. }
  363. // Runs deployment or stack commands. For more information, see Deploying Apps
  364. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-deploying.html)
  365. // and Run Stack Commands (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-commands.html).
  366. //
  367. // Required Permissions: To use this action, an IAM user must have a Deploy
  368. // or Manage permissions level for the stack, or an attached policy that explicitly
  369. // grants permissions. For more information on user permissions, see Managing
  370. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  371. func (c *OpsWorks) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) {
  372. req, out := c.CreateDeploymentRequest(input)
  373. err := req.Send()
  374. return out, err
  375. }
  376. const opCreateInstance = "CreateInstance"
  377. // CreateInstanceRequest generates a "aws/request.Request" representing the
  378. // client's request for the CreateInstance operation. The "output" return
  379. // value can be used to capture response data after the request's "Send" method
  380. // is called.
  381. //
  382. // Creating a request object using this method should be used when you want to inject
  383. // custom logic into the request's lifecycle using a custom handler, or if you want to
  384. // access properties on the request object before or after sending the request. If
  385. // you just want the service response, call the CreateInstance method directly
  386. // instead.
  387. //
  388. // Note: You must call the "Send" method on the returned request object in order
  389. // to execute the request.
  390. //
  391. // // Example sending a request using the CreateInstanceRequest method.
  392. // req, resp := client.CreateInstanceRequest(params)
  393. //
  394. // err := req.Send()
  395. // if err == nil { // resp is now filled
  396. // fmt.Println(resp)
  397. // }
  398. //
  399. func (c *OpsWorks) CreateInstanceRequest(input *CreateInstanceInput) (req *request.Request, output *CreateInstanceOutput) {
  400. op := &request.Operation{
  401. Name: opCreateInstance,
  402. HTTPMethod: "POST",
  403. HTTPPath: "/",
  404. }
  405. if input == nil {
  406. input = &CreateInstanceInput{}
  407. }
  408. req = c.newRequest(op, input, output)
  409. output = &CreateInstanceOutput{}
  410. req.Data = output
  411. return
  412. }
  413. // Creates an instance in a specified stack. For more information, see Adding
  414. // an Instance to a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
  415. //
  416. // Required Permissions: To use this action, an IAM user must have a Manage
  417. // permissions level for the stack, or an attached policy that explicitly grants
  418. // permissions. For more information on user permissions, see Managing User
  419. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  420. func (c *OpsWorks) CreateInstance(input *CreateInstanceInput) (*CreateInstanceOutput, error) {
  421. req, out := c.CreateInstanceRequest(input)
  422. err := req.Send()
  423. return out, err
  424. }
  425. const opCreateLayer = "CreateLayer"
  426. // CreateLayerRequest generates a "aws/request.Request" representing the
  427. // client's request for the CreateLayer operation. The "output" return
  428. // value can be used to capture response data after the request's "Send" method
  429. // is called.
  430. //
  431. // Creating a request object using this method should be used when you want to inject
  432. // custom logic into the request's lifecycle using a custom handler, or if you want to
  433. // access properties on the request object before or after sending the request. If
  434. // you just want the service response, call the CreateLayer method directly
  435. // instead.
  436. //
  437. // Note: You must call the "Send" method on the returned request object in order
  438. // to execute the request.
  439. //
  440. // // Example sending a request using the CreateLayerRequest method.
  441. // req, resp := client.CreateLayerRequest(params)
  442. //
  443. // err := req.Send()
  444. // if err == nil { // resp is now filled
  445. // fmt.Println(resp)
  446. // }
  447. //
  448. func (c *OpsWorks) CreateLayerRequest(input *CreateLayerInput) (req *request.Request, output *CreateLayerOutput) {
  449. op := &request.Operation{
  450. Name: opCreateLayer,
  451. HTTPMethod: "POST",
  452. HTTPPath: "/",
  453. }
  454. if input == nil {
  455. input = &CreateLayerInput{}
  456. }
  457. req = c.newRequest(op, input, output)
  458. output = &CreateLayerOutput{}
  459. req.Data = output
  460. return
  461. }
  462. // Creates a layer. For more information, see How to Create a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-create.html).
  463. //
  464. // You should use CreateLayer for noncustom layer types such as PHP App Server
  465. // only if the stack does not have an existing layer of that type. A stack can
  466. // have at most one instance of each noncustom layer; if you attempt to create
  467. // a second instance, CreateLayer fails. A stack can have an arbitrary number
  468. // of custom layers, so you can call CreateLayer as many times as you like for
  469. // that layer type.
  470. //
  471. // Required Permissions: To use this action, an IAM user must have a Manage
  472. // permissions level for the stack, or an attached policy that explicitly grants
  473. // permissions. For more information on user permissions, see Managing User
  474. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  475. func (c *OpsWorks) CreateLayer(input *CreateLayerInput) (*CreateLayerOutput, error) {
  476. req, out := c.CreateLayerRequest(input)
  477. err := req.Send()
  478. return out, err
  479. }
  480. const opCreateStack = "CreateStack"
  481. // CreateStackRequest generates a "aws/request.Request" representing the
  482. // client's request for the CreateStack operation. The "output" return
  483. // value can be used to capture response data after the request's "Send" method
  484. // is called.
  485. //
  486. // Creating a request object using this method should be used when you want to inject
  487. // custom logic into the request's lifecycle using a custom handler, or if you want to
  488. // access properties on the request object before or after sending the request. If
  489. // you just want the service response, call the CreateStack method directly
  490. // instead.
  491. //
  492. // Note: You must call the "Send" method on the returned request object in order
  493. // to execute the request.
  494. //
  495. // // Example sending a request using the CreateStackRequest method.
  496. // req, resp := client.CreateStackRequest(params)
  497. //
  498. // err := req.Send()
  499. // if err == nil { // resp is now filled
  500. // fmt.Println(resp)
  501. // }
  502. //
  503. func (c *OpsWorks) CreateStackRequest(input *CreateStackInput) (req *request.Request, output *CreateStackOutput) {
  504. op := &request.Operation{
  505. Name: opCreateStack,
  506. HTTPMethod: "POST",
  507. HTTPPath: "/",
  508. }
  509. if input == nil {
  510. input = &CreateStackInput{}
  511. }
  512. req = c.newRequest(op, input, output)
  513. output = &CreateStackOutput{}
  514. req.Data = output
  515. return
  516. }
  517. // Creates a new stack. For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-edit.html).
  518. //
  519. // Required Permissions: To use this action, an IAM user must have an attached
  520. // policy that explicitly grants permissions. For more information on user permissions,
  521. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  522. func (c *OpsWorks) CreateStack(input *CreateStackInput) (*CreateStackOutput, error) {
  523. req, out := c.CreateStackRequest(input)
  524. err := req.Send()
  525. return out, err
  526. }
  527. const opCreateUserProfile = "CreateUserProfile"
  528. // CreateUserProfileRequest generates a "aws/request.Request" representing the
  529. // client's request for the CreateUserProfile operation. The "output" return
  530. // value can be used to capture response data after the request's "Send" method
  531. // is called.
  532. //
  533. // Creating a request object using this method should be used when you want to inject
  534. // custom logic into the request's lifecycle using a custom handler, or if you want to
  535. // access properties on the request object before or after sending the request. If
  536. // you just want the service response, call the CreateUserProfile method directly
  537. // instead.
  538. //
  539. // Note: You must call the "Send" method on the returned request object in order
  540. // to execute the request.
  541. //
  542. // // Example sending a request using the CreateUserProfileRequest method.
  543. // req, resp := client.CreateUserProfileRequest(params)
  544. //
  545. // err := req.Send()
  546. // if err == nil { // resp is now filled
  547. // fmt.Println(resp)
  548. // }
  549. //
  550. func (c *OpsWorks) CreateUserProfileRequest(input *CreateUserProfileInput) (req *request.Request, output *CreateUserProfileOutput) {
  551. op := &request.Operation{
  552. Name: opCreateUserProfile,
  553. HTTPMethod: "POST",
  554. HTTPPath: "/",
  555. }
  556. if input == nil {
  557. input = &CreateUserProfileInput{}
  558. }
  559. req = c.newRequest(op, input, output)
  560. output = &CreateUserProfileOutput{}
  561. req.Data = output
  562. return
  563. }
  564. // Creates a new user profile.
  565. //
  566. // Required Permissions: To use this action, an IAM user must have an attached
  567. // policy that explicitly grants permissions. For more information on user permissions,
  568. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  569. func (c *OpsWorks) CreateUserProfile(input *CreateUserProfileInput) (*CreateUserProfileOutput, error) {
  570. req, out := c.CreateUserProfileRequest(input)
  571. err := req.Send()
  572. return out, err
  573. }
  574. const opDeleteApp = "DeleteApp"
  575. // DeleteAppRequest generates a "aws/request.Request" representing the
  576. // client's request for the DeleteApp operation. The "output" return
  577. // value can be used to capture response data after the request's "Send" method
  578. // is called.
  579. //
  580. // Creating a request object using this method should be used when you want to inject
  581. // custom logic into the request's lifecycle using a custom handler, or if you want to
  582. // access properties on the request object before or after sending the request. If
  583. // you just want the service response, call the DeleteApp method directly
  584. // instead.
  585. //
  586. // Note: You must call the "Send" method on the returned request object in order
  587. // to execute the request.
  588. //
  589. // // Example sending a request using the DeleteAppRequest method.
  590. // req, resp := client.DeleteAppRequest(params)
  591. //
  592. // err := req.Send()
  593. // if err == nil { // resp is now filled
  594. // fmt.Println(resp)
  595. // }
  596. //
  597. func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) {
  598. op := &request.Operation{
  599. Name: opDeleteApp,
  600. HTTPMethod: "POST",
  601. HTTPPath: "/",
  602. }
  603. if input == nil {
  604. input = &DeleteAppInput{}
  605. }
  606. req = c.newRequest(op, input, output)
  607. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  608. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  609. output = &DeleteAppOutput{}
  610. req.Data = output
  611. return
  612. }
  613. // Deletes a specified app.
  614. //
  615. // Required Permissions: To use this action, an IAM user must have a Manage
  616. // permissions level for the stack, or an attached policy that explicitly grants
  617. // permissions. For more information on user permissions, see Managing User
  618. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  619. func (c *OpsWorks) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) {
  620. req, out := c.DeleteAppRequest(input)
  621. err := req.Send()
  622. return out, err
  623. }
  624. const opDeleteInstance = "DeleteInstance"
  625. // DeleteInstanceRequest generates a "aws/request.Request" representing the
  626. // client's request for the DeleteInstance operation. The "output" return
  627. // value can be used to capture response data after the request's "Send" method
  628. // is called.
  629. //
  630. // Creating a request object using this method should be used when you want to inject
  631. // custom logic into the request's lifecycle using a custom handler, or if you want to
  632. // access properties on the request object before or after sending the request. If
  633. // you just want the service response, call the DeleteInstance method directly
  634. // instead.
  635. //
  636. // Note: You must call the "Send" method on the returned request object in order
  637. // to execute the request.
  638. //
  639. // // Example sending a request using the DeleteInstanceRequest method.
  640. // req, resp := client.DeleteInstanceRequest(params)
  641. //
  642. // err := req.Send()
  643. // if err == nil { // resp is now filled
  644. // fmt.Println(resp)
  645. // }
  646. //
  647. func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *request.Request, output *DeleteInstanceOutput) {
  648. op := &request.Operation{
  649. Name: opDeleteInstance,
  650. HTTPMethod: "POST",
  651. HTTPPath: "/",
  652. }
  653. if input == nil {
  654. input = &DeleteInstanceInput{}
  655. }
  656. req = c.newRequest(op, input, output)
  657. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  658. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  659. output = &DeleteInstanceOutput{}
  660. req.Data = output
  661. return
  662. }
  663. // Deletes a specified instance, which terminates the associated Amazon EC2
  664. // instance. You must stop an instance before you can delete it.
  665. //
  666. // For more information, see Deleting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-delete.html).
  667. //
  668. // Required Permissions: To use this action, an IAM user must have a Manage
  669. // permissions level for the stack, or an attached policy that explicitly grants
  670. // permissions. For more information on user permissions, see Managing User
  671. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  672. func (c *OpsWorks) DeleteInstance(input *DeleteInstanceInput) (*DeleteInstanceOutput, error) {
  673. req, out := c.DeleteInstanceRequest(input)
  674. err := req.Send()
  675. return out, err
  676. }
  677. const opDeleteLayer = "DeleteLayer"
  678. // DeleteLayerRequest generates a "aws/request.Request" representing the
  679. // client's request for the DeleteLayer operation. The "output" return
  680. // value can be used to capture response data after the request's "Send" method
  681. // is called.
  682. //
  683. // Creating a request object using this method should be used when you want to inject
  684. // custom logic into the request's lifecycle using a custom handler, or if you want to
  685. // access properties on the request object before or after sending the request. If
  686. // you just want the service response, call the DeleteLayer method directly
  687. // instead.
  688. //
  689. // Note: You must call the "Send" method on the returned request object in order
  690. // to execute the request.
  691. //
  692. // // Example sending a request using the DeleteLayerRequest method.
  693. // req, resp := client.DeleteLayerRequest(params)
  694. //
  695. // err := req.Send()
  696. // if err == nil { // resp is now filled
  697. // fmt.Println(resp)
  698. // }
  699. //
  700. func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Request, output *DeleteLayerOutput) {
  701. op := &request.Operation{
  702. Name: opDeleteLayer,
  703. HTTPMethod: "POST",
  704. HTTPPath: "/",
  705. }
  706. if input == nil {
  707. input = &DeleteLayerInput{}
  708. }
  709. req = c.newRequest(op, input, output)
  710. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  711. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  712. output = &DeleteLayerOutput{}
  713. req.Data = output
  714. return
  715. }
  716. // Deletes a specified layer. You must first stop and then delete all associated
  717. // instances or unassign registered instances. For more information, see How
  718. // to Delete a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-delete.html).
  719. //
  720. // Required Permissions: To use this action, an IAM user must have a Manage
  721. // permissions level for the stack, or an attached policy that explicitly grants
  722. // permissions. For more information on user permissions, see Managing User
  723. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  724. func (c *OpsWorks) DeleteLayer(input *DeleteLayerInput) (*DeleteLayerOutput, error) {
  725. req, out := c.DeleteLayerRequest(input)
  726. err := req.Send()
  727. return out, err
  728. }
  729. const opDeleteStack = "DeleteStack"
  730. // DeleteStackRequest generates a "aws/request.Request" representing the
  731. // client's request for the DeleteStack operation. The "output" return
  732. // value can be used to capture response data after the request's "Send" method
  733. // is called.
  734. //
  735. // Creating a request object using this method should be used when you want to inject
  736. // custom logic into the request's lifecycle using a custom handler, or if you want to
  737. // access properties on the request object before or after sending the request. If
  738. // you just want the service response, call the DeleteStack method directly
  739. // instead.
  740. //
  741. // Note: You must call the "Send" method on the returned request object in order
  742. // to execute the request.
  743. //
  744. // // Example sending a request using the DeleteStackRequest method.
  745. // req, resp := client.DeleteStackRequest(params)
  746. //
  747. // err := req.Send()
  748. // if err == nil { // resp is now filled
  749. // fmt.Println(resp)
  750. // }
  751. //
  752. func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Request, output *DeleteStackOutput) {
  753. op := &request.Operation{
  754. Name: opDeleteStack,
  755. HTTPMethod: "POST",
  756. HTTPPath: "/",
  757. }
  758. if input == nil {
  759. input = &DeleteStackInput{}
  760. }
  761. req = c.newRequest(op, input, output)
  762. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  763. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  764. output = &DeleteStackOutput{}
  765. req.Data = output
  766. return
  767. }
  768. // Deletes a specified stack. You must first delete all instances, layers, and
  769. // apps or deregister registered instances. For more information, see Shut Down
  770. // a Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-shutting.html).
  771. //
  772. // Required Permissions: To use this action, an IAM user must have a Manage
  773. // permissions level for the stack, or an attached policy that explicitly grants
  774. // permissions. For more information on user permissions, see Managing User
  775. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  776. func (c *OpsWorks) DeleteStack(input *DeleteStackInput) (*DeleteStackOutput, error) {
  777. req, out := c.DeleteStackRequest(input)
  778. err := req.Send()
  779. return out, err
  780. }
  781. const opDeleteUserProfile = "DeleteUserProfile"
  782. // DeleteUserProfileRequest generates a "aws/request.Request" representing the
  783. // client's request for the DeleteUserProfile operation. The "output" return
  784. // value can be used to capture response data after the request's "Send" method
  785. // is called.
  786. //
  787. // Creating a request object using this method should be used when you want to inject
  788. // custom logic into the request's lifecycle using a custom handler, or if you want to
  789. // access properties on the request object before or after sending the request. If
  790. // you just want the service response, call the DeleteUserProfile method directly
  791. // instead.
  792. //
  793. // Note: You must call the "Send" method on the returned request object in order
  794. // to execute the request.
  795. //
  796. // // Example sending a request using the DeleteUserProfileRequest method.
  797. // req, resp := client.DeleteUserProfileRequest(params)
  798. //
  799. // err := req.Send()
  800. // if err == nil { // resp is now filled
  801. // fmt.Println(resp)
  802. // }
  803. //
  804. func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req *request.Request, output *DeleteUserProfileOutput) {
  805. op := &request.Operation{
  806. Name: opDeleteUserProfile,
  807. HTTPMethod: "POST",
  808. HTTPPath: "/",
  809. }
  810. if input == nil {
  811. input = &DeleteUserProfileInput{}
  812. }
  813. req = c.newRequest(op, input, output)
  814. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  815. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  816. output = &DeleteUserProfileOutput{}
  817. req.Data = output
  818. return
  819. }
  820. // Deletes a user profile.
  821. //
  822. // Required Permissions: To use this action, an IAM user must have an attached
  823. // policy that explicitly grants permissions. For more information on user permissions,
  824. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  825. func (c *OpsWorks) DeleteUserProfile(input *DeleteUserProfileInput) (*DeleteUserProfileOutput, error) {
  826. req, out := c.DeleteUserProfileRequest(input)
  827. err := req.Send()
  828. return out, err
  829. }
  830. const opDeregisterEcsCluster = "DeregisterEcsCluster"
  831. // DeregisterEcsClusterRequest generates a "aws/request.Request" representing the
  832. // client's request for the DeregisterEcsCluster operation. The "output" return
  833. // value can be used to capture response data after the request's "Send" method
  834. // is called.
  835. //
  836. // Creating a request object using this method should be used when you want to inject
  837. // custom logic into the request's lifecycle using a custom handler, or if you want to
  838. // access properties on the request object before or after sending the request. If
  839. // you just want the service response, call the DeregisterEcsCluster method directly
  840. // instead.
  841. //
  842. // Note: You must call the "Send" method on the returned request object in order
  843. // to execute the request.
  844. //
  845. // // Example sending a request using the DeregisterEcsClusterRequest method.
  846. // req, resp := client.DeregisterEcsClusterRequest(params)
  847. //
  848. // err := req.Send()
  849. // if err == nil { // resp is now filled
  850. // fmt.Println(resp)
  851. // }
  852. //
  853. func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) (req *request.Request, output *DeregisterEcsClusterOutput) {
  854. op := &request.Operation{
  855. Name: opDeregisterEcsCluster,
  856. HTTPMethod: "POST",
  857. HTTPPath: "/",
  858. }
  859. if input == nil {
  860. input = &DeregisterEcsClusterInput{}
  861. }
  862. req = c.newRequest(op, input, output)
  863. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  864. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  865. output = &DeregisterEcsClusterOutput{}
  866. req.Data = output
  867. return
  868. }
  869. // Deregisters a specified Amazon ECS cluster from a stack. For more information,
  870. // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html#workinglayers-ecscluster-delete).
  871. //
  872. // Required Permissions: To use this action, an IAM user must have a Manage
  873. // permissions level for the stack or an attached policy that explicitly grants
  874. // permissions. For more information on user permissions, see http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html
  875. // (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  876. func (c *OpsWorks) DeregisterEcsCluster(input *DeregisterEcsClusterInput) (*DeregisterEcsClusterOutput, error) {
  877. req, out := c.DeregisterEcsClusterRequest(input)
  878. err := req.Send()
  879. return out, err
  880. }
  881. const opDeregisterElasticIp = "DeregisterElasticIp"
  882. // DeregisterElasticIpRequest generates a "aws/request.Request" representing the
  883. // client's request for the DeregisterElasticIp operation. The "output" return
  884. // value can be used to capture response data after the request's "Send" method
  885. // is called.
  886. //
  887. // Creating a request object using this method should be used when you want to inject
  888. // custom logic into the request's lifecycle using a custom handler, or if you want to
  889. // access properties on the request object before or after sending the request. If
  890. // you just want the service response, call the DeregisterElasticIp method directly
  891. // instead.
  892. //
  893. // Note: You must call the "Send" method on the returned request object in order
  894. // to execute the request.
  895. //
  896. // // Example sending a request using the DeregisterElasticIpRequest method.
  897. // req, resp := client.DeregisterElasticIpRequest(params)
  898. //
  899. // err := req.Send()
  900. // if err == nil { // resp is now filled
  901. // fmt.Println(resp)
  902. // }
  903. //
  904. func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) (req *request.Request, output *DeregisterElasticIpOutput) {
  905. op := &request.Operation{
  906. Name: opDeregisterElasticIp,
  907. HTTPMethod: "POST",
  908. HTTPPath: "/",
  909. }
  910. if input == nil {
  911. input = &DeregisterElasticIpInput{}
  912. }
  913. req = c.newRequest(op, input, output)
  914. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  915. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  916. output = &DeregisterElasticIpOutput{}
  917. req.Data = output
  918. return
  919. }
  920. // Deregisters a specified Elastic IP address. The address can then be registered
  921. // by another stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  922. //
  923. // Required Permissions: To use this action, an IAM user must have a Manage
  924. // permissions level for the stack, or an attached policy that explicitly grants
  925. // permissions. For more information on user permissions, see Managing User
  926. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  927. func (c *OpsWorks) DeregisterElasticIp(input *DeregisterElasticIpInput) (*DeregisterElasticIpOutput, error) {
  928. req, out := c.DeregisterElasticIpRequest(input)
  929. err := req.Send()
  930. return out, err
  931. }
  932. const opDeregisterInstance = "DeregisterInstance"
  933. // DeregisterInstanceRequest generates a "aws/request.Request" representing the
  934. // client's request for the DeregisterInstance operation. The "output" return
  935. // value can be used to capture response data after the request's "Send" method
  936. // is called.
  937. //
  938. // Creating a request object using this method should be used when you want to inject
  939. // custom logic into the request's lifecycle using a custom handler, or if you want to
  940. // access properties on the request object before or after sending the request. If
  941. // you just want the service response, call the DeregisterInstance method directly
  942. // instead.
  943. //
  944. // Note: You must call the "Send" method on the returned request object in order
  945. // to execute the request.
  946. //
  947. // // Example sending a request using the DeregisterInstanceRequest method.
  948. // req, resp := client.DeregisterInstanceRequest(params)
  949. //
  950. // err := req.Send()
  951. // if err == nil { // resp is now filled
  952. // fmt.Println(resp)
  953. // }
  954. //
  955. func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (req *request.Request, output *DeregisterInstanceOutput) {
  956. op := &request.Operation{
  957. Name: opDeregisterInstance,
  958. HTTPMethod: "POST",
  959. HTTPPath: "/",
  960. }
  961. if input == nil {
  962. input = &DeregisterInstanceInput{}
  963. }
  964. req = c.newRequest(op, input, output)
  965. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  966. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  967. output = &DeregisterInstanceOutput{}
  968. req.Data = output
  969. return
  970. }
  971. // Deregister a registered Amazon EC2 or on-premises instance. This action removes
  972. // the instance from the stack and returns it to your control. This action can
  973. // not be used with instances that were created with AWS OpsWorks.
  974. //
  975. // Required Permissions: To use this action, an IAM user must have a Manage
  976. // permissions level for the stack or an attached policy that explicitly grants
  977. // permissions. For more information on user permissions, see Managing User
  978. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  979. func (c *OpsWorks) DeregisterInstance(input *DeregisterInstanceInput) (*DeregisterInstanceOutput, error) {
  980. req, out := c.DeregisterInstanceRequest(input)
  981. err := req.Send()
  982. return out, err
  983. }
  984. const opDeregisterRdsDbInstance = "DeregisterRdsDbInstance"
  985. // DeregisterRdsDbInstanceRequest generates a "aws/request.Request" representing the
  986. // client's request for the DeregisterRdsDbInstance operation. The "output" return
  987. // value can be used to capture response data after the request's "Send" method
  988. // is called.
  989. //
  990. // Creating a request object using this method should be used when you want to inject
  991. // custom logic into the request's lifecycle using a custom handler, or if you want to
  992. // access properties on the request object before or after sending the request. If
  993. // you just want the service response, call the DeregisterRdsDbInstance method directly
  994. // instead.
  995. //
  996. // Note: You must call the "Send" method on the returned request object in order
  997. // to execute the request.
  998. //
  999. // // Example sending a request using the DeregisterRdsDbInstanceRequest method.
  1000. // req, resp := client.DeregisterRdsDbInstanceRequest(params)
  1001. //
  1002. // err := req.Send()
  1003. // if err == nil { // resp is now filled
  1004. // fmt.Println(resp)
  1005. // }
  1006. //
  1007. func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstanceInput) (req *request.Request, output *DeregisterRdsDbInstanceOutput) {
  1008. op := &request.Operation{
  1009. Name: opDeregisterRdsDbInstance,
  1010. HTTPMethod: "POST",
  1011. HTTPPath: "/",
  1012. }
  1013. if input == nil {
  1014. input = &DeregisterRdsDbInstanceInput{}
  1015. }
  1016. req = c.newRequest(op, input, output)
  1017. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1018. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1019. output = &DeregisterRdsDbInstanceOutput{}
  1020. req.Data = output
  1021. return
  1022. }
  1023. // Deregisters an Amazon RDS instance.
  1024. //
  1025. // Required Permissions: To use this action, an IAM user must have a Manage
  1026. // permissions level for the stack, or an attached policy that explicitly grants
  1027. // permissions. For more information on user permissions, see Managing User
  1028. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1029. func (c *OpsWorks) DeregisterRdsDbInstance(input *DeregisterRdsDbInstanceInput) (*DeregisterRdsDbInstanceOutput, error) {
  1030. req, out := c.DeregisterRdsDbInstanceRequest(input)
  1031. err := req.Send()
  1032. return out, err
  1033. }
  1034. const opDeregisterVolume = "DeregisterVolume"
  1035. // DeregisterVolumeRequest generates a "aws/request.Request" representing the
  1036. // client's request for the DeregisterVolume operation. The "output" return
  1037. // value can be used to capture response data after the request's "Send" method
  1038. // is called.
  1039. //
  1040. // Creating a request object using this method should be used when you want to inject
  1041. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1042. // access properties on the request object before or after sending the request. If
  1043. // you just want the service response, call the DeregisterVolume method directly
  1044. // instead.
  1045. //
  1046. // Note: You must call the "Send" method on the returned request object in order
  1047. // to execute the request.
  1048. //
  1049. // // Example sending a request using the DeregisterVolumeRequest method.
  1050. // req, resp := client.DeregisterVolumeRequest(params)
  1051. //
  1052. // err := req.Send()
  1053. // if err == nil { // resp is now filled
  1054. // fmt.Println(resp)
  1055. // }
  1056. //
  1057. func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *request.Request, output *DeregisterVolumeOutput) {
  1058. op := &request.Operation{
  1059. Name: opDeregisterVolume,
  1060. HTTPMethod: "POST",
  1061. HTTPPath: "/",
  1062. }
  1063. if input == nil {
  1064. input = &DeregisterVolumeInput{}
  1065. }
  1066. req = c.newRequest(op, input, output)
  1067. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1068. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1069. output = &DeregisterVolumeOutput{}
  1070. req.Data = output
  1071. return
  1072. }
  1073. // Deregisters an Amazon EBS volume. The volume can then be registered by another
  1074. // stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  1075. //
  1076. // Required Permissions: To use this action, an IAM user must have a Manage
  1077. // permissions level for the stack, or an attached policy that explicitly grants
  1078. // permissions. For more information on user permissions, see Managing User
  1079. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1080. func (c *OpsWorks) DeregisterVolume(input *DeregisterVolumeInput) (*DeregisterVolumeOutput, error) {
  1081. req, out := c.DeregisterVolumeRequest(input)
  1082. err := req.Send()
  1083. return out, err
  1084. }
  1085. const opDescribeAgentVersions = "DescribeAgentVersions"
  1086. // DescribeAgentVersionsRequest generates a "aws/request.Request" representing the
  1087. // client's request for the DescribeAgentVersions operation. The "output" return
  1088. // value can be used to capture response data after the request's "Send" method
  1089. // is called.
  1090. //
  1091. // Creating a request object using this method should be used when you want to inject
  1092. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1093. // access properties on the request object before or after sending the request. If
  1094. // you just want the service response, call the DescribeAgentVersions method directly
  1095. // instead.
  1096. //
  1097. // Note: You must call the "Send" method on the returned request object in order
  1098. // to execute the request.
  1099. //
  1100. // // Example sending a request using the DescribeAgentVersionsRequest method.
  1101. // req, resp := client.DescribeAgentVersionsRequest(params)
  1102. //
  1103. // err := req.Send()
  1104. // if err == nil { // resp is now filled
  1105. // fmt.Println(resp)
  1106. // }
  1107. //
  1108. func (c *OpsWorks) DescribeAgentVersionsRequest(input *DescribeAgentVersionsInput) (req *request.Request, output *DescribeAgentVersionsOutput) {
  1109. op := &request.Operation{
  1110. Name: opDescribeAgentVersions,
  1111. HTTPMethod: "POST",
  1112. HTTPPath: "/",
  1113. }
  1114. if input == nil {
  1115. input = &DescribeAgentVersionsInput{}
  1116. }
  1117. req = c.newRequest(op, input, output)
  1118. output = &DescribeAgentVersionsOutput{}
  1119. req.Data = output
  1120. return
  1121. }
  1122. // Describes the available AWS OpsWorks agent versions. You must specify a stack
  1123. // ID or a configuration manager. DescribeAgentVersions returns a list of available
  1124. // agent versions for the specified stack or configuration manager.
  1125. func (c *OpsWorks) DescribeAgentVersions(input *DescribeAgentVersionsInput) (*DescribeAgentVersionsOutput, error) {
  1126. req, out := c.DescribeAgentVersionsRequest(input)
  1127. err := req.Send()
  1128. return out, err
  1129. }
  1130. const opDescribeApps = "DescribeApps"
  1131. // DescribeAppsRequest generates a "aws/request.Request" representing the
  1132. // client's request for the DescribeApps operation. The "output" return
  1133. // value can be used to capture response data after the request's "Send" method
  1134. // is called.
  1135. //
  1136. // Creating a request object using this method should be used when you want to inject
  1137. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1138. // access properties on the request object before or after sending the request. If
  1139. // you just want the service response, call the DescribeApps method directly
  1140. // instead.
  1141. //
  1142. // Note: You must call the "Send" method on the returned request object in order
  1143. // to execute the request.
  1144. //
  1145. // // Example sending a request using the DescribeAppsRequest method.
  1146. // req, resp := client.DescribeAppsRequest(params)
  1147. //
  1148. // err := req.Send()
  1149. // if err == nil { // resp is now filled
  1150. // fmt.Println(resp)
  1151. // }
  1152. //
  1153. func (c *OpsWorks) DescribeAppsRequest(input *DescribeAppsInput) (req *request.Request, output *DescribeAppsOutput) {
  1154. op := &request.Operation{
  1155. Name: opDescribeApps,
  1156. HTTPMethod: "POST",
  1157. HTTPPath: "/",
  1158. }
  1159. if input == nil {
  1160. input = &DescribeAppsInput{}
  1161. }
  1162. req = c.newRequest(op, input, output)
  1163. output = &DescribeAppsOutput{}
  1164. req.Data = output
  1165. return
  1166. }
  1167. // Requests a description of a specified set of apps.
  1168. //
  1169. // You must specify at least one of the parameters.
  1170. //
  1171. // Required Permissions: To use this action, an IAM user must have a Show,
  1172. // Deploy, or Manage permissions level for the stack, or an attached policy
  1173. // that explicitly grants permissions. For more information on user permissions,
  1174. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1175. func (c *OpsWorks) DescribeApps(input *DescribeAppsInput) (*DescribeAppsOutput, error) {
  1176. req, out := c.DescribeAppsRequest(input)
  1177. err := req.Send()
  1178. return out, err
  1179. }
  1180. const opDescribeCommands = "DescribeCommands"
  1181. // DescribeCommandsRequest generates a "aws/request.Request" representing the
  1182. // client's request for the DescribeCommands operation. The "output" return
  1183. // value can be used to capture response data after the request's "Send" method
  1184. // is called.
  1185. //
  1186. // Creating a request object using this method should be used when you want to inject
  1187. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1188. // access properties on the request object before or after sending the request. If
  1189. // you just want the service response, call the DescribeCommands method directly
  1190. // instead.
  1191. //
  1192. // Note: You must call the "Send" method on the returned request object in order
  1193. // to execute the request.
  1194. //
  1195. // // Example sending a request using the DescribeCommandsRequest method.
  1196. // req, resp := client.DescribeCommandsRequest(params)
  1197. //
  1198. // err := req.Send()
  1199. // if err == nil { // resp is now filled
  1200. // fmt.Println(resp)
  1201. // }
  1202. //
  1203. func (c *OpsWorks) DescribeCommandsRequest(input *DescribeCommandsInput) (req *request.Request, output *DescribeCommandsOutput) {
  1204. op := &request.Operation{
  1205. Name: opDescribeCommands,
  1206. HTTPMethod: "POST",
  1207. HTTPPath: "/",
  1208. }
  1209. if input == nil {
  1210. input = &DescribeCommandsInput{}
  1211. }
  1212. req = c.newRequest(op, input, output)
  1213. output = &DescribeCommandsOutput{}
  1214. req.Data = output
  1215. return
  1216. }
  1217. // Describes the results of specified commands.
  1218. //
  1219. // You must specify at least one of the parameters.
  1220. //
  1221. // Required Permissions: To use this action, an IAM user must have a Show,
  1222. // Deploy, or Manage permissions level for the stack, or an attached policy
  1223. // that explicitly grants permissions. For more information on user permissions,
  1224. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1225. func (c *OpsWorks) DescribeCommands(input *DescribeCommandsInput) (*DescribeCommandsOutput, error) {
  1226. req, out := c.DescribeCommandsRequest(input)
  1227. err := req.Send()
  1228. return out, err
  1229. }
  1230. const opDescribeDeployments = "DescribeDeployments"
  1231. // DescribeDeploymentsRequest generates a "aws/request.Request" representing the
  1232. // client's request for the DescribeDeployments operation. The "output" return
  1233. // value can be used to capture response data after the request's "Send" method
  1234. // is called.
  1235. //
  1236. // Creating a request object using this method should be used when you want to inject
  1237. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1238. // access properties on the request object before or after sending the request. If
  1239. // you just want the service response, call the DescribeDeployments method directly
  1240. // instead.
  1241. //
  1242. // Note: You must call the "Send" method on the returned request object in order
  1243. // to execute the request.
  1244. //
  1245. // // Example sending a request using the DescribeDeploymentsRequest method.
  1246. // req, resp := client.DescribeDeploymentsRequest(params)
  1247. //
  1248. // err := req.Send()
  1249. // if err == nil { // resp is now filled
  1250. // fmt.Println(resp)
  1251. // }
  1252. //
  1253. func (c *OpsWorks) DescribeDeploymentsRequest(input *DescribeDeploymentsInput) (req *request.Request, output *DescribeDeploymentsOutput) {
  1254. op := &request.Operation{
  1255. Name: opDescribeDeployments,
  1256. HTTPMethod: "POST",
  1257. HTTPPath: "/",
  1258. }
  1259. if input == nil {
  1260. input = &DescribeDeploymentsInput{}
  1261. }
  1262. req = c.newRequest(op, input, output)
  1263. output = &DescribeDeploymentsOutput{}
  1264. req.Data = output
  1265. return
  1266. }
  1267. // Requests a description of a specified set of deployments.
  1268. //
  1269. // You must specify at least one of the parameters.
  1270. //
  1271. // Required Permissions: To use this action, an IAM user must have a Show,
  1272. // Deploy, or Manage permissions level for the stack, or an attached policy
  1273. // that explicitly grants permissions. For more information on user permissions,
  1274. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1275. func (c *OpsWorks) DescribeDeployments(input *DescribeDeploymentsInput) (*DescribeDeploymentsOutput, error) {
  1276. req, out := c.DescribeDeploymentsRequest(input)
  1277. err := req.Send()
  1278. return out, err
  1279. }
  1280. const opDescribeEcsClusters = "DescribeEcsClusters"
  1281. // DescribeEcsClustersRequest generates a "aws/request.Request" representing the
  1282. // client's request for the DescribeEcsClusters operation. The "output" return
  1283. // value can be used to capture response data after the request's "Send" method
  1284. // is called.
  1285. //
  1286. // Creating a request object using this method should be used when you want to inject
  1287. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1288. // access properties on the request object before or after sending the request. If
  1289. // you just want the service response, call the DescribeEcsClusters method directly
  1290. // instead.
  1291. //
  1292. // Note: You must call the "Send" method on the returned request object in order
  1293. // to execute the request.
  1294. //
  1295. // // Example sending a request using the DescribeEcsClustersRequest method.
  1296. // req, resp := client.DescribeEcsClustersRequest(params)
  1297. //
  1298. // err := req.Send()
  1299. // if err == nil { // resp is now filled
  1300. // fmt.Println(resp)
  1301. // }
  1302. //
  1303. func (c *OpsWorks) DescribeEcsClustersRequest(input *DescribeEcsClustersInput) (req *request.Request, output *DescribeEcsClustersOutput) {
  1304. op := &request.Operation{
  1305. Name: opDescribeEcsClusters,
  1306. HTTPMethod: "POST",
  1307. HTTPPath: "/",
  1308. Paginator: &request.Paginator{
  1309. InputTokens: []string{"NextToken"},
  1310. OutputTokens: []string{"NextToken"},
  1311. LimitToken: "MaxResults",
  1312. TruncationToken: "",
  1313. },
  1314. }
  1315. if input == nil {
  1316. input = &DescribeEcsClustersInput{}
  1317. }
  1318. req = c.newRequest(op, input, output)
  1319. output = &DescribeEcsClustersOutput{}
  1320. req.Data = output
  1321. return
  1322. }
  1323. // Describes Amazon ECS clusters that are registered with a stack. If you specify
  1324. // only a stack ID, you can use the MaxResults and NextToken parameters to paginate
  1325. // the response. However, AWS OpsWorks currently supports only one cluster per
  1326. // layer, so the result set has a maximum of one element.
  1327. //
  1328. // Required Permissions: To use this action, an IAM user must have a Show,
  1329. // Deploy, or Manage permissions level for the stack or an attached policy that
  1330. // explicitly grants permission. For more information on user permissions, see
  1331. // Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1332. func (c *OpsWorks) DescribeEcsClusters(input *DescribeEcsClustersInput) (*DescribeEcsClustersOutput, error) {
  1333. req, out := c.DescribeEcsClustersRequest(input)
  1334. err := req.Send()
  1335. return out, err
  1336. }
  1337. // DescribeEcsClustersPages iterates over the pages of a DescribeEcsClusters operation,
  1338. // calling the "fn" function with the response data for each page. To stop
  1339. // iterating, return false from the fn function.
  1340. //
  1341. // See DescribeEcsClusters method for more information on how to use this operation.
  1342. //
  1343. // Note: This operation can generate multiple requests to a service.
  1344. //
  1345. // // Example iterating over at most 3 pages of a DescribeEcsClusters operation.
  1346. // pageNum := 0
  1347. // err := client.DescribeEcsClustersPages(params,
  1348. // func(page *DescribeEcsClustersOutput, lastPage bool) bool {
  1349. // pageNum++
  1350. // fmt.Println(page)
  1351. // return pageNum <= 3
  1352. // })
  1353. //
  1354. func (c *OpsWorks) DescribeEcsClustersPages(input *DescribeEcsClustersInput, fn func(p *DescribeEcsClustersOutput, lastPage bool) (shouldContinue bool)) error {
  1355. page, _ := c.DescribeEcsClustersRequest(input)
  1356. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1357. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1358. return fn(p.(*DescribeEcsClustersOutput), lastPage)
  1359. })
  1360. }
  1361. const opDescribeElasticIps = "DescribeElasticIps"
  1362. // DescribeElasticIpsRequest generates a "aws/request.Request" representing the
  1363. // client's request for the DescribeElasticIps operation. The "output" return
  1364. // value can be used to capture response data after the request's "Send" method
  1365. // is called.
  1366. //
  1367. // Creating a request object using this method should be used when you want to inject
  1368. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1369. // access properties on the request object before or after sending the request. If
  1370. // you just want the service response, call the DescribeElasticIps method directly
  1371. // instead.
  1372. //
  1373. // Note: You must call the "Send" method on the returned request object in order
  1374. // to execute the request.
  1375. //
  1376. // // Example sending a request using the DescribeElasticIpsRequest method.
  1377. // req, resp := client.DescribeElasticIpsRequest(params)
  1378. //
  1379. // err := req.Send()
  1380. // if err == nil { // resp is now filled
  1381. // fmt.Println(resp)
  1382. // }
  1383. //
  1384. func (c *OpsWorks) DescribeElasticIpsRequest(input *DescribeElasticIpsInput) (req *request.Request, output *DescribeElasticIpsOutput) {
  1385. op := &request.Operation{
  1386. Name: opDescribeElasticIps,
  1387. HTTPMethod: "POST",
  1388. HTTPPath: "/",
  1389. }
  1390. if input == nil {
  1391. input = &DescribeElasticIpsInput{}
  1392. }
  1393. req = c.newRequest(op, input, output)
  1394. output = &DescribeElasticIpsOutput{}
  1395. req.Data = output
  1396. return
  1397. }
  1398. // Describes Elastic IP addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html).
  1399. //
  1400. // You must specify at least one of the parameters.
  1401. //
  1402. // Required Permissions: To use this action, an IAM user must have a Show,
  1403. // Deploy, or Manage permissions level for the stack, or an attached policy
  1404. // that explicitly grants permissions. For more information on user permissions,
  1405. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1406. func (c *OpsWorks) DescribeElasticIps(input *DescribeElasticIpsInput) (*DescribeElasticIpsOutput, error) {
  1407. req, out := c.DescribeElasticIpsRequest(input)
  1408. err := req.Send()
  1409. return out, err
  1410. }
  1411. const opDescribeElasticLoadBalancers = "DescribeElasticLoadBalancers"
  1412. // DescribeElasticLoadBalancersRequest generates a "aws/request.Request" representing the
  1413. // client's request for the DescribeElasticLoadBalancers operation. The "output" return
  1414. // value can be used to capture response data after the request's "Send" method
  1415. // is called.
  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 DescribeElasticLoadBalancers 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 DescribeElasticLoadBalancersRequest method.
  1427. // req, resp := client.DescribeElasticLoadBalancersRequest(params)
  1428. //
  1429. // err := req.Send()
  1430. // if err == nil { // resp is now filled
  1431. // fmt.Println(resp)
  1432. // }
  1433. //
  1434. func (c *OpsWorks) DescribeElasticLoadBalancersRequest(input *DescribeElasticLoadBalancersInput) (req *request.Request, output *DescribeElasticLoadBalancersOutput) {
  1435. op := &request.Operation{
  1436. Name: opDescribeElasticLoadBalancers,
  1437. HTTPMethod: "POST",
  1438. HTTPPath: "/",
  1439. }
  1440. if input == nil {
  1441. input = &DescribeElasticLoadBalancersInput{}
  1442. }
  1443. req = c.newRequest(op, input, output)
  1444. output = &DescribeElasticLoadBalancersOutput{}
  1445. req.Data = output
  1446. return
  1447. }
  1448. // Describes a stack's Elastic Load Balancing instances.
  1449. //
  1450. // You must specify at least one of the parameters.
  1451. //
  1452. // Required Permissions: To use this action, an IAM user must have a Show,
  1453. // Deploy, or Manage permissions level for the stack, or an attached policy
  1454. // that explicitly grants permissions. For more information on user permissions,
  1455. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1456. func (c *OpsWorks) DescribeElasticLoadBalancers(input *DescribeElasticLoadBalancersInput) (*DescribeElasticLoadBalancersOutput, error) {
  1457. req, out := c.DescribeElasticLoadBalancersRequest(input)
  1458. err := req.Send()
  1459. return out, err
  1460. }
  1461. const opDescribeInstances = "DescribeInstances"
  1462. // DescribeInstancesRequest generates a "aws/request.Request" representing the
  1463. // client's request for the DescribeInstances operation. The "output" return
  1464. // value can be used to capture response data after the request's "Send" method
  1465. // is called.
  1466. //
  1467. // Creating a request object using this method should be used when you want to inject
  1468. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1469. // access properties on the request object before or after sending the request. If
  1470. // you just want the service response, call the DescribeInstances method directly
  1471. // instead.
  1472. //
  1473. // Note: You must call the "Send" method on the returned request object in order
  1474. // to execute the request.
  1475. //
  1476. // // Example sending a request using the DescribeInstancesRequest method.
  1477. // req, resp := client.DescribeInstancesRequest(params)
  1478. //
  1479. // err := req.Send()
  1480. // if err == nil { // resp is now filled
  1481. // fmt.Println(resp)
  1482. // }
  1483. //
  1484. func (c *OpsWorks) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) {
  1485. op := &request.Operation{
  1486. Name: opDescribeInstances,
  1487. HTTPMethod: "POST",
  1488. HTTPPath: "/",
  1489. }
  1490. if input == nil {
  1491. input = &DescribeInstancesInput{}
  1492. }
  1493. req = c.newRequest(op, input, output)
  1494. output = &DescribeInstancesOutput{}
  1495. req.Data = output
  1496. return
  1497. }
  1498. // Requests a description of a set of instances.
  1499. //
  1500. // You must specify at least one of the parameters.
  1501. //
  1502. // Required Permissions: To use this action, an IAM user must have a Show,
  1503. // Deploy, or Manage permissions level for the stack, or an attached policy
  1504. // that explicitly grants permissions. For more information on user permissions,
  1505. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1506. func (c *OpsWorks) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) {
  1507. req, out := c.DescribeInstancesRequest(input)
  1508. err := req.Send()
  1509. return out, err
  1510. }
  1511. const opDescribeLayers = "DescribeLayers"
  1512. // DescribeLayersRequest generates a "aws/request.Request" representing the
  1513. // client's request for the DescribeLayers operation. The "output" return
  1514. // value can be used to capture response data after the request's "Send" method
  1515. // is called.
  1516. //
  1517. // Creating a request object using this method should be used when you want to inject
  1518. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1519. // access properties on the request object before or after sending the request. If
  1520. // you just want the service response, call the DescribeLayers method directly
  1521. // instead.
  1522. //
  1523. // Note: You must call the "Send" method on the returned request object in order
  1524. // to execute the request.
  1525. //
  1526. // // Example sending a request using the DescribeLayersRequest method.
  1527. // req, resp := client.DescribeLayersRequest(params)
  1528. //
  1529. // err := req.Send()
  1530. // if err == nil { // resp is now filled
  1531. // fmt.Println(resp)
  1532. // }
  1533. //
  1534. func (c *OpsWorks) DescribeLayersRequest(input *DescribeLayersInput) (req *request.Request, output *DescribeLayersOutput) {
  1535. op := &request.Operation{
  1536. Name: opDescribeLayers,
  1537. HTTPMethod: "POST",
  1538. HTTPPath: "/",
  1539. }
  1540. if input == nil {
  1541. input = &DescribeLayersInput{}
  1542. }
  1543. req = c.newRequest(op, input, output)
  1544. output = &DescribeLayersOutput{}
  1545. req.Data = output
  1546. return
  1547. }
  1548. // Requests a description of one or more layers in a specified stack.
  1549. //
  1550. // You must specify at least one of the parameters.
  1551. //
  1552. // Required Permissions: To use this action, an IAM user must have a Show,
  1553. // Deploy, or Manage permissions level for the stack, or an attached policy
  1554. // that explicitly grants permissions. For more information on user permissions,
  1555. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1556. func (c *OpsWorks) DescribeLayers(input *DescribeLayersInput) (*DescribeLayersOutput, error) {
  1557. req, out := c.DescribeLayersRequest(input)
  1558. err := req.Send()
  1559. return out, err
  1560. }
  1561. const opDescribeLoadBasedAutoScaling = "DescribeLoadBasedAutoScaling"
  1562. // DescribeLoadBasedAutoScalingRequest generates a "aws/request.Request" representing the
  1563. // client's request for the DescribeLoadBasedAutoScaling operation. The "output" return
  1564. // value can be used to capture response data after the request's "Send" method
  1565. // is called.
  1566. //
  1567. // Creating a request object using this method should be used when you want to inject
  1568. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1569. // access properties on the request object before or after sending the request. If
  1570. // you just want the service response, call the DescribeLoadBasedAutoScaling method directly
  1571. // instead.
  1572. //
  1573. // Note: You must call the "Send" method on the returned request object in order
  1574. // to execute the request.
  1575. //
  1576. // // Example sending a request using the DescribeLoadBasedAutoScalingRequest method.
  1577. // req, resp := client.DescribeLoadBasedAutoScalingRequest(params)
  1578. //
  1579. // err := req.Send()
  1580. // if err == nil { // resp is now filled
  1581. // fmt.Println(resp)
  1582. // }
  1583. //
  1584. func (c *OpsWorks) DescribeLoadBasedAutoScalingRequest(input *DescribeLoadBasedAutoScalingInput) (req *request.Request, output *DescribeLoadBasedAutoScalingOutput) {
  1585. op := &request.Operation{
  1586. Name: opDescribeLoadBasedAutoScaling,
  1587. HTTPMethod: "POST",
  1588. HTTPPath: "/",
  1589. }
  1590. if input == nil {
  1591. input = &DescribeLoadBasedAutoScalingInput{}
  1592. }
  1593. req = c.newRequest(op, input, output)
  1594. output = &DescribeLoadBasedAutoScalingOutput{}
  1595. req.Data = output
  1596. return
  1597. }
  1598. // Describes load-based auto scaling configurations for specified layers.
  1599. //
  1600. // You must specify at least one of the parameters.
  1601. //
  1602. // Required Permissions: To use this action, an IAM user must have a Show,
  1603. // Deploy, or Manage permissions level for the stack, or an attached policy
  1604. // that explicitly grants permissions. For more information on user permissions,
  1605. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1606. func (c *OpsWorks) DescribeLoadBasedAutoScaling(input *DescribeLoadBasedAutoScalingInput) (*DescribeLoadBasedAutoScalingOutput, error) {
  1607. req, out := c.DescribeLoadBasedAutoScalingRequest(input)
  1608. err := req.Send()
  1609. return out, err
  1610. }
  1611. const opDescribeMyUserProfile = "DescribeMyUserProfile"
  1612. // DescribeMyUserProfileRequest generates a "aws/request.Request" representing the
  1613. // client's request for the DescribeMyUserProfile operation. The "output" return
  1614. // value can be used to capture response data after the request's "Send" method
  1615. // is called.
  1616. //
  1617. // Creating a request object using this method should be used when you want to inject
  1618. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1619. // access properties on the request object before or after sending the request. If
  1620. // you just want the service response, call the DescribeMyUserProfile method directly
  1621. // instead.
  1622. //
  1623. // Note: You must call the "Send" method on the returned request object in order
  1624. // to execute the request.
  1625. //
  1626. // // Example sending a request using the DescribeMyUserProfileRequest method.
  1627. // req, resp := client.DescribeMyUserProfileRequest(params)
  1628. //
  1629. // err := req.Send()
  1630. // if err == nil { // resp is now filled
  1631. // fmt.Println(resp)
  1632. // }
  1633. //
  1634. func (c *OpsWorks) DescribeMyUserProfileRequest(input *DescribeMyUserProfileInput) (req *request.Request, output *DescribeMyUserProfileOutput) {
  1635. op := &request.Operation{
  1636. Name: opDescribeMyUserProfile,
  1637. HTTPMethod: "POST",
  1638. HTTPPath: "/",
  1639. }
  1640. if input == nil {
  1641. input = &DescribeMyUserProfileInput{}
  1642. }
  1643. req = c.newRequest(op, input, output)
  1644. output = &DescribeMyUserProfileOutput{}
  1645. req.Data = output
  1646. return
  1647. }
  1648. // Describes a user's SSH information.
  1649. //
  1650. // Required Permissions: To use this action, an IAM user must have self-management
  1651. // enabled or an attached policy that explicitly grants permissions. For more
  1652. // information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1653. func (c *OpsWorks) DescribeMyUserProfile(input *DescribeMyUserProfileInput) (*DescribeMyUserProfileOutput, error) {
  1654. req, out := c.DescribeMyUserProfileRequest(input)
  1655. err := req.Send()
  1656. return out, err
  1657. }
  1658. const opDescribePermissions = "DescribePermissions"
  1659. // DescribePermissionsRequest generates a "aws/request.Request" representing the
  1660. // client's request for the DescribePermissions operation. The "output" return
  1661. // value can be used to capture response data after the request's "Send" method
  1662. // is called.
  1663. //
  1664. // Creating a request object using this method should be used when you want to inject
  1665. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1666. // access properties on the request object before or after sending the request. If
  1667. // you just want the service response, call the DescribePermissions method directly
  1668. // instead.
  1669. //
  1670. // Note: You must call the "Send" method on the returned request object in order
  1671. // to execute the request.
  1672. //
  1673. // // Example sending a request using the DescribePermissionsRequest method.
  1674. // req, resp := client.DescribePermissionsRequest(params)
  1675. //
  1676. // err := req.Send()
  1677. // if err == nil { // resp is now filled
  1678. // fmt.Println(resp)
  1679. // }
  1680. //
  1681. func (c *OpsWorks) DescribePermissionsRequest(input *DescribePermissionsInput) (req *request.Request, output *DescribePermissionsOutput) {
  1682. op := &request.Operation{
  1683. Name: opDescribePermissions,
  1684. HTTPMethod: "POST",
  1685. HTTPPath: "/",
  1686. }
  1687. if input == nil {
  1688. input = &DescribePermissionsInput{}
  1689. }
  1690. req = c.newRequest(op, input, output)
  1691. output = &DescribePermissionsOutput{}
  1692. req.Data = output
  1693. return
  1694. }
  1695. // Describes the permissions for a specified stack.
  1696. //
  1697. // Required Permissions: To use this action, an IAM user must have a Manage
  1698. // permissions level for the stack, or an attached policy that explicitly grants
  1699. // permissions. For more information on user permissions, see Managing User
  1700. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1701. func (c *OpsWorks) DescribePermissions(input *DescribePermissionsInput) (*DescribePermissionsOutput, error) {
  1702. req, out := c.DescribePermissionsRequest(input)
  1703. err := req.Send()
  1704. return out, err
  1705. }
  1706. const opDescribeRaidArrays = "DescribeRaidArrays"
  1707. // DescribeRaidArraysRequest generates a "aws/request.Request" representing the
  1708. // client's request for the DescribeRaidArrays operation. The "output" return
  1709. // value can be used to capture response data after the request's "Send" method
  1710. // is called.
  1711. //
  1712. // Creating a request object using this method should be used when you want to inject
  1713. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1714. // access properties on the request object before or after sending the request. If
  1715. // you just want the service response, call the DescribeRaidArrays method directly
  1716. // instead.
  1717. //
  1718. // Note: You must call the "Send" method on the returned request object in order
  1719. // to execute the request.
  1720. //
  1721. // // Example sending a request using the DescribeRaidArraysRequest method.
  1722. // req, resp := client.DescribeRaidArraysRequest(params)
  1723. //
  1724. // err := req.Send()
  1725. // if err == nil { // resp is now filled
  1726. // fmt.Println(resp)
  1727. // }
  1728. //
  1729. func (c *OpsWorks) DescribeRaidArraysRequest(input *DescribeRaidArraysInput) (req *request.Request, output *DescribeRaidArraysOutput) {
  1730. op := &request.Operation{
  1731. Name: opDescribeRaidArrays,
  1732. HTTPMethod: "POST",
  1733. HTTPPath: "/",
  1734. }
  1735. if input == nil {
  1736. input = &DescribeRaidArraysInput{}
  1737. }
  1738. req = c.newRequest(op, input, output)
  1739. output = &DescribeRaidArraysOutput{}
  1740. req.Data = output
  1741. return
  1742. }
  1743. // Describe an instance's RAID arrays.
  1744. //
  1745. // You must specify at least one of the parameters.
  1746. //
  1747. // Required Permissions: To use this action, an IAM user must have a Show,
  1748. // Deploy, or Manage permissions level for the stack, or an attached policy
  1749. // that explicitly grants permissions. For more information on user permissions,
  1750. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1751. func (c *OpsWorks) DescribeRaidArrays(input *DescribeRaidArraysInput) (*DescribeRaidArraysOutput, error) {
  1752. req, out := c.DescribeRaidArraysRequest(input)
  1753. err := req.Send()
  1754. return out, err
  1755. }
  1756. const opDescribeRdsDbInstances = "DescribeRdsDbInstances"
  1757. // DescribeRdsDbInstancesRequest generates a "aws/request.Request" representing the
  1758. // client's request for the DescribeRdsDbInstances operation. The "output" return
  1759. // value can be used to capture response data after the request's "Send" method
  1760. // is called.
  1761. //
  1762. // Creating a request object using this method should be used when you want to inject
  1763. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1764. // access properties on the request object before or after sending the request. If
  1765. // you just want the service response, call the DescribeRdsDbInstances method directly
  1766. // instead.
  1767. //
  1768. // Note: You must call the "Send" method on the returned request object in order
  1769. // to execute the request.
  1770. //
  1771. // // Example sending a request using the DescribeRdsDbInstancesRequest method.
  1772. // req, resp := client.DescribeRdsDbInstancesRequest(params)
  1773. //
  1774. // err := req.Send()
  1775. // if err == nil { // resp is now filled
  1776. // fmt.Println(resp)
  1777. // }
  1778. //
  1779. func (c *OpsWorks) DescribeRdsDbInstancesRequest(input *DescribeRdsDbInstancesInput) (req *request.Request, output *DescribeRdsDbInstancesOutput) {
  1780. op := &request.Operation{
  1781. Name: opDescribeRdsDbInstances,
  1782. HTTPMethod: "POST",
  1783. HTTPPath: "/",
  1784. }
  1785. if input == nil {
  1786. input = &DescribeRdsDbInstancesInput{}
  1787. }
  1788. req = c.newRequest(op, input, output)
  1789. output = &DescribeRdsDbInstancesOutput{}
  1790. req.Data = output
  1791. return
  1792. }
  1793. // Describes Amazon RDS instances.
  1794. //
  1795. // Required Permissions: To use this action, an IAM user must have a Show,
  1796. // Deploy, or Manage permissions level for the stack, or an attached policy
  1797. // that explicitly grants permissions. For more information on user permissions,
  1798. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1799. func (c *OpsWorks) DescribeRdsDbInstances(input *DescribeRdsDbInstancesInput) (*DescribeRdsDbInstancesOutput, error) {
  1800. req, out := c.DescribeRdsDbInstancesRequest(input)
  1801. err := req.Send()
  1802. return out, err
  1803. }
  1804. const opDescribeServiceErrors = "DescribeServiceErrors"
  1805. // DescribeServiceErrorsRequest generates a "aws/request.Request" representing the
  1806. // client's request for the DescribeServiceErrors operation. The "output" return
  1807. // value can be used to capture response data after the request's "Send" method
  1808. // is called.
  1809. //
  1810. // Creating a request object using this method should be used when you want to inject
  1811. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1812. // access properties on the request object before or after sending the request. If
  1813. // you just want the service response, call the DescribeServiceErrors method directly
  1814. // instead.
  1815. //
  1816. // Note: You must call the "Send" method on the returned request object in order
  1817. // to execute the request.
  1818. //
  1819. // // Example sending a request using the DescribeServiceErrorsRequest method.
  1820. // req, resp := client.DescribeServiceErrorsRequest(params)
  1821. //
  1822. // err := req.Send()
  1823. // if err == nil { // resp is now filled
  1824. // fmt.Println(resp)
  1825. // }
  1826. //
  1827. func (c *OpsWorks) DescribeServiceErrorsRequest(input *DescribeServiceErrorsInput) (req *request.Request, output *DescribeServiceErrorsOutput) {
  1828. op := &request.Operation{
  1829. Name: opDescribeServiceErrors,
  1830. HTTPMethod: "POST",
  1831. HTTPPath: "/",
  1832. }
  1833. if input == nil {
  1834. input = &DescribeServiceErrorsInput{}
  1835. }
  1836. req = c.newRequest(op, input, output)
  1837. output = &DescribeServiceErrorsOutput{}
  1838. req.Data = output
  1839. return
  1840. }
  1841. // Describes AWS OpsWorks service errors.
  1842. //
  1843. // Required Permissions: To use this action, an IAM user must have a Show,
  1844. // Deploy, or Manage permissions level for the stack, or an attached policy
  1845. // that explicitly grants permissions. For more information on user permissions,
  1846. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1847. func (c *OpsWorks) DescribeServiceErrors(input *DescribeServiceErrorsInput) (*DescribeServiceErrorsOutput, error) {
  1848. req, out := c.DescribeServiceErrorsRequest(input)
  1849. err := req.Send()
  1850. return out, err
  1851. }
  1852. const opDescribeStackProvisioningParameters = "DescribeStackProvisioningParameters"
  1853. // DescribeStackProvisioningParametersRequest generates a "aws/request.Request" representing the
  1854. // client's request for the DescribeStackProvisioningParameters operation. The "output" return
  1855. // value can be used to capture response data after the request's "Send" method
  1856. // is called.
  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 DescribeStackProvisioningParameters 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 DescribeStackProvisioningParametersRequest method.
  1868. // req, resp := client.DescribeStackProvisioningParametersRequest(params)
  1869. //
  1870. // err := req.Send()
  1871. // if err == nil { // resp is now filled
  1872. // fmt.Println(resp)
  1873. // }
  1874. //
  1875. func (c *OpsWorks) DescribeStackProvisioningParametersRequest(input *DescribeStackProvisioningParametersInput) (req *request.Request, output *DescribeStackProvisioningParametersOutput) {
  1876. op := &request.Operation{
  1877. Name: opDescribeStackProvisioningParameters,
  1878. HTTPMethod: "POST",
  1879. HTTPPath: "/",
  1880. }
  1881. if input == nil {
  1882. input = &DescribeStackProvisioningParametersInput{}
  1883. }
  1884. req = c.newRequest(op, input, output)
  1885. output = &DescribeStackProvisioningParametersOutput{}
  1886. req.Data = output
  1887. return
  1888. }
  1889. // Requests a description of a stack's provisioning parameters.
  1890. //
  1891. // Required Permissions: To use this action, an IAM user must have a Show,
  1892. // Deploy, or Manage permissions level for the stack or an attached policy that
  1893. // explicitly grants permissions. For more information on user permissions,
  1894. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1895. func (c *OpsWorks) DescribeStackProvisioningParameters(input *DescribeStackProvisioningParametersInput) (*DescribeStackProvisioningParametersOutput, error) {
  1896. req, out := c.DescribeStackProvisioningParametersRequest(input)
  1897. err := req.Send()
  1898. return out, err
  1899. }
  1900. const opDescribeStackSummary = "DescribeStackSummary"
  1901. // DescribeStackSummaryRequest generates a "aws/request.Request" representing the
  1902. // client's request for the DescribeStackSummary operation. The "output" return
  1903. // value can be used to capture response data after the request's "Send" method
  1904. // is called.
  1905. //
  1906. // Creating a request object using this method should be used when you want to inject
  1907. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1908. // access properties on the request object before or after sending the request. If
  1909. // you just want the service response, call the DescribeStackSummary method directly
  1910. // instead.
  1911. //
  1912. // Note: You must call the "Send" method on the returned request object in order
  1913. // to execute the request.
  1914. //
  1915. // // Example sending a request using the DescribeStackSummaryRequest method.
  1916. // req, resp := client.DescribeStackSummaryRequest(params)
  1917. //
  1918. // err := req.Send()
  1919. // if err == nil { // resp is now filled
  1920. // fmt.Println(resp)
  1921. // }
  1922. //
  1923. func (c *OpsWorks) DescribeStackSummaryRequest(input *DescribeStackSummaryInput) (req *request.Request, output *DescribeStackSummaryOutput) {
  1924. op := &request.Operation{
  1925. Name: opDescribeStackSummary,
  1926. HTTPMethod: "POST",
  1927. HTTPPath: "/",
  1928. }
  1929. if input == nil {
  1930. input = &DescribeStackSummaryInput{}
  1931. }
  1932. req = c.newRequest(op, input, output)
  1933. output = &DescribeStackSummaryOutput{}
  1934. req.Data = output
  1935. return
  1936. }
  1937. // Describes the number of layers and apps in a specified stack, and the number
  1938. // of instances in each state, such as running_setup or online.
  1939. //
  1940. // Required Permissions: To use this action, an IAM user must have a Show,
  1941. // Deploy, or Manage permissions level for the stack, or an attached policy
  1942. // that explicitly grants permissions. For more information on user permissions,
  1943. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1944. func (c *OpsWorks) DescribeStackSummary(input *DescribeStackSummaryInput) (*DescribeStackSummaryOutput, error) {
  1945. req, out := c.DescribeStackSummaryRequest(input)
  1946. err := req.Send()
  1947. return out, err
  1948. }
  1949. const opDescribeStacks = "DescribeStacks"
  1950. // DescribeStacksRequest generates a "aws/request.Request" representing the
  1951. // client's request for the DescribeStacks operation. The "output" return
  1952. // value can be used to capture response data after the request's "Send" method
  1953. // is called.
  1954. //
  1955. // Creating a request object using this method should be used when you want to inject
  1956. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1957. // access properties on the request object before or after sending the request. If
  1958. // you just want the service response, call the DescribeStacks method directly
  1959. // instead.
  1960. //
  1961. // Note: You must call the "Send" method on the returned request object in order
  1962. // to execute the request.
  1963. //
  1964. // // Example sending a request using the DescribeStacksRequest method.
  1965. // req, resp := client.DescribeStacksRequest(params)
  1966. //
  1967. // err := req.Send()
  1968. // if err == nil { // resp is now filled
  1969. // fmt.Println(resp)
  1970. // }
  1971. //
  1972. func (c *OpsWorks) DescribeStacksRequest(input *DescribeStacksInput) (req *request.Request, output *DescribeStacksOutput) {
  1973. op := &request.Operation{
  1974. Name: opDescribeStacks,
  1975. HTTPMethod: "POST",
  1976. HTTPPath: "/",
  1977. }
  1978. if input == nil {
  1979. input = &DescribeStacksInput{}
  1980. }
  1981. req = c.newRequest(op, input, output)
  1982. output = &DescribeStacksOutput{}
  1983. req.Data = output
  1984. return
  1985. }
  1986. // Requests a description of one or more stacks.
  1987. //
  1988. // Required Permissions: To use this action, an IAM user must have a Show,
  1989. // Deploy, or Manage permissions level for the stack, or an attached policy
  1990. // that explicitly grants permissions. For more information on user permissions,
  1991. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  1992. func (c *OpsWorks) DescribeStacks(input *DescribeStacksInput) (*DescribeStacksOutput, error) {
  1993. req, out := c.DescribeStacksRequest(input)
  1994. err := req.Send()
  1995. return out, err
  1996. }
  1997. const opDescribeTimeBasedAutoScaling = "DescribeTimeBasedAutoScaling"
  1998. // DescribeTimeBasedAutoScalingRequest generates a "aws/request.Request" representing the
  1999. // client's request for the DescribeTimeBasedAutoScaling operation. The "output" return
  2000. // value can be used to capture response data after the request's "Send" method
  2001. // is called.
  2002. //
  2003. // Creating a request object using this method should be used when you want to inject
  2004. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2005. // access properties on the request object before or after sending the request. If
  2006. // you just want the service response, call the DescribeTimeBasedAutoScaling method directly
  2007. // instead.
  2008. //
  2009. // Note: You must call the "Send" method on the returned request object in order
  2010. // to execute the request.
  2011. //
  2012. // // Example sending a request using the DescribeTimeBasedAutoScalingRequest method.
  2013. // req, resp := client.DescribeTimeBasedAutoScalingRequest(params)
  2014. //
  2015. // err := req.Send()
  2016. // if err == nil { // resp is now filled
  2017. // fmt.Println(resp)
  2018. // }
  2019. //
  2020. func (c *OpsWorks) DescribeTimeBasedAutoScalingRequest(input *DescribeTimeBasedAutoScalingInput) (req *request.Request, output *DescribeTimeBasedAutoScalingOutput) {
  2021. op := &request.Operation{
  2022. Name: opDescribeTimeBasedAutoScaling,
  2023. HTTPMethod: "POST",
  2024. HTTPPath: "/",
  2025. }
  2026. if input == nil {
  2027. input = &DescribeTimeBasedAutoScalingInput{}
  2028. }
  2029. req = c.newRequest(op, input, output)
  2030. output = &DescribeTimeBasedAutoScalingOutput{}
  2031. req.Data = output
  2032. return
  2033. }
  2034. // Describes time-based auto scaling configurations for specified instances.
  2035. //
  2036. // You must specify at least one of the parameters.
  2037. //
  2038. // Required Permissions: To use this action, an IAM user must have a Show,
  2039. // Deploy, or Manage permissions level for the stack, or an attached policy
  2040. // that explicitly grants permissions. For more information on user permissions,
  2041. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2042. func (c *OpsWorks) DescribeTimeBasedAutoScaling(input *DescribeTimeBasedAutoScalingInput) (*DescribeTimeBasedAutoScalingOutput, error) {
  2043. req, out := c.DescribeTimeBasedAutoScalingRequest(input)
  2044. err := req.Send()
  2045. return out, err
  2046. }
  2047. const opDescribeUserProfiles = "DescribeUserProfiles"
  2048. // DescribeUserProfilesRequest generates a "aws/request.Request" representing the
  2049. // client's request for the DescribeUserProfiles operation. The "output" return
  2050. // value can be used to capture response data after the request's "Send" method
  2051. // is called.
  2052. //
  2053. // Creating a request object using this method should be used when you want to inject
  2054. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2055. // access properties on the request object before or after sending the request. If
  2056. // you just want the service response, call the DescribeUserProfiles method directly
  2057. // instead.
  2058. //
  2059. // Note: You must call the "Send" method on the returned request object in order
  2060. // to execute the request.
  2061. //
  2062. // // Example sending a request using the DescribeUserProfilesRequest method.
  2063. // req, resp := client.DescribeUserProfilesRequest(params)
  2064. //
  2065. // err := req.Send()
  2066. // if err == nil { // resp is now filled
  2067. // fmt.Println(resp)
  2068. // }
  2069. //
  2070. func (c *OpsWorks) DescribeUserProfilesRequest(input *DescribeUserProfilesInput) (req *request.Request, output *DescribeUserProfilesOutput) {
  2071. op := &request.Operation{
  2072. Name: opDescribeUserProfiles,
  2073. HTTPMethod: "POST",
  2074. HTTPPath: "/",
  2075. }
  2076. if input == nil {
  2077. input = &DescribeUserProfilesInput{}
  2078. }
  2079. req = c.newRequest(op, input, output)
  2080. output = &DescribeUserProfilesOutput{}
  2081. req.Data = output
  2082. return
  2083. }
  2084. // Describe specified users.
  2085. //
  2086. // Required Permissions: To use this action, an IAM user must have an attached
  2087. // policy that explicitly grants permissions. For more information on user permissions,
  2088. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2089. func (c *OpsWorks) DescribeUserProfiles(input *DescribeUserProfilesInput) (*DescribeUserProfilesOutput, error) {
  2090. req, out := c.DescribeUserProfilesRequest(input)
  2091. err := req.Send()
  2092. return out, err
  2093. }
  2094. const opDescribeVolumes = "DescribeVolumes"
  2095. // DescribeVolumesRequest generates a "aws/request.Request" representing the
  2096. // client's request for the DescribeVolumes operation. The "output" return
  2097. // value can be used to capture response data after the request's "Send" method
  2098. // is called.
  2099. //
  2100. // Creating a request object using this method should be used when you want to inject
  2101. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2102. // access properties on the request object before or after sending the request. If
  2103. // you just want the service response, call the DescribeVolumes method directly
  2104. // instead.
  2105. //
  2106. // Note: You must call the "Send" method on the returned request object in order
  2107. // to execute the request.
  2108. //
  2109. // // Example sending a request using the DescribeVolumesRequest method.
  2110. // req, resp := client.DescribeVolumesRequest(params)
  2111. //
  2112. // err := req.Send()
  2113. // if err == nil { // resp is now filled
  2114. // fmt.Println(resp)
  2115. // }
  2116. //
  2117. func (c *OpsWorks) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request.Request, output *DescribeVolumesOutput) {
  2118. op := &request.Operation{
  2119. Name: opDescribeVolumes,
  2120. HTTPMethod: "POST",
  2121. HTTPPath: "/",
  2122. }
  2123. if input == nil {
  2124. input = &DescribeVolumesInput{}
  2125. }
  2126. req = c.newRequest(op, input, output)
  2127. output = &DescribeVolumesOutput{}
  2128. req.Data = output
  2129. return
  2130. }
  2131. // Describes an instance's Amazon EBS volumes.
  2132. //
  2133. // You must specify at least one of the parameters.
  2134. //
  2135. // Required Permissions: To use this action, an IAM user must have a Show,
  2136. // Deploy, or Manage permissions level for the stack, or an attached policy
  2137. // that explicitly grants permissions. For more information on user permissions,
  2138. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2139. func (c *OpsWorks) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) {
  2140. req, out := c.DescribeVolumesRequest(input)
  2141. err := req.Send()
  2142. return out, err
  2143. }
  2144. const opDetachElasticLoadBalancer = "DetachElasticLoadBalancer"
  2145. // DetachElasticLoadBalancerRequest generates a "aws/request.Request" representing the
  2146. // client's request for the DetachElasticLoadBalancer operation. The "output" return
  2147. // value can be used to capture response data after the request's "Send" method
  2148. // is called.
  2149. //
  2150. // Creating a request object using this method should be used when you want to inject
  2151. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2152. // access properties on the request object before or after sending the request. If
  2153. // you just want the service response, call the DetachElasticLoadBalancer method directly
  2154. // instead.
  2155. //
  2156. // Note: You must call the "Send" method on the returned request object in order
  2157. // to execute the request.
  2158. //
  2159. // // Example sending a request using the DetachElasticLoadBalancerRequest method.
  2160. // req, resp := client.DetachElasticLoadBalancerRequest(params)
  2161. //
  2162. // err := req.Send()
  2163. // if err == nil { // resp is now filled
  2164. // fmt.Println(resp)
  2165. // }
  2166. //
  2167. func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBalancerInput) (req *request.Request, output *DetachElasticLoadBalancerOutput) {
  2168. op := &request.Operation{
  2169. Name: opDetachElasticLoadBalancer,
  2170. HTTPMethod: "POST",
  2171. HTTPPath: "/",
  2172. }
  2173. if input == nil {
  2174. input = &DetachElasticLoadBalancerInput{}
  2175. }
  2176. req = c.newRequest(op, input, output)
  2177. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2178. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2179. output = &DetachElasticLoadBalancerOutput{}
  2180. req.Data = output
  2181. return
  2182. }
  2183. // Detaches a specified Elastic Load Balancing instance from its layer.
  2184. //
  2185. // Required Permissions: To use this action, an IAM user must have a Manage
  2186. // permissions level for the stack, or an attached policy that explicitly grants
  2187. // permissions. For more information on user permissions, see Managing User
  2188. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2189. func (c *OpsWorks) DetachElasticLoadBalancer(input *DetachElasticLoadBalancerInput) (*DetachElasticLoadBalancerOutput, error) {
  2190. req, out := c.DetachElasticLoadBalancerRequest(input)
  2191. err := req.Send()
  2192. return out, err
  2193. }
  2194. const opDisassociateElasticIp = "DisassociateElasticIp"
  2195. // DisassociateElasticIpRequest generates a "aws/request.Request" representing the
  2196. // client's request for the DisassociateElasticIp operation. The "output" return
  2197. // value can be used to capture response data after the request's "Send" method
  2198. // is called.
  2199. //
  2200. // Creating a request object using this method should be used when you want to inject
  2201. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2202. // access properties on the request object before or after sending the request. If
  2203. // you just want the service response, call the DisassociateElasticIp method directly
  2204. // instead.
  2205. //
  2206. // Note: You must call the "Send" method on the returned request object in order
  2207. // to execute the request.
  2208. //
  2209. // // Example sending a request using the DisassociateElasticIpRequest method.
  2210. // req, resp := client.DisassociateElasticIpRequest(params)
  2211. //
  2212. // err := req.Send()
  2213. // if err == nil { // resp is now filled
  2214. // fmt.Println(resp)
  2215. // }
  2216. //
  2217. func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInput) (req *request.Request, output *DisassociateElasticIpOutput) {
  2218. op := &request.Operation{
  2219. Name: opDisassociateElasticIp,
  2220. HTTPMethod: "POST",
  2221. HTTPPath: "/",
  2222. }
  2223. if input == nil {
  2224. input = &DisassociateElasticIpInput{}
  2225. }
  2226. req = c.newRequest(op, input, output)
  2227. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2228. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2229. output = &DisassociateElasticIpOutput{}
  2230. req.Data = output
  2231. return
  2232. }
  2233. // Disassociates an Elastic IP address from its instance. The address remains
  2234. // registered with the stack. For more information, see Resource Management
  2235. // (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  2236. //
  2237. // Required Permissions: To use this action, an IAM user must have a Manage
  2238. // permissions level for the stack, or an attached policy that explicitly grants
  2239. // permissions. For more information on user permissions, see Managing User
  2240. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2241. func (c *OpsWorks) DisassociateElasticIp(input *DisassociateElasticIpInput) (*DisassociateElasticIpOutput, error) {
  2242. req, out := c.DisassociateElasticIpRequest(input)
  2243. err := req.Send()
  2244. return out, err
  2245. }
  2246. const opGetHostnameSuggestion = "GetHostnameSuggestion"
  2247. // GetHostnameSuggestionRequest generates a "aws/request.Request" representing the
  2248. // client's request for the GetHostnameSuggestion operation. The "output" return
  2249. // value can be used to capture response data after the request's "Send" method
  2250. // is called.
  2251. //
  2252. // Creating a request object using this method should be used when you want to inject
  2253. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2254. // access properties on the request object before or after sending the request. If
  2255. // you just want the service response, call the GetHostnameSuggestion method directly
  2256. // instead.
  2257. //
  2258. // Note: You must call the "Send" method on the returned request object in order
  2259. // to execute the request.
  2260. //
  2261. // // Example sending a request using the GetHostnameSuggestionRequest method.
  2262. // req, resp := client.GetHostnameSuggestionRequest(params)
  2263. //
  2264. // err := req.Send()
  2265. // if err == nil { // resp is now filled
  2266. // fmt.Println(resp)
  2267. // }
  2268. //
  2269. func (c *OpsWorks) GetHostnameSuggestionRequest(input *GetHostnameSuggestionInput) (req *request.Request, output *GetHostnameSuggestionOutput) {
  2270. op := &request.Operation{
  2271. Name: opGetHostnameSuggestion,
  2272. HTTPMethod: "POST",
  2273. HTTPPath: "/",
  2274. }
  2275. if input == nil {
  2276. input = &GetHostnameSuggestionInput{}
  2277. }
  2278. req = c.newRequest(op, input, output)
  2279. output = &GetHostnameSuggestionOutput{}
  2280. req.Data = output
  2281. return
  2282. }
  2283. // Gets a generated host name for the specified layer, based on the current
  2284. // host name theme.
  2285. //
  2286. // Required Permissions: To use this action, an IAM user must have a Manage
  2287. // permissions level for the stack, or an attached policy that explicitly grants
  2288. // permissions. For more information on user permissions, see Managing User
  2289. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2290. func (c *OpsWorks) GetHostnameSuggestion(input *GetHostnameSuggestionInput) (*GetHostnameSuggestionOutput, error) {
  2291. req, out := c.GetHostnameSuggestionRequest(input)
  2292. err := req.Send()
  2293. return out, err
  2294. }
  2295. const opGrantAccess = "GrantAccess"
  2296. // GrantAccessRequest generates a "aws/request.Request" representing the
  2297. // client's request for the GrantAccess operation. The "output" return
  2298. // value can be used to capture response data after the request's "Send" method
  2299. // is called.
  2300. //
  2301. // Creating a request object using this method should be used when you want to inject
  2302. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2303. // access properties on the request object before or after sending the request. If
  2304. // you just want the service response, call the GrantAccess method directly
  2305. // instead.
  2306. //
  2307. // Note: You must call the "Send" method on the returned request object in order
  2308. // to execute the request.
  2309. //
  2310. // // Example sending a request using the GrantAccessRequest method.
  2311. // req, resp := client.GrantAccessRequest(params)
  2312. //
  2313. // err := req.Send()
  2314. // if err == nil { // resp is now filled
  2315. // fmt.Println(resp)
  2316. // }
  2317. //
  2318. func (c *OpsWorks) GrantAccessRequest(input *GrantAccessInput) (req *request.Request, output *GrantAccessOutput) {
  2319. op := &request.Operation{
  2320. Name: opGrantAccess,
  2321. HTTPMethod: "POST",
  2322. HTTPPath: "/",
  2323. }
  2324. if input == nil {
  2325. input = &GrantAccessInput{}
  2326. }
  2327. req = c.newRequest(op, input, output)
  2328. output = &GrantAccessOutput{}
  2329. req.Data = output
  2330. return
  2331. }
  2332. // This action can be used only with Windows stacks.
  2333. //
  2334. // Grants RDP access to a Windows instance for a specified time period.
  2335. func (c *OpsWorks) GrantAccess(input *GrantAccessInput) (*GrantAccessOutput, error) {
  2336. req, out := c.GrantAccessRequest(input)
  2337. err := req.Send()
  2338. return out, err
  2339. }
  2340. const opRebootInstance = "RebootInstance"
  2341. // RebootInstanceRequest generates a "aws/request.Request" representing the
  2342. // client's request for the RebootInstance operation. The "output" return
  2343. // value can be used to capture response data after the request's "Send" method
  2344. // is called.
  2345. //
  2346. // Creating a request object using this method should be used when you want to inject
  2347. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2348. // access properties on the request object before or after sending the request. If
  2349. // you just want the service response, call the RebootInstance method directly
  2350. // instead.
  2351. //
  2352. // Note: You must call the "Send" method on the returned request object in order
  2353. // to execute the request.
  2354. //
  2355. // // Example sending a request using the RebootInstanceRequest method.
  2356. // req, resp := client.RebootInstanceRequest(params)
  2357. //
  2358. // err := req.Send()
  2359. // if err == nil { // resp is now filled
  2360. // fmt.Println(resp)
  2361. // }
  2362. //
  2363. func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *request.Request, output *RebootInstanceOutput) {
  2364. op := &request.Operation{
  2365. Name: opRebootInstance,
  2366. HTTPMethod: "POST",
  2367. HTTPPath: "/",
  2368. }
  2369. if input == nil {
  2370. input = &RebootInstanceInput{}
  2371. }
  2372. req = c.newRequest(op, input, output)
  2373. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2374. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2375. output = &RebootInstanceOutput{}
  2376. req.Data = output
  2377. return
  2378. }
  2379. // Reboots a specified instance. For more information, see Starting, Stopping,
  2380. // and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html).
  2381. //
  2382. // Required Permissions: To use this action, an IAM user must have a Manage
  2383. // permissions level for the stack, or an attached policy that explicitly grants
  2384. // permissions. For more information on user permissions, see Managing User
  2385. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2386. func (c *OpsWorks) RebootInstance(input *RebootInstanceInput) (*RebootInstanceOutput, error) {
  2387. req, out := c.RebootInstanceRequest(input)
  2388. err := req.Send()
  2389. return out, err
  2390. }
  2391. const opRegisterEcsCluster = "RegisterEcsCluster"
  2392. // RegisterEcsClusterRequest generates a "aws/request.Request" representing the
  2393. // client's request for the RegisterEcsCluster operation. The "output" return
  2394. // value can be used to capture response data after the request's "Send" method
  2395. // is called.
  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 RegisterEcsCluster 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 RegisterEcsClusterRequest method.
  2407. // req, resp := client.RegisterEcsClusterRequest(params)
  2408. //
  2409. // err := req.Send()
  2410. // if err == nil { // resp is now filled
  2411. // fmt.Println(resp)
  2412. // }
  2413. //
  2414. func (c *OpsWorks) RegisterEcsClusterRequest(input *RegisterEcsClusterInput) (req *request.Request, output *RegisterEcsClusterOutput) {
  2415. op := &request.Operation{
  2416. Name: opRegisterEcsCluster,
  2417. HTTPMethod: "POST",
  2418. HTTPPath: "/",
  2419. }
  2420. if input == nil {
  2421. input = &RegisterEcsClusterInput{}
  2422. }
  2423. req = c.newRequest(op, input, output)
  2424. output = &RegisterEcsClusterOutput{}
  2425. req.Data = output
  2426. return
  2427. }
  2428. // Registers a specified Amazon ECS cluster with a stack. You can register only
  2429. // one cluster with a stack. A cluster can be registered with only one stack.
  2430. // For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-ecscluster.html).
  2431. //
  2432. // Required Permissions: To use this action, an IAM user must have a Manage
  2433. // permissions level for the stack or an attached policy that explicitly grants
  2434. // permissions. For more information on user permissions, see Managing User
  2435. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2436. func (c *OpsWorks) RegisterEcsCluster(input *RegisterEcsClusterInput) (*RegisterEcsClusterOutput, error) {
  2437. req, out := c.RegisterEcsClusterRequest(input)
  2438. err := req.Send()
  2439. return out, err
  2440. }
  2441. const opRegisterElasticIp = "RegisterElasticIp"
  2442. // RegisterElasticIpRequest generates a "aws/request.Request" representing the
  2443. // client's request for the RegisterElasticIp operation. The "output" return
  2444. // value can be used to capture response data after the request's "Send" method
  2445. // is called.
  2446. //
  2447. // Creating a request object using this method should be used when you want to inject
  2448. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2449. // access properties on the request object before or after sending the request. If
  2450. // you just want the service response, call the RegisterElasticIp method directly
  2451. // instead.
  2452. //
  2453. // Note: You must call the "Send" method on the returned request object in order
  2454. // to execute the request.
  2455. //
  2456. // // Example sending a request using the RegisterElasticIpRequest method.
  2457. // req, resp := client.RegisterElasticIpRequest(params)
  2458. //
  2459. // err := req.Send()
  2460. // if err == nil { // resp is now filled
  2461. // fmt.Println(resp)
  2462. // }
  2463. //
  2464. func (c *OpsWorks) RegisterElasticIpRequest(input *RegisterElasticIpInput) (req *request.Request, output *RegisterElasticIpOutput) {
  2465. op := &request.Operation{
  2466. Name: opRegisterElasticIp,
  2467. HTTPMethod: "POST",
  2468. HTTPPath: "/",
  2469. }
  2470. if input == nil {
  2471. input = &RegisterElasticIpInput{}
  2472. }
  2473. req = c.newRequest(op, input, output)
  2474. output = &RegisterElasticIpOutput{}
  2475. req.Data = output
  2476. return
  2477. }
  2478. // Registers an Elastic IP address with a specified stack. An address can be
  2479. // registered with only one stack at a time. If the address is already registered,
  2480. // you must first deregister it by calling DeregisterElasticIp. For more information,
  2481. // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  2482. //
  2483. // Required Permissions: To use this action, an IAM user must have a Manage
  2484. // permissions level for the stack, or an attached policy that explicitly grants
  2485. // permissions. For more information on user permissions, see Managing User
  2486. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2487. func (c *OpsWorks) RegisterElasticIp(input *RegisterElasticIpInput) (*RegisterElasticIpOutput, error) {
  2488. req, out := c.RegisterElasticIpRequest(input)
  2489. err := req.Send()
  2490. return out, err
  2491. }
  2492. const opRegisterInstance = "RegisterInstance"
  2493. // RegisterInstanceRequest generates a "aws/request.Request" representing the
  2494. // client's request for the RegisterInstance operation. The "output" return
  2495. // value can be used to capture response data after the request's "Send" method
  2496. // is called.
  2497. //
  2498. // Creating a request object using this method should be used when you want to inject
  2499. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2500. // access properties on the request object before or after sending the request. If
  2501. // you just want the service response, call the RegisterInstance method directly
  2502. // instead.
  2503. //
  2504. // Note: You must call the "Send" method on the returned request object in order
  2505. // to execute the request.
  2506. //
  2507. // // Example sending a request using the RegisterInstanceRequest method.
  2508. // req, resp := client.RegisterInstanceRequest(params)
  2509. //
  2510. // err := req.Send()
  2511. // if err == nil { // resp is now filled
  2512. // fmt.Println(resp)
  2513. // }
  2514. //
  2515. func (c *OpsWorks) RegisterInstanceRequest(input *RegisterInstanceInput) (req *request.Request, output *RegisterInstanceOutput) {
  2516. op := &request.Operation{
  2517. Name: opRegisterInstance,
  2518. HTTPMethod: "POST",
  2519. HTTPPath: "/",
  2520. }
  2521. if input == nil {
  2522. input = &RegisterInstanceInput{}
  2523. }
  2524. req = c.newRequest(op, input, output)
  2525. output = &RegisterInstanceOutput{}
  2526. req.Data = output
  2527. return
  2528. }
  2529. // Registers instances with a specified stack that were created outside of AWS
  2530. // OpsWorks.
  2531. //
  2532. // We do not recommend using this action to register instances. The complete
  2533. // registration operation has two primary steps, installing the AWS OpsWorks
  2534. // agent on the instance and registering the instance with the stack. RegisterInstance
  2535. // handles only the second step. You should instead use the AWS CLI register
  2536. // command, which performs the entire registration operation. For more information,
  2537. // see Registering an Instance with an AWS OpsWorks Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/registered-instances-register.html).
  2538. //
  2539. // Required Permissions: To use this action, an IAM user must have a Manage
  2540. // permissions level for the stack or an attached policy that explicitly grants
  2541. // permissions. For more information on user permissions, see Managing User
  2542. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2543. func (c *OpsWorks) RegisterInstance(input *RegisterInstanceInput) (*RegisterInstanceOutput, error) {
  2544. req, out := c.RegisterInstanceRequest(input)
  2545. err := req.Send()
  2546. return out, err
  2547. }
  2548. const opRegisterRdsDbInstance = "RegisterRdsDbInstance"
  2549. // RegisterRdsDbInstanceRequest generates a "aws/request.Request" representing the
  2550. // client's request for the RegisterRdsDbInstance operation. The "output" return
  2551. // value can be used to capture response data after the request's "Send" method
  2552. // is called.
  2553. //
  2554. // Creating a request object using this method should be used when you want to inject
  2555. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2556. // access properties on the request object before or after sending the request. If
  2557. // you just want the service response, call the RegisterRdsDbInstance method directly
  2558. // instead.
  2559. //
  2560. // Note: You must call the "Send" method on the returned request object in order
  2561. // to execute the request.
  2562. //
  2563. // // Example sending a request using the RegisterRdsDbInstanceRequest method.
  2564. // req, resp := client.RegisterRdsDbInstanceRequest(params)
  2565. //
  2566. // err := req.Send()
  2567. // if err == nil { // resp is now filled
  2568. // fmt.Println(resp)
  2569. // }
  2570. //
  2571. func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInput) (req *request.Request, output *RegisterRdsDbInstanceOutput) {
  2572. op := &request.Operation{
  2573. Name: opRegisterRdsDbInstance,
  2574. HTTPMethod: "POST",
  2575. HTTPPath: "/",
  2576. }
  2577. if input == nil {
  2578. input = &RegisterRdsDbInstanceInput{}
  2579. }
  2580. req = c.newRequest(op, input, output)
  2581. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2582. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2583. output = &RegisterRdsDbInstanceOutput{}
  2584. req.Data = output
  2585. return
  2586. }
  2587. // Registers an Amazon RDS instance with a stack.
  2588. //
  2589. // Required Permissions: To use this action, an IAM user must have a Manage
  2590. // permissions level for the stack, or an attached policy that explicitly grants
  2591. // permissions. For more information on user permissions, see Managing User
  2592. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2593. func (c *OpsWorks) RegisterRdsDbInstance(input *RegisterRdsDbInstanceInput) (*RegisterRdsDbInstanceOutput, error) {
  2594. req, out := c.RegisterRdsDbInstanceRequest(input)
  2595. err := req.Send()
  2596. return out, err
  2597. }
  2598. const opRegisterVolume = "RegisterVolume"
  2599. // RegisterVolumeRequest generates a "aws/request.Request" representing the
  2600. // client's request for the RegisterVolume operation. The "output" return
  2601. // value can be used to capture response data after the request's "Send" method
  2602. // is called.
  2603. //
  2604. // Creating a request object using this method should be used when you want to inject
  2605. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2606. // access properties on the request object before or after sending the request. If
  2607. // you just want the service response, call the RegisterVolume method directly
  2608. // instead.
  2609. //
  2610. // Note: You must call the "Send" method on the returned request object in order
  2611. // to execute the request.
  2612. //
  2613. // // Example sending a request using the RegisterVolumeRequest method.
  2614. // req, resp := client.RegisterVolumeRequest(params)
  2615. //
  2616. // err := req.Send()
  2617. // if err == nil { // resp is now filled
  2618. // fmt.Println(resp)
  2619. // }
  2620. //
  2621. func (c *OpsWorks) RegisterVolumeRequest(input *RegisterVolumeInput) (req *request.Request, output *RegisterVolumeOutput) {
  2622. op := &request.Operation{
  2623. Name: opRegisterVolume,
  2624. HTTPMethod: "POST",
  2625. HTTPPath: "/",
  2626. }
  2627. if input == nil {
  2628. input = &RegisterVolumeInput{}
  2629. }
  2630. req = c.newRequest(op, input, output)
  2631. output = &RegisterVolumeOutput{}
  2632. req.Data = output
  2633. return
  2634. }
  2635. // Registers an Amazon EBS volume with a specified stack. A volume can be registered
  2636. // with only one stack at a time. If the volume is already registered, you must
  2637. // first deregister it by calling DeregisterVolume. For more information, see
  2638. // Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  2639. //
  2640. // Required Permissions: To use this action, an IAM user must have a Manage
  2641. // permissions level for the stack, or an attached policy that explicitly grants
  2642. // permissions. For more information on user permissions, see Managing User
  2643. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2644. func (c *OpsWorks) RegisterVolume(input *RegisterVolumeInput) (*RegisterVolumeOutput, error) {
  2645. req, out := c.RegisterVolumeRequest(input)
  2646. err := req.Send()
  2647. return out, err
  2648. }
  2649. const opSetLoadBasedAutoScaling = "SetLoadBasedAutoScaling"
  2650. // SetLoadBasedAutoScalingRequest generates a "aws/request.Request" representing the
  2651. // client's request for the SetLoadBasedAutoScaling operation. The "output" return
  2652. // value can be used to capture response data after the request's "Send" method
  2653. // is called.
  2654. //
  2655. // Creating a request object using this method should be used when you want to inject
  2656. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2657. // access properties on the request object before or after sending the request. If
  2658. // you just want the service response, call the SetLoadBasedAutoScaling method directly
  2659. // instead.
  2660. //
  2661. // Note: You must call the "Send" method on the returned request object in order
  2662. // to execute the request.
  2663. //
  2664. // // Example sending a request using the SetLoadBasedAutoScalingRequest method.
  2665. // req, resp := client.SetLoadBasedAutoScalingRequest(params)
  2666. //
  2667. // err := req.Send()
  2668. // if err == nil { // resp is now filled
  2669. // fmt.Println(resp)
  2670. // }
  2671. //
  2672. func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScalingInput) (req *request.Request, output *SetLoadBasedAutoScalingOutput) {
  2673. op := &request.Operation{
  2674. Name: opSetLoadBasedAutoScaling,
  2675. HTTPMethod: "POST",
  2676. HTTPPath: "/",
  2677. }
  2678. if input == nil {
  2679. input = &SetLoadBasedAutoScalingInput{}
  2680. }
  2681. req = c.newRequest(op, input, output)
  2682. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2683. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2684. output = &SetLoadBasedAutoScalingOutput{}
  2685. req.Data = output
  2686. return
  2687. }
  2688. // Specify the load-based auto scaling configuration for a specified layer.
  2689. // For more information, see Managing Load with Time-based and Load-based Instances
  2690. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html).
  2691. //
  2692. // To use load-based auto scaling, you must create a set of load-based auto
  2693. // scaling instances. Load-based auto scaling operates only on the instances
  2694. // from that set, so you must ensure that you have created enough instances
  2695. // to handle the maximum anticipated load.
  2696. //
  2697. // Required Permissions: To use this action, an IAM user must have a Manage
  2698. // permissions level for the stack, or an attached policy that explicitly grants
  2699. // permissions. For more information on user permissions, see Managing User
  2700. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2701. func (c *OpsWorks) SetLoadBasedAutoScaling(input *SetLoadBasedAutoScalingInput) (*SetLoadBasedAutoScalingOutput, error) {
  2702. req, out := c.SetLoadBasedAutoScalingRequest(input)
  2703. err := req.Send()
  2704. return out, err
  2705. }
  2706. const opSetPermission = "SetPermission"
  2707. // SetPermissionRequest generates a "aws/request.Request" representing the
  2708. // client's request for the SetPermission operation. The "output" return
  2709. // value can be used to capture response data after the request's "Send" method
  2710. // is called.
  2711. //
  2712. // Creating a request object using this method should be used when you want to inject
  2713. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2714. // access properties on the request object before or after sending the request. If
  2715. // you just want the service response, call the SetPermission method directly
  2716. // instead.
  2717. //
  2718. // Note: You must call the "Send" method on the returned request object in order
  2719. // to execute the request.
  2720. //
  2721. // // Example sending a request using the SetPermissionRequest method.
  2722. // req, resp := client.SetPermissionRequest(params)
  2723. //
  2724. // err := req.Send()
  2725. // if err == nil { // resp is now filled
  2726. // fmt.Println(resp)
  2727. // }
  2728. //
  2729. func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request.Request, output *SetPermissionOutput) {
  2730. op := &request.Operation{
  2731. Name: opSetPermission,
  2732. HTTPMethod: "POST",
  2733. HTTPPath: "/",
  2734. }
  2735. if input == nil {
  2736. input = &SetPermissionInput{}
  2737. }
  2738. req = c.newRequest(op, input, output)
  2739. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2740. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2741. output = &SetPermissionOutput{}
  2742. req.Data = output
  2743. return
  2744. }
  2745. // Specifies a user's permissions. For more information, see Security and Permissions
  2746. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workingsecurity.html).
  2747. //
  2748. // Required Permissions: To use this action, an IAM user must have a Manage
  2749. // permissions level for the stack, or an attached policy that explicitly grants
  2750. // permissions. For more information on user permissions, see Managing User
  2751. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2752. func (c *OpsWorks) SetPermission(input *SetPermissionInput) (*SetPermissionOutput, error) {
  2753. req, out := c.SetPermissionRequest(input)
  2754. err := req.Send()
  2755. return out, err
  2756. }
  2757. const opSetTimeBasedAutoScaling = "SetTimeBasedAutoScaling"
  2758. // SetTimeBasedAutoScalingRequest generates a "aws/request.Request" representing the
  2759. // client's request for the SetTimeBasedAutoScaling operation. The "output" return
  2760. // value can be used to capture response data after the request's "Send" method
  2761. // is called.
  2762. //
  2763. // Creating a request object using this method should be used when you want to inject
  2764. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2765. // access properties on the request object before or after sending the request. If
  2766. // you just want the service response, call the SetTimeBasedAutoScaling method directly
  2767. // instead.
  2768. //
  2769. // Note: You must call the "Send" method on the returned request object in order
  2770. // to execute the request.
  2771. //
  2772. // // Example sending a request using the SetTimeBasedAutoScalingRequest method.
  2773. // req, resp := client.SetTimeBasedAutoScalingRequest(params)
  2774. //
  2775. // err := req.Send()
  2776. // if err == nil { // resp is now filled
  2777. // fmt.Println(resp)
  2778. // }
  2779. //
  2780. func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScalingInput) (req *request.Request, output *SetTimeBasedAutoScalingOutput) {
  2781. op := &request.Operation{
  2782. Name: opSetTimeBasedAutoScaling,
  2783. HTTPMethod: "POST",
  2784. HTTPPath: "/",
  2785. }
  2786. if input == nil {
  2787. input = &SetTimeBasedAutoScalingInput{}
  2788. }
  2789. req = c.newRequest(op, input, output)
  2790. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2791. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2792. output = &SetTimeBasedAutoScalingOutput{}
  2793. req.Data = output
  2794. return
  2795. }
  2796. // Specify the time-based auto scaling configuration for a specified instance.
  2797. // For more information, see Managing Load with Time-based and Load-based Instances
  2798. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autoscaling.html).
  2799. //
  2800. // Required Permissions: To use this action, an IAM user must have a Manage
  2801. // permissions level for the stack, or an attached policy that explicitly grants
  2802. // permissions. For more information on user permissions, see Managing User
  2803. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2804. func (c *OpsWorks) SetTimeBasedAutoScaling(input *SetTimeBasedAutoScalingInput) (*SetTimeBasedAutoScalingOutput, error) {
  2805. req, out := c.SetTimeBasedAutoScalingRequest(input)
  2806. err := req.Send()
  2807. return out, err
  2808. }
  2809. const opStartInstance = "StartInstance"
  2810. // StartInstanceRequest generates a "aws/request.Request" representing the
  2811. // client's request for the StartInstance operation. The "output" return
  2812. // value can be used to capture response data after the request's "Send" method
  2813. // is called.
  2814. //
  2815. // Creating a request object using this method should be used when you want to inject
  2816. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2817. // access properties on the request object before or after sending the request. If
  2818. // you just want the service response, call the StartInstance method directly
  2819. // instead.
  2820. //
  2821. // Note: You must call the "Send" method on the returned request object in order
  2822. // to execute the request.
  2823. //
  2824. // // Example sending a request using the StartInstanceRequest method.
  2825. // req, resp := client.StartInstanceRequest(params)
  2826. //
  2827. // err := req.Send()
  2828. // if err == nil { // resp is now filled
  2829. // fmt.Println(resp)
  2830. // }
  2831. //
  2832. func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request.Request, output *StartInstanceOutput) {
  2833. op := &request.Operation{
  2834. Name: opStartInstance,
  2835. HTTPMethod: "POST",
  2836. HTTPPath: "/",
  2837. }
  2838. if input == nil {
  2839. input = &StartInstanceInput{}
  2840. }
  2841. req = c.newRequest(op, input, output)
  2842. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2843. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2844. output = &StartInstanceOutput{}
  2845. req.Data = output
  2846. return
  2847. }
  2848. // Starts a specified instance. For more information, see Starting, Stopping,
  2849. // and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html).
  2850. //
  2851. // Required Permissions: To use this action, an IAM user must have a Manage
  2852. // permissions level for the stack, or an attached policy that explicitly grants
  2853. // permissions. For more information on user permissions, see Managing User
  2854. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2855. func (c *OpsWorks) StartInstance(input *StartInstanceInput) (*StartInstanceOutput, error) {
  2856. req, out := c.StartInstanceRequest(input)
  2857. err := req.Send()
  2858. return out, err
  2859. }
  2860. const opStartStack = "StartStack"
  2861. // StartStackRequest generates a "aws/request.Request" representing the
  2862. // client's request for the StartStack operation. The "output" return
  2863. // value can be used to capture response data after the request's "Send" method
  2864. // is called.
  2865. //
  2866. // Creating a request object using this method should be used when you want to inject
  2867. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2868. // access properties on the request object before or after sending the request. If
  2869. // you just want the service response, call the StartStack method directly
  2870. // instead.
  2871. //
  2872. // Note: You must call the "Send" method on the returned request object in order
  2873. // to execute the request.
  2874. //
  2875. // // Example sending a request using the StartStackRequest method.
  2876. // req, resp := client.StartStackRequest(params)
  2877. //
  2878. // err := req.Send()
  2879. // if err == nil { // resp is now filled
  2880. // fmt.Println(resp)
  2881. // }
  2882. //
  2883. func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Request, output *StartStackOutput) {
  2884. op := &request.Operation{
  2885. Name: opStartStack,
  2886. HTTPMethod: "POST",
  2887. HTTPPath: "/",
  2888. }
  2889. if input == nil {
  2890. input = &StartStackInput{}
  2891. }
  2892. req = c.newRequest(op, input, output)
  2893. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2894. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2895. output = &StartStackOutput{}
  2896. req.Data = output
  2897. return
  2898. }
  2899. // Starts a stack's instances.
  2900. //
  2901. // Required Permissions: To use this action, an IAM user must have a Manage
  2902. // permissions level for the stack, or an attached policy that explicitly grants
  2903. // permissions. For more information on user permissions, see Managing User
  2904. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2905. func (c *OpsWorks) StartStack(input *StartStackInput) (*StartStackOutput, error) {
  2906. req, out := c.StartStackRequest(input)
  2907. err := req.Send()
  2908. return out, err
  2909. }
  2910. const opStopInstance = "StopInstance"
  2911. // StopInstanceRequest generates a "aws/request.Request" representing the
  2912. // client's request for the StopInstance operation. The "output" return
  2913. // value can be used to capture response data after the request's "Send" method
  2914. // is called.
  2915. //
  2916. // Creating a request object using this method should be used when you want to inject
  2917. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2918. // access properties on the request object before or after sending the request. If
  2919. // you just want the service response, call the StopInstance method directly
  2920. // instead.
  2921. //
  2922. // Note: You must call the "Send" method on the returned request object in order
  2923. // to execute the request.
  2924. //
  2925. // // Example sending a request using the StopInstanceRequest method.
  2926. // req, resp := client.StopInstanceRequest(params)
  2927. //
  2928. // err := req.Send()
  2929. // if err == nil { // resp is now filled
  2930. // fmt.Println(resp)
  2931. // }
  2932. //
  2933. func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.Request, output *StopInstanceOutput) {
  2934. op := &request.Operation{
  2935. Name: opStopInstance,
  2936. HTTPMethod: "POST",
  2937. HTTPPath: "/",
  2938. }
  2939. if input == nil {
  2940. input = &StopInstanceInput{}
  2941. }
  2942. req = c.newRequest(op, input, output)
  2943. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2944. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2945. output = &StopInstanceOutput{}
  2946. req.Data = output
  2947. return
  2948. }
  2949. // Stops a specified instance. When you stop a standard instance, the data disappears
  2950. // and must be reinstalled when you restart the instance. You can stop an Amazon
  2951. // EBS-backed instance without losing data. For more information, see Starting,
  2952. // Stopping, and Rebooting Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-starting.html).
  2953. //
  2954. // Required Permissions: To use this action, an IAM user must have a Manage
  2955. // permissions level for the stack, or an attached policy that explicitly grants
  2956. // permissions. For more information on user permissions, see Managing User
  2957. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  2958. func (c *OpsWorks) StopInstance(input *StopInstanceInput) (*StopInstanceOutput, error) {
  2959. req, out := c.StopInstanceRequest(input)
  2960. err := req.Send()
  2961. return out, err
  2962. }
  2963. const opStopStack = "StopStack"
  2964. // StopStackRequest generates a "aws/request.Request" representing the
  2965. // client's request for the StopStack operation. The "output" return
  2966. // value can be used to capture response data after the request's "Send" method
  2967. // is called.
  2968. //
  2969. // Creating a request object using this method should be used when you want to inject
  2970. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2971. // access properties on the request object before or after sending the request. If
  2972. // you just want the service response, call the StopStack method directly
  2973. // instead.
  2974. //
  2975. // Note: You must call the "Send" method on the returned request object in order
  2976. // to execute the request.
  2977. //
  2978. // // Example sending a request using the StopStackRequest method.
  2979. // req, resp := client.StopStackRequest(params)
  2980. //
  2981. // err := req.Send()
  2982. // if err == nil { // resp is now filled
  2983. // fmt.Println(resp)
  2984. // }
  2985. //
  2986. func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request, output *StopStackOutput) {
  2987. op := &request.Operation{
  2988. Name: opStopStack,
  2989. HTTPMethod: "POST",
  2990. HTTPPath: "/",
  2991. }
  2992. if input == nil {
  2993. input = &StopStackInput{}
  2994. }
  2995. req = c.newRequest(op, input, output)
  2996. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  2997. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2998. output = &StopStackOutput{}
  2999. req.Data = output
  3000. return
  3001. }
  3002. // Stops a specified stack.
  3003. //
  3004. // Required Permissions: To use this action, an IAM user must have a Manage
  3005. // permissions level for the stack, or an attached policy that explicitly grants
  3006. // permissions. For more information on user permissions, see Managing User
  3007. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3008. func (c *OpsWorks) StopStack(input *StopStackInput) (*StopStackOutput, error) {
  3009. req, out := c.StopStackRequest(input)
  3010. err := req.Send()
  3011. return out, err
  3012. }
  3013. const opUnassignInstance = "UnassignInstance"
  3014. // UnassignInstanceRequest generates a "aws/request.Request" representing the
  3015. // client's request for the UnassignInstance operation. The "output" return
  3016. // value can be used to capture response data after the request's "Send" method
  3017. // is called.
  3018. //
  3019. // Creating a request object using this method should be used when you want to inject
  3020. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3021. // access properties on the request object before or after sending the request. If
  3022. // you just want the service response, call the UnassignInstance method directly
  3023. // instead.
  3024. //
  3025. // Note: You must call the "Send" method on the returned request object in order
  3026. // to execute the request.
  3027. //
  3028. // // Example sending a request using the UnassignInstanceRequest method.
  3029. // req, resp := client.UnassignInstanceRequest(params)
  3030. //
  3031. // err := req.Send()
  3032. // if err == nil { // resp is now filled
  3033. // fmt.Println(resp)
  3034. // }
  3035. //
  3036. func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *request.Request, output *UnassignInstanceOutput) {
  3037. op := &request.Operation{
  3038. Name: opUnassignInstance,
  3039. HTTPMethod: "POST",
  3040. HTTPPath: "/",
  3041. }
  3042. if input == nil {
  3043. input = &UnassignInstanceInput{}
  3044. }
  3045. req = c.newRequest(op, input, output)
  3046. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3047. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3048. output = &UnassignInstanceOutput{}
  3049. req.Data = output
  3050. return
  3051. }
  3052. // Unassigns a registered instance from all of it's layers. The instance remains
  3053. // in the stack as an unassigned instance and can be assigned to another layer,
  3054. // as needed. You cannot use this action with instances that were created with
  3055. // AWS OpsWorks.
  3056. //
  3057. // Required Permissions: To use this action, an IAM user must have a Manage
  3058. // permissions level for the stack or an attached policy that explicitly grants
  3059. // permissions. For more information on user permissions, see Managing User
  3060. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3061. func (c *OpsWorks) UnassignInstance(input *UnassignInstanceInput) (*UnassignInstanceOutput, error) {
  3062. req, out := c.UnassignInstanceRequest(input)
  3063. err := req.Send()
  3064. return out, err
  3065. }
  3066. const opUnassignVolume = "UnassignVolume"
  3067. // UnassignVolumeRequest generates a "aws/request.Request" representing the
  3068. // client's request for the UnassignVolume operation. The "output" return
  3069. // value can be used to capture response data after the request's "Send" method
  3070. // is called.
  3071. //
  3072. // Creating a request object using this method should be used when you want to inject
  3073. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3074. // access properties on the request object before or after sending the request. If
  3075. // you just want the service response, call the UnassignVolume method directly
  3076. // instead.
  3077. //
  3078. // Note: You must call the "Send" method on the returned request object in order
  3079. // to execute the request.
  3080. //
  3081. // // Example sending a request using the UnassignVolumeRequest method.
  3082. // req, resp := client.UnassignVolumeRequest(params)
  3083. //
  3084. // err := req.Send()
  3085. // if err == nil { // resp is now filled
  3086. // fmt.Println(resp)
  3087. // }
  3088. //
  3089. func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *request.Request, output *UnassignVolumeOutput) {
  3090. op := &request.Operation{
  3091. Name: opUnassignVolume,
  3092. HTTPMethod: "POST",
  3093. HTTPPath: "/",
  3094. }
  3095. if input == nil {
  3096. input = &UnassignVolumeInput{}
  3097. }
  3098. req = c.newRequest(op, input, output)
  3099. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3100. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3101. output = &UnassignVolumeOutput{}
  3102. req.Data = output
  3103. return
  3104. }
  3105. // Unassigns an assigned Amazon EBS volume. The volume remains registered with
  3106. // the stack. For more information, see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  3107. //
  3108. // Required Permissions: To use this action, an IAM user must have a Manage
  3109. // permissions level for the stack, or an attached policy that explicitly grants
  3110. // permissions. For more information on user permissions, see Managing User
  3111. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3112. func (c *OpsWorks) UnassignVolume(input *UnassignVolumeInput) (*UnassignVolumeOutput, error) {
  3113. req, out := c.UnassignVolumeRequest(input)
  3114. err := req.Send()
  3115. return out, err
  3116. }
  3117. const opUpdateApp = "UpdateApp"
  3118. // UpdateAppRequest generates a "aws/request.Request" representing the
  3119. // client's request for the UpdateApp operation. The "output" return
  3120. // value can be used to capture response data after the request's "Send" method
  3121. // is called.
  3122. //
  3123. // Creating a request object using this method should be used when you want to inject
  3124. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3125. // access properties on the request object before or after sending the request. If
  3126. // you just want the service response, call the UpdateApp method directly
  3127. // instead.
  3128. //
  3129. // Note: You must call the "Send" method on the returned request object in order
  3130. // to execute the request.
  3131. //
  3132. // // Example sending a request using the UpdateAppRequest method.
  3133. // req, resp := client.UpdateAppRequest(params)
  3134. //
  3135. // err := req.Send()
  3136. // if err == nil { // resp is now filled
  3137. // fmt.Println(resp)
  3138. // }
  3139. //
  3140. func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, output *UpdateAppOutput) {
  3141. op := &request.Operation{
  3142. Name: opUpdateApp,
  3143. HTTPMethod: "POST",
  3144. HTTPPath: "/",
  3145. }
  3146. if input == nil {
  3147. input = &UpdateAppInput{}
  3148. }
  3149. req = c.newRequest(op, input, output)
  3150. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3151. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3152. output = &UpdateAppOutput{}
  3153. req.Data = output
  3154. return
  3155. }
  3156. // Updates a specified app.
  3157. //
  3158. // Required Permissions: To use this action, an IAM user must have a Deploy
  3159. // or Manage permissions level for the stack, or an attached policy that explicitly
  3160. // grants permissions. For more information on user permissions, see Managing
  3161. // User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3162. func (c *OpsWorks) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) {
  3163. req, out := c.UpdateAppRequest(input)
  3164. err := req.Send()
  3165. return out, err
  3166. }
  3167. const opUpdateElasticIp = "UpdateElasticIp"
  3168. // UpdateElasticIpRequest generates a "aws/request.Request" representing the
  3169. // client's request for the UpdateElasticIp operation. The "output" return
  3170. // value can be used to capture response data after the request's "Send" method
  3171. // is called.
  3172. //
  3173. // Creating a request object using this method should be used when you want to inject
  3174. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3175. // access properties on the request object before or after sending the request. If
  3176. // you just want the service response, call the UpdateElasticIp method directly
  3177. // instead.
  3178. //
  3179. // Note: You must call the "Send" method on the returned request object in order
  3180. // to execute the request.
  3181. //
  3182. // // Example sending a request using the UpdateElasticIpRequest method.
  3183. // req, resp := client.UpdateElasticIpRequest(params)
  3184. //
  3185. // err := req.Send()
  3186. // if err == nil { // resp is now filled
  3187. // fmt.Println(resp)
  3188. // }
  3189. //
  3190. func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *request.Request, output *UpdateElasticIpOutput) {
  3191. op := &request.Operation{
  3192. Name: opUpdateElasticIp,
  3193. HTTPMethod: "POST",
  3194. HTTPPath: "/",
  3195. }
  3196. if input == nil {
  3197. input = &UpdateElasticIpInput{}
  3198. }
  3199. req = c.newRequest(op, input, output)
  3200. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3201. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3202. output = &UpdateElasticIpOutput{}
  3203. req.Data = output
  3204. return
  3205. }
  3206. // Updates a registered Elastic IP address's name. For more information, see
  3207. // Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  3208. //
  3209. // Required Permissions: To use this action, an IAM user must have a Manage
  3210. // permissions level for the stack, or an attached policy that explicitly grants
  3211. // permissions. For more information on user permissions, see Managing User
  3212. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3213. func (c *OpsWorks) UpdateElasticIp(input *UpdateElasticIpInput) (*UpdateElasticIpOutput, error) {
  3214. req, out := c.UpdateElasticIpRequest(input)
  3215. err := req.Send()
  3216. return out, err
  3217. }
  3218. const opUpdateInstance = "UpdateInstance"
  3219. // UpdateInstanceRequest generates a "aws/request.Request" representing the
  3220. // client's request for the UpdateInstance operation. The "output" return
  3221. // value can be used to capture response data after the request's "Send" method
  3222. // is called.
  3223. //
  3224. // Creating a request object using this method should be used when you want to inject
  3225. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3226. // access properties on the request object before or after sending the request. If
  3227. // you just want the service response, call the UpdateInstance method directly
  3228. // instead.
  3229. //
  3230. // Note: You must call the "Send" method on the returned request object in order
  3231. // to execute the request.
  3232. //
  3233. // // Example sending a request using the UpdateInstanceRequest method.
  3234. // req, resp := client.UpdateInstanceRequest(params)
  3235. //
  3236. // err := req.Send()
  3237. // if err == nil { // resp is now filled
  3238. // fmt.Println(resp)
  3239. // }
  3240. //
  3241. func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *request.Request, output *UpdateInstanceOutput) {
  3242. op := &request.Operation{
  3243. Name: opUpdateInstance,
  3244. HTTPMethod: "POST",
  3245. HTTPPath: "/",
  3246. }
  3247. if input == nil {
  3248. input = &UpdateInstanceInput{}
  3249. }
  3250. req = c.newRequest(op, input, output)
  3251. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3252. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3253. output = &UpdateInstanceOutput{}
  3254. req.Data = output
  3255. return
  3256. }
  3257. // Updates a specified instance.
  3258. //
  3259. // Required Permissions: To use this action, an IAM user must have a Manage
  3260. // permissions level for the stack, or an attached policy that explicitly grants
  3261. // permissions. For more information on user permissions, see Managing User
  3262. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3263. func (c *OpsWorks) UpdateInstance(input *UpdateInstanceInput) (*UpdateInstanceOutput, error) {
  3264. req, out := c.UpdateInstanceRequest(input)
  3265. err := req.Send()
  3266. return out, err
  3267. }
  3268. const opUpdateLayer = "UpdateLayer"
  3269. // UpdateLayerRequest generates a "aws/request.Request" representing the
  3270. // client's request for the UpdateLayer operation. The "output" return
  3271. // value can be used to capture response data after the request's "Send" method
  3272. // is called.
  3273. //
  3274. // Creating a request object using this method should be used when you want to inject
  3275. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3276. // access properties on the request object before or after sending the request. If
  3277. // you just want the service response, call the UpdateLayer method directly
  3278. // instead.
  3279. //
  3280. // Note: You must call the "Send" method on the returned request object in order
  3281. // to execute the request.
  3282. //
  3283. // // Example sending a request using the UpdateLayerRequest method.
  3284. // req, resp := client.UpdateLayerRequest(params)
  3285. //
  3286. // err := req.Send()
  3287. // if err == nil { // resp is now filled
  3288. // fmt.Println(resp)
  3289. // }
  3290. //
  3291. func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Request, output *UpdateLayerOutput) {
  3292. op := &request.Operation{
  3293. Name: opUpdateLayer,
  3294. HTTPMethod: "POST",
  3295. HTTPPath: "/",
  3296. }
  3297. if input == nil {
  3298. input = &UpdateLayerInput{}
  3299. }
  3300. req = c.newRequest(op, input, output)
  3301. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3302. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3303. output = &UpdateLayerOutput{}
  3304. req.Data = output
  3305. return
  3306. }
  3307. // Updates a specified layer.
  3308. //
  3309. // Required Permissions: To use this action, an IAM user must have a Manage
  3310. // permissions level for the stack, or an attached policy that explicitly grants
  3311. // permissions. For more information on user permissions, see Managing User
  3312. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3313. func (c *OpsWorks) UpdateLayer(input *UpdateLayerInput) (*UpdateLayerOutput, error) {
  3314. req, out := c.UpdateLayerRequest(input)
  3315. err := req.Send()
  3316. return out, err
  3317. }
  3318. const opUpdateMyUserProfile = "UpdateMyUserProfile"
  3319. // UpdateMyUserProfileRequest generates a "aws/request.Request" representing the
  3320. // client's request for the UpdateMyUserProfile operation. The "output" return
  3321. // value can be used to capture response data after the request's "Send" method
  3322. // is called.
  3323. //
  3324. // Creating a request object using this method should be used when you want to inject
  3325. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3326. // access properties on the request object before or after sending the request. If
  3327. // you just want the service response, call the UpdateMyUserProfile method directly
  3328. // instead.
  3329. //
  3330. // Note: You must call the "Send" method on the returned request object in order
  3331. // to execute the request.
  3332. //
  3333. // // Example sending a request using the UpdateMyUserProfileRequest method.
  3334. // req, resp := client.UpdateMyUserProfileRequest(params)
  3335. //
  3336. // err := req.Send()
  3337. // if err == nil { // resp is now filled
  3338. // fmt.Println(resp)
  3339. // }
  3340. //
  3341. func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) (req *request.Request, output *UpdateMyUserProfileOutput) {
  3342. op := &request.Operation{
  3343. Name: opUpdateMyUserProfile,
  3344. HTTPMethod: "POST",
  3345. HTTPPath: "/",
  3346. }
  3347. if input == nil {
  3348. input = &UpdateMyUserProfileInput{}
  3349. }
  3350. req = c.newRequest(op, input, output)
  3351. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3352. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3353. output = &UpdateMyUserProfileOutput{}
  3354. req.Data = output
  3355. return
  3356. }
  3357. // Updates a user's SSH public key.
  3358. //
  3359. // Required Permissions: To use this action, an IAM user must have self-management
  3360. // enabled or an attached policy that explicitly grants permissions. For more
  3361. // information on user permissions, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3362. func (c *OpsWorks) UpdateMyUserProfile(input *UpdateMyUserProfileInput) (*UpdateMyUserProfileOutput, error) {
  3363. req, out := c.UpdateMyUserProfileRequest(input)
  3364. err := req.Send()
  3365. return out, err
  3366. }
  3367. const opUpdateRdsDbInstance = "UpdateRdsDbInstance"
  3368. // UpdateRdsDbInstanceRequest generates a "aws/request.Request" representing the
  3369. // client's request for the UpdateRdsDbInstance operation. The "output" return
  3370. // value can be used to capture response data after the request's "Send" method
  3371. // is called.
  3372. //
  3373. // Creating a request object using this method should be used when you want to inject
  3374. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3375. // access properties on the request object before or after sending the request. If
  3376. // you just want the service response, call the UpdateRdsDbInstance method directly
  3377. // instead.
  3378. //
  3379. // Note: You must call the "Send" method on the returned request object in order
  3380. // to execute the request.
  3381. //
  3382. // // Example sending a request using the UpdateRdsDbInstanceRequest method.
  3383. // req, resp := client.UpdateRdsDbInstanceRequest(params)
  3384. //
  3385. // err := req.Send()
  3386. // if err == nil { // resp is now filled
  3387. // fmt.Println(resp)
  3388. // }
  3389. //
  3390. func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) (req *request.Request, output *UpdateRdsDbInstanceOutput) {
  3391. op := &request.Operation{
  3392. Name: opUpdateRdsDbInstance,
  3393. HTTPMethod: "POST",
  3394. HTTPPath: "/",
  3395. }
  3396. if input == nil {
  3397. input = &UpdateRdsDbInstanceInput{}
  3398. }
  3399. req = c.newRequest(op, input, output)
  3400. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3401. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3402. output = &UpdateRdsDbInstanceOutput{}
  3403. req.Data = output
  3404. return
  3405. }
  3406. // Updates an Amazon RDS instance.
  3407. //
  3408. // Required Permissions: To use this action, an IAM user must have a Manage
  3409. // permissions level for the stack, or an attached policy that explicitly grants
  3410. // permissions. For more information on user permissions, see Managing User
  3411. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3412. func (c *OpsWorks) UpdateRdsDbInstance(input *UpdateRdsDbInstanceInput) (*UpdateRdsDbInstanceOutput, error) {
  3413. req, out := c.UpdateRdsDbInstanceRequest(input)
  3414. err := req.Send()
  3415. return out, err
  3416. }
  3417. const opUpdateStack = "UpdateStack"
  3418. // UpdateStackRequest generates a "aws/request.Request" representing the
  3419. // client's request for the UpdateStack operation. The "output" return
  3420. // value can be used to capture response data after the request's "Send" method
  3421. // is called.
  3422. //
  3423. // Creating a request object using this method should be used when you want to inject
  3424. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3425. // access properties on the request object before or after sending the request. If
  3426. // you just want the service response, call the UpdateStack method directly
  3427. // instead.
  3428. //
  3429. // Note: You must call the "Send" method on the returned request object in order
  3430. // to execute the request.
  3431. //
  3432. // // Example sending a request using the UpdateStackRequest method.
  3433. // req, resp := client.UpdateStackRequest(params)
  3434. //
  3435. // err := req.Send()
  3436. // if err == nil { // resp is now filled
  3437. // fmt.Println(resp)
  3438. // }
  3439. //
  3440. func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Request, output *UpdateStackOutput) {
  3441. op := &request.Operation{
  3442. Name: opUpdateStack,
  3443. HTTPMethod: "POST",
  3444. HTTPPath: "/",
  3445. }
  3446. if input == nil {
  3447. input = &UpdateStackInput{}
  3448. }
  3449. req = c.newRequest(op, input, output)
  3450. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3451. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3452. output = &UpdateStackOutput{}
  3453. req.Data = output
  3454. return
  3455. }
  3456. // Updates a specified stack.
  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. func (c *OpsWorks) UpdateStack(input *UpdateStackInput) (*UpdateStackOutput, error) {
  3463. req, out := c.UpdateStackRequest(input)
  3464. err := req.Send()
  3465. return out, err
  3466. }
  3467. const opUpdateUserProfile = "UpdateUserProfile"
  3468. // UpdateUserProfileRequest generates a "aws/request.Request" representing the
  3469. // client's request for the UpdateUserProfile operation. The "output" return
  3470. // value can be used to capture response data after the request's "Send" method
  3471. // is called.
  3472. //
  3473. // Creating a request object using this method should be used when you want to inject
  3474. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3475. // access properties on the request object before or after sending the request. If
  3476. // you just want the service response, call the UpdateUserProfile method directly
  3477. // instead.
  3478. //
  3479. // Note: You must call the "Send" method on the returned request object in order
  3480. // to execute the request.
  3481. //
  3482. // // Example sending a request using the UpdateUserProfileRequest method.
  3483. // req, resp := client.UpdateUserProfileRequest(params)
  3484. //
  3485. // err := req.Send()
  3486. // if err == nil { // resp is now filled
  3487. // fmt.Println(resp)
  3488. // }
  3489. //
  3490. func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req *request.Request, output *UpdateUserProfileOutput) {
  3491. op := &request.Operation{
  3492. Name: opUpdateUserProfile,
  3493. HTTPMethod: "POST",
  3494. HTTPPath: "/",
  3495. }
  3496. if input == nil {
  3497. input = &UpdateUserProfileInput{}
  3498. }
  3499. req = c.newRequest(op, input, output)
  3500. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3501. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3502. output = &UpdateUserProfileOutput{}
  3503. req.Data = output
  3504. return
  3505. }
  3506. // Updates a specified user profile.
  3507. //
  3508. // Required Permissions: To use this action, an IAM user must have an attached
  3509. // policy that explicitly grants permissions. For more information on user permissions,
  3510. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3511. func (c *OpsWorks) UpdateUserProfile(input *UpdateUserProfileInput) (*UpdateUserProfileOutput, error) {
  3512. req, out := c.UpdateUserProfileRequest(input)
  3513. err := req.Send()
  3514. return out, err
  3515. }
  3516. const opUpdateVolume = "UpdateVolume"
  3517. // UpdateVolumeRequest generates a "aws/request.Request" representing the
  3518. // client's request for the UpdateVolume operation. The "output" return
  3519. // value can be used to capture response data after the request's "Send" method
  3520. // is called.
  3521. //
  3522. // Creating a request object using this method should be used when you want to inject
  3523. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3524. // access properties on the request object before or after sending the request. If
  3525. // you just want the service response, call the UpdateVolume method directly
  3526. // instead.
  3527. //
  3528. // Note: You must call the "Send" method on the returned request object in order
  3529. // to execute the request.
  3530. //
  3531. // // Example sending a request using the UpdateVolumeRequest method.
  3532. // req, resp := client.UpdateVolumeRequest(params)
  3533. //
  3534. // err := req.Send()
  3535. // if err == nil { // resp is now filled
  3536. // fmt.Println(resp)
  3537. // }
  3538. //
  3539. func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.Request, output *UpdateVolumeOutput) {
  3540. op := &request.Operation{
  3541. Name: opUpdateVolume,
  3542. HTTPMethod: "POST",
  3543. HTTPPath: "/",
  3544. }
  3545. if input == nil {
  3546. input = &UpdateVolumeInput{}
  3547. }
  3548. req = c.newRequest(op, input, output)
  3549. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  3550. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3551. output = &UpdateVolumeOutput{}
  3552. req.Data = output
  3553. return
  3554. }
  3555. // Updates an Amazon EBS volume's name or mount point. For more information,
  3556. // see Resource Management (http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html).
  3557. //
  3558. // Required Permissions: To use this action, an IAM user must have a Manage
  3559. // permissions level for the stack, or an attached policy that explicitly grants
  3560. // permissions. For more information on user permissions, see Managing User
  3561. // Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  3562. func (c *OpsWorks) UpdateVolume(input *UpdateVolumeInput) (*UpdateVolumeOutput, error) {
  3563. req, out := c.UpdateVolumeRequest(input)
  3564. err := req.Send()
  3565. return out, err
  3566. }
  3567. // Describes an agent version.
  3568. type AgentVersion struct {
  3569. _ struct{} `type:"structure"`
  3570. // The configuration manager.
  3571. ConfigurationManager *StackConfigurationManager `type:"structure"`
  3572. // The agent version.
  3573. Version *string `type:"string"`
  3574. }
  3575. // String returns the string representation
  3576. func (s AgentVersion) String() string {
  3577. return awsutil.Prettify(s)
  3578. }
  3579. // GoString returns the string representation
  3580. func (s AgentVersion) GoString() string {
  3581. return s.String()
  3582. }
  3583. // A description of the app.
  3584. type App struct {
  3585. _ struct{} `type:"structure"`
  3586. // The app ID.
  3587. AppId *string `type:"string"`
  3588. // A Source object that describes the app repository.
  3589. AppSource *Source `type:"structure"`
  3590. // The stack attributes.
  3591. Attributes map[string]*string `type:"map"`
  3592. // When the app was created.
  3593. CreatedAt *string `type:"string"`
  3594. // The app's data sources.
  3595. DataSources []*DataSource `type:"list"`
  3596. // A description of the app.
  3597. Description *string `type:"string"`
  3598. // The app vhost settings with multiple domains separated by commas. For example:
  3599. // 'www.example.com, example.com'
  3600. Domains []*string `type:"list"`
  3601. // Whether to enable SSL for the app.
  3602. EnableSsl *bool `type:"boolean"`
  3603. // An array of EnvironmentVariable objects that specify environment variables
  3604. // to be associated with the app. After you deploy the app, these variables
  3605. // are defined on the associated app server instances. For more information,
  3606. // see Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).
  3607. //
  3608. // There is no specific limit on the number of environment variables. However,
  3609. // the size of the associated data structure - which includes the variable names,
  3610. // values, and protected flag values - cannot exceed 10 KB (10240 Bytes). This
  3611. // limit should accommodate most if not all use cases, but if you do exceed
  3612. // it, you will cause an exception (API) with an "Environment: is too large
  3613. // (maximum is 10KB)" message.
  3614. Environment []*EnvironmentVariable `type:"list"`
  3615. // The app name.
  3616. Name *string `type:"string"`
  3617. // The app's short name.
  3618. Shortname *string `type:"string"`
  3619. // An SslConfiguration object with the SSL configuration.
  3620. SslConfiguration *SslConfiguration `type:"structure"`
  3621. // The app stack ID.
  3622. StackId *string `type:"string"`
  3623. // The app type.
  3624. Type *string `type:"string" enum:"AppType"`
  3625. }
  3626. // String returns the string representation
  3627. func (s App) String() string {
  3628. return awsutil.Prettify(s)
  3629. }
  3630. // GoString returns the string representation
  3631. func (s App) GoString() string {
  3632. return s.String()
  3633. }
  3634. type AssignInstanceInput struct {
  3635. _ struct{} `type:"structure"`
  3636. // The instance ID.
  3637. InstanceId *string `type:"string" required:"true"`
  3638. // The layer ID, which must correspond to a custom layer. You cannot assign
  3639. // a registered instance to a built-in layer.
  3640. LayerIds []*string `type:"list" required:"true"`
  3641. }
  3642. // String returns the string representation
  3643. func (s AssignInstanceInput) String() string {
  3644. return awsutil.Prettify(s)
  3645. }
  3646. // GoString returns the string representation
  3647. func (s AssignInstanceInput) GoString() string {
  3648. return s.String()
  3649. }
  3650. // Validate inspects the fields of the type to determine if they are valid.
  3651. func (s *AssignInstanceInput) Validate() error {
  3652. invalidParams := request.ErrInvalidParams{Context: "AssignInstanceInput"}
  3653. if s.InstanceId == nil {
  3654. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  3655. }
  3656. if s.LayerIds == nil {
  3657. invalidParams.Add(request.NewErrParamRequired("LayerIds"))
  3658. }
  3659. if invalidParams.Len() > 0 {
  3660. return invalidParams
  3661. }
  3662. return nil
  3663. }
  3664. type AssignInstanceOutput struct {
  3665. _ struct{} `type:"structure"`
  3666. }
  3667. // String returns the string representation
  3668. func (s AssignInstanceOutput) String() string {
  3669. return awsutil.Prettify(s)
  3670. }
  3671. // GoString returns the string representation
  3672. func (s AssignInstanceOutput) GoString() string {
  3673. return s.String()
  3674. }
  3675. type AssignVolumeInput struct {
  3676. _ struct{} `type:"structure"`
  3677. // The instance ID.
  3678. InstanceId *string `type:"string"`
  3679. // The volume ID.
  3680. VolumeId *string `type:"string" required:"true"`
  3681. }
  3682. // String returns the string representation
  3683. func (s AssignVolumeInput) String() string {
  3684. return awsutil.Prettify(s)
  3685. }
  3686. // GoString returns the string representation
  3687. func (s AssignVolumeInput) GoString() string {
  3688. return s.String()
  3689. }
  3690. // Validate inspects the fields of the type to determine if they are valid.
  3691. func (s *AssignVolumeInput) Validate() error {
  3692. invalidParams := request.ErrInvalidParams{Context: "AssignVolumeInput"}
  3693. if s.VolumeId == nil {
  3694. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  3695. }
  3696. if invalidParams.Len() > 0 {
  3697. return invalidParams
  3698. }
  3699. return nil
  3700. }
  3701. type AssignVolumeOutput struct {
  3702. _ struct{} `type:"structure"`
  3703. }
  3704. // String returns the string representation
  3705. func (s AssignVolumeOutput) String() string {
  3706. return awsutil.Prettify(s)
  3707. }
  3708. // GoString returns the string representation
  3709. func (s AssignVolumeOutput) GoString() string {
  3710. return s.String()
  3711. }
  3712. type AssociateElasticIpInput struct {
  3713. _ struct{} `type:"structure"`
  3714. // The Elastic IP address.
  3715. ElasticIp *string `type:"string" required:"true"`
  3716. // The instance ID.
  3717. InstanceId *string `type:"string"`
  3718. }
  3719. // String returns the string representation
  3720. func (s AssociateElasticIpInput) String() string {
  3721. return awsutil.Prettify(s)
  3722. }
  3723. // GoString returns the string representation
  3724. func (s AssociateElasticIpInput) GoString() string {
  3725. return s.String()
  3726. }
  3727. // Validate inspects the fields of the type to determine if they are valid.
  3728. func (s *AssociateElasticIpInput) Validate() error {
  3729. invalidParams := request.ErrInvalidParams{Context: "AssociateElasticIpInput"}
  3730. if s.ElasticIp == nil {
  3731. invalidParams.Add(request.NewErrParamRequired("ElasticIp"))
  3732. }
  3733. if invalidParams.Len() > 0 {
  3734. return invalidParams
  3735. }
  3736. return nil
  3737. }
  3738. type AssociateElasticIpOutput struct {
  3739. _ struct{} `type:"structure"`
  3740. }
  3741. // String returns the string representation
  3742. func (s AssociateElasticIpOutput) String() string {
  3743. return awsutil.Prettify(s)
  3744. }
  3745. // GoString returns the string representation
  3746. func (s AssociateElasticIpOutput) GoString() string {
  3747. return s.String()
  3748. }
  3749. type AttachElasticLoadBalancerInput struct {
  3750. _ struct{} `type:"structure"`
  3751. // The Elastic Load Balancing instance's name.
  3752. ElasticLoadBalancerName *string `type:"string" required:"true"`
  3753. // The ID of the layer that the Elastic Load Balancing instance is to be attached
  3754. // to.
  3755. LayerId *string `type:"string" required:"true"`
  3756. }
  3757. // String returns the string representation
  3758. func (s AttachElasticLoadBalancerInput) String() string {
  3759. return awsutil.Prettify(s)
  3760. }
  3761. // GoString returns the string representation
  3762. func (s AttachElasticLoadBalancerInput) GoString() string {
  3763. return s.String()
  3764. }
  3765. // Validate inspects the fields of the type to determine if they are valid.
  3766. func (s *AttachElasticLoadBalancerInput) Validate() error {
  3767. invalidParams := request.ErrInvalidParams{Context: "AttachElasticLoadBalancerInput"}
  3768. if s.ElasticLoadBalancerName == nil {
  3769. invalidParams.Add(request.NewErrParamRequired("ElasticLoadBalancerName"))
  3770. }
  3771. if s.LayerId == nil {
  3772. invalidParams.Add(request.NewErrParamRequired("LayerId"))
  3773. }
  3774. if invalidParams.Len() > 0 {
  3775. return invalidParams
  3776. }
  3777. return nil
  3778. }
  3779. type AttachElasticLoadBalancerOutput struct {
  3780. _ struct{} `type:"structure"`
  3781. }
  3782. // String returns the string representation
  3783. func (s AttachElasticLoadBalancerOutput) String() string {
  3784. return awsutil.Prettify(s)
  3785. }
  3786. // GoString returns the string representation
  3787. func (s AttachElasticLoadBalancerOutput) GoString() string {
  3788. return s.String()
  3789. }
  3790. // Describes a load-based auto scaling upscaling or downscaling threshold configuration,
  3791. // which specifies when AWS OpsWorks starts or stops load-based instances.
  3792. type AutoScalingThresholds struct {
  3793. _ struct{} `type:"structure"`
  3794. // Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter
  3795. // takes a list of up to five alarm names, which are case sensitive and must
  3796. // be in the same region as the stack.
  3797. //
  3798. // To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms.
  3799. // You can either have AWS OpsWorks update the role for you when you first use
  3800. // this feature or you can edit the role manually. For more information, see
  3801. // Allowing AWS OpsWorks to Act on Your Behalf (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-servicerole.html).
  3802. Alarms []*string `type:"list"`
  3803. // The CPU utilization threshold, as a percent of the available CPU. A value
  3804. // of -1 disables the threshold.
  3805. CpuThreshold *float64 `type:"double"`
  3806. // The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks
  3807. // should ignore metrics and suppress additional scaling events. For example,
  3808. // AWS OpsWorks adds new instances following an upscaling event but the instances
  3809. // won't start reducing the load until they have been booted and configured.
  3810. // There is no point in raising additional scaling events during that operation,
  3811. // which typically takes several minutes. IgnoreMetricsTime allows you to direct
  3812. // AWS OpsWorks to suppress scaling events long enough to get the new instances
  3813. // online.
  3814. IgnoreMetricsTime *int64 `min:"1" type:"integer"`
  3815. // The number of instances to add or remove when the load exceeds a threshold.
  3816. InstanceCount *int64 `type:"integer"`
  3817. // The load threshold. A value of -1 disables the threshold. For more information
  3818. // about how load is computed, see Load (computing) (http://en.wikipedia.org/wiki/Load_%28computing%29).
  3819. LoadThreshold *float64 `type:"double"`
  3820. // The memory utilization threshold, as a percent of the available memory. A
  3821. // value of -1 disables the threshold.
  3822. MemoryThreshold *float64 `type:"double"`
  3823. // The amount of time, in minutes, that the load must exceed a threshold before
  3824. // more instances are added or removed.
  3825. ThresholdsWaitTime *int64 `min:"1" type:"integer"`
  3826. }
  3827. // String returns the string representation
  3828. func (s AutoScalingThresholds) String() string {
  3829. return awsutil.Prettify(s)
  3830. }
  3831. // GoString returns the string representation
  3832. func (s AutoScalingThresholds) GoString() string {
  3833. return s.String()
  3834. }
  3835. // Validate inspects the fields of the type to determine if they are valid.
  3836. func (s *AutoScalingThresholds) Validate() error {
  3837. invalidParams := request.ErrInvalidParams{Context: "AutoScalingThresholds"}
  3838. if s.IgnoreMetricsTime != nil && *s.IgnoreMetricsTime < 1 {
  3839. invalidParams.Add(request.NewErrParamMinValue("IgnoreMetricsTime", 1))
  3840. }
  3841. if s.ThresholdsWaitTime != nil && *s.ThresholdsWaitTime < 1 {
  3842. invalidParams.Add(request.NewErrParamMinValue("ThresholdsWaitTime", 1))
  3843. }
  3844. if invalidParams.Len() > 0 {
  3845. return invalidParams
  3846. }
  3847. return nil
  3848. }
  3849. // Describes a block device mapping. This data type maps directly to the Amazon
  3850. // EC2 BlockDeviceMapping (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html)
  3851. // data type.
  3852. type BlockDeviceMapping struct {
  3853. _ struct{} `type:"structure"`
  3854. // The device name that is exposed to the instance, such as /dev/sdh. For the
  3855. // root device, you can use the explicit device name or you can set this parameter
  3856. // to ROOT_DEVICE and AWS OpsWorks will provide the correct device name.
  3857. DeviceName *string `type:"string"`
  3858. // An EBSBlockDevice that defines how to configure an Amazon EBS volume when
  3859. // the instance is launched.
  3860. Ebs *EbsBlockDevice `type:"structure"`
  3861. // Suppresses the specified device included in the AMI's block device mapping.
  3862. NoDevice *string `type:"string"`
  3863. // The virtual device name. For more information, see BlockDeviceMapping (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html).
  3864. VirtualName *string `type:"string"`
  3865. }
  3866. // String returns the string representation
  3867. func (s BlockDeviceMapping) String() string {
  3868. return awsutil.Prettify(s)
  3869. }
  3870. // GoString returns the string representation
  3871. func (s BlockDeviceMapping) GoString() string {
  3872. return s.String()
  3873. }
  3874. // Describes the Chef configuration.
  3875. type ChefConfiguration struct {
  3876. _ struct{} `type:"structure"`
  3877. // The Berkshelf version.
  3878. BerkshelfVersion *string `type:"string"`
  3879. // Whether to enable Berkshelf.
  3880. ManageBerkshelf *bool `type:"boolean"`
  3881. }
  3882. // String returns the string representation
  3883. func (s ChefConfiguration) String() string {
  3884. return awsutil.Prettify(s)
  3885. }
  3886. // GoString returns the string representation
  3887. func (s ChefConfiguration) GoString() string {
  3888. return s.String()
  3889. }
  3890. type CloneStackInput struct {
  3891. _ struct{} `type:"structure"`
  3892. // The default AWS OpsWorks agent version. You have the following options:
  3893. //
  3894. // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically
  3895. // installs new agent versions on the stack's instances as soon as they are
  3896. // available.
  3897. //
  3898. // Fixed version - Set this parameter to your preferred agent version. To
  3899. // update the agent version, you must edit the stack configuration and specify
  3900. // a new version. AWS OpsWorks then automatically installs that version on the
  3901. // stack's instances.
  3902. //
  3903. // The default setting is LATEST. To specify an agent version, you must use
  3904. // the complete version number, not the abbreviated number shown on the console.
  3905. // For a list of available agent version numbers, call DescribeAgentVersions.
  3906. //
  3907. // You can also specify an agent version when you create or update an instance,
  3908. // which overrides the stack's default setting.
  3909. AgentVersion *string `type:"string"`
  3910. // A list of stack attributes and values as key/value pairs to be added to the
  3911. // cloned stack.
  3912. Attributes map[string]*string `type:"map"`
  3913. // A ChefConfiguration object that specifies whether to enable Berkshelf and
  3914. // the Berkshelf version on Chef 11.10 stacks. For more information, see Create
  3915. // a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  3916. ChefConfiguration *ChefConfiguration `type:"structure"`
  3917. // A list of source stack app IDs to be included in the cloned stack.
  3918. CloneAppIds []*string `type:"list"`
  3919. // Whether to clone the source stack's permissions.
  3920. ClonePermissions *bool `type:"boolean"`
  3921. // The configuration manager. When you clone a stack we recommend that you use
  3922. // the configuration manager to specify the Chef version: 12, 11.10, or 11.4
  3923. // for Linux stacks, or 12.2 for Windows stacks. The default value for Linux
  3924. // stacks is currently 12.
  3925. ConfigurationManager *StackConfigurationManager `type:"structure"`
  3926. // Contains the information required to retrieve an app or cookbook from a repository.
  3927. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  3928. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  3929. CustomCookbooksSource *Source `type:"structure"`
  3930. // A string that contains user-defined, custom JSON. It is used to override
  3931. // the corresponding default stack configuration JSON values. The string should
  3932. // be in the following format and must escape characters such as '"':
  3933. //
  3934. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  3935. //
  3936. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  3937. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html)
  3938. CustomJson *string `type:"string"`
  3939. // The cloned stack's default Availability Zone, which must be in the specified
  3940. // region. For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  3941. // If you also specify a value for DefaultSubnetId, the subnet must be in the
  3942. // same zone. For more information, see the VpcId parameter description.
  3943. DefaultAvailabilityZone *string `type:"string"`
  3944. // The Amazon Resource Name (ARN) of an IAM profile that is the default profile
  3945. // for all of the stack's EC2 instances. For more information about IAM ARNs,
  3946. // see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  3947. DefaultInstanceProfileArn *string `type:"string"`
  3948. // The stack's operating system, which must be set to one of the following.
  3949. //
  3950. // A supported Linux operating system: An Amazon Linux version, such as Amazon
  3951. // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
  3952. //
  3953. // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
  3954. // 14.04 LTS, or Ubuntu 12.04 LTS.
  3955. //
  3956. // CentOS 7
  3957. //
  3958. // Red Hat Enterprise Linux 7
  3959. //
  3960. // Microsoft Windows Server 2012 R2 Base, Microsoft Windows Server 2012
  3961. // R2 with SQL Server Express, Microsoft Windows Server 2012 R2 with SQL Server
  3962. // Standard, or Microsoft Windows Server 2012 R2 with SQL Server Web.
  3963. //
  3964. // A custom AMI: Custom. You specify the custom AMI you want to use when
  3965. // you create instances. For more information on how to use custom AMIs with
  3966. // OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  3967. //
  3968. // The default option is the parent stack's operating system. For more information
  3969. // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  3970. //
  3971. // You can specify a different Linux operating system for the cloned stack,
  3972. // but you cannot change from Linux to Windows or Windows to Linux.
  3973. DefaultOs *string `type:"string"`
  3974. // The default root device type. This value is used by default for all instances
  3975. // in the cloned stack, but you can override it when you create an instance.
  3976. // For more information, see Storage for the Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  3977. DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`
  3978. // A default Amazon EC2 key pair name. The default value is none. If you specify
  3979. // a key pair name, AWS OpsWorks installs the public key on the instance and
  3980. // you can use the private key with an SSH client to log in to the instance.
  3981. // For more information, see Using SSH to Communicate with an Instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html)
  3982. // and Managing SSH Access (http://docs.aws.amazon.com/opsworks/latest/userguide/security-ssh-access.html).
  3983. // You can override this setting by specifying a different key pair, or no key
  3984. // pair, when you create an instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
  3985. DefaultSshKeyName *string `type:"string"`
  3986. // The stack's default VPC subnet ID. This parameter is required if you specify
  3987. // a value for the VpcId parameter. All instances are launched into this subnet
  3988. // unless you specify otherwise when you create the instance. If you also specify
  3989. // a value for DefaultAvailabilityZone, the subnet must be in that zone. For
  3990. // information on default values and when this parameter is required, see the
  3991. // VpcId parameter description.
  3992. DefaultSubnetId *string `type:"string"`
  3993. // The stack's host name theme, with spaces are replaced by underscores. The
  3994. // theme is used to generate host names for the stack's instances. By default,
  3995. // HostnameTheme is set to Layer_Dependent, which creates host names by appending
  3996. // integers to the layer's short name. The other themes are:
  3997. //
  3998. // Baked_Goods
  3999. //
  4000. // Clouds
  4001. //
  4002. // Europe_Cities
  4003. //
  4004. // Fruits
  4005. //
  4006. // Greek_Deities
  4007. //
  4008. // Legendary_creatures_from_Japan
  4009. //
  4010. // Planets_and_Moons
  4011. //
  4012. // Roman_Deities
  4013. //
  4014. // Scottish_Islands
  4015. //
  4016. // US_Cities
  4017. //
  4018. // Wild_Cats
  4019. //
  4020. // To obtain a generated host name, call GetHostNameSuggestion, which returns
  4021. // a host name based on the current theme.
  4022. HostnameTheme *string `type:"string"`
  4023. // The cloned stack name.
  4024. Name *string `type:"string"`
  4025. // The cloned stack AWS region, such as "us-east-1". For more information about
  4026. // AWS regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  4027. Region *string `type:"string"`
  4028. // The stack AWS Identity and Access Management (IAM) role, which allows AWS
  4029. // OpsWorks to work with AWS resources on your behalf. You must set this parameter
  4030. // to the Amazon Resource Name (ARN) for an existing IAM role. If you create
  4031. // a stack by using the AWS OpsWorks console, it creates the role for you. You
  4032. // can obtain an existing stack's IAM ARN programmatically by calling DescribePermissions.
  4033. // For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  4034. //
  4035. // You must set this parameter to a valid service role ARN or the action will
  4036. // fail; there is no default value. You can specify the source stack's service
  4037. // role ARN, if you prefer, but you must do so explicitly.
  4038. ServiceRoleArn *string `type:"string" required:"true"`
  4039. // The source stack ID.
  4040. SourceStackId *string `type:"string" required:"true"`
  4041. // Whether to use custom cookbooks.
  4042. UseCustomCookbooks *bool `type:"boolean"`
  4043. // Whether to associate the AWS OpsWorks built-in security groups with the stack's
  4044. // layers.
  4045. //
  4046. // AWS OpsWorks provides a standard set of built-in security groups, one for
  4047. // each layer, which are associated with layers by default. With UseOpsworksSecurityGroups
  4048. // you can instead provide your own custom security groups. UseOpsworksSecurityGroups
  4049. // has the following settings:
  4050. //
  4051. // True - AWS OpsWorks automatically associates the appropriate built-in
  4052. // security group with each layer (default setting). You can associate additional
  4053. // security groups with a layer after you create it but you cannot delete the
  4054. // built-in security group.
  4055. //
  4056. // False - AWS OpsWorks does not associate built-in security groups with
  4057. // layers. You must create appropriate Amazon Elastic Compute Cloud (Amazon
  4058. // EC2) security groups and associate a security group with each layer that
  4059. // you create. However, you can still manually associate a built-in security
  4060. // group with a layer on creation; custom security groups are required only
  4061. // for those layers that need custom settings.
  4062. //
  4063. // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  4064. UseOpsworksSecurityGroups *bool `type:"boolean"`
  4065. // The ID of the VPC that the cloned stack is to be launched into. It must be
  4066. // in the specified region. All instances are launched into this VPC, and you
  4067. // cannot change the ID later.
  4068. //
  4069. // If your account supports EC2 Classic, the default value is no VPC.
  4070. //
  4071. // If your account does not support EC2 Classic, the default value is the
  4072. // default VPC for the specified region.
  4073. //
  4074. // If the VPC ID corresponds to a default VPC and you have specified either
  4075. // the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks
  4076. // infers the value of the other parameter. If you specify neither parameter,
  4077. // AWS OpsWorks sets these parameters to the first valid Availability Zone for
  4078. // the specified region and the corresponding default VPC subnet ID, respectively.
  4079. //
  4080. // If you specify a nondefault VPC ID, note the following:
  4081. //
  4082. // It must belong to a VPC in your account that is in the specified region.
  4083. //
  4084. // You must specify a value for DefaultSubnetId.
  4085. //
  4086. // For more information on how to use AWS OpsWorks with a VPC, see Running
  4087. // a Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html).
  4088. // For more information on default VPC and EC2 Classic, see Supported Platforms
  4089. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html).
  4090. VpcId *string `type:"string"`
  4091. }
  4092. // String returns the string representation
  4093. func (s CloneStackInput) String() string {
  4094. return awsutil.Prettify(s)
  4095. }
  4096. // GoString returns the string representation
  4097. func (s CloneStackInput) GoString() string {
  4098. return s.String()
  4099. }
  4100. // Validate inspects the fields of the type to determine if they are valid.
  4101. func (s *CloneStackInput) Validate() error {
  4102. invalidParams := request.ErrInvalidParams{Context: "CloneStackInput"}
  4103. if s.ServiceRoleArn == nil {
  4104. invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn"))
  4105. }
  4106. if s.SourceStackId == nil {
  4107. invalidParams.Add(request.NewErrParamRequired("SourceStackId"))
  4108. }
  4109. if invalidParams.Len() > 0 {
  4110. return invalidParams
  4111. }
  4112. return nil
  4113. }
  4114. // Contains the response to a CloneStack request.
  4115. type CloneStackOutput struct {
  4116. _ struct{} `type:"structure"`
  4117. // The cloned stack ID.
  4118. StackId *string `type:"string"`
  4119. }
  4120. // String returns the string representation
  4121. func (s CloneStackOutput) String() string {
  4122. return awsutil.Prettify(s)
  4123. }
  4124. // GoString returns the string representation
  4125. func (s CloneStackOutput) GoString() string {
  4126. return s.String()
  4127. }
  4128. // Describes a command.
  4129. type Command struct {
  4130. _ struct{} `type:"structure"`
  4131. // Date and time when the command was acknowledged.
  4132. AcknowledgedAt *string `type:"string"`
  4133. // The command ID.
  4134. CommandId *string `type:"string"`
  4135. // Date when the command completed.
  4136. CompletedAt *string `type:"string"`
  4137. // Date and time when the command was run.
  4138. CreatedAt *string `type:"string"`
  4139. // The command deployment ID.
  4140. DeploymentId *string `type:"string"`
  4141. // The command exit code.
  4142. ExitCode *int64 `type:"integer"`
  4143. // The ID of the instance where the command was executed.
  4144. InstanceId *string `type:"string"`
  4145. // The URL of the command log.
  4146. LogUrl *string `type:"string"`
  4147. // The command status:
  4148. //
  4149. // failed
  4150. //
  4151. // successful
  4152. //
  4153. // skipped
  4154. //
  4155. // pending
  4156. Status *string `type:"string"`
  4157. // The command type:
  4158. //
  4159. // deploy
  4160. //
  4161. // rollback
  4162. //
  4163. // start
  4164. //
  4165. // stop
  4166. //
  4167. // restart
  4168. //
  4169. // undeploy
  4170. //
  4171. // update_dependencies
  4172. //
  4173. // install_dependencies
  4174. //
  4175. // update_custom_cookbooks
  4176. //
  4177. // execute_recipes
  4178. Type *string `type:"string"`
  4179. }
  4180. // String returns the string representation
  4181. func (s Command) String() string {
  4182. return awsutil.Prettify(s)
  4183. }
  4184. // GoString returns the string representation
  4185. func (s Command) GoString() string {
  4186. return s.String()
  4187. }
  4188. type CreateAppInput struct {
  4189. _ struct{} `type:"structure"`
  4190. // A Source object that specifies the app repository.
  4191. AppSource *Source `type:"structure"`
  4192. // One or more user-defined key/value pairs to be added to the stack attributes.
  4193. Attributes map[string]*string `type:"map"`
  4194. // The app's data source.
  4195. DataSources []*DataSource `type:"list"`
  4196. // A description of the app.
  4197. Description *string `type:"string"`
  4198. // The app virtual host settings, with multiple domains separated by commas.
  4199. // For example: 'www.example.com, example.com'
  4200. Domains []*string `type:"list"`
  4201. // Whether to enable SSL for the app.
  4202. EnableSsl *bool `type:"boolean"`
  4203. // An array of EnvironmentVariable objects that specify environment variables
  4204. // to be associated with the app. After you deploy the app, these variables
  4205. // are defined on the associated app server instance. For more information,
  4206. // see Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).
  4207. //
  4208. // There is no specific limit on the number of environment variables. However,
  4209. // the size of the associated data structure - which includes the variables'
  4210. // names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes).
  4211. // This limit should accommodate most if not all use cases. Exceeding it will
  4212. // cause an exception with the message, "Environment: is too large (maximum
  4213. // is 10KB)."
  4214. //
  4215. // This parameter is supported only by Chef 11.10 stacks. If you have specified
  4216. // one or more environment variables, you cannot modify the stack's Chef version.
  4217. Environment []*EnvironmentVariable `type:"list"`
  4218. // The app name.
  4219. Name *string `type:"string" required:"true"`
  4220. // The app's short name.
  4221. Shortname *string `type:"string"`
  4222. // An SslConfiguration object with the SSL configuration.
  4223. SslConfiguration *SslConfiguration `type:"structure"`
  4224. // The stack ID.
  4225. StackId *string `type:"string" required:"true"`
  4226. // The app type. Each supported type is associated with a particular layer.
  4227. // For example, PHP applications are associated with a PHP layer. AWS OpsWorks
  4228. // deploys an application to those instances that are members of the corresponding
  4229. // layer. If your app isn't one of the standard types, or you prefer to implement
  4230. // your own Deploy recipes, specify other.
  4231. Type *string `type:"string" required:"true" enum:"AppType"`
  4232. }
  4233. // String returns the string representation
  4234. func (s CreateAppInput) String() string {
  4235. return awsutil.Prettify(s)
  4236. }
  4237. // GoString returns the string representation
  4238. func (s CreateAppInput) GoString() string {
  4239. return s.String()
  4240. }
  4241. // Validate inspects the fields of the type to determine if they are valid.
  4242. func (s *CreateAppInput) Validate() error {
  4243. invalidParams := request.ErrInvalidParams{Context: "CreateAppInput"}
  4244. if s.Name == nil {
  4245. invalidParams.Add(request.NewErrParamRequired("Name"))
  4246. }
  4247. if s.StackId == nil {
  4248. invalidParams.Add(request.NewErrParamRequired("StackId"))
  4249. }
  4250. if s.Type == nil {
  4251. invalidParams.Add(request.NewErrParamRequired("Type"))
  4252. }
  4253. if s.Environment != nil {
  4254. for i, v := range s.Environment {
  4255. if v == nil {
  4256. continue
  4257. }
  4258. if err := v.Validate(); err != nil {
  4259. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Environment", i), err.(request.ErrInvalidParams))
  4260. }
  4261. }
  4262. }
  4263. if s.SslConfiguration != nil {
  4264. if err := s.SslConfiguration.Validate(); err != nil {
  4265. invalidParams.AddNested("SslConfiguration", err.(request.ErrInvalidParams))
  4266. }
  4267. }
  4268. if invalidParams.Len() > 0 {
  4269. return invalidParams
  4270. }
  4271. return nil
  4272. }
  4273. // Contains the response to a CreateApp request.
  4274. type CreateAppOutput struct {
  4275. _ struct{} `type:"structure"`
  4276. // The app ID.
  4277. AppId *string `type:"string"`
  4278. }
  4279. // String returns the string representation
  4280. func (s CreateAppOutput) String() string {
  4281. return awsutil.Prettify(s)
  4282. }
  4283. // GoString returns the string representation
  4284. func (s CreateAppOutput) GoString() string {
  4285. return s.String()
  4286. }
  4287. type CreateDeploymentInput struct {
  4288. _ struct{} `type:"structure"`
  4289. // The app ID. This parameter is required for app deployments, but not for other
  4290. // deployment commands.
  4291. AppId *string `type:"string"`
  4292. // A DeploymentCommand object that specifies the deployment command and any
  4293. // associated arguments.
  4294. Command *DeploymentCommand `type:"structure" required:"true"`
  4295. // A user-defined comment.
  4296. Comment *string `type:"string"`
  4297. // A string that contains user-defined, custom JSON. It is used to override
  4298. // the corresponding default stack configuration JSON values. The string should
  4299. // be in the following format and must escape characters such as '"':
  4300. //
  4301. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  4302. //
  4303. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  4304. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  4305. CustomJson *string `type:"string"`
  4306. // The instance IDs for the deployment targets.
  4307. InstanceIds []*string `type:"list"`
  4308. // The layer IDs for the deployment targets.
  4309. LayerIds []*string `type:"list"`
  4310. // The stack ID.
  4311. StackId *string `type:"string" required:"true"`
  4312. }
  4313. // String returns the string representation
  4314. func (s CreateDeploymentInput) String() string {
  4315. return awsutil.Prettify(s)
  4316. }
  4317. // GoString returns the string representation
  4318. func (s CreateDeploymentInput) GoString() string {
  4319. return s.String()
  4320. }
  4321. // Validate inspects the fields of the type to determine if they are valid.
  4322. func (s *CreateDeploymentInput) Validate() error {
  4323. invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"}
  4324. if s.Command == nil {
  4325. invalidParams.Add(request.NewErrParamRequired("Command"))
  4326. }
  4327. if s.StackId == nil {
  4328. invalidParams.Add(request.NewErrParamRequired("StackId"))
  4329. }
  4330. if s.Command != nil {
  4331. if err := s.Command.Validate(); err != nil {
  4332. invalidParams.AddNested("Command", err.(request.ErrInvalidParams))
  4333. }
  4334. }
  4335. if invalidParams.Len() > 0 {
  4336. return invalidParams
  4337. }
  4338. return nil
  4339. }
  4340. // Contains the response to a CreateDeployment request.
  4341. type CreateDeploymentOutput struct {
  4342. _ struct{} `type:"structure"`
  4343. // The deployment ID, which can be used with other requests to identify the
  4344. // deployment.
  4345. DeploymentId *string `type:"string"`
  4346. }
  4347. // String returns the string representation
  4348. func (s CreateDeploymentOutput) String() string {
  4349. return awsutil.Prettify(s)
  4350. }
  4351. // GoString returns the string representation
  4352. func (s CreateDeploymentOutput) GoString() string {
  4353. return s.String()
  4354. }
  4355. type CreateInstanceInput struct {
  4356. _ struct{} `type:"structure"`
  4357. // The default AWS OpsWorks agent version. You have the following options:
  4358. //
  4359. // INHERIT - Use the stack's default agent version setting.
  4360. //
  4361. // version_number - Use the specified agent version. This value overrides
  4362. // the stack's default setting. To update the agent version, edit the instance
  4363. // configuration and specify a new version. AWS OpsWorks then automatically
  4364. // installs that version on the instance.
  4365. //
  4366. // The default setting is INHERIT. To specify an agent version, you must
  4367. // use the complete version number, not the abbreviated number shown on the
  4368. // console. For a list of available agent version numbers, call DescribeAgentVersions.
  4369. AgentVersion *string `type:"string"`
  4370. // A custom AMI ID to be used to create the instance. The AMI should be based
  4371. // on one of the supported operating systems. For more information, see Using
  4372. // Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  4373. //
  4374. // If you specify a custom AMI, you must set Os to Custom.
  4375. AmiId *string `type:"string"`
  4376. // The instance architecture. The default option is x86_64. Instance types do
  4377. // not necessarily support both architectures. For a list of the architectures
  4378. // that are supported by the different instance types, see Instance Families
  4379. // and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  4380. Architecture *string `type:"string" enum:"Architecture"`
  4381. // For load-based or time-based instances, the type. Windows stacks can use
  4382. // only time-based instances.
  4383. AutoScalingType *string `type:"string" enum:"AutoScalingType"`
  4384. // The instance Availability Zone. For more information, see Regions and Endpoints
  4385. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  4386. AvailabilityZone *string `type:"string"`
  4387. // An array of BlockDeviceMapping objects that specify the instance's block
  4388. // devices. For more information, see Block Device Mapping (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html).
  4389. // Note that block device mappings are not supported for custom AMIs.
  4390. BlockDeviceMappings []*BlockDeviceMapping `type:"list"`
  4391. // Whether to create an Amazon EBS-optimized instance.
  4392. EbsOptimized *bool `type:"boolean"`
  4393. // The instance host name.
  4394. Hostname *string `type:"string"`
  4395. // Whether to install operating system and package updates when the instance
  4396. // boots. The default value is true. To control when updates are installed,
  4397. // set this value to false. You must then update your instances manually by
  4398. // using CreateDeployment to run the update_dependencies stack command or by
  4399. // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
  4400. //
  4401. // We strongly recommend using the default value of true to ensure that your
  4402. // instances have the latest security updates.
  4403. InstallUpdatesOnBoot *bool `type:"boolean"`
  4404. // The instance type, such as t2.micro. For a list of supported instance types,
  4405. // open the stack in the console, choose Instances, and choose + Instance. The
  4406. // Size list contains the currently supported types. For more information, see
  4407. // Instance Families and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  4408. // The parameter values that you use to specify the various types are in the
  4409. // API Name column of the Available Instance Types table.
  4410. InstanceType *string `type:"string" required:"true"`
  4411. // An array that contains the instance's layer IDs.
  4412. LayerIds []*string `type:"list" required:"true"`
  4413. // The instance's operating system, which must be set to one of the following.
  4414. //
  4415. // A supported Linux operating system: An Amazon Linux version, such as Amazon
  4416. // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
  4417. //
  4418. // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
  4419. // 14.04 LTS, or Ubuntu 12.04 LTS.
  4420. //
  4421. // CentOS 7
  4422. //
  4423. // Red Hat Enterprise Linux 7
  4424. //
  4425. // A supported Windows operating system, such as Microsoft Windows Server
  4426. // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft
  4427. // Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server
  4428. // 2012 R2 with SQL Server Web.
  4429. //
  4430. // A custom AMI: Custom.
  4431. //
  4432. // For more information on the supported operating systems, see AWS OpsWorks
  4433. // Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  4434. //
  4435. // The default option is the current Amazon Linux version. If you set this
  4436. // parameter to Custom, you must use the CreateInstance action's AmiId parameter
  4437. // to specify the custom AMI that you want to use. Block device mappings are
  4438. // not supported if the value is Custom. For more information on the supported
  4439. // operating systems, see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html)For
  4440. // more information on how to use custom AMIs with AWS OpsWorks, see Using Custom
  4441. // AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  4442. Os *string `type:"string"`
  4443. // The instance root device type. For more information, see Storage for the
  4444. // Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  4445. RootDeviceType *string `type:"string" enum:"RootDeviceType"`
  4446. // The instance's Amazon EC2 key-pair name.
  4447. SshKeyName *string `type:"string"`
  4448. // The stack ID.
  4449. StackId *string `type:"string" required:"true"`
  4450. // The ID of the instance's subnet. If the stack is running in a VPC, you can
  4451. // use this parameter to override the stack's default subnet ID value and direct
  4452. // AWS OpsWorks to launch the instance in a different subnet.
  4453. SubnetId *string `type:"string"`
  4454. // The instance's tenancy option. The default option is no tenancy, or if the
  4455. // instance is running in a VPC, inherit tenancy settings from the VPC. The
  4456. // following are valid values for this parameter: dedicated, default, or host.
  4457. // Because there are costs associated with changes in tenancy options, we recommend
  4458. // that you research tenancy options before choosing them for your instances.
  4459. // For more information about dedicated hosts, see Dedicated Hosts Overview
  4460. // (http://aws.amazon.com/ec2/dedicated-hosts/) and Amazon EC2 Dedicated Hosts
  4461. // (http://aws.amazon.com/ec2/dedicated-hosts/). For more information about
  4462. // dedicated instances, see Dedicated Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/dedicated-instance.html)
  4463. // and Amazon EC2 Dedicated Instances (http://aws.amazon.com/ec2/purchasing-options/dedicated-instances/).
  4464. Tenancy *string `type:"string"`
  4465. // The instance's virtualization type, paravirtual or hvm.
  4466. VirtualizationType *string `type:"string"`
  4467. }
  4468. // String returns the string representation
  4469. func (s CreateInstanceInput) String() string {
  4470. return awsutil.Prettify(s)
  4471. }
  4472. // GoString returns the string representation
  4473. func (s CreateInstanceInput) GoString() string {
  4474. return s.String()
  4475. }
  4476. // Validate inspects the fields of the type to determine if they are valid.
  4477. func (s *CreateInstanceInput) Validate() error {
  4478. invalidParams := request.ErrInvalidParams{Context: "CreateInstanceInput"}
  4479. if s.InstanceType == nil {
  4480. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  4481. }
  4482. if s.LayerIds == nil {
  4483. invalidParams.Add(request.NewErrParamRequired("LayerIds"))
  4484. }
  4485. if s.StackId == nil {
  4486. invalidParams.Add(request.NewErrParamRequired("StackId"))
  4487. }
  4488. if invalidParams.Len() > 0 {
  4489. return invalidParams
  4490. }
  4491. return nil
  4492. }
  4493. // Contains the response to a CreateInstance request.
  4494. type CreateInstanceOutput struct {
  4495. _ struct{} `type:"structure"`
  4496. // The instance ID.
  4497. InstanceId *string `type:"string"`
  4498. }
  4499. // String returns the string representation
  4500. func (s CreateInstanceOutput) String() string {
  4501. return awsutil.Prettify(s)
  4502. }
  4503. // GoString returns the string representation
  4504. func (s CreateInstanceOutput) GoString() string {
  4505. return s.String()
  4506. }
  4507. type CreateLayerInput struct {
  4508. _ struct{} `type:"structure"`
  4509. // One or more user-defined key-value pairs to be added to the stack attributes.
  4510. //
  4511. // To create a cluster layer, set the EcsClusterArn attribute to the cluster's
  4512. // ARN.
  4513. Attributes map[string]*string `type:"map"`
  4514. // Whether to automatically assign an Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  4515. // 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).
  4516. AutoAssignElasticIps *bool `type:"boolean"`
  4517. // For stacks that are running in a VPC, whether to automatically assign a public
  4518. // IP address to the layer's instances. For more information, see How to Edit
  4519. // a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
  4520. AutoAssignPublicIps *bool `type:"boolean"`
  4521. // The ARN of an IAM profile to be used for the layer's EC2 instances. For more
  4522. // information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  4523. CustomInstanceProfileArn *string `type:"string"`
  4524. // A JSON-formatted string containing custom stack configuration and deployment
  4525. // attributes to be installed on the layer's instances. For more information,
  4526. // see Using Custom JSON (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json-override.html).
  4527. // This feature is supported as of version 1.7.42 of the AWS CLI.
  4528. CustomJson *string `type:"string"`
  4529. // A LayerCustomRecipes object that specifies the layer custom recipes.
  4530. CustomRecipes *Recipes `type:"structure"`
  4531. // An array containing the layer custom security group IDs.
  4532. CustomSecurityGroupIds []*string `type:"list"`
  4533. // Whether to disable auto healing for the layer.
  4534. EnableAutoHealing *bool `type:"boolean"`
  4535. // Whether to install operating system and package updates when the instance
  4536. // boots. The default value is true. To control when updates are installed,
  4537. // set this value to false. You must then update your instances manually by
  4538. // using CreateDeployment to run the update_dependencies stack command or by
  4539. // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
  4540. //
  4541. // To ensure that your instances have the latest security updates, we strongly
  4542. // recommend using the default value of true.
  4543. InstallUpdatesOnBoot *bool `type:"boolean"`
  4544. // A LifeCycleEventConfiguration object that you can use to configure the Shutdown
  4545. // event to specify an execution timeout and enable or disable Elastic Load
  4546. // Balancer connection draining.
  4547. LifecycleEventConfiguration *LifecycleEventConfiguration `type:"structure"`
  4548. // The layer name, which is used by the console.
  4549. Name *string `type:"string" required:"true"`
  4550. // An array of Package objects that describes the layer packages.
  4551. Packages []*string `type:"list"`
  4552. // For custom layers only, use this parameter to specify the layer's short name,
  4553. // which is used internally by AWS OpsWorks and by Chef recipes. The short name
  4554. // is also used as the name for the directory where your app files are installed.
  4555. // It can have a maximum of 200 characters, which are limited to the alphanumeric
  4556. // characters, '-', '_', and '.'.
  4557. //
  4558. // The built-in layers' short names are defined by AWS OpsWorks. For more information,
  4559. // see the Layer Reference (http://docs.aws.amazon.com/opsworks/latest/userguide/layers.html).
  4560. Shortname *string `type:"string" required:"true"`
  4561. // The layer stack ID.
  4562. StackId *string `type:"string" required:"true"`
  4563. // The layer type. A stack cannot have more than one built-in layer of the same
  4564. // type. It can have any number of custom layers. Built-in layers are not available
  4565. // in Chef 12 stacks.
  4566. Type *string `type:"string" required:"true" enum:"LayerType"`
  4567. // Whether to use Amazon EBS-optimized instances.
  4568. UseEbsOptimizedInstances *bool `type:"boolean"`
  4569. // A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
  4570. VolumeConfigurations []*VolumeConfiguration `type:"list"`
  4571. }
  4572. // String returns the string representation
  4573. func (s CreateLayerInput) String() string {
  4574. return awsutil.Prettify(s)
  4575. }
  4576. // GoString returns the string representation
  4577. func (s CreateLayerInput) GoString() string {
  4578. return s.String()
  4579. }
  4580. // Validate inspects the fields of the type to determine if they are valid.
  4581. func (s *CreateLayerInput) Validate() error {
  4582. invalidParams := request.ErrInvalidParams{Context: "CreateLayerInput"}
  4583. if s.Name == nil {
  4584. invalidParams.Add(request.NewErrParamRequired("Name"))
  4585. }
  4586. if s.Shortname == nil {
  4587. invalidParams.Add(request.NewErrParamRequired("Shortname"))
  4588. }
  4589. if s.StackId == nil {
  4590. invalidParams.Add(request.NewErrParamRequired("StackId"))
  4591. }
  4592. if s.Type == nil {
  4593. invalidParams.Add(request.NewErrParamRequired("Type"))
  4594. }
  4595. if s.VolumeConfigurations != nil {
  4596. for i, v := range s.VolumeConfigurations {
  4597. if v == nil {
  4598. continue
  4599. }
  4600. if err := v.Validate(); err != nil {
  4601. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VolumeConfigurations", i), err.(request.ErrInvalidParams))
  4602. }
  4603. }
  4604. }
  4605. if invalidParams.Len() > 0 {
  4606. return invalidParams
  4607. }
  4608. return nil
  4609. }
  4610. // Contains the response to a CreateLayer request.
  4611. type CreateLayerOutput struct {
  4612. _ struct{} `type:"structure"`
  4613. // The layer ID.
  4614. LayerId *string `type:"string"`
  4615. }
  4616. // String returns the string representation
  4617. func (s CreateLayerOutput) String() string {
  4618. return awsutil.Prettify(s)
  4619. }
  4620. // GoString returns the string representation
  4621. func (s CreateLayerOutput) GoString() string {
  4622. return s.String()
  4623. }
  4624. type CreateStackInput struct {
  4625. _ struct{} `type:"structure"`
  4626. // The default AWS OpsWorks agent version. You have the following options:
  4627. //
  4628. // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically
  4629. // installs new agent versions on the stack's instances as soon as they are
  4630. // available.
  4631. //
  4632. // Fixed version - Set this parameter to your preferred agent version. To
  4633. // update the agent version, you must edit the stack configuration and specify
  4634. // a new version. AWS OpsWorks then automatically installs that version on the
  4635. // stack's instances.
  4636. //
  4637. // The default setting is the most recent release of the agent. To specify
  4638. // an agent version, you must use the complete version number, not the abbreviated
  4639. // number shown on the console. For a list of available agent version numbers,
  4640. // call DescribeAgentVersions.
  4641. //
  4642. // You can also specify an agent version when you create or update an instance,
  4643. // which overrides the stack's default setting.
  4644. AgentVersion *string `type:"string"`
  4645. // One or more user-defined key-value pairs to be added to the stack attributes.
  4646. Attributes map[string]*string `type:"map"`
  4647. // A ChefConfiguration object that specifies whether to enable Berkshelf and
  4648. // the Berkshelf version on Chef 11.10 stacks. For more information, see Create
  4649. // a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  4650. ChefConfiguration *ChefConfiguration `type:"structure"`
  4651. // The configuration manager. When you create a stack we recommend that you
  4652. // use the configuration manager to specify the Chef version: 12, 11.10, or
  4653. // 11.4 for Linux stacks, or 12.2 for Windows stacks. The default value for
  4654. // Linux stacks is currently 11.4.
  4655. ConfigurationManager *StackConfigurationManager `type:"structure"`
  4656. // Contains the information required to retrieve an app or cookbook from a repository.
  4657. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  4658. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  4659. CustomCookbooksSource *Source `type:"structure"`
  4660. // A string that contains user-defined, custom JSON. It can be used to override
  4661. // the corresponding default stack configuration attribute values or to pass
  4662. // data to recipes. The string should be in the following escape characters
  4663. // such as '"':
  4664. //
  4665. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  4666. //
  4667. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  4668. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  4669. CustomJson *string `type:"string"`
  4670. // The stack's default Availability Zone, which must be in the specified region.
  4671. // For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  4672. // If you also specify a value for DefaultSubnetId, the subnet must be in the
  4673. // same zone. For more information, see the VpcId parameter description.
  4674. DefaultAvailabilityZone *string `type:"string"`
  4675. // The Amazon Resource Name (ARN) of an IAM profile that is the default profile
  4676. // for all of the stack's EC2 instances. For more information about IAM ARNs,
  4677. // see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  4678. DefaultInstanceProfileArn *string `type:"string" required:"true"`
  4679. // The stack's default operating system, which is installed on every instance
  4680. // unless you specify a different operating system when you create the instance.
  4681. // You can specify one of the following.
  4682. //
  4683. // A supported Linux operating system: An Amazon Linux version, such as Amazon
  4684. // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
  4685. //
  4686. // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
  4687. // 14.04 LTS, or Ubuntu 12.04 LTS.
  4688. //
  4689. // CentOS 7
  4690. //
  4691. // Red Hat Enterprise Linux 7
  4692. //
  4693. // A supported Windows operating system, such as Microsoft Windows Server
  4694. // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft
  4695. // Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server
  4696. // 2012 R2 with SQL Server Web.
  4697. //
  4698. // A custom AMI: Custom. You specify the custom AMI you want to use when
  4699. // you create instances. For more information, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  4700. //
  4701. // The default option is the current Amazon Linux version. For more information
  4702. // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  4703. DefaultOs *string `type:"string"`
  4704. // The default root device type. This value is the default for all instances
  4705. // in the stack, but you can override it when you create an instance. The default
  4706. // option is instance-store. For more information, see Storage for the Root
  4707. // Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  4708. DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`
  4709. // A default Amazon EC2 key pair name. The default value is none. If you specify
  4710. // a key pair name, AWS OpsWorks installs the public key on the instance and
  4711. // you can use the private key with an SSH client to log in to the instance.
  4712. // For more information, see Using SSH to Communicate with an Instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html)
  4713. // and Managing SSH Access (http://docs.aws.amazon.com/opsworks/latest/userguide/security-ssh-access.html).
  4714. // You can override this setting by specifying a different key pair, or no key
  4715. // pair, when you create an instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
  4716. DefaultSshKeyName *string `type:"string"`
  4717. // The stack's default VPC subnet ID. This parameter is required if you specify
  4718. // a value for the VpcId parameter. All instances are launched into this subnet
  4719. // unless you specify otherwise when you create the instance. If you also specify
  4720. // a value for DefaultAvailabilityZone, the subnet must be in that zone. For
  4721. // information on default values and when this parameter is required, see the
  4722. // VpcId parameter description.
  4723. DefaultSubnetId *string `type:"string"`
  4724. // The stack's host name theme, with spaces replaced by underscores. The theme
  4725. // is used to generate host names for the stack's instances. By default, HostnameTheme
  4726. // is set to Layer_Dependent, which creates host names by appending integers
  4727. // to the layer's short name. The other themes are:
  4728. //
  4729. // Baked_Goods
  4730. //
  4731. // Clouds
  4732. //
  4733. // Europe_Cities
  4734. //
  4735. // Fruits
  4736. //
  4737. // Greek_Deities
  4738. //
  4739. // Legendary_creatures_from_Japan
  4740. //
  4741. // Planets_and_Moons
  4742. //
  4743. // Roman_Deities
  4744. //
  4745. // Scottish_Islands
  4746. //
  4747. // US_Cities
  4748. //
  4749. // Wild_Cats
  4750. //
  4751. // To obtain a generated host name, call GetHostNameSuggestion, which returns
  4752. // a host name based on the current theme.
  4753. HostnameTheme *string `type:"string"`
  4754. // The stack name.
  4755. Name *string `type:"string" required:"true"`
  4756. // The stack's AWS region, such as "us-east-1". For more information about Amazon
  4757. // regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  4758. Region *string `type:"string" required:"true"`
  4759. // The stack's AWS Identity and Access Management (IAM) role, which allows AWS
  4760. // OpsWorks to work with AWS resources on your behalf. You must set this parameter
  4761. // to the Amazon Resource Name (ARN) for an existing IAM role. For more information
  4762. // about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  4763. ServiceRoleArn *string `type:"string" required:"true"`
  4764. // Whether the stack uses custom cookbooks.
  4765. UseCustomCookbooks *bool `type:"boolean"`
  4766. // Whether to associate the AWS OpsWorks built-in security groups with the stack's
  4767. // layers.
  4768. //
  4769. // AWS OpsWorks provides a standard set of built-in security groups, one for
  4770. // each layer, which are associated with layers by default. With UseOpsworksSecurityGroups
  4771. // you can instead provide your own custom security groups. UseOpsworksSecurityGroups
  4772. // has the following settings:
  4773. //
  4774. // True - AWS OpsWorks automatically associates the appropriate built-in
  4775. // security group with each layer (default setting). You can associate additional
  4776. // security groups with a layer after you create it, but you cannot delete the
  4777. // built-in security group.
  4778. //
  4779. // False - AWS OpsWorks does not associate built-in security groups with
  4780. // layers. You must create appropriate EC2 security groups and associate a security
  4781. // group with each layer that you create. However, you can still manually associate
  4782. // a built-in security group with a layer on creation; custom security groups
  4783. // are required only for those layers that need custom settings.
  4784. //
  4785. // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  4786. UseOpsworksSecurityGroups *bool `type:"boolean"`
  4787. // The ID of the VPC that the stack is to be launched into. The VPC must be
  4788. // in the stack's region. All instances are launched into this VPC. You cannot
  4789. // change the ID later.
  4790. //
  4791. // If your account supports EC2-Classic, the default value is no VPC.
  4792. //
  4793. // If your account does not support EC2-Classic, the default value is the
  4794. // default VPC for the specified region.
  4795. //
  4796. // If the VPC ID corresponds to a default VPC and you have specified either
  4797. // the DefaultAvailabilityZone or the DefaultSubnetId parameter only, AWS OpsWorks
  4798. // infers the value of the other parameter. If you specify neither parameter,
  4799. // AWS OpsWorks sets these parameters to the first valid Availability Zone for
  4800. // the specified region and the corresponding default VPC subnet ID, respectively.
  4801. //
  4802. // If you specify a nondefault VPC ID, note the following:
  4803. //
  4804. // It must belong to a VPC in your account that is in the specified region.
  4805. //
  4806. // You must specify a value for DefaultSubnetId.
  4807. //
  4808. // For more information on how to use AWS OpsWorks with a VPC, see Running
  4809. // a Stack in a VPC (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-vpc.html).
  4810. // For more information on default VPC and EC2-Classic, see Supported Platforms
  4811. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-platforms.html).
  4812. VpcId *string `type:"string"`
  4813. }
  4814. // String returns the string representation
  4815. func (s CreateStackInput) String() string {
  4816. return awsutil.Prettify(s)
  4817. }
  4818. // GoString returns the string representation
  4819. func (s CreateStackInput) GoString() string {
  4820. return s.String()
  4821. }
  4822. // Validate inspects the fields of the type to determine if they are valid.
  4823. func (s *CreateStackInput) Validate() error {
  4824. invalidParams := request.ErrInvalidParams{Context: "CreateStackInput"}
  4825. if s.DefaultInstanceProfileArn == nil {
  4826. invalidParams.Add(request.NewErrParamRequired("DefaultInstanceProfileArn"))
  4827. }
  4828. if s.Name == nil {
  4829. invalidParams.Add(request.NewErrParamRequired("Name"))
  4830. }
  4831. if s.Region == nil {
  4832. invalidParams.Add(request.NewErrParamRequired("Region"))
  4833. }
  4834. if s.ServiceRoleArn == nil {
  4835. invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn"))
  4836. }
  4837. if invalidParams.Len() > 0 {
  4838. return invalidParams
  4839. }
  4840. return nil
  4841. }
  4842. // Contains the response to a CreateStack request.
  4843. type CreateStackOutput struct {
  4844. _ struct{} `type:"structure"`
  4845. // The stack ID, which is an opaque string that you use to identify the stack
  4846. // when performing actions such as DescribeStacks.
  4847. StackId *string `type:"string"`
  4848. }
  4849. // String returns the string representation
  4850. func (s CreateStackOutput) String() string {
  4851. return awsutil.Prettify(s)
  4852. }
  4853. // GoString returns the string representation
  4854. func (s CreateStackOutput) GoString() string {
  4855. return s.String()
  4856. }
  4857. type CreateUserProfileInput struct {
  4858. _ struct{} `type:"structure"`
  4859. // Whether users can specify their own SSH public key through the My Settings
  4860. // page. For more information, see Setting an IAM User's Public SSH Key (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).
  4861. AllowSelfManagement *bool `type:"boolean"`
  4862. // The user's IAM ARN.
  4863. IamUserArn *string `type:"string" required:"true"`
  4864. // The user's public SSH key.
  4865. SshPublicKey *string `type:"string"`
  4866. // The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9],
  4867. // '-', and '_'. If the specified name includes other punctuation marks, AWS
  4868. // OpsWorks removes them. For example, my.name will be changed to myname. If
  4869. // you do not specify an SSH user name, AWS OpsWorks generates one from the
  4870. // IAM user name.
  4871. SshUsername *string `type:"string"`
  4872. }
  4873. // String returns the string representation
  4874. func (s CreateUserProfileInput) String() string {
  4875. return awsutil.Prettify(s)
  4876. }
  4877. // GoString returns the string representation
  4878. func (s CreateUserProfileInput) GoString() string {
  4879. return s.String()
  4880. }
  4881. // Validate inspects the fields of the type to determine if they are valid.
  4882. func (s *CreateUserProfileInput) Validate() error {
  4883. invalidParams := request.ErrInvalidParams{Context: "CreateUserProfileInput"}
  4884. if s.IamUserArn == nil {
  4885. invalidParams.Add(request.NewErrParamRequired("IamUserArn"))
  4886. }
  4887. if invalidParams.Len() > 0 {
  4888. return invalidParams
  4889. }
  4890. return nil
  4891. }
  4892. // Contains the response to a CreateUserProfile request.
  4893. type CreateUserProfileOutput struct {
  4894. _ struct{} `type:"structure"`
  4895. // The user's IAM ARN.
  4896. IamUserArn *string `type:"string"`
  4897. }
  4898. // String returns the string representation
  4899. func (s CreateUserProfileOutput) String() string {
  4900. return awsutil.Prettify(s)
  4901. }
  4902. // GoString returns the string representation
  4903. func (s CreateUserProfileOutput) GoString() string {
  4904. return s.String()
  4905. }
  4906. // Describes an app's data source.
  4907. type DataSource struct {
  4908. _ struct{} `type:"structure"`
  4909. // The data source's ARN.
  4910. Arn *string `type:"string"`
  4911. // The database name.
  4912. DatabaseName *string `type:"string"`
  4913. // The data source's type, AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance,
  4914. // or RdsDbInstance.
  4915. Type *string `type:"string"`
  4916. }
  4917. // String returns the string representation
  4918. func (s DataSource) String() string {
  4919. return awsutil.Prettify(s)
  4920. }
  4921. // GoString returns the string representation
  4922. func (s DataSource) GoString() string {
  4923. return s.String()
  4924. }
  4925. type DeleteAppInput struct {
  4926. _ struct{} `type:"structure"`
  4927. // The app ID.
  4928. AppId *string `type:"string" required:"true"`
  4929. }
  4930. // String returns the string representation
  4931. func (s DeleteAppInput) String() string {
  4932. return awsutil.Prettify(s)
  4933. }
  4934. // GoString returns the string representation
  4935. func (s DeleteAppInput) GoString() string {
  4936. return s.String()
  4937. }
  4938. // Validate inspects the fields of the type to determine if they are valid.
  4939. func (s *DeleteAppInput) Validate() error {
  4940. invalidParams := request.ErrInvalidParams{Context: "DeleteAppInput"}
  4941. if s.AppId == nil {
  4942. invalidParams.Add(request.NewErrParamRequired("AppId"))
  4943. }
  4944. if invalidParams.Len() > 0 {
  4945. return invalidParams
  4946. }
  4947. return nil
  4948. }
  4949. type DeleteAppOutput struct {
  4950. _ struct{} `type:"structure"`
  4951. }
  4952. // String returns the string representation
  4953. func (s DeleteAppOutput) String() string {
  4954. return awsutil.Prettify(s)
  4955. }
  4956. // GoString returns the string representation
  4957. func (s DeleteAppOutput) GoString() string {
  4958. return s.String()
  4959. }
  4960. type DeleteInstanceInput struct {
  4961. _ struct{} `type:"structure"`
  4962. // Whether to delete the instance Elastic IP address.
  4963. DeleteElasticIp *bool `type:"boolean"`
  4964. // Whether to delete the instance's Amazon EBS volumes.
  4965. DeleteVolumes *bool `type:"boolean"`
  4966. // The instance ID.
  4967. InstanceId *string `type:"string" required:"true"`
  4968. }
  4969. // String returns the string representation
  4970. func (s DeleteInstanceInput) String() string {
  4971. return awsutil.Prettify(s)
  4972. }
  4973. // GoString returns the string representation
  4974. func (s DeleteInstanceInput) GoString() string {
  4975. return s.String()
  4976. }
  4977. // Validate inspects the fields of the type to determine if they are valid.
  4978. func (s *DeleteInstanceInput) Validate() error {
  4979. invalidParams := request.ErrInvalidParams{Context: "DeleteInstanceInput"}
  4980. if s.InstanceId == nil {
  4981. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  4982. }
  4983. if invalidParams.Len() > 0 {
  4984. return invalidParams
  4985. }
  4986. return nil
  4987. }
  4988. type DeleteInstanceOutput struct {
  4989. _ struct{} `type:"structure"`
  4990. }
  4991. // String returns the string representation
  4992. func (s DeleteInstanceOutput) String() string {
  4993. return awsutil.Prettify(s)
  4994. }
  4995. // GoString returns the string representation
  4996. func (s DeleteInstanceOutput) GoString() string {
  4997. return s.String()
  4998. }
  4999. type DeleteLayerInput struct {
  5000. _ struct{} `type:"structure"`
  5001. // The layer ID.
  5002. LayerId *string `type:"string" required:"true"`
  5003. }
  5004. // String returns the string representation
  5005. func (s DeleteLayerInput) String() string {
  5006. return awsutil.Prettify(s)
  5007. }
  5008. // GoString returns the string representation
  5009. func (s DeleteLayerInput) GoString() string {
  5010. return s.String()
  5011. }
  5012. // Validate inspects the fields of the type to determine if they are valid.
  5013. func (s *DeleteLayerInput) Validate() error {
  5014. invalidParams := request.ErrInvalidParams{Context: "DeleteLayerInput"}
  5015. if s.LayerId == nil {
  5016. invalidParams.Add(request.NewErrParamRequired("LayerId"))
  5017. }
  5018. if invalidParams.Len() > 0 {
  5019. return invalidParams
  5020. }
  5021. return nil
  5022. }
  5023. type DeleteLayerOutput struct {
  5024. _ struct{} `type:"structure"`
  5025. }
  5026. // String returns the string representation
  5027. func (s DeleteLayerOutput) String() string {
  5028. return awsutil.Prettify(s)
  5029. }
  5030. // GoString returns the string representation
  5031. func (s DeleteLayerOutput) GoString() string {
  5032. return s.String()
  5033. }
  5034. type DeleteStackInput struct {
  5035. _ struct{} `type:"structure"`
  5036. // The stack ID.
  5037. StackId *string `type:"string" required:"true"`
  5038. }
  5039. // String returns the string representation
  5040. func (s DeleteStackInput) String() string {
  5041. return awsutil.Prettify(s)
  5042. }
  5043. // GoString returns the string representation
  5044. func (s DeleteStackInput) GoString() string {
  5045. return s.String()
  5046. }
  5047. // Validate inspects the fields of the type to determine if they are valid.
  5048. func (s *DeleteStackInput) Validate() error {
  5049. invalidParams := request.ErrInvalidParams{Context: "DeleteStackInput"}
  5050. if s.StackId == nil {
  5051. invalidParams.Add(request.NewErrParamRequired("StackId"))
  5052. }
  5053. if invalidParams.Len() > 0 {
  5054. return invalidParams
  5055. }
  5056. return nil
  5057. }
  5058. type DeleteStackOutput struct {
  5059. _ struct{} `type:"structure"`
  5060. }
  5061. // String returns the string representation
  5062. func (s DeleteStackOutput) String() string {
  5063. return awsutil.Prettify(s)
  5064. }
  5065. // GoString returns the string representation
  5066. func (s DeleteStackOutput) GoString() string {
  5067. return s.String()
  5068. }
  5069. type DeleteUserProfileInput struct {
  5070. _ struct{} `type:"structure"`
  5071. // The user's IAM ARN.
  5072. IamUserArn *string `type:"string" required:"true"`
  5073. }
  5074. // String returns the string representation
  5075. func (s DeleteUserProfileInput) String() string {
  5076. return awsutil.Prettify(s)
  5077. }
  5078. // GoString returns the string representation
  5079. func (s DeleteUserProfileInput) GoString() string {
  5080. return s.String()
  5081. }
  5082. // Validate inspects the fields of the type to determine if they are valid.
  5083. func (s *DeleteUserProfileInput) Validate() error {
  5084. invalidParams := request.ErrInvalidParams{Context: "DeleteUserProfileInput"}
  5085. if s.IamUserArn == nil {
  5086. invalidParams.Add(request.NewErrParamRequired("IamUserArn"))
  5087. }
  5088. if invalidParams.Len() > 0 {
  5089. return invalidParams
  5090. }
  5091. return nil
  5092. }
  5093. type DeleteUserProfileOutput struct {
  5094. _ struct{} `type:"structure"`
  5095. }
  5096. // String returns the string representation
  5097. func (s DeleteUserProfileOutput) String() string {
  5098. return awsutil.Prettify(s)
  5099. }
  5100. // GoString returns the string representation
  5101. func (s DeleteUserProfileOutput) GoString() string {
  5102. return s.String()
  5103. }
  5104. // Describes a deployment of a stack or app.
  5105. type Deployment struct {
  5106. _ struct{} `type:"structure"`
  5107. // The app ID.
  5108. AppId *string `type:"string"`
  5109. // Used to specify a stack or deployment command.
  5110. Command *DeploymentCommand `type:"structure"`
  5111. // A user-defined comment.
  5112. Comment *string `type:"string"`
  5113. // Date when the deployment completed.
  5114. CompletedAt *string `type:"string"`
  5115. // Date when the deployment was created.
  5116. CreatedAt *string `type:"string"`
  5117. // A string that contains user-defined custom JSON. It can be used to override
  5118. // the corresponding default stack configuration attribute values for stack
  5119. // or to pass data to recipes. The string should be in the following format
  5120. // and must escape characters such as '"':
  5121. //
  5122. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  5123. //
  5124. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  5125. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  5126. CustomJson *string `type:"string"`
  5127. // The deployment ID.
  5128. DeploymentId *string `type:"string"`
  5129. // The deployment duration.
  5130. Duration *int64 `type:"integer"`
  5131. // The user's IAM ARN.
  5132. IamUserArn *string `type:"string"`
  5133. // The IDs of the target instances.
  5134. InstanceIds []*string `type:"list"`
  5135. // The stack ID.
  5136. StackId *string `type:"string"`
  5137. // The deployment status:
  5138. //
  5139. // running
  5140. //
  5141. // successful
  5142. //
  5143. // failed
  5144. Status *string `type:"string"`
  5145. }
  5146. // String returns the string representation
  5147. func (s Deployment) String() string {
  5148. return awsutil.Prettify(s)
  5149. }
  5150. // GoString returns the string representation
  5151. func (s Deployment) GoString() string {
  5152. return s.String()
  5153. }
  5154. // Used to specify a stack or deployment command.
  5155. type DeploymentCommand struct {
  5156. _ struct{} `type:"structure"`
  5157. // The arguments of those commands that take arguments. It should be set to
  5158. // a JSON object with the following format:
  5159. //
  5160. // {"arg_name1" : ["value1", "value2", ...], "arg_name2" : ["value1", "value2",
  5161. // ...], ...}
  5162. //
  5163. // The update_dependencies command takes two arguments:
  5164. //
  5165. // upgrade_os_to - Specifies the desired Amazon Linux version for instances
  5166. // whose OS you want to upgrade, such as Amazon Linux 2014.09. You must also
  5167. // set the allow_reboot argument to true.
  5168. //
  5169. // allow_reboot - Specifies whether to allow AWS OpsWorks to reboot the
  5170. // instances if necessary, after installing the updates. This argument can be
  5171. // set to either true or false. The default value is false.
  5172. //
  5173. // For example, to upgrade an instance to Amazon Linux 2014.09, set Args
  5174. // to the following.
  5175. //
  5176. // { "upgrade_os_to":["Amazon Linux 2014.09"], "allow_reboot":["true"] }
  5177. Args map[string][]*string `type:"map"`
  5178. // Specifies the operation. You can specify only one command.
  5179. //
  5180. // For stacks, the following commands are available:
  5181. //
  5182. // execute_recipes: Execute one or more recipes. To specify the recipes,
  5183. // set an Args parameter named recipes to the list of recipes to be executed.
  5184. // For example, to execute phpapp::appsetup, set Args to {"recipes":["phpapp::appsetup"]}.
  5185. //
  5186. // install_dependencies: Install the stack's dependencies.
  5187. //
  5188. // update_custom_cookbooks: Update the stack's custom cookbooks.
  5189. //
  5190. // update_dependencies: Update the stack's dependencies.
  5191. //
  5192. // The update_dependencies and install_dependencies commands are supported
  5193. // only for Linux instances. You can run the commands successfully on Windows
  5194. // instances, but they do nothing.
  5195. //
  5196. // For apps, the following commands are available:
  5197. //
  5198. // deploy: Deploy an app. Ruby on Rails apps have an optional Args parameter
  5199. // named migrate. Set Args to {"migrate":["true"]} to migrate the database.
  5200. // The default setting is {"migrate":["false"]}.
  5201. //
  5202. // rollback Roll the app back to the previous version. When you update an
  5203. // app, AWS OpsWorks stores the previous version, up to a maximum of five versions.
  5204. // You can use this command to roll an app back as many as four versions.
  5205. //
  5206. // start: Start the app's web or application server.
  5207. //
  5208. // stop: Stop the app's web or application server.
  5209. //
  5210. // restart: Restart the app's web or application server.
  5211. //
  5212. // undeploy: Undeploy the app.
  5213. Name *string `type:"string" required:"true" enum:"DeploymentCommandName"`
  5214. }
  5215. // String returns the string representation
  5216. func (s DeploymentCommand) String() string {
  5217. return awsutil.Prettify(s)
  5218. }
  5219. // GoString returns the string representation
  5220. func (s DeploymentCommand) GoString() string {
  5221. return s.String()
  5222. }
  5223. // Validate inspects the fields of the type to determine if they are valid.
  5224. func (s *DeploymentCommand) Validate() error {
  5225. invalidParams := request.ErrInvalidParams{Context: "DeploymentCommand"}
  5226. if s.Name == nil {
  5227. invalidParams.Add(request.NewErrParamRequired("Name"))
  5228. }
  5229. if invalidParams.Len() > 0 {
  5230. return invalidParams
  5231. }
  5232. return nil
  5233. }
  5234. type DeregisterEcsClusterInput struct {
  5235. _ struct{} `type:"structure"`
  5236. // The cluster's ARN.
  5237. EcsClusterArn *string `type:"string" required:"true"`
  5238. }
  5239. // String returns the string representation
  5240. func (s DeregisterEcsClusterInput) String() string {
  5241. return awsutil.Prettify(s)
  5242. }
  5243. // GoString returns the string representation
  5244. func (s DeregisterEcsClusterInput) GoString() string {
  5245. return s.String()
  5246. }
  5247. // Validate inspects the fields of the type to determine if they are valid.
  5248. func (s *DeregisterEcsClusterInput) Validate() error {
  5249. invalidParams := request.ErrInvalidParams{Context: "DeregisterEcsClusterInput"}
  5250. if s.EcsClusterArn == nil {
  5251. invalidParams.Add(request.NewErrParamRequired("EcsClusterArn"))
  5252. }
  5253. if invalidParams.Len() > 0 {
  5254. return invalidParams
  5255. }
  5256. return nil
  5257. }
  5258. type DeregisterEcsClusterOutput struct {
  5259. _ struct{} `type:"structure"`
  5260. }
  5261. // String returns the string representation
  5262. func (s DeregisterEcsClusterOutput) String() string {
  5263. return awsutil.Prettify(s)
  5264. }
  5265. // GoString returns the string representation
  5266. func (s DeregisterEcsClusterOutput) GoString() string {
  5267. return s.String()
  5268. }
  5269. type DeregisterElasticIpInput struct {
  5270. _ struct{} `type:"structure"`
  5271. // The Elastic IP address.
  5272. ElasticIp *string `type:"string" required:"true"`
  5273. }
  5274. // String returns the string representation
  5275. func (s DeregisterElasticIpInput) String() string {
  5276. return awsutil.Prettify(s)
  5277. }
  5278. // GoString returns the string representation
  5279. func (s DeregisterElasticIpInput) GoString() string {
  5280. return s.String()
  5281. }
  5282. // Validate inspects the fields of the type to determine if they are valid.
  5283. func (s *DeregisterElasticIpInput) Validate() error {
  5284. invalidParams := request.ErrInvalidParams{Context: "DeregisterElasticIpInput"}
  5285. if s.ElasticIp == nil {
  5286. invalidParams.Add(request.NewErrParamRequired("ElasticIp"))
  5287. }
  5288. if invalidParams.Len() > 0 {
  5289. return invalidParams
  5290. }
  5291. return nil
  5292. }
  5293. type DeregisterElasticIpOutput struct {
  5294. _ struct{} `type:"structure"`
  5295. }
  5296. // String returns the string representation
  5297. func (s DeregisterElasticIpOutput) String() string {
  5298. return awsutil.Prettify(s)
  5299. }
  5300. // GoString returns the string representation
  5301. func (s DeregisterElasticIpOutput) GoString() string {
  5302. return s.String()
  5303. }
  5304. type DeregisterInstanceInput struct {
  5305. _ struct{} `type:"structure"`
  5306. // The instance ID.
  5307. InstanceId *string `type:"string" required:"true"`
  5308. }
  5309. // String returns the string representation
  5310. func (s DeregisterInstanceInput) String() string {
  5311. return awsutil.Prettify(s)
  5312. }
  5313. // GoString returns the string representation
  5314. func (s DeregisterInstanceInput) GoString() string {
  5315. return s.String()
  5316. }
  5317. // Validate inspects the fields of the type to determine if they are valid.
  5318. func (s *DeregisterInstanceInput) Validate() error {
  5319. invalidParams := request.ErrInvalidParams{Context: "DeregisterInstanceInput"}
  5320. if s.InstanceId == nil {
  5321. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  5322. }
  5323. if invalidParams.Len() > 0 {
  5324. return invalidParams
  5325. }
  5326. return nil
  5327. }
  5328. type DeregisterInstanceOutput struct {
  5329. _ struct{} `type:"structure"`
  5330. }
  5331. // String returns the string representation
  5332. func (s DeregisterInstanceOutput) String() string {
  5333. return awsutil.Prettify(s)
  5334. }
  5335. // GoString returns the string representation
  5336. func (s DeregisterInstanceOutput) GoString() string {
  5337. return s.String()
  5338. }
  5339. type DeregisterRdsDbInstanceInput struct {
  5340. _ struct{} `type:"structure"`
  5341. // The Amazon RDS instance's ARN.
  5342. RdsDbInstanceArn *string `type:"string" required:"true"`
  5343. }
  5344. // String returns the string representation
  5345. func (s DeregisterRdsDbInstanceInput) String() string {
  5346. return awsutil.Prettify(s)
  5347. }
  5348. // GoString returns the string representation
  5349. func (s DeregisterRdsDbInstanceInput) GoString() string {
  5350. return s.String()
  5351. }
  5352. // Validate inspects the fields of the type to determine if they are valid.
  5353. func (s *DeregisterRdsDbInstanceInput) Validate() error {
  5354. invalidParams := request.ErrInvalidParams{Context: "DeregisterRdsDbInstanceInput"}
  5355. if s.RdsDbInstanceArn == nil {
  5356. invalidParams.Add(request.NewErrParamRequired("RdsDbInstanceArn"))
  5357. }
  5358. if invalidParams.Len() > 0 {
  5359. return invalidParams
  5360. }
  5361. return nil
  5362. }
  5363. type DeregisterRdsDbInstanceOutput struct {
  5364. _ struct{} `type:"structure"`
  5365. }
  5366. // String returns the string representation
  5367. func (s DeregisterRdsDbInstanceOutput) String() string {
  5368. return awsutil.Prettify(s)
  5369. }
  5370. // GoString returns the string representation
  5371. func (s DeregisterRdsDbInstanceOutput) GoString() string {
  5372. return s.String()
  5373. }
  5374. type DeregisterVolumeInput struct {
  5375. _ struct{} `type:"structure"`
  5376. // The AWS OpsWorks volume ID, which is the GUID that AWS OpsWorks assigned
  5377. // to the instance when you registered the volume with the stack, not the Amazon
  5378. // EC2 volume ID.
  5379. VolumeId *string `type:"string" required:"true"`
  5380. }
  5381. // String returns the string representation
  5382. func (s DeregisterVolumeInput) String() string {
  5383. return awsutil.Prettify(s)
  5384. }
  5385. // GoString returns the string representation
  5386. func (s DeregisterVolumeInput) GoString() string {
  5387. return s.String()
  5388. }
  5389. // Validate inspects the fields of the type to determine if they are valid.
  5390. func (s *DeregisterVolumeInput) Validate() error {
  5391. invalidParams := request.ErrInvalidParams{Context: "DeregisterVolumeInput"}
  5392. if s.VolumeId == nil {
  5393. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  5394. }
  5395. if invalidParams.Len() > 0 {
  5396. return invalidParams
  5397. }
  5398. return nil
  5399. }
  5400. type DeregisterVolumeOutput struct {
  5401. _ struct{} `type:"structure"`
  5402. }
  5403. // String returns the string representation
  5404. func (s DeregisterVolumeOutput) String() string {
  5405. return awsutil.Prettify(s)
  5406. }
  5407. // GoString returns the string representation
  5408. func (s DeregisterVolumeOutput) GoString() string {
  5409. return s.String()
  5410. }
  5411. type DescribeAgentVersionsInput struct {
  5412. _ struct{} `type:"structure"`
  5413. // The configuration manager.
  5414. ConfigurationManager *StackConfigurationManager `type:"structure"`
  5415. // The stack ID.
  5416. StackId *string `type:"string"`
  5417. }
  5418. // String returns the string representation
  5419. func (s DescribeAgentVersionsInput) String() string {
  5420. return awsutil.Prettify(s)
  5421. }
  5422. // GoString returns the string representation
  5423. func (s DescribeAgentVersionsInput) GoString() string {
  5424. return s.String()
  5425. }
  5426. // Contains the response to a DescribeAgentVersions request.
  5427. type DescribeAgentVersionsOutput struct {
  5428. _ struct{} `type:"structure"`
  5429. // The agent versions for the specified stack or configuration manager. Note
  5430. // that this value is the complete version number, not the abbreviated number
  5431. // used by the console.
  5432. AgentVersions []*AgentVersion `type:"list"`
  5433. }
  5434. // String returns the string representation
  5435. func (s DescribeAgentVersionsOutput) String() string {
  5436. return awsutil.Prettify(s)
  5437. }
  5438. // GoString returns the string representation
  5439. func (s DescribeAgentVersionsOutput) GoString() string {
  5440. return s.String()
  5441. }
  5442. type DescribeAppsInput struct {
  5443. _ struct{} `type:"structure"`
  5444. // An array of app IDs for the apps to be described. If you use this parameter,
  5445. // DescribeApps returns a description of the specified apps. Otherwise, it returns
  5446. // a description of every app.
  5447. AppIds []*string `type:"list"`
  5448. // The app stack ID. If you use this parameter, DescribeApps returns a description
  5449. // of the apps in the specified stack.
  5450. StackId *string `type:"string"`
  5451. }
  5452. // String returns the string representation
  5453. func (s DescribeAppsInput) String() string {
  5454. return awsutil.Prettify(s)
  5455. }
  5456. // GoString returns the string representation
  5457. func (s DescribeAppsInput) GoString() string {
  5458. return s.String()
  5459. }
  5460. // Contains the response to a DescribeApps request.
  5461. type DescribeAppsOutput struct {
  5462. _ struct{} `type:"structure"`
  5463. // An array of App objects that describe the specified apps.
  5464. Apps []*App `type:"list"`
  5465. }
  5466. // String returns the string representation
  5467. func (s DescribeAppsOutput) String() string {
  5468. return awsutil.Prettify(s)
  5469. }
  5470. // GoString returns the string representation
  5471. func (s DescribeAppsOutput) GoString() string {
  5472. return s.String()
  5473. }
  5474. type DescribeCommandsInput struct {
  5475. _ struct{} `type:"structure"`
  5476. // An array of command IDs. If you include this parameter, DescribeCommands
  5477. // returns a description of the specified commands. Otherwise, it returns a
  5478. // description of every command.
  5479. CommandIds []*string `type:"list"`
  5480. // The deployment ID. If you include this parameter, DescribeCommands returns
  5481. // a description of the commands associated with the specified deployment.
  5482. DeploymentId *string `type:"string"`
  5483. // The instance ID. If you include this parameter, DescribeCommands returns
  5484. // a description of the commands associated with the specified instance.
  5485. InstanceId *string `type:"string"`
  5486. }
  5487. // String returns the string representation
  5488. func (s DescribeCommandsInput) String() string {
  5489. return awsutil.Prettify(s)
  5490. }
  5491. // GoString returns the string representation
  5492. func (s DescribeCommandsInput) GoString() string {
  5493. return s.String()
  5494. }
  5495. // Contains the response to a DescribeCommands request.
  5496. type DescribeCommandsOutput struct {
  5497. _ struct{} `type:"structure"`
  5498. // An array of Command objects that describe each of the specified commands.
  5499. Commands []*Command `type:"list"`
  5500. }
  5501. // String returns the string representation
  5502. func (s DescribeCommandsOutput) String() string {
  5503. return awsutil.Prettify(s)
  5504. }
  5505. // GoString returns the string representation
  5506. func (s DescribeCommandsOutput) GoString() string {
  5507. return s.String()
  5508. }
  5509. type DescribeDeploymentsInput struct {
  5510. _ struct{} `type:"structure"`
  5511. // The app ID. If you include this parameter, DescribeDeployments returns a
  5512. // description of the commands associated with the specified app.
  5513. AppId *string `type:"string"`
  5514. // An array of deployment IDs to be described. If you include this parameter,
  5515. // DescribeDeployments returns a description of the specified deployments. Otherwise,
  5516. // it returns a description of every deployment.
  5517. DeploymentIds []*string `type:"list"`
  5518. // The stack ID. If you include this parameter, DescribeDeployments returns
  5519. // a description of the commands associated with the specified stack.
  5520. StackId *string `type:"string"`
  5521. }
  5522. // String returns the string representation
  5523. func (s DescribeDeploymentsInput) String() string {
  5524. return awsutil.Prettify(s)
  5525. }
  5526. // GoString returns the string representation
  5527. func (s DescribeDeploymentsInput) GoString() string {
  5528. return s.String()
  5529. }
  5530. // Contains the response to a DescribeDeployments request.
  5531. type DescribeDeploymentsOutput struct {
  5532. _ struct{} `type:"structure"`
  5533. // An array of Deployment objects that describe the deployments.
  5534. Deployments []*Deployment `type:"list"`
  5535. }
  5536. // String returns the string representation
  5537. func (s DescribeDeploymentsOutput) String() string {
  5538. return awsutil.Prettify(s)
  5539. }
  5540. // GoString returns the string representation
  5541. func (s DescribeDeploymentsOutput) GoString() string {
  5542. return s.String()
  5543. }
  5544. type DescribeEcsClustersInput struct {
  5545. _ struct{} `type:"structure"`
  5546. // A list of ARNs, one for each cluster to be described.
  5547. EcsClusterArns []*string `type:"list"`
  5548. // To receive a paginated response, use this parameter to specify the maximum
  5549. // number of results to be returned with a single call. If the number of available
  5550. // results exceeds this maximum, the response includes a NextToken value that
  5551. // you can assign to the NextToken request parameter to get the next set of
  5552. // results.
  5553. MaxResults *int64 `type:"integer"`
  5554. // If the previous paginated request did not return all of the remaining results,
  5555. // the response object'sNextToken parameter value is set to a token. To retrieve
  5556. // the next set of results, call DescribeEcsClusters again and assign that token
  5557. // to the request object's NextToken parameter. If there are no remaining results,
  5558. // the previous response object's NextToken parameter is set to null.
  5559. NextToken *string `type:"string"`
  5560. // A stack ID. DescribeEcsClusters returns a description of the cluster that
  5561. // is registered with the stack.
  5562. StackId *string `type:"string"`
  5563. }
  5564. // String returns the string representation
  5565. func (s DescribeEcsClustersInput) String() string {
  5566. return awsutil.Prettify(s)
  5567. }
  5568. // GoString returns the string representation
  5569. func (s DescribeEcsClustersInput) GoString() string {
  5570. return s.String()
  5571. }
  5572. // Contains the response to a DescribeEcsClusters request.
  5573. type DescribeEcsClustersOutput struct {
  5574. _ struct{} `type:"structure"`
  5575. // A list of EcsCluster objects containing the cluster descriptions.
  5576. EcsClusters []*EcsCluster `type:"list"`
  5577. // If a paginated request does not return all of the remaining results, this
  5578. // parameter is set to a token that you can assign to the request object's NextToken
  5579. // parameter to retrieve the next set of results. If the previous paginated
  5580. // request returned all of the remaining results, this parameter is set to null.
  5581. NextToken *string `type:"string"`
  5582. }
  5583. // String returns the string representation
  5584. func (s DescribeEcsClustersOutput) String() string {
  5585. return awsutil.Prettify(s)
  5586. }
  5587. // GoString returns the string representation
  5588. func (s DescribeEcsClustersOutput) GoString() string {
  5589. return s.String()
  5590. }
  5591. type DescribeElasticIpsInput struct {
  5592. _ struct{} `type:"structure"`
  5593. // The instance ID. If you include this parameter, DescribeElasticIps returns
  5594. // a description of the Elastic IP addresses associated with the specified instance.
  5595. InstanceId *string `type:"string"`
  5596. // An array of Elastic IP addresses to be described. If you include this parameter,
  5597. // DescribeElasticIps returns a description of the specified Elastic IP addresses.
  5598. // Otherwise, it returns a description of every Elastic IP address.
  5599. Ips []*string `type:"list"`
  5600. // A stack ID. If you include this parameter, DescribeElasticIps returns a description
  5601. // of the Elastic IP addresses that are registered with the specified stack.
  5602. StackId *string `type:"string"`
  5603. }
  5604. // String returns the string representation
  5605. func (s DescribeElasticIpsInput) String() string {
  5606. return awsutil.Prettify(s)
  5607. }
  5608. // GoString returns the string representation
  5609. func (s DescribeElasticIpsInput) GoString() string {
  5610. return s.String()
  5611. }
  5612. // Contains the response to a DescribeElasticIps request.
  5613. type DescribeElasticIpsOutput struct {
  5614. _ struct{} `type:"structure"`
  5615. // An ElasticIps object that describes the specified Elastic IP addresses.
  5616. ElasticIps []*ElasticIp `type:"list"`
  5617. }
  5618. // String returns the string representation
  5619. func (s DescribeElasticIpsOutput) String() string {
  5620. return awsutil.Prettify(s)
  5621. }
  5622. // GoString returns the string representation
  5623. func (s DescribeElasticIpsOutput) GoString() string {
  5624. return s.String()
  5625. }
  5626. type DescribeElasticLoadBalancersInput struct {
  5627. _ struct{} `type:"structure"`
  5628. // A list of layer IDs. The action describes the Elastic Load Balancing instances
  5629. // for the specified layers.
  5630. LayerIds []*string `type:"list"`
  5631. // A stack ID. The action describes the stack's Elastic Load Balancing instances.
  5632. StackId *string `type:"string"`
  5633. }
  5634. // String returns the string representation
  5635. func (s DescribeElasticLoadBalancersInput) String() string {
  5636. return awsutil.Prettify(s)
  5637. }
  5638. // GoString returns the string representation
  5639. func (s DescribeElasticLoadBalancersInput) GoString() string {
  5640. return s.String()
  5641. }
  5642. // Contains the response to a DescribeElasticLoadBalancers request.
  5643. type DescribeElasticLoadBalancersOutput struct {
  5644. _ struct{} `type:"structure"`
  5645. // A list of ElasticLoadBalancer objects that describe the specified Elastic
  5646. // Load Balancing instances.
  5647. ElasticLoadBalancers []*ElasticLoadBalancer `type:"list"`
  5648. }
  5649. // String returns the string representation
  5650. func (s DescribeElasticLoadBalancersOutput) String() string {
  5651. return awsutil.Prettify(s)
  5652. }
  5653. // GoString returns the string representation
  5654. func (s DescribeElasticLoadBalancersOutput) GoString() string {
  5655. return s.String()
  5656. }
  5657. type DescribeInstancesInput struct {
  5658. _ struct{} `type:"structure"`
  5659. // An array of instance IDs to be described. If you use this parameter, DescribeInstances
  5660. // returns a description of the specified instances. Otherwise, it returns a
  5661. // description of every instance.
  5662. InstanceIds []*string `type:"list"`
  5663. // A layer ID. If you use this parameter, DescribeInstances returns descriptions
  5664. // of the instances associated with the specified layer.
  5665. LayerId *string `type:"string"`
  5666. // A stack ID. If you use this parameter, DescribeInstances returns descriptions
  5667. // of the instances associated with the specified stack.
  5668. StackId *string `type:"string"`
  5669. }
  5670. // String returns the string representation
  5671. func (s DescribeInstancesInput) String() string {
  5672. return awsutil.Prettify(s)
  5673. }
  5674. // GoString returns the string representation
  5675. func (s DescribeInstancesInput) GoString() string {
  5676. return s.String()
  5677. }
  5678. // Contains the response to a DescribeInstances request.
  5679. type DescribeInstancesOutput struct {
  5680. _ struct{} `type:"structure"`
  5681. // An array of Instance objects that describe the instances.
  5682. Instances []*Instance `type:"list"`
  5683. }
  5684. // String returns the string representation
  5685. func (s DescribeInstancesOutput) String() string {
  5686. return awsutil.Prettify(s)
  5687. }
  5688. // GoString returns the string representation
  5689. func (s DescribeInstancesOutput) GoString() string {
  5690. return s.String()
  5691. }
  5692. type DescribeLayersInput struct {
  5693. _ struct{} `type:"structure"`
  5694. // An array of layer IDs that specify the layers to be described. If you omit
  5695. // this parameter, DescribeLayers returns a description of every layer in the
  5696. // specified stack.
  5697. LayerIds []*string `type:"list"`
  5698. // The stack ID.
  5699. StackId *string `type:"string"`
  5700. }
  5701. // String returns the string representation
  5702. func (s DescribeLayersInput) String() string {
  5703. return awsutil.Prettify(s)
  5704. }
  5705. // GoString returns the string representation
  5706. func (s DescribeLayersInput) GoString() string {
  5707. return s.String()
  5708. }
  5709. // Contains the response to a DescribeLayers request.
  5710. type DescribeLayersOutput struct {
  5711. _ struct{} `type:"structure"`
  5712. // An array of Layer objects that describe the layers.
  5713. Layers []*Layer `type:"list"`
  5714. }
  5715. // String returns the string representation
  5716. func (s DescribeLayersOutput) String() string {
  5717. return awsutil.Prettify(s)
  5718. }
  5719. // GoString returns the string representation
  5720. func (s DescribeLayersOutput) GoString() string {
  5721. return s.String()
  5722. }
  5723. type DescribeLoadBasedAutoScalingInput struct {
  5724. _ struct{} `type:"structure"`
  5725. // An array of layer IDs.
  5726. LayerIds []*string `type:"list" required:"true"`
  5727. }
  5728. // String returns the string representation
  5729. func (s DescribeLoadBasedAutoScalingInput) String() string {
  5730. return awsutil.Prettify(s)
  5731. }
  5732. // GoString returns the string representation
  5733. func (s DescribeLoadBasedAutoScalingInput) GoString() string {
  5734. return s.String()
  5735. }
  5736. // Validate inspects the fields of the type to determine if they are valid.
  5737. func (s *DescribeLoadBasedAutoScalingInput) Validate() error {
  5738. invalidParams := request.ErrInvalidParams{Context: "DescribeLoadBasedAutoScalingInput"}
  5739. if s.LayerIds == nil {
  5740. invalidParams.Add(request.NewErrParamRequired("LayerIds"))
  5741. }
  5742. if invalidParams.Len() > 0 {
  5743. return invalidParams
  5744. }
  5745. return nil
  5746. }
  5747. // Contains the response to a DescribeLoadBasedAutoScaling request.
  5748. type DescribeLoadBasedAutoScalingOutput struct {
  5749. _ struct{} `type:"structure"`
  5750. // An array of LoadBasedAutoScalingConfiguration objects that describe each
  5751. // layer's configuration.
  5752. LoadBasedAutoScalingConfigurations []*LoadBasedAutoScalingConfiguration `type:"list"`
  5753. }
  5754. // String returns the string representation
  5755. func (s DescribeLoadBasedAutoScalingOutput) String() string {
  5756. return awsutil.Prettify(s)
  5757. }
  5758. // GoString returns the string representation
  5759. func (s DescribeLoadBasedAutoScalingOutput) GoString() string {
  5760. return s.String()
  5761. }
  5762. type DescribeMyUserProfileInput struct {
  5763. _ struct{} `type:"structure"`
  5764. }
  5765. // String returns the string representation
  5766. func (s DescribeMyUserProfileInput) String() string {
  5767. return awsutil.Prettify(s)
  5768. }
  5769. // GoString returns the string representation
  5770. func (s DescribeMyUserProfileInput) GoString() string {
  5771. return s.String()
  5772. }
  5773. // Contains the response to a DescribeMyUserProfile request.
  5774. type DescribeMyUserProfileOutput struct {
  5775. _ struct{} `type:"structure"`
  5776. // A UserProfile object that describes the user's SSH information.
  5777. UserProfile *SelfUserProfile `type:"structure"`
  5778. }
  5779. // String returns the string representation
  5780. func (s DescribeMyUserProfileOutput) String() string {
  5781. return awsutil.Prettify(s)
  5782. }
  5783. // GoString returns the string representation
  5784. func (s DescribeMyUserProfileOutput) GoString() string {
  5785. return s.String()
  5786. }
  5787. type DescribePermissionsInput struct {
  5788. _ struct{} `type:"structure"`
  5789. // The user's IAM ARN. For more information about IAM ARNs, see Using Identifiers
  5790. // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  5791. IamUserArn *string `type:"string"`
  5792. // The stack ID.
  5793. StackId *string `type:"string"`
  5794. }
  5795. // String returns the string representation
  5796. func (s DescribePermissionsInput) String() string {
  5797. return awsutil.Prettify(s)
  5798. }
  5799. // GoString returns the string representation
  5800. func (s DescribePermissionsInput) GoString() string {
  5801. return s.String()
  5802. }
  5803. // Contains the response to a DescribePermissions request.
  5804. type DescribePermissionsOutput struct {
  5805. _ struct{} `type:"structure"`
  5806. // An array of Permission objects that describe the stack permissions.
  5807. //
  5808. // If the request object contains only a stack ID, the array contains a Permission
  5809. // object with permissions for each of the stack IAM ARNs.
  5810. //
  5811. // If the request object contains only an IAM ARN, the array contains a Permission
  5812. // object with permissions for each of the user's stack IDs.
  5813. //
  5814. // If the request contains a stack ID and an IAM ARN, the array contains
  5815. // a single Permission object with permissions for the specified stack and IAM
  5816. // ARN.
  5817. Permissions []*Permission `type:"list"`
  5818. }
  5819. // String returns the string representation
  5820. func (s DescribePermissionsOutput) String() string {
  5821. return awsutil.Prettify(s)
  5822. }
  5823. // GoString returns the string representation
  5824. func (s DescribePermissionsOutput) GoString() string {
  5825. return s.String()
  5826. }
  5827. type DescribeRaidArraysInput struct {
  5828. _ struct{} `type:"structure"`
  5829. // The instance ID. If you use this parameter, DescribeRaidArrays returns descriptions
  5830. // of the RAID arrays associated with the specified instance.
  5831. InstanceId *string `type:"string"`
  5832. // An array of RAID array IDs. If you use this parameter, DescribeRaidArrays
  5833. // returns descriptions of the specified arrays. Otherwise, it returns a description
  5834. // of every array.
  5835. RaidArrayIds []*string `type:"list"`
  5836. // The stack ID.
  5837. StackId *string `type:"string"`
  5838. }
  5839. // String returns the string representation
  5840. func (s DescribeRaidArraysInput) String() string {
  5841. return awsutil.Prettify(s)
  5842. }
  5843. // GoString returns the string representation
  5844. func (s DescribeRaidArraysInput) GoString() string {
  5845. return s.String()
  5846. }
  5847. // Contains the response to a DescribeRaidArrays request.
  5848. type DescribeRaidArraysOutput struct {
  5849. _ struct{} `type:"structure"`
  5850. // A RaidArrays object that describes the specified RAID arrays.
  5851. RaidArrays []*RaidArray `type:"list"`
  5852. }
  5853. // String returns the string representation
  5854. func (s DescribeRaidArraysOutput) String() string {
  5855. return awsutil.Prettify(s)
  5856. }
  5857. // GoString returns the string representation
  5858. func (s DescribeRaidArraysOutput) GoString() string {
  5859. return s.String()
  5860. }
  5861. type DescribeRdsDbInstancesInput struct {
  5862. _ struct{} `type:"structure"`
  5863. // An array containing the ARNs of the instances to be described.
  5864. RdsDbInstanceArns []*string `type:"list"`
  5865. // The stack ID that the instances are registered with. The operation returns
  5866. // descriptions of all registered Amazon RDS instances.
  5867. StackId *string `type:"string" required:"true"`
  5868. }
  5869. // String returns the string representation
  5870. func (s DescribeRdsDbInstancesInput) String() string {
  5871. return awsutil.Prettify(s)
  5872. }
  5873. // GoString returns the string representation
  5874. func (s DescribeRdsDbInstancesInput) GoString() string {
  5875. return s.String()
  5876. }
  5877. // Validate inspects the fields of the type to determine if they are valid.
  5878. func (s *DescribeRdsDbInstancesInput) Validate() error {
  5879. invalidParams := request.ErrInvalidParams{Context: "DescribeRdsDbInstancesInput"}
  5880. if s.StackId == nil {
  5881. invalidParams.Add(request.NewErrParamRequired("StackId"))
  5882. }
  5883. if invalidParams.Len() > 0 {
  5884. return invalidParams
  5885. }
  5886. return nil
  5887. }
  5888. // Contains the response to a DescribeRdsDbInstances request.
  5889. type DescribeRdsDbInstancesOutput struct {
  5890. _ struct{} `type:"structure"`
  5891. // An a array of RdsDbInstance objects that describe the instances.
  5892. RdsDbInstances []*RdsDbInstance `type:"list"`
  5893. }
  5894. // String returns the string representation
  5895. func (s DescribeRdsDbInstancesOutput) String() string {
  5896. return awsutil.Prettify(s)
  5897. }
  5898. // GoString returns the string representation
  5899. func (s DescribeRdsDbInstancesOutput) GoString() string {
  5900. return s.String()
  5901. }
  5902. type DescribeServiceErrorsInput struct {
  5903. _ struct{} `type:"structure"`
  5904. // The instance ID. If you use this parameter, DescribeServiceErrors returns
  5905. // descriptions of the errors associated with the specified instance.
  5906. InstanceId *string `type:"string"`
  5907. // An array of service error IDs. If you use this parameter, DescribeServiceErrors
  5908. // returns descriptions of the specified errors. Otherwise, it returns a description
  5909. // of every error.
  5910. ServiceErrorIds []*string `type:"list"`
  5911. // The stack ID. If you use this parameter, DescribeServiceErrors returns descriptions
  5912. // of the errors associated with the specified stack.
  5913. StackId *string `type:"string"`
  5914. }
  5915. // String returns the string representation
  5916. func (s DescribeServiceErrorsInput) String() string {
  5917. return awsutil.Prettify(s)
  5918. }
  5919. // GoString returns the string representation
  5920. func (s DescribeServiceErrorsInput) GoString() string {
  5921. return s.String()
  5922. }
  5923. // Contains the response to a DescribeServiceErrors request.
  5924. type DescribeServiceErrorsOutput struct {
  5925. _ struct{} `type:"structure"`
  5926. // An array of ServiceError objects that describe the specified service errors.
  5927. ServiceErrors []*ServiceError `type:"list"`
  5928. }
  5929. // String returns the string representation
  5930. func (s DescribeServiceErrorsOutput) String() string {
  5931. return awsutil.Prettify(s)
  5932. }
  5933. // GoString returns the string representation
  5934. func (s DescribeServiceErrorsOutput) GoString() string {
  5935. return s.String()
  5936. }
  5937. type DescribeStackProvisioningParametersInput struct {
  5938. _ struct{} `type:"structure"`
  5939. // The stack ID
  5940. StackId *string `type:"string" required:"true"`
  5941. }
  5942. // String returns the string representation
  5943. func (s DescribeStackProvisioningParametersInput) String() string {
  5944. return awsutil.Prettify(s)
  5945. }
  5946. // GoString returns the string representation
  5947. func (s DescribeStackProvisioningParametersInput) GoString() string {
  5948. return s.String()
  5949. }
  5950. // Validate inspects the fields of the type to determine if they are valid.
  5951. func (s *DescribeStackProvisioningParametersInput) Validate() error {
  5952. invalidParams := request.ErrInvalidParams{Context: "DescribeStackProvisioningParametersInput"}
  5953. if s.StackId == nil {
  5954. invalidParams.Add(request.NewErrParamRequired("StackId"))
  5955. }
  5956. if invalidParams.Len() > 0 {
  5957. return invalidParams
  5958. }
  5959. return nil
  5960. }
  5961. // Contains the response to a DescribeStackProvisioningParameters request.
  5962. type DescribeStackProvisioningParametersOutput struct {
  5963. _ struct{} `type:"structure"`
  5964. // The AWS OpsWorks agent installer's URL.
  5965. AgentInstallerUrl *string `type:"string"`
  5966. // An embedded object that contains the provisioning parameters.
  5967. Parameters map[string]*string `type:"map"`
  5968. }
  5969. // String returns the string representation
  5970. func (s DescribeStackProvisioningParametersOutput) String() string {
  5971. return awsutil.Prettify(s)
  5972. }
  5973. // GoString returns the string representation
  5974. func (s DescribeStackProvisioningParametersOutput) GoString() string {
  5975. return s.String()
  5976. }
  5977. type DescribeStackSummaryInput struct {
  5978. _ struct{} `type:"structure"`
  5979. // The stack ID.
  5980. StackId *string `type:"string" required:"true"`
  5981. }
  5982. // String returns the string representation
  5983. func (s DescribeStackSummaryInput) String() string {
  5984. return awsutil.Prettify(s)
  5985. }
  5986. // GoString returns the string representation
  5987. func (s DescribeStackSummaryInput) GoString() string {
  5988. return s.String()
  5989. }
  5990. // Validate inspects the fields of the type to determine if they are valid.
  5991. func (s *DescribeStackSummaryInput) Validate() error {
  5992. invalidParams := request.ErrInvalidParams{Context: "DescribeStackSummaryInput"}
  5993. if s.StackId == nil {
  5994. invalidParams.Add(request.NewErrParamRequired("StackId"))
  5995. }
  5996. if invalidParams.Len() > 0 {
  5997. return invalidParams
  5998. }
  5999. return nil
  6000. }
  6001. // Contains the response to a DescribeStackSummary request.
  6002. type DescribeStackSummaryOutput struct {
  6003. _ struct{} `type:"structure"`
  6004. // A StackSummary object that contains the results.
  6005. StackSummary *StackSummary `type:"structure"`
  6006. }
  6007. // String returns the string representation
  6008. func (s DescribeStackSummaryOutput) String() string {
  6009. return awsutil.Prettify(s)
  6010. }
  6011. // GoString returns the string representation
  6012. func (s DescribeStackSummaryOutput) GoString() string {
  6013. return s.String()
  6014. }
  6015. type DescribeStacksInput struct {
  6016. _ struct{} `type:"structure"`
  6017. // An array of stack IDs that specify the stacks to be described. If you omit
  6018. // this parameter, DescribeStacks returns a description of every stack.
  6019. StackIds []*string `type:"list"`
  6020. }
  6021. // String returns the string representation
  6022. func (s DescribeStacksInput) String() string {
  6023. return awsutil.Prettify(s)
  6024. }
  6025. // GoString returns the string representation
  6026. func (s DescribeStacksInput) GoString() string {
  6027. return s.String()
  6028. }
  6029. // Contains the response to a DescribeStacks request.
  6030. type DescribeStacksOutput struct {
  6031. _ struct{} `type:"structure"`
  6032. // An array of Stack objects that describe the stacks.
  6033. Stacks []*Stack `type:"list"`
  6034. }
  6035. // String returns the string representation
  6036. func (s DescribeStacksOutput) String() string {
  6037. return awsutil.Prettify(s)
  6038. }
  6039. // GoString returns the string representation
  6040. func (s DescribeStacksOutput) GoString() string {
  6041. return s.String()
  6042. }
  6043. type DescribeTimeBasedAutoScalingInput struct {
  6044. _ struct{} `type:"structure"`
  6045. // An array of instance IDs.
  6046. InstanceIds []*string `type:"list" required:"true"`
  6047. }
  6048. // String returns the string representation
  6049. func (s DescribeTimeBasedAutoScalingInput) String() string {
  6050. return awsutil.Prettify(s)
  6051. }
  6052. // GoString returns the string representation
  6053. func (s DescribeTimeBasedAutoScalingInput) GoString() string {
  6054. return s.String()
  6055. }
  6056. // Validate inspects the fields of the type to determine if they are valid.
  6057. func (s *DescribeTimeBasedAutoScalingInput) Validate() error {
  6058. invalidParams := request.ErrInvalidParams{Context: "DescribeTimeBasedAutoScalingInput"}
  6059. if s.InstanceIds == nil {
  6060. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  6061. }
  6062. if invalidParams.Len() > 0 {
  6063. return invalidParams
  6064. }
  6065. return nil
  6066. }
  6067. // Contains the response to a DescribeTimeBasedAutoScaling request.
  6068. type DescribeTimeBasedAutoScalingOutput struct {
  6069. _ struct{} `type:"structure"`
  6070. // An array of TimeBasedAutoScalingConfiguration objects that describe the configuration
  6071. // for the specified instances.
  6072. TimeBasedAutoScalingConfigurations []*TimeBasedAutoScalingConfiguration `type:"list"`
  6073. }
  6074. // String returns the string representation
  6075. func (s DescribeTimeBasedAutoScalingOutput) String() string {
  6076. return awsutil.Prettify(s)
  6077. }
  6078. // GoString returns the string representation
  6079. func (s DescribeTimeBasedAutoScalingOutput) GoString() string {
  6080. return s.String()
  6081. }
  6082. type DescribeUserProfilesInput struct {
  6083. _ struct{} `type:"structure"`
  6084. // An array of IAM user ARNs that identify the users to be described.
  6085. IamUserArns []*string `type:"list"`
  6086. }
  6087. // String returns the string representation
  6088. func (s DescribeUserProfilesInput) String() string {
  6089. return awsutil.Prettify(s)
  6090. }
  6091. // GoString returns the string representation
  6092. func (s DescribeUserProfilesInput) GoString() string {
  6093. return s.String()
  6094. }
  6095. // Contains the response to a DescribeUserProfiles request.
  6096. type DescribeUserProfilesOutput struct {
  6097. _ struct{} `type:"structure"`
  6098. // A Users object that describes the specified users.
  6099. UserProfiles []*UserProfile `type:"list"`
  6100. }
  6101. // String returns the string representation
  6102. func (s DescribeUserProfilesOutput) String() string {
  6103. return awsutil.Prettify(s)
  6104. }
  6105. // GoString returns the string representation
  6106. func (s DescribeUserProfilesOutput) GoString() string {
  6107. return s.String()
  6108. }
  6109. type DescribeVolumesInput struct {
  6110. _ struct{} `type:"structure"`
  6111. // The instance ID. If you use this parameter, DescribeVolumes returns descriptions
  6112. // of the volumes associated with the specified instance.
  6113. InstanceId *string `type:"string"`
  6114. // The RAID array ID. If you use this parameter, DescribeVolumes returns descriptions
  6115. // of the volumes associated with the specified RAID array.
  6116. RaidArrayId *string `type:"string"`
  6117. // A stack ID. The action describes the stack's registered Amazon EBS volumes.
  6118. StackId *string `type:"string"`
  6119. // Am array of volume IDs. If you use this parameter, DescribeVolumes returns
  6120. // descriptions of the specified volumes. Otherwise, it returns a description
  6121. // of every volume.
  6122. VolumeIds []*string `type:"list"`
  6123. }
  6124. // String returns the string representation
  6125. func (s DescribeVolumesInput) String() string {
  6126. return awsutil.Prettify(s)
  6127. }
  6128. // GoString returns the string representation
  6129. func (s DescribeVolumesInput) GoString() string {
  6130. return s.String()
  6131. }
  6132. // Contains the response to a DescribeVolumes request.
  6133. type DescribeVolumesOutput struct {
  6134. _ struct{} `type:"structure"`
  6135. // An array of volume IDs.
  6136. Volumes []*Volume `type:"list"`
  6137. }
  6138. // String returns the string representation
  6139. func (s DescribeVolumesOutput) String() string {
  6140. return awsutil.Prettify(s)
  6141. }
  6142. // GoString returns the string representation
  6143. func (s DescribeVolumesOutput) GoString() string {
  6144. return s.String()
  6145. }
  6146. type DetachElasticLoadBalancerInput struct {
  6147. _ struct{} `type:"structure"`
  6148. // The Elastic Load Balancing instance's name.
  6149. ElasticLoadBalancerName *string `type:"string" required:"true"`
  6150. // The ID of the layer that the Elastic Load Balancing instance is attached
  6151. // to.
  6152. LayerId *string `type:"string" required:"true"`
  6153. }
  6154. // String returns the string representation
  6155. func (s DetachElasticLoadBalancerInput) String() string {
  6156. return awsutil.Prettify(s)
  6157. }
  6158. // GoString returns the string representation
  6159. func (s DetachElasticLoadBalancerInput) GoString() string {
  6160. return s.String()
  6161. }
  6162. // Validate inspects the fields of the type to determine if they are valid.
  6163. func (s *DetachElasticLoadBalancerInput) Validate() error {
  6164. invalidParams := request.ErrInvalidParams{Context: "DetachElasticLoadBalancerInput"}
  6165. if s.ElasticLoadBalancerName == nil {
  6166. invalidParams.Add(request.NewErrParamRequired("ElasticLoadBalancerName"))
  6167. }
  6168. if s.LayerId == nil {
  6169. invalidParams.Add(request.NewErrParamRequired("LayerId"))
  6170. }
  6171. if invalidParams.Len() > 0 {
  6172. return invalidParams
  6173. }
  6174. return nil
  6175. }
  6176. type DetachElasticLoadBalancerOutput struct {
  6177. _ struct{} `type:"structure"`
  6178. }
  6179. // String returns the string representation
  6180. func (s DetachElasticLoadBalancerOutput) String() string {
  6181. return awsutil.Prettify(s)
  6182. }
  6183. // GoString returns the string representation
  6184. func (s DetachElasticLoadBalancerOutput) GoString() string {
  6185. return s.String()
  6186. }
  6187. type DisassociateElasticIpInput struct {
  6188. _ struct{} `type:"structure"`
  6189. // The Elastic IP address.
  6190. ElasticIp *string `type:"string" required:"true"`
  6191. }
  6192. // String returns the string representation
  6193. func (s DisassociateElasticIpInput) String() string {
  6194. return awsutil.Prettify(s)
  6195. }
  6196. // GoString returns the string representation
  6197. func (s DisassociateElasticIpInput) GoString() string {
  6198. return s.String()
  6199. }
  6200. // Validate inspects the fields of the type to determine if they are valid.
  6201. func (s *DisassociateElasticIpInput) Validate() error {
  6202. invalidParams := request.ErrInvalidParams{Context: "DisassociateElasticIpInput"}
  6203. if s.ElasticIp == nil {
  6204. invalidParams.Add(request.NewErrParamRequired("ElasticIp"))
  6205. }
  6206. if invalidParams.Len() > 0 {
  6207. return invalidParams
  6208. }
  6209. return nil
  6210. }
  6211. type DisassociateElasticIpOutput struct {
  6212. _ struct{} `type:"structure"`
  6213. }
  6214. // String returns the string representation
  6215. func (s DisassociateElasticIpOutput) String() string {
  6216. return awsutil.Prettify(s)
  6217. }
  6218. // GoString returns the string representation
  6219. func (s DisassociateElasticIpOutput) GoString() string {
  6220. return s.String()
  6221. }
  6222. // Describes an Amazon EBS volume. This data type maps directly to the Amazon
  6223. // EC2 EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html)
  6224. // data type.
  6225. type EbsBlockDevice struct {
  6226. _ struct{} `type:"structure"`
  6227. // Whether the volume is deleted on instance termination.
  6228. DeleteOnTermination *bool `type:"boolean"`
  6229. // The number of I/O operations per second (IOPS) that the volume supports.
  6230. // For more information, see EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html).
  6231. Iops *int64 `type:"integer"`
  6232. // The snapshot ID.
  6233. SnapshotId *string `type:"string"`
  6234. // The volume size, in GiB. For more information, see EbsBlockDevice (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html).
  6235. VolumeSize *int64 `type:"integer"`
  6236. // The volume type. gp2 for General Purpose (SSD) volumes, io1 for Provisioned
  6237. // IOPS (SSD) volumes, and standard for Magnetic volumes.
  6238. VolumeType *string `type:"string" enum:"VolumeType"`
  6239. }
  6240. // String returns the string representation
  6241. func (s EbsBlockDevice) String() string {
  6242. return awsutil.Prettify(s)
  6243. }
  6244. // GoString returns the string representation
  6245. func (s EbsBlockDevice) GoString() string {
  6246. return s.String()
  6247. }
  6248. // Describes a registered Amazon ECS cluster.
  6249. type EcsCluster struct {
  6250. _ struct{} `type:"structure"`
  6251. // The cluster's ARN.
  6252. EcsClusterArn *string `type:"string"`
  6253. // The cluster name.
  6254. EcsClusterName *string `type:"string"`
  6255. // The time and date that the cluster was registered with the stack.
  6256. RegisteredAt *string `type:"string"`
  6257. // The stack ID.
  6258. StackId *string `type:"string"`
  6259. }
  6260. // String returns the string representation
  6261. func (s EcsCluster) String() string {
  6262. return awsutil.Prettify(s)
  6263. }
  6264. // GoString returns the string representation
  6265. func (s EcsCluster) GoString() string {
  6266. return s.String()
  6267. }
  6268. // Describes an Elastic IP address.
  6269. type ElasticIp struct {
  6270. _ struct{} `type:"structure"`
  6271. // The domain.
  6272. Domain *string `type:"string"`
  6273. // The ID of the instance that the address is attached to.
  6274. InstanceId *string `type:"string"`
  6275. // The IP address.
  6276. Ip *string `type:"string"`
  6277. // The name.
  6278. Name *string `type:"string"`
  6279. // The AWS region. For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  6280. Region *string `type:"string"`
  6281. }
  6282. // String returns the string representation
  6283. func (s ElasticIp) String() string {
  6284. return awsutil.Prettify(s)
  6285. }
  6286. // GoString returns the string representation
  6287. func (s ElasticIp) GoString() string {
  6288. return s.String()
  6289. }
  6290. // Describes an Elastic Load Balancing instance.
  6291. type ElasticLoadBalancer struct {
  6292. _ struct{} `type:"structure"`
  6293. // A list of Availability Zones.
  6294. AvailabilityZones []*string `type:"list"`
  6295. // The instance's public DNS name.
  6296. DnsName *string `type:"string"`
  6297. // A list of the EC2 instances that the Elastic Load Balancing instance is managing
  6298. // traffic for.
  6299. Ec2InstanceIds []*string `type:"list"`
  6300. // The Elastic Load Balancing instance's name.
  6301. ElasticLoadBalancerName *string `type:"string"`
  6302. // The ID of the layer that the instance is attached to.
  6303. LayerId *string `type:"string"`
  6304. // The instance's AWS region.
  6305. Region *string `type:"string"`
  6306. // The ID of the stack that the instance is associated with.
  6307. StackId *string `type:"string"`
  6308. // A list of subnet IDs, if the stack is running in a VPC.
  6309. SubnetIds []*string `type:"list"`
  6310. // The VPC ID.
  6311. VpcId *string `type:"string"`
  6312. }
  6313. // String returns the string representation
  6314. func (s ElasticLoadBalancer) String() string {
  6315. return awsutil.Prettify(s)
  6316. }
  6317. // GoString returns the string representation
  6318. func (s ElasticLoadBalancer) GoString() string {
  6319. return s.String()
  6320. }
  6321. // Represents an app's environment variable.
  6322. type EnvironmentVariable struct {
  6323. _ struct{} `type:"structure"`
  6324. // (Required) The environment variable's name, which can consist of up to 64
  6325. // characters and must be specified. The name can contain upper- and lowercase
  6326. // letters, numbers, and underscores (_), but it must start with a letter or
  6327. // underscore.
  6328. Key *string `type:"string" required:"true"`
  6329. // (Optional) Whether the variable's value will be returned by the DescribeApps
  6330. // action. To conceal an environment variable's value, set Secure to true. DescribeApps
  6331. // then returns *****FILTERED***** instead of the actual value. The default
  6332. // value for Secure is false.
  6333. Secure *bool `type:"boolean"`
  6334. // (Optional) The environment variable's value, which can be left empty. If
  6335. // you specify a value, it can contain up to 256 characters, which must all
  6336. // be printable.
  6337. Value *string `type:"string" required:"true"`
  6338. }
  6339. // String returns the string representation
  6340. func (s EnvironmentVariable) String() string {
  6341. return awsutil.Prettify(s)
  6342. }
  6343. // GoString returns the string representation
  6344. func (s EnvironmentVariable) GoString() string {
  6345. return s.String()
  6346. }
  6347. // Validate inspects the fields of the type to determine if they are valid.
  6348. func (s *EnvironmentVariable) Validate() error {
  6349. invalidParams := request.ErrInvalidParams{Context: "EnvironmentVariable"}
  6350. if s.Key == nil {
  6351. invalidParams.Add(request.NewErrParamRequired("Key"))
  6352. }
  6353. if s.Value == nil {
  6354. invalidParams.Add(request.NewErrParamRequired("Value"))
  6355. }
  6356. if invalidParams.Len() > 0 {
  6357. return invalidParams
  6358. }
  6359. return nil
  6360. }
  6361. type GetHostnameSuggestionInput struct {
  6362. _ struct{} `type:"structure"`
  6363. // The layer ID.
  6364. LayerId *string `type:"string" required:"true"`
  6365. }
  6366. // String returns the string representation
  6367. func (s GetHostnameSuggestionInput) String() string {
  6368. return awsutil.Prettify(s)
  6369. }
  6370. // GoString returns the string representation
  6371. func (s GetHostnameSuggestionInput) GoString() string {
  6372. return s.String()
  6373. }
  6374. // Validate inspects the fields of the type to determine if they are valid.
  6375. func (s *GetHostnameSuggestionInput) Validate() error {
  6376. invalidParams := request.ErrInvalidParams{Context: "GetHostnameSuggestionInput"}
  6377. if s.LayerId == nil {
  6378. invalidParams.Add(request.NewErrParamRequired("LayerId"))
  6379. }
  6380. if invalidParams.Len() > 0 {
  6381. return invalidParams
  6382. }
  6383. return nil
  6384. }
  6385. // Contains the response to a GetHostnameSuggestion request.
  6386. type GetHostnameSuggestionOutput struct {
  6387. _ struct{} `type:"structure"`
  6388. // The generated host name.
  6389. Hostname *string `type:"string"`
  6390. // The layer ID.
  6391. LayerId *string `type:"string"`
  6392. }
  6393. // String returns the string representation
  6394. func (s GetHostnameSuggestionOutput) String() string {
  6395. return awsutil.Prettify(s)
  6396. }
  6397. // GoString returns the string representation
  6398. func (s GetHostnameSuggestionOutput) GoString() string {
  6399. return s.String()
  6400. }
  6401. type GrantAccessInput struct {
  6402. _ struct{} `type:"structure"`
  6403. // The instance's AWS OpsWorks ID.
  6404. InstanceId *string `type:"string" required:"true"`
  6405. // The length of time (in minutes) that the grant is valid. When the grant expires
  6406. // at the end of this period, the user will no longer be able to use the credentials
  6407. // to log in. If the user is logged in at the time, he or she automatically
  6408. // will be logged out.
  6409. ValidForInMinutes *int64 `min:"60" type:"integer"`
  6410. }
  6411. // String returns the string representation
  6412. func (s GrantAccessInput) String() string {
  6413. return awsutil.Prettify(s)
  6414. }
  6415. // GoString returns the string representation
  6416. func (s GrantAccessInput) GoString() string {
  6417. return s.String()
  6418. }
  6419. // Validate inspects the fields of the type to determine if they are valid.
  6420. func (s *GrantAccessInput) Validate() error {
  6421. invalidParams := request.ErrInvalidParams{Context: "GrantAccessInput"}
  6422. if s.InstanceId == nil {
  6423. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  6424. }
  6425. if s.ValidForInMinutes != nil && *s.ValidForInMinutes < 60 {
  6426. invalidParams.Add(request.NewErrParamMinValue("ValidForInMinutes", 60))
  6427. }
  6428. if invalidParams.Len() > 0 {
  6429. return invalidParams
  6430. }
  6431. return nil
  6432. }
  6433. // Contains the response to a GrantAccess request.
  6434. type GrantAccessOutput struct {
  6435. _ struct{} `type:"structure"`
  6436. // A TemporaryCredential object that contains the data needed to log in to the
  6437. // instance by RDP clients, such as the Microsoft Remote Desktop Connection.
  6438. TemporaryCredential *TemporaryCredential `type:"structure"`
  6439. }
  6440. // String returns the string representation
  6441. func (s GrantAccessOutput) String() string {
  6442. return awsutil.Prettify(s)
  6443. }
  6444. // GoString returns the string representation
  6445. func (s GrantAccessOutput) GoString() string {
  6446. return s.String()
  6447. }
  6448. // Describes an instance.
  6449. type Instance struct {
  6450. _ struct{} `type:"structure"`
  6451. // The agent version. This parameter is set to INHERIT if the instance inherits
  6452. // the default stack setting or to a a version number for a fixed agent version.
  6453. AgentVersion *string `type:"string"`
  6454. // A custom AMI ID to be used to create the instance. For more information,
  6455. // see Instances (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html)
  6456. AmiId *string `type:"string"`
  6457. // The instance architecture: "i386" or "x86_64".
  6458. Architecture *string `type:"string" enum:"Architecture"`
  6459. // For load-based or time-based instances, the type.
  6460. AutoScalingType *string `type:"string" enum:"AutoScalingType"`
  6461. // The instance Availability Zone. For more information, see Regions and Endpoints
  6462. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  6463. AvailabilityZone *string `type:"string"`
  6464. // An array of BlockDeviceMapping objects that specify the instance's block
  6465. // device mappings.
  6466. BlockDeviceMappings []*BlockDeviceMapping `type:"list"`
  6467. // The time that the instance was created.
  6468. CreatedAt *string `type:"string"`
  6469. // Whether this is an Amazon EBS-optimized instance.
  6470. EbsOptimized *bool `type:"boolean"`
  6471. // The ID of the associated Amazon EC2 instance.
  6472. Ec2InstanceId *string `type:"string"`
  6473. // For container instances, the Amazon ECS cluster's ARN.
  6474. EcsClusterArn *string `type:"string"`
  6475. // For container instances, the instance's ARN.
  6476. EcsContainerInstanceArn *string `type:"string"`
  6477. // The instance Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html).
  6478. ElasticIp *string `type:"string"`
  6479. // The instance host name.
  6480. Hostname *string `type:"string"`
  6481. // For registered instances, the infrastructure class: ec2 or on-premises.
  6482. InfrastructureClass *string `type:"string"`
  6483. // Whether to install operating system and package updates when the instance
  6484. // boots. The default value is true. If this value is set to false, you must
  6485. // then update your instances manually by using CreateDeployment to run the
  6486. // update_dependencies stack command or by manually running yum (Amazon Linux)
  6487. // or apt-get (Ubuntu) on the instances.
  6488. //
  6489. // We strongly recommend using the default value of true, to ensure that your
  6490. // instances have the latest security updates.
  6491. InstallUpdatesOnBoot *bool `type:"boolean"`
  6492. // The instance ID.
  6493. InstanceId *string `type:"string"`
  6494. // The ARN of the instance's IAM profile. For more information about IAM ARNs,
  6495. // see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  6496. InstanceProfileArn *string `type:"string"`
  6497. // The instance type, such as t2.micro.
  6498. InstanceType *string `type:"string"`
  6499. // The ID of the last service error. For more information, call DescribeServiceErrors.
  6500. LastServiceErrorId *string `type:"string"`
  6501. // An array containing the instance layer IDs.
  6502. LayerIds []*string `type:"list"`
  6503. // The instance's operating system.
  6504. Os *string `type:"string"`
  6505. // The instance's platform.
  6506. Platform *string `type:"string"`
  6507. // The The instance's private DNS name.
  6508. PrivateDns *string `type:"string"`
  6509. // The instance's private IP address.
  6510. PrivateIp *string `type:"string"`
  6511. // The instance public DNS name.
  6512. PublicDns *string `type:"string"`
  6513. // The instance public IP address.
  6514. PublicIp *string `type:"string"`
  6515. // For registered instances, who performed the registration.
  6516. RegisteredBy *string `type:"string"`
  6517. // The instance's reported AWS OpsWorks agent version.
  6518. ReportedAgentVersion *string `type:"string"`
  6519. // For registered instances, the reported operating system.
  6520. ReportedOs *ReportedOs `type:"structure"`
  6521. // The instance's root device type. For more information, see Storage for the
  6522. // Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  6523. RootDeviceType *string `type:"string" enum:"RootDeviceType"`
  6524. // The root device volume ID.
  6525. RootDeviceVolumeId *string `type:"string"`
  6526. // An array containing the instance security group IDs.
  6527. SecurityGroupIds []*string `type:"list"`
  6528. // The SSH key's Deep Security Agent (DSA) fingerprint.
  6529. SshHostDsaKeyFingerprint *string `type:"string"`
  6530. // The SSH key's RSA fingerprint.
  6531. SshHostRsaKeyFingerprint *string `type:"string"`
  6532. // The instance's Amazon EC2 key-pair name.
  6533. SshKeyName *string `type:"string"`
  6534. // The stack ID.
  6535. StackId *string `type:"string"`
  6536. // The instance status:
  6537. //
  6538. // booting
  6539. //
  6540. // connection_lost
  6541. //
  6542. // online
  6543. //
  6544. // pending
  6545. //
  6546. // rebooting
  6547. //
  6548. // requested
  6549. //
  6550. // running_setup
  6551. //
  6552. // setup_failed
  6553. //
  6554. // shutting_down
  6555. //
  6556. // start_failed
  6557. //
  6558. // stop_failed
  6559. //
  6560. // stopped
  6561. //
  6562. // stopping
  6563. //
  6564. // terminated
  6565. //
  6566. // terminating
  6567. Status *string `type:"string"`
  6568. // The instance's subnet ID; applicable only if the stack is running in a VPC.
  6569. SubnetId *string `type:"string"`
  6570. // The instance's tenancy option, such as dedicated or host.
  6571. Tenancy *string `type:"string"`
  6572. // The instance's virtualization type: paravirtual or hvm.
  6573. VirtualizationType *string `type:"string" enum:"VirtualizationType"`
  6574. }
  6575. // String returns the string representation
  6576. func (s Instance) String() string {
  6577. return awsutil.Prettify(s)
  6578. }
  6579. // GoString returns the string representation
  6580. func (s Instance) GoString() string {
  6581. return s.String()
  6582. }
  6583. // Contains a description of an Amazon EC2 instance from the Amazon EC2 metadata
  6584. // service. For more information, see Instance Metadata and User Data (http://docs.aws.amazon.com/sdkfornet/latest/apidocs/Index.html).
  6585. type InstanceIdentity struct {
  6586. _ struct{} `type:"structure"`
  6587. // A JSON document that contains the metadata.
  6588. Document *string `type:"string"`
  6589. // A signature that can be used to verify the document's accuracy and authenticity.
  6590. Signature *string `type:"string"`
  6591. }
  6592. // String returns the string representation
  6593. func (s InstanceIdentity) String() string {
  6594. return awsutil.Prettify(s)
  6595. }
  6596. // GoString returns the string representation
  6597. func (s InstanceIdentity) GoString() string {
  6598. return s.String()
  6599. }
  6600. // Describes how many instances a stack has for each status.
  6601. type InstancesCount struct {
  6602. _ struct{} `type:"structure"`
  6603. // The number of instances in the Assigning state.
  6604. Assigning *int64 `type:"integer"`
  6605. // The number of instances with booting status.
  6606. Booting *int64 `type:"integer"`
  6607. // The number of instances with connection_lost status.
  6608. ConnectionLost *int64 `type:"integer"`
  6609. // The number of instances in the Deregistering state.
  6610. Deregistering *int64 `type:"integer"`
  6611. // The number of instances with online status.
  6612. Online *int64 `type:"integer"`
  6613. // The number of instances with pending status.
  6614. Pending *int64 `type:"integer"`
  6615. // The number of instances with rebooting status.
  6616. Rebooting *int64 `type:"integer"`
  6617. // The number of instances in the Registered state.
  6618. Registered *int64 `type:"integer"`
  6619. // The number of instances in the Registering state.
  6620. Registering *int64 `type:"integer"`
  6621. // The number of instances with requested status.
  6622. Requested *int64 `type:"integer"`
  6623. // The number of instances with running_setup status.
  6624. RunningSetup *int64 `type:"integer"`
  6625. // The number of instances with setup_failed status.
  6626. SetupFailed *int64 `type:"integer"`
  6627. // The number of instances with shutting_down status.
  6628. ShuttingDown *int64 `type:"integer"`
  6629. // The number of instances with start_failed status.
  6630. StartFailed *int64 `type:"integer"`
  6631. // The number of instances with stopped status.
  6632. Stopped *int64 `type:"integer"`
  6633. // The number of instances with stopping status.
  6634. Stopping *int64 `type:"integer"`
  6635. // The number of instances with terminated status.
  6636. Terminated *int64 `type:"integer"`
  6637. // The number of instances with terminating status.
  6638. Terminating *int64 `type:"integer"`
  6639. // The number of instances in the Unassigning state.
  6640. Unassigning *int64 `type:"integer"`
  6641. }
  6642. // String returns the string representation
  6643. func (s InstancesCount) String() string {
  6644. return awsutil.Prettify(s)
  6645. }
  6646. // GoString returns the string representation
  6647. func (s InstancesCount) GoString() string {
  6648. return s.String()
  6649. }
  6650. // Describes a layer.
  6651. type Layer struct {
  6652. _ struct{} `type:"structure"`
  6653. // The layer attributes.
  6654. //
  6655. // For the HaproxyStatsPassword, MysqlRootPassword, and GangliaPassword attributes,
  6656. // AWS OpsWorks returns *****FILTERED***** instead of the actual value
  6657. //
  6658. // For an ECS Cluster layer, AWS OpsWorks the EcsClusterArn attribute is set
  6659. // to the cluster's ARN.
  6660. Attributes map[string]*string `type:"map"`
  6661. // Whether to automatically assign an Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  6662. // 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).
  6663. AutoAssignElasticIps *bool `type:"boolean"`
  6664. // For stacks that are running in a VPC, whether to automatically assign a public
  6665. // IP address to the layer's instances. For more information, see How to Edit
  6666. // a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
  6667. AutoAssignPublicIps *bool `type:"boolean"`
  6668. // Date when the layer was created.
  6669. CreatedAt *string `type:"string"`
  6670. // The ARN of the default IAM profile to be used for the layer's EC2 instances.
  6671. // For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  6672. CustomInstanceProfileArn *string `type:"string"`
  6673. // A JSON formatted string containing the layer's custom stack configuration
  6674. // and deployment attributes.
  6675. CustomJson *string `type:"string"`
  6676. // A LayerCustomRecipes object that specifies the layer's custom recipes.
  6677. CustomRecipes *Recipes `type:"structure"`
  6678. // An array containing the layer's custom security group IDs.
  6679. CustomSecurityGroupIds []*string `type:"list"`
  6680. // AWS OpsWorks supports five lifecycle events: setup, configuration, deploy,
  6681. // undeploy, and shutdown. For each layer, AWS OpsWorks runs a set of standard
  6682. // recipes for each event. In addition, you can provide custom recipes for any
  6683. // or all layers and events. AWS OpsWorks runs custom event recipes after the
  6684. // standard recipes. LayerCustomRecipes specifies the custom recipes for a particular
  6685. // layer to be run in response to each of the five events.
  6686. //
  6687. // To specify a recipe, use the cookbook's directory name in the repository
  6688. // followed by two colons and the recipe name, which is the recipe's file name
  6689. // without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb
  6690. // recipe in the repository's phpapp2 folder.
  6691. DefaultRecipes *Recipes `type:"structure"`
  6692. // An array containing the layer's security group names.
  6693. DefaultSecurityGroupNames []*string `type:"list"`
  6694. // Whether auto healing is disabled for the layer.
  6695. EnableAutoHealing *bool `type:"boolean"`
  6696. // Whether to install operating system and package updates when the instance
  6697. // boots. The default value is true. If this value is set to false, you must
  6698. // then update your instances manually by using CreateDeployment to run the
  6699. // update_dependencies stack command or manually running yum (Amazon Linux)
  6700. // or apt-get (Ubuntu) on the instances.
  6701. //
  6702. // We strongly recommend using the default value of true, to ensure that your
  6703. // instances have the latest security updates.
  6704. InstallUpdatesOnBoot *bool `type:"boolean"`
  6705. // The layer ID.
  6706. LayerId *string `type:"string"`
  6707. // A LifeCycleEventConfiguration object that specifies the Shutdown event configuration.
  6708. LifecycleEventConfiguration *LifecycleEventConfiguration `type:"structure"`
  6709. // The layer name.
  6710. Name *string `type:"string"`
  6711. // An array of Package objects that describe the layer's packages.
  6712. Packages []*string `type:"list"`
  6713. // The layer short name.
  6714. Shortname *string `type:"string"`
  6715. // The layer stack ID.
  6716. StackId *string `type:"string"`
  6717. // The layer type.
  6718. Type *string `type:"string" enum:"LayerType"`
  6719. // Whether the layer uses Amazon EBS-optimized instances.
  6720. UseEbsOptimizedInstances *bool `type:"boolean"`
  6721. // A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
  6722. VolumeConfigurations []*VolumeConfiguration `type:"list"`
  6723. }
  6724. // String returns the string representation
  6725. func (s Layer) String() string {
  6726. return awsutil.Prettify(s)
  6727. }
  6728. // GoString returns the string representation
  6729. func (s Layer) GoString() string {
  6730. return s.String()
  6731. }
  6732. // Specifies the lifecycle event configuration
  6733. type LifecycleEventConfiguration struct {
  6734. _ struct{} `type:"structure"`
  6735. // A ShutdownEventConfiguration object that specifies the Shutdown event configuration.
  6736. Shutdown *ShutdownEventConfiguration `type:"structure"`
  6737. }
  6738. // String returns the string representation
  6739. func (s LifecycleEventConfiguration) String() string {
  6740. return awsutil.Prettify(s)
  6741. }
  6742. // GoString returns the string representation
  6743. func (s LifecycleEventConfiguration) GoString() string {
  6744. return s.String()
  6745. }
  6746. // Describes a layer's load-based auto scaling configuration.
  6747. type LoadBasedAutoScalingConfiguration struct {
  6748. _ struct{} `type:"structure"`
  6749. // An AutoScalingThresholds object that describes the downscaling configuration,
  6750. // which defines how and when AWS OpsWorks reduces the number of instances.
  6751. DownScaling *AutoScalingThresholds `type:"structure"`
  6752. // Whether load-based auto scaling is enabled for the layer.
  6753. Enable *bool `type:"boolean"`
  6754. // The layer ID.
  6755. LayerId *string `type:"string"`
  6756. // An AutoScalingThresholds object that describes the upscaling configuration,
  6757. // which defines how and when AWS OpsWorks increases the number of instances.
  6758. UpScaling *AutoScalingThresholds `type:"structure"`
  6759. }
  6760. // String returns the string representation
  6761. func (s LoadBasedAutoScalingConfiguration) String() string {
  6762. return awsutil.Prettify(s)
  6763. }
  6764. // GoString returns the string representation
  6765. func (s LoadBasedAutoScalingConfiguration) GoString() string {
  6766. return s.String()
  6767. }
  6768. // Describes stack or user permissions.
  6769. type Permission struct {
  6770. _ struct{} `type:"structure"`
  6771. // Whether the user can use SSH.
  6772. AllowSsh *bool `type:"boolean"`
  6773. // Whether the user can use sudo.
  6774. AllowSudo *bool `type:"boolean"`
  6775. // The Amazon Resource Name (ARN) for an AWS Identity and Access Management
  6776. // (IAM) role. For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  6777. IamUserArn *string `type:"string"`
  6778. // The user's permission level, which must be the following:
  6779. //
  6780. // deny
  6781. //
  6782. // show
  6783. //
  6784. // deploy
  6785. //
  6786. // manage
  6787. //
  6788. // iam_only
  6789. //
  6790. // For more information on the permissions associated with these levels,
  6791. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html)
  6792. Level *string `type:"string"`
  6793. // A stack ID.
  6794. StackId *string `type:"string"`
  6795. }
  6796. // String returns the string representation
  6797. func (s Permission) String() string {
  6798. return awsutil.Prettify(s)
  6799. }
  6800. // GoString returns the string representation
  6801. func (s Permission) GoString() string {
  6802. return s.String()
  6803. }
  6804. // Describes an instance's RAID array.
  6805. type RaidArray struct {
  6806. _ struct{} `type:"structure"`
  6807. // The array's Availability Zone. For more information, see Regions and Endpoints
  6808. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  6809. AvailabilityZone *string `type:"string"`
  6810. // When the RAID array was created.
  6811. CreatedAt *string `type:"string"`
  6812. // The array's Linux device. For example /dev/mdadm0.
  6813. Device *string `type:"string"`
  6814. // The instance ID.
  6815. InstanceId *string `type:"string"`
  6816. // For PIOPS volumes, the IOPS per disk.
  6817. Iops *int64 `type:"integer"`
  6818. // The array's mount point.
  6819. MountPoint *string `type:"string"`
  6820. // The array name.
  6821. Name *string `type:"string"`
  6822. // The number of disks in the array.
  6823. NumberOfDisks *int64 `type:"integer"`
  6824. // The array ID.
  6825. RaidArrayId *string `type:"string"`
  6826. // The RAID level (http://en.wikipedia.org/wiki/Standard_RAID_levels).
  6827. RaidLevel *int64 `type:"integer"`
  6828. // The array's size.
  6829. Size *int64 `type:"integer"`
  6830. // The stack ID.
  6831. StackId *string `type:"string"`
  6832. // The volume type, standard or PIOPS.
  6833. VolumeType *string `type:"string"`
  6834. }
  6835. // String returns the string representation
  6836. func (s RaidArray) String() string {
  6837. return awsutil.Prettify(s)
  6838. }
  6839. // GoString returns the string representation
  6840. func (s RaidArray) GoString() string {
  6841. return s.String()
  6842. }
  6843. // Describes an Amazon RDS instance.
  6844. type RdsDbInstance struct {
  6845. _ struct{} `type:"structure"`
  6846. // The instance's address.
  6847. Address *string `type:"string"`
  6848. // The DB instance identifier.
  6849. DbInstanceIdentifier *string `type:"string"`
  6850. // AWS OpsWorks returns *****FILTERED***** instead of the actual value.
  6851. DbPassword *string `type:"string"`
  6852. // The master user name.
  6853. DbUser *string `type:"string"`
  6854. // The instance's database engine.
  6855. Engine *string `type:"string"`
  6856. // Set to true if AWS OpsWorks was unable to discover the Amazon RDS instance.
  6857. // AWS OpsWorks attempts to discover the instance only once. If this value is
  6858. // set to true, you must deregister the instance and then register it again.
  6859. MissingOnRds *bool `type:"boolean"`
  6860. // The instance's ARN.
  6861. RdsDbInstanceArn *string `type:"string"`
  6862. // The instance's AWS region.
  6863. Region *string `type:"string"`
  6864. // The ID of the stack that the instance is registered with.
  6865. StackId *string `type:"string"`
  6866. }
  6867. // String returns the string representation
  6868. func (s RdsDbInstance) String() string {
  6869. return awsutil.Prettify(s)
  6870. }
  6871. // GoString returns the string representation
  6872. func (s RdsDbInstance) GoString() string {
  6873. return s.String()
  6874. }
  6875. type RebootInstanceInput struct {
  6876. _ struct{} `type:"structure"`
  6877. // The instance ID.
  6878. InstanceId *string `type:"string" required:"true"`
  6879. }
  6880. // String returns the string representation
  6881. func (s RebootInstanceInput) String() string {
  6882. return awsutil.Prettify(s)
  6883. }
  6884. // GoString returns the string representation
  6885. func (s RebootInstanceInput) GoString() string {
  6886. return s.String()
  6887. }
  6888. // Validate inspects the fields of the type to determine if they are valid.
  6889. func (s *RebootInstanceInput) Validate() error {
  6890. invalidParams := request.ErrInvalidParams{Context: "RebootInstanceInput"}
  6891. if s.InstanceId == nil {
  6892. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  6893. }
  6894. if invalidParams.Len() > 0 {
  6895. return invalidParams
  6896. }
  6897. return nil
  6898. }
  6899. type RebootInstanceOutput struct {
  6900. _ struct{} `type:"structure"`
  6901. }
  6902. // String returns the string representation
  6903. func (s RebootInstanceOutput) String() string {
  6904. return awsutil.Prettify(s)
  6905. }
  6906. // GoString returns the string representation
  6907. func (s RebootInstanceOutput) GoString() string {
  6908. return s.String()
  6909. }
  6910. // AWS OpsWorks supports five lifecycle events: setup, configuration, deploy,
  6911. // undeploy, and shutdown. For each layer, AWS OpsWorks runs a set of standard
  6912. // recipes for each event. In addition, you can provide custom recipes for any
  6913. // or all layers and events. AWS OpsWorks runs custom event recipes after the
  6914. // standard recipes. LayerCustomRecipes specifies the custom recipes for a particular
  6915. // layer to be run in response to each of the five events.
  6916. //
  6917. // To specify a recipe, use the cookbook's directory name in the repository
  6918. // followed by two colons and the recipe name, which is the recipe's file name
  6919. // without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb
  6920. // recipe in the repository's phpapp2 folder.
  6921. type Recipes struct {
  6922. _ struct{} `type:"structure"`
  6923. // An array of custom recipe names to be run following a configure event.
  6924. Configure []*string `type:"list"`
  6925. // An array of custom recipe names to be run following a deploy event.
  6926. Deploy []*string `type:"list"`
  6927. // An array of custom recipe names to be run following a setup event.
  6928. Setup []*string `type:"list"`
  6929. // An array of custom recipe names to be run following a shutdown event.
  6930. Shutdown []*string `type:"list"`
  6931. // An array of custom recipe names to be run following a undeploy event.
  6932. Undeploy []*string `type:"list"`
  6933. }
  6934. // String returns the string representation
  6935. func (s Recipes) String() string {
  6936. return awsutil.Prettify(s)
  6937. }
  6938. // GoString returns the string representation
  6939. func (s Recipes) GoString() string {
  6940. return s.String()
  6941. }
  6942. type RegisterEcsClusterInput struct {
  6943. _ struct{} `type:"structure"`
  6944. // The cluster's ARN.
  6945. EcsClusterArn *string `type:"string" required:"true"`
  6946. // The stack ID.
  6947. StackId *string `type:"string" required:"true"`
  6948. }
  6949. // String returns the string representation
  6950. func (s RegisterEcsClusterInput) String() string {
  6951. return awsutil.Prettify(s)
  6952. }
  6953. // GoString returns the string representation
  6954. func (s RegisterEcsClusterInput) GoString() string {
  6955. return s.String()
  6956. }
  6957. // Validate inspects the fields of the type to determine if they are valid.
  6958. func (s *RegisterEcsClusterInput) Validate() error {
  6959. invalidParams := request.ErrInvalidParams{Context: "RegisterEcsClusterInput"}
  6960. if s.EcsClusterArn == nil {
  6961. invalidParams.Add(request.NewErrParamRequired("EcsClusterArn"))
  6962. }
  6963. if s.StackId == nil {
  6964. invalidParams.Add(request.NewErrParamRequired("StackId"))
  6965. }
  6966. if invalidParams.Len() > 0 {
  6967. return invalidParams
  6968. }
  6969. return nil
  6970. }
  6971. // Contains the response to a RegisterEcsCluster request.
  6972. type RegisterEcsClusterOutput struct {
  6973. _ struct{} `type:"structure"`
  6974. // The cluster's ARN.
  6975. EcsClusterArn *string `type:"string"`
  6976. }
  6977. // String returns the string representation
  6978. func (s RegisterEcsClusterOutput) String() string {
  6979. return awsutil.Prettify(s)
  6980. }
  6981. // GoString returns the string representation
  6982. func (s RegisterEcsClusterOutput) GoString() string {
  6983. return s.String()
  6984. }
  6985. type RegisterElasticIpInput struct {
  6986. _ struct{} `type:"structure"`
  6987. // The Elastic IP address.
  6988. ElasticIp *string `type:"string" required:"true"`
  6989. // The stack ID.
  6990. StackId *string `type:"string" required:"true"`
  6991. }
  6992. // String returns the string representation
  6993. func (s RegisterElasticIpInput) String() string {
  6994. return awsutil.Prettify(s)
  6995. }
  6996. // GoString returns the string representation
  6997. func (s RegisterElasticIpInput) GoString() string {
  6998. return s.String()
  6999. }
  7000. // Validate inspects the fields of the type to determine if they are valid.
  7001. func (s *RegisterElasticIpInput) Validate() error {
  7002. invalidParams := request.ErrInvalidParams{Context: "RegisterElasticIpInput"}
  7003. if s.ElasticIp == nil {
  7004. invalidParams.Add(request.NewErrParamRequired("ElasticIp"))
  7005. }
  7006. if s.StackId == nil {
  7007. invalidParams.Add(request.NewErrParamRequired("StackId"))
  7008. }
  7009. if invalidParams.Len() > 0 {
  7010. return invalidParams
  7011. }
  7012. return nil
  7013. }
  7014. // Contains the response to a RegisterElasticIp request.
  7015. type RegisterElasticIpOutput struct {
  7016. _ struct{} `type:"structure"`
  7017. // The Elastic IP address.
  7018. ElasticIp *string `type:"string"`
  7019. }
  7020. // String returns the string representation
  7021. func (s RegisterElasticIpOutput) String() string {
  7022. return awsutil.Prettify(s)
  7023. }
  7024. // GoString returns the string representation
  7025. func (s RegisterElasticIpOutput) GoString() string {
  7026. return s.String()
  7027. }
  7028. type RegisterInstanceInput struct {
  7029. _ struct{} `type:"structure"`
  7030. // The instance's hostname.
  7031. Hostname *string `type:"string"`
  7032. // An InstanceIdentity object that contains the instance's identity.
  7033. InstanceIdentity *InstanceIdentity `type:"structure"`
  7034. // The instance's private IP address.
  7035. PrivateIp *string `type:"string"`
  7036. // The instance's public IP address.
  7037. PublicIp *string `type:"string"`
  7038. // The instances public RSA key. This key is used to encrypt communication between
  7039. // the instance and the service.
  7040. RsaPublicKey *string `type:"string"`
  7041. // The instances public RSA key fingerprint.
  7042. RsaPublicKeyFingerprint *string `type:"string"`
  7043. // The ID of the stack that the instance is to be registered with.
  7044. StackId *string `type:"string" required:"true"`
  7045. }
  7046. // String returns the string representation
  7047. func (s RegisterInstanceInput) String() string {
  7048. return awsutil.Prettify(s)
  7049. }
  7050. // GoString returns the string representation
  7051. func (s RegisterInstanceInput) GoString() string {
  7052. return s.String()
  7053. }
  7054. // Validate inspects the fields of the type to determine if they are valid.
  7055. func (s *RegisterInstanceInput) Validate() error {
  7056. invalidParams := request.ErrInvalidParams{Context: "RegisterInstanceInput"}
  7057. if s.StackId == nil {
  7058. invalidParams.Add(request.NewErrParamRequired("StackId"))
  7059. }
  7060. if invalidParams.Len() > 0 {
  7061. return invalidParams
  7062. }
  7063. return nil
  7064. }
  7065. // Contains the response to a RegisterInstanceResult request.
  7066. type RegisterInstanceOutput struct {
  7067. _ struct{} `type:"structure"`
  7068. // The registered instance's AWS OpsWorks ID.
  7069. InstanceId *string `type:"string"`
  7070. }
  7071. // String returns the string representation
  7072. func (s RegisterInstanceOutput) String() string {
  7073. return awsutil.Prettify(s)
  7074. }
  7075. // GoString returns the string representation
  7076. func (s RegisterInstanceOutput) GoString() string {
  7077. return s.String()
  7078. }
  7079. type RegisterRdsDbInstanceInput struct {
  7080. _ struct{} `type:"structure"`
  7081. // The database password.
  7082. DbPassword *string `type:"string" required:"true"`
  7083. // The database's master user name.
  7084. DbUser *string `type:"string" required:"true"`
  7085. // The Amazon RDS instance's ARN.
  7086. RdsDbInstanceArn *string `type:"string" required:"true"`
  7087. // The stack ID.
  7088. StackId *string `type:"string" required:"true"`
  7089. }
  7090. // String returns the string representation
  7091. func (s RegisterRdsDbInstanceInput) String() string {
  7092. return awsutil.Prettify(s)
  7093. }
  7094. // GoString returns the string representation
  7095. func (s RegisterRdsDbInstanceInput) GoString() string {
  7096. return s.String()
  7097. }
  7098. // Validate inspects the fields of the type to determine if they are valid.
  7099. func (s *RegisterRdsDbInstanceInput) Validate() error {
  7100. invalidParams := request.ErrInvalidParams{Context: "RegisterRdsDbInstanceInput"}
  7101. if s.DbPassword == nil {
  7102. invalidParams.Add(request.NewErrParamRequired("DbPassword"))
  7103. }
  7104. if s.DbUser == nil {
  7105. invalidParams.Add(request.NewErrParamRequired("DbUser"))
  7106. }
  7107. if s.RdsDbInstanceArn == nil {
  7108. invalidParams.Add(request.NewErrParamRequired("RdsDbInstanceArn"))
  7109. }
  7110. if s.StackId == nil {
  7111. invalidParams.Add(request.NewErrParamRequired("StackId"))
  7112. }
  7113. if invalidParams.Len() > 0 {
  7114. return invalidParams
  7115. }
  7116. return nil
  7117. }
  7118. type RegisterRdsDbInstanceOutput struct {
  7119. _ struct{} `type:"structure"`
  7120. }
  7121. // String returns the string representation
  7122. func (s RegisterRdsDbInstanceOutput) String() string {
  7123. return awsutil.Prettify(s)
  7124. }
  7125. // GoString returns the string representation
  7126. func (s RegisterRdsDbInstanceOutput) GoString() string {
  7127. return s.String()
  7128. }
  7129. type RegisterVolumeInput struct {
  7130. _ struct{} `type:"structure"`
  7131. // The Amazon EBS volume ID.
  7132. Ec2VolumeId *string `type:"string"`
  7133. // The stack ID.
  7134. StackId *string `type:"string" required:"true"`
  7135. }
  7136. // String returns the string representation
  7137. func (s RegisterVolumeInput) String() string {
  7138. return awsutil.Prettify(s)
  7139. }
  7140. // GoString returns the string representation
  7141. func (s RegisterVolumeInput) GoString() string {
  7142. return s.String()
  7143. }
  7144. // Validate inspects the fields of the type to determine if they are valid.
  7145. func (s *RegisterVolumeInput) Validate() error {
  7146. invalidParams := request.ErrInvalidParams{Context: "RegisterVolumeInput"}
  7147. if s.StackId == nil {
  7148. invalidParams.Add(request.NewErrParamRequired("StackId"))
  7149. }
  7150. if invalidParams.Len() > 0 {
  7151. return invalidParams
  7152. }
  7153. return nil
  7154. }
  7155. // Contains the response to a RegisterVolume request.
  7156. type RegisterVolumeOutput struct {
  7157. _ struct{} `type:"structure"`
  7158. // The volume ID.
  7159. VolumeId *string `type:"string"`
  7160. }
  7161. // String returns the string representation
  7162. func (s RegisterVolumeOutput) String() string {
  7163. return awsutil.Prettify(s)
  7164. }
  7165. // GoString returns the string representation
  7166. func (s RegisterVolumeOutput) GoString() string {
  7167. return s.String()
  7168. }
  7169. // A registered instance's reported operating system.
  7170. type ReportedOs struct {
  7171. _ struct{} `type:"structure"`
  7172. // The operating system family.
  7173. Family *string `type:"string"`
  7174. // The operating system name.
  7175. Name *string `type:"string"`
  7176. // The operating system version.
  7177. Version *string `type:"string"`
  7178. }
  7179. // String returns the string representation
  7180. func (s ReportedOs) String() string {
  7181. return awsutil.Prettify(s)
  7182. }
  7183. // GoString returns the string representation
  7184. func (s ReportedOs) GoString() string {
  7185. return s.String()
  7186. }
  7187. // Describes a user's SSH information.
  7188. type SelfUserProfile struct {
  7189. _ struct{} `type:"structure"`
  7190. // The user's IAM ARN.
  7191. IamUserArn *string `type:"string"`
  7192. // The user's name.
  7193. Name *string `type:"string"`
  7194. // The user's SSH public key.
  7195. SshPublicKey *string `type:"string"`
  7196. // The user's SSH user name.
  7197. SshUsername *string `type:"string"`
  7198. }
  7199. // String returns the string representation
  7200. func (s SelfUserProfile) String() string {
  7201. return awsutil.Prettify(s)
  7202. }
  7203. // GoString returns the string representation
  7204. func (s SelfUserProfile) GoString() string {
  7205. return s.String()
  7206. }
  7207. // Describes an AWS OpsWorks service error.
  7208. type ServiceError struct {
  7209. _ struct{} `type:"structure"`
  7210. // When the error occurred.
  7211. CreatedAt *string `type:"string"`
  7212. // The instance ID.
  7213. InstanceId *string `type:"string"`
  7214. // A message that describes the error.
  7215. Message *string `type:"string"`
  7216. // The error ID.
  7217. ServiceErrorId *string `type:"string"`
  7218. // The stack ID.
  7219. StackId *string `type:"string"`
  7220. // The error type.
  7221. Type *string `type:"string"`
  7222. }
  7223. // String returns the string representation
  7224. func (s ServiceError) String() string {
  7225. return awsutil.Prettify(s)
  7226. }
  7227. // GoString returns the string representation
  7228. func (s ServiceError) GoString() string {
  7229. return s.String()
  7230. }
  7231. type SetLoadBasedAutoScalingInput struct {
  7232. _ struct{} `type:"structure"`
  7233. // An AutoScalingThresholds object with the downscaling threshold configuration.
  7234. // If the load falls below these thresholds for a specified amount of time,
  7235. // AWS OpsWorks stops a specified number of instances.
  7236. DownScaling *AutoScalingThresholds `type:"structure"`
  7237. // Enables load-based auto scaling for the layer.
  7238. Enable *bool `type:"boolean"`
  7239. // The layer ID.
  7240. LayerId *string `type:"string" required:"true"`
  7241. // An AutoScalingThresholds object with the upscaling threshold configuration.
  7242. // If the load exceeds these thresholds for a specified amount of time, AWS
  7243. // OpsWorks starts a specified number of instances.
  7244. UpScaling *AutoScalingThresholds `type:"structure"`
  7245. }
  7246. // String returns the string representation
  7247. func (s SetLoadBasedAutoScalingInput) String() string {
  7248. return awsutil.Prettify(s)
  7249. }
  7250. // GoString returns the string representation
  7251. func (s SetLoadBasedAutoScalingInput) GoString() string {
  7252. return s.String()
  7253. }
  7254. // Validate inspects the fields of the type to determine if they are valid.
  7255. func (s *SetLoadBasedAutoScalingInput) Validate() error {
  7256. invalidParams := request.ErrInvalidParams{Context: "SetLoadBasedAutoScalingInput"}
  7257. if s.LayerId == nil {
  7258. invalidParams.Add(request.NewErrParamRequired("LayerId"))
  7259. }
  7260. if s.DownScaling != nil {
  7261. if err := s.DownScaling.Validate(); err != nil {
  7262. invalidParams.AddNested("DownScaling", err.(request.ErrInvalidParams))
  7263. }
  7264. }
  7265. if s.UpScaling != nil {
  7266. if err := s.UpScaling.Validate(); err != nil {
  7267. invalidParams.AddNested("UpScaling", err.(request.ErrInvalidParams))
  7268. }
  7269. }
  7270. if invalidParams.Len() > 0 {
  7271. return invalidParams
  7272. }
  7273. return nil
  7274. }
  7275. type SetLoadBasedAutoScalingOutput struct {
  7276. _ struct{} `type:"structure"`
  7277. }
  7278. // String returns the string representation
  7279. func (s SetLoadBasedAutoScalingOutput) String() string {
  7280. return awsutil.Prettify(s)
  7281. }
  7282. // GoString returns the string representation
  7283. func (s SetLoadBasedAutoScalingOutput) GoString() string {
  7284. return s.String()
  7285. }
  7286. type SetPermissionInput struct {
  7287. _ struct{} `type:"structure"`
  7288. // The user is allowed to use SSH to communicate with the instance.
  7289. AllowSsh *bool `type:"boolean"`
  7290. // The user is allowed to use sudo to elevate privileges.
  7291. AllowSudo *bool `type:"boolean"`
  7292. // The user's IAM ARN.
  7293. IamUserArn *string `type:"string" required:"true"`
  7294. // The user's permission level, which must be set to one of the following strings.
  7295. // You cannot set your own permissions level.
  7296. //
  7297. // deny
  7298. //
  7299. // show
  7300. //
  7301. // deploy
  7302. //
  7303. // manage
  7304. //
  7305. // iam_only
  7306. //
  7307. // For more information on the permissions associated with these levels,
  7308. // see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html).
  7309. Level *string `type:"string"`
  7310. // The stack ID.
  7311. StackId *string `type:"string" required:"true"`
  7312. }
  7313. // String returns the string representation
  7314. func (s SetPermissionInput) String() string {
  7315. return awsutil.Prettify(s)
  7316. }
  7317. // GoString returns the string representation
  7318. func (s SetPermissionInput) GoString() string {
  7319. return s.String()
  7320. }
  7321. // Validate inspects the fields of the type to determine if they are valid.
  7322. func (s *SetPermissionInput) Validate() error {
  7323. invalidParams := request.ErrInvalidParams{Context: "SetPermissionInput"}
  7324. if s.IamUserArn == nil {
  7325. invalidParams.Add(request.NewErrParamRequired("IamUserArn"))
  7326. }
  7327. if s.StackId == nil {
  7328. invalidParams.Add(request.NewErrParamRequired("StackId"))
  7329. }
  7330. if invalidParams.Len() > 0 {
  7331. return invalidParams
  7332. }
  7333. return nil
  7334. }
  7335. type SetPermissionOutput struct {
  7336. _ struct{} `type:"structure"`
  7337. }
  7338. // String returns the string representation
  7339. func (s SetPermissionOutput) String() string {
  7340. return awsutil.Prettify(s)
  7341. }
  7342. // GoString returns the string representation
  7343. func (s SetPermissionOutput) GoString() string {
  7344. return s.String()
  7345. }
  7346. type SetTimeBasedAutoScalingInput struct {
  7347. _ struct{} `type:"structure"`
  7348. // An AutoScalingSchedule with the instance schedule.
  7349. AutoScalingSchedule *WeeklyAutoScalingSchedule `type:"structure"`
  7350. // The instance ID.
  7351. InstanceId *string `type:"string" required:"true"`
  7352. }
  7353. // String returns the string representation
  7354. func (s SetTimeBasedAutoScalingInput) String() string {
  7355. return awsutil.Prettify(s)
  7356. }
  7357. // GoString returns the string representation
  7358. func (s SetTimeBasedAutoScalingInput) GoString() string {
  7359. return s.String()
  7360. }
  7361. // Validate inspects the fields of the type to determine if they are valid.
  7362. func (s *SetTimeBasedAutoScalingInput) Validate() error {
  7363. invalidParams := request.ErrInvalidParams{Context: "SetTimeBasedAutoScalingInput"}
  7364. if s.InstanceId == nil {
  7365. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  7366. }
  7367. if invalidParams.Len() > 0 {
  7368. return invalidParams
  7369. }
  7370. return nil
  7371. }
  7372. type SetTimeBasedAutoScalingOutput struct {
  7373. _ struct{} `type:"structure"`
  7374. }
  7375. // String returns the string representation
  7376. func (s SetTimeBasedAutoScalingOutput) String() string {
  7377. return awsutil.Prettify(s)
  7378. }
  7379. // GoString returns the string representation
  7380. func (s SetTimeBasedAutoScalingOutput) GoString() string {
  7381. return s.String()
  7382. }
  7383. // The Shutdown event configuration.
  7384. type ShutdownEventConfiguration struct {
  7385. _ struct{} `type:"structure"`
  7386. // Whether to enable Elastic Load Balancing connection draining. For more information,
  7387. // see Connection Draining (http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/TerminologyandKeyConcepts.html#conn-drain)
  7388. DelayUntilElbConnectionsDrained *bool `type:"boolean"`
  7389. // The time, in seconds, that AWS OpsWorks will wait after triggering a Shutdown
  7390. // event before shutting down an instance.
  7391. ExecutionTimeout *int64 `type:"integer"`
  7392. }
  7393. // String returns the string representation
  7394. func (s ShutdownEventConfiguration) String() string {
  7395. return awsutil.Prettify(s)
  7396. }
  7397. // GoString returns the string representation
  7398. func (s ShutdownEventConfiguration) GoString() string {
  7399. return s.String()
  7400. }
  7401. // Contains the information required to retrieve an app or cookbook from a repository.
  7402. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  7403. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  7404. type Source struct {
  7405. _ struct{} `type:"structure"`
  7406. // When included in a request, the parameter depends on the repository type.
  7407. //
  7408. // For Amazon S3 bundles, set Password to the appropriate IAM secret access
  7409. // key.
  7410. //
  7411. // For HTTP bundles and Subversion repositories, set Password to the password.
  7412. //
  7413. // 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
  7414. // (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html).
  7415. //
  7416. // In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual
  7417. // value.
  7418. Password *string `type:"string"`
  7419. // The application's version. AWS OpsWorks enables you to easily deploy new
  7420. // versions of an application. One of the simplest approaches is to have branches
  7421. // or revisions in your repository that represent different versions that can
  7422. // potentially be deployed.
  7423. Revision *string `type:"string"`
  7424. // In requests, the repository's SSH key.
  7425. //
  7426. // In responses, AWS OpsWorks returns *****FILTERED***** instead of the actual
  7427. // value.
  7428. SshKey *string `type:"string"`
  7429. // The repository type.
  7430. Type *string `type:"string" enum:"SourceType"`
  7431. // The source URL.
  7432. Url *string `type:"string"`
  7433. // This parameter depends on the repository type.
  7434. //
  7435. // For Amazon S3 bundles, set Username to the appropriate IAM access key
  7436. // ID.
  7437. //
  7438. // For HTTP bundles, Git repositories, and Subversion repositories, set Username
  7439. // to the user name.
  7440. Username *string `type:"string"`
  7441. }
  7442. // String returns the string representation
  7443. func (s Source) String() string {
  7444. return awsutil.Prettify(s)
  7445. }
  7446. // GoString returns the string representation
  7447. func (s Source) GoString() string {
  7448. return s.String()
  7449. }
  7450. // Describes an app's SSL configuration.
  7451. type SslConfiguration struct {
  7452. _ struct{} `type:"structure"`
  7453. // The contents of the certificate's domain.crt file.
  7454. Certificate *string `type:"string" required:"true"`
  7455. // Optional. Can be used to specify an intermediate certificate authority key
  7456. // or client authentication.
  7457. Chain *string `type:"string"`
  7458. // The private key; the contents of the certificate's domain.kex file.
  7459. PrivateKey *string `type:"string" required:"true"`
  7460. }
  7461. // String returns the string representation
  7462. func (s SslConfiguration) String() string {
  7463. return awsutil.Prettify(s)
  7464. }
  7465. // GoString returns the string representation
  7466. func (s SslConfiguration) GoString() string {
  7467. return s.String()
  7468. }
  7469. // Validate inspects the fields of the type to determine if they are valid.
  7470. func (s *SslConfiguration) Validate() error {
  7471. invalidParams := request.ErrInvalidParams{Context: "SslConfiguration"}
  7472. if s.Certificate == nil {
  7473. invalidParams.Add(request.NewErrParamRequired("Certificate"))
  7474. }
  7475. if s.PrivateKey == nil {
  7476. invalidParams.Add(request.NewErrParamRequired("PrivateKey"))
  7477. }
  7478. if invalidParams.Len() > 0 {
  7479. return invalidParams
  7480. }
  7481. return nil
  7482. }
  7483. // Describes a stack.
  7484. type Stack struct {
  7485. _ struct{} `type:"structure"`
  7486. // The agent version. This parameter is set to LATEST for auto-update. or a
  7487. // version number for a fixed agent version.
  7488. AgentVersion *string `type:"string"`
  7489. // The stack's ARN.
  7490. Arn *string `type:"string"`
  7491. // The stack's attributes.
  7492. Attributes map[string]*string `type:"map"`
  7493. // A ChefConfiguration object that specifies whether to enable Berkshelf and
  7494. // the Berkshelf version. For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  7495. ChefConfiguration *ChefConfiguration `type:"structure"`
  7496. // The configuration manager.
  7497. ConfigurationManager *StackConfigurationManager `type:"structure"`
  7498. // The date when the stack was created.
  7499. CreatedAt *string `type:"string"`
  7500. // Contains the information required to retrieve an app or cookbook from a repository.
  7501. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  7502. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  7503. CustomCookbooksSource *Source `type:"structure"`
  7504. // A JSON object that contains user-defined attributes to be added to the stack
  7505. // configuration and deployment attributes. You can use custom JSON to override
  7506. // the corresponding default stack configuration attribute values or to pass
  7507. // data to recipes. The string should be in the following format and must escape
  7508. // characters such as '"':
  7509. //
  7510. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  7511. //
  7512. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  7513. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  7514. CustomJson *string `type:"string"`
  7515. // The stack's default Availability Zone. For more information, see Regions
  7516. // and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  7517. DefaultAvailabilityZone *string `type:"string"`
  7518. // The ARN of an IAM profile that is the default profile for all of the stack's
  7519. // EC2 instances. For more information about IAM ARNs, see Using Identifiers
  7520. // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  7521. DefaultInstanceProfileArn *string `type:"string"`
  7522. // The stack's default operating system.
  7523. DefaultOs *string `type:"string"`
  7524. // The default root device type. This value is used by default for all instances
  7525. // in the stack, but you can override it when you create an instance. For more
  7526. // information, see Storage for the Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  7527. DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`
  7528. // A default Amazon EC2 key pair for the stack's instances. You can override
  7529. // this value when you create or update an instance.
  7530. DefaultSshKeyName *string `type:"string"`
  7531. // The default subnet ID; applicable only if the stack is running in a VPC.
  7532. DefaultSubnetId *string `type:"string"`
  7533. // The stack host name theme, with spaces replaced by underscores.
  7534. HostnameTheme *string `type:"string"`
  7535. // The stack name.
  7536. Name *string `type:"string"`
  7537. // The stack AWS region, such as "us-east-1". For more information about AWS
  7538. // regions, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  7539. Region *string `type:"string"`
  7540. // The stack AWS Identity and Access Management (IAM) role.
  7541. ServiceRoleArn *string `type:"string"`
  7542. // The stack ID.
  7543. StackId *string `type:"string"`
  7544. // Whether the stack uses custom cookbooks.
  7545. UseCustomCookbooks *bool `type:"boolean"`
  7546. // Whether the stack automatically associates the AWS OpsWorks built-in security
  7547. // groups with the stack's layers.
  7548. UseOpsworksSecurityGroups *bool `type:"boolean"`
  7549. // The VPC ID; applicable only if the stack is running in a VPC.
  7550. VpcId *string `type:"string"`
  7551. }
  7552. // String returns the string representation
  7553. func (s Stack) String() string {
  7554. return awsutil.Prettify(s)
  7555. }
  7556. // GoString returns the string representation
  7557. func (s Stack) GoString() string {
  7558. return s.String()
  7559. }
  7560. // Describes the configuration manager.
  7561. type StackConfigurationManager struct {
  7562. _ struct{} `type:"structure"`
  7563. // The name. This parameter must be set to "Chef".
  7564. Name *string `type:"string"`
  7565. // The Chef version. This parameter must be set to 12, 11.10, or 11.4 for Linux
  7566. // stacks, and to 12.2 for Windows stacks. The default value for Linux stacks
  7567. // is 11.4.
  7568. Version *string `type:"string"`
  7569. }
  7570. // String returns the string representation
  7571. func (s StackConfigurationManager) String() string {
  7572. return awsutil.Prettify(s)
  7573. }
  7574. // GoString returns the string representation
  7575. func (s StackConfigurationManager) GoString() string {
  7576. return s.String()
  7577. }
  7578. // Summarizes the number of layers, instances, and apps in a stack.
  7579. type StackSummary struct {
  7580. _ struct{} `type:"structure"`
  7581. // The number of apps.
  7582. AppsCount *int64 `type:"integer"`
  7583. // The stack's ARN.
  7584. Arn *string `type:"string"`
  7585. // An InstancesCount object with the number of instances in each status.
  7586. InstancesCount *InstancesCount `type:"structure"`
  7587. // The number of layers.
  7588. LayersCount *int64 `type:"integer"`
  7589. // The stack name.
  7590. Name *string `type:"string"`
  7591. // The stack ID.
  7592. StackId *string `type:"string"`
  7593. }
  7594. // String returns the string representation
  7595. func (s StackSummary) String() string {
  7596. return awsutil.Prettify(s)
  7597. }
  7598. // GoString returns the string representation
  7599. func (s StackSummary) GoString() string {
  7600. return s.String()
  7601. }
  7602. type StartInstanceInput struct {
  7603. _ struct{} `type:"structure"`
  7604. // The instance ID.
  7605. InstanceId *string `type:"string" required:"true"`
  7606. }
  7607. // String returns the string representation
  7608. func (s StartInstanceInput) String() string {
  7609. return awsutil.Prettify(s)
  7610. }
  7611. // GoString returns the string representation
  7612. func (s StartInstanceInput) GoString() string {
  7613. return s.String()
  7614. }
  7615. // Validate inspects the fields of the type to determine if they are valid.
  7616. func (s *StartInstanceInput) Validate() error {
  7617. invalidParams := request.ErrInvalidParams{Context: "StartInstanceInput"}
  7618. if s.InstanceId == nil {
  7619. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  7620. }
  7621. if invalidParams.Len() > 0 {
  7622. return invalidParams
  7623. }
  7624. return nil
  7625. }
  7626. type StartInstanceOutput struct {
  7627. _ struct{} `type:"structure"`
  7628. }
  7629. // String returns the string representation
  7630. func (s StartInstanceOutput) String() string {
  7631. return awsutil.Prettify(s)
  7632. }
  7633. // GoString returns the string representation
  7634. func (s StartInstanceOutput) GoString() string {
  7635. return s.String()
  7636. }
  7637. type StartStackInput struct {
  7638. _ struct{} `type:"structure"`
  7639. // The stack ID.
  7640. StackId *string `type:"string" required:"true"`
  7641. }
  7642. // String returns the string representation
  7643. func (s StartStackInput) String() string {
  7644. return awsutil.Prettify(s)
  7645. }
  7646. // GoString returns the string representation
  7647. func (s StartStackInput) GoString() string {
  7648. return s.String()
  7649. }
  7650. // Validate inspects the fields of the type to determine if they are valid.
  7651. func (s *StartStackInput) Validate() error {
  7652. invalidParams := request.ErrInvalidParams{Context: "StartStackInput"}
  7653. if s.StackId == nil {
  7654. invalidParams.Add(request.NewErrParamRequired("StackId"))
  7655. }
  7656. if invalidParams.Len() > 0 {
  7657. return invalidParams
  7658. }
  7659. return nil
  7660. }
  7661. type StartStackOutput struct {
  7662. _ struct{} `type:"structure"`
  7663. }
  7664. // String returns the string representation
  7665. func (s StartStackOutput) String() string {
  7666. return awsutil.Prettify(s)
  7667. }
  7668. // GoString returns the string representation
  7669. func (s StartStackOutput) GoString() string {
  7670. return s.String()
  7671. }
  7672. type StopInstanceInput struct {
  7673. _ struct{} `type:"structure"`
  7674. // The instance ID.
  7675. InstanceId *string `type:"string" required:"true"`
  7676. }
  7677. // String returns the string representation
  7678. func (s StopInstanceInput) String() string {
  7679. return awsutil.Prettify(s)
  7680. }
  7681. // GoString returns the string representation
  7682. func (s StopInstanceInput) GoString() string {
  7683. return s.String()
  7684. }
  7685. // Validate inspects the fields of the type to determine if they are valid.
  7686. func (s *StopInstanceInput) Validate() error {
  7687. invalidParams := request.ErrInvalidParams{Context: "StopInstanceInput"}
  7688. if s.InstanceId == nil {
  7689. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  7690. }
  7691. if invalidParams.Len() > 0 {
  7692. return invalidParams
  7693. }
  7694. return nil
  7695. }
  7696. type StopInstanceOutput struct {
  7697. _ struct{} `type:"structure"`
  7698. }
  7699. // String returns the string representation
  7700. func (s StopInstanceOutput) String() string {
  7701. return awsutil.Prettify(s)
  7702. }
  7703. // GoString returns the string representation
  7704. func (s StopInstanceOutput) GoString() string {
  7705. return s.String()
  7706. }
  7707. type StopStackInput struct {
  7708. _ struct{} `type:"structure"`
  7709. // The stack ID.
  7710. StackId *string `type:"string" required:"true"`
  7711. }
  7712. // String returns the string representation
  7713. func (s StopStackInput) String() string {
  7714. return awsutil.Prettify(s)
  7715. }
  7716. // GoString returns the string representation
  7717. func (s StopStackInput) GoString() string {
  7718. return s.String()
  7719. }
  7720. // Validate inspects the fields of the type to determine if they are valid.
  7721. func (s *StopStackInput) Validate() error {
  7722. invalidParams := request.ErrInvalidParams{Context: "StopStackInput"}
  7723. if s.StackId == nil {
  7724. invalidParams.Add(request.NewErrParamRequired("StackId"))
  7725. }
  7726. if invalidParams.Len() > 0 {
  7727. return invalidParams
  7728. }
  7729. return nil
  7730. }
  7731. type StopStackOutput struct {
  7732. _ struct{} `type:"structure"`
  7733. }
  7734. // String returns the string representation
  7735. func (s StopStackOutput) String() string {
  7736. return awsutil.Prettify(s)
  7737. }
  7738. // GoString returns the string representation
  7739. func (s StopStackOutput) GoString() string {
  7740. return s.String()
  7741. }
  7742. // Contains the data needed by RDP clients such as the Microsoft Remote Desktop
  7743. // Connection to log in to the instance.
  7744. type TemporaryCredential struct {
  7745. _ struct{} `type:"structure"`
  7746. // The instance's AWS OpsWorks ID.
  7747. InstanceId *string `type:"string"`
  7748. // The password.
  7749. Password *string `type:"string"`
  7750. // The user name.
  7751. Username *string `type:"string"`
  7752. // The length of time (in minutes) that the grant is valid. When the grant expires,
  7753. // at the end of this period, the user will no longer be able to use the credentials
  7754. // to log in. If they are logged in at the time, they will be automatically
  7755. // logged out.
  7756. ValidForInMinutes *int64 `type:"integer"`
  7757. }
  7758. // String returns the string representation
  7759. func (s TemporaryCredential) String() string {
  7760. return awsutil.Prettify(s)
  7761. }
  7762. // GoString returns the string representation
  7763. func (s TemporaryCredential) GoString() string {
  7764. return s.String()
  7765. }
  7766. // Describes an instance's time-based auto scaling configuration.
  7767. type TimeBasedAutoScalingConfiguration struct {
  7768. _ struct{} `type:"structure"`
  7769. // A WeeklyAutoScalingSchedule object with the instance schedule.
  7770. AutoScalingSchedule *WeeklyAutoScalingSchedule `type:"structure"`
  7771. // The instance ID.
  7772. InstanceId *string `type:"string"`
  7773. }
  7774. // String returns the string representation
  7775. func (s TimeBasedAutoScalingConfiguration) String() string {
  7776. return awsutil.Prettify(s)
  7777. }
  7778. // GoString returns the string representation
  7779. func (s TimeBasedAutoScalingConfiguration) GoString() string {
  7780. return s.String()
  7781. }
  7782. type UnassignInstanceInput struct {
  7783. _ struct{} `type:"structure"`
  7784. // The instance ID.
  7785. InstanceId *string `type:"string" required:"true"`
  7786. }
  7787. // String returns the string representation
  7788. func (s UnassignInstanceInput) String() string {
  7789. return awsutil.Prettify(s)
  7790. }
  7791. // GoString returns the string representation
  7792. func (s UnassignInstanceInput) GoString() string {
  7793. return s.String()
  7794. }
  7795. // Validate inspects the fields of the type to determine if they are valid.
  7796. func (s *UnassignInstanceInput) Validate() error {
  7797. invalidParams := request.ErrInvalidParams{Context: "UnassignInstanceInput"}
  7798. if s.InstanceId == nil {
  7799. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  7800. }
  7801. if invalidParams.Len() > 0 {
  7802. return invalidParams
  7803. }
  7804. return nil
  7805. }
  7806. type UnassignInstanceOutput struct {
  7807. _ struct{} `type:"structure"`
  7808. }
  7809. // String returns the string representation
  7810. func (s UnassignInstanceOutput) String() string {
  7811. return awsutil.Prettify(s)
  7812. }
  7813. // GoString returns the string representation
  7814. func (s UnassignInstanceOutput) GoString() string {
  7815. return s.String()
  7816. }
  7817. type UnassignVolumeInput struct {
  7818. _ struct{} `type:"structure"`
  7819. // The volume ID.
  7820. VolumeId *string `type:"string" required:"true"`
  7821. }
  7822. // String returns the string representation
  7823. func (s UnassignVolumeInput) String() string {
  7824. return awsutil.Prettify(s)
  7825. }
  7826. // GoString returns the string representation
  7827. func (s UnassignVolumeInput) GoString() string {
  7828. return s.String()
  7829. }
  7830. // Validate inspects the fields of the type to determine if they are valid.
  7831. func (s *UnassignVolumeInput) Validate() error {
  7832. invalidParams := request.ErrInvalidParams{Context: "UnassignVolumeInput"}
  7833. if s.VolumeId == nil {
  7834. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  7835. }
  7836. if invalidParams.Len() > 0 {
  7837. return invalidParams
  7838. }
  7839. return nil
  7840. }
  7841. type UnassignVolumeOutput struct {
  7842. _ struct{} `type:"structure"`
  7843. }
  7844. // String returns the string representation
  7845. func (s UnassignVolumeOutput) String() string {
  7846. return awsutil.Prettify(s)
  7847. }
  7848. // GoString returns the string representation
  7849. func (s UnassignVolumeOutput) GoString() string {
  7850. return s.String()
  7851. }
  7852. type UpdateAppInput struct {
  7853. _ struct{} `type:"structure"`
  7854. // The app ID.
  7855. AppId *string `type:"string" required:"true"`
  7856. // A Source object that specifies the app repository.
  7857. AppSource *Source `type:"structure"`
  7858. // One or more user-defined key/value pairs to be added to the stack attributes.
  7859. Attributes map[string]*string `type:"map"`
  7860. // The app's data sources.
  7861. DataSources []*DataSource `type:"list"`
  7862. // A description of the app.
  7863. Description *string `type:"string"`
  7864. // The app's virtual host settings, with multiple domains separated by commas.
  7865. // For example: 'www.example.com, example.com'
  7866. Domains []*string `type:"list"`
  7867. // Whether SSL is enabled for the app.
  7868. EnableSsl *bool `type:"boolean"`
  7869. // An array of EnvironmentVariable objects that specify environment variables
  7870. // to be associated with the app. After you deploy the app, these variables
  7871. // are defined on the associated app server instances.For more information,
  7872. // see Environment Variables (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment).
  7873. //
  7874. // There is no specific limit on the number of environment variables. However,
  7875. // the size of the associated data structure - which includes the variables'
  7876. // names, values, and protected flag values - cannot exceed 10 KB (10240 Bytes).
  7877. // This limit should accommodate most if not all use cases. Exceeding it will
  7878. // cause an exception with the message, "Environment: is too large (maximum
  7879. // is 10KB)."
  7880. //
  7881. // This parameter is supported only by Chef 11.10 stacks. If you have specified
  7882. // one or more environment variables, you cannot modify the stack's Chef version.
  7883. Environment []*EnvironmentVariable `type:"list"`
  7884. // The app name.
  7885. Name *string `type:"string"`
  7886. // An SslConfiguration object with the SSL configuration.
  7887. SslConfiguration *SslConfiguration `type:"structure"`
  7888. // The app type.
  7889. Type *string `type:"string" enum:"AppType"`
  7890. }
  7891. // String returns the string representation
  7892. func (s UpdateAppInput) String() string {
  7893. return awsutil.Prettify(s)
  7894. }
  7895. // GoString returns the string representation
  7896. func (s UpdateAppInput) GoString() string {
  7897. return s.String()
  7898. }
  7899. // Validate inspects the fields of the type to determine if they are valid.
  7900. func (s *UpdateAppInput) Validate() error {
  7901. invalidParams := request.ErrInvalidParams{Context: "UpdateAppInput"}
  7902. if s.AppId == nil {
  7903. invalidParams.Add(request.NewErrParamRequired("AppId"))
  7904. }
  7905. if s.Environment != nil {
  7906. for i, v := range s.Environment {
  7907. if v == nil {
  7908. continue
  7909. }
  7910. if err := v.Validate(); err != nil {
  7911. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Environment", i), err.(request.ErrInvalidParams))
  7912. }
  7913. }
  7914. }
  7915. if s.SslConfiguration != nil {
  7916. if err := s.SslConfiguration.Validate(); err != nil {
  7917. invalidParams.AddNested("SslConfiguration", err.(request.ErrInvalidParams))
  7918. }
  7919. }
  7920. if invalidParams.Len() > 0 {
  7921. return invalidParams
  7922. }
  7923. return nil
  7924. }
  7925. type UpdateAppOutput struct {
  7926. _ struct{} `type:"structure"`
  7927. }
  7928. // String returns the string representation
  7929. func (s UpdateAppOutput) String() string {
  7930. return awsutil.Prettify(s)
  7931. }
  7932. // GoString returns the string representation
  7933. func (s UpdateAppOutput) GoString() string {
  7934. return s.String()
  7935. }
  7936. type UpdateElasticIpInput struct {
  7937. _ struct{} `type:"structure"`
  7938. // The address.
  7939. ElasticIp *string `type:"string" required:"true"`
  7940. // The new name.
  7941. Name *string `type:"string"`
  7942. }
  7943. // String returns the string representation
  7944. func (s UpdateElasticIpInput) String() string {
  7945. return awsutil.Prettify(s)
  7946. }
  7947. // GoString returns the string representation
  7948. func (s UpdateElasticIpInput) GoString() string {
  7949. return s.String()
  7950. }
  7951. // Validate inspects the fields of the type to determine if they are valid.
  7952. func (s *UpdateElasticIpInput) Validate() error {
  7953. invalidParams := request.ErrInvalidParams{Context: "UpdateElasticIpInput"}
  7954. if s.ElasticIp == nil {
  7955. invalidParams.Add(request.NewErrParamRequired("ElasticIp"))
  7956. }
  7957. if invalidParams.Len() > 0 {
  7958. return invalidParams
  7959. }
  7960. return nil
  7961. }
  7962. type UpdateElasticIpOutput struct {
  7963. _ struct{} `type:"structure"`
  7964. }
  7965. // String returns the string representation
  7966. func (s UpdateElasticIpOutput) String() string {
  7967. return awsutil.Prettify(s)
  7968. }
  7969. // GoString returns the string representation
  7970. func (s UpdateElasticIpOutput) GoString() string {
  7971. return s.String()
  7972. }
  7973. type UpdateInstanceInput struct {
  7974. _ struct{} `type:"structure"`
  7975. // The default AWS OpsWorks agent version. You have the following options:
  7976. //
  7977. // INHERIT - Use the stack's default agent version setting.
  7978. //
  7979. // version_number - Use the specified agent version. This value overrides
  7980. // the stack's default setting. To update the agent version, you must edit the
  7981. // instance configuration and specify a new version. AWS OpsWorks then automatically
  7982. // installs that version on the instance.
  7983. //
  7984. // The default setting is INHERIT. To specify an agent version, you must
  7985. // use the complete version number, not the abbreviated number shown on the
  7986. // console. For a list of available agent version numbers, call DescribeAgentVersions.
  7987. AgentVersion *string `type:"string"`
  7988. // A custom AMI ID to be used to create the instance. The AMI must be based
  7989. // on one of the supported operating systems. For more information, see Instances
  7990. // (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html)
  7991. //
  7992. // If you specify a custom AMI, you must set Os to Custom.
  7993. AmiId *string `type:"string"`
  7994. // The instance architecture. Instance types do not necessarily support both
  7995. // architectures. For a list of the architectures that are supported by the
  7996. // different instance types, see Instance Families and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  7997. Architecture *string `type:"string" enum:"Architecture"`
  7998. // For load-based or time-based instances, the type. Windows stacks can use
  7999. // only time-based instances.
  8000. AutoScalingType *string `type:"string" enum:"AutoScalingType"`
  8001. // This property cannot be updated.
  8002. EbsOptimized *bool `type:"boolean"`
  8003. // The instance host name.
  8004. Hostname *string `type:"string"`
  8005. // Whether to install operating system and package updates when the instance
  8006. // boots. The default value is true. To control when updates are installed,
  8007. // set this value to false. You must then update your instances manually by
  8008. // using CreateDeployment to run the update_dependencies stack command or by
  8009. // manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
  8010. //
  8011. // We strongly recommend using the default value of true, to ensure that your
  8012. // instances have the latest security updates.
  8013. InstallUpdatesOnBoot *bool `type:"boolean"`
  8014. // The instance ID.
  8015. InstanceId *string `type:"string" required:"true"`
  8016. // The instance type, such as t2.micro. For a list of supported instance types,
  8017. // open the stack in the console, choose Instances, and choose + Instance. The
  8018. // Size list contains the currently supported types. For more information, see
  8019. // Instance Families and Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  8020. // The parameter values that you use to specify the various types are in the
  8021. // API Name column of the Available Instance Types table.
  8022. InstanceType *string `type:"string"`
  8023. // The instance's layer IDs.
  8024. LayerIds []*string `type:"list"`
  8025. // The instance's operating system, which must be set to one of the following.
  8026. //
  8027. // A supported Linux operating system: An Amazon Linux version, such as Amazon
  8028. // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
  8029. //
  8030. // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
  8031. // 14.04 LTS, or Ubuntu 12.04 LTS.
  8032. //
  8033. // CentOS 7
  8034. //
  8035. // Red Hat Enterprise Linux 7
  8036. //
  8037. // A supported Windows operating system, such as Microsoft Windows Server
  8038. // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft
  8039. // Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server
  8040. // 2012 R2 with SQL Server Web.
  8041. //
  8042. // A custom AMI: Custom.
  8043. //
  8044. // For more information on the supported operating systems, see AWS OpsWorks
  8045. // Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  8046. //
  8047. // The default option is the current Amazon Linux version. If you set this
  8048. // parameter to Custom, you must use the AmiId parameter to specify the custom
  8049. // AMI that you want to use. For more information on the supported operating
  8050. // systems, see Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  8051. // For more information on how to use custom AMIs with OpsWorks, see Using Custom
  8052. // AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  8053. //
  8054. // You can specify a different Linux operating system for the updated stack,
  8055. // but you cannot change from Linux to Windows or Windows to Linux.
  8056. Os *string `type:"string"`
  8057. // The instance's Amazon EC2 key name.
  8058. SshKeyName *string `type:"string"`
  8059. }
  8060. // String returns the string representation
  8061. func (s UpdateInstanceInput) String() string {
  8062. return awsutil.Prettify(s)
  8063. }
  8064. // GoString returns the string representation
  8065. func (s UpdateInstanceInput) GoString() string {
  8066. return s.String()
  8067. }
  8068. // Validate inspects the fields of the type to determine if they are valid.
  8069. func (s *UpdateInstanceInput) Validate() error {
  8070. invalidParams := request.ErrInvalidParams{Context: "UpdateInstanceInput"}
  8071. if s.InstanceId == nil {
  8072. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  8073. }
  8074. if invalidParams.Len() > 0 {
  8075. return invalidParams
  8076. }
  8077. return nil
  8078. }
  8079. type UpdateInstanceOutput struct {
  8080. _ struct{} `type:"structure"`
  8081. }
  8082. // String returns the string representation
  8083. func (s UpdateInstanceOutput) String() string {
  8084. return awsutil.Prettify(s)
  8085. }
  8086. // GoString returns the string representation
  8087. func (s UpdateInstanceOutput) GoString() string {
  8088. return s.String()
  8089. }
  8090. type UpdateLayerInput struct {
  8091. _ struct{} `type:"structure"`
  8092. // One or more user-defined key/value pairs to be added to the stack attributes.
  8093. Attributes map[string]*string `type:"map"`
  8094. // Whether to automatically assign an Elastic IP address (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  8095. // 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).
  8096. AutoAssignElasticIps *bool `type:"boolean"`
  8097. // For stacks that are running in a VPC, whether to automatically assign a public
  8098. // IP address to the layer's instances. For more information, see How to Edit
  8099. // a Layer (http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html).
  8100. AutoAssignPublicIps *bool `type:"boolean"`
  8101. // The ARN of an IAM profile to be used for all of the layer's EC2 instances.
  8102. // For more information about IAM ARNs, see Using Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  8103. CustomInstanceProfileArn *string `type:"string"`
  8104. // A JSON-formatted string containing custom stack configuration and deployment
  8105. // attributes to be installed on the layer's instances. For more information,
  8106. // see Using Custom JSON (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json-override.html).
  8107. CustomJson *string `type:"string"`
  8108. // A LayerCustomRecipes object that specifies the layer's custom recipes.
  8109. CustomRecipes *Recipes `type:"structure"`
  8110. // An array containing the layer's custom security group IDs.
  8111. CustomSecurityGroupIds []*string `type:"list"`
  8112. // Whether to disable auto healing for the layer.
  8113. EnableAutoHealing *bool `type:"boolean"`
  8114. // Whether to install operating system and package updates when the instance
  8115. // boots. The default value is true. To control when updates are installed,
  8116. // set this value to false. You must then update your instances manually by
  8117. // using CreateDeployment to run the update_dependencies stack command or manually
  8118. // running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
  8119. //
  8120. // We strongly recommend using the default value of true, to ensure that your
  8121. // instances have the latest security updates.
  8122. InstallUpdatesOnBoot *bool `type:"boolean"`
  8123. // The layer ID.
  8124. LayerId *string `type:"string" required:"true"`
  8125. LifecycleEventConfiguration *LifecycleEventConfiguration `type:"structure"`
  8126. // The layer name, which is used by the console.
  8127. Name *string `type:"string"`
  8128. // An array of Package objects that describe the layer's packages.
  8129. Packages []*string `type:"list"`
  8130. // For custom layers only, use this parameter to specify the layer's short name,
  8131. // which is used internally by AWS OpsWorksand by Chef. The short name is also
  8132. // used as the name for the directory where your app files are installed. It
  8133. // can have a maximum of 200 characters and must be in the following format:
  8134. // /\A[a-z0-9\-\_\.]+\Z/.
  8135. //
  8136. // The built-in layers' short names are defined by AWS OpsWorks. For more information,
  8137. // see the Layer Reference (http://docs.aws.amazon.com/opsworks/latest/userguide/layers.html)
  8138. Shortname *string `type:"string"`
  8139. // Whether to use Amazon EBS-optimized instances.
  8140. UseEbsOptimizedInstances *bool `type:"boolean"`
  8141. // A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
  8142. VolumeConfigurations []*VolumeConfiguration `type:"list"`
  8143. }
  8144. // String returns the string representation
  8145. func (s UpdateLayerInput) String() string {
  8146. return awsutil.Prettify(s)
  8147. }
  8148. // GoString returns the string representation
  8149. func (s UpdateLayerInput) GoString() string {
  8150. return s.String()
  8151. }
  8152. // Validate inspects the fields of the type to determine if they are valid.
  8153. func (s *UpdateLayerInput) Validate() error {
  8154. invalidParams := request.ErrInvalidParams{Context: "UpdateLayerInput"}
  8155. if s.LayerId == nil {
  8156. invalidParams.Add(request.NewErrParamRequired("LayerId"))
  8157. }
  8158. if s.VolumeConfigurations != nil {
  8159. for i, v := range s.VolumeConfigurations {
  8160. if v == nil {
  8161. continue
  8162. }
  8163. if err := v.Validate(); err != nil {
  8164. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VolumeConfigurations", i), err.(request.ErrInvalidParams))
  8165. }
  8166. }
  8167. }
  8168. if invalidParams.Len() > 0 {
  8169. return invalidParams
  8170. }
  8171. return nil
  8172. }
  8173. type UpdateLayerOutput struct {
  8174. _ struct{} `type:"structure"`
  8175. }
  8176. // String returns the string representation
  8177. func (s UpdateLayerOutput) String() string {
  8178. return awsutil.Prettify(s)
  8179. }
  8180. // GoString returns the string representation
  8181. func (s UpdateLayerOutput) GoString() string {
  8182. return s.String()
  8183. }
  8184. type UpdateMyUserProfileInput struct {
  8185. _ struct{} `type:"structure"`
  8186. // The user's SSH public key.
  8187. SshPublicKey *string `type:"string"`
  8188. }
  8189. // String returns the string representation
  8190. func (s UpdateMyUserProfileInput) String() string {
  8191. return awsutil.Prettify(s)
  8192. }
  8193. // GoString returns the string representation
  8194. func (s UpdateMyUserProfileInput) GoString() string {
  8195. return s.String()
  8196. }
  8197. type UpdateMyUserProfileOutput struct {
  8198. _ struct{} `type:"structure"`
  8199. }
  8200. // String returns the string representation
  8201. func (s UpdateMyUserProfileOutput) String() string {
  8202. return awsutil.Prettify(s)
  8203. }
  8204. // GoString returns the string representation
  8205. func (s UpdateMyUserProfileOutput) GoString() string {
  8206. return s.String()
  8207. }
  8208. type UpdateRdsDbInstanceInput struct {
  8209. _ struct{} `type:"structure"`
  8210. // The database password.
  8211. DbPassword *string `type:"string"`
  8212. // The master user name.
  8213. DbUser *string `type:"string"`
  8214. // The Amazon RDS instance's ARN.
  8215. RdsDbInstanceArn *string `type:"string" required:"true"`
  8216. }
  8217. // String returns the string representation
  8218. func (s UpdateRdsDbInstanceInput) String() string {
  8219. return awsutil.Prettify(s)
  8220. }
  8221. // GoString returns the string representation
  8222. func (s UpdateRdsDbInstanceInput) GoString() string {
  8223. return s.String()
  8224. }
  8225. // Validate inspects the fields of the type to determine if they are valid.
  8226. func (s *UpdateRdsDbInstanceInput) Validate() error {
  8227. invalidParams := request.ErrInvalidParams{Context: "UpdateRdsDbInstanceInput"}
  8228. if s.RdsDbInstanceArn == nil {
  8229. invalidParams.Add(request.NewErrParamRequired("RdsDbInstanceArn"))
  8230. }
  8231. if invalidParams.Len() > 0 {
  8232. return invalidParams
  8233. }
  8234. return nil
  8235. }
  8236. type UpdateRdsDbInstanceOutput struct {
  8237. _ struct{} `type:"structure"`
  8238. }
  8239. // String returns the string representation
  8240. func (s UpdateRdsDbInstanceOutput) String() string {
  8241. return awsutil.Prettify(s)
  8242. }
  8243. // GoString returns the string representation
  8244. func (s UpdateRdsDbInstanceOutput) GoString() string {
  8245. return s.String()
  8246. }
  8247. type UpdateStackInput struct {
  8248. _ struct{} `type:"structure"`
  8249. // The default AWS OpsWorks agent version. You have the following options:
  8250. //
  8251. // Auto-update - Set this parameter to LATEST. AWS OpsWorks automatically
  8252. // installs new agent versions on the stack's instances as soon as they are
  8253. // available.
  8254. //
  8255. // Fixed version - Set this parameter to your preferred agent version. To
  8256. // update the agent version, you must edit the stack configuration and specify
  8257. // a new version. AWS OpsWorks then automatically installs that version on the
  8258. // stack's instances.
  8259. //
  8260. // The default setting is LATEST. To specify an agent version, you must use
  8261. // the complete version number, not the abbreviated number shown on the console.
  8262. // For a list of available agent version numbers, call DescribeAgentVersions.
  8263. //
  8264. // You can also specify an agent version when you create or update an instance,
  8265. // which overrides the stack's default setting.
  8266. AgentVersion *string `type:"string"`
  8267. // One or more user-defined key-value pairs to be added to the stack attributes.
  8268. Attributes map[string]*string `type:"map"`
  8269. // A ChefConfiguration object that specifies whether to enable Berkshelf and
  8270. // the Berkshelf version on Chef 11.10 stacks. For more information, see Create
  8271. // a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  8272. ChefConfiguration *ChefConfiguration `type:"structure"`
  8273. // The configuration manager. When you update a stack, we recommend that you
  8274. // use the configuration manager to specify the Chef version: 12, 11.10, or
  8275. // 11.4 for Linux stacks, or 12.2 for Windows stacks. The default value for
  8276. // Linux stacks is currently 11.4.
  8277. ConfigurationManager *StackConfigurationManager `type:"structure"`
  8278. // Contains the information required to retrieve an app or cookbook from a repository.
  8279. // For more information, see Creating Apps (http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html)
  8280. // or Custom Recipes and Cookbooks (http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook.html).
  8281. CustomCookbooksSource *Source `type:"structure"`
  8282. // A string that contains user-defined, custom JSON. It can be used to override
  8283. // the corresponding default stack configuration JSON values or to pass data
  8284. // to recipes. The string should be in the following format and escape characters
  8285. // such as '"':
  8286. //
  8287. // "{\"key1\": \"value1\", \"key2\": \"value2\",...}"
  8288. //
  8289. // For more information on custom JSON, see Use Custom JSON to Modify the Stack
  8290. // Configuration Attributes (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-json.html).
  8291. CustomJson *string `type:"string"`
  8292. // The stack's default Availability Zone, which must be in the stack's region.
  8293. // For more information, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  8294. // If you also specify a value for DefaultSubnetId, the subnet must be in the
  8295. // same zone. For more information, see CreateStack.
  8296. DefaultAvailabilityZone *string `type:"string"`
  8297. // The ARN of an IAM profile that is the default profile for all of the stack's
  8298. // EC2 instances. For more information about IAM ARNs, see Using Identifiers
  8299. // (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html).
  8300. DefaultInstanceProfileArn *string `type:"string"`
  8301. // The stack's operating system, which must be set to one of the following:
  8302. //
  8303. // A supported Linux operating system: An Amazon Linux version, such as Amazon
  8304. // Linux 2016.03, Amazon Linux 2015.09, or Amazon Linux 2015.03.
  8305. //
  8306. // A supported Ubuntu operating system, such as Ubuntu 16.04 LTS, Ubuntu
  8307. // 14.04 LTS, or Ubuntu 12.04 LTS.
  8308. //
  8309. // CentOS 7
  8310. //
  8311. // Red Hat Enterprise Linux 7
  8312. //
  8313. // A supported Windows operating system, such as Microsoft Windows Server
  8314. // 2012 R2 Base, Microsoft Windows Server 2012 R2 with SQL Server Express, Microsoft
  8315. // Windows Server 2012 R2 with SQL Server Standard, or Microsoft Windows Server
  8316. // 2012 R2 with SQL Server Web.
  8317. //
  8318. // A custom AMI: Custom. You specify the custom AMI you want to use when
  8319. // you create instances. For more information on how to use custom AMIs with
  8320. // OpsWorks, see Using Custom AMIs (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html).
  8321. //
  8322. // The default option is the stack's current operating system. For more information
  8323. // on the supported operating systems, see AWS OpsWorks Operating Systems (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-os.html).
  8324. DefaultOs *string `type:"string"`
  8325. // The default root device type. This value is used by default for all instances
  8326. // in the stack, but you can override it when you create an instance. For more
  8327. // information, see Storage for the Root Device (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device).
  8328. DefaultRootDeviceType *string `type:"string" enum:"RootDeviceType"`
  8329. // A default Amazon EC2 key-pair name. The default value is none. If you specify
  8330. // a key-pair name, AWS OpsWorks installs the public key on the instance and
  8331. // you can use the private key with an SSH client to log in to the instance.
  8332. // For more information, see Using SSH to Communicate with an Instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-ssh.html)
  8333. // and Managing SSH Access (http://docs.aws.amazon.com/opsworks/latest/userguide/security-ssh-access.html).
  8334. // You can override this setting by specifying a different key pair, or no key
  8335. // pair, when you create an instance (http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-add.html).
  8336. DefaultSshKeyName *string `type:"string"`
  8337. // The stack's default VPC subnet ID. This parameter is required if you specify
  8338. // a value for the VpcId parameter. All instances are launched into this subnet
  8339. // unless you specify otherwise when you create the instance. If you also specify
  8340. // a value for DefaultAvailabilityZone, the subnet must be in that zone. For
  8341. // information on default values and when this parameter is required, see the
  8342. // VpcId parameter description.
  8343. DefaultSubnetId *string `type:"string"`
  8344. // The stack's new host name theme, with spaces replaced by underscores. The
  8345. // theme is used to generate host names for the stack's instances. By default,
  8346. // HostnameTheme is set to Layer_Dependent, which creates host names by appending
  8347. // integers to the layer's short name. The other themes are:
  8348. //
  8349. // Baked_Goods
  8350. //
  8351. // Clouds
  8352. //
  8353. // Europe_Cities
  8354. //
  8355. // Fruits
  8356. //
  8357. // Greek_Deities
  8358. //
  8359. // Legendary_creatures_from_Japan
  8360. //
  8361. // Planets_and_Moons
  8362. //
  8363. // Roman_Deities
  8364. //
  8365. // Scottish_Islands
  8366. //
  8367. // US_Cities
  8368. //
  8369. // Wild_Cats
  8370. //
  8371. // To obtain a generated host name, call GetHostNameSuggestion, which returns
  8372. // a host name based on the current theme.
  8373. HostnameTheme *string `type:"string"`
  8374. // The stack's new name.
  8375. Name *string `type:"string"`
  8376. // Do not use this parameter. You cannot update a stack's service role.
  8377. ServiceRoleArn *string `type:"string"`
  8378. // The stack ID.
  8379. StackId *string `type:"string" required:"true"`
  8380. // Whether the stack uses custom cookbooks.
  8381. UseCustomCookbooks *bool `type:"boolean"`
  8382. // Whether to associate the AWS OpsWorks built-in security groups with the stack's
  8383. // layers.
  8384. //
  8385. // AWS OpsWorks provides a standard set of built-in security groups, one for
  8386. // each layer, which are associated with layers by default. UseOpsworksSecurityGroups
  8387. // allows you to provide your own custom security groups instead of using the
  8388. // built-in groups. UseOpsworksSecurityGroups has the following settings:
  8389. //
  8390. // True - AWS OpsWorks automatically associates the appropriate built-in
  8391. // security group with each layer (default setting). You can associate additional
  8392. // security groups with a layer after you create it, but you cannot delete the
  8393. // built-in security group.
  8394. //
  8395. // False - AWS OpsWorks does not associate built-in security groups with
  8396. // layers. You must create appropriate EC2 security groups and associate a security
  8397. // group with each layer that you create. However, you can still manually associate
  8398. // a built-in security group with a layer on. Custom security groups are required
  8399. // only for those layers that need custom settings.
  8400. //
  8401. // For more information, see Create a New Stack (http://docs.aws.amazon.com/opsworks/latest/userguide/workingstacks-creating.html).
  8402. UseOpsworksSecurityGroups *bool `type:"boolean"`
  8403. }
  8404. // String returns the string representation
  8405. func (s UpdateStackInput) String() string {
  8406. return awsutil.Prettify(s)
  8407. }
  8408. // GoString returns the string representation
  8409. func (s UpdateStackInput) GoString() string {
  8410. return s.String()
  8411. }
  8412. // Validate inspects the fields of the type to determine if they are valid.
  8413. func (s *UpdateStackInput) Validate() error {
  8414. invalidParams := request.ErrInvalidParams{Context: "UpdateStackInput"}
  8415. if s.StackId == nil {
  8416. invalidParams.Add(request.NewErrParamRequired("StackId"))
  8417. }
  8418. if invalidParams.Len() > 0 {
  8419. return invalidParams
  8420. }
  8421. return nil
  8422. }
  8423. type UpdateStackOutput struct {
  8424. _ struct{} `type:"structure"`
  8425. }
  8426. // String returns the string representation
  8427. func (s UpdateStackOutput) String() string {
  8428. return awsutil.Prettify(s)
  8429. }
  8430. // GoString returns the string representation
  8431. func (s UpdateStackOutput) GoString() string {
  8432. return s.String()
  8433. }
  8434. type UpdateUserProfileInput struct {
  8435. _ struct{} `type:"structure"`
  8436. // Whether users can specify their own SSH public key through the My Settings
  8437. // page. For more information, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).
  8438. AllowSelfManagement *bool `type:"boolean"`
  8439. // The user IAM ARN.
  8440. IamUserArn *string `type:"string" required:"true"`
  8441. // The user's new SSH public key.
  8442. SshPublicKey *string `type:"string"`
  8443. // The user's SSH user name. The allowable characters are [a-z], [A-Z], [0-9],
  8444. // '-', and '_'. If the specified name includes other punctuation marks, AWS
  8445. // OpsWorks removes them. For example, my.name will be changed to myname. If
  8446. // you do not specify an SSH user name, AWS OpsWorks generates one from the
  8447. // IAM user name.
  8448. SshUsername *string `type:"string"`
  8449. }
  8450. // String returns the string representation
  8451. func (s UpdateUserProfileInput) String() string {
  8452. return awsutil.Prettify(s)
  8453. }
  8454. // GoString returns the string representation
  8455. func (s UpdateUserProfileInput) GoString() string {
  8456. return s.String()
  8457. }
  8458. // Validate inspects the fields of the type to determine if they are valid.
  8459. func (s *UpdateUserProfileInput) Validate() error {
  8460. invalidParams := request.ErrInvalidParams{Context: "UpdateUserProfileInput"}
  8461. if s.IamUserArn == nil {
  8462. invalidParams.Add(request.NewErrParamRequired("IamUserArn"))
  8463. }
  8464. if invalidParams.Len() > 0 {
  8465. return invalidParams
  8466. }
  8467. return nil
  8468. }
  8469. type UpdateUserProfileOutput struct {
  8470. _ struct{} `type:"structure"`
  8471. }
  8472. // String returns the string representation
  8473. func (s UpdateUserProfileOutput) String() string {
  8474. return awsutil.Prettify(s)
  8475. }
  8476. // GoString returns the string representation
  8477. func (s UpdateUserProfileOutput) GoString() string {
  8478. return s.String()
  8479. }
  8480. type UpdateVolumeInput struct {
  8481. _ struct{} `type:"structure"`
  8482. // The new mount point.
  8483. MountPoint *string `type:"string"`
  8484. // The new name.
  8485. Name *string `type:"string"`
  8486. // The volume ID.
  8487. VolumeId *string `type:"string" required:"true"`
  8488. }
  8489. // String returns the string representation
  8490. func (s UpdateVolumeInput) String() string {
  8491. return awsutil.Prettify(s)
  8492. }
  8493. // GoString returns the string representation
  8494. func (s UpdateVolumeInput) GoString() string {
  8495. return s.String()
  8496. }
  8497. // Validate inspects the fields of the type to determine if they are valid.
  8498. func (s *UpdateVolumeInput) Validate() error {
  8499. invalidParams := request.ErrInvalidParams{Context: "UpdateVolumeInput"}
  8500. if s.VolumeId == nil {
  8501. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  8502. }
  8503. if invalidParams.Len() > 0 {
  8504. return invalidParams
  8505. }
  8506. return nil
  8507. }
  8508. type UpdateVolumeOutput struct {
  8509. _ struct{} `type:"structure"`
  8510. }
  8511. // String returns the string representation
  8512. func (s UpdateVolumeOutput) String() string {
  8513. return awsutil.Prettify(s)
  8514. }
  8515. // GoString returns the string representation
  8516. func (s UpdateVolumeOutput) GoString() string {
  8517. return s.String()
  8518. }
  8519. // Describes a user's SSH information.
  8520. type UserProfile struct {
  8521. _ struct{} `type:"structure"`
  8522. // Whether users can specify their own SSH public key through the My Settings
  8523. // page. For more information, see Managing User Permissions (http://docs.aws.amazon.com/opsworks/latest/userguide/security-settingsshkey.html).
  8524. AllowSelfManagement *bool `type:"boolean"`
  8525. // The user's IAM ARN.
  8526. IamUserArn *string `type:"string"`
  8527. // The user's name.
  8528. Name *string `type:"string"`
  8529. // The user's SSH public key.
  8530. SshPublicKey *string `type:"string"`
  8531. // The user's SSH user name.
  8532. SshUsername *string `type:"string"`
  8533. }
  8534. // String returns the string representation
  8535. func (s UserProfile) String() string {
  8536. return awsutil.Prettify(s)
  8537. }
  8538. // GoString returns the string representation
  8539. func (s UserProfile) GoString() string {
  8540. return s.String()
  8541. }
  8542. // Describes an instance's Amazon EBS volume.
  8543. type Volume struct {
  8544. _ struct{} `type:"structure"`
  8545. // The volume Availability Zone. For more information, see Regions and Endpoints
  8546. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  8547. AvailabilityZone *string `type:"string"`
  8548. // The device name.
  8549. Device *string `type:"string"`
  8550. // The Amazon EC2 volume ID.
  8551. Ec2VolumeId *string `type:"string"`
  8552. // The instance ID.
  8553. InstanceId *string `type:"string"`
  8554. // For PIOPS volumes, the IOPS per disk.
  8555. Iops *int64 `type:"integer"`
  8556. // The volume mount point. For example, "/mnt/disk1".
  8557. MountPoint *string `type:"string"`
  8558. // The volume name.
  8559. Name *string `type:"string"`
  8560. // The RAID array ID.
  8561. RaidArrayId *string `type:"string"`
  8562. // The AWS region. For more information about AWS regions, see Regions and Endpoints
  8563. // (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  8564. Region *string `type:"string"`
  8565. // The volume size.
  8566. Size *int64 `type:"integer"`
  8567. // The value returned by DescribeVolumes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeVolumes.html).
  8568. Status *string `type:"string"`
  8569. // The volume ID.
  8570. VolumeId *string `type:"string"`
  8571. // The volume type, standard or PIOPS.
  8572. VolumeType *string `type:"string"`
  8573. }
  8574. // String returns the string representation
  8575. func (s Volume) String() string {
  8576. return awsutil.Prettify(s)
  8577. }
  8578. // GoString returns the string representation
  8579. func (s Volume) GoString() string {
  8580. return s.String()
  8581. }
  8582. // Describes an Amazon EBS volume configuration.
  8583. type VolumeConfiguration struct {
  8584. _ struct{} `type:"structure"`
  8585. // For PIOPS volumes, the IOPS per disk.
  8586. Iops *int64 `type:"integer"`
  8587. // The volume mount point. For example "/dev/sdh".
  8588. MountPoint *string `type:"string" required:"true"`
  8589. // The number of disks in the volume.
  8590. NumberOfDisks *int64 `type:"integer" required:"true"`
  8591. // The volume RAID level (http://en.wikipedia.org/wiki/Standard_RAID_levels).
  8592. RaidLevel *int64 `type:"integer"`
  8593. // The volume size.
  8594. Size *int64 `type:"integer" required:"true"`
  8595. // The volume type:
  8596. //
  8597. // standard - Magnetic
  8598. //
  8599. // io1 - Provisioned IOPS (SSD)
  8600. //
  8601. // gp2 - General Purpose (SSD)
  8602. VolumeType *string `type:"string"`
  8603. }
  8604. // String returns the string representation
  8605. func (s VolumeConfiguration) String() string {
  8606. return awsutil.Prettify(s)
  8607. }
  8608. // GoString returns the string representation
  8609. func (s VolumeConfiguration) GoString() string {
  8610. return s.String()
  8611. }
  8612. // Validate inspects the fields of the type to determine if they are valid.
  8613. func (s *VolumeConfiguration) Validate() error {
  8614. invalidParams := request.ErrInvalidParams{Context: "VolumeConfiguration"}
  8615. if s.MountPoint == nil {
  8616. invalidParams.Add(request.NewErrParamRequired("MountPoint"))
  8617. }
  8618. if s.NumberOfDisks == nil {
  8619. invalidParams.Add(request.NewErrParamRequired("NumberOfDisks"))
  8620. }
  8621. if s.Size == nil {
  8622. invalidParams.Add(request.NewErrParamRequired("Size"))
  8623. }
  8624. if invalidParams.Len() > 0 {
  8625. return invalidParams
  8626. }
  8627. return nil
  8628. }
  8629. // Describes a time-based instance's auto scaling schedule. The schedule consists
  8630. // of a set of key-value pairs.
  8631. //
  8632. // The key is the time period (a UTC hour) and must be an integer from 0
  8633. // - 23.
  8634. //
  8635. // The value indicates whether the instance should be online or offline for
  8636. // the specified period, and must be set to "on" or "off"
  8637. //
  8638. // The default setting for all time periods is off, so you use the following
  8639. // parameters primarily to specify the online periods. You don't have to explicitly
  8640. // specify offline periods unless you want to change an online period to an
  8641. // offline period.
  8642. //
  8643. // The following example specifies that the instance should be online for four
  8644. // hours, from UTC 1200 - 1600. It will be off for the remainder of the day.
  8645. //
  8646. // { "12":"on", "13":"on", "14":"on", "15":"on" }
  8647. type WeeklyAutoScalingSchedule struct {
  8648. _ struct{} `type:"structure"`
  8649. // The schedule for Friday.
  8650. Friday map[string]*string `type:"map"`
  8651. // The schedule for Monday.
  8652. Monday map[string]*string `type:"map"`
  8653. // The schedule for Saturday.
  8654. Saturday map[string]*string `type:"map"`
  8655. // The schedule for Sunday.
  8656. Sunday map[string]*string `type:"map"`
  8657. // The schedule for Thursday.
  8658. Thursday map[string]*string `type:"map"`
  8659. // The schedule for Tuesday.
  8660. Tuesday map[string]*string `type:"map"`
  8661. // The schedule for Wednesday.
  8662. Wednesday map[string]*string `type:"map"`
  8663. }
  8664. // String returns the string representation
  8665. func (s WeeklyAutoScalingSchedule) String() string {
  8666. return awsutil.Prettify(s)
  8667. }
  8668. // GoString returns the string representation
  8669. func (s WeeklyAutoScalingSchedule) GoString() string {
  8670. return s.String()
  8671. }
  8672. const (
  8673. // @enum AppAttributesKeys
  8674. AppAttributesKeysDocumentRoot = "DocumentRoot"
  8675. // @enum AppAttributesKeys
  8676. AppAttributesKeysRailsEnv = "RailsEnv"
  8677. // @enum AppAttributesKeys
  8678. AppAttributesKeysAutoBundleOnDeploy = "AutoBundleOnDeploy"
  8679. // @enum AppAttributesKeys
  8680. AppAttributesKeysAwsFlowRubySettings = "AwsFlowRubySettings"
  8681. )
  8682. const (
  8683. // @enum AppType
  8684. AppTypeAwsFlowRuby = "aws-flow-ruby"
  8685. // @enum AppType
  8686. AppTypeJava = "java"
  8687. // @enum AppType
  8688. AppTypeRails = "rails"
  8689. // @enum AppType
  8690. AppTypePhp = "php"
  8691. // @enum AppType
  8692. AppTypeNodejs = "nodejs"
  8693. // @enum AppType
  8694. AppTypeStatic = "static"
  8695. // @enum AppType
  8696. AppTypeOther = "other"
  8697. )
  8698. const (
  8699. // @enum Architecture
  8700. ArchitectureX8664 = "x86_64"
  8701. // @enum Architecture
  8702. ArchitectureI386 = "i386"
  8703. )
  8704. const (
  8705. // @enum AutoScalingType
  8706. AutoScalingTypeLoad = "load"
  8707. // @enum AutoScalingType
  8708. AutoScalingTypeTimer = "timer"
  8709. )
  8710. const (
  8711. // @enum DeploymentCommandName
  8712. DeploymentCommandNameInstallDependencies = "install_dependencies"
  8713. // @enum DeploymentCommandName
  8714. DeploymentCommandNameUpdateDependencies = "update_dependencies"
  8715. // @enum DeploymentCommandName
  8716. DeploymentCommandNameUpdateCustomCookbooks = "update_custom_cookbooks"
  8717. // @enum DeploymentCommandName
  8718. DeploymentCommandNameExecuteRecipes = "execute_recipes"
  8719. // @enum DeploymentCommandName
  8720. DeploymentCommandNameConfigure = "configure"
  8721. // @enum DeploymentCommandName
  8722. DeploymentCommandNameSetup = "setup"
  8723. // @enum DeploymentCommandName
  8724. DeploymentCommandNameDeploy = "deploy"
  8725. // @enum DeploymentCommandName
  8726. DeploymentCommandNameRollback = "rollback"
  8727. // @enum DeploymentCommandName
  8728. DeploymentCommandNameStart = "start"
  8729. // @enum DeploymentCommandName
  8730. DeploymentCommandNameStop = "stop"
  8731. // @enum DeploymentCommandName
  8732. DeploymentCommandNameRestart = "restart"
  8733. // @enum DeploymentCommandName
  8734. DeploymentCommandNameUndeploy = "undeploy"
  8735. )
  8736. const (
  8737. // @enum LayerAttributesKeys
  8738. LayerAttributesKeysEcsClusterArn = "EcsClusterArn"
  8739. // @enum LayerAttributesKeys
  8740. LayerAttributesKeysEnableHaproxyStats = "EnableHaproxyStats"
  8741. // @enum LayerAttributesKeys
  8742. LayerAttributesKeysHaproxyStatsUrl = "HaproxyStatsUrl"
  8743. // @enum LayerAttributesKeys
  8744. LayerAttributesKeysHaproxyStatsUser = "HaproxyStatsUser"
  8745. // @enum LayerAttributesKeys
  8746. LayerAttributesKeysHaproxyStatsPassword = "HaproxyStatsPassword"
  8747. // @enum LayerAttributesKeys
  8748. LayerAttributesKeysHaproxyHealthCheckUrl = "HaproxyHealthCheckUrl"
  8749. // @enum LayerAttributesKeys
  8750. LayerAttributesKeysHaproxyHealthCheckMethod = "HaproxyHealthCheckMethod"
  8751. // @enum LayerAttributesKeys
  8752. LayerAttributesKeysMysqlRootPassword = "MysqlRootPassword"
  8753. // @enum LayerAttributesKeys
  8754. LayerAttributesKeysMysqlRootPasswordUbiquitous = "MysqlRootPasswordUbiquitous"
  8755. // @enum LayerAttributesKeys
  8756. LayerAttributesKeysGangliaUrl = "GangliaUrl"
  8757. // @enum LayerAttributesKeys
  8758. LayerAttributesKeysGangliaUser = "GangliaUser"
  8759. // @enum LayerAttributesKeys
  8760. LayerAttributesKeysGangliaPassword = "GangliaPassword"
  8761. // @enum LayerAttributesKeys
  8762. LayerAttributesKeysMemcachedMemory = "MemcachedMemory"
  8763. // @enum LayerAttributesKeys
  8764. LayerAttributesKeysNodejsVersion = "NodejsVersion"
  8765. // @enum LayerAttributesKeys
  8766. LayerAttributesKeysRubyVersion = "RubyVersion"
  8767. // @enum LayerAttributesKeys
  8768. LayerAttributesKeysRubygemsVersion = "RubygemsVersion"
  8769. // @enum LayerAttributesKeys
  8770. LayerAttributesKeysManageBundler = "ManageBundler"
  8771. // @enum LayerAttributesKeys
  8772. LayerAttributesKeysBundlerVersion = "BundlerVersion"
  8773. // @enum LayerAttributesKeys
  8774. LayerAttributesKeysRailsStack = "RailsStack"
  8775. // @enum LayerAttributesKeys
  8776. LayerAttributesKeysPassengerVersion = "PassengerVersion"
  8777. // @enum LayerAttributesKeys
  8778. LayerAttributesKeysJvm = "Jvm"
  8779. // @enum LayerAttributesKeys
  8780. LayerAttributesKeysJvmVersion = "JvmVersion"
  8781. // @enum LayerAttributesKeys
  8782. LayerAttributesKeysJvmOptions = "JvmOptions"
  8783. // @enum LayerAttributesKeys
  8784. LayerAttributesKeysJavaAppServer = "JavaAppServer"
  8785. // @enum LayerAttributesKeys
  8786. LayerAttributesKeysJavaAppServerVersion = "JavaAppServerVersion"
  8787. )
  8788. const (
  8789. // @enum LayerType
  8790. LayerTypeAwsFlowRuby = "aws-flow-ruby"
  8791. // @enum LayerType
  8792. LayerTypeEcsCluster = "ecs-cluster"
  8793. // @enum LayerType
  8794. LayerTypeJavaApp = "java-app"
  8795. // @enum LayerType
  8796. LayerTypeLb = "lb"
  8797. // @enum LayerType
  8798. LayerTypeWeb = "web"
  8799. // @enum LayerType
  8800. LayerTypePhpApp = "php-app"
  8801. // @enum LayerType
  8802. LayerTypeRailsApp = "rails-app"
  8803. // @enum LayerType
  8804. LayerTypeNodejsApp = "nodejs-app"
  8805. // @enum LayerType
  8806. LayerTypeMemcached = "memcached"
  8807. // @enum LayerType
  8808. LayerTypeDbMaster = "db-master"
  8809. // @enum LayerType
  8810. LayerTypeMonitoringMaster = "monitoring-master"
  8811. // @enum LayerType
  8812. LayerTypeCustom = "custom"
  8813. )
  8814. const (
  8815. // @enum RootDeviceType
  8816. RootDeviceTypeEbs = "ebs"
  8817. // @enum RootDeviceType
  8818. RootDeviceTypeInstanceStore = "instance-store"
  8819. )
  8820. const (
  8821. // @enum SourceType
  8822. SourceTypeGit = "git"
  8823. // @enum SourceType
  8824. SourceTypeSvn = "svn"
  8825. // @enum SourceType
  8826. SourceTypeArchive = "archive"
  8827. // @enum SourceType
  8828. SourceTypeS3 = "s3"
  8829. )
  8830. const (
  8831. // @enum StackAttributesKeys
  8832. StackAttributesKeysColor = "Color"
  8833. )
  8834. const (
  8835. // @enum VirtualizationType
  8836. VirtualizationTypeParavirtual = "paravirtual"
  8837. // @enum VirtualizationType
  8838. VirtualizationTypeHvm = "hvm"
  8839. )
  8840. const (
  8841. // @enum VolumeType
  8842. VolumeTypeGp2 = "gp2"
  8843. // @enum VolumeType
  8844. VolumeTypeIo1 = "io1"
  8845. // @enum VolumeType
  8846. VolumeTypeStandard = "standard"
  8847. )