api.go 540 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package rds provides a client for Amazon Relational Database Service.
  3. package rds
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/query"
  11. )
  12. const opAddSourceIdentifierToSubscription = "AddSourceIdentifierToSubscription"
  13. // AddSourceIdentifierToSubscriptionRequest generates a "aws/request.Request" representing the
  14. // client's request for the AddSourceIdentifierToSubscription operation. The "output" return
  15. // value can be used to capture response data after the request's "Send" method
  16. // is called.
  17. //
  18. // Creating a request object using this method should be used when you want to inject
  19. // custom logic into the request's lifecycle using a custom handler, or if you want to
  20. // access properties on the request object before or after sending the request. If
  21. // you just want the service response, call the AddSourceIdentifierToSubscription method directly
  22. // instead.
  23. //
  24. // Note: You must call the "Send" method on the returned request object in order
  25. // to execute the request.
  26. //
  27. // // Example sending a request using the AddSourceIdentifierToSubscriptionRequest method.
  28. // req, resp := client.AddSourceIdentifierToSubscriptionRequest(params)
  29. //
  30. // err := req.Send()
  31. // if err == nil { // resp is now filled
  32. // fmt.Println(resp)
  33. // }
  34. //
  35. func (c *RDS) AddSourceIdentifierToSubscriptionRequest(input *AddSourceIdentifierToSubscriptionInput) (req *request.Request, output *AddSourceIdentifierToSubscriptionOutput) {
  36. op := &request.Operation{
  37. Name: opAddSourceIdentifierToSubscription,
  38. HTTPMethod: "POST",
  39. HTTPPath: "/",
  40. }
  41. if input == nil {
  42. input = &AddSourceIdentifierToSubscriptionInput{}
  43. }
  44. req = c.newRequest(op, input, output)
  45. output = &AddSourceIdentifierToSubscriptionOutput{}
  46. req.Data = output
  47. return
  48. }
  49. // Adds a source identifier to an existing RDS event notification subscription.
  50. func (c *RDS) AddSourceIdentifierToSubscription(input *AddSourceIdentifierToSubscriptionInput) (*AddSourceIdentifierToSubscriptionOutput, error) {
  51. req, out := c.AddSourceIdentifierToSubscriptionRequest(input)
  52. err := req.Send()
  53. return out, err
  54. }
  55. const opAddTagsToResource = "AddTagsToResource"
  56. // AddTagsToResourceRequest generates a "aws/request.Request" representing the
  57. // client's request for the AddTagsToResource operation. The "output" return
  58. // value can be used to capture response data after the request's "Send" method
  59. // is called.
  60. //
  61. // Creating a request object using this method should be used when you want to inject
  62. // custom logic into the request's lifecycle using a custom handler, or if you want to
  63. // access properties on the request object before or after sending the request. If
  64. // you just want the service response, call the AddTagsToResource method directly
  65. // instead.
  66. //
  67. // Note: You must call the "Send" method on the returned request object in order
  68. // to execute the request.
  69. //
  70. // // Example sending a request using the AddTagsToResourceRequest method.
  71. // req, resp := client.AddTagsToResourceRequest(params)
  72. //
  73. // err := req.Send()
  74. // if err == nil { // resp is now filled
  75. // fmt.Println(resp)
  76. // }
  77. //
  78. func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) {
  79. op := &request.Operation{
  80. Name: opAddTagsToResource,
  81. HTTPMethod: "POST",
  82. HTTPPath: "/",
  83. }
  84. if input == nil {
  85. input = &AddTagsToResourceInput{}
  86. }
  87. req = c.newRequest(op, input, output)
  88. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  89. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  90. output = &AddTagsToResourceOutput{}
  91. req.Data = output
  92. return
  93. }
  94. // Adds metadata tags to an Amazon RDS resource. These tags can also be used
  95. // with cost allocation reporting to track cost associated with Amazon RDS resources,
  96. // or used in a Condition statement in an IAM policy for Amazon RDS.
  97. //
  98. // For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS
  99. // Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html).
  100. func (c *RDS) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
  101. req, out := c.AddTagsToResourceRequest(input)
  102. err := req.Send()
  103. return out, err
  104. }
  105. const opApplyPendingMaintenanceAction = "ApplyPendingMaintenanceAction"
  106. // ApplyPendingMaintenanceActionRequest generates a "aws/request.Request" representing the
  107. // client's request for the ApplyPendingMaintenanceAction operation. The "output" return
  108. // value can be used to capture response data after the request's "Send" method
  109. // is called.
  110. //
  111. // Creating a request object using this method should be used when you want to inject
  112. // custom logic into the request's lifecycle using a custom handler, or if you want to
  113. // access properties on the request object before or after sending the request. If
  114. // you just want the service response, call the ApplyPendingMaintenanceAction method directly
  115. // instead.
  116. //
  117. // Note: You must call the "Send" method on the returned request object in order
  118. // to execute the request.
  119. //
  120. // // Example sending a request using the ApplyPendingMaintenanceActionRequest method.
  121. // req, resp := client.ApplyPendingMaintenanceActionRequest(params)
  122. //
  123. // err := req.Send()
  124. // if err == nil { // resp is now filled
  125. // fmt.Println(resp)
  126. // }
  127. //
  128. func (c *RDS) ApplyPendingMaintenanceActionRequest(input *ApplyPendingMaintenanceActionInput) (req *request.Request, output *ApplyPendingMaintenanceActionOutput) {
  129. op := &request.Operation{
  130. Name: opApplyPendingMaintenanceAction,
  131. HTTPMethod: "POST",
  132. HTTPPath: "/",
  133. }
  134. if input == nil {
  135. input = &ApplyPendingMaintenanceActionInput{}
  136. }
  137. req = c.newRequest(op, input, output)
  138. output = &ApplyPendingMaintenanceActionOutput{}
  139. req.Data = output
  140. return
  141. }
  142. // Applies a pending maintenance action to a resource (for example, to a DB
  143. // instance).
  144. func (c *RDS) ApplyPendingMaintenanceAction(input *ApplyPendingMaintenanceActionInput) (*ApplyPendingMaintenanceActionOutput, error) {
  145. req, out := c.ApplyPendingMaintenanceActionRequest(input)
  146. err := req.Send()
  147. return out, err
  148. }
  149. const opAuthorizeDBSecurityGroupIngress = "AuthorizeDBSecurityGroupIngress"
  150. // AuthorizeDBSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  151. // client's request for the AuthorizeDBSecurityGroupIngress operation. The "output" return
  152. // value can be used to capture response data after the request's "Send" method
  153. // is called.
  154. //
  155. // Creating a request object using this method should be used when you want to inject
  156. // custom logic into the request's lifecycle using a custom handler, or if you want to
  157. // access properties on the request object before or after sending the request. If
  158. // you just want the service response, call the AuthorizeDBSecurityGroupIngress method directly
  159. // instead.
  160. //
  161. // Note: You must call the "Send" method on the returned request object in order
  162. // to execute the request.
  163. //
  164. // // Example sending a request using the AuthorizeDBSecurityGroupIngressRequest method.
  165. // req, resp := client.AuthorizeDBSecurityGroupIngressRequest(params)
  166. //
  167. // err := req.Send()
  168. // if err == nil { // resp is now filled
  169. // fmt.Println(resp)
  170. // }
  171. //
  172. func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityGroupIngressInput) (req *request.Request, output *AuthorizeDBSecurityGroupIngressOutput) {
  173. op := &request.Operation{
  174. Name: opAuthorizeDBSecurityGroupIngress,
  175. HTTPMethod: "POST",
  176. HTTPPath: "/",
  177. }
  178. if input == nil {
  179. input = &AuthorizeDBSecurityGroupIngressInput{}
  180. }
  181. req = c.newRequest(op, input, output)
  182. output = &AuthorizeDBSecurityGroupIngressOutput{}
  183. req.Data = output
  184. return
  185. }
  186. // Enables ingress to a DBSecurityGroup using one of two forms of authorization.
  187. // First, EC2 or VPC security groups can be added to the DBSecurityGroup if
  188. // the application using the database is running on EC2 or VPC instances. Second,
  189. // IP ranges are available if the application accessing your database is running
  190. // on the Internet. Required parameters for this API are one of CIDR range,
  191. // EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName
  192. // or EC2SecurityGroupId for non-VPC).
  193. //
  194. // You cannot authorize ingress from an EC2 security group in one region to
  195. // an Amazon RDS DB instance in another. You cannot authorize ingress from a
  196. // VPC security group in one VPC to an Amazon RDS DB instance in another.
  197. //
  198. // For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing).
  199. func (c *RDS) AuthorizeDBSecurityGroupIngress(input *AuthorizeDBSecurityGroupIngressInput) (*AuthorizeDBSecurityGroupIngressOutput, error) {
  200. req, out := c.AuthorizeDBSecurityGroupIngressRequest(input)
  201. err := req.Send()
  202. return out, err
  203. }
  204. const opCopyDBClusterParameterGroup = "CopyDBClusterParameterGroup"
  205. // CopyDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  206. // client's request for the CopyDBClusterParameterGroup operation. The "output" return
  207. // value can be used to capture response data after the request's "Send" method
  208. // is called.
  209. //
  210. // Creating a request object using this method should be used when you want to inject
  211. // custom logic into the request's lifecycle using a custom handler, or if you want to
  212. // access properties on the request object before or after sending the request. If
  213. // you just want the service response, call the CopyDBClusterParameterGroup method directly
  214. // instead.
  215. //
  216. // Note: You must call the "Send" method on the returned request object in order
  217. // to execute the request.
  218. //
  219. // // Example sending a request using the CopyDBClusterParameterGroupRequest method.
  220. // req, resp := client.CopyDBClusterParameterGroupRequest(params)
  221. //
  222. // err := req.Send()
  223. // if err == nil { // resp is now filled
  224. // fmt.Println(resp)
  225. // }
  226. //
  227. func (c *RDS) CopyDBClusterParameterGroupRequest(input *CopyDBClusterParameterGroupInput) (req *request.Request, output *CopyDBClusterParameterGroupOutput) {
  228. op := &request.Operation{
  229. Name: opCopyDBClusterParameterGroup,
  230. HTTPMethod: "POST",
  231. HTTPPath: "/",
  232. }
  233. if input == nil {
  234. input = &CopyDBClusterParameterGroupInput{}
  235. }
  236. req = c.newRequest(op, input, output)
  237. output = &CopyDBClusterParameterGroupOutput{}
  238. req.Data = output
  239. return
  240. }
  241. // Copies the specified DB cluster parameter group.
  242. func (c *RDS) CopyDBClusterParameterGroup(input *CopyDBClusterParameterGroupInput) (*CopyDBClusterParameterGroupOutput, error) {
  243. req, out := c.CopyDBClusterParameterGroupRequest(input)
  244. err := req.Send()
  245. return out, err
  246. }
  247. const opCopyDBClusterSnapshot = "CopyDBClusterSnapshot"
  248. // CopyDBClusterSnapshotRequest generates a "aws/request.Request" representing the
  249. // client's request for the CopyDBClusterSnapshot operation. The "output" return
  250. // value can be used to capture response data after the request's "Send" method
  251. // is called.
  252. //
  253. // Creating a request object using this method should be used when you want to inject
  254. // custom logic into the request's lifecycle using a custom handler, or if you want to
  255. // access properties on the request object before or after sending the request. If
  256. // you just want the service response, call the CopyDBClusterSnapshot method directly
  257. // instead.
  258. //
  259. // Note: You must call the "Send" method on the returned request object in order
  260. // to execute the request.
  261. //
  262. // // Example sending a request using the CopyDBClusterSnapshotRequest method.
  263. // req, resp := client.CopyDBClusterSnapshotRequest(params)
  264. //
  265. // err := req.Send()
  266. // if err == nil { // resp is now filled
  267. // fmt.Println(resp)
  268. // }
  269. //
  270. func (c *RDS) CopyDBClusterSnapshotRequest(input *CopyDBClusterSnapshotInput) (req *request.Request, output *CopyDBClusterSnapshotOutput) {
  271. op := &request.Operation{
  272. Name: opCopyDBClusterSnapshot,
  273. HTTPMethod: "POST",
  274. HTTPPath: "/",
  275. }
  276. if input == nil {
  277. input = &CopyDBClusterSnapshotInput{}
  278. }
  279. req = c.newRequest(op, input, output)
  280. output = &CopyDBClusterSnapshotOutput{}
  281. req.Data = output
  282. return
  283. }
  284. // Creates a snapshot of a DB cluster. For more information on Amazon Aurora,
  285. // see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  286. // in the Amazon RDS User Guide.
  287. func (c *RDS) CopyDBClusterSnapshot(input *CopyDBClusterSnapshotInput) (*CopyDBClusterSnapshotOutput, error) {
  288. req, out := c.CopyDBClusterSnapshotRequest(input)
  289. err := req.Send()
  290. return out, err
  291. }
  292. const opCopyDBParameterGroup = "CopyDBParameterGroup"
  293. // CopyDBParameterGroupRequest generates a "aws/request.Request" representing the
  294. // client's request for the CopyDBParameterGroup operation. The "output" return
  295. // value can be used to capture response data after the request's "Send" method
  296. // is called.
  297. //
  298. // Creating a request object using this method should be used when you want to inject
  299. // custom logic into the request's lifecycle using a custom handler, or if you want to
  300. // access properties on the request object before or after sending the request. If
  301. // you just want the service response, call the CopyDBParameterGroup method directly
  302. // instead.
  303. //
  304. // Note: You must call the "Send" method on the returned request object in order
  305. // to execute the request.
  306. //
  307. // // Example sending a request using the CopyDBParameterGroupRequest method.
  308. // req, resp := client.CopyDBParameterGroupRequest(params)
  309. //
  310. // err := req.Send()
  311. // if err == nil { // resp is now filled
  312. // fmt.Println(resp)
  313. // }
  314. //
  315. func (c *RDS) CopyDBParameterGroupRequest(input *CopyDBParameterGroupInput) (req *request.Request, output *CopyDBParameterGroupOutput) {
  316. op := &request.Operation{
  317. Name: opCopyDBParameterGroup,
  318. HTTPMethod: "POST",
  319. HTTPPath: "/",
  320. }
  321. if input == nil {
  322. input = &CopyDBParameterGroupInput{}
  323. }
  324. req = c.newRequest(op, input, output)
  325. output = &CopyDBParameterGroupOutput{}
  326. req.Data = output
  327. return
  328. }
  329. // Copies the specified DB parameter group.
  330. func (c *RDS) CopyDBParameterGroup(input *CopyDBParameterGroupInput) (*CopyDBParameterGroupOutput, error) {
  331. req, out := c.CopyDBParameterGroupRequest(input)
  332. err := req.Send()
  333. return out, err
  334. }
  335. const opCopyDBSnapshot = "CopyDBSnapshot"
  336. // CopyDBSnapshotRequest generates a "aws/request.Request" representing the
  337. // client's request for the CopyDBSnapshot operation. The "output" return
  338. // value can be used to capture response data after the request's "Send" method
  339. // is called.
  340. //
  341. // Creating a request object using this method should be used when you want to inject
  342. // custom logic into the request's lifecycle using a custom handler, or if you want to
  343. // access properties on the request object before or after sending the request. If
  344. // you just want the service response, call the CopyDBSnapshot method directly
  345. // instead.
  346. //
  347. // Note: You must call the "Send" method on the returned request object in order
  348. // to execute the request.
  349. //
  350. // // Example sending a request using the CopyDBSnapshotRequest method.
  351. // req, resp := client.CopyDBSnapshotRequest(params)
  352. //
  353. // err := req.Send()
  354. // if err == nil { // resp is now filled
  355. // fmt.Println(resp)
  356. // }
  357. //
  358. func (c *RDS) CopyDBSnapshotRequest(input *CopyDBSnapshotInput) (req *request.Request, output *CopyDBSnapshotOutput) {
  359. op := &request.Operation{
  360. Name: opCopyDBSnapshot,
  361. HTTPMethod: "POST",
  362. HTTPPath: "/",
  363. }
  364. if input == nil {
  365. input = &CopyDBSnapshotInput{}
  366. }
  367. req = c.newRequest(op, input, output)
  368. output = &CopyDBSnapshotOutput{}
  369. req.Data = output
  370. return
  371. }
  372. // Copies the specified DB snapshot. The source DB snapshot must be in the "available"
  373. // state.
  374. //
  375. // If you are copying from a shared manual DB snapshot, the SourceDBSnapshotIdentifier
  376. // must be the ARN of the shared DB snapshot.
  377. func (c *RDS) CopyDBSnapshot(input *CopyDBSnapshotInput) (*CopyDBSnapshotOutput, error) {
  378. req, out := c.CopyDBSnapshotRequest(input)
  379. err := req.Send()
  380. return out, err
  381. }
  382. const opCopyOptionGroup = "CopyOptionGroup"
  383. // CopyOptionGroupRequest generates a "aws/request.Request" representing the
  384. // client's request for the CopyOptionGroup operation. The "output" return
  385. // value can be used to capture response data after the request's "Send" method
  386. // is called.
  387. //
  388. // Creating a request object using this method should be used when you want to inject
  389. // custom logic into the request's lifecycle using a custom handler, or if you want to
  390. // access properties on the request object before or after sending the request. If
  391. // you just want the service response, call the CopyOptionGroup method directly
  392. // instead.
  393. //
  394. // Note: You must call the "Send" method on the returned request object in order
  395. // to execute the request.
  396. //
  397. // // Example sending a request using the CopyOptionGroupRequest method.
  398. // req, resp := client.CopyOptionGroupRequest(params)
  399. //
  400. // err := req.Send()
  401. // if err == nil { // resp is now filled
  402. // fmt.Println(resp)
  403. // }
  404. //
  405. func (c *RDS) CopyOptionGroupRequest(input *CopyOptionGroupInput) (req *request.Request, output *CopyOptionGroupOutput) {
  406. op := &request.Operation{
  407. Name: opCopyOptionGroup,
  408. HTTPMethod: "POST",
  409. HTTPPath: "/",
  410. }
  411. if input == nil {
  412. input = &CopyOptionGroupInput{}
  413. }
  414. req = c.newRequest(op, input, output)
  415. output = &CopyOptionGroupOutput{}
  416. req.Data = output
  417. return
  418. }
  419. // Copies the specified option group.
  420. func (c *RDS) CopyOptionGroup(input *CopyOptionGroupInput) (*CopyOptionGroupOutput, error) {
  421. req, out := c.CopyOptionGroupRequest(input)
  422. err := req.Send()
  423. return out, err
  424. }
  425. const opCreateDBCluster = "CreateDBCluster"
  426. // CreateDBClusterRequest generates a "aws/request.Request" representing the
  427. // client's request for the CreateDBCluster 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 CreateDBCluster 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 CreateDBClusterRequest method.
  441. // req, resp := client.CreateDBClusterRequest(params)
  442. //
  443. // err := req.Send()
  444. // if err == nil { // resp is now filled
  445. // fmt.Println(resp)
  446. // }
  447. //
  448. func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request.Request, output *CreateDBClusterOutput) {
  449. op := &request.Operation{
  450. Name: opCreateDBCluster,
  451. HTTPMethod: "POST",
  452. HTTPPath: "/",
  453. }
  454. if input == nil {
  455. input = &CreateDBClusterInput{}
  456. }
  457. req = c.newRequest(op, input, output)
  458. output = &CreateDBClusterOutput{}
  459. req.Data = output
  460. return
  461. }
  462. // Creates a new Amazon Aurora DB cluster.
  463. //
  464. // You can use the ReplicationSourceIdentifier parameter to create the DB cluster
  465. // as a Read Replica of another DB cluster.
  466. //
  467. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  468. // in the Amazon RDS User Guide.
  469. func (c *RDS) CreateDBCluster(input *CreateDBClusterInput) (*CreateDBClusterOutput, error) {
  470. req, out := c.CreateDBClusterRequest(input)
  471. err := req.Send()
  472. return out, err
  473. }
  474. const opCreateDBClusterParameterGroup = "CreateDBClusterParameterGroup"
  475. // CreateDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  476. // client's request for the CreateDBClusterParameterGroup operation. The "output" return
  477. // value can be used to capture response data after the request's "Send" method
  478. // is called.
  479. //
  480. // Creating a request object using this method should be used when you want to inject
  481. // custom logic into the request's lifecycle using a custom handler, or if you want to
  482. // access properties on the request object before or after sending the request. If
  483. // you just want the service response, call the CreateDBClusterParameterGroup method directly
  484. // instead.
  485. //
  486. // Note: You must call the "Send" method on the returned request object in order
  487. // to execute the request.
  488. //
  489. // // Example sending a request using the CreateDBClusterParameterGroupRequest method.
  490. // req, resp := client.CreateDBClusterParameterGroupRequest(params)
  491. //
  492. // err := req.Send()
  493. // if err == nil { // resp is now filled
  494. // fmt.Println(resp)
  495. // }
  496. //
  497. func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParameterGroupInput) (req *request.Request, output *CreateDBClusterParameterGroupOutput) {
  498. op := &request.Operation{
  499. Name: opCreateDBClusterParameterGroup,
  500. HTTPMethod: "POST",
  501. HTTPPath: "/",
  502. }
  503. if input == nil {
  504. input = &CreateDBClusterParameterGroupInput{}
  505. }
  506. req = c.newRequest(op, input, output)
  507. output = &CreateDBClusterParameterGroupOutput{}
  508. req.Data = output
  509. return
  510. }
  511. // Creates a new DB cluster parameter group.
  512. //
  513. // Parameters in a DB cluster parameter group apply to all of the instances
  514. // in a DB cluster.
  515. //
  516. // A DB cluster parameter group is initially created with the default parameters
  517. // for the database engine used by instances in the DB cluster. To provide custom
  518. // values for any of the parameters, you must modify the group after creating
  519. // it using ModifyDBClusterParameterGroup. Once you've created a DB cluster
  520. // parameter group, you need to associate it with your DB cluster using ModifyDBCluster.
  521. // When you associate a new DB cluster parameter group with a running DB cluster,
  522. // you need to reboot the DB instances in the DB cluster without failover for
  523. // the new DB cluster parameter group and associated settings to take effect.
  524. //
  525. // After you create a DB cluster parameter group, you should wait at least
  526. // 5 minutes before creating your first DB cluster that uses that DB cluster
  527. // parameter group as the default parameter group. This allows Amazon RDS to
  528. // fully complete the create action before the DB cluster parameter group is
  529. // used as the default for a new DB cluster. This is especially important for
  530. // parameters that are critical when creating the default database for a DB
  531. // cluster, such as the character set for the default database defined by the
  532. // character_set_database parameter. You can use the Parameter Groups option
  533. // of the Amazon RDS console (https://console.aws.amazon.com/rds/) or the DescribeDBClusterParameters
  534. // command to verify that your DB cluster parameter group has been created or
  535. // modified.
  536. //
  537. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  538. // in the Amazon RDS User Guide.
  539. func (c *RDS) CreateDBClusterParameterGroup(input *CreateDBClusterParameterGroupInput) (*CreateDBClusterParameterGroupOutput, error) {
  540. req, out := c.CreateDBClusterParameterGroupRequest(input)
  541. err := req.Send()
  542. return out, err
  543. }
  544. const opCreateDBClusterSnapshot = "CreateDBClusterSnapshot"
  545. // CreateDBClusterSnapshotRequest generates a "aws/request.Request" representing the
  546. // client's request for the CreateDBClusterSnapshot operation. The "output" return
  547. // value can be used to capture response data after the request's "Send" method
  548. // is called.
  549. //
  550. // Creating a request object using this method should be used when you want to inject
  551. // custom logic into the request's lifecycle using a custom handler, or if you want to
  552. // access properties on the request object before or after sending the request. If
  553. // you just want the service response, call the CreateDBClusterSnapshot method directly
  554. // instead.
  555. //
  556. // Note: You must call the "Send" method on the returned request object in order
  557. // to execute the request.
  558. //
  559. // // Example sending a request using the CreateDBClusterSnapshotRequest method.
  560. // req, resp := client.CreateDBClusterSnapshotRequest(params)
  561. //
  562. // err := req.Send()
  563. // if err == nil { // resp is now filled
  564. // fmt.Println(resp)
  565. // }
  566. //
  567. func (c *RDS) CreateDBClusterSnapshotRequest(input *CreateDBClusterSnapshotInput) (req *request.Request, output *CreateDBClusterSnapshotOutput) {
  568. op := &request.Operation{
  569. Name: opCreateDBClusterSnapshot,
  570. HTTPMethod: "POST",
  571. HTTPPath: "/",
  572. }
  573. if input == nil {
  574. input = &CreateDBClusterSnapshotInput{}
  575. }
  576. req = c.newRequest(op, input, output)
  577. output = &CreateDBClusterSnapshotOutput{}
  578. req.Data = output
  579. return
  580. }
  581. // Creates a snapshot of a DB cluster. For more information on Amazon Aurora,
  582. // see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  583. // in the Amazon RDS User Guide.
  584. func (c *RDS) CreateDBClusterSnapshot(input *CreateDBClusterSnapshotInput) (*CreateDBClusterSnapshotOutput, error) {
  585. req, out := c.CreateDBClusterSnapshotRequest(input)
  586. err := req.Send()
  587. return out, err
  588. }
  589. const opCreateDBInstance = "CreateDBInstance"
  590. // CreateDBInstanceRequest generates a "aws/request.Request" representing the
  591. // client's request for the CreateDBInstance operation. The "output" return
  592. // value can be used to capture response data after the request's "Send" method
  593. // is called.
  594. //
  595. // Creating a request object using this method should be used when you want to inject
  596. // custom logic into the request's lifecycle using a custom handler, or if you want to
  597. // access properties on the request object before or after sending the request. If
  598. // you just want the service response, call the CreateDBInstance method directly
  599. // instead.
  600. //
  601. // Note: You must call the "Send" method on the returned request object in order
  602. // to execute the request.
  603. //
  604. // // Example sending a request using the CreateDBInstanceRequest method.
  605. // req, resp := client.CreateDBInstanceRequest(params)
  606. //
  607. // err := req.Send()
  608. // if err == nil { // resp is now filled
  609. // fmt.Println(resp)
  610. // }
  611. //
  612. func (c *RDS) CreateDBInstanceRequest(input *CreateDBInstanceInput) (req *request.Request, output *CreateDBInstanceOutput) {
  613. op := &request.Operation{
  614. Name: opCreateDBInstance,
  615. HTTPMethod: "POST",
  616. HTTPPath: "/",
  617. }
  618. if input == nil {
  619. input = &CreateDBInstanceInput{}
  620. }
  621. req = c.newRequest(op, input, output)
  622. output = &CreateDBInstanceOutput{}
  623. req.Data = output
  624. return
  625. }
  626. // Creates a new DB instance.
  627. func (c *RDS) CreateDBInstance(input *CreateDBInstanceInput) (*CreateDBInstanceOutput, error) {
  628. req, out := c.CreateDBInstanceRequest(input)
  629. err := req.Send()
  630. return out, err
  631. }
  632. const opCreateDBInstanceReadReplica = "CreateDBInstanceReadReplica"
  633. // CreateDBInstanceReadReplicaRequest generates a "aws/request.Request" representing the
  634. // client's request for the CreateDBInstanceReadReplica operation. The "output" return
  635. // value can be used to capture response data after the request's "Send" method
  636. // is called.
  637. //
  638. // Creating a request object using this method should be used when you want to inject
  639. // custom logic into the request's lifecycle using a custom handler, or if you want to
  640. // access properties on the request object before or after sending the request. If
  641. // you just want the service response, call the CreateDBInstanceReadReplica method directly
  642. // instead.
  643. //
  644. // Note: You must call the "Send" method on the returned request object in order
  645. // to execute the request.
  646. //
  647. // // Example sending a request using the CreateDBInstanceReadReplicaRequest method.
  648. // req, resp := client.CreateDBInstanceReadReplicaRequest(params)
  649. //
  650. // err := req.Send()
  651. // if err == nil { // resp is now filled
  652. // fmt.Println(resp)
  653. // }
  654. //
  655. func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadReplicaInput) (req *request.Request, output *CreateDBInstanceReadReplicaOutput) {
  656. op := &request.Operation{
  657. Name: opCreateDBInstanceReadReplica,
  658. HTTPMethod: "POST",
  659. HTTPPath: "/",
  660. }
  661. if input == nil {
  662. input = &CreateDBInstanceReadReplicaInput{}
  663. }
  664. req = c.newRequest(op, input, output)
  665. output = &CreateDBInstanceReadReplicaOutput{}
  666. req.Data = output
  667. return
  668. }
  669. // Creates a DB instance for a DB instance running MySQL, MariaDB, or PostgreSQL
  670. // that acts as a Read Replica of a source DB instance.
  671. //
  672. // All Read Replica DB instances are created as Single-AZ deployments with
  673. // backups disabled. All other DB instance attributes (including DB security
  674. // groups and DB parameter groups) are inherited from the source DB instance,
  675. // except as specified below.
  676. //
  677. // The source DB instance must have backup retention enabled.
  678. func (c *RDS) CreateDBInstanceReadReplica(input *CreateDBInstanceReadReplicaInput) (*CreateDBInstanceReadReplicaOutput, error) {
  679. req, out := c.CreateDBInstanceReadReplicaRequest(input)
  680. err := req.Send()
  681. return out, err
  682. }
  683. const opCreateDBParameterGroup = "CreateDBParameterGroup"
  684. // CreateDBParameterGroupRequest generates a "aws/request.Request" representing the
  685. // client's request for the CreateDBParameterGroup operation. The "output" return
  686. // value can be used to capture response data after the request's "Send" method
  687. // is called.
  688. //
  689. // Creating a request object using this method should be used when you want to inject
  690. // custom logic into the request's lifecycle using a custom handler, or if you want to
  691. // access properties on the request object before or after sending the request. If
  692. // you just want the service response, call the CreateDBParameterGroup method directly
  693. // instead.
  694. //
  695. // Note: You must call the "Send" method on the returned request object in order
  696. // to execute the request.
  697. //
  698. // // Example sending a request using the CreateDBParameterGroupRequest method.
  699. // req, resp := client.CreateDBParameterGroupRequest(params)
  700. //
  701. // err := req.Send()
  702. // if err == nil { // resp is now filled
  703. // fmt.Println(resp)
  704. // }
  705. //
  706. func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) (req *request.Request, output *CreateDBParameterGroupOutput) {
  707. op := &request.Operation{
  708. Name: opCreateDBParameterGroup,
  709. HTTPMethod: "POST",
  710. HTTPPath: "/",
  711. }
  712. if input == nil {
  713. input = &CreateDBParameterGroupInput{}
  714. }
  715. req = c.newRequest(op, input, output)
  716. output = &CreateDBParameterGroupOutput{}
  717. req.Data = output
  718. return
  719. }
  720. // Creates a new DB parameter group.
  721. //
  722. // A DB parameter group is initially created with the default parameters for
  723. // the database engine used by the DB instance. To provide custom values for
  724. // any of the parameters, you must modify the group after creating it using
  725. // ModifyDBParameterGroup. Once you've created a DB parameter group, you need
  726. // to associate it with your DB instance using ModifyDBInstance. When you associate
  727. // a new DB parameter group with a running DB instance, you need to reboot the
  728. // DB instance without failover for the new DB parameter group and associated
  729. // settings to take effect.
  730. //
  731. // After you create a DB parameter group, you should wait at least 5 minutes
  732. // before creating your first DB instance that uses that DB parameter group
  733. // as the default parameter group. This allows Amazon RDS to fully complete
  734. // the create action before the parameter group is used as the default for a
  735. // new DB instance. This is especially important for parameters that are critical
  736. // when creating the default database for a DB instance, such as the character
  737. // set for the default database defined by the character_set_database parameter.
  738. // You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/)
  739. // or the DescribeDBParameters command to verify that your DB parameter group
  740. // has been created or modified.
  741. func (c *RDS) CreateDBParameterGroup(input *CreateDBParameterGroupInput) (*CreateDBParameterGroupOutput, error) {
  742. req, out := c.CreateDBParameterGroupRequest(input)
  743. err := req.Send()
  744. return out, err
  745. }
  746. const opCreateDBSecurityGroup = "CreateDBSecurityGroup"
  747. // CreateDBSecurityGroupRequest generates a "aws/request.Request" representing the
  748. // client's request for the CreateDBSecurityGroup operation. The "output" return
  749. // value can be used to capture response data after the request's "Send" method
  750. // is called.
  751. //
  752. // Creating a request object using this method should be used when you want to inject
  753. // custom logic into the request's lifecycle using a custom handler, or if you want to
  754. // access properties on the request object before or after sending the request. If
  755. // you just want the service response, call the CreateDBSecurityGroup method directly
  756. // instead.
  757. //
  758. // Note: You must call the "Send" method on the returned request object in order
  759. // to execute the request.
  760. //
  761. // // Example sending a request using the CreateDBSecurityGroupRequest method.
  762. // req, resp := client.CreateDBSecurityGroupRequest(params)
  763. //
  764. // err := req.Send()
  765. // if err == nil { // resp is now filled
  766. // fmt.Println(resp)
  767. // }
  768. //
  769. func (c *RDS) CreateDBSecurityGroupRequest(input *CreateDBSecurityGroupInput) (req *request.Request, output *CreateDBSecurityGroupOutput) {
  770. op := &request.Operation{
  771. Name: opCreateDBSecurityGroup,
  772. HTTPMethod: "POST",
  773. HTTPPath: "/",
  774. }
  775. if input == nil {
  776. input = &CreateDBSecurityGroupInput{}
  777. }
  778. req = c.newRequest(op, input, output)
  779. output = &CreateDBSecurityGroupOutput{}
  780. req.Data = output
  781. return
  782. }
  783. // Creates a new DB security group. DB security groups control access to a DB
  784. // instance.
  785. func (c *RDS) CreateDBSecurityGroup(input *CreateDBSecurityGroupInput) (*CreateDBSecurityGroupOutput, error) {
  786. req, out := c.CreateDBSecurityGroupRequest(input)
  787. err := req.Send()
  788. return out, err
  789. }
  790. const opCreateDBSnapshot = "CreateDBSnapshot"
  791. // CreateDBSnapshotRequest generates a "aws/request.Request" representing the
  792. // client's request for the CreateDBSnapshot operation. The "output" return
  793. // value can be used to capture response data after the request's "Send" method
  794. // is called.
  795. //
  796. // Creating a request object using this method should be used when you want to inject
  797. // custom logic into the request's lifecycle using a custom handler, or if you want to
  798. // access properties on the request object before or after sending the request. If
  799. // you just want the service response, call the CreateDBSnapshot method directly
  800. // instead.
  801. //
  802. // Note: You must call the "Send" method on the returned request object in order
  803. // to execute the request.
  804. //
  805. // // Example sending a request using the CreateDBSnapshotRequest method.
  806. // req, resp := client.CreateDBSnapshotRequest(params)
  807. //
  808. // err := req.Send()
  809. // if err == nil { // resp is now filled
  810. // fmt.Println(resp)
  811. // }
  812. //
  813. func (c *RDS) CreateDBSnapshotRequest(input *CreateDBSnapshotInput) (req *request.Request, output *CreateDBSnapshotOutput) {
  814. op := &request.Operation{
  815. Name: opCreateDBSnapshot,
  816. HTTPMethod: "POST",
  817. HTTPPath: "/",
  818. }
  819. if input == nil {
  820. input = &CreateDBSnapshotInput{}
  821. }
  822. req = c.newRequest(op, input, output)
  823. output = &CreateDBSnapshotOutput{}
  824. req.Data = output
  825. return
  826. }
  827. // Creates a DBSnapshot. The source DBInstance must be in "available" state.
  828. func (c *RDS) CreateDBSnapshot(input *CreateDBSnapshotInput) (*CreateDBSnapshotOutput, error) {
  829. req, out := c.CreateDBSnapshotRequest(input)
  830. err := req.Send()
  831. return out, err
  832. }
  833. const opCreateDBSubnetGroup = "CreateDBSubnetGroup"
  834. // CreateDBSubnetGroupRequest generates a "aws/request.Request" representing the
  835. // client's request for the CreateDBSubnetGroup operation. The "output" return
  836. // value can be used to capture response data after the request's "Send" method
  837. // is called.
  838. //
  839. // Creating a request object using this method should be used when you want to inject
  840. // custom logic into the request's lifecycle using a custom handler, or if you want to
  841. // access properties on the request object before or after sending the request. If
  842. // you just want the service response, call the CreateDBSubnetGroup method directly
  843. // instead.
  844. //
  845. // Note: You must call the "Send" method on the returned request object in order
  846. // to execute the request.
  847. //
  848. // // Example sending a request using the CreateDBSubnetGroupRequest method.
  849. // req, resp := client.CreateDBSubnetGroupRequest(params)
  850. //
  851. // err := req.Send()
  852. // if err == nil { // resp is now filled
  853. // fmt.Println(resp)
  854. // }
  855. //
  856. func (c *RDS) CreateDBSubnetGroupRequest(input *CreateDBSubnetGroupInput) (req *request.Request, output *CreateDBSubnetGroupOutput) {
  857. op := &request.Operation{
  858. Name: opCreateDBSubnetGroup,
  859. HTTPMethod: "POST",
  860. HTTPPath: "/",
  861. }
  862. if input == nil {
  863. input = &CreateDBSubnetGroupInput{}
  864. }
  865. req = c.newRequest(op, input, output)
  866. output = &CreateDBSubnetGroupOutput{}
  867. req.Data = output
  868. return
  869. }
  870. // Creates a new DB subnet group. DB subnet groups must contain at least one
  871. // subnet in at least two AZs in the region.
  872. func (c *RDS) CreateDBSubnetGroup(input *CreateDBSubnetGroupInput) (*CreateDBSubnetGroupOutput, error) {
  873. req, out := c.CreateDBSubnetGroupRequest(input)
  874. err := req.Send()
  875. return out, err
  876. }
  877. const opCreateEventSubscription = "CreateEventSubscription"
  878. // CreateEventSubscriptionRequest generates a "aws/request.Request" representing the
  879. // client's request for the CreateEventSubscription operation. The "output" return
  880. // value can be used to capture response data after the request's "Send" method
  881. // is called.
  882. //
  883. // Creating a request object using this method should be used when you want to inject
  884. // custom logic into the request's lifecycle using a custom handler, or if you want to
  885. // access properties on the request object before or after sending the request. If
  886. // you just want the service response, call the CreateEventSubscription method directly
  887. // instead.
  888. //
  889. // Note: You must call the "Send" method on the returned request object in order
  890. // to execute the request.
  891. //
  892. // // Example sending a request using the CreateEventSubscriptionRequest method.
  893. // req, resp := client.CreateEventSubscriptionRequest(params)
  894. //
  895. // err := req.Send()
  896. // if err == nil { // resp is now filled
  897. // fmt.Println(resp)
  898. // }
  899. //
  900. func (c *RDS) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput) (req *request.Request, output *CreateEventSubscriptionOutput) {
  901. op := &request.Operation{
  902. Name: opCreateEventSubscription,
  903. HTTPMethod: "POST",
  904. HTTPPath: "/",
  905. }
  906. if input == nil {
  907. input = &CreateEventSubscriptionInput{}
  908. }
  909. req = c.newRequest(op, input, output)
  910. output = &CreateEventSubscriptionOutput{}
  911. req.Data = output
  912. return
  913. }
  914. // Creates an RDS event notification subscription. This action requires a topic
  915. // ARN (Amazon Resource Name) created by either the RDS console, the SNS console,
  916. // or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon
  917. // SNS and subscribe to the topic. The ARN is displayed in the SNS console.
  918. //
  919. // You can specify the type of source (SourceType) you want to be notified
  920. // of, provide a list of RDS sources (SourceIds) that triggers the events, and
  921. // provide a list of event categories (EventCategories) for events you want
  922. // to be notified of. For example, you can specify SourceType = db-instance,
  923. // SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability,
  924. // Backup.
  925. //
  926. // If you specify both the SourceType and SourceIds, such as SourceType = db-instance
  927. // and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance
  928. // events for the specified source. If you specify a SourceType but do not specify
  929. // a SourceIdentifier, you will receive notice of the events for that source
  930. // type for all your RDS sources. If you do not specify either the SourceType
  931. // nor the SourceIdentifier, you will be notified of events generated from all
  932. // RDS sources belonging to your customer account.
  933. func (c *RDS) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error) {
  934. req, out := c.CreateEventSubscriptionRequest(input)
  935. err := req.Send()
  936. return out, err
  937. }
  938. const opCreateOptionGroup = "CreateOptionGroup"
  939. // CreateOptionGroupRequest generates a "aws/request.Request" representing the
  940. // client's request for the CreateOptionGroup operation. The "output" return
  941. // value can be used to capture response data after the request's "Send" method
  942. // is called.
  943. //
  944. // Creating a request object using this method should be used when you want to inject
  945. // custom logic into the request's lifecycle using a custom handler, or if you want to
  946. // access properties on the request object before or after sending the request. If
  947. // you just want the service response, call the CreateOptionGroup method directly
  948. // instead.
  949. //
  950. // Note: You must call the "Send" method on the returned request object in order
  951. // to execute the request.
  952. //
  953. // // Example sending a request using the CreateOptionGroupRequest method.
  954. // req, resp := client.CreateOptionGroupRequest(params)
  955. //
  956. // err := req.Send()
  957. // if err == nil { // resp is now filled
  958. // fmt.Println(resp)
  959. // }
  960. //
  961. func (c *RDS) CreateOptionGroupRequest(input *CreateOptionGroupInput) (req *request.Request, output *CreateOptionGroupOutput) {
  962. op := &request.Operation{
  963. Name: opCreateOptionGroup,
  964. HTTPMethod: "POST",
  965. HTTPPath: "/",
  966. }
  967. if input == nil {
  968. input = &CreateOptionGroupInput{}
  969. }
  970. req = c.newRequest(op, input, output)
  971. output = &CreateOptionGroupOutput{}
  972. req.Data = output
  973. return
  974. }
  975. // Creates a new option group. You can create up to 20 option groups.
  976. func (c *RDS) CreateOptionGroup(input *CreateOptionGroupInput) (*CreateOptionGroupOutput, error) {
  977. req, out := c.CreateOptionGroupRequest(input)
  978. err := req.Send()
  979. return out, err
  980. }
  981. const opDeleteDBCluster = "DeleteDBCluster"
  982. // DeleteDBClusterRequest generates a "aws/request.Request" representing the
  983. // client's request for the DeleteDBCluster operation. The "output" return
  984. // value can be used to capture response data after the request's "Send" method
  985. // is called.
  986. //
  987. // Creating a request object using this method should be used when you want to inject
  988. // custom logic into the request's lifecycle using a custom handler, or if you want to
  989. // access properties on the request object before or after sending the request. If
  990. // you just want the service response, call the DeleteDBCluster method directly
  991. // instead.
  992. //
  993. // Note: You must call the "Send" method on the returned request object in order
  994. // to execute the request.
  995. //
  996. // // Example sending a request using the DeleteDBClusterRequest method.
  997. // req, resp := client.DeleteDBClusterRequest(params)
  998. //
  999. // err := req.Send()
  1000. // if err == nil { // resp is now filled
  1001. // fmt.Println(resp)
  1002. // }
  1003. //
  1004. func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request.Request, output *DeleteDBClusterOutput) {
  1005. op := &request.Operation{
  1006. Name: opDeleteDBCluster,
  1007. HTTPMethod: "POST",
  1008. HTTPPath: "/",
  1009. }
  1010. if input == nil {
  1011. input = &DeleteDBClusterInput{}
  1012. }
  1013. req = c.newRequest(op, input, output)
  1014. output = &DeleteDBClusterOutput{}
  1015. req.Data = output
  1016. return
  1017. }
  1018. // The DeleteDBCluster action deletes a previously provisioned DB cluster. When
  1019. // you delete a DB cluster, all automated backups for that DB cluster are deleted
  1020. // and cannot be recovered. Manual DB cluster snapshots of the specified DB
  1021. // cluster are not deleted.
  1022. //
  1023. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  1024. // in the Amazon RDS User Guide.
  1025. func (c *RDS) DeleteDBCluster(input *DeleteDBClusterInput) (*DeleteDBClusterOutput, error) {
  1026. req, out := c.DeleteDBClusterRequest(input)
  1027. err := req.Send()
  1028. return out, err
  1029. }
  1030. const opDeleteDBClusterParameterGroup = "DeleteDBClusterParameterGroup"
  1031. // DeleteDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  1032. // client's request for the DeleteDBClusterParameterGroup operation. The "output" return
  1033. // value can be used to capture response data after the request's "Send" method
  1034. // is called.
  1035. //
  1036. // Creating a request object using this method should be used when you want to inject
  1037. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1038. // access properties on the request object before or after sending the request. If
  1039. // you just want the service response, call the DeleteDBClusterParameterGroup method directly
  1040. // instead.
  1041. //
  1042. // Note: You must call the "Send" method on the returned request object in order
  1043. // to execute the request.
  1044. //
  1045. // // Example sending a request using the DeleteDBClusterParameterGroupRequest method.
  1046. // req, resp := client.DeleteDBClusterParameterGroupRequest(params)
  1047. //
  1048. // err := req.Send()
  1049. // if err == nil { // resp is now filled
  1050. // fmt.Println(resp)
  1051. // }
  1052. //
  1053. func (c *RDS) DeleteDBClusterParameterGroupRequest(input *DeleteDBClusterParameterGroupInput) (req *request.Request, output *DeleteDBClusterParameterGroupOutput) {
  1054. op := &request.Operation{
  1055. Name: opDeleteDBClusterParameterGroup,
  1056. HTTPMethod: "POST",
  1057. HTTPPath: "/",
  1058. }
  1059. if input == nil {
  1060. input = &DeleteDBClusterParameterGroupInput{}
  1061. }
  1062. req = c.newRequest(op, input, output)
  1063. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1064. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1065. output = &DeleteDBClusterParameterGroupOutput{}
  1066. req.Data = output
  1067. return
  1068. }
  1069. // Deletes a specified DB cluster parameter group. The DB cluster parameter
  1070. // group to be deleted cannot be associated with any DB clusters.
  1071. //
  1072. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  1073. // in the Amazon RDS User Guide.
  1074. func (c *RDS) DeleteDBClusterParameterGroup(input *DeleteDBClusterParameterGroupInput) (*DeleteDBClusterParameterGroupOutput, error) {
  1075. req, out := c.DeleteDBClusterParameterGroupRequest(input)
  1076. err := req.Send()
  1077. return out, err
  1078. }
  1079. const opDeleteDBClusterSnapshot = "DeleteDBClusterSnapshot"
  1080. // DeleteDBClusterSnapshotRequest generates a "aws/request.Request" representing the
  1081. // client's request for the DeleteDBClusterSnapshot operation. The "output" return
  1082. // value can be used to capture response data after the request's "Send" method
  1083. // is called.
  1084. //
  1085. // Creating a request object using this method should be used when you want to inject
  1086. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1087. // access properties on the request object before or after sending the request. If
  1088. // you just want the service response, call the DeleteDBClusterSnapshot method directly
  1089. // instead.
  1090. //
  1091. // Note: You must call the "Send" method on the returned request object in order
  1092. // to execute the request.
  1093. //
  1094. // // Example sending a request using the DeleteDBClusterSnapshotRequest method.
  1095. // req, resp := client.DeleteDBClusterSnapshotRequest(params)
  1096. //
  1097. // err := req.Send()
  1098. // if err == nil { // resp is now filled
  1099. // fmt.Println(resp)
  1100. // }
  1101. //
  1102. func (c *RDS) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput) (req *request.Request, output *DeleteDBClusterSnapshotOutput) {
  1103. op := &request.Operation{
  1104. Name: opDeleteDBClusterSnapshot,
  1105. HTTPMethod: "POST",
  1106. HTTPPath: "/",
  1107. }
  1108. if input == nil {
  1109. input = &DeleteDBClusterSnapshotInput{}
  1110. }
  1111. req = c.newRequest(op, input, output)
  1112. output = &DeleteDBClusterSnapshotOutput{}
  1113. req.Data = output
  1114. return
  1115. }
  1116. // Deletes a DB cluster snapshot. If the snapshot is being copied, the copy
  1117. // operation is terminated.
  1118. //
  1119. // The DB cluster snapshot must be in the available state to be deleted.
  1120. //
  1121. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  1122. // in the Amazon RDS User Guide.
  1123. func (c *RDS) DeleteDBClusterSnapshot(input *DeleteDBClusterSnapshotInput) (*DeleteDBClusterSnapshotOutput, error) {
  1124. req, out := c.DeleteDBClusterSnapshotRequest(input)
  1125. err := req.Send()
  1126. return out, err
  1127. }
  1128. const opDeleteDBInstance = "DeleteDBInstance"
  1129. // DeleteDBInstanceRequest generates a "aws/request.Request" representing the
  1130. // client's request for the DeleteDBInstance operation. The "output" return
  1131. // value can be used to capture response data after the request's "Send" method
  1132. // is called.
  1133. //
  1134. // Creating a request object using this method should be used when you want to inject
  1135. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1136. // access properties on the request object before or after sending the request. If
  1137. // you just want the service response, call the DeleteDBInstance method directly
  1138. // instead.
  1139. //
  1140. // Note: You must call the "Send" method on the returned request object in order
  1141. // to execute the request.
  1142. //
  1143. // // Example sending a request using the DeleteDBInstanceRequest method.
  1144. // req, resp := client.DeleteDBInstanceRequest(params)
  1145. //
  1146. // err := req.Send()
  1147. // if err == nil { // resp is now filled
  1148. // fmt.Println(resp)
  1149. // }
  1150. //
  1151. func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *request.Request, output *DeleteDBInstanceOutput) {
  1152. op := &request.Operation{
  1153. Name: opDeleteDBInstance,
  1154. HTTPMethod: "POST",
  1155. HTTPPath: "/",
  1156. }
  1157. if input == nil {
  1158. input = &DeleteDBInstanceInput{}
  1159. }
  1160. req = c.newRequest(op, input, output)
  1161. output = &DeleteDBInstanceOutput{}
  1162. req.Data = output
  1163. return
  1164. }
  1165. // The DeleteDBInstance action deletes a previously provisioned DB instance.
  1166. // When you delete a DB instance, all automated backups for that instance are
  1167. // deleted and cannot be recovered. Manual DB snapshots of the DB instance to
  1168. // be deleted by DeleteDBInstance are not deleted.
  1169. //
  1170. // If you request a final DB snapshot the status of the Amazon RDS DB instance
  1171. // is deleting until the DB snapshot is created. The API action DescribeDBInstance
  1172. // is used to monitor the status of this operation. The action cannot be canceled
  1173. // or reverted once submitted.
  1174. //
  1175. // Note that when a DB instance is in a failure state and has a status of failed,
  1176. // incompatible-restore, or incompatible-network, you can only delete it when
  1177. // the SkipFinalSnapshot parameter is set to true.
  1178. //
  1179. // If the specified DB instance is part of an Amazon Aurora DB cluster, you
  1180. // cannot delete the DB instance if the following are true:
  1181. //
  1182. // The DB cluster is a Read Replica of another Amazon Aurora DB cluster.
  1183. //
  1184. // The DB instance is the only instance in the DB cluster.
  1185. //
  1186. // To delete a DB instance in this case, first call the PromoteReadReplicaDBCluster
  1187. // API action to promote the DB cluster so it's no longer a Read Replica. After
  1188. // the promotion completes, then call the DeleteDBInstance API action to delete
  1189. // the final instance in the DB cluster.
  1190. func (c *RDS) DeleteDBInstance(input *DeleteDBInstanceInput) (*DeleteDBInstanceOutput, error) {
  1191. req, out := c.DeleteDBInstanceRequest(input)
  1192. err := req.Send()
  1193. return out, err
  1194. }
  1195. const opDeleteDBParameterGroup = "DeleteDBParameterGroup"
  1196. // DeleteDBParameterGroupRequest generates a "aws/request.Request" representing the
  1197. // client's request for the DeleteDBParameterGroup operation. The "output" return
  1198. // value can be used to capture response data after the request's "Send" method
  1199. // is called.
  1200. //
  1201. // Creating a request object using this method should be used when you want to inject
  1202. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1203. // access properties on the request object before or after sending the request. If
  1204. // you just want the service response, call the DeleteDBParameterGroup method directly
  1205. // instead.
  1206. //
  1207. // Note: You must call the "Send" method on the returned request object in order
  1208. // to execute the request.
  1209. //
  1210. // // Example sending a request using the DeleteDBParameterGroupRequest method.
  1211. // req, resp := client.DeleteDBParameterGroupRequest(params)
  1212. //
  1213. // err := req.Send()
  1214. // if err == nil { // resp is now filled
  1215. // fmt.Println(resp)
  1216. // }
  1217. //
  1218. func (c *RDS) DeleteDBParameterGroupRequest(input *DeleteDBParameterGroupInput) (req *request.Request, output *DeleteDBParameterGroupOutput) {
  1219. op := &request.Operation{
  1220. Name: opDeleteDBParameterGroup,
  1221. HTTPMethod: "POST",
  1222. HTTPPath: "/",
  1223. }
  1224. if input == nil {
  1225. input = &DeleteDBParameterGroupInput{}
  1226. }
  1227. req = c.newRequest(op, input, output)
  1228. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1229. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1230. output = &DeleteDBParameterGroupOutput{}
  1231. req.Data = output
  1232. return
  1233. }
  1234. // Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted
  1235. // cannot be associated with any DB instances.
  1236. func (c *RDS) DeleteDBParameterGroup(input *DeleteDBParameterGroupInput) (*DeleteDBParameterGroupOutput, error) {
  1237. req, out := c.DeleteDBParameterGroupRequest(input)
  1238. err := req.Send()
  1239. return out, err
  1240. }
  1241. const opDeleteDBSecurityGroup = "DeleteDBSecurityGroup"
  1242. // DeleteDBSecurityGroupRequest generates a "aws/request.Request" representing the
  1243. // client's request for the DeleteDBSecurityGroup operation. The "output" return
  1244. // value can be used to capture response data after the request's "Send" method
  1245. // is called.
  1246. //
  1247. // Creating a request object using this method should be used when you want to inject
  1248. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1249. // access properties on the request object before or after sending the request. If
  1250. // you just want the service response, call the DeleteDBSecurityGroup method directly
  1251. // instead.
  1252. //
  1253. // Note: You must call the "Send" method on the returned request object in order
  1254. // to execute the request.
  1255. //
  1256. // // Example sending a request using the DeleteDBSecurityGroupRequest method.
  1257. // req, resp := client.DeleteDBSecurityGroupRequest(params)
  1258. //
  1259. // err := req.Send()
  1260. // if err == nil { // resp is now filled
  1261. // fmt.Println(resp)
  1262. // }
  1263. //
  1264. func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (req *request.Request, output *DeleteDBSecurityGroupOutput) {
  1265. op := &request.Operation{
  1266. Name: opDeleteDBSecurityGroup,
  1267. HTTPMethod: "POST",
  1268. HTTPPath: "/",
  1269. }
  1270. if input == nil {
  1271. input = &DeleteDBSecurityGroupInput{}
  1272. }
  1273. req = c.newRequest(op, input, output)
  1274. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1275. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1276. output = &DeleteDBSecurityGroupOutput{}
  1277. req.Data = output
  1278. return
  1279. }
  1280. // Deletes a DB security group.
  1281. //
  1282. // The specified DB security group must not be associated with any DB instances.
  1283. func (c *RDS) DeleteDBSecurityGroup(input *DeleteDBSecurityGroupInput) (*DeleteDBSecurityGroupOutput, error) {
  1284. req, out := c.DeleteDBSecurityGroupRequest(input)
  1285. err := req.Send()
  1286. return out, err
  1287. }
  1288. const opDeleteDBSnapshot = "DeleteDBSnapshot"
  1289. // DeleteDBSnapshotRequest generates a "aws/request.Request" representing the
  1290. // client's request for the DeleteDBSnapshot operation. The "output" return
  1291. // value can be used to capture response data after the request's "Send" method
  1292. // is called.
  1293. //
  1294. // Creating a request object using this method should be used when you want to inject
  1295. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1296. // access properties on the request object before or after sending the request. If
  1297. // you just want the service response, call the DeleteDBSnapshot method directly
  1298. // instead.
  1299. //
  1300. // Note: You must call the "Send" method on the returned request object in order
  1301. // to execute the request.
  1302. //
  1303. // // Example sending a request using the DeleteDBSnapshotRequest method.
  1304. // req, resp := client.DeleteDBSnapshotRequest(params)
  1305. //
  1306. // err := req.Send()
  1307. // if err == nil { // resp is now filled
  1308. // fmt.Println(resp)
  1309. // }
  1310. //
  1311. func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *request.Request, output *DeleteDBSnapshotOutput) {
  1312. op := &request.Operation{
  1313. Name: opDeleteDBSnapshot,
  1314. HTTPMethod: "POST",
  1315. HTTPPath: "/",
  1316. }
  1317. if input == nil {
  1318. input = &DeleteDBSnapshotInput{}
  1319. }
  1320. req = c.newRequest(op, input, output)
  1321. output = &DeleteDBSnapshotOutput{}
  1322. req.Data = output
  1323. return
  1324. }
  1325. // Deletes a DBSnapshot. If the snapshot is being copied, the copy operation
  1326. // is terminated.
  1327. //
  1328. // The DBSnapshot must be in the available state to be deleted.
  1329. func (c *RDS) DeleteDBSnapshot(input *DeleteDBSnapshotInput) (*DeleteDBSnapshotOutput, error) {
  1330. req, out := c.DeleteDBSnapshotRequest(input)
  1331. err := req.Send()
  1332. return out, err
  1333. }
  1334. const opDeleteDBSubnetGroup = "DeleteDBSubnetGroup"
  1335. // DeleteDBSubnetGroupRequest generates a "aws/request.Request" representing the
  1336. // client's request for the DeleteDBSubnetGroup operation. The "output" return
  1337. // value can be used to capture response data after the request's "Send" method
  1338. // is called.
  1339. //
  1340. // Creating a request object using this method should be used when you want to inject
  1341. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1342. // access properties on the request object before or after sending the request. If
  1343. // you just want the service response, call the DeleteDBSubnetGroup method directly
  1344. // instead.
  1345. //
  1346. // Note: You must call the "Send" method on the returned request object in order
  1347. // to execute the request.
  1348. //
  1349. // // Example sending a request using the DeleteDBSubnetGroupRequest method.
  1350. // req, resp := client.DeleteDBSubnetGroupRequest(params)
  1351. //
  1352. // err := req.Send()
  1353. // if err == nil { // resp is now filled
  1354. // fmt.Println(resp)
  1355. // }
  1356. //
  1357. func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req *request.Request, output *DeleteDBSubnetGroupOutput) {
  1358. op := &request.Operation{
  1359. Name: opDeleteDBSubnetGroup,
  1360. HTTPMethod: "POST",
  1361. HTTPPath: "/",
  1362. }
  1363. if input == nil {
  1364. input = &DeleteDBSubnetGroupInput{}
  1365. }
  1366. req = c.newRequest(op, input, output)
  1367. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1368. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1369. output = &DeleteDBSubnetGroupOutput{}
  1370. req.Data = output
  1371. return
  1372. }
  1373. // Deletes a DB subnet group.
  1374. //
  1375. // The specified database subnet group must not be associated with any DB
  1376. // instances.
  1377. func (c *RDS) DeleteDBSubnetGroup(input *DeleteDBSubnetGroupInput) (*DeleteDBSubnetGroupOutput, error) {
  1378. req, out := c.DeleteDBSubnetGroupRequest(input)
  1379. err := req.Send()
  1380. return out, err
  1381. }
  1382. const opDeleteEventSubscription = "DeleteEventSubscription"
  1383. // DeleteEventSubscriptionRequest generates a "aws/request.Request" representing the
  1384. // client's request for the DeleteEventSubscription operation. The "output" return
  1385. // value can be used to capture response data after the request's "Send" method
  1386. // is called.
  1387. //
  1388. // Creating a request object using this method should be used when you want to inject
  1389. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1390. // access properties on the request object before or after sending the request. If
  1391. // you just want the service response, call the DeleteEventSubscription method directly
  1392. // instead.
  1393. //
  1394. // Note: You must call the "Send" method on the returned request object in order
  1395. // to execute the request.
  1396. //
  1397. // // Example sending a request using the DeleteEventSubscriptionRequest method.
  1398. // req, resp := client.DeleteEventSubscriptionRequest(params)
  1399. //
  1400. // err := req.Send()
  1401. // if err == nil { // resp is now filled
  1402. // fmt.Println(resp)
  1403. // }
  1404. //
  1405. func (c *RDS) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput) (req *request.Request, output *DeleteEventSubscriptionOutput) {
  1406. op := &request.Operation{
  1407. Name: opDeleteEventSubscription,
  1408. HTTPMethod: "POST",
  1409. HTTPPath: "/",
  1410. }
  1411. if input == nil {
  1412. input = &DeleteEventSubscriptionInput{}
  1413. }
  1414. req = c.newRequest(op, input, output)
  1415. output = &DeleteEventSubscriptionOutput{}
  1416. req.Data = output
  1417. return
  1418. }
  1419. // Deletes an RDS event notification subscription.
  1420. func (c *RDS) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error) {
  1421. req, out := c.DeleteEventSubscriptionRequest(input)
  1422. err := req.Send()
  1423. return out, err
  1424. }
  1425. const opDeleteOptionGroup = "DeleteOptionGroup"
  1426. // DeleteOptionGroupRequest generates a "aws/request.Request" representing the
  1427. // client's request for the DeleteOptionGroup operation. The "output" return
  1428. // value can be used to capture response data after the request's "Send" method
  1429. // is called.
  1430. //
  1431. // Creating a request object using this method should be used when you want to inject
  1432. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1433. // access properties on the request object before or after sending the request. If
  1434. // you just want the service response, call the DeleteOptionGroup method directly
  1435. // instead.
  1436. //
  1437. // Note: You must call the "Send" method on the returned request object in order
  1438. // to execute the request.
  1439. //
  1440. // // Example sending a request using the DeleteOptionGroupRequest method.
  1441. // req, resp := client.DeleteOptionGroupRequest(params)
  1442. //
  1443. // err := req.Send()
  1444. // if err == nil { // resp is now filled
  1445. // fmt.Println(resp)
  1446. // }
  1447. //
  1448. func (c *RDS) DeleteOptionGroupRequest(input *DeleteOptionGroupInput) (req *request.Request, output *DeleteOptionGroupOutput) {
  1449. op := &request.Operation{
  1450. Name: opDeleteOptionGroup,
  1451. HTTPMethod: "POST",
  1452. HTTPPath: "/",
  1453. }
  1454. if input == nil {
  1455. input = &DeleteOptionGroupInput{}
  1456. }
  1457. req = c.newRequest(op, input, output)
  1458. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1459. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1460. output = &DeleteOptionGroupOutput{}
  1461. req.Data = output
  1462. return
  1463. }
  1464. // Deletes an existing option group.
  1465. func (c *RDS) DeleteOptionGroup(input *DeleteOptionGroupInput) (*DeleteOptionGroupOutput, error) {
  1466. req, out := c.DeleteOptionGroupRequest(input)
  1467. err := req.Send()
  1468. return out, err
  1469. }
  1470. const opDescribeAccountAttributes = "DescribeAccountAttributes"
  1471. // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
  1472. // client's request for the DescribeAccountAttributes operation. The "output" return
  1473. // value can be used to capture response data after the request's "Send" method
  1474. // is called.
  1475. //
  1476. // Creating a request object using this method should be used when you want to inject
  1477. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1478. // access properties on the request object before or after sending the request. If
  1479. // you just want the service response, call the DescribeAccountAttributes method directly
  1480. // instead.
  1481. //
  1482. // Note: You must call the "Send" method on the returned request object in order
  1483. // to execute the request.
  1484. //
  1485. // // Example sending a request using the DescribeAccountAttributesRequest method.
  1486. // req, resp := client.DescribeAccountAttributesRequest(params)
  1487. //
  1488. // err := req.Send()
  1489. // if err == nil { // resp is now filled
  1490. // fmt.Println(resp)
  1491. // }
  1492. //
  1493. func (c *RDS) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) {
  1494. op := &request.Operation{
  1495. Name: opDescribeAccountAttributes,
  1496. HTTPMethod: "POST",
  1497. HTTPPath: "/",
  1498. }
  1499. if input == nil {
  1500. input = &DescribeAccountAttributesInput{}
  1501. }
  1502. req = c.newRequest(op, input, output)
  1503. output = &DescribeAccountAttributesOutput{}
  1504. req.Data = output
  1505. return
  1506. }
  1507. // Lists all of the attributes for a customer account. The attributes include
  1508. // Amazon RDS quotas for the account, such as the number of DB instances allowed.
  1509. // The description for a quota includes the quota name, current usage toward
  1510. // that quota, and the quota's maximum value.
  1511. //
  1512. // This command does not take any parameters.
  1513. func (c *RDS) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) {
  1514. req, out := c.DescribeAccountAttributesRequest(input)
  1515. err := req.Send()
  1516. return out, err
  1517. }
  1518. const opDescribeCertificates = "DescribeCertificates"
  1519. // DescribeCertificatesRequest generates a "aws/request.Request" representing the
  1520. // client's request for the DescribeCertificates operation. The "output" return
  1521. // value can be used to capture response data after the request's "Send" method
  1522. // is called.
  1523. //
  1524. // Creating a request object using this method should be used when you want to inject
  1525. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1526. // access properties on the request object before or after sending the request. If
  1527. // you just want the service response, call the DescribeCertificates method directly
  1528. // instead.
  1529. //
  1530. // Note: You must call the "Send" method on the returned request object in order
  1531. // to execute the request.
  1532. //
  1533. // // Example sending a request using the DescribeCertificatesRequest method.
  1534. // req, resp := client.DescribeCertificatesRequest(params)
  1535. //
  1536. // err := req.Send()
  1537. // if err == nil { // resp is now filled
  1538. // fmt.Println(resp)
  1539. // }
  1540. //
  1541. func (c *RDS) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req *request.Request, output *DescribeCertificatesOutput) {
  1542. op := &request.Operation{
  1543. Name: opDescribeCertificates,
  1544. HTTPMethod: "POST",
  1545. HTTPPath: "/",
  1546. }
  1547. if input == nil {
  1548. input = &DescribeCertificatesInput{}
  1549. }
  1550. req = c.newRequest(op, input, output)
  1551. output = &DescribeCertificatesOutput{}
  1552. req.Data = output
  1553. return
  1554. }
  1555. // Lists the set of CA certificates provided by Amazon RDS for this AWS account.
  1556. func (c *RDS) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error) {
  1557. req, out := c.DescribeCertificatesRequest(input)
  1558. err := req.Send()
  1559. return out, err
  1560. }
  1561. const opDescribeDBClusterParameterGroups = "DescribeDBClusterParameterGroups"
  1562. // DescribeDBClusterParameterGroupsRequest generates a "aws/request.Request" representing the
  1563. // client's request for the DescribeDBClusterParameterGroups 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 DescribeDBClusterParameterGroups 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 DescribeDBClusterParameterGroupsRequest method.
  1577. // req, resp := client.DescribeDBClusterParameterGroupsRequest(params)
  1578. //
  1579. // err := req.Send()
  1580. // if err == nil { // resp is now filled
  1581. // fmt.Println(resp)
  1582. // }
  1583. //
  1584. func (c *RDS) DescribeDBClusterParameterGroupsRequest(input *DescribeDBClusterParameterGroupsInput) (req *request.Request, output *DescribeDBClusterParameterGroupsOutput) {
  1585. op := &request.Operation{
  1586. Name: opDescribeDBClusterParameterGroups,
  1587. HTTPMethod: "POST",
  1588. HTTPPath: "/",
  1589. }
  1590. if input == nil {
  1591. input = &DescribeDBClusterParameterGroupsInput{}
  1592. }
  1593. req = c.newRequest(op, input, output)
  1594. output = &DescribeDBClusterParameterGroupsOutput{}
  1595. req.Data = output
  1596. return
  1597. }
  1598. // Returns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName
  1599. // parameter is specified, the list will contain only the description of the
  1600. // specified DB cluster parameter group.
  1601. //
  1602. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  1603. // in the Amazon RDS User Guide.
  1604. func (c *RDS) DescribeDBClusterParameterGroups(input *DescribeDBClusterParameterGroupsInput) (*DescribeDBClusterParameterGroupsOutput, error) {
  1605. req, out := c.DescribeDBClusterParameterGroupsRequest(input)
  1606. err := req.Send()
  1607. return out, err
  1608. }
  1609. const opDescribeDBClusterParameters = "DescribeDBClusterParameters"
  1610. // DescribeDBClusterParametersRequest generates a "aws/request.Request" representing the
  1611. // client's request for the DescribeDBClusterParameters operation. The "output" return
  1612. // value can be used to capture response data after the request's "Send" method
  1613. // is called.
  1614. //
  1615. // Creating a request object using this method should be used when you want to inject
  1616. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1617. // access properties on the request object before or after sending the request. If
  1618. // you just want the service response, call the DescribeDBClusterParameters method directly
  1619. // instead.
  1620. //
  1621. // Note: You must call the "Send" method on the returned request object in order
  1622. // to execute the request.
  1623. //
  1624. // // Example sending a request using the DescribeDBClusterParametersRequest method.
  1625. // req, resp := client.DescribeDBClusterParametersRequest(params)
  1626. //
  1627. // err := req.Send()
  1628. // if err == nil { // resp is now filled
  1629. // fmt.Println(resp)
  1630. // }
  1631. //
  1632. func (c *RDS) DescribeDBClusterParametersRequest(input *DescribeDBClusterParametersInput) (req *request.Request, output *DescribeDBClusterParametersOutput) {
  1633. op := &request.Operation{
  1634. Name: opDescribeDBClusterParameters,
  1635. HTTPMethod: "POST",
  1636. HTTPPath: "/",
  1637. }
  1638. if input == nil {
  1639. input = &DescribeDBClusterParametersInput{}
  1640. }
  1641. req = c.newRequest(op, input, output)
  1642. output = &DescribeDBClusterParametersOutput{}
  1643. req.Data = output
  1644. return
  1645. }
  1646. // Returns the detailed parameter list for a particular DB cluster parameter
  1647. // group.
  1648. //
  1649. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  1650. // in the Amazon RDS User Guide.
  1651. func (c *RDS) DescribeDBClusterParameters(input *DescribeDBClusterParametersInput) (*DescribeDBClusterParametersOutput, error) {
  1652. req, out := c.DescribeDBClusterParametersRequest(input)
  1653. err := req.Send()
  1654. return out, err
  1655. }
  1656. const opDescribeDBClusterSnapshotAttributes = "DescribeDBClusterSnapshotAttributes"
  1657. // DescribeDBClusterSnapshotAttributesRequest generates a "aws/request.Request" representing the
  1658. // client's request for the DescribeDBClusterSnapshotAttributes operation. The "output" return
  1659. // value can be used to capture response data after the request's "Send" method
  1660. // is called.
  1661. //
  1662. // Creating a request object using this method should be used when you want to inject
  1663. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1664. // access properties on the request object before or after sending the request. If
  1665. // you just want the service response, call the DescribeDBClusterSnapshotAttributes method directly
  1666. // instead.
  1667. //
  1668. // Note: You must call the "Send" method on the returned request object in order
  1669. // to execute the request.
  1670. //
  1671. // // Example sending a request using the DescribeDBClusterSnapshotAttributesRequest method.
  1672. // req, resp := client.DescribeDBClusterSnapshotAttributesRequest(params)
  1673. //
  1674. // err := req.Send()
  1675. // if err == nil { // resp is now filled
  1676. // fmt.Println(resp)
  1677. // }
  1678. //
  1679. func (c *RDS) DescribeDBClusterSnapshotAttributesRequest(input *DescribeDBClusterSnapshotAttributesInput) (req *request.Request, output *DescribeDBClusterSnapshotAttributesOutput) {
  1680. op := &request.Operation{
  1681. Name: opDescribeDBClusterSnapshotAttributes,
  1682. HTTPMethod: "POST",
  1683. HTTPPath: "/",
  1684. }
  1685. if input == nil {
  1686. input = &DescribeDBClusterSnapshotAttributesInput{}
  1687. }
  1688. req = c.newRequest(op, input, output)
  1689. output = &DescribeDBClusterSnapshotAttributesOutput{}
  1690. req.Data = output
  1691. return
  1692. }
  1693. // Returns a list of DB cluster snapshot attribute names and values for a manual
  1694. // DB cluster snapshot.
  1695. //
  1696. // When sharing snapshots with other AWS accounts, DescribeDBClusterSnapshotAttributes
  1697. // returns the restore attribute and a list of IDs for the AWS accounts that
  1698. // are authorized to copy or restore the manual DB cluster snapshot. If all
  1699. // is included in the list of values for the restore attribute, then the manual
  1700. // DB cluster snapshot is public and can be copied or restored by all AWS accounts.
  1701. //
  1702. // To add or remove access for an AWS account to copy or restore a manual DB
  1703. // cluster snapshot, or to make the manual DB cluster snapshot public or private,
  1704. // use the ModifyDBClusterSnapshotAttribute API action.
  1705. func (c *RDS) DescribeDBClusterSnapshotAttributes(input *DescribeDBClusterSnapshotAttributesInput) (*DescribeDBClusterSnapshotAttributesOutput, error) {
  1706. req, out := c.DescribeDBClusterSnapshotAttributesRequest(input)
  1707. err := req.Send()
  1708. return out, err
  1709. }
  1710. const opDescribeDBClusterSnapshots = "DescribeDBClusterSnapshots"
  1711. // DescribeDBClusterSnapshotsRequest generates a "aws/request.Request" representing the
  1712. // client's request for the DescribeDBClusterSnapshots operation. The "output" return
  1713. // value can be used to capture response data after the request's "Send" method
  1714. // is called.
  1715. //
  1716. // Creating a request object using this method should be used when you want to inject
  1717. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1718. // access properties on the request object before or after sending the request. If
  1719. // you just want the service response, call the DescribeDBClusterSnapshots method directly
  1720. // instead.
  1721. //
  1722. // Note: You must call the "Send" method on the returned request object in order
  1723. // to execute the request.
  1724. //
  1725. // // Example sending a request using the DescribeDBClusterSnapshotsRequest method.
  1726. // req, resp := client.DescribeDBClusterSnapshotsRequest(params)
  1727. //
  1728. // err := req.Send()
  1729. // if err == nil { // resp is now filled
  1730. // fmt.Println(resp)
  1731. // }
  1732. //
  1733. func (c *RDS) DescribeDBClusterSnapshotsRequest(input *DescribeDBClusterSnapshotsInput) (req *request.Request, output *DescribeDBClusterSnapshotsOutput) {
  1734. op := &request.Operation{
  1735. Name: opDescribeDBClusterSnapshots,
  1736. HTTPMethod: "POST",
  1737. HTTPPath: "/",
  1738. }
  1739. if input == nil {
  1740. input = &DescribeDBClusterSnapshotsInput{}
  1741. }
  1742. req = c.newRequest(op, input, output)
  1743. output = &DescribeDBClusterSnapshotsOutput{}
  1744. req.Data = output
  1745. return
  1746. }
  1747. // Returns information about DB cluster snapshots. This API action supports
  1748. // pagination.
  1749. //
  1750. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  1751. // in the Amazon RDS User Guide.
  1752. func (c *RDS) DescribeDBClusterSnapshots(input *DescribeDBClusterSnapshotsInput) (*DescribeDBClusterSnapshotsOutput, error) {
  1753. req, out := c.DescribeDBClusterSnapshotsRequest(input)
  1754. err := req.Send()
  1755. return out, err
  1756. }
  1757. const opDescribeDBClusters = "DescribeDBClusters"
  1758. // DescribeDBClustersRequest generates a "aws/request.Request" representing the
  1759. // client's request for the DescribeDBClusters operation. The "output" return
  1760. // value can be used to capture response data after the request's "Send" method
  1761. // is called.
  1762. //
  1763. // Creating a request object using this method should be used when you want to inject
  1764. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1765. // access properties on the request object before or after sending the request. If
  1766. // you just want the service response, call the DescribeDBClusters method directly
  1767. // instead.
  1768. //
  1769. // Note: You must call the "Send" method on the returned request object in order
  1770. // to execute the request.
  1771. //
  1772. // // Example sending a request using the DescribeDBClustersRequest method.
  1773. // req, resp := client.DescribeDBClustersRequest(params)
  1774. //
  1775. // err := req.Send()
  1776. // if err == nil { // resp is now filled
  1777. // fmt.Println(resp)
  1778. // }
  1779. //
  1780. func (c *RDS) DescribeDBClustersRequest(input *DescribeDBClustersInput) (req *request.Request, output *DescribeDBClustersOutput) {
  1781. op := &request.Operation{
  1782. Name: opDescribeDBClusters,
  1783. HTTPMethod: "POST",
  1784. HTTPPath: "/",
  1785. }
  1786. if input == nil {
  1787. input = &DescribeDBClustersInput{}
  1788. }
  1789. req = c.newRequest(op, input, output)
  1790. output = &DescribeDBClustersOutput{}
  1791. req.Data = output
  1792. return
  1793. }
  1794. // Returns information about provisioned Aurora DB clusters. This API supports
  1795. // pagination.
  1796. //
  1797. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  1798. // in the Amazon RDS User Guide.
  1799. func (c *RDS) DescribeDBClusters(input *DescribeDBClustersInput) (*DescribeDBClustersOutput, error) {
  1800. req, out := c.DescribeDBClustersRequest(input)
  1801. err := req.Send()
  1802. return out, err
  1803. }
  1804. const opDescribeDBEngineVersions = "DescribeDBEngineVersions"
  1805. // DescribeDBEngineVersionsRequest generates a "aws/request.Request" representing the
  1806. // client's request for the DescribeDBEngineVersions 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 DescribeDBEngineVersions 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 DescribeDBEngineVersionsRequest method.
  1820. // req, resp := client.DescribeDBEngineVersionsRequest(params)
  1821. //
  1822. // err := req.Send()
  1823. // if err == nil { // resp is now filled
  1824. // fmt.Println(resp)
  1825. // }
  1826. //
  1827. func (c *RDS) DescribeDBEngineVersionsRequest(input *DescribeDBEngineVersionsInput) (req *request.Request, output *DescribeDBEngineVersionsOutput) {
  1828. op := &request.Operation{
  1829. Name: opDescribeDBEngineVersions,
  1830. HTTPMethod: "POST",
  1831. HTTPPath: "/",
  1832. Paginator: &request.Paginator{
  1833. InputTokens: []string{"Marker"},
  1834. OutputTokens: []string{"Marker"},
  1835. LimitToken: "MaxRecords",
  1836. TruncationToken: "",
  1837. },
  1838. }
  1839. if input == nil {
  1840. input = &DescribeDBEngineVersionsInput{}
  1841. }
  1842. req = c.newRequest(op, input, output)
  1843. output = &DescribeDBEngineVersionsOutput{}
  1844. req.Data = output
  1845. return
  1846. }
  1847. // Returns a list of the available DB engines.
  1848. func (c *RDS) DescribeDBEngineVersions(input *DescribeDBEngineVersionsInput) (*DescribeDBEngineVersionsOutput, error) {
  1849. req, out := c.DescribeDBEngineVersionsRequest(input)
  1850. err := req.Send()
  1851. return out, err
  1852. }
  1853. // DescribeDBEngineVersionsPages iterates over the pages of a DescribeDBEngineVersions operation,
  1854. // calling the "fn" function with the response data for each page. To stop
  1855. // iterating, return false from the fn function.
  1856. //
  1857. // See DescribeDBEngineVersions method for more information on how to use this operation.
  1858. //
  1859. // Note: This operation can generate multiple requests to a service.
  1860. //
  1861. // // Example iterating over at most 3 pages of a DescribeDBEngineVersions operation.
  1862. // pageNum := 0
  1863. // err := client.DescribeDBEngineVersionsPages(params,
  1864. // func(page *DescribeDBEngineVersionsOutput, lastPage bool) bool {
  1865. // pageNum++
  1866. // fmt.Println(page)
  1867. // return pageNum <= 3
  1868. // })
  1869. //
  1870. func (c *RDS) DescribeDBEngineVersionsPages(input *DescribeDBEngineVersionsInput, fn func(p *DescribeDBEngineVersionsOutput, lastPage bool) (shouldContinue bool)) error {
  1871. page, _ := c.DescribeDBEngineVersionsRequest(input)
  1872. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1873. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1874. return fn(p.(*DescribeDBEngineVersionsOutput), lastPage)
  1875. })
  1876. }
  1877. const opDescribeDBInstances = "DescribeDBInstances"
  1878. // DescribeDBInstancesRequest generates a "aws/request.Request" representing the
  1879. // client's request for the DescribeDBInstances operation. The "output" return
  1880. // value can be used to capture response data after the request's "Send" method
  1881. // is called.
  1882. //
  1883. // Creating a request object using this method should be used when you want to inject
  1884. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1885. // access properties on the request object before or after sending the request. If
  1886. // you just want the service response, call the DescribeDBInstances method directly
  1887. // instead.
  1888. //
  1889. // Note: You must call the "Send" method on the returned request object in order
  1890. // to execute the request.
  1891. //
  1892. // // Example sending a request using the DescribeDBInstancesRequest method.
  1893. // req, resp := client.DescribeDBInstancesRequest(params)
  1894. //
  1895. // err := req.Send()
  1896. // if err == nil { // resp is now filled
  1897. // fmt.Println(resp)
  1898. // }
  1899. //
  1900. func (c *RDS) DescribeDBInstancesRequest(input *DescribeDBInstancesInput) (req *request.Request, output *DescribeDBInstancesOutput) {
  1901. op := &request.Operation{
  1902. Name: opDescribeDBInstances,
  1903. HTTPMethod: "POST",
  1904. HTTPPath: "/",
  1905. Paginator: &request.Paginator{
  1906. InputTokens: []string{"Marker"},
  1907. OutputTokens: []string{"Marker"},
  1908. LimitToken: "MaxRecords",
  1909. TruncationToken: "",
  1910. },
  1911. }
  1912. if input == nil {
  1913. input = &DescribeDBInstancesInput{}
  1914. }
  1915. req = c.newRequest(op, input, output)
  1916. output = &DescribeDBInstancesOutput{}
  1917. req.Data = output
  1918. return
  1919. }
  1920. // Returns information about provisioned RDS instances. This API supports pagination.
  1921. func (c *RDS) DescribeDBInstances(input *DescribeDBInstancesInput) (*DescribeDBInstancesOutput, error) {
  1922. req, out := c.DescribeDBInstancesRequest(input)
  1923. err := req.Send()
  1924. return out, err
  1925. }
  1926. // DescribeDBInstancesPages iterates over the pages of a DescribeDBInstances operation,
  1927. // calling the "fn" function with the response data for each page. To stop
  1928. // iterating, return false from the fn function.
  1929. //
  1930. // See DescribeDBInstances method for more information on how to use this operation.
  1931. //
  1932. // Note: This operation can generate multiple requests to a service.
  1933. //
  1934. // // Example iterating over at most 3 pages of a DescribeDBInstances operation.
  1935. // pageNum := 0
  1936. // err := client.DescribeDBInstancesPages(params,
  1937. // func(page *DescribeDBInstancesOutput, lastPage bool) bool {
  1938. // pageNum++
  1939. // fmt.Println(page)
  1940. // return pageNum <= 3
  1941. // })
  1942. //
  1943. func (c *RDS) DescribeDBInstancesPages(input *DescribeDBInstancesInput, fn func(p *DescribeDBInstancesOutput, lastPage bool) (shouldContinue bool)) error {
  1944. page, _ := c.DescribeDBInstancesRequest(input)
  1945. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1946. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1947. return fn(p.(*DescribeDBInstancesOutput), lastPage)
  1948. })
  1949. }
  1950. const opDescribeDBLogFiles = "DescribeDBLogFiles"
  1951. // DescribeDBLogFilesRequest generates a "aws/request.Request" representing the
  1952. // client's request for the DescribeDBLogFiles operation. The "output" return
  1953. // value can be used to capture response data after the request's "Send" method
  1954. // is called.
  1955. //
  1956. // Creating a request object using this method should be used when you want to inject
  1957. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1958. // access properties on the request object before or after sending the request. If
  1959. // you just want the service response, call the DescribeDBLogFiles method directly
  1960. // instead.
  1961. //
  1962. // Note: You must call the "Send" method on the returned request object in order
  1963. // to execute the request.
  1964. //
  1965. // // Example sending a request using the DescribeDBLogFilesRequest method.
  1966. // req, resp := client.DescribeDBLogFilesRequest(params)
  1967. //
  1968. // err := req.Send()
  1969. // if err == nil { // resp is now filled
  1970. // fmt.Println(resp)
  1971. // }
  1972. //
  1973. func (c *RDS) DescribeDBLogFilesRequest(input *DescribeDBLogFilesInput) (req *request.Request, output *DescribeDBLogFilesOutput) {
  1974. op := &request.Operation{
  1975. Name: opDescribeDBLogFiles,
  1976. HTTPMethod: "POST",
  1977. HTTPPath: "/",
  1978. Paginator: &request.Paginator{
  1979. InputTokens: []string{"Marker"},
  1980. OutputTokens: []string{"Marker"},
  1981. LimitToken: "MaxRecords",
  1982. TruncationToken: "",
  1983. },
  1984. }
  1985. if input == nil {
  1986. input = &DescribeDBLogFilesInput{}
  1987. }
  1988. req = c.newRequest(op, input, output)
  1989. output = &DescribeDBLogFilesOutput{}
  1990. req.Data = output
  1991. return
  1992. }
  1993. // Returns a list of DB log files for the DB instance.
  1994. func (c *RDS) DescribeDBLogFiles(input *DescribeDBLogFilesInput) (*DescribeDBLogFilesOutput, error) {
  1995. req, out := c.DescribeDBLogFilesRequest(input)
  1996. err := req.Send()
  1997. return out, err
  1998. }
  1999. // DescribeDBLogFilesPages iterates over the pages of a DescribeDBLogFiles operation,
  2000. // calling the "fn" function with the response data for each page. To stop
  2001. // iterating, return false from the fn function.
  2002. //
  2003. // See DescribeDBLogFiles method for more information on how to use this operation.
  2004. //
  2005. // Note: This operation can generate multiple requests to a service.
  2006. //
  2007. // // Example iterating over at most 3 pages of a DescribeDBLogFiles operation.
  2008. // pageNum := 0
  2009. // err := client.DescribeDBLogFilesPages(params,
  2010. // func(page *DescribeDBLogFilesOutput, lastPage bool) bool {
  2011. // pageNum++
  2012. // fmt.Println(page)
  2013. // return pageNum <= 3
  2014. // })
  2015. //
  2016. func (c *RDS) DescribeDBLogFilesPages(input *DescribeDBLogFilesInput, fn func(p *DescribeDBLogFilesOutput, lastPage bool) (shouldContinue bool)) error {
  2017. page, _ := c.DescribeDBLogFilesRequest(input)
  2018. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2019. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2020. return fn(p.(*DescribeDBLogFilesOutput), lastPage)
  2021. })
  2022. }
  2023. const opDescribeDBParameterGroups = "DescribeDBParameterGroups"
  2024. // DescribeDBParameterGroupsRequest generates a "aws/request.Request" representing the
  2025. // client's request for the DescribeDBParameterGroups operation. The "output" return
  2026. // value can be used to capture response data after the request's "Send" method
  2027. // is called.
  2028. //
  2029. // Creating a request object using this method should be used when you want to inject
  2030. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2031. // access properties on the request object before or after sending the request. If
  2032. // you just want the service response, call the DescribeDBParameterGroups method directly
  2033. // instead.
  2034. //
  2035. // Note: You must call the "Send" method on the returned request object in order
  2036. // to execute the request.
  2037. //
  2038. // // Example sending a request using the DescribeDBParameterGroupsRequest method.
  2039. // req, resp := client.DescribeDBParameterGroupsRequest(params)
  2040. //
  2041. // err := req.Send()
  2042. // if err == nil { // resp is now filled
  2043. // fmt.Println(resp)
  2044. // }
  2045. //
  2046. func (c *RDS) DescribeDBParameterGroupsRequest(input *DescribeDBParameterGroupsInput) (req *request.Request, output *DescribeDBParameterGroupsOutput) {
  2047. op := &request.Operation{
  2048. Name: opDescribeDBParameterGroups,
  2049. HTTPMethod: "POST",
  2050. HTTPPath: "/",
  2051. Paginator: &request.Paginator{
  2052. InputTokens: []string{"Marker"},
  2053. OutputTokens: []string{"Marker"},
  2054. LimitToken: "MaxRecords",
  2055. TruncationToken: "",
  2056. },
  2057. }
  2058. if input == nil {
  2059. input = &DescribeDBParameterGroupsInput{}
  2060. }
  2061. req = c.newRequest(op, input, output)
  2062. output = &DescribeDBParameterGroupsOutput{}
  2063. req.Data = output
  2064. return
  2065. }
  2066. // Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName
  2067. // is specified, the list will contain only the description of the specified
  2068. // DB parameter group.
  2069. func (c *RDS) DescribeDBParameterGroups(input *DescribeDBParameterGroupsInput) (*DescribeDBParameterGroupsOutput, error) {
  2070. req, out := c.DescribeDBParameterGroupsRequest(input)
  2071. err := req.Send()
  2072. return out, err
  2073. }
  2074. // DescribeDBParameterGroupsPages iterates over the pages of a DescribeDBParameterGroups operation,
  2075. // calling the "fn" function with the response data for each page. To stop
  2076. // iterating, return false from the fn function.
  2077. //
  2078. // See DescribeDBParameterGroups method for more information on how to use this operation.
  2079. //
  2080. // Note: This operation can generate multiple requests to a service.
  2081. //
  2082. // // Example iterating over at most 3 pages of a DescribeDBParameterGroups operation.
  2083. // pageNum := 0
  2084. // err := client.DescribeDBParameterGroupsPages(params,
  2085. // func(page *DescribeDBParameterGroupsOutput, lastPage bool) bool {
  2086. // pageNum++
  2087. // fmt.Println(page)
  2088. // return pageNum <= 3
  2089. // })
  2090. //
  2091. func (c *RDS) DescribeDBParameterGroupsPages(input *DescribeDBParameterGroupsInput, fn func(p *DescribeDBParameterGroupsOutput, lastPage bool) (shouldContinue bool)) error {
  2092. page, _ := c.DescribeDBParameterGroupsRequest(input)
  2093. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2094. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2095. return fn(p.(*DescribeDBParameterGroupsOutput), lastPage)
  2096. })
  2097. }
  2098. const opDescribeDBParameters = "DescribeDBParameters"
  2099. // DescribeDBParametersRequest generates a "aws/request.Request" representing the
  2100. // client's request for the DescribeDBParameters operation. The "output" return
  2101. // value can be used to capture response data after the request's "Send" method
  2102. // is called.
  2103. //
  2104. // Creating a request object using this method should be used when you want to inject
  2105. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2106. // access properties on the request object before or after sending the request. If
  2107. // you just want the service response, call the DescribeDBParameters method directly
  2108. // instead.
  2109. //
  2110. // Note: You must call the "Send" method on the returned request object in order
  2111. // to execute the request.
  2112. //
  2113. // // Example sending a request using the DescribeDBParametersRequest method.
  2114. // req, resp := client.DescribeDBParametersRequest(params)
  2115. //
  2116. // err := req.Send()
  2117. // if err == nil { // resp is now filled
  2118. // fmt.Println(resp)
  2119. // }
  2120. //
  2121. func (c *RDS) DescribeDBParametersRequest(input *DescribeDBParametersInput) (req *request.Request, output *DescribeDBParametersOutput) {
  2122. op := &request.Operation{
  2123. Name: opDescribeDBParameters,
  2124. HTTPMethod: "POST",
  2125. HTTPPath: "/",
  2126. Paginator: &request.Paginator{
  2127. InputTokens: []string{"Marker"},
  2128. OutputTokens: []string{"Marker"},
  2129. LimitToken: "MaxRecords",
  2130. TruncationToken: "",
  2131. },
  2132. }
  2133. if input == nil {
  2134. input = &DescribeDBParametersInput{}
  2135. }
  2136. req = c.newRequest(op, input, output)
  2137. output = &DescribeDBParametersOutput{}
  2138. req.Data = output
  2139. return
  2140. }
  2141. // Returns the detailed parameter list for a particular DB parameter group.
  2142. func (c *RDS) DescribeDBParameters(input *DescribeDBParametersInput) (*DescribeDBParametersOutput, error) {
  2143. req, out := c.DescribeDBParametersRequest(input)
  2144. err := req.Send()
  2145. return out, err
  2146. }
  2147. // DescribeDBParametersPages iterates over the pages of a DescribeDBParameters operation,
  2148. // calling the "fn" function with the response data for each page. To stop
  2149. // iterating, return false from the fn function.
  2150. //
  2151. // See DescribeDBParameters method for more information on how to use this operation.
  2152. //
  2153. // Note: This operation can generate multiple requests to a service.
  2154. //
  2155. // // Example iterating over at most 3 pages of a DescribeDBParameters operation.
  2156. // pageNum := 0
  2157. // err := client.DescribeDBParametersPages(params,
  2158. // func(page *DescribeDBParametersOutput, lastPage bool) bool {
  2159. // pageNum++
  2160. // fmt.Println(page)
  2161. // return pageNum <= 3
  2162. // })
  2163. //
  2164. func (c *RDS) DescribeDBParametersPages(input *DescribeDBParametersInput, fn func(p *DescribeDBParametersOutput, lastPage bool) (shouldContinue bool)) error {
  2165. page, _ := c.DescribeDBParametersRequest(input)
  2166. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2167. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2168. return fn(p.(*DescribeDBParametersOutput), lastPage)
  2169. })
  2170. }
  2171. const opDescribeDBSecurityGroups = "DescribeDBSecurityGroups"
  2172. // DescribeDBSecurityGroupsRequest generates a "aws/request.Request" representing the
  2173. // client's request for the DescribeDBSecurityGroups operation. The "output" return
  2174. // value can be used to capture response data after the request's "Send" method
  2175. // is called.
  2176. //
  2177. // Creating a request object using this method should be used when you want to inject
  2178. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2179. // access properties on the request object before or after sending the request. If
  2180. // you just want the service response, call the DescribeDBSecurityGroups method directly
  2181. // instead.
  2182. //
  2183. // Note: You must call the "Send" method on the returned request object in order
  2184. // to execute the request.
  2185. //
  2186. // // Example sending a request using the DescribeDBSecurityGroupsRequest method.
  2187. // req, resp := client.DescribeDBSecurityGroupsRequest(params)
  2188. //
  2189. // err := req.Send()
  2190. // if err == nil { // resp is now filled
  2191. // fmt.Println(resp)
  2192. // }
  2193. //
  2194. func (c *RDS) DescribeDBSecurityGroupsRequest(input *DescribeDBSecurityGroupsInput) (req *request.Request, output *DescribeDBSecurityGroupsOutput) {
  2195. op := &request.Operation{
  2196. Name: opDescribeDBSecurityGroups,
  2197. HTTPMethod: "POST",
  2198. HTTPPath: "/",
  2199. Paginator: &request.Paginator{
  2200. InputTokens: []string{"Marker"},
  2201. OutputTokens: []string{"Marker"},
  2202. LimitToken: "MaxRecords",
  2203. TruncationToken: "",
  2204. },
  2205. }
  2206. if input == nil {
  2207. input = &DescribeDBSecurityGroupsInput{}
  2208. }
  2209. req = c.newRequest(op, input, output)
  2210. output = &DescribeDBSecurityGroupsOutput{}
  2211. req.Data = output
  2212. return
  2213. }
  2214. // Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName
  2215. // is specified, the list will contain only the descriptions of the specified
  2216. // DB security group.
  2217. func (c *RDS) DescribeDBSecurityGroups(input *DescribeDBSecurityGroupsInput) (*DescribeDBSecurityGroupsOutput, error) {
  2218. req, out := c.DescribeDBSecurityGroupsRequest(input)
  2219. err := req.Send()
  2220. return out, err
  2221. }
  2222. // DescribeDBSecurityGroupsPages iterates over the pages of a DescribeDBSecurityGroups operation,
  2223. // calling the "fn" function with the response data for each page. To stop
  2224. // iterating, return false from the fn function.
  2225. //
  2226. // See DescribeDBSecurityGroups method for more information on how to use this operation.
  2227. //
  2228. // Note: This operation can generate multiple requests to a service.
  2229. //
  2230. // // Example iterating over at most 3 pages of a DescribeDBSecurityGroups operation.
  2231. // pageNum := 0
  2232. // err := client.DescribeDBSecurityGroupsPages(params,
  2233. // func(page *DescribeDBSecurityGroupsOutput, lastPage bool) bool {
  2234. // pageNum++
  2235. // fmt.Println(page)
  2236. // return pageNum <= 3
  2237. // })
  2238. //
  2239. func (c *RDS) DescribeDBSecurityGroupsPages(input *DescribeDBSecurityGroupsInput, fn func(p *DescribeDBSecurityGroupsOutput, lastPage bool) (shouldContinue bool)) error {
  2240. page, _ := c.DescribeDBSecurityGroupsRequest(input)
  2241. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2242. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2243. return fn(p.(*DescribeDBSecurityGroupsOutput), lastPage)
  2244. })
  2245. }
  2246. const opDescribeDBSnapshotAttributes = "DescribeDBSnapshotAttributes"
  2247. // DescribeDBSnapshotAttributesRequest generates a "aws/request.Request" representing the
  2248. // client's request for the DescribeDBSnapshotAttributes 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 DescribeDBSnapshotAttributes 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 DescribeDBSnapshotAttributesRequest method.
  2262. // req, resp := client.DescribeDBSnapshotAttributesRequest(params)
  2263. //
  2264. // err := req.Send()
  2265. // if err == nil { // resp is now filled
  2266. // fmt.Println(resp)
  2267. // }
  2268. //
  2269. func (c *RDS) DescribeDBSnapshotAttributesRequest(input *DescribeDBSnapshotAttributesInput) (req *request.Request, output *DescribeDBSnapshotAttributesOutput) {
  2270. op := &request.Operation{
  2271. Name: opDescribeDBSnapshotAttributes,
  2272. HTTPMethod: "POST",
  2273. HTTPPath: "/",
  2274. }
  2275. if input == nil {
  2276. input = &DescribeDBSnapshotAttributesInput{}
  2277. }
  2278. req = c.newRequest(op, input, output)
  2279. output = &DescribeDBSnapshotAttributesOutput{}
  2280. req.Data = output
  2281. return
  2282. }
  2283. // Returns a list of DB snapshot attribute names and values for a manual DB
  2284. // snapshot.
  2285. //
  2286. // When sharing snapshots with other AWS accounts, DescribeDBSnapshotAttributes
  2287. // returns the restore attribute and a list of IDs for the AWS accounts that
  2288. // are authorized to copy or restore the manual DB snapshot. If all is included
  2289. // in the list of values for the restore attribute, then the manual DB snapshot
  2290. // is public and can be copied or restored by all AWS accounts.
  2291. //
  2292. // To add or remove access for an AWS account to copy or restore a manual DB
  2293. // snapshot, or to make the manual DB snapshot public or private, use the ModifyDBSnapshotAttribute
  2294. // API action.
  2295. func (c *RDS) DescribeDBSnapshotAttributes(input *DescribeDBSnapshotAttributesInput) (*DescribeDBSnapshotAttributesOutput, error) {
  2296. req, out := c.DescribeDBSnapshotAttributesRequest(input)
  2297. err := req.Send()
  2298. return out, err
  2299. }
  2300. const opDescribeDBSnapshots = "DescribeDBSnapshots"
  2301. // DescribeDBSnapshotsRequest generates a "aws/request.Request" representing the
  2302. // client's request for the DescribeDBSnapshots operation. The "output" return
  2303. // value can be used to capture response data after the request's "Send" method
  2304. // is called.
  2305. //
  2306. // Creating a request object using this method should be used when you want to inject
  2307. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2308. // access properties on the request object before or after sending the request. If
  2309. // you just want the service response, call the DescribeDBSnapshots method directly
  2310. // instead.
  2311. //
  2312. // Note: You must call the "Send" method on the returned request object in order
  2313. // to execute the request.
  2314. //
  2315. // // Example sending a request using the DescribeDBSnapshotsRequest method.
  2316. // req, resp := client.DescribeDBSnapshotsRequest(params)
  2317. //
  2318. // err := req.Send()
  2319. // if err == nil { // resp is now filled
  2320. // fmt.Println(resp)
  2321. // }
  2322. //
  2323. func (c *RDS) DescribeDBSnapshotsRequest(input *DescribeDBSnapshotsInput) (req *request.Request, output *DescribeDBSnapshotsOutput) {
  2324. op := &request.Operation{
  2325. Name: opDescribeDBSnapshots,
  2326. HTTPMethod: "POST",
  2327. HTTPPath: "/",
  2328. Paginator: &request.Paginator{
  2329. InputTokens: []string{"Marker"},
  2330. OutputTokens: []string{"Marker"},
  2331. LimitToken: "MaxRecords",
  2332. TruncationToken: "",
  2333. },
  2334. }
  2335. if input == nil {
  2336. input = &DescribeDBSnapshotsInput{}
  2337. }
  2338. req = c.newRequest(op, input, output)
  2339. output = &DescribeDBSnapshotsOutput{}
  2340. req.Data = output
  2341. return
  2342. }
  2343. // Returns information about DB snapshots. This API action supports pagination.
  2344. func (c *RDS) DescribeDBSnapshots(input *DescribeDBSnapshotsInput) (*DescribeDBSnapshotsOutput, error) {
  2345. req, out := c.DescribeDBSnapshotsRequest(input)
  2346. err := req.Send()
  2347. return out, err
  2348. }
  2349. // DescribeDBSnapshotsPages iterates over the pages of a DescribeDBSnapshots operation,
  2350. // calling the "fn" function with the response data for each page. To stop
  2351. // iterating, return false from the fn function.
  2352. //
  2353. // See DescribeDBSnapshots method for more information on how to use this operation.
  2354. //
  2355. // Note: This operation can generate multiple requests to a service.
  2356. //
  2357. // // Example iterating over at most 3 pages of a DescribeDBSnapshots operation.
  2358. // pageNum := 0
  2359. // err := client.DescribeDBSnapshotsPages(params,
  2360. // func(page *DescribeDBSnapshotsOutput, lastPage bool) bool {
  2361. // pageNum++
  2362. // fmt.Println(page)
  2363. // return pageNum <= 3
  2364. // })
  2365. //
  2366. func (c *RDS) DescribeDBSnapshotsPages(input *DescribeDBSnapshotsInput, fn func(p *DescribeDBSnapshotsOutput, lastPage bool) (shouldContinue bool)) error {
  2367. page, _ := c.DescribeDBSnapshotsRequest(input)
  2368. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2369. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2370. return fn(p.(*DescribeDBSnapshotsOutput), lastPage)
  2371. })
  2372. }
  2373. const opDescribeDBSubnetGroups = "DescribeDBSubnetGroups"
  2374. // DescribeDBSubnetGroupsRequest generates a "aws/request.Request" representing the
  2375. // client's request for the DescribeDBSubnetGroups operation. The "output" return
  2376. // value can be used to capture response data after the request's "Send" method
  2377. // is called.
  2378. //
  2379. // Creating a request object using this method should be used when you want to inject
  2380. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2381. // access properties on the request object before or after sending the request. If
  2382. // you just want the service response, call the DescribeDBSubnetGroups method directly
  2383. // instead.
  2384. //
  2385. // Note: You must call the "Send" method on the returned request object in order
  2386. // to execute the request.
  2387. //
  2388. // // Example sending a request using the DescribeDBSubnetGroupsRequest method.
  2389. // req, resp := client.DescribeDBSubnetGroupsRequest(params)
  2390. //
  2391. // err := req.Send()
  2392. // if err == nil { // resp is now filled
  2393. // fmt.Println(resp)
  2394. // }
  2395. //
  2396. func (c *RDS) DescribeDBSubnetGroupsRequest(input *DescribeDBSubnetGroupsInput) (req *request.Request, output *DescribeDBSubnetGroupsOutput) {
  2397. op := &request.Operation{
  2398. Name: opDescribeDBSubnetGroups,
  2399. HTTPMethod: "POST",
  2400. HTTPPath: "/",
  2401. Paginator: &request.Paginator{
  2402. InputTokens: []string{"Marker"},
  2403. OutputTokens: []string{"Marker"},
  2404. LimitToken: "MaxRecords",
  2405. TruncationToken: "",
  2406. },
  2407. }
  2408. if input == nil {
  2409. input = &DescribeDBSubnetGroupsInput{}
  2410. }
  2411. req = c.newRequest(op, input, output)
  2412. output = &DescribeDBSubnetGroupsOutput{}
  2413. req.Data = output
  2414. return
  2415. }
  2416. // Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified,
  2417. // the list will contain only the descriptions of the specified DBSubnetGroup.
  2418. //
  2419. // For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing).
  2420. func (c *RDS) DescribeDBSubnetGroups(input *DescribeDBSubnetGroupsInput) (*DescribeDBSubnetGroupsOutput, error) {
  2421. req, out := c.DescribeDBSubnetGroupsRequest(input)
  2422. err := req.Send()
  2423. return out, err
  2424. }
  2425. // DescribeDBSubnetGroupsPages iterates over the pages of a DescribeDBSubnetGroups operation,
  2426. // calling the "fn" function with the response data for each page. To stop
  2427. // iterating, return false from the fn function.
  2428. //
  2429. // See DescribeDBSubnetGroups method for more information on how to use this operation.
  2430. //
  2431. // Note: This operation can generate multiple requests to a service.
  2432. //
  2433. // // Example iterating over at most 3 pages of a DescribeDBSubnetGroups operation.
  2434. // pageNum := 0
  2435. // err := client.DescribeDBSubnetGroupsPages(params,
  2436. // func(page *DescribeDBSubnetGroupsOutput, lastPage bool) bool {
  2437. // pageNum++
  2438. // fmt.Println(page)
  2439. // return pageNum <= 3
  2440. // })
  2441. //
  2442. func (c *RDS) DescribeDBSubnetGroupsPages(input *DescribeDBSubnetGroupsInput, fn func(p *DescribeDBSubnetGroupsOutput, lastPage bool) (shouldContinue bool)) error {
  2443. page, _ := c.DescribeDBSubnetGroupsRequest(input)
  2444. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2445. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2446. return fn(p.(*DescribeDBSubnetGroupsOutput), lastPage)
  2447. })
  2448. }
  2449. const opDescribeEngineDefaultClusterParameters = "DescribeEngineDefaultClusterParameters"
  2450. // DescribeEngineDefaultClusterParametersRequest generates a "aws/request.Request" representing the
  2451. // client's request for the DescribeEngineDefaultClusterParameters operation. The "output" return
  2452. // value can be used to capture response data after the request's "Send" method
  2453. // is called.
  2454. //
  2455. // Creating a request object using this method should be used when you want to inject
  2456. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2457. // access properties on the request object before or after sending the request. If
  2458. // you just want the service response, call the DescribeEngineDefaultClusterParameters method directly
  2459. // instead.
  2460. //
  2461. // Note: You must call the "Send" method on the returned request object in order
  2462. // to execute the request.
  2463. //
  2464. // // Example sending a request using the DescribeEngineDefaultClusterParametersRequest method.
  2465. // req, resp := client.DescribeEngineDefaultClusterParametersRequest(params)
  2466. //
  2467. // err := req.Send()
  2468. // if err == nil { // resp is now filled
  2469. // fmt.Println(resp)
  2470. // }
  2471. //
  2472. func (c *RDS) DescribeEngineDefaultClusterParametersRequest(input *DescribeEngineDefaultClusterParametersInput) (req *request.Request, output *DescribeEngineDefaultClusterParametersOutput) {
  2473. op := &request.Operation{
  2474. Name: opDescribeEngineDefaultClusterParameters,
  2475. HTTPMethod: "POST",
  2476. HTTPPath: "/",
  2477. }
  2478. if input == nil {
  2479. input = &DescribeEngineDefaultClusterParametersInput{}
  2480. }
  2481. req = c.newRequest(op, input, output)
  2482. output = &DescribeEngineDefaultClusterParametersOutput{}
  2483. req.Data = output
  2484. return
  2485. }
  2486. // Returns the default engine and system parameter information for the cluster
  2487. // database engine.
  2488. //
  2489. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  2490. // in the Amazon RDS User Guide.
  2491. func (c *RDS) DescribeEngineDefaultClusterParameters(input *DescribeEngineDefaultClusterParametersInput) (*DescribeEngineDefaultClusterParametersOutput, error) {
  2492. req, out := c.DescribeEngineDefaultClusterParametersRequest(input)
  2493. err := req.Send()
  2494. return out, err
  2495. }
  2496. const opDescribeEngineDefaultParameters = "DescribeEngineDefaultParameters"
  2497. // DescribeEngineDefaultParametersRequest generates a "aws/request.Request" representing the
  2498. // client's request for the DescribeEngineDefaultParameters operation. The "output" return
  2499. // value can be used to capture response data after the request's "Send" method
  2500. // is called.
  2501. //
  2502. // Creating a request object using this method should be used when you want to inject
  2503. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2504. // access properties on the request object before or after sending the request. If
  2505. // you just want the service response, call the DescribeEngineDefaultParameters method directly
  2506. // instead.
  2507. //
  2508. // Note: You must call the "Send" method on the returned request object in order
  2509. // to execute the request.
  2510. //
  2511. // // Example sending a request using the DescribeEngineDefaultParametersRequest method.
  2512. // req, resp := client.DescribeEngineDefaultParametersRequest(params)
  2513. //
  2514. // err := req.Send()
  2515. // if err == nil { // resp is now filled
  2516. // fmt.Println(resp)
  2517. // }
  2518. //
  2519. func (c *RDS) DescribeEngineDefaultParametersRequest(input *DescribeEngineDefaultParametersInput) (req *request.Request, output *DescribeEngineDefaultParametersOutput) {
  2520. op := &request.Operation{
  2521. Name: opDescribeEngineDefaultParameters,
  2522. HTTPMethod: "POST",
  2523. HTTPPath: "/",
  2524. Paginator: &request.Paginator{
  2525. InputTokens: []string{"Marker"},
  2526. OutputTokens: []string{"EngineDefaults.Marker"},
  2527. LimitToken: "MaxRecords",
  2528. TruncationToken: "",
  2529. },
  2530. }
  2531. if input == nil {
  2532. input = &DescribeEngineDefaultParametersInput{}
  2533. }
  2534. req = c.newRequest(op, input, output)
  2535. output = &DescribeEngineDefaultParametersOutput{}
  2536. req.Data = output
  2537. return
  2538. }
  2539. // Returns the default engine and system parameter information for the specified
  2540. // database engine.
  2541. func (c *RDS) DescribeEngineDefaultParameters(input *DescribeEngineDefaultParametersInput) (*DescribeEngineDefaultParametersOutput, error) {
  2542. req, out := c.DescribeEngineDefaultParametersRequest(input)
  2543. err := req.Send()
  2544. return out, err
  2545. }
  2546. // DescribeEngineDefaultParametersPages iterates over the pages of a DescribeEngineDefaultParameters operation,
  2547. // calling the "fn" function with the response data for each page. To stop
  2548. // iterating, return false from the fn function.
  2549. //
  2550. // See DescribeEngineDefaultParameters method for more information on how to use this operation.
  2551. //
  2552. // Note: This operation can generate multiple requests to a service.
  2553. //
  2554. // // Example iterating over at most 3 pages of a DescribeEngineDefaultParameters operation.
  2555. // pageNum := 0
  2556. // err := client.DescribeEngineDefaultParametersPages(params,
  2557. // func(page *DescribeEngineDefaultParametersOutput, lastPage bool) bool {
  2558. // pageNum++
  2559. // fmt.Println(page)
  2560. // return pageNum <= 3
  2561. // })
  2562. //
  2563. func (c *RDS) DescribeEngineDefaultParametersPages(input *DescribeEngineDefaultParametersInput, fn func(p *DescribeEngineDefaultParametersOutput, lastPage bool) (shouldContinue bool)) error {
  2564. page, _ := c.DescribeEngineDefaultParametersRequest(input)
  2565. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2566. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2567. return fn(p.(*DescribeEngineDefaultParametersOutput), lastPage)
  2568. })
  2569. }
  2570. const opDescribeEventCategories = "DescribeEventCategories"
  2571. // DescribeEventCategoriesRequest generates a "aws/request.Request" representing the
  2572. // client's request for the DescribeEventCategories operation. The "output" return
  2573. // value can be used to capture response data after the request's "Send" method
  2574. // is called.
  2575. //
  2576. // Creating a request object using this method should be used when you want to inject
  2577. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2578. // access properties on the request object before or after sending the request. If
  2579. // you just want the service response, call the DescribeEventCategories method directly
  2580. // instead.
  2581. //
  2582. // Note: You must call the "Send" method on the returned request object in order
  2583. // to execute the request.
  2584. //
  2585. // // Example sending a request using the DescribeEventCategoriesRequest method.
  2586. // req, resp := client.DescribeEventCategoriesRequest(params)
  2587. //
  2588. // err := req.Send()
  2589. // if err == nil { // resp is now filled
  2590. // fmt.Println(resp)
  2591. // }
  2592. //
  2593. func (c *RDS) DescribeEventCategoriesRequest(input *DescribeEventCategoriesInput) (req *request.Request, output *DescribeEventCategoriesOutput) {
  2594. op := &request.Operation{
  2595. Name: opDescribeEventCategories,
  2596. HTTPMethod: "POST",
  2597. HTTPPath: "/",
  2598. }
  2599. if input == nil {
  2600. input = &DescribeEventCategoriesInput{}
  2601. }
  2602. req = c.newRequest(op, input, output)
  2603. output = &DescribeEventCategoriesOutput{}
  2604. req.Data = output
  2605. return
  2606. }
  2607. // Displays a list of categories for all event source types, or, if specified,
  2608. // for a specified source type. You can see a list of the event categories and
  2609. // source types in the Events (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html)
  2610. // topic in the Amazon RDS User Guide.
  2611. func (c *RDS) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error) {
  2612. req, out := c.DescribeEventCategoriesRequest(input)
  2613. err := req.Send()
  2614. return out, err
  2615. }
  2616. const opDescribeEventSubscriptions = "DescribeEventSubscriptions"
  2617. // DescribeEventSubscriptionsRequest generates a "aws/request.Request" representing the
  2618. // client's request for the DescribeEventSubscriptions operation. The "output" return
  2619. // value can be used to capture response data after the request's "Send" method
  2620. // is called.
  2621. //
  2622. // Creating a request object using this method should be used when you want to inject
  2623. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2624. // access properties on the request object before or after sending the request. If
  2625. // you just want the service response, call the DescribeEventSubscriptions method directly
  2626. // instead.
  2627. //
  2628. // Note: You must call the "Send" method on the returned request object in order
  2629. // to execute the request.
  2630. //
  2631. // // Example sending a request using the DescribeEventSubscriptionsRequest method.
  2632. // req, resp := client.DescribeEventSubscriptionsRequest(params)
  2633. //
  2634. // err := req.Send()
  2635. // if err == nil { // resp is now filled
  2636. // fmt.Println(resp)
  2637. // }
  2638. //
  2639. func (c *RDS) DescribeEventSubscriptionsRequest(input *DescribeEventSubscriptionsInput) (req *request.Request, output *DescribeEventSubscriptionsOutput) {
  2640. op := &request.Operation{
  2641. Name: opDescribeEventSubscriptions,
  2642. HTTPMethod: "POST",
  2643. HTTPPath: "/",
  2644. Paginator: &request.Paginator{
  2645. InputTokens: []string{"Marker"},
  2646. OutputTokens: []string{"Marker"},
  2647. LimitToken: "MaxRecords",
  2648. TruncationToken: "",
  2649. },
  2650. }
  2651. if input == nil {
  2652. input = &DescribeEventSubscriptionsInput{}
  2653. }
  2654. req = c.newRequest(op, input, output)
  2655. output = &DescribeEventSubscriptionsOutput{}
  2656. req.Data = output
  2657. return
  2658. }
  2659. // Lists all the subscription descriptions for a customer account. The description
  2660. // for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType,
  2661. // SourceID, CreationTime, and Status.
  2662. //
  2663. // If you specify a SubscriptionName, lists the description for that subscription.
  2664. func (c *RDS) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) (*DescribeEventSubscriptionsOutput, error) {
  2665. req, out := c.DescribeEventSubscriptionsRequest(input)
  2666. err := req.Send()
  2667. return out, err
  2668. }
  2669. // DescribeEventSubscriptionsPages iterates over the pages of a DescribeEventSubscriptions operation,
  2670. // calling the "fn" function with the response data for each page. To stop
  2671. // iterating, return false from the fn function.
  2672. //
  2673. // See DescribeEventSubscriptions method for more information on how to use this operation.
  2674. //
  2675. // Note: This operation can generate multiple requests to a service.
  2676. //
  2677. // // Example iterating over at most 3 pages of a DescribeEventSubscriptions operation.
  2678. // pageNum := 0
  2679. // err := client.DescribeEventSubscriptionsPages(params,
  2680. // func(page *DescribeEventSubscriptionsOutput, lastPage bool) bool {
  2681. // pageNum++
  2682. // fmt.Println(page)
  2683. // return pageNum <= 3
  2684. // })
  2685. //
  2686. func (c *RDS) DescribeEventSubscriptionsPages(input *DescribeEventSubscriptionsInput, fn func(p *DescribeEventSubscriptionsOutput, lastPage bool) (shouldContinue bool)) error {
  2687. page, _ := c.DescribeEventSubscriptionsRequest(input)
  2688. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2689. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2690. return fn(p.(*DescribeEventSubscriptionsOutput), lastPage)
  2691. })
  2692. }
  2693. const opDescribeEvents = "DescribeEvents"
  2694. // DescribeEventsRequest generates a "aws/request.Request" representing the
  2695. // client's request for the DescribeEvents operation. The "output" return
  2696. // value can be used to capture response data after the request's "Send" method
  2697. // is called.
  2698. //
  2699. // Creating a request object using this method should be used when you want to inject
  2700. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2701. // access properties on the request object before or after sending the request. If
  2702. // you just want the service response, call the DescribeEvents method directly
  2703. // instead.
  2704. //
  2705. // Note: You must call the "Send" method on the returned request object in order
  2706. // to execute the request.
  2707. //
  2708. // // Example sending a request using the DescribeEventsRequest method.
  2709. // req, resp := client.DescribeEventsRequest(params)
  2710. //
  2711. // err := req.Send()
  2712. // if err == nil { // resp is now filled
  2713. // fmt.Println(resp)
  2714. // }
  2715. //
  2716. func (c *RDS) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) {
  2717. op := &request.Operation{
  2718. Name: opDescribeEvents,
  2719. HTTPMethod: "POST",
  2720. HTTPPath: "/",
  2721. Paginator: &request.Paginator{
  2722. InputTokens: []string{"Marker"},
  2723. OutputTokens: []string{"Marker"},
  2724. LimitToken: "MaxRecords",
  2725. TruncationToken: "",
  2726. },
  2727. }
  2728. if input == nil {
  2729. input = &DescribeEventsInput{}
  2730. }
  2731. req = c.newRequest(op, input, output)
  2732. output = &DescribeEventsOutput{}
  2733. req.Data = output
  2734. return
  2735. }
  2736. // Returns events related to DB instances, DB security groups, DB snapshots,
  2737. // and DB parameter groups for the past 14 days. Events specific to a particular
  2738. // DB instance, DB security group, database snapshot, or DB parameter group
  2739. // can be obtained by providing the name as a parameter. By default, the past
  2740. // hour of events are returned.
  2741. func (c *RDS) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) {
  2742. req, out := c.DescribeEventsRequest(input)
  2743. err := req.Send()
  2744. return out, err
  2745. }
  2746. // DescribeEventsPages iterates over the pages of a DescribeEvents operation,
  2747. // calling the "fn" function with the response data for each page. To stop
  2748. // iterating, return false from the fn function.
  2749. //
  2750. // See DescribeEvents method for more information on how to use this operation.
  2751. //
  2752. // Note: This operation can generate multiple requests to a service.
  2753. //
  2754. // // Example iterating over at most 3 pages of a DescribeEvents operation.
  2755. // pageNum := 0
  2756. // err := client.DescribeEventsPages(params,
  2757. // func(page *DescribeEventsOutput, lastPage bool) bool {
  2758. // pageNum++
  2759. // fmt.Println(page)
  2760. // return pageNum <= 3
  2761. // })
  2762. //
  2763. func (c *RDS) DescribeEventsPages(input *DescribeEventsInput, fn func(p *DescribeEventsOutput, lastPage bool) (shouldContinue bool)) error {
  2764. page, _ := c.DescribeEventsRequest(input)
  2765. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2766. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2767. return fn(p.(*DescribeEventsOutput), lastPage)
  2768. })
  2769. }
  2770. const opDescribeOptionGroupOptions = "DescribeOptionGroupOptions"
  2771. // DescribeOptionGroupOptionsRequest generates a "aws/request.Request" representing the
  2772. // client's request for the DescribeOptionGroupOptions operation. The "output" return
  2773. // value can be used to capture response data after the request's "Send" method
  2774. // is called.
  2775. //
  2776. // Creating a request object using this method should be used when you want to inject
  2777. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2778. // access properties on the request object before or after sending the request. If
  2779. // you just want the service response, call the DescribeOptionGroupOptions method directly
  2780. // instead.
  2781. //
  2782. // Note: You must call the "Send" method on the returned request object in order
  2783. // to execute the request.
  2784. //
  2785. // // Example sending a request using the DescribeOptionGroupOptionsRequest method.
  2786. // req, resp := client.DescribeOptionGroupOptionsRequest(params)
  2787. //
  2788. // err := req.Send()
  2789. // if err == nil { // resp is now filled
  2790. // fmt.Println(resp)
  2791. // }
  2792. //
  2793. func (c *RDS) DescribeOptionGroupOptionsRequest(input *DescribeOptionGroupOptionsInput) (req *request.Request, output *DescribeOptionGroupOptionsOutput) {
  2794. op := &request.Operation{
  2795. Name: opDescribeOptionGroupOptions,
  2796. HTTPMethod: "POST",
  2797. HTTPPath: "/",
  2798. Paginator: &request.Paginator{
  2799. InputTokens: []string{"Marker"},
  2800. OutputTokens: []string{"Marker"},
  2801. LimitToken: "MaxRecords",
  2802. TruncationToken: "",
  2803. },
  2804. }
  2805. if input == nil {
  2806. input = &DescribeOptionGroupOptionsInput{}
  2807. }
  2808. req = c.newRequest(op, input, output)
  2809. output = &DescribeOptionGroupOptionsOutput{}
  2810. req.Data = output
  2811. return
  2812. }
  2813. // Describes all available options.
  2814. func (c *RDS) DescribeOptionGroupOptions(input *DescribeOptionGroupOptionsInput) (*DescribeOptionGroupOptionsOutput, error) {
  2815. req, out := c.DescribeOptionGroupOptionsRequest(input)
  2816. err := req.Send()
  2817. return out, err
  2818. }
  2819. // DescribeOptionGroupOptionsPages iterates over the pages of a DescribeOptionGroupOptions operation,
  2820. // calling the "fn" function with the response data for each page. To stop
  2821. // iterating, return false from the fn function.
  2822. //
  2823. // See DescribeOptionGroupOptions method for more information on how to use this operation.
  2824. //
  2825. // Note: This operation can generate multiple requests to a service.
  2826. //
  2827. // // Example iterating over at most 3 pages of a DescribeOptionGroupOptions operation.
  2828. // pageNum := 0
  2829. // err := client.DescribeOptionGroupOptionsPages(params,
  2830. // func(page *DescribeOptionGroupOptionsOutput, lastPage bool) bool {
  2831. // pageNum++
  2832. // fmt.Println(page)
  2833. // return pageNum <= 3
  2834. // })
  2835. //
  2836. func (c *RDS) DescribeOptionGroupOptionsPages(input *DescribeOptionGroupOptionsInput, fn func(p *DescribeOptionGroupOptionsOutput, lastPage bool) (shouldContinue bool)) error {
  2837. page, _ := c.DescribeOptionGroupOptionsRequest(input)
  2838. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2839. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2840. return fn(p.(*DescribeOptionGroupOptionsOutput), lastPage)
  2841. })
  2842. }
  2843. const opDescribeOptionGroups = "DescribeOptionGroups"
  2844. // DescribeOptionGroupsRequest generates a "aws/request.Request" representing the
  2845. // client's request for the DescribeOptionGroups operation. The "output" return
  2846. // value can be used to capture response data after the request's "Send" method
  2847. // is called.
  2848. //
  2849. // Creating a request object using this method should be used when you want to inject
  2850. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2851. // access properties on the request object before or after sending the request. If
  2852. // you just want the service response, call the DescribeOptionGroups method directly
  2853. // instead.
  2854. //
  2855. // Note: You must call the "Send" method on the returned request object in order
  2856. // to execute the request.
  2857. //
  2858. // // Example sending a request using the DescribeOptionGroupsRequest method.
  2859. // req, resp := client.DescribeOptionGroupsRequest(params)
  2860. //
  2861. // err := req.Send()
  2862. // if err == nil { // resp is now filled
  2863. // fmt.Println(resp)
  2864. // }
  2865. //
  2866. func (c *RDS) DescribeOptionGroupsRequest(input *DescribeOptionGroupsInput) (req *request.Request, output *DescribeOptionGroupsOutput) {
  2867. op := &request.Operation{
  2868. Name: opDescribeOptionGroups,
  2869. HTTPMethod: "POST",
  2870. HTTPPath: "/",
  2871. Paginator: &request.Paginator{
  2872. InputTokens: []string{"Marker"},
  2873. OutputTokens: []string{"Marker"},
  2874. LimitToken: "MaxRecords",
  2875. TruncationToken: "",
  2876. },
  2877. }
  2878. if input == nil {
  2879. input = &DescribeOptionGroupsInput{}
  2880. }
  2881. req = c.newRequest(op, input, output)
  2882. output = &DescribeOptionGroupsOutput{}
  2883. req.Data = output
  2884. return
  2885. }
  2886. // Describes the available option groups.
  2887. func (c *RDS) DescribeOptionGroups(input *DescribeOptionGroupsInput) (*DescribeOptionGroupsOutput, error) {
  2888. req, out := c.DescribeOptionGroupsRequest(input)
  2889. err := req.Send()
  2890. return out, err
  2891. }
  2892. // DescribeOptionGroupsPages iterates over the pages of a DescribeOptionGroups operation,
  2893. // calling the "fn" function with the response data for each page. To stop
  2894. // iterating, return false from the fn function.
  2895. //
  2896. // See DescribeOptionGroups method for more information on how to use this operation.
  2897. //
  2898. // Note: This operation can generate multiple requests to a service.
  2899. //
  2900. // // Example iterating over at most 3 pages of a DescribeOptionGroups operation.
  2901. // pageNum := 0
  2902. // err := client.DescribeOptionGroupsPages(params,
  2903. // func(page *DescribeOptionGroupsOutput, lastPage bool) bool {
  2904. // pageNum++
  2905. // fmt.Println(page)
  2906. // return pageNum <= 3
  2907. // })
  2908. //
  2909. func (c *RDS) DescribeOptionGroupsPages(input *DescribeOptionGroupsInput, fn func(p *DescribeOptionGroupsOutput, lastPage bool) (shouldContinue bool)) error {
  2910. page, _ := c.DescribeOptionGroupsRequest(input)
  2911. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2912. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2913. return fn(p.(*DescribeOptionGroupsOutput), lastPage)
  2914. })
  2915. }
  2916. const opDescribeOrderableDBInstanceOptions = "DescribeOrderableDBInstanceOptions"
  2917. // DescribeOrderableDBInstanceOptionsRequest generates a "aws/request.Request" representing the
  2918. // client's request for the DescribeOrderableDBInstanceOptions operation. The "output" return
  2919. // value can be used to capture response data after the request's "Send" method
  2920. // is called.
  2921. //
  2922. // Creating a request object using this method should be used when you want to inject
  2923. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2924. // access properties on the request object before or after sending the request. If
  2925. // you just want the service response, call the DescribeOrderableDBInstanceOptions method directly
  2926. // instead.
  2927. //
  2928. // Note: You must call the "Send" method on the returned request object in order
  2929. // to execute the request.
  2930. //
  2931. // // Example sending a request using the DescribeOrderableDBInstanceOptionsRequest method.
  2932. // req, resp := client.DescribeOrderableDBInstanceOptionsRequest(params)
  2933. //
  2934. // err := req.Send()
  2935. // if err == nil { // resp is now filled
  2936. // fmt.Println(resp)
  2937. // }
  2938. //
  2939. func (c *RDS) DescribeOrderableDBInstanceOptionsRequest(input *DescribeOrderableDBInstanceOptionsInput) (req *request.Request, output *DescribeOrderableDBInstanceOptionsOutput) {
  2940. op := &request.Operation{
  2941. Name: opDescribeOrderableDBInstanceOptions,
  2942. HTTPMethod: "POST",
  2943. HTTPPath: "/",
  2944. Paginator: &request.Paginator{
  2945. InputTokens: []string{"Marker"},
  2946. OutputTokens: []string{"Marker"},
  2947. LimitToken: "MaxRecords",
  2948. TruncationToken: "",
  2949. },
  2950. }
  2951. if input == nil {
  2952. input = &DescribeOrderableDBInstanceOptionsInput{}
  2953. }
  2954. req = c.newRequest(op, input, output)
  2955. output = &DescribeOrderableDBInstanceOptionsOutput{}
  2956. req.Data = output
  2957. return
  2958. }
  2959. // Returns a list of orderable DB instance options for the specified engine.
  2960. func (c *RDS) DescribeOrderableDBInstanceOptions(input *DescribeOrderableDBInstanceOptionsInput) (*DescribeOrderableDBInstanceOptionsOutput, error) {
  2961. req, out := c.DescribeOrderableDBInstanceOptionsRequest(input)
  2962. err := req.Send()
  2963. return out, err
  2964. }
  2965. // DescribeOrderableDBInstanceOptionsPages iterates over the pages of a DescribeOrderableDBInstanceOptions operation,
  2966. // calling the "fn" function with the response data for each page. To stop
  2967. // iterating, return false from the fn function.
  2968. //
  2969. // See DescribeOrderableDBInstanceOptions method for more information on how to use this operation.
  2970. //
  2971. // Note: This operation can generate multiple requests to a service.
  2972. //
  2973. // // Example iterating over at most 3 pages of a DescribeOrderableDBInstanceOptions operation.
  2974. // pageNum := 0
  2975. // err := client.DescribeOrderableDBInstanceOptionsPages(params,
  2976. // func(page *DescribeOrderableDBInstanceOptionsOutput, lastPage bool) bool {
  2977. // pageNum++
  2978. // fmt.Println(page)
  2979. // return pageNum <= 3
  2980. // })
  2981. //
  2982. func (c *RDS) DescribeOrderableDBInstanceOptionsPages(input *DescribeOrderableDBInstanceOptionsInput, fn func(p *DescribeOrderableDBInstanceOptionsOutput, lastPage bool) (shouldContinue bool)) error {
  2983. page, _ := c.DescribeOrderableDBInstanceOptionsRequest(input)
  2984. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2985. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2986. return fn(p.(*DescribeOrderableDBInstanceOptionsOutput), lastPage)
  2987. })
  2988. }
  2989. const opDescribePendingMaintenanceActions = "DescribePendingMaintenanceActions"
  2990. // DescribePendingMaintenanceActionsRequest generates a "aws/request.Request" representing the
  2991. // client's request for the DescribePendingMaintenanceActions operation. The "output" return
  2992. // value can be used to capture response data after the request's "Send" method
  2993. // is called.
  2994. //
  2995. // Creating a request object using this method should be used when you want to inject
  2996. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2997. // access properties on the request object before or after sending the request. If
  2998. // you just want the service response, call the DescribePendingMaintenanceActions method directly
  2999. // instead.
  3000. //
  3001. // Note: You must call the "Send" method on the returned request object in order
  3002. // to execute the request.
  3003. //
  3004. // // Example sending a request using the DescribePendingMaintenanceActionsRequest method.
  3005. // req, resp := client.DescribePendingMaintenanceActionsRequest(params)
  3006. //
  3007. // err := req.Send()
  3008. // if err == nil { // resp is now filled
  3009. // fmt.Println(resp)
  3010. // }
  3011. //
  3012. func (c *RDS) DescribePendingMaintenanceActionsRequest(input *DescribePendingMaintenanceActionsInput) (req *request.Request, output *DescribePendingMaintenanceActionsOutput) {
  3013. op := &request.Operation{
  3014. Name: opDescribePendingMaintenanceActions,
  3015. HTTPMethod: "POST",
  3016. HTTPPath: "/",
  3017. }
  3018. if input == nil {
  3019. input = &DescribePendingMaintenanceActionsInput{}
  3020. }
  3021. req = c.newRequest(op, input, output)
  3022. output = &DescribePendingMaintenanceActionsOutput{}
  3023. req.Data = output
  3024. return
  3025. }
  3026. // Returns a list of resources (for example, DB instances) that have at least
  3027. // one pending maintenance action.
  3028. func (c *RDS) DescribePendingMaintenanceActions(input *DescribePendingMaintenanceActionsInput) (*DescribePendingMaintenanceActionsOutput, error) {
  3029. req, out := c.DescribePendingMaintenanceActionsRequest(input)
  3030. err := req.Send()
  3031. return out, err
  3032. }
  3033. const opDescribeReservedDBInstances = "DescribeReservedDBInstances"
  3034. // DescribeReservedDBInstancesRequest generates a "aws/request.Request" representing the
  3035. // client's request for the DescribeReservedDBInstances operation. The "output" return
  3036. // value can be used to capture response data after the request's "Send" method
  3037. // is called.
  3038. //
  3039. // Creating a request object using this method should be used when you want to inject
  3040. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3041. // access properties on the request object before or after sending the request. If
  3042. // you just want the service response, call the DescribeReservedDBInstances method directly
  3043. // instead.
  3044. //
  3045. // Note: You must call the "Send" method on the returned request object in order
  3046. // to execute the request.
  3047. //
  3048. // // Example sending a request using the DescribeReservedDBInstancesRequest method.
  3049. // req, resp := client.DescribeReservedDBInstancesRequest(params)
  3050. //
  3051. // err := req.Send()
  3052. // if err == nil { // resp is now filled
  3053. // fmt.Println(resp)
  3054. // }
  3055. //
  3056. func (c *RDS) DescribeReservedDBInstancesRequest(input *DescribeReservedDBInstancesInput) (req *request.Request, output *DescribeReservedDBInstancesOutput) {
  3057. op := &request.Operation{
  3058. Name: opDescribeReservedDBInstances,
  3059. HTTPMethod: "POST",
  3060. HTTPPath: "/",
  3061. Paginator: &request.Paginator{
  3062. InputTokens: []string{"Marker"},
  3063. OutputTokens: []string{"Marker"},
  3064. LimitToken: "MaxRecords",
  3065. TruncationToken: "",
  3066. },
  3067. }
  3068. if input == nil {
  3069. input = &DescribeReservedDBInstancesInput{}
  3070. }
  3071. req = c.newRequest(op, input, output)
  3072. output = &DescribeReservedDBInstancesOutput{}
  3073. req.Data = output
  3074. return
  3075. }
  3076. // Returns information about reserved DB instances for this account, or about
  3077. // a specified reserved DB instance.
  3078. func (c *RDS) DescribeReservedDBInstances(input *DescribeReservedDBInstancesInput) (*DescribeReservedDBInstancesOutput, error) {
  3079. req, out := c.DescribeReservedDBInstancesRequest(input)
  3080. err := req.Send()
  3081. return out, err
  3082. }
  3083. // DescribeReservedDBInstancesPages iterates over the pages of a DescribeReservedDBInstances operation,
  3084. // calling the "fn" function with the response data for each page. To stop
  3085. // iterating, return false from the fn function.
  3086. //
  3087. // See DescribeReservedDBInstances method for more information on how to use this operation.
  3088. //
  3089. // Note: This operation can generate multiple requests to a service.
  3090. //
  3091. // // Example iterating over at most 3 pages of a DescribeReservedDBInstances operation.
  3092. // pageNum := 0
  3093. // err := client.DescribeReservedDBInstancesPages(params,
  3094. // func(page *DescribeReservedDBInstancesOutput, lastPage bool) bool {
  3095. // pageNum++
  3096. // fmt.Println(page)
  3097. // return pageNum <= 3
  3098. // })
  3099. //
  3100. func (c *RDS) DescribeReservedDBInstancesPages(input *DescribeReservedDBInstancesInput, fn func(p *DescribeReservedDBInstancesOutput, lastPage bool) (shouldContinue bool)) error {
  3101. page, _ := c.DescribeReservedDBInstancesRequest(input)
  3102. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  3103. return page.EachPage(func(p interface{}, lastPage bool) bool {
  3104. return fn(p.(*DescribeReservedDBInstancesOutput), lastPage)
  3105. })
  3106. }
  3107. const opDescribeReservedDBInstancesOfferings = "DescribeReservedDBInstancesOfferings"
  3108. // DescribeReservedDBInstancesOfferingsRequest generates a "aws/request.Request" representing the
  3109. // client's request for the DescribeReservedDBInstancesOfferings operation. The "output" return
  3110. // value can be used to capture response data after the request's "Send" method
  3111. // is called.
  3112. //
  3113. // Creating a request object using this method should be used when you want to inject
  3114. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3115. // access properties on the request object before or after sending the request. If
  3116. // you just want the service response, call the DescribeReservedDBInstancesOfferings method directly
  3117. // instead.
  3118. //
  3119. // Note: You must call the "Send" method on the returned request object in order
  3120. // to execute the request.
  3121. //
  3122. // // Example sending a request using the DescribeReservedDBInstancesOfferingsRequest method.
  3123. // req, resp := client.DescribeReservedDBInstancesOfferingsRequest(params)
  3124. //
  3125. // err := req.Send()
  3126. // if err == nil { // resp is now filled
  3127. // fmt.Println(resp)
  3128. // }
  3129. //
  3130. func (c *RDS) DescribeReservedDBInstancesOfferingsRequest(input *DescribeReservedDBInstancesOfferingsInput) (req *request.Request, output *DescribeReservedDBInstancesOfferingsOutput) {
  3131. op := &request.Operation{
  3132. Name: opDescribeReservedDBInstancesOfferings,
  3133. HTTPMethod: "POST",
  3134. HTTPPath: "/",
  3135. Paginator: &request.Paginator{
  3136. InputTokens: []string{"Marker"},
  3137. OutputTokens: []string{"Marker"},
  3138. LimitToken: "MaxRecords",
  3139. TruncationToken: "",
  3140. },
  3141. }
  3142. if input == nil {
  3143. input = &DescribeReservedDBInstancesOfferingsInput{}
  3144. }
  3145. req = c.newRequest(op, input, output)
  3146. output = &DescribeReservedDBInstancesOfferingsOutput{}
  3147. req.Data = output
  3148. return
  3149. }
  3150. // Lists available reserved DB instance offerings.
  3151. func (c *RDS) DescribeReservedDBInstancesOfferings(input *DescribeReservedDBInstancesOfferingsInput) (*DescribeReservedDBInstancesOfferingsOutput, error) {
  3152. req, out := c.DescribeReservedDBInstancesOfferingsRequest(input)
  3153. err := req.Send()
  3154. return out, err
  3155. }
  3156. // DescribeReservedDBInstancesOfferingsPages iterates over the pages of a DescribeReservedDBInstancesOfferings operation,
  3157. // calling the "fn" function with the response data for each page. To stop
  3158. // iterating, return false from the fn function.
  3159. //
  3160. // See DescribeReservedDBInstancesOfferings method for more information on how to use this operation.
  3161. //
  3162. // Note: This operation can generate multiple requests to a service.
  3163. //
  3164. // // Example iterating over at most 3 pages of a DescribeReservedDBInstancesOfferings operation.
  3165. // pageNum := 0
  3166. // err := client.DescribeReservedDBInstancesOfferingsPages(params,
  3167. // func(page *DescribeReservedDBInstancesOfferingsOutput, lastPage bool) bool {
  3168. // pageNum++
  3169. // fmt.Println(page)
  3170. // return pageNum <= 3
  3171. // })
  3172. //
  3173. func (c *RDS) DescribeReservedDBInstancesOfferingsPages(input *DescribeReservedDBInstancesOfferingsInput, fn func(p *DescribeReservedDBInstancesOfferingsOutput, lastPage bool) (shouldContinue bool)) error {
  3174. page, _ := c.DescribeReservedDBInstancesOfferingsRequest(input)
  3175. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  3176. return page.EachPage(func(p interface{}, lastPage bool) bool {
  3177. return fn(p.(*DescribeReservedDBInstancesOfferingsOutput), lastPage)
  3178. })
  3179. }
  3180. const opDownloadDBLogFilePortion = "DownloadDBLogFilePortion"
  3181. // DownloadDBLogFilePortionRequest generates a "aws/request.Request" representing the
  3182. // client's request for the DownloadDBLogFilePortion operation. The "output" return
  3183. // value can be used to capture response data after the request's "Send" method
  3184. // is called.
  3185. //
  3186. // Creating a request object using this method should be used when you want to inject
  3187. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3188. // access properties on the request object before or after sending the request. If
  3189. // you just want the service response, call the DownloadDBLogFilePortion method directly
  3190. // instead.
  3191. //
  3192. // Note: You must call the "Send" method on the returned request object in order
  3193. // to execute the request.
  3194. //
  3195. // // Example sending a request using the DownloadDBLogFilePortionRequest method.
  3196. // req, resp := client.DownloadDBLogFilePortionRequest(params)
  3197. //
  3198. // err := req.Send()
  3199. // if err == nil { // resp is now filled
  3200. // fmt.Println(resp)
  3201. // }
  3202. //
  3203. func (c *RDS) DownloadDBLogFilePortionRequest(input *DownloadDBLogFilePortionInput) (req *request.Request, output *DownloadDBLogFilePortionOutput) {
  3204. op := &request.Operation{
  3205. Name: opDownloadDBLogFilePortion,
  3206. HTTPMethod: "POST",
  3207. HTTPPath: "/",
  3208. Paginator: &request.Paginator{
  3209. InputTokens: []string{"Marker"},
  3210. OutputTokens: []string{"Marker"},
  3211. LimitToken: "NumberOfLines",
  3212. TruncationToken: "AdditionalDataPending",
  3213. },
  3214. }
  3215. if input == nil {
  3216. input = &DownloadDBLogFilePortionInput{}
  3217. }
  3218. req = c.newRequest(op, input, output)
  3219. output = &DownloadDBLogFilePortionOutput{}
  3220. req.Data = output
  3221. return
  3222. }
  3223. // Downloads all or a portion of the specified log file, up to 1 MB in size.
  3224. func (c *RDS) DownloadDBLogFilePortion(input *DownloadDBLogFilePortionInput) (*DownloadDBLogFilePortionOutput, error) {
  3225. req, out := c.DownloadDBLogFilePortionRequest(input)
  3226. err := req.Send()
  3227. return out, err
  3228. }
  3229. // DownloadDBLogFilePortionPages iterates over the pages of a DownloadDBLogFilePortion operation,
  3230. // calling the "fn" function with the response data for each page. To stop
  3231. // iterating, return false from the fn function.
  3232. //
  3233. // See DownloadDBLogFilePortion method for more information on how to use this operation.
  3234. //
  3235. // Note: This operation can generate multiple requests to a service.
  3236. //
  3237. // // Example iterating over at most 3 pages of a DownloadDBLogFilePortion operation.
  3238. // pageNum := 0
  3239. // err := client.DownloadDBLogFilePortionPages(params,
  3240. // func(page *DownloadDBLogFilePortionOutput, lastPage bool) bool {
  3241. // pageNum++
  3242. // fmt.Println(page)
  3243. // return pageNum <= 3
  3244. // })
  3245. //
  3246. func (c *RDS) DownloadDBLogFilePortionPages(input *DownloadDBLogFilePortionInput, fn func(p *DownloadDBLogFilePortionOutput, lastPage bool) (shouldContinue bool)) error {
  3247. page, _ := c.DownloadDBLogFilePortionRequest(input)
  3248. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  3249. return page.EachPage(func(p interface{}, lastPage bool) bool {
  3250. return fn(p.(*DownloadDBLogFilePortionOutput), lastPage)
  3251. })
  3252. }
  3253. const opFailoverDBCluster = "FailoverDBCluster"
  3254. // FailoverDBClusterRequest generates a "aws/request.Request" representing the
  3255. // client's request for the FailoverDBCluster operation. The "output" return
  3256. // value can be used to capture response data after the request's "Send" method
  3257. // is called.
  3258. //
  3259. // Creating a request object using this method should be used when you want to inject
  3260. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3261. // access properties on the request object before or after sending the request. If
  3262. // you just want the service response, call the FailoverDBCluster method directly
  3263. // instead.
  3264. //
  3265. // Note: You must call the "Send" method on the returned request object in order
  3266. // to execute the request.
  3267. //
  3268. // // Example sending a request using the FailoverDBClusterRequest method.
  3269. // req, resp := client.FailoverDBClusterRequest(params)
  3270. //
  3271. // err := req.Send()
  3272. // if err == nil { // resp is now filled
  3273. // fmt.Println(resp)
  3274. // }
  3275. //
  3276. func (c *RDS) FailoverDBClusterRequest(input *FailoverDBClusterInput) (req *request.Request, output *FailoverDBClusterOutput) {
  3277. op := &request.Operation{
  3278. Name: opFailoverDBCluster,
  3279. HTTPMethod: "POST",
  3280. HTTPPath: "/",
  3281. }
  3282. if input == nil {
  3283. input = &FailoverDBClusterInput{}
  3284. }
  3285. req = c.newRequest(op, input, output)
  3286. output = &FailoverDBClusterOutput{}
  3287. req.Data = output
  3288. return
  3289. }
  3290. // Forces a failover for a DB cluster.
  3291. //
  3292. // A failover for a DB cluster promotes one of the read-only instances in the
  3293. // DB cluster to the master DB instance (the cluster writer) and deletes the
  3294. // current primary instance.
  3295. //
  3296. // Amazon Aurora will automatically fail over to a read-only instance, if one
  3297. // exists, when the primary instance fails. You can force a failover when you
  3298. // want to simulate a failure of a DB instance for testing. Because each instance
  3299. // in a DB cluster has its own endpoint address, you will need to clean up and
  3300. // re-establish any existing connections that use those endpoint addresses when
  3301. // the failover is complete.
  3302. //
  3303. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  3304. // in the Amazon RDS User Guide.
  3305. func (c *RDS) FailoverDBCluster(input *FailoverDBClusterInput) (*FailoverDBClusterOutput, error) {
  3306. req, out := c.FailoverDBClusterRequest(input)
  3307. err := req.Send()
  3308. return out, err
  3309. }
  3310. const opListTagsForResource = "ListTagsForResource"
  3311. // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  3312. // client's request for the ListTagsForResource operation. The "output" return
  3313. // value can be used to capture response data after the request's "Send" method
  3314. // is called.
  3315. //
  3316. // Creating a request object using this method should be used when you want to inject
  3317. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3318. // access properties on the request object before or after sending the request. If
  3319. // you just want the service response, call the ListTagsForResource method directly
  3320. // instead.
  3321. //
  3322. // Note: You must call the "Send" method on the returned request object in order
  3323. // to execute the request.
  3324. //
  3325. // // Example sending a request using the ListTagsForResourceRequest method.
  3326. // req, resp := client.ListTagsForResourceRequest(params)
  3327. //
  3328. // err := req.Send()
  3329. // if err == nil { // resp is now filled
  3330. // fmt.Println(resp)
  3331. // }
  3332. //
  3333. func (c *RDS) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  3334. op := &request.Operation{
  3335. Name: opListTagsForResource,
  3336. HTTPMethod: "POST",
  3337. HTTPPath: "/",
  3338. }
  3339. if input == nil {
  3340. input = &ListTagsForResourceInput{}
  3341. }
  3342. req = c.newRequest(op, input, output)
  3343. output = &ListTagsForResourceOutput{}
  3344. req.Data = output
  3345. return
  3346. }
  3347. // Lists all tags on an Amazon RDS resource.
  3348. //
  3349. // For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS
  3350. // Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html).
  3351. func (c *RDS) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  3352. req, out := c.ListTagsForResourceRequest(input)
  3353. err := req.Send()
  3354. return out, err
  3355. }
  3356. const opModifyDBCluster = "ModifyDBCluster"
  3357. // ModifyDBClusterRequest generates a "aws/request.Request" representing the
  3358. // client's request for the ModifyDBCluster operation. The "output" return
  3359. // value can be used to capture response data after the request's "Send" method
  3360. // is called.
  3361. //
  3362. // Creating a request object using this method should be used when you want to inject
  3363. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3364. // access properties on the request object before or after sending the request. If
  3365. // you just want the service response, call the ModifyDBCluster method directly
  3366. // instead.
  3367. //
  3368. // Note: You must call the "Send" method on the returned request object in order
  3369. // to execute the request.
  3370. //
  3371. // // Example sending a request using the ModifyDBClusterRequest method.
  3372. // req, resp := client.ModifyDBClusterRequest(params)
  3373. //
  3374. // err := req.Send()
  3375. // if err == nil { // resp is now filled
  3376. // fmt.Println(resp)
  3377. // }
  3378. //
  3379. func (c *RDS) ModifyDBClusterRequest(input *ModifyDBClusterInput) (req *request.Request, output *ModifyDBClusterOutput) {
  3380. op := &request.Operation{
  3381. Name: opModifyDBCluster,
  3382. HTTPMethod: "POST",
  3383. HTTPPath: "/",
  3384. }
  3385. if input == nil {
  3386. input = &ModifyDBClusterInput{}
  3387. }
  3388. req = c.newRequest(op, input, output)
  3389. output = &ModifyDBClusterOutput{}
  3390. req.Data = output
  3391. return
  3392. }
  3393. // Modify a setting for an Amazon Aurora DB cluster. You can change one or more
  3394. // database configuration parameters by specifying these parameters and the
  3395. // new values in the request. For more information on Amazon Aurora, see Aurora
  3396. // on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  3397. // in the Amazon RDS User Guide.
  3398. func (c *RDS) ModifyDBCluster(input *ModifyDBClusterInput) (*ModifyDBClusterOutput, error) {
  3399. req, out := c.ModifyDBClusterRequest(input)
  3400. err := req.Send()
  3401. return out, err
  3402. }
  3403. const opModifyDBClusterParameterGroup = "ModifyDBClusterParameterGroup"
  3404. // ModifyDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  3405. // client's request for the ModifyDBClusterParameterGroup operation. The "output" return
  3406. // value can be used to capture response data after the request's "Send" method
  3407. // is called.
  3408. //
  3409. // Creating a request object using this method should be used when you want to inject
  3410. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3411. // access properties on the request object before or after sending the request. If
  3412. // you just want the service response, call the ModifyDBClusterParameterGroup method directly
  3413. // instead.
  3414. //
  3415. // Note: You must call the "Send" method on the returned request object in order
  3416. // to execute the request.
  3417. //
  3418. // // Example sending a request using the ModifyDBClusterParameterGroupRequest method.
  3419. // req, resp := client.ModifyDBClusterParameterGroupRequest(params)
  3420. //
  3421. // err := req.Send()
  3422. // if err == nil { // resp is now filled
  3423. // fmt.Println(resp)
  3424. // }
  3425. //
  3426. func (c *RDS) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParameterGroupInput) (req *request.Request, output *DBClusterParameterGroupNameMessage) {
  3427. op := &request.Operation{
  3428. Name: opModifyDBClusterParameterGroup,
  3429. HTTPMethod: "POST",
  3430. HTTPPath: "/",
  3431. }
  3432. if input == nil {
  3433. input = &ModifyDBClusterParameterGroupInput{}
  3434. }
  3435. req = c.newRequest(op, input, output)
  3436. output = &DBClusterParameterGroupNameMessage{}
  3437. req.Data = output
  3438. return
  3439. }
  3440. // Modifies the parameters of a DB cluster parameter group. To modify more than
  3441. // one parameter, submit a list of the following: ParameterName, ParameterValue,
  3442. // and ApplyMethod. A maximum of 20 parameters can be modified in a single request.
  3443. //
  3444. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  3445. // in the Amazon RDS User Guide.
  3446. //
  3447. // Changes to dynamic parameters are applied immediately. Changes to static
  3448. // parameters require a reboot without failover to the DB cluster associated
  3449. // with the parameter group before the change can take effect.
  3450. //
  3451. // After you create a DB cluster parameter group, you should wait at least
  3452. // 5 minutes before creating your first DB cluster that uses that DB cluster
  3453. // parameter group as the default parameter group. This allows Amazon RDS to
  3454. // fully complete the create action before the parameter group is used as the
  3455. // default for a new DB cluster. This is especially important for parameters
  3456. // that are critical when creating the default database for a DB cluster, such
  3457. // as the character set for the default database defined by the character_set_database
  3458. // parameter. You can use the Parameter Groups option of the Amazon RDS console
  3459. // (https://console.aws.amazon.com/rds/) or the DescribeDBClusterParameters
  3460. // command to verify that your DB cluster parameter group has been created or
  3461. // modified.
  3462. func (c *RDS) ModifyDBClusterParameterGroup(input *ModifyDBClusterParameterGroupInput) (*DBClusterParameterGroupNameMessage, error) {
  3463. req, out := c.ModifyDBClusterParameterGroupRequest(input)
  3464. err := req.Send()
  3465. return out, err
  3466. }
  3467. const opModifyDBClusterSnapshotAttribute = "ModifyDBClusterSnapshotAttribute"
  3468. // ModifyDBClusterSnapshotAttributeRequest generates a "aws/request.Request" representing the
  3469. // client's request for the ModifyDBClusterSnapshotAttribute 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 ModifyDBClusterSnapshotAttribute 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 ModifyDBClusterSnapshotAttributeRequest method.
  3483. // req, resp := client.ModifyDBClusterSnapshotAttributeRequest(params)
  3484. //
  3485. // err := req.Send()
  3486. // if err == nil { // resp is now filled
  3487. // fmt.Println(resp)
  3488. // }
  3489. //
  3490. func (c *RDS) ModifyDBClusterSnapshotAttributeRequest(input *ModifyDBClusterSnapshotAttributeInput) (req *request.Request, output *ModifyDBClusterSnapshotAttributeOutput) {
  3491. op := &request.Operation{
  3492. Name: opModifyDBClusterSnapshotAttribute,
  3493. HTTPMethod: "POST",
  3494. HTTPPath: "/",
  3495. }
  3496. if input == nil {
  3497. input = &ModifyDBClusterSnapshotAttributeInput{}
  3498. }
  3499. req = c.newRequest(op, input, output)
  3500. output = &ModifyDBClusterSnapshotAttributeOutput{}
  3501. req.Data = output
  3502. return
  3503. }
  3504. // Adds an attribute and values to, or removes an attribute and values from,
  3505. // a manual DB cluster snapshot.
  3506. //
  3507. // To share a manual DB cluster snapshot with other AWS accounts, specify restore
  3508. // as the AttributeName and use the ValuesToAdd parameter to add a list of IDs
  3509. // of the AWS accounts that are authorized to restore the manual DB cluster
  3510. // snapshot. Use the value all to make the manual DB cluster snapshot public,
  3511. // which means that it can be copied or restored by all AWS accounts. Do not
  3512. // add the all value for any manual DB cluster snapshots that contain private
  3513. // information that you don't want available to all AWS accounts.
  3514. //
  3515. // To view which AWS accounts have access to copy or restore a manual DB cluster
  3516. // snapshot, or whether a manual DB cluster snapshot public or private, use
  3517. // the DescribeDBClusterSnapshotAttributes API action.
  3518. //
  3519. // If a manual DB cluster snapshot is encrypted, it cannot be shared.
  3520. func (c *RDS) ModifyDBClusterSnapshotAttribute(input *ModifyDBClusterSnapshotAttributeInput) (*ModifyDBClusterSnapshotAttributeOutput, error) {
  3521. req, out := c.ModifyDBClusterSnapshotAttributeRequest(input)
  3522. err := req.Send()
  3523. return out, err
  3524. }
  3525. const opModifyDBInstance = "ModifyDBInstance"
  3526. // ModifyDBInstanceRequest generates a "aws/request.Request" representing the
  3527. // client's request for the ModifyDBInstance operation. The "output" return
  3528. // value can be used to capture response data after the request's "Send" method
  3529. // is called.
  3530. //
  3531. // Creating a request object using this method should be used when you want to inject
  3532. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3533. // access properties on the request object before or after sending the request. If
  3534. // you just want the service response, call the ModifyDBInstance method directly
  3535. // instead.
  3536. //
  3537. // Note: You must call the "Send" method on the returned request object in order
  3538. // to execute the request.
  3539. //
  3540. // // Example sending a request using the ModifyDBInstanceRequest method.
  3541. // req, resp := client.ModifyDBInstanceRequest(params)
  3542. //
  3543. // err := req.Send()
  3544. // if err == nil { // resp is now filled
  3545. // fmt.Println(resp)
  3546. // }
  3547. //
  3548. func (c *RDS) ModifyDBInstanceRequest(input *ModifyDBInstanceInput) (req *request.Request, output *ModifyDBInstanceOutput) {
  3549. op := &request.Operation{
  3550. Name: opModifyDBInstance,
  3551. HTTPMethod: "POST",
  3552. HTTPPath: "/",
  3553. }
  3554. if input == nil {
  3555. input = &ModifyDBInstanceInput{}
  3556. }
  3557. req = c.newRequest(op, input, output)
  3558. output = &ModifyDBInstanceOutput{}
  3559. req.Data = output
  3560. return
  3561. }
  3562. // Modify settings for a DB instance. You can change one or more database configuration
  3563. // parameters by specifying these parameters and the new values in the request.
  3564. func (c *RDS) ModifyDBInstance(input *ModifyDBInstanceInput) (*ModifyDBInstanceOutput, error) {
  3565. req, out := c.ModifyDBInstanceRequest(input)
  3566. err := req.Send()
  3567. return out, err
  3568. }
  3569. const opModifyDBParameterGroup = "ModifyDBParameterGroup"
  3570. // ModifyDBParameterGroupRequest generates a "aws/request.Request" representing the
  3571. // client's request for the ModifyDBParameterGroup operation. The "output" return
  3572. // value can be used to capture response data after the request's "Send" method
  3573. // is called.
  3574. //
  3575. // Creating a request object using this method should be used when you want to inject
  3576. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3577. // access properties on the request object before or after sending the request. If
  3578. // you just want the service response, call the ModifyDBParameterGroup method directly
  3579. // instead.
  3580. //
  3581. // Note: You must call the "Send" method on the returned request object in order
  3582. // to execute the request.
  3583. //
  3584. // // Example sending a request using the ModifyDBParameterGroupRequest method.
  3585. // req, resp := client.ModifyDBParameterGroupRequest(params)
  3586. //
  3587. // err := req.Send()
  3588. // if err == nil { // resp is now filled
  3589. // fmt.Println(resp)
  3590. // }
  3591. //
  3592. func (c *RDS) ModifyDBParameterGroupRequest(input *ModifyDBParameterGroupInput) (req *request.Request, output *DBParameterGroupNameMessage) {
  3593. op := &request.Operation{
  3594. Name: opModifyDBParameterGroup,
  3595. HTTPMethod: "POST",
  3596. HTTPPath: "/",
  3597. }
  3598. if input == nil {
  3599. input = &ModifyDBParameterGroupInput{}
  3600. }
  3601. req = c.newRequest(op, input, output)
  3602. output = &DBParameterGroupNameMessage{}
  3603. req.Data = output
  3604. return
  3605. }
  3606. // Modifies the parameters of a DB parameter group. To modify more than one
  3607. // parameter, submit a list of the following: ParameterName, ParameterValue,
  3608. // and ApplyMethod. A maximum of 20 parameters can be modified in a single request.
  3609. //
  3610. // Changes to dynamic parameters are applied immediately. Changes to static
  3611. // parameters require a reboot without failover to the DB instance associated
  3612. // with the parameter group before the change can take effect.
  3613. //
  3614. // After you modify a DB parameter group, you should wait at least 5 minutes
  3615. // before creating your first DB instance that uses that DB parameter group
  3616. // as the default parameter group. This allows Amazon RDS to fully complete
  3617. // the modify action before the parameter group is used as the default for a
  3618. // new DB instance. This is especially important for parameters that are critical
  3619. // when creating the default database for a DB instance, such as the character
  3620. // set for the default database defined by the character_set_database parameter.
  3621. // You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/)
  3622. // or the DescribeDBParameters command to verify that your DB parameter group
  3623. // has been created or modified.
  3624. func (c *RDS) ModifyDBParameterGroup(input *ModifyDBParameterGroupInput) (*DBParameterGroupNameMessage, error) {
  3625. req, out := c.ModifyDBParameterGroupRequest(input)
  3626. err := req.Send()
  3627. return out, err
  3628. }
  3629. const opModifyDBSnapshotAttribute = "ModifyDBSnapshotAttribute"
  3630. // ModifyDBSnapshotAttributeRequest generates a "aws/request.Request" representing the
  3631. // client's request for the ModifyDBSnapshotAttribute operation. The "output" return
  3632. // value can be used to capture response data after the request's "Send" method
  3633. // is called.
  3634. //
  3635. // Creating a request object using this method should be used when you want to inject
  3636. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3637. // access properties on the request object before or after sending the request. If
  3638. // you just want the service response, call the ModifyDBSnapshotAttribute method directly
  3639. // instead.
  3640. //
  3641. // Note: You must call the "Send" method on the returned request object in order
  3642. // to execute the request.
  3643. //
  3644. // // Example sending a request using the ModifyDBSnapshotAttributeRequest method.
  3645. // req, resp := client.ModifyDBSnapshotAttributeRequest(params)
  3646. //
  3647. // err := req.Send()
  3648. // if err == nil { // resp is now filled
  3649. // fmt.Println(resp)
  3650. // }
  3651. //
  3652. func (c *RDS) ModifyDBSnapshotAttributeRequest(input *ModifyDBSnapshotAttributeInput) (req *request.Request, output *ModifyDBSnapshotAttributeOutput) {
  3653. op := &request.Operation{
  3654. Name: opModifyDBSnapshotAttribute,
  3655. HTTPMethod: "POST",
  3656. HTTPPath: "/",
  3657. }
  3658. if input == nil {
  3659. input = &ModifyDBSnapshotAttributeInput{}
  3660. }
  3661. req = c.newRequest(op, input, output)
  3662. output = &ModifyDBSnapshotAttributeOutput{}
  3663. req.Data = output
  3664. return
  3665. }
  3666. // Adds an attribute and values to, or removes an attribute and values from,
  3667. // a manual DB snapshot.
  3668. //
  3669. // To share a manual DB snapshot with other AWS accounts, specify restore as
  3670. // the AttributeName and use the ValuesToAdd parameter to add a list of IDs
  3671. // of the AWS accounts that are authorized to restore the manual DB snapshot.
  3672. // Uses the value all to make the manual DB snapshot public, which means it
  3673. // can be copied or restored by all AWS accounts. Do not add the all value for
  3674. // any manual DB snapshots that contain private information that you don't want
  3675. // available to all AWS accounts.
  3676. //
  3677. // To view which AWS accounts have access to copy or restore a manual DB snapshot,
  3678. // or whether a manual DB snapshot public or private, use the DescribeDBSnapshotAttributes
  3679. // API action.
  3680. //
  3681. // If the manual DB snapshot is encrypted, it cannot be shared.
  3682. func (c *RDS) ModifyDBSnapshotAttribute(input *ModifyDBSnapshotAttributeInput) (*ModifyDBSnapshotAttributeOutput, error) {
  3683. req, out := c.ModifyDBSnapshotAttributeRequest(input)
  3684. err := req.Send()
  3685. return out, err
  3686. }
  3687. const opModifyDBSubnetGroup = "ModifyDBSubnetGroup"
  3688. // ModifyDBSubnetGroupRequest generates a "aws/request.Request" representing the
  3689. // client's request for the ModifyDBSubnetGroup operation. The "output" return
  3690. // value can be used to capture response data after the request's "Send" method
  3691. // is called.
  3692. //
  3693. // Creating a request object using this method should be used when you want to inject
  3694. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3695. // access properties on the request object before or after sending the request. If
  3696. // you just want the service response, call the ModifyDBSubnetGroup method directly
  3697. // instead.
  3698. //
  3699. // Note: You must call the "Send" method on the returned request object in order
  3700. // to execute the request.
  3701. //
  3702. // // Example sending a request using the ModifyDBSubnetGroupRequest method.
  3703. // req, resp := client.ModifyDBSubnetGroupRequest(params)
  3704. //
  3705. // err := req.Send()
  3706. // if err == nil { // resp is now filled
  3707. // fmt.Println(resp)
  3708. // }
  3709. //
  3710. func (c *RDS) ModifyDBSubnetGroupRequest(input *ModifyDBSubnetGroupInput) (req *request.Request, output *ModifyDBSubnetGroupOutput) {
  3711. op := &request.Operation{
  3712. Name: opModifyDBSubnetGroup,
  3713. HTTPMethod: "POST",
  3714. HTTPPath: "/",
  3715. }
  3716. if input == nil {
  3717. input = &ModifyDBSubnetGroupInput{}
  3718. }
  3719. req = c.newRequest(op, input, output)
  3720. output = &ModifyDBSubnetGroupOutput{}
  3721. req.Data = output
  3722. return
  3723. }
  3724. // Modifies an existing DB subnet group. DB subnet groups must contain at least
  3725. // one subnet in at least two AZs in the region.
  3726. func (c *RDS) ModifyDBSubnetGroup(input *ModifyDBSubnetGroupInput) (*ModifyDBSubnetGroupOutput, error) {
  3727. req, out := c.ModifyDBSubnetGroupRequest(input)
  3728. err := req.Send()
  3729. return out, err
  3730. }
  3731. const opModifyEventSubscription = "ModifyEventSubscription"
  3732. // ModifyEventSubscriptionRequest generates a "aws/request.Request" representing the
  3733. // client's request for the ModifyEventSubscription operation. The "output" return
  3734. // value can be used to capture response data after the request's "Send" method
  3735. // is called.
  3736. //
  3737. // Creating a request object using this method should be used when you want to inject
  3738. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3739. // access properties on the request object before or after sending the request. If
  3740. // you just want the service response, call the ModifyEventSubscription method directly
  3741. // instead.
  3742. //
  3743. // Note: You must call the "Send" method on the returned request object in order
  3744. // to execute the request.
  3745. //
  3746. // // Example sending a request using the ModifyEventSubscriptionRequest method.
  3747. // req, resp := client.ModifyEventSubscriptionRequest(params)
  3748. //
  3749. // err := req.Send()
  3750. // if err == nil { // resp is now filled
  3751. // fmt.Println(resp)
  3752. // }
  3753. //
  3754. func (c *RDS) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput) (req *request.Request, output *ModifyEventSubscriptionOutput) {
  3755. op := &request.Operation{
  3756. Name: opModifyEventSubscription,
  3757. HTTPMethod: "POST",
  3758. HTTPPath: "/",
  3759. }
  3760. if input == nil {
  3761. input = &ModifyEventSubscriptionInput{}
  3762. }
  3763. req = c.newRequest(op, input, output)
  3764. output = &ModifyEventSubscriptionOutput{}
  3765. req.Data = output
  3766. return
  3767. }
  3768. // Modifies an existing RDS event notification subscription. Note that you cannot
  3769. // modify the source identifiers using this call; to change source identifiers
  3770. // for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription
  3771. // calls.
  3772. //
  3773. // You can see a list of the event categories for a given SourceType in the
  3774. // Events (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html)
  3775. // topic in the Amazon RDS User Guide or by using the DescribeEventCategories
  3776. // action.
  3777. func (c *RDS) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error) {
  3778. req, out := c.ModifyEventSubscriptionRequest(input)
  3779. err := req.Send()
  3780. return out, err
  3781. }
  3782. const opModifyOptionGroup = "ModifyOptionGroup"
  3783. // ModifyOptionGroupRequest generates a "aws/request.Request" representing the
  3784. // client's request for the ModifyOptionGroup operation. The "output" return
  3785. // value can be used to capture response data after the request's "Send" method
  3786. // is called.
  3787. //
  3788. // Creating a request object using this method should be used when you want to inject
  3789. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3790. // access properties on the request object before or after sending the request. If
  3791. // you just want the service response, call the ModifyOptionGroup method directly
  3792. // instead.
  3793. //
  3794. // Note: You must call the "Send" method on the returned request object in order
  3795. // to execute the request.
  3796. //
  3797. // // Example sending a request using the ModifyOptionGroupRequest method.
  3798. // req, resp := client.ModifyOptionGroupRequest(params)
  3799. //
  3800. // err := req.Send()
  3801. // if err == nil { // resp is now filled
  3802. // fmt.Println(resp)
  3803. // }
  3804. //
  3805. func (c *RDS) ModifyOptionGroupRequest(input *ModifyOptionGroupInput) (req *request.Request, output *ModifyOptionGroupOutput) {
  3806. op := &request.Operation{
  3807. Name: opModifyOptionGroup,
  3808. HTTPMethod: "POST",
  3809. HTTPPath: "/",
  3810. }
  3811. if input == nil {
  3812. input = &ModifyOptionGroupInput{}
  3813. }
  3814. req = c.newRequest(op, input, output)
  3815. output = &ModifyOptionGroupOutput{}
  3816. req.Data = output
  3817. return
  3818. }
  3819. // Modifies an existing option group.
  3820. func (c *RDS) ModifyOptionGroup(input *ModifyOptionGroupInput) (*ModifyOptionGroupOutput, error) {
  3821. req, out := c.ModifyOptionGroupRequest(input)
  3822. err := req.Send()
  3823. return out, err
  3824. }
  3825. const opPromoteReadReplica = "PromoteReadReplica"
  3826. // PromoteReadReplicaRequest generates a "aws/request.Request" representing the
  3827. // client's request for the PromoteReadReplica operation. The "output" return
  3828. // value can be used to capture response data after the request's "Send" method
  3829. // is called.
  3830. //
  3831. // Creating a request object using this method should be used when you want to inject
  3832. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3833. // access properties on the request object before or after sending the request. If
  3834. // you just want the service response, call the PromoteReadReplica method directly
  3835. // instead.
  3836. //
  3837. // Note: You must call the "Send" method on the returned request object in order
  3838. // to execute the request.
  3839. //
  3840. // // Example sending a request using the PromoteReadReplicaRequest method.
  3841. // req, resp := client.PromoteReadReplicaRequest(params)
  3842. //
  3843. // err := req.Send()
  3844. // if err == nil { // resp is now filled
  3845. // fmt.Println(resp)
  3846. // }
  3847. //
  3848. func (c *RDS) PromoteReadReplicaRequest(input *PromoteReadReplicaInput) (req *request.Request, output *PromoteReadReplicaOutput) {
  3849. op := &request.Operation{
  3850. Name: opPromoteReadReplica,
  3851. HTTPMethod: "POST",
  3852. HTTPPath: "/",
  3853. }
  3854. if input == nil {
  3855. input = &PromoteReadReplicaInput{}
  3856. }
  3857. req = c.newRequest(op, input, output)
  3858. output = &PromoteReadReplicaOutput{}
  3859. req.Data = output
  3860. return
  3861. }
  3862. // Promotes a Read Replica DB instance to a standalone DB instance.
  3863. //
  3864. // We recommend that you enable automated backups on your Read Replica before
  3865. // promoting the Read Replica. This ensures that no backup is taken during the
  3866. // promotion process. Once the instance is promoted to a primary instance, backups
  3867. // are taken based on your backup settings.
  3868. func (c *RDS) PromoteReadReplica(input *PromoteReadReplicaInput) (*PromoteReadReplicaOutput, error) {
  3869. req, out := c.PromoteReadReplicaRequest(input)
  3870. err := req.Send()
  3871. return out, err
  3872. }
  3873. const opPromoteReadReplicaDBCluster = "PromoteReadReplicaDBCluster"
  3874. // PromoteReadReplicaDBClusterRequest generates a "aws/request.Request" representing the
  3875. // client's request for the PromoteReadReplicaDBCluster operation. The "output" return
  3876. // value can be used to capture response data after the request's "Send" method
  3877. // is called.
  3878. //
  3879. // Creating a request object using this method should be used when you want to inject
  3880. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3881. // access properties on the request object before or after sending the request. If
  3882. // you just want the service response, call the PromoteReadReplicaDBCluster method directly
  3883. // instead.
  3884. //
  3885. // Note: You must call the "Send" method on the returned request object in order
  3886. // to execute the request.
  3887. //
  3888. // // Example sending a request using the PromoteReadReplicaDBClusterRequest method.
  3889. // req, resp := client.PromoteReadReplicaDBClusterRequest(params)
  3890. //
  3891. // err := req.Send()
  3892. // if err == nil { // resp is now filled
  3893. // fmt.Println(resp)
  3894. // }
  3895. //
  3896. func (c *RDS) PromoteReadReplicaDBClusterRequest(input *PromoteReadReplicaDBClusterInput) (req *request.Request, output *PromoteReadReplicaDBClusterOutput) {
  3897. op := &request.Operation{
  3898. Name: opPromoteReadReplicaDBCluster,
  3899. HTTPMethod: "POST",
  3900. HTTPPath: "/",
  3901. }
  3902. if input == nil {
  3903. input = &PromoteReadReplicaDBClusterInput{}
  3904. }
  3905. req = c.newRequest(op, input, output)
  3906. output = &PromoteReadReplicaDBClusterOutput{}
  3907. req.Data = output
  3908. return
  3909. }
  3910. // Promotes a Read Replica DB cluster to a standalone DB cluster.
  3911. func (c *RDS) PromoteReadReplicaDBCluster(input *PromoteReadReplicaDBClusterInput) (*PromoteReadReplicaDBClusterOutput, error) {
  3912. req, out := c.PromoteReadReplicaDBClusterRequest(input)
  3913. err := req.Send()
  3914. return out, err
  3915. }
  3916. const opPurchaseReservedDBInstancesOffering = "PurchaseReservedDBInstancesOffering"
  3917. // PurchaseReservedDBInstancesOfferingRequest generates a "aws/request.Request" representing the
  3918. // client's request for the PurchaseReservedDBInstancesOffering operation. The "output" return
  3919. // value can be used to capture response data after the request's "Send" method
  3920. // is called.
  3921. //
  3922. // Creating a request object using this method should be used when you want to inject
  3923. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3924. // access properties on the request object before or after sending the request. If
  3925. // you just want the service response, call the PurchaseReservedDBInstancesOffering method directly
  3926. // instead.
  3927. //
  3928. // Note: You must call the "Send" method on the returned request object in order
  3929. // to execute the request.
  3930. //
  3931. // // Example sending a request using the PurchaseReservedDBInstancesOfferingRequest method.
  3932. // req, resp := client.PurchaseReservedDBInstancesOfferingRequest(params)
  3933. //
  3934. // err := req.Send()
  3935. // if err == nil { // resp is now filled
  3936. // fmt.Println(resp)
  3937. // }
  3938. //
  3939. func (c *RDS) PurchaseReservedDBInstancesOfferingRequest(input *PurchaseReservedDBInstancesOfferingInput) (req *request.Request, output *PurchaseReservedDBInstancesOfferingOutput) {
  3940. op := &request.Operation{
  3941. Name: opPurchaseReservedDBInstancesOffering,
  3942. HTTPMethod: "POST",
  3943. HTTPPath: "/",
  3944. }
  3945. if input == nil {
  3946. input = &PurchaseReservedDBInstancesOfferingInput{}
  3947. }
  3948. req = c.newRequest(op, input, output)
  3949. output = &PurchaseReservedDBInstancesOfferingOutput{}
  3950. req.Data = output
  3951. return
  3952. }
  3953. // Purchases a reserved DB instance offering.
  3954. func (c *RDS) PurchaseReservedDBInstancesOffering(input *PurchaseReservedDBInstancesOfferingInput) (*PurchaseReservedDBInstancesOfferingOutput, error) {
  3955. req, out := c.PurchaseReservedDBInstancesOfferingRequest(input)
  3956. err := req.Send()
  3957. return out, err
  3958. }
  3959. const opRebootDBInstance = "RebootDBInstance"
  3960. // RebootDBInstanceRequest generates a "aws/request.Request" representing the
  3961. // client's request for the RebootDBInstance operation. The "output" return
  3962. // value can be used to capture response data after the request's "Send" method
  3963. // is called.
  3964. //
  3965. // Creating a request object using this method should be used when you want to inject
  3966. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3967. // access properties on the request object before or after sending the request. If
  3968. // you just want the service response, call the RebootDBInstance method directly
  3969. // instead.
  3970. //
  3971. // Note: You must call the "Send" method on the returned request object in order
  3972. // to execute the request.
  3973. //
  3974. // // Example sending a request using the RebootDBInstanceRequest method.
  3975. // req, resp := client.RebootDBInstanceRequest(params)
  3976. //
  3977. // err := req.Send()
  3978. // if err == nil { // resp is now filled
  3979. // fmt.Println(resp)
  3980. // }
  3981. //
  3982. func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *request.Request, output *RebootDBInstanceOutput) {
  3983. op := &request.Operation{
  3984. Name: opRebootDBInstance,
  3985. HTTPMethod: "POST",
  3986. HTTPPath: "/",
  3987. }
  3988. if input == nil {
  3989. input = &RebootDBInstanceInput{}
  3990. }
  3991. req = c.newRequest(op, input, output)
  3992. output = &RebootDBInstanceOutput{}
  3993. req.Data = output
  3994. return
  3995. }
  3996. // Rebooting a DB instance restarts the database engine service. A reboot also
  3997. // applies to the DB instance any modifications to the associated DB parameter
  3998. // group that were pending. Rebooting a DB instance results in a momentary outage
  3999. // of the instance, during which the DB instance status is set to rebooting.
  4000. // If the RDS instance is configured for MultiAZ, it is possible that the reboot
  4001. // will be conducted through a failover. An Amazon RDS event is created when
  4002. // the reboot is completed.
  4003. //
  4004. // If your DB instance is deployed in multiple Availability Zones, you can
  4005. // force a failover from one AZ to the other during the reboot. You might force
  4006. // a failover to test the availability of your DB instance deployment or to
  4007. // restore operations to the original AZ after a failover occurs.
  4008. //
  4009. // The time required to reboot is a function of the specific database engine's
  4010. // crash recovery process. To improve the reboot time, we recommend that you
  4011. // reduce database activities as much as possible during the reboot process
  4012. // to reduce rollback activity for in-transit transactions.
  4013. func (c *RDS) RebootDBInstance(input *RebootDBInstanceInput) (*RebootDBInstanceOutput, error) {
  4014. req, out := c.RebootDBInstanceRequest(input)
  4015. err := req.Send()
  4016. return out, err
  4017. }
  4018. const opRemoveSourceIdentifierFromSubscription = "RemoveSourceIdentifierFromSubscription"
  4019. // RemoveSourceIdentifierFromSubscriptionRequest generates a "aws/request.Request" representing the
  4020. // client's request for the RemoveSourceIdentifierFromSubscription operation. The "output" return
  4021. // value can be used to capture response data after the request's "Send" method
  4022. // is called.
  4023. //
  4024. // Creating a request object using this method should be used when you want to inject
  4025. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4026. // access properties on the request object before or after sending the request. If
  4027. // you just want the service response, call the RemoveSourceIdentifierFromSubscription method directly
  4028. // instead.
  4029. //
  4030. // Note: You must call the "Send" method on the returned request object in order
  4031. // to execute the request.
  4032. //
  4033. // // Example sending a request using the RemoveSourceIdentifierFromSubscriptionRequest method.
  4034. // req, resp := client.RemoveSourceIdentifierFromSubscriptionRequest(params)
  4035. //
  4036. // err := req.Send()
  4037. // if err == nil { // resp is now filled
  4038. // fmt.Println(resp)
  4039. // }
  4040. //
  4041. func (c *RDS) RemoveSourceIdentifierFromSubscriptionRequest(input *RemoveSourceIdentifierFromSubscriptionInput) (req *request.Request, output *RemoveSourceIdentifierFromSubscriptionOutput) {
  4042. op := &request.Operation{
  4043. Name: opRemoveSourceIdentifierFromSubscription,
  4044. HTTPMethod: "POST",
  4045. HTTPPath: "/",
  4046. }
  4047. if input == nil {
  4048. input = &RemoveSourceIdentifierFromSubscriptionInput{}
  4049. }
  4050. req = c.newRequest(op, input, output)
  4051. output = &RemoveSourceIdentifierFromSubscriptionOutput{}
  4052. req.Data = output
  4053. return
  4054. }
  4055. // Removes a source identifier from an existing RDS event notification subscription.
  4056. func (c *RDS) RemoveSourceIdentifierFromSubscription(input *RemoveSourceIdentifierFromSubscriptionInput) (*RemoveSourceIdentifierFromSubscriptionOutput, error) {
  4057. req, out := c.RemoveSourceIdentifierFromSubscriptionRequest(input)
  4058. err := req.Send()
  4059. return out, err
  4060. }
  4061. const opRemoveTagsFromResource = "RemoveTagsFromResource"
  4062. // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
  4063. // client's request for the RemoveTagsFromResource operation. The "output" return
  4064. // value can be used to capture response data after the request's "Send" method
  4065. // is called.
  4066. //
  4067. // Creating a request object using this method should be used when you want to inject
  4068. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4069. // access properties on the request object before or after sending the request. If
  4070. // you just want the service response, call the RemoveTagsFromResource method directly
  4071. // instead.
  4072. //
  4073. // Note: You must call the "Send" method on the returned request object in order
  4074. // to execute the request.
  4075. //
  4076. // // Example sending a request using the RemoveTagsFromResourceRequest method.
  4077. // req, resp := client.RemoveTagsFromResourceRequest(params)
  4078. //
  4079. // err := req.Send()
  4080. // if err == nil { // resp is now filled
  4081. // fmt.Println(resp)
  4082. // }
  4083. //
  4084. func (c *RDS) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
  4085. op := &request.Operation{
  4086. Name: opRemoveTagsFromResource,
  4087. HTTPMethod: "POST",
  4088. HTTPPath: "/",
  4089. }
  4090. if input == nil {
  4091. input = &RemoveTagsFromResourceInput{}
  4092. }
  4093. req = c.newRequest(op, input, output)
  4094. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  4095. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  4096. output = &RemoveTagsFromResourceOutput{}
  4097. req.Data = output
  4098. return
  4099. }
  4100. // Removes metadata tags from an Amazon RDS resource.
  4101. //
  4102. // For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS
  4103. // Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html).
  4104. func (c *RDS) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
  4105. req, out := c.RemoveTagsFromResourceRequest(input)
  4106. err := req.Send()
  4107. return out, err
  4108. }
  4109. const opResetDBClusterParameterGroup = "ResetDBClusterParameterGroup"
  4110. // ResetDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  4111. // client's request for the ResetDBClusterParameterGroup operation. The "output" return
  4112. // value can be used to capture response data after the request's "Send" method
  4113. // is called.
  4114. //
  4115. // Creating a request object using this method should be used when you want to inject
  4116. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4117. // access properties on the request object before or after sending the request. If
  4118. // you just want the service response, call the ResetDBClusterParameterGroup method directly
  4119. // instead.
  4120. //
  4121. // Note: You must call the "Send" method on the returned request object in order
  4122. // to execute the request.
  4123. //
  4124. // // Example sending a request using the ResetDBClusterParameterGroupRequest method.
  4125. // req, resp := client.ResetDBClusterParameterGroupRequest(params)
  4126. //
  4127. // err := req.Send()
  4128. // if err == nil { // resp is now filled
  4129. // fmt.Println(resp)
  4130. // }
  4131. //
  4132. func (c *RDS) ResetDBClusterParameterGroupRequest(input *ResetDBClusterParameterGroupInput) (req *request.Request, output *DBClusterParameterGroupNameMessage) {
  4133. op := &request.Operation{
  4134. Name: opResetDBClusterParameterGroup,
  4135. HTTPMethod: "POST",
  4136. HTTPPath: "/",
  4137. }
  4138. if input == nil {
  4139. input = &ResetDBClusterParameterGroupInput{}
  4140. }
  4141. req = c.newRequest(op, input, output)
  4142. output = &DBClusterParameterGroupNameMessage{}
  4143. req.Data = output
  4144. return
  4145. }
  4146. // Modifies the parameters of a DB cluster parameter group to the default value.
  4147. // To reset specific parameters submit a list of the following: ParameterName
  4148. // and ApplyMethod. To reset the entire DB cluster parameter group, specify
  4149. // the DBClusterParameterGroupName and ResetAllParameters parameters.
  4150. //
  4151. // When resetting the entire group, dynamic parameters are updated immediately
  4152. // and static parameters are set to pending-reboot to take effect on the next
  4153. // DB instance restart or RebootDBInstance request. You must call RebootDBInstance
  4154. // for every DB instance in your DB cluster that you want the updated static
  4155. // parameter to apply to.
  4156. //
  4157. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  4158. // in the Amazon RDS User Guide.
  4159. func (c *RDS) ResetDBClusterParameterGroup(input *ResetDBClusterParameterGroupInput) (*DBClusterParameterGroupNameMessage, error) {
  4160. req, out := c.ResetDBClusterParameterGroupRequest(input)
  4161. err := req.Send()
  4162. return out, err
  4163. }
  4164. const opResetDBParameterGroup = "ResetDBParameterGroup"
  4165. // ResetDBParameterGroupRequest generates a "aws/request.Request" representing the
  4166. // client's request for the ResetDBParameterGroup operation. The "output" return
  4167. // value can be used to capture response data after the request's "Send" method
  4168. // is called.
  4169. //
  4170. // Creating a request object using this method should be used when you want to inject
  4171. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4172. // access properties on the request object before or after sending the request. If
  4173. // you just want the service response, call the ResetDBParameterGroup method directly
  4174. // instead.
  4175. //
  4176. // Note: You must call the "Send" method on the returned request object in order
  4177. // to execute the request.
  4178. //
  4179. // // Example sending a request using the ResetDBParameterGroupRequest method.
  4180. // req, resp := client.ResetDBParameterGroupRequest(params)
  4181. //
  4182. // err := req.Send()
  4183. // if err == nil { // resp is now filled
  4184. // fmt.Println(resp)
  4185. // }
  4186. //
  4187. func (c *RDS) ResetDBParameterGroupRequest(input *ResetDBParameterGroupInput) (req *request.Request, output *DBParameterGroupNameMessage) {
  4188. op := &request.Operation{
  4189. Name: opResetDBParameterGroup,
  4190. HTTPMethod: "POST",
  4191. HTTPPath: "/",
  4192. }
  4193. if input == nil {
  4194. input = &ResetDBParameterGroupInput{}
  4195. }
  4196. req = c.newRequest(op, input, output)
  4197. output = &DBParameterGroupNameMessage{}
  4198. req.Data = output
  4199. return
  4200. }
  4201. // Modifies the parameters of a DB parameter group to the engine/system default
  4202. // value. To reset specific parameters submit a list of the following: ParameterName
  4203. // and ApplyMethod. To reset the entire DB parameter group, specify the DBParameterGroup
  4204. // name and ResetAllParameters parameters. When resetting the entire group,
  4205. // dynamic parameters are updated immediately and static parameters are set
  4206. // to pending-reboot to take effect on the next DB instance restart or RebootDBInstance
  4207. // request.
  4208. func (c *RDS) ResetDBParameterGroup(input *ResetDBParameterGroupInput) (*DBParameterGroupNameMessage, error) {
  4209. req, out := c.ResetDBParameterGroupRequest(input)
  4210. err := req.Send()
  4211. return out, err
  4212. }
  4213. const opRestoreDBClusterFromS3 = "RestoreDBClusterFromS3"
  4214. // RestoreDBClusterFromS3Request generates a "aws/request.Request" representing the
  4215. // client's request for the RestoreDBClusterFromS3 operation. The "output" return
  4216. // value can be used to capture response data after the request's "Send" method
  4217. // is called.
  4218. //
  4219. // Creating a request object using this method should be used when you want to inject
  4220. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4221. // access properties on the request object before or after sending the request. If
  4222. // you just want the service response, call the RestoreDBClusterFromS3 method directly
  4223. // instead.
  4224. //
  4225. // Note: You must call the "Send" method on the returned request object in order
  4226. // to execute the request.
  4227. //
  4228. // // Example sending a request using the RestoreDBClusterFromS3Request method.
  4229. // req, resp := client.RestoreDBClusterFromS3Request(params)
  4230. //
  4231. // err := req.Send()
  4232. // if err == nil { // resp is now filled
  4233. // fmt.Println(resp)
  4234. // }
  4235. //
  4236. func (c *RDS) RestoreDBClusterFromS3Request(input *RestoreDBClusterFromS3Input) (req *request.Request, output *RestoreDBClusterFromS3Output) {
  4237. op := &request.Operation{
  4238. Name: opRestoreDBClusterFromS3,
  4239. HTTPMethod: "POST",
  4240. HTTPPath: "/",
  4241. }
  4242. if input == nil {
  4243. input = &RestoreDBClusterFromS3Input{}
  4244. }
  4245. req = c.newRequest(op, input, output)
  4246. output = &RestoreDBClusterFromS3Output{}
  4247. req.Data = output
  4248. return
  4249. }
  4250. // Creates an Amazon Aurora DB cluster from data stored in an Amazon S3 bucket.
  4251. // Amazon RDS must be authorized to access the Amazon S3 bucket and the data
  4252. // must be created using the Percona XtraBackup utility as described in Migrating
  4253. // Data from an External MySQL Database to an Amazon Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Migrate.html).
  4254. func (c *RDS) RestoreDBClusterFromS3(input *RestoreDBClusterFromS3Input) (*RestoreDBClusterFromS3Output, error) {
  4255. req, out := c.RestoreDBClusterFromS3Request(input)
  4256. err := req.Send()
  4257. return out, err
  4258. }
  4259. const opRestoreDBClusterFromSnapshot = "RestoreDBClusterFromSnapshot"
  4260. // RestoreDBClusterFromSnapshotRequest generates a "aws/request.Request" representing the
  4261. // client's request for the RestoreDBClusterFromSnapshot operation. The "output" return
  4262. // value can be used to capture response data after the request's "Send" method
  4263. // is called.
  4264. //
  4265. // Creating a request object using this method should be used when you want to inject
  4266. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4267. // access properties on the request object before or after sending the request. If
  4268. // you just want the service response, call the RestoreDBClusterFromSnapshot method directly
  4269. // instead.
  4270. //
  4271. // Note: You must call the "Send" method on the returned request object in order
  4272. // to execute the request.
  4273. //
  4274. // // Example sending a request using the RestoreDBClusterFromSnapshotRequest method.
  4275. // req, resp := client.RestoreDBClusterFromSnapshotRequest(params)
  4276. //
  4277. // err := req.Send()
  4278. // if err == nil { // resp is now filled
  4279. // fmt.Println(resp)
  4280. // }
  4281. //
  4282. func (c *RDS) RestoreDBClusterFromSnapshotRequest(input *RestoreDBClusterFromSnapshotInput) (req *request.Request, output *RestoreDBClusterFromSnapshotOutput) {
  4283. op := &request.Operation{
  4284. Name: opRestoreDBClusterFromSnapshot,
  4285. HTTPMethod: "POST",
  4286. HTTPPath: "/",
  4287. }
  4288. if input == nil {
  4289. input = &RestoreDBClusterFromSnapshotInput{}
  4290. }
  4291. req = c.newRequest(op, input, output)
  4292. output = &RestoreDBClusterFromSnapshotOutput{}
  4293. req.Data = output
  4294. return
  4295. }
  4296. // Creates a new DB cluster from a DB cluster snapshot. The target DB cluster
  4297. // is created from the source DB cluster restore point with the same configuration
  4298. // as the original source DB cluster, except that the new DB cluster is created
  4299. // with the default security group.
  4300. //
  4301. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  4302. // in the Amazon RDS User Guide.
  4303. func (c *RDS) RestoreDBClusterFromSnapshot(input *RestoreDBClusterFromSnapshotInput) (*RestoreDBClusterFromSnapshotOutput, error) {
  4304. req, out := c.RestoreDBClusterFromSnapshotRequest(input)
  4305. err := req.Send()
  4306. return out, err
  4307. }
  4308. const opRestoreDBClusterToPointInTime = "RestoreDBClusterToPointInTime"
  4309. // RestoreDBClusterToPointInTimeRequest generates a "aws/request.Request" representing the
  4310. // client's request for the RestoreDBClusterToPointInTime operation. The "output" return
  4311. // value can be used to capture response data after the request's "Send" method
  4312. // is called.
  4313. //
  4314. // Creating a request object using this method should be used when you want to inject
  4315. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4316. // access properties on the request object before or after sending the request. If
  4317. // you just want the service response, call the RestoreDBClusterToPointInTime method directly
  4318. // instead.
  4319. //
  4320. // Note: You must call the "Send" method on the returned request object in order
  4321. // to execute the request.
  4322. //
  4323. // // Example sending a request using the RestoreDBClusterToPointInTimeRequest method.
  4324. // req, resp := client.RestoreDBClusterToPointInTimeRequest(params)
  4325. //
  4326. // err := req.Send()
  4327. // if err == nil { // resp is now filled
  4328. // fmt.Println(resp)
  4329. // }
  4330. //
  4331. func (c *RDS) RestoreDBClusterToPointInTimeRequest(input *RestoreDBClusterToPointInTimeInput) (req *request.Request, output *RestoreDBClusterToPointInTimeOutput) {
  4332. op := &request.Operation{
  4333. Name: opRestoreDBClusterToPointInTime,
  4334. HTTPMethod: "POST",
  4335. HTTPPath: "/",
  4336. }
  4337. if input == nil {
  4338. input = &RestoreDBClusterToPointInTimeInput{}
  4339. }
  4340. req = c.newRequest(op, input, output)
  4341. output = &RestoreDBClusterToPointInTimeOutput{}
  4342. req.Data = output
  4343. return
  4344. }
  4345. // Restores a DB cluster to an arbitrary point in time. Users can restore to
  4346. // any point in time before LatestRestorableTime for up to BackupRetentionPeriod
  4347. // days. The target DB cluster is created from the source DB cluster with the
  4348. // same configuration as the original DB cluster, except that the new DB cluster
  4349. // is created with the default DB security group.
  4350. //
  4351. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  4352. // in the Amazon RDS User Guide.
  4353. func (c *RDS) RestoreDBClusterToPointInTime(input *RestoreDBClusterToPointInTimeInput) (*RestoreDBClusterToPointInTimeOutput, error) {
  4354. req, out := c.RestoreDBClusterToPointInTimeRequest(input)
  4355. err := req.Send()
  4356. return out, err
  4357. }
  4358. const opRestoreDBInstanceFromDBSnapshot = "RestoreDBInstanceFromDBSnapshot"
  4359. // RestoreDBInstanceFromDBSnapshotRequest generates a "aws/request.Request" representing the
  4360. // client's request for the RestoreDBInstanceFromDBSnapshot operation. The "output" return
  4361. // value can be used to capture response data after the request's "Send" method
  4362. // is called.
  4363. //
  4364. // Creating a request object using this method should be used when you want to inject
  4365. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4366. // access properties on the request object before or after sending the request. If
  4367. // you just want the service response, call the RestoreDBInstanceFromDBSnapshot method directly
  4368. // instead.
  4369. //
  4370. // Note: You must call the "Send" method on the returned request object in order
  4371. // to execute the request.
  4372. //
  4373. // // Example sending a request using the RestoreDBInstanceFromDBSnapshotRequest method.
  4374. // req, resp := client.RestoreDBInstanceFromDBSnapshotRequest(params)
  4375. //
  4376. // err := req.Send()
  4377. // if err == nil { // resp is now filled
  4378. // fmt.Println(resp)
  4379. // }
  4380. //
  4381. func (c *RDS) RestoreDBInstanceFromDBSnapshotRequest(input *RestoreDBInstanceFromDBSnapshotInput) (req *request.Request, output *RestoreDBInstanceFromDBSnapshotOutput) {
  4382. op := &request.Operation{
  4383. Name: opRestoreDBInstanceFromDBSnapshot,
  4384. HTTPMethod: "POST",
  4385. HTTPPath: "/",
  4386. }
  4387. if input == nil {
  4388. input = &RestoreDBInstanceFromDBSnapshotInput{}
  4389. }
  4390. req = c.newRequest(op, input, output)
  4391. output = &RestoreDBInstanceFromDBSnapshotOutput{}
  4392. req.Data = output
  4393. return
  4394. }
  4395. // Creates a new DB instance from a DB snapshot. The target database is created
  4396. // from the source database restore point with the most of original configuration
  4397. // with the default security group and the default DB parameter group. By default,
  4398. // the new DB instance is created as a single-AZ deployment except when the
  4399. // instance is a SQL Server instance that has an option group that is associated
  4400. // with mirroring; in this case, the instance becomes a mirrored AZ deployment
  4401. // and not a single-AZ deployment.
  4402. //
  4403. // If your intent is to replace your original DB instance with the new, restored
  4404. // DB instance, then rename your original DB instance before you call the RestoreDBInstanceFromDBSnapshot
  4405. // action. RDS does not allow two DB instances with the same name. Once you
  4406. // have renamed your original DB instance with a different identifier, then
  4407. // you can pass the original name of the DB instance as the DBInstanceIdentifier
  4408. // in the call to the RestoreDBInstanceFromDBSnapshot action. The result is
  4409. // that you will replace the original DB instance with the DB instance created
  4410. // from the snapshot.
  4411. //
  4412. // If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier
  4413. // must be the ARN of the shared DB snapshot.
  4414. func (c *RDS) RestoreDBInstanceFromDBSnapshot(input *RestoreDBInstanceFromDBSnapshotInput) (*RestoreDBInstanceFromDBSnapshotOutput, error) {
  4415. req, out := c.RestoreDBInstanceFromDBSnapshotRequest(input)
  4416. err := req.Send()
  4417. return out, err
  4418. }
  4419. const opRestoreDBInstanceToPointInTime = "RestoreDBInstanceToPointInTime"
  4420. // RestoreDBInstanceToPointInTimeRequest generates a "aws/request.Request" representing the
  4421. // client's request for the RestoreDBInstanceToPointInTime operation. The "output" return
  4422. // value can be used to capture response data after the request's "Send" method
  4423. // is called.
  4424. //
  4425. // Creating a request object using this method should be used when you want to inject
  4426. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4427. // access properties on the request object before or after sending the request. If
  4428. // you just want the service response, call the RestoreDBInstanceToPointInTime method directly
  4429. // instead.
  4430. //
  4431. // Note: You must call the "Send" method on the returned request object in order
  4432. // to execute the request.
  4433. //
  4434. // // Example sending a request using the RestoreDBInstanceToPointInTimeRequest method.
  4435. // req, resp := client.RestoreDBInstanceToPointInTimeRequest(params)
  4436. //
  4437. // err := req.Send()
  4438. // if err == nil { // resp is now filled
  4439. // fmt.Println(resp)
  4440. // }
  4441. //
  4442. func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPointInTimeInput) (req *request.Request, output *RestoreDBInstanceToPointInTimeOutput) {
  4443. op := &request.Operation{
  4444. Name: opRestoreDBInstanceToPointInTime,
  4445. HTTPMethod: "POST",
  4446. HTTPPath: "/",
  4447. }
  4448. if input == nil {
  4449. input = &RestoreDBInstanceToPointInTimeInput{}
  4450. }
  4451. req = c.newRequest(op, input, output)
  4452. output = &RestoreDBInstanceToPointInTimeOutput{}
  4453. req.Data = output
  4454. return
  4455. }
  4456. // Restores a DB instance to an arbitrary point in time. You can restore to
  4457. // any point in time before the time identified by the LatestRestorableTime
  4458. // property. You can restore to a point up to the number of days specified by
  4459. // the BackupRetentionPeriod property.
  4460. //
  4461. // The target database is created with most of the original configuration,
  4462. // but in a system-selected availability zone, with the default security group,
  4463. // the default subnet group, and the default DB parameter group. By default,
  4464. // the new DB instance is created as a single-AZ deployment except when the
  4465. // instance is a SQL Server instance that has an option group that is associated
  4466. // with mirroring; in this case, the instance becomes a mirrored deployment
  4467. // and not a single-AZ deployment.
  4468. func (c *RDS) RestoreDBInstanceToPointInTime(input *RestoreDBInstanceToPointInTimeInput) (*RestoreDBInstanceToPointInTimeOutput, error) {
  4469. req, out := c.RestoreDBInstanceToPointInTimeRequest(input)
  4470. err := req.Send()
  4471. return out, err
  4472. }
  4473. const opRevokeDBSecurityGroupIngress = "RevokeDBSecurityGroupIngress"
  4474. // RevokeDBSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  4475. // client's request for the RevokeDBSecurityGroupIngress operation. The "output" return
  4476. // value can be used to capture response data after the request's "Send" method
  4477. // is called.
  4478. //
  4479. // Creating a request object using this method should be used when you want to inject
  4480. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4481. // access properties on the request object before or after sending the request. If
  4482. // you just want the service response, call the RevokeDBSecurityGroupIngress method directly
  4483. // instead.
  4484. //
  4485. // Note: You must call the "Send" method on the returned request object in order
  4486. // to execute the request.
  4487. //
  4488. // // Example sending a request using the RevokeDBSecurityGroupIngressRequest method.
  4489. // req, resp := client.RevokeDBSecurityGroupIngressRequest(params)
  4490. //
  4491. // err := req.Send()
  4492. // if err == nil { // resp is now filled
  4493. // fmt.Println(resp)
  4494. // }
  4495. //
  4496. func (c *RDS) RevokeDBSecurityGroupIngressRequest(input *RevokeDBSecurityGroupIngressInput) (req *request.Request, output *RevokeDBSecurityGroupIngressOutput) {
  4497. op := &request.Operation{
  4498. Name: opRevokeDBSecurityGroupIngress,
  4499. HTTPMethod: "POST",
  4500. HTTPPath: "/",
  4501. }
  4502. if input == nil {
  4503. input = &RevokeDBSecurityGroupIngressInput{}
  4504. }
  4505. req = c.newRequest(op, input, output)
  4506. output = &RevokeDBSecurityGroupIngressOutput{}
  4507. req.Data = output
  4508. return
  4509. }
  4510. // Revokes ingress from a DBSecurityGroup for previously authorized IP ranges
  4511. // or EC2 or VPC Security Groups. Required parameters for this API are one of
  4512. // CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either
  4513. // EC2SecurityGroupName or EC2SecurityGroupId).
  4514. func (c *RDS) RevokeDBSecurityGroupIngress(input *RevokeDBSecurityGroupIngressInput) (*RevokeDBSecurityGroupIngressOutput, error) {
  4515. req, out := c.RevokeDBSecurityGroupIngressRequest(input)
  4516. err := req.Send()
  4517. return out, err
  4518. }
  4519. // Describes a quota for an AWS account, for example, the number of DB instances
  4520. // allowed.
  4521. type AccountQuota struct {
  4522. _ struct{} `type:"structure"`
  4523. // The name of the Amazon RDS quota for this AWS account.
  4524. AccountQuotaName *string `type:"string"`
  4525. // The maximum allowed value for the quota.
  4526. Max *int64 `type:"long"`
  4527. // The amount currently used toward the quota maximum.
  4528. Used *int64 `type:"long"`
  4529. }
  4530. // String returns the string representation
  4531. func (s AccountQuota) String() string {
  4532. return awsutil.Prettify(s)
  4533. }
  4534. // GoString returns the string representation
  4535. func (s AccountQuota) GoString() string {
  4536. return s.String()
  4537. }
  4538. type AddSourceIdentifierToSubscriptionInput struct {
  4539. _ struct{} `type:"structure"`
  4540. // The identifier of the event source to be added. An identifier must begin
  4541. // with a letter and must contain only ASCII letters, digits, and hyphens; it
  4542. // cannot end with a hyphen or contain two consecutive hyphens.
  4543. //
  4544. // Constraints:
  4545. //
  4546. // If the source type is a DB instance, then a DBInstanceIdentifier must
  4547. // be supplied.
  4548. //
  4549. // If the source type is a DB security group, a DBSecurityGroupName must
  4550. // be supplied.
  4551. //
  4552. // If the source type is a DB parameter group, a DBParameterGroupName must
  4553. // be supplied.
  4554. //
  4555. // If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.
  4556. SourceIdentifier *string `type:"string" required:"true"`
  4557. // The name of the RDS event notification subscription you want to add a source
  4558. // identifier to.
  4559. SubscriptionName *string `type:"string" required:"true"`
  4560. }
  4561. // String returns the string representation
  4562. func (s AddSourceIdentifierToSubscriptionInput) String() string {
  4563. return awsutil.Prettify(s)
  4564. }
  4565. // GoString returns the string representation
  4566. func (s AddSourceIdentifierToSubscriptionInput) GoString() string {
  4567. return s.String()
  4568. }
  4569. // Validate inspects the fields of the type to determine if they are valid.
  4570. func (s *AddSourceIdentifierToSubscriptionInput) Validate() error {
  4571. invalidParams := request.ErrInvalidParams{Context: "AddSourceIdentifierToSubscriptionInput"}
  4572. if s.SourceIdentifier == nil {
  4573. invalidParams.Add(request.NewErrParamRequired("SourceIdentifier"))
  4574. }
  4575. if s.SubscriptionName == nil {
  4576. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  4577. }
  4578. if invalidParams.Len() > 0 {
  4579. return invalidParams
  4580. }
  4581. return nil
  4582. }
  4583. type AddSourceIdentifierToSubscriptionOutput struct {
  4584. _ struct{} `type:"structure"`
  4585. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  4586. // action.
  4587. EventSubscription *EventSubscription `type:"structure"`
  4588. }
  4589. // String returns the string representation
  4590. func (s AddSourceIdentifierToSubscriptionOutput) String() string {
  4591. return awsutil.Prettify(s)
  4592. }
  4593. // GoString returns the string representation
  4594. func (s AddSourceIdentifierToSubscriptionOutput) GoString() string {
  4595. return s.String()
  4596. }
  4597. type AddTagsToResourceInput struct {
  4598. _ struct{} `type:"structure"`
  4599. // The Amazon RDS resource the tags will be added to. This value is an Amazon
  4600. // Resource Name (ARN). For information about creating an ARN, see Constructing
  4601. // an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN).
  4602. ResourceName *string `type:"string" required:"true"`
  4603. // The tags to be assigned to the Amazon RDS resource.
  4604. Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"`
  4605. }
  4606. // String returns the string representation
  4607. func (s AddTagsToResourceInput) String() string {
  4608. return awsutil.Prettify(s)
  4609. }
  4610. // GoString returns the string representation
  4611. func (s AddTagsToResourceInput) GoString() string {
  4612. return s.String()
  4613. }
  4614. // Validate inspects the fields of the type to determine if they are valid.
  4615. func (s *AddTagsToResourceInput) Validate() error {
  4616. invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
  4617. if s.ResourceName == nil {
  4618. invalidParams.Add(request.NewErrParamRequired("ResourceName"))
  4619. }
  4620. if s.Tags == nil {
  4621. invalidParams.Add(request.NewErrParamRequired("Tags"))
  4622. }
  4623. if invalidParams.Len() > 0 {
  4624. return invalidParams
  4625. }
  4626. return nil
  4627. }
  4628. type AddTagsToResourceOutput struct {
  4629. _ struct{} `type:"structure"`
  4630. }
  4631. // String returns the string representation
  4632. func (s AddTagsToResourceOutput) String() string {
  4633. return awsutil.Prettify(s)
  4634. }
  4635. // GoString returns the string representation
  4636. func (s AddTagsToResourceOutput) GoString() string {
  4637. return s.String()
  4638. }
  4639. type ApplyPendingMaintenanceActionInput struct {
  4640. _ struct{} `type:"structure"`
  4641. // The pending maintenance action to apply to this resource.
  4642. //
  4643. // Valid values: system-update, db-upgrade
  4644. ApplyAction *string `type:"string" required:"true"`
  4645. // A value that specifies the type of opt-in request, or undoes an opt-in request.
  4646. // An opt-in request of type immediate cannot be undone.
  4647. //
  4648. // Valid values:
  4649. //
  4650. // immediate - Apply the maintenance action immediately.
  4651. //
  4652. // next-maintenance - Apply the maintenance action during the next maintenance
  4653. // window for the resource.
  4654. //
  4655. // undo-opt-in - Cancel any existing next-maintenance opt-in requests.
  4656. OptInType *string `type:"string" required:"true"`
  4657. // The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance
  4658. // action applies to. For information about creating an ARN, see Constructing
  4659. // an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN).
  4660. ResourceIdentifier *string `type:"string" required:"true"`
  4661. }
  4662. // String returns the string representation
  4663. func (s ApplyPendingMaintenanceActionInput) String() string {
  4664. return awsutil.Prettify(s)
  4665. }
  4666. // GoString returns the string representation
  4667. func (s ApplyPendingMaintenanceActionInput) GoString() string {
  4668. return s.String()
  4669. }
  4670. // Validate inspects the fields of the type to determine if they are valid.
  4671. func (s *ApplyPendingMaintenanceActionInput) Validate() error {
  4672. invalidParams := request.ErrInvalidParams{Context: "ApplyPendingMaintenanceActionInput"}
  4673. if s.ApplyAction == nil {
  4674. invalidParams.Add(request.NewErrParamRequired("ApplyAction"))
  4675. }
  4676. if s.OptInType == nil {
  4677. invalidParams.Add(request.NewErrParamRequired("OptInType"))
  4678. }
  4679. if s.ResourceIdentifier == nil {
  4680. invalidParams.Add(request.NewErrParamRequired("ResourceIdentifier"))
  4681. }
  4682. if invalidParams.Len() > 0 {
  4683. return invalidParams
  4684. }
  4685. return nil
  4686. }
  4687. type ApplyPendingMaintenanceActionOutput struct {
  4688. _ struct{} `type:"structure"`
  4689. // Describes the pending maintenance actions for a resource.
  4690. ResourcePendingMaintenanceActions *ResourcePendingMaintenanceActions `type:"structure"`
  4691. }
  4692. // String returns the string representation
  4693. func (s ApplyPendingMaintenanceActionOutput) String() string {
  4694. return awsutil.Prettify(s)
  4695. }
  4696. // GoString returns the string representation
  4697. func (s ApplyPendingMaintenanceActionOutput) GoString() string {
  4698. return s.String()
  4699. }
  4700. type AuthorizeDBSecurityGroupIngressInput struct {
  4701. _ struct{} `type:"structure"`
  4702. // The IP range to authorize.
  4703. CIDRIP *string `type:"string"`
  4704. // The name of the DB security group to add authorization to.
  4705. DBSecurityGroupName *string `type:"string" required:"true"`
  4706. // Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId
  4707. // must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName
  4708. // or EC2SecurityGroupId must be provided.
  4709. EC2SecurityGroupId *string `type:"string"`
  4710. // Name of the EC2 security group to authorize. For VPC DB security groups,
  4711. // EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and
  4712. // either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
  4713. EC2SecurityGroupName *string `type:"string"`
  4714. // AWS account number of the owner of the EC2 security group specified in the
  4715. // EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable
  4716. // value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise,
  4717. // EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId
  4718. // must be provided.
  4719. EC2SecurityGroupOwnerId *string `type:"string"`
  4720. }
  4721. // String returns the string representation
  4722. func (s AuthorizeDBSecurityGroupIngressInput) String() string {
  4723. return awsutil.Prettify(s)
  4724. }
  4725. // GoString returns the string representation
  4726. func (s AuthorizeDBSecurityGroupIngressInput) GoString() string {
  4727. return s.String()
  4728. }
  4729. // Validate inspects the fields of the type to determine if they are valid.
  4730. func (s *AuthorizeDBSecurityGroupIngressInput) Validate() error {
  4731. invalidParams := request.ErrInvalidParams{Context: "AuthorizeDBSecurityGroupIngressInput"}
  4732. if s.DBSecurityGroupName == nil {
  4733. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName"))
  4734. }
  4735. if invalidParams.Len() > 0 {
  4736. return invalidParams
  4737. }
  4738. return nil
  4739. }
  4740. type AuthorizeDBSecurityGroupIngressOutput struct {
  4741. _ struct{} `type:"structure"`
  4742. // Contains the result of a successful invocation of the following actions:
  4743. //
  4744. // DescribeDBSecurityGroups
  4745. //
  4746. // AuthorizeDBSecurityGroupIngress
  4747. //
  4748. // CreateDBSecurityGroup
  4749. //
  4750. // RevokeDBSecurityGroupIngress
  4751. //
  4752. // This data type is used as a response element in the DescribeDBSecurityGroups
  4753. // action.
  4754. DBSecurityGroup *DBSecurityGroup `type:"structure"`
  4755. }
  4756. // String returns the string representation
  4757. func (s AuthorizeDBSecurityGroupIngressOutput) String() string {
  4758. return awsutil.Prettify(s)
  4759. }
  4760. // GoString returns the string representation
  4761. func (s AuthorizeDBSecurityGroupIngressOutput) GoString() string {
  4762. return s.String()
  4763. }
  4764. // Contains Availability Zone information.
  4765. //
  4766. // This data type is used as an element in the following data type:
  4767. //
  4768. // OrderableDBInstanceOption
  4769. type AvailabilityZone struct {
  4770. _ struct{} `type:"structure"`
  4771. // The name of the availability zone.
  4772. Name *string `type:"string"`
  4773. }
  4774. // String returns the string representation
  4775. func (s AvailabilityZone) String() string {
  4776. return awsutil.Prettify(s)
  4777. }
  4778. // GoString returns the string representation
  4779. func (s AvailabilityZone) GoString() string {
  4780. return s.String()
  4781. }
  4782. // A CA certificate for an AWS account.
  4783. type Certificate struct {
  4784. _ struct{} `type:"structure"`
  4785. // The unique key that identifies a certificate.
  4786. CertificateIdentifier *string `type:"string"`
  4787. // The type of the certificate.
  4788. CertificateType *string `type:"string"`
  4789. // The thumbprint of the certificate.
  4790. Thumbprint *string `type:"string"`
  4791. // The starting date from which the certificate is valid.
  4792. ValidFrom *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  4793. // The final date that the certificate continues to be valid.
  4794. ValidTill *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  4795. }
  4796. // String returns the string representation
  4797. func (s Certificate) String() string {
  4798. return awsutil.Prettify(s)
  4799. }
  4800. // GoString returns the string representation
  4801. func (s Certificate) GoString() string {
  4802. return s.String()
  4803. }
  4804. // This data type is used as a response element in the action DescribeDBEngineVersions.
  4805. type CharacterSet struct {
  4806. _ struct{} `type:"structure"`
  4807. // The description of the character set.
  4808. CharacterSetDescription *string `type:"string"`
  4809. // The name of the character set.
  4810. CharacterSetName *string `type:"string"`
  4811. }
  4812. // String returns the string representation
  4813. func (s CharacterSet) String() string {
  4814. return awsutil.Prettify(s)
  4815. }
  4816. // GoString returns the string representation
  4817. func (s CharacterSet) GoString() string {
  4818. return s.String()
  4819. }
  4820. type CopyDBClusterParameterGroupInput struct {
  4821. _ struct{} `type:"structure"`
  4822. // The identifier or Amazon Resource Name (ARN) for the source DB cluster parameter
  4823. // group. For information about creating an ARN, see Constructing an RDS Amazon
  4824. // Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN).
  4825. //
  4826. // Constraints:
  4827. //
  4828. // Must specify a valid DB cluster parameter group.
  4829. //
  4830. // If the source DB cluster parameter group is in the same region as the
  4831. // copy, specify a valid DB parameter group identifier, for example my-db-cluster-param-group,
  4832. // or a valid ARN.
  4833. //
  4834. // If the source DB parameter group is in a different region than the copy,
  4835. // specify a valid DB cluster parameter group ARN, for example arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1.
  4836. SourceDBClusterParameterGroupIdentifier *string `type:"string" required:"true"`
  4837. // A list of tags.
  4838. Tags []*Tag `locationNameList:"Tag" type:"list"`
  4839. // A description for the copied DB cluster parameter group.
  4840. TargetDBClusterParameterGroupDescription *string `type:"string" required:"true"`
  4841. // The identifier for the copied DB cluster parameter group.
  4842. //
  4843. // Constraints:
  4844. //
  4845. // Cannot be null, empty, or blank
  4846. //
  4847. // Must contain from 1 to 255 alphanumeric characters or hyphens
  4848. //
  4849. // First character must be a letter
  4850. //
  4851. // Cannot end with a hyphen or contain two consecutive hyphens
  4852. //
  4853. // Example: my-cluster-param-group1
  4854. TargetDBClusterParameterGroupIdentifier *string `type:"string" required:"true"`
  4855. }
  4856. // String returns the string representation
  4857. func (s CopyDBClusterParameterGroupInput) String() string {
  4858. return awsutil.Prettify(s)
  4859. }
  4860. // GoString returns the string representation
  4861. func (s CopyDBClusterParameterGroupInput) GoString() string {
  4862. return s.String()
  4863. }
  4864. // Validate inspects the fields of the type to determine if they are valid.
  4865. func (s *CopyDBClusterParameterGroupInput) Validate() error {
  4866. invalidParams := request.ErrInvalidParams{Context: "CopyDBClusterParameterGroupInput"}
  4867. if s.SourceDBClusterParameterGroupIdentifier == nil {
  4868. invalidParams.Add(request.NewErrParamRequired("SourceDBClusterParameterGroupIdentifier"))
  4869. }
  4870. if s.TargetDBClusterParameterGroupDescription == nil {
  4871. invalidParams.Add(request.NewErrParamRequired("TargetDBClusterParameterGroupDescription"))
  4872. }
  4873. if s.TargetDBClusterParameterGroupIdentifier == nil {
  4874. invalidParams.Add(request.NewErrParamRequired("TargetDBClusterParameterGroupIdentifier"))
  4875. }
  4876. if invalidParams.Len() > 0 {
  4877. return invalidParams
  4878. }
  4879. return nil
  4880. }
  4881. type CopyDBClusterParameterGroupOutput struct {
  4882. _ struct{} `type:"structure"`
  4883. // Contains the result of a successful invocation of the CreateDBClusterParameterGroup
  4884. // or CopyDBClusterParameterGroup action.
  4885. //
  4886. // This data type is used as a request parameter in the DeleteDBClusterParameterGroup
  4887. // action, and as a response element in the DescribeDBClusterParameterGroups
  4888. // action.
  4889. DBClusterParameterGroup *DBClusterParameterGroup `type:"structure"`
  4890. }
  4891. // String returns the string representation
  4892. func (s CopyDBClusterParameterGroupOutput) String() string {
  4893. return awsutil.Prettify(s)
  4894. }
  4895. // GoString returns the string representation
  4896. func (s CopyDBClusterParameterGroupOutput) GoString() string {
  4897. return s.String()
  4898. }
  4899. type CopyDBClusterSnapshotInput struct {
  4900. _ struct{} `type:"structure"`
  4901. // The identifier of the DB cluster snapshot to copy. This parameter is not
  4902. // case-sensitive.
  4903. //
  4904. // Constraints:
  4905. //
  4906. // Must contain from 1 to 63 alphanumeric characters or hyphens.
  4907. //
  4908. // First character must be a letter.
  4909. //
  4910. // Cannot end with a hyphen or contain two consecutive hyphens.
  4911. //
  4912. // Example: my-cluster-snapshot1
  4913. SourceDBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  4914. // A list of tags.
  4915. Tags []*Tag `locationNameList:"Tag" type:"list"`
  4916. // The identifier of the new DB cluster snapshot to create from the source DB
  4917. // cluster snapshot. This parameter is not case-sensitive.
  4918. //
  4919. // Constraints:
  4920. //
  4921. // Must contain from 1 to 63 alphanumeric characters or hyphens.
  4922. //
  4923. // First character must be a letter.
  4924. //
  4925. // Cannot end with a hyphen or contain two consecutive hyphens.
  4926. //
  4927. // Example: my-cluster-snapshot2
  4928. TargetDBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  4929. }
  4930. // String returns the string representation
  4931. func (s CopyDBClusterSnapshotInput) String() string {
  4932. return awsutil.Prettify(s)
  4933. }
  4934. // GoString returns the string representation
  4935. func (s CopyDBClusterSnapshotInput) GoString() string {
  4936. return s.String()
  4937. }
  4938. // Validate inspects the fields of the type to determine if they are valid.
  4939. func (s *CopyDBClusterSnapshotInput) Validate() error {
  4940. invalidParams := request.ErrInvalidParams{Context: "CopyDBClusterSnapshotInput"}
  4941. if s.SourceDBClusterSnapshotIdentifier == nil {
  4942. invalidParams.Add(request.NewErrParamRequired("SourceDBClusterSnapshotIdentifier"))
  4943. }
  4944. if s.TargetDBClusterSnapshotIdentifier == nil {
  4945. invalidParams.Add(request.NewErrParamRequired("TargetDBClusterSnapshotIdentifier"))
  4946. }
  4947. if invalidParams.Len() > 0 {
  4948. return invalidParams
  4949. }
  4950. return nil
  4951. }
  4952. type CopyDBClusterSnapshotOutput struct {
  4953. _ struct{} `type:"structure"`
  4954. // Contains the result of a successful invocation of the following actions:
  4955. //
  4956. // CreateDBClusterSnapshot
  4957. //
  4958. // DeleteDBClusterSnapshot
  4959. //
  4960. // This data type is used as a response element in the DescribeDBClusterSnapshots
  4961. // action.
  4962. DBClusterSnapshot *DBClusterSnapshot `type:"structure"`
  4963. }
  4964. // String returns the string representation
  4965. func (s CopyDBClusterSnapshotOutput) String() string {
  4966. return awsutil.Prettify(s)
  4967. }
  4968. // GoString returns the string representation
  4969. func (s CopyDBClusterSnapshotOutput) GoString() string {
  4970. return s.String()
  4971. }
  4972. type CopyDBParameterGroupInput struct {
  4973. _ struct{} `type:"structure"`
  4974. // The identifier or ARN for the source DB parameter group. For information
  4975. // about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN)
  4976. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN).
  4977. //
  4978. // Constraints:
  4979. //
  4980. // Must specify a valid DB parameter group.
  4981. //
  4982. // If the source DB parameter group is in the same region as the copy, specify
  4983. // a valid DB parameter group identifier, for example my-db-param-group, or
  4984. // a valid ARN.
  4985. //
  4986. // If the source DB parameter group is in a different region than the copy,
  4987. // specify a valid DB parameter group ARN, for example arn:aws:rds:us-west-2:123456789012:pg:special-parameters.
  4988. SourceDBParameterGroupIdentifier *string `type:"string" required:"true"`
  4989. // A list of tags.
  4990. Tags []*Tag `locationNameList:"Tag" type:"list"`
  4991. // A description for the copied DB parameter group.
  4992. TargetDBParameterGroupDescription *string `type:"string" required:"true"`
  4993. // The identifier for the copied DB parameter group.
  4994. //
  4995. // Constraints:
  4996. //
  4997. // Cannot be null, empty, or blank
  4998. //
  4999. // Must contain from 1 to 255 alphanumeric characters or hyphens
  5000. //
  5001. // First character must be a letter
  5002. //
  5003. // Cannot end with a hyphen or contain two consecutive hyphens
  5004. //
  5005. // Example: my-db-parameter-group
  5006. TargetDBParameterGroupIdentifier *string `type:"string" required:"true"`
  5007. }
  5008. // String returns the string representation
  5009. func (s CopyDBParameterGroupInput) String() string {
  5010. return awsutil.Prettify(s)
  5011. }
  5012. // GoString returns the string representation
  5013. func (s CopyDBParameterGroupInput) GoString() string {
  5014. return s.String()
  5015. }
  5016. // Validate inspects the fields of the type to determine if they are valid.
  5017. func (s *CopyDBParameterGroupInput) Validate() error {
  5018. invalidParams := request.ErrInvalidParams{Context: "CopyDBParameterGroupInput"}
  5019. if s.SourceDBParameterGroupIdentifier == nil {
  5020. invalidParams.Add(request.NewErrParamRequired("SourceDBParameterGroupIdentifier"))
  5021. }
  5022. if s.TargetDBParameterGroupDescription == nil {
  5023. invalidParams.Add(request.NewErrParamRequired("TargetDBParameterGroupDescription"))
  5024. }
  5025. if s.TargetDBParameterGroupIdentifier == nil {
  5026. invalidParams.Add(request.NewErrParamRequired("TargetDBParameterGroupIdentifier"))
  5027. }
  5028. if invalidParams.Len() > 0 {
  5029. return invalidParams
  5030. }
  5031. return nil
  5032. }
  5033. type CopyDBParameterGroupOutput struct {
  5034. _ struct{} `type:"structure"`
  5035. // Contains the result of a successful invocation of the CreateDBParameterGroup
  5036. // action.
  5037. //
  5038. // This data type is used as a request parameter in the DeleteDBParameterGroup
  5039. // action, and as a response element in the DescribeDBParameterGroups action.
  5040. DBParameterGroup *DBParameterGroup `type:"structure"`
  5041. }
  5042. // String returns the string representation
  5043. func (s CopyDBParameterGroupOutput) String() string {
  5044. return awsutil.Prettify(s)
  5045. }
  5046. // GoString returns the string representation
  5047. func (s CopyDBParameterGroupOutput) GoString() string {
  5048. return s.String()
  5049. }
  5050. type CopyDBSnapshotInput struct {
  5051. _ struct{} `type:"structure"`
  5052. // True to copy all tags from the source DB snapshot to the target DB snapshot;
  5053. // otherwise false. The default is false.
  5054. CopyTags *bool `type:"boolean"`
  5055. // The AWS Key Management Service (AWS KMS) key identifier for an encrypted
  5056. // DB snapshot. The KMS key identifier is the Amazon Resource Name (ARN) or
  5057. // the KMS key alias for the KMS encryption key.
  5058. //
  5059. // If you copy an unencrypted DB snapshot and specify a value for the KmsKeyId
  5060. // parameter, Amazon RDS encrypts the target DB snapshot using the specified
  5061. // KMS encryption key.
  5062. //
  5063. // If you copy an encrypted DB snapshot from your AWS account, you can specify
  5064. // a value for KmsKeyId to encrypt the copy with a new KMS encryption key. If
  5065. // you don't specify a value for KmsKeyId then the copy of the DB snapshot is
  5066. // encrypted with the same KMS key as the source DB snapshot.
  5067. //
  5068. // If you copy an encrypted DB snapshot that is shared from another AWS account,
  5069. // then you must specify a value for KmsKeyId.
  5070. KmsKeyId *string `type:"string"`
  5071. // The identifier for the source DB snapshot.
  5072. //
  5073. // If you are copying from a shared manual DB snapshot, this must be the ARN
  5074. // of the shared DB snapshot.
  5075. //
  5076. // Constraints:
  5077. //
  5078. // Must specify a valid system snapshot in the "available" state.
  5079. //
  5080. // If the source snapshot is in the same region as the copy, specify a valid
  5081. // DB snapshot identifier.
  5082. //
  5083. // If the source snapshot is in a different region than the copy, specify
  5084. // a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot
  5085. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html).
  5086. //
  5087. // Example: rds:mydb-2012-04-02-00-01
  5088. //
  5089. // Example: arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805
  5090. SourceDBSnapshotIdentifier *string `type:"string" required:"true"`
  5091. // A list of tags.
  5092. Tags []*Tag `locationNameList:"Tag" type:"list"`
  5093. // The identifier for the copied snapshot.
  5094. //
  5095. // Constraints:
  5096. //
  5097. // Cannot be null, empty, or blank
  5098. //
  5099. // Must contain from 1 to 255 alphanumeric characters or hyphens
  5100. //
  5101. // First character must be a letter
  5102. //
  5103. // Cannot end with a hyphen or contain two consecutive hyphens
  5104. //
  5105. // Example: my-db-snapshot
  5106. TargetDBSnapshotIdentifier *string `type:"string" required:"true"`
  5107. }
  5108. // String returns the string representation
  5109. func (s CopyDBSnapshotInput) String() string {
  5110. return awsutil.Prettify(s)
  5111. }
  5112. // GoString returns the string representation
  5113. func (s CopyDBSnapshotInput) GoString() string {
  5114. return s.String()
  5115. }
  5116. // Validate inspects the fields of the type to determine if they are valid.
  5117. func (s *CopyDBSnapshotInput) Validate() error {
  5118. invalidParams := request.ErrInvalidParams{Context: "CopyDBSnapshotInput"}
  5119. if s.SourceDBSnapshotIdentifier == nil {
  5120. invalidParams.Add(request.NewErrParamRequired("SourceDBSnapshotIdentifier"))
  5121. }
  5122. if s.TargetDBSnapshotIdentifier == nil {
  5123. invalidParams.Add(request.NewErrParamRequired("TargetDBSnapshotIdentifier"))
  5124. }
  5125. if invalidParams.Len() > 0 {
  5126. return invalidParams
  5127. }
  5128. return nil
  5129. }
  5130. type CopyDBSnapshotOutput struct {
  5131. _ struct{} `type:"structure"`
  5132. // Contains the result of a successful invocation of the following actions:
  5133. //
  5134. // CreateDBSnapshot
  5135. //
  5136. // DeleteDBSnapshot
  5137. //
  5138. // This data type is used as a response element in the DescribeDBSnapshots
  5139. // action.
  5140. DBSnapshot *DBSnapshot `type:"structure"`
  5141. }
  5142. // String returns the string representation
  5143. func (s CopyDBSnapshotOutput) String() string {
  5144. return awsutil.Prettify(s)
  5145. }
  5146. // GoString returns the string representation
  5147. func (s CopyDBSnapshotOutput) GoString() string {
  5148. return s.String()
  5149. }
  5150. type CopyOptionGroupInput struct {
  5151. _ struct{} `type:"structure"`
  5152. // The identifier or ARN for the source option group. For information about
  5153. // creating an ARN, see Constructing an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN).
  5154. //
  5155. // Constraints:
  5156. //
  5157. // Must specify a valid option group.
  5158. //
  5159. // If the source option group is in the same region as the copy, specify
  5160. // a valid option group identifier, for example my-option-group, or a valid
  5161. // ARN.
  5162. //
  5163. // If the source option group is in a different region than the copy, specify
  5164. // a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options.
  5165. SourceOptionGroupIdentifier *string `type:"string" required:"true"`
  5166. // A list of tags.
  5167. Tags []*Tag `locationNameList:"Tag" type:"list"`
  5168. // The description for the copied option group.
  5169. TargetOptionGroupDescription *string `type:"string" required:"true"`
  5170. // The identifier for the copied option group.
  5171. //
  5172. // Constraints:
  5173. //
  5174. // Cannot be null, empty, or blank
  5175. //
  5176. // Must contain from 1 to 255 alphanumeric characters or hyphens
  5177. //
  5178. // First character must be a letter
  5179. //
  5180. // Cannot end with a hyphen or contain two consecutive hyphens
  5181. //
  5182. // Example: my-option-group
  5183. TargetOptionGroupIdentifier *string `type:"string" required:"true"`
  5184. }
  5185. // String returns the string representation
  5186. func (s CopyOptionGroupInput) String() string {
  5187. return awsutil.Prettify(s)
  5188. }
  5189. // GoString returns the string representation
  5190. func (s CopyOptionGroupInput) GoString() string {
  5191. return s.String()
  5192. }
  5193. // Validate inspects the fields of the type to determine if they are valid.
  5194. func (s *CopyOptionGroupInput) Validate() error {
  5195. invalidParams := request.ErrInvalidParams{Context: "CopyOptionGroupInput"}
  5196. if s.SourceOptionGroupIdentifier == nil {
  5197. invalidParams.Add(request.NewErrParamRequired("SourceOptionGroupIdentifier"))
  5198. }
  5199. if s.TargetOptionGroupDescription == nil {
  5200. invalidParams.Add(request.NewErrParamRequired("TargetOptionGroupDescription"))
  5201. }
  5202. if s.TargetOptionGroupIdentifier == nil {
  5203. invalidParams.Add(request.NewErrParamRequired("TargetOptionGroupIdentifier"))
  5204. }
  5205. if invalidParams.Len() > 0 {
  5206. return invalidParams
  5207. }
  5208. return nil
  5209. }
  5210. type CopyOptionGroupOutput struct {
  5211. _ struct{} `type:"structure"`
  5212. OptionGroup *OptionGroup `type:"structure"`
  5213. }
  5214. // String returns the string representation
  5215. func (s CopyOptionGroupOutput) String() string {
  5216. return awsutil.Prettify(s)
  5217. }
  5218. // GoString returns the string representation
  5219. func (s CopyOptionGroupOutput) GoString() string {
  5220. return s.String()
  5221. }
  5222. type CreateDBClusterInput struct {
  5223. _ struct{} `type:"structure"`
  5224. // A list of EC2 Availability Zones that instances in the DB cluster can be
  5225. // created in. For information on regions and Availability Zones, see Regions
  5226. // and Availability Zones (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
  5227. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  5228. // The number of days for which automated backups are retained. You must specify
  5229. // a minimum value of 1.
  5230. //
  5231. // Default: 1
  5232. //
  5233. // Constraints:
  5234. //
  5235. // Must be a value from 1 to 35
  5236. BackupRetentionPeriod *int64 `type:"integer"`
  5237. // A value that indicates that the DB cluster should be associated with the
  5238. // specified CharacterSet.
  5239. CharacterSetName *string `type:"string"`
  5240. // The DB cluster identifier. This parameter is stored as a lowercase string.
  5241. //
  5242. // Constraints:
  5243. //
  5244. // Must contain from 1 to 63 alphanumeric characters or hyphens.
  5245. //
  5246. // First character must be a letter.
  5247. //
  5248. // Cannot end with a hyphen or contain two consecutive hyphens.
  5249. //
  5250. // Example: my-cluster1
  5251. DBClusterIdentifier *string `type:"string" required:"true"`
  5252. // The name of the DB cluster parameter group to associate with this DB cluster.
  5253. // If this argument is omitted, default.aurora5.6 will be used.
  5254. //
  5255. // Constraints:
  5256. //
  5257. // Must be 1 to 255 alphanumeric characters
  5258. //
  5259. // First character must be a letter
  5260. //
  5261. // Cannot end with a hyphen or contain two consecutive hyphens
  5262. DBClusterParameterGroupName *string `type:"string"`
  5263. // A DB subnet group to associate with this DB cluster.
  5264. //
  5265. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  5266. // underscores, spaces, or hyphens. Must not be default.
  5267. //
  5268. // Example: mySubnetgroup
  5269. DBSubnetGroupName *string `type:"string"`
  5270. // The name for your database of up to 8 alpha-numeric characters. If you do
  5271. // not provide a name, Amazon RDS will not create a database in the DB cluster
  5272. // you are creating.
  5273. DatabaseName *string `type:"string"`
  5274. // The name of the database engine to be used for this DB cluster.
  5275. //
  5276. // Valid Values: aurora
  5277. Engine *string `type:"string" required:"true"`
  5278. // The version number of the database engine to use.
  5279. //
  5280. // Aurora
  5281. //
  5282. // Example: 5.6.10a
  5283. EngineVersion *string `type:"string"`
  5284. // The KMS key identifier for an encrypted DB cluster.
  5285. //
  5286. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  5287. // key. If you are creating a DB cluster with the same AWS account that owns
  5288. // the KMS encryption key used to encrypt the new DB cluster, then you can use
  5289. // the KMS key alias instead of the ARN for the KM encryption key.
  5290. //
  5291. // If the StorageEncrypted parameter is true, and you do not specify a value
  5292. // for the KmsKeyId parameter, then Amazon RDS will use your default encryption
  5293. // key. AWS KMS creates the default encryption key for your AWS account. Your
  5294. // AWS account has a different default encryption key for each AWS region.
  5295. KmsKeyId *string `type:"string"`
  5296. // The password for the master database user. This password can contain any
  5297. // printable ASCII character except "/", """, or "@".
  5298. //
  5299. // Constraints: Must contain from 8 to 41 characters.
  5300. MasterUserPassword *string `type:"string"`
  5301. // The name of the master user for the DB cluster.
  5302. //
  5303. // Constraints:
  5304. //
  5305. // Must be 1 to 16 alphanumeric characters.
  5306. //
  5307. // First character must be a letter.
  5308. //
  5309. // Cannot be a reserved word for the chosen database engine.
  5310. MasterUsername *string `type:"string"`
  5311. // A value that indicates that the DB cluster should be associated with the
  5312. // specified option group.
  5313. //
  5314. // Permanent options cannot be removed from an option group. The option group
  5315. // cannot be removed from a DB cluster once it is associated with a DB cluster.
  5316. OptionGroupName *string `type:"string"`
  5317. // The port number on which the instances in the DB cluster accept connections.
  5318. //
  5319. // Default: 3306
  5320. Port *int64 `type:"integer"`
  5321. // The daily time range during which automated backups are created if automated
  5322. // backups are enabled using the BackupRetentionPeriod parameter.
  5323. //
  5324. // Default: A 30-minute window selected at random from an 8-hour block of time
  5325. // per region. To see the time blocks available, see Adjusting the Preferred
  5326. // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  5327. // in the Amazon RDS User Guide.
  5328. //
  5329. // Constraints:
  5330. //
  5331. // Must be in the format hh24:mi-hh24:mi.
  5332. //
  5333. // Times should be in Universal Coordinated Time (UTC).
  5334. //
  5335. // Must not conflict with the preferred maintenance window.
  5336. //
  5337. // Must be at least 30 minutes.
  5338. PreferredBackupWindow *string `type:"string"`
  5339. // The weekly time range during which system maintenance can occur, in Universal
  5340. // Coordinated Time (UTC).
  5341. //
  5342. // Format: ddd:hh24:mi-ddd:hh24:mi
  5343. //
  5344. // Default: A 30-minute window selected at random from an 8-hour block of time
  5345. // per region, occurring on a random day of the week. To see the time blocks
  5346. // available, see Adjusting the Preferred Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  5347. // in the Amazon RDS User Guide.
  5348. //
  5349. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  5350. //
  5351. // Constraints: Minimum 30-minute window.
  5352. PreferredMaintenanceWindow *string `type:"string"`
  5353. // The Amazon Resource Name (ARN) of the source DB cluster if this DB cluster
  5354. // is created as a Read Replica.
  5355. ReplicationSourceIdentifier *string `type:"string"`
  5356. // Specifies whether the DB cluster is encrypted.
  5357. StorageEncrypted *bool `type:"boolean"`
  5358. // A list of tags.
  5359. Tags []*Tag `locationNameList:"Tag" type:"list"`
  5360. // A list of EC2 VPC security groups to associate with this DB cluster.
  5361. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  5362. }
  5363. // String returns the string representation
  5364. func (s CreateDBClusterInput) String() string {
  5365. return awsutil.Prettify(s)
  5366. }
  5367. // GoString returns the string representation
  5368. func (s CreateDBClusterInput) GoString() string {
  5369. return s.String()
  5370. }
  5371. // Validate inspects the fields of the type to determine if they are valid.
  5372. func (s *CreateDBClusterInput) Validate() error {
  5373. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterInput"}
  5374. if s.DBClusterIdentifier == nil {
  5375. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  5376. }
  5377. if s.Engine == nil {
  5378. invalidParams.Add(request.NewErrParamRequired("Engine"))
  5379. }
  5380. if invalidParams.Len() > 0 {
  5381. return invalidParams
  5382. }
  5383. return nil
  5384. }
  5385. type CreateDBClusterOutput struct {
  5386. _ struct{} `type:"structure"`
  5387. // Contains the result of a successful invocation of the following actions:
  5388. //
  5389. // CreateDBCluster
  5390. //
  5391. // DeleteDBCluster
  5392. //
  5393. // FailoverDBCluster
  5394. //
  5395. // ModifyDBCluster
  5396. //
  5397. // RestoreDBClusterFromSnapshot
  5398. //
  5399. // RestoreDBClusterToPointInTime
  5400. //
  5401. // This data type is used as a response element in the DescribeDBClusters
  5402. // action.
  5403. DBCluster *DBCluster `type:"structure"`
  5404. }
  5405. // String returns the string representation
  5406. func (s CreateDBClusterOutput) String() string {
  5407. return awsutil.Prettify(s)
  5408. }
  5409. // GoString returns the string representation
  5410. func (s CreateDBClusterOutput) GoString() string {
  5411. return s.String()
  5412. }
  5413. type CreateDBClusterParameterGroupInput struct {
  5414. _ struct{} `type:"structure"`
  5415. // The name of the DB cluster parameter group.
  5416. //
  5417. // Constraints:
  5418. //
  5419. // Must be 1 to 255 alphanumeric characters
  5420. //
  5421. // First character must be a letter
  5422. //
  5423. // Cannot end with a hyphen or contain two consecutive hyphens
  5424. //
  5425. // This value is stored as a lowercase string.
  5426. DBClusterParameterGroupName *string `type:"string" required:"true"`
  5427. // The DB cluster parameter group family name. A DB cluster parameter group
  5428. // can be associated with one and only one DB cluster parameter group family,
  5429. // and can be applied only to a DB cluster running a database engine and engine
  5430. // version compatible with that DB cluster parameter group family.
  5431. DBParameterGroupFamily *string `type:"string" required:"true"`
  5432. // The description for the DB cluster parameter group.
  5433. Description *string `type:"string" required:"true"`
  5434. // A list of tags.
  5435. Tags []*Tag `locationNameList:"Tag" type:"list"`
  5436. }
  5437. // String returns the string representation
  5438. func (s CreateDBClusterParameterGroupInput) String() string {
  5439. return awsutil.Prettify(s)
  5440. }
  5441. // GoString returns the string representation
  5442. func (s CreateDBClusterParameterGroupInput) GoString() string {
  5443. return s.String()
  5444. }
  5445. // Validate inspects the fields of the type to determine if they are valid.
  5446. func (s *CreateDBClusterParameterGroupInput) Validate() error {
  5447. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterParameterGroupInput"}
  5448. if s.DBClusterParameterGroupName == nil {
  5449. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  5450. }
  5451. if s.DBParameterGroupFamily == nil {
  5452. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  5453. }
  5454. if s.Description == nil {
  5455. invalidParams.Add(request.NewErrParamRequired("Description"))
  5456. }
  5457. if invalidParams.Len() > 0 {
  5458. return invalidParams
  5459. }
  5460. return nil
  5461. }
  5462. type CreateDBClusterParameterGroupOutput struct {
  5463. _ struct{} `type:"structure"`
  5464. // Contains the result of a successful invocation of the CreateDBClusterParameterGroup
  5465. // or CopyDBClusterParameterGroup action.
  5466. //
  5467. // This data type is used as a request parameter in the DeleteDBClusterParameterGroup
  5468. // action, and as a response element in the DescribeDBClusterParameterGroups
  5469. // action.
  5470. DBClusterParameterGroup *DBClusterParameterGroup `type:"structure"`
  5471. }
  5472. // String returns the string representation
  5473. func (s CreateDBClusterParameterGroupOutput) String() string {
  5474. return awsutil.Prettify(s)
  5475. }
  5476. // GoString returns the string representation
  5477. func (s CreateDBClusterParameterGroupOutput) GoString() string {
  5478. return s.String()
  5479. }
  5480. type CreateDBClusterSnapshotInput struct {
  5481. _ struct{} `type:"structure"`
  5482. // The identifier of the DB cluster to create a snapshot for. This parameter
  5483. // is not case-sensitive.
  5484. //
  5485. // Constraints:
  5486. //
  5487. // Must contain from 1 to 63 alphanumeric characters or hyphens.
  5488. //
  5489. // First character must be a letter.
  5490. //
  5491. // Cannot end with a hyphen or contain two consecutive hyphens.
  5492. //
  5493. // Example: my-cluster1
  5494. DBClusterIdentifier *string `type:"string" required:"true"`
  5495. // The identifier of the DB cluster snapshot. This parameter is stored as a
  5496. // lowercase string.
  5497. //
  5498. // Constraints:
  5499. //
  5500. // Must contain from 1 to 63 alphanumeric characters or hyphens.
  5501. //
  5502. // First character must be a letter.
  5503. //
  5504. // Cannot end with a hyphen or contain two consecutive hyphens.
  5505. //
  5506. // Example: my-cluster1-snapshot1
  5507. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  5508. // The tags to be assigned to the DB cluster snapshot.
  5509. Tags []*Tag `locationNameList:"Tag" type:"list"`
  5510. }
  5511. // String returns the string representation
  5512. func (s CreateDBClusterSnapshotInput) String() string {
  5513. return awsutil.Prettify(s)
  5514. }
  5515. // GoString returns the string representation
  5516. func (s CreateDBClusterSnapshotInput) GoString() string {
  5517. return s.String()
  5518. }
  5519. // Validate inspects the fields of the type to determine if they are valid.
  5520. func (s *CreateDBClusterSnapshotInput) Validate() error {
  5521. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterSnapshotInput"}
  5522. if s.DBClusterIdentifier == nil {
  5523. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  5524. }
  5525. if s.DBClusterSnapshotIdentifier == nil {
  5526. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  5527. }
  5528. if invalidParams.Len() > 0 {
  5529. return invalidParams
  5530. }
  5531. return nil
  5532. }
  5533. type CreateDBClusterSnapshotOutput struct {
  5534. _ struct{} `type:"structure"`
  5535. // Contains the result of a successful invocation of the following actions:
  5536. //
  5537. // CreateDBClusterSnapshot
  5538. //
  5539. // DeleteDBClusterSnapshot
  5540. //
  5541. // This data type is used as a response element in the DescribeDBClusterSnapshots
  5542. // action.
  5543. DBClusterSnapshot *DBClusterSnapshot `type:"structure"`
  5544. }
  5545. // String returns the string representation
  5546. func (s CreateDBClusterSnapshotOutput) String() string {
  5547. return awsutil.Prettify(s)
  5548. }
  5549. // GoString returns the string representation
  5550. func (s CreateDBClusterSnapshotOutput) GoString() string {
  5551. return s.String()
  5552. }
  5553. type CreateDBInstanceInput struct {
  5554. _ struct{} `type:"structure"`
  5555. // The amount of storage (in gigabytes) to be initially allocated for the database
  5556. // instance.
  5557. //
  5558. // Type: Integer
  5559. //
  5560. // MySQL
  5561. //
  5562. // Constraints: Must be an integer from 5 to 6144.
  5563. //
  5564. // MariaDB
  5565. //
  5566. // Constraints: Must be an integer from 5 to 6144.
  5567. //
  5568. // PostgreSQL
  5569. //
  5570. // Constraints: Must be an integer from 5 to 6144.
  5571. //
  5572. // Oracle
  5573. //
  5574. // Constraints: Must be an integer from 10 to 6144.
  5575. //
  5576. // SQL Server
  5577. //
  5578. // Constraints: Must be an integer from 200 to 4096 (Standard Edition and Enterprise
  5579. // Edition) or from 20 to 4096 (Express Edition and Web Edition)
  5580. AllocatedStorage *int64 `type:"integer"`
  5581. // Indicates that minor engine upgrades will be applied automatically to the
  5582. // DB instance during the maintenance window.
  5583. //
  5584. // Default: true
  5585. AutoMinorVersionUpgrade *bool `type:"boolean"`
  5586. // The EC2 Availability Zone that the database instance will be created in.
  5587. // For information on regions and Availability Zones, see Regions and Availability
  5588. // Zones (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
  5589. //
  5590. // Default: A random, system-chosen Availability Zone in the endpoint's region.
  5591. //
  5592. // Example: us-east-1d
  5593. //
  5594. // Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ
  5595. // parameter is set to true. The specified Availability Zone must be in the
  5596. // same region as the current endpoint.
  5597. AvailabilityZone *string `type:"string"`
  5598. // The number of days for which automated backups are retained. Setting this
  5599. // parameter to a positive number enables backups. Setting this parameter to
  5600. // 0 disables automated backups.
  5601. //
  5602. // Default: 1
  5603. //
  5604. // Constraints:
  5605. //
  5606. // Must be a value from 0 to 35
  5607. //
  5608. // Cannot be set to 0 if the DB instance is a source to Read Replicas
  5609. BackupRetentionPeriod *int64 `type:"integer"`
  5610. // For supported engines, indicates that the DB instance should be associated
  5611. // with the specified CharacterSet.
  5612. CharacterSetName *string `type:"string"`
  5613. // True to copy all tags from the DB instance to snapshots of the DB instance;
  5614. // otherwise false. The default is false.
  5615. CopyTagsToSnapshot *bool `type:"boolean"`
  5616. // The identifier of the DB cluster that the instance will belong to.
  5617. //
  5618. // For information on creating a DB cluster, see CreateDBCluster.
  5619. //
  5620. // Type: String
  5621. DBClusterIdentifier *string `type:"string"`
  5622. // The compute and memory capacity of the DB instance.
  5623. //
  5624. // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large |
  5625. // db.m1.xlarge | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium
  5626. // | db.m3.large | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge
  5627. // | db.m4.2xlarge | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge
  5628. // | db.r3.2xlarge | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small
  5629. // | db.t2.medium | db.t2.large
  5630. DBInstanceClass *string `type:"string" required:"true"`
  5631. // The DB instance identifier. This parameter is stored as a lowercase string.
  5632. //
  5633. // Constraints:
  5634. //
  5635. // Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15
  5636. // for SQL Server).
  5637. //
  5638. // First character must be a letter.
  5639. //
  5640. // Cannot end with a hyphen or contain two consecutive hyphens.
  5641. //
  5642. // Example: mydbinstance
  5643. DBInstanceIdentifier *string `type:"string" required:"true"`
  5644. // The meaning of this parameter differs according to the database engine you
  5645. // use.
  5646. //
  5647. // Type: String
  5648. //
  5649. // MySQL
  5650. //
  5651. // The name of the database to create when the DB instance is created. If this
  5652. // parameter is not specified, no database is created in the DB instance.
  5653. //
  5654. // Constraints:
  5655. //
  5656. // Must contain 1 to 64 alphanumeric characters
  5657. //
  5658. // Cannot be a word reserved by the specified database engine
  5659. //
  5660. // MariaDB
  5661. //
  5662. // The name of the database to create when the DB instance is created. If this
  5663. // parameter is not specified, no database is created in the DB instance.
  5664. //
  5665. // Constraints:
  5666. //
  5667. // Must contain 1 to 64 alphanumeric characters
  5668. //
  5669. // Cannot be a word reserved by the specified database engine
  5670. //
  5671. // PostgreSQL
  5672. //
  5673. // The name of the database to create when the DB instance is created. If this
  5674. // parameter is not specified, the default "postgres" database is created in
  5675. // the DB instance.
  5676. //
  5677. // Constraints:
  5678. //
  5679. // Must contain 1 to 63 alphanumeric characters
  5680. //
  5681. // Must begin with a letter or an underscore. Subsequent characters can be
  5682. // letters, underscores, or digits (0-9).
  5683. //
  5684. // Cannot be a word reserved by the specified database engine
  5685. //
  5686. // Oracle
  5687. //
  5688. // The Oracle System ID (SID) of the created DB instance.
  5689. //
  5690. // Default: ORCL
  5691. //
  5692. // Constraints:
  5693. //
  5694. // Cannot be longer than 8 characters
  5695. //
  5696. // SQL Server
  5697. //
  5698. // Not applicable. Must be null.
  5699. //
  5700. // Amazon Aurora
  5701. //
  5702. // The name of the database to create when the primary instance of the DB cluster
  5703. // is created. If this parameter is not specified, no database is created in
  5704. // the DB instance.
  5705. //
  5706. // Constraints:
  5707. //
  5708. // Must contain 1 to 64 alphanumeric characters
  5709. //
  5710. // Cannot be a word reserved by the specified database engine
  5711. DBName *string `type:"string"`
  5712. // The name of the DB parameter group to associate with this DB instance. If
  5713. // this argument is omitted, the default DBParameterGroup for the specified
  5714. // engine will be used.
  5715. //
  5716. // Constraints:
  5717. //
  5718. // Must be 1 to 255 alphanumeric characters
  5719. //
  5720. // First character must be a letter
  5721. //
  5722. // Cannot end with a hyphen or contain two consecutive hyphens
  5723. DBParameterGroupName *string `type:"string"`
  5724. // A list of DB security groups to associate with this DB instance.
  5725. //
  5726. // Default: The default DB security group for the database engine.
  5727. DBSecurityGroups []*string `locationNameList:"DBSecurityGroupName" type:"list"`
  5728. // A DB subnet group to associate with this DB instance.
  5729. //
  5730. // If there is no DB subnet group, then it is a non-VPC DB instance.
  5731. DBSubnetGroupName *string `type:"string"`
  5732. // Specify the Active Directory Domain to create the instance in.
  5733. Domain *string `type:"string"`
  5734. // Specify the name of the IAM role to be used when making API calls to the
  5735. // Directory Service.
  5736. DomainIAMRoleName *string `type:"string"`
  5737. // The name of the database engine to be used for this instance.
  5738. //
  5739. // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee
  5740. // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora
  5741. //
  5742. // Not every database engine is available for every AWS region.
  5743. Engine *string `type:"string" required:"true"`
  5744. // The version number of the database engine to use.
  5745. //
  5746. // The following are the database engines and major and minor versions that
  5747. // are available with Amazon RDS. Not every database engine is available for
  5748. // every AWS region.
  5749. //
  5750. // Amazon Aurora
  5751. //
  5752. // Version 5.6 (only available in AWS regions ap-northeast-1, ap-northeast-2,
  5753. // ap-south-1, ap-southeast-2, eu-west-1, us-east-1, us-west-2): 5.6.10a
  5754. //
  5755. // MariaDB
  5756. //
  5757. // Version 10.1 (available in all AWS regions except us-gov-west-1): 10.1.14
  5758. //
  5759. // Version 10.0 (available in all AWS regions): 10.0.17 | 10.0.24
  5760. //
  5761. // Microsoft SQL Server Enterprise Edition (sqlserver-ee)
  5762. //
  5763. // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1
  5764. // | 11.00.6020.0.v1
  5765. //
  5766. // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1
  5767. // | 10.50.6529.0.v1
  5768. //
  5769. // Microsoft SQL Server Express Edition (sqlserver-ex)
  5770. //
  5771. // Version 12.00 (available in all AWS regions): 12.00.4422.0.v1
  5772. //
  5773. // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1
  5774. // | 11.00.6020.0.v1
  5775. //
  5776. // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1
  5777. // | 10.50.6529.0.v1
  5778. //
  5779. // Microsoft SQL Server Standard Edition (sqlserver-se)
  5780. //
  5781. // Version 12.00 (available in all AWS regions): 12.00.4422.0.v1
  5782. //
  5783. // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1
  5784. // | 11.00.6020.0.v1
  5785. //
  5786. // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1
  5787. // | 10.50.6529.0.v1
  5788. //
  5789. // Microsoft SQL Server Web Edition (sqlserver-web)
  5790. //
  5791. // Version 12.00 (available in all AWS regions): 12.00.4422.0.v1
  5792. //
  5793. // Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1
  5794. // | 11.00.6020.0.v1
  5795. //
  5796. // Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1
  5797. // | 10.50.6529.0.v1
  5798. //
  5799. // MySQL
  5800. //
  5801. // Version 5.7 (available in all AWS regions): 5.7.10 | 5.7.11
  5802. //
  5803. // Version 5.6 (available in all AWS regions except ap-south-1, ap-northeast-2):
  5804. // 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22
  5805. //
  5806. // Version 5.6 (available in all AWS regions except ap-south-1): 5.6.23
  5807. //
  5808. // Version 5.6 (available in all AWS regions): 5.6.27 | 5.6.29
  5809. //
  5810. // Version 5.5 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5811. // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1,
  5812. // us-west-2): 5.5.40 | 5.5.40a
  5813. //
  5814. // Version 5.5 (available in all AWS regions except ap-south-1, ap-northeast-2):
  5815. // 5.5.40b | 5.5.41
  5816. //
  5817. // Version 5.5 (available in all AWS regions except ap-south-1): 5.5.42
  5818. //
  5819. // Version 5.5 (available in all AWS regions): 5.5.46
  5820. //
  5821. // Version 5.1 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5822. // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1,
  5823. // us-west-2): 5.1.73a | 5.1.73b
  5824. //
  5825. // Oracle Database Enterprise Edition (oracle-ee)
  5826. //
  5827. // Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2):
  5828. // 12.1.0.1.v1 | 12.1.0.1.v2
  5829. //
  5830. // Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5831. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1,
  5832. // us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5
  5833. //
  5834. // Version 12.1 (available in all AWS regions): 12.1.0.2.v1
  5835. //
  5836. // Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2
  5837. // | 12.1.0.2.v3 | 12.1.0.2.v4
  5838. //
  5839. // Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5840. // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1,
  5841. // us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7
  5842. //
  5843. // Version 11.2 (available in all AWS regions except ap-south-1, ap-northeast-2):
  5844. // 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3
  5845. //
  5846. // Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5847. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1,
  5848. // us-west-2): 11.2.0.3.v4
  5849. //
  5850. // Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3
  5851. // | 11.2.0.4.v4
  5852. //
  5853. // Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5
  5854. // | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8
  5855. //
  5856. // Oracle Database Standard Edition (oracle-se)
  5857. //
  5858. // Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2):
  5859. // 12.1.0.1.v1 | 12.1.0.1.v2
  5860. //
  5861. // Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5862. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1,
  5863. // us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5
  5864. //
  5865. // Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5866. // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1,
  5867. // us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7
  5868. //
  5869. // Version 11.2 (available in all AWS regions except ap-south-1, ap-northeast-2):
  5870. // 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3
  5871. //
  5872. // Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5873. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1,
  5874. // us-west-2): 11.2.0.3.v4
  5875. //
  5876. // Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3
  5877. // | 11.2.0.4.v4
  5878. //
  5879. // Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5
  5880. // | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8
  5881. //
  5882. // Oracle Database Standard Edition One (oracle-se1)
  5883. //
  5884. // Version 12.1 (available in all AWS regions except ap-south-1, ap-northeast-2):
  5885. // 12.1.0.1.v1 | 12.1.0.1.v2
  5886. //
  5887. // Version 12.1 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5888. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1,
  5889. // us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5
  5890. //
  5891. // Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5892. // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1,
  5893. // us-west-2): 11.2.0.2.v3 | 11.2.0.2.v4 | 11.2.0.2.v5 | 11.2.0.2.v6 | 11.2.0.2.v7
  5894. //
  5895. // Version 11.2 (available in all AWS regions except ap-south-1, ap-northeast-2):
  5896. // 11.2.0.3.v1 | 11.2.0.3.v2 | 11.2.0.3.v3
  5897. //
  5898. // Version 11.2 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5899. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1,
  5900. // us-west-2): 11.2.0.3.v4
  5901. //
  5902. // Version 11.2 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3
  5903. // | 11.2.0.4.v4
  5904. //
  5905. // Version 11.2 (available in all AWS regions except us-gov-west-1): 11.2.0.4.v5
  5906. // | 11.2.0.4.v6 | 11.2.0.4.v7 | 11.2.0.4.v8
  5907. //
  5908. // Oracle Database Standard Edition Two (oracle-se2)
  5909. //
  5910. // Version 12.1 (available in all AWS regions except us-gov-west-1): 12.1.0.2.v2
  5911. // | 12.1.0.2.v3 | 12.1.0.2.v4
  5912. //
  5913. // PostgreSQL
  5914. //
  5915. // Version 9.5 (available in all AWS regions except us-gov-west-1): 9.5.2
  5916. //
  5917. // Version 9.4 (available in all AWS regions except ap-south-1): 9.4.1
  5918. // | 9.4.4
  5919. //
  5920. // Version 9.4 (available in all AWS regions): 9.4.5
  5921. //
  5922. // Version 9.4 (available in all AWS regions except us-gov-west-1): 9.4.7
  5923. //
  5924. // Version 9.3 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5925. // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1,
  5926. // us-west-2): 9.3.1 | 9.3.2
  5927. //
  5928. // Version 9.3 (available in all AWS regions except ap-south-1, ap-northeast-2):
  5929. // 9.3.10 | 9.3.3 | 9.3.5 | 9.3.6 | 9.3.9
  5930. //
  5931. // Version 9.3 (only available in AWS regions ap-northeast-1, ap-southeast-1,
  5932. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1,
  5933. // us-west-2): 9.3.12
  5934. EngineVersion *string `type:"string"`
  5935. // The amount of Provisioned IOPS (input/output operations per second) to be
  5936. // initially allocated for the DB instance.
  5937. //
  5938. // Constraints: Must be a multiple between 3 and 10 of the storage amount for
  5939. // the DB instance. Must also be an integer multiple of 1000. For example, if
  5940. // the size of your DB instance is 500 GB, then your Iops value can be 2000,
  5941. // 3000, 4000, or 5000.
  5942. Iops *int64 `type:"integer"`
  5943. // The KMS key identifier for an encrypted DB instance.
  5944. //
  5945. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  5946. // key. If you are creating a DB instance with the same AWS account that owns
  5947. // the KMS encryption key used to encrypt the new DB instance, then you can
  5948. // use the KMS key alias instead of the ARN for the KM encryption key.
  5949. //
  5950. // If the StorageEncrypted parameter is true, and you do not specify a value
  5951. // for the KmsKeyId parameter, then Amazon RDS will use your default encryption
  5952. // key. AWS KMS creates the default encryption key for your AWS account. Your
  5953. // AWS account has a different default encryption key for each AWS region.
  5954. KmsKeyId *string `type:"string"`
  5955. // License model information for this DB instance.
  5956. //
  5957. // Valid values: license-included | bring-your-own-license | general-public-license
  5958. LicenseModel *string `type:"string"`
  5959. // The password for the master database user. Can be any printable ASCII character
  5960. // except "/", """, or "@".
  5961. //
  5962. // Type: String
  5963. //
  5964. // MySQL
  5965. //
  5966. // Constraints: Must contain from 8 to 41 characters.
  5967. //
  5968. // MariaDB
  5969. //
  5970. // Constraints: Must contain from 8 to 41 characters.
  5971. //
  5972. // Oracle
  5973. //
  5974. // Constraints: Must contain from 8 to 30 characters.
  5975. //
  5976. // SQL Server
  5977. //
  5978. // Constraints: Must contain from 8 to 128 characters.
  5979. //
  5980. // PostgreSQL
  5981. //
  5982. // Constraints: Must contain from 8 to 128 characters.
  5983. //
  5984. // Amazon Aurora
  5985. //
  5986. // Constraints: Must contain from 8 to 41 characters.
  5987. MasterUserPassword *string `type:"string"`
  5988. // The name of master user for the client DB instance.
  5989. //
  5990. // MySQL
  5991. //
  5992. // Constraints:
  5993. //
  5994. // Must be 1 to 16 alphanumeric characters.
  5995. //
  5996. // First character must be a letter.
  5997. //
  5998. // Cannot be a reserved word for the chosen database engine.
  5999. //
  6000. // MariaDB
  6001. //
  6002. // Constraints:
  6003. //
  6004. // Must be 1 to 16 alphanumeric characters.
  6005. //
  6006. // Cannot be a reserved word for the chosen database engine.
  6007. //
  6008. // Type: String
  6009. //
  6010. // Oracle
  6011. //
  6012. // Constraints:
  6013. //
  6014. // Must be 1 to 30 alphanumeric characters.
  6015. //
  6016. // First character must be a letter.
  6017. //
  6018. // Cannot be a reserved word for the chosen database engine.
  6019. //
  6020. // SQL Server
  6021. //
  6022. // Constraints:
  6023. //
  6024. // Must be 1 to 128 alphanumeric characters.
  6025. //
  6026. // First character must be a letter.
  6027. //
  6028. // Cannot be a reserved word for the chosen database engine.
  6029. //
  6030. // PostgreSQL
  6031. //
  6032. // Constraints:
  6033. //
  6034. // Must be 1 to 63 alphanumeric characters.
  6035. //
  6036. // First character must be a letter.
  6037. //
  6038. // Cannot be a reserved word for the chosen database engine.
  6039. MasterUsername *string `type:"string"`
  6040. // The interval, in seconds, between points when Enhanced Monitoring metrics
  6041. // are collected for the DB instance. To disable collecting Enhanced Monitoring
  6042. // metrics, specify 0. The default is 0.
  6043. //
  6044. // If MonitoringRoleArn is specified, then you must also set MonitoringInterval
  6045. // to a value other than 0.
  6046. //
  6047. // Valid Values: 0, 1, 5, 10, 15, 30, 60
  6048. MonitoringInterval *int64 `type:"integer"`
  6049. // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics
  6050. // to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess.
  6051. // For information on creating a monitoring role, go to To create an IAM role
  6052. // for Amazon RDS Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole).
  6053. //
  6054. // If MonitoringInterval is set to a value other than 0, then you must supply
  6055. // a MonitoringRoleArn value.
  6056. MonitoringRoleArn *string `type:"string"`
  6057. // Specifies if the DB instance is a Multi-AZ deployment. You cannot set the
  6058. // AvailabilityZone parameter if the MultiAZ parameter is set to true.
  6059. MultiAZ *bool `type:"boolean"`
  6060. // Indicates that the DB instance should be associated with the specified option
  6061. // group.
  6062. //
  6063. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  6064. // cannot be removed from an option group, and that option group cannot be removed
  6065. // from a DB instance once it is associated with a DB instance
  6066. OptionGroupName *string `type:"string"`
  6067. // The port number on which the database accepts connections.
  6068. //
  6069. // MySQL
  6070. //
  6071. // Default: 3306
  6072. //
  6073. // Valid Values: 1150-65535
  6074. //
  6075. // Type: Integer
  6076. //
  6077. // MariaDB
  6078. //
  6079. // Default: 3306
  6080. //
  6081. // Valid Values: 1150-65535
  6082. //
  6083. // Type: Integer
  6084. //
  6085. // PostgreSQL
  6086. //
  6087. // Default: 5432
  6088. //
  6089. // Valid Values: 1150-65535
  6090. //
  6091. // Type: Integer
  6092. //
  6093. // Oracle
  6094. //
  6095. // Default: 1521
  6096. //
  6097. // Valid Values: 1150-65535
  6098. //
  6099. // SQL Server
  6100. //
  6101. // Default: 1433
  6102. //
  6103. // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152
  6104. // through 49156.
  6105. //
  6106. // Amazon Aurora
  6107. //
  6108. // Default: 3306
  6109. //
  6110. // Valid Values: 1150-65535
  6111. //
  6112. // Type: Integer
  6113. Port *int64 `type:"integer"`
  6114. // The daily time range during which automated backups are created if automated
  6115. // backups are enabled, using the BackupRetentionPeriod parameter. For more
  6116. // information, see DB Instance Backups (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.BackingUpAndRestoringAmazonRDSInstances.html).
  6117. //
  6118. // Default: A 30-minute window selected at random from an 8-hour block of
  6119. // time per region. To see the time blocks available, see Adjusting the Preferred
  6120. // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  6121. // in the Amazon RDS User Guide.
  6122. //
  6123. // Constraints:
  6124. //
  6125. // Must be in the format hh24:mi-hh24:mi.
  6126. //
  6127. // Times should be in Universal Coordinated Time (UTC).
  6128. //
  6129. // Must not conflict with the preferred maintenance window.
  6130. //
  6131. // Must be at least 30 minutes.
  6132. PreferredBackupWindow *string `type:"string"`
  6133. // The weekly time range during which system maintenance can occur, in Universal
  6134. // Coordinated Time (UTC). For more information, see DB Instance Maintenance
  6135. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBMaintenance.html).
  6136. //
  6137. // Format: ddd:hh24:mi-ddd:hh24:mi
  6138. //
  6139. // Default: A 30-minute window selected at random from an 8-hour block of
  6140. // time per region, occurring on a random day of the week. To see the time blocks
  6141. // available, see Adjusting the Preferred Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  6142. // in the Amazon RDS User Guide.
  6143. //
  6144. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  6145. //
  6146. // Constraints: Minimum 30-minute window.
  6147. PreferredMaintenanceWindow *string `type:"string"`
  6148. // A value that specifies the order in which an Aurora Replica is promoted to
  6149. // the primary instance after a failure of the existing primary instance. For
  6150. // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance).
  6151. //
  6152. // Default: 1
  6153. //
  6154. // Valid Values: 0 - 15
  6155. PromotionTier *int64 `type:"integer"`
  6156. // Specifies the accessibility options for the DB instance. A value of true
  6157. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  6158. // which resolves to a public IP address. A value of false specifies an internal
  6159. // instance with a DNS name that resolves to a private IP address.
  6160. //
  6161. // Default: The default behavior varies depending on whether a VPC has been
  6162. // requested or not. The following list shows the default behavior in each case.
  6163. //
  6164. // Default VPC: true
  6165. //
  6166. // VPC: false
  6167. //
  6168. // If no DB subnet group has been specified as part of the request and the
  6169. // PubliclyAccessible value has not been set, the DB instance will be publicly
  6170. // accessible. If a specific DB subnet group has been specified as part of the
  6171. // request and the PubliclyAccessible value has not been set, the DB instance
  6172. // will be private.
  6173. PubliclyAccessible *bool `type:"boolean"`
  6174. // Specifies whether the DB instance is encrypted.
  6175. //
  6176. // Default: false
  6177. StorageEncrypted *bool `type:"boolean"`
  6178. // Specifies the storage type to be associated with the DB instance.
  6179. //
  6180. // Valid values: standard | gp2 | io1
  6181. //
  6182. // If you specify io1, you must also include a value for the Iops parameter.
  6183. //
  6184. // Default: io1 if the Iops parameter is specified; otherwise standard
  6185. StorageType *string `type:"string"`
  6186. // A list of tags.
  6187. Tags []*Tag `locationNameList:"Tag" type:"list"`
  6188. // The ARN from the Key Store with which to associate the instance for TDE encryption.
  6189. TdeCredentialArn *string `type:"string"`
  6190. // The password for the given ARN from the Key Store in order to access the
  6191. // device.
  6192. TdeCredentialPassword *string `type:"string"`
  6193. // A list of EC2 VPC security groups to associate with this DB instance.
  6194. //
  6195. // Default: The default EC2 VPC security group for the DB subnet group's VPC.
  6196. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  6197. }
  6198. // String returns the string representation
  6199. func (s CreateDBInstanceInput) String() string {
  6200. return awsutil.Prettify(s)
  6201. }
  6202. // GoString returns the string representation
  6203. func (s CreateDBInstanceInput) GoString() string {
  6204. return s.String()
  6205. }
  6206. // Validate inspects the fields of the type to determine if they are valid.
  6207. func (s *CreateDBInstanceInput) Validate() error {
  6208. invalidParams := request.ErrInvalidParams{Context: "CreateDBInstanceInput"}
  6209. if s.DBInstanceClass == nil {
  6210. invalidParams.Add(request.NewErrParamRequired("DBInstanceClass"))
  6211. }
  6212. if s.DBInstanceIdentifier == nil {
  6213. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  6214. }
  6215. if s.Engine == nil {
  6216. invalidParams.Add(request.NewErrParamRequired("Engine"))
  6217. }
  6218. if invalidParams.Len() > 0 {
  6219. return invalidParams
  6220. }
  6221. return nil
  6222. }
  6223. type CreateDBInstanceOutput struct {
  6224. _ struct{} `type:"structure"`
  6225. // Contains the result of a successful invocation of the following actions:
  6226. //
  6227. // CreateDBInstance
  6228. //
  6229. // DeleteDBInstance
  6230. //
  6231. // ModifyDBInstance
  6232. //
  6233. // This data type is used as a response element in the DescribeDBInstances
  6234. // action.
  6235. DBInstance *DBInstance `type:"structure"`
  6236. }
  6237. // String returns the string representation
  6238. func (s CreateDBInstanceOutput) String() string {
  6239. return awsutil.Prettify(s)
  6240. }
  6241. // GoString returns the string representation
  6242. func (s CreateDBInstanceOutput) GoString() string {
  6243. return s.String()
  6244. }
  6245. type CreateDBInstanceReadReplicaInput struct {
  6246. _ struct{} `type:"structure"`
  6247. // Indicates that minor engine upgrades will be applied automatically to the
  6248. // Read Replica during the maintenance window.
  6249. //
  6250. // Default: Inherits from the source DB instance
  6251. AutoMinorVersionUpgrade *bool `type:"boolean"`
  6252. // The Amazon EC2 Availability Zone that the Read Replica will be created in.
  6253. //
  6254. // Default: A random, system-chosen Availability Zone in the endpoint's region.
  6255. //
  6256. // Example: us-east-1d
  6257. AvailabilityZone *string `type:"string"`
  6258. // True to copy all tags from the Read Replica to snapshots of the Read Replica;
  6259. // otherwise false. The default is false.
  6260. CopyTagsToSnapshot *bool `type:"boolean"`
  6261. // The compute and memory capacity of the Read Replica.
  6262. //
  6263. // Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge |
  6264. // db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large
  6265. // | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge
  6266. // | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge
  6267. // | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium
  6268. // | db.t2.large
  6269. //
  6270. // Default: Inherits from the source DB instance.
  6271. DBInstanceClass *string `type:"string"`
  6272. // The DB instance identifier of the Read Replica. This identifier is the unique
  6273. // key that identifies a DB instance. This parameter is stored as a lowercase
  6274. // string.
  6275. DBInstanceIdentifier *string `type:"string" required:"true"`
  6276. // Specifies a DB subnet group for the DB instance. The new DB instance will
  6277. // be created in the VPC associated with the DB subnet group. If no DB subnet
  6278. // group is specified, then the new DB instance is not created in a VPC.
  6279. //
  6280. // Constraints:
  6281. //
  6282. // Can only be specified if the source DB instance identifier specifies a
  6283. // DB instance in another region.
  6284. //
  6285. // The specified DB subnet group must be in the same region in which the
  6286. // operation is running.
  6287. //
  6288. // All Read Replicas in one region that are created from the same source
  6289. // DB instance must either:>
  6290. //
  6291. // Specify DB subnet groups from the same VPC. All these Read Replicas will
  6292. // be created in the same VPC.
  6293. //
  6294. // Not specify a DB subnet group. All these Read Replicas will be created
  6295. // outside of any VPC.
  6296. //
  6297. // Constraints: Must contain no more than 255 alphanumeric characters,
  6298. // periods, underscores, spaces, or hyphens. Must not be default.
  6299. //
  6300. // Example: mySubnetgroup
  6301. DBSubnetGroupName *string `type:"string"`
  6302. // The amount of Provisioned IOPS (input/output operations per second) to be
  6303. // initially allocated for the DB instance.
  6304. Iops *int64 `type:"integer"`
  6305. // The interval, in seconds, between points when Enhanced Monitoring metrics
  6306. // are collected for the Read Replica. To disable collecting Enhanced Monitoring
  6307. // metrics, specify 0. The default is 0.
  6308. //
  6309. // If MonitoringRoleArn is specified, then you must also set MonitoringInterval
  6310. // to a value other than 0.
  6311. //
  6312. // Valid Values: 0, 1, 5, 10, 15, 30, 60
  6313. MonitoringInterval *int64 `type:"integer"`
  6314. // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics
  6315. // to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess.
  6316. // For information on creating a monitoring role, go to To create an IAM role
  6317. // for Amazon RDS Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole).
  6318. //
  6319. // If MonitoringInterval is set to a value other than 0, then you must supply
  6320. // a MonitoringRoleArn value.
  6321. MonitoringRoleArn *string `type:"string"`
  6322. // The option group the DB instance will be associated with. If omitted, the
  6323. // default option group for the engine specified will be used.
  6324. OptionGroupName *string `type:"string"`
  6325. // The port number that the DB instance uses for connections.
  6326. //
  6327. // Default: Inherits from the source DB instance
  6328. //
  6329. // Valid Values: 1150-65535
  6330. Port *int64 `type:"integer"`
  6331. // Specifies the accessibility options for the DB instance. A value of true
  6332. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  6333. // which resolves to a public IP address. A value of false specifies an internal
  6334. // instance with a DNS name that resolves to a private IP address.
  6335. //
  6336. // Default: The default behavior varies depending on whether a VPC has been
  6337. // requested or not. The following list shows the default behavior in each case.
  6338. //
  6339. // Default VPC:true
  6340. //
  6341. // VPC:false
  6342. //
  6343. // If no DB subnet group has been specified as part of the request and the
  6344. // PubliclyAccessible value has not been set, the DB instance will be publicly
  6345. // accessible. If a specific DB subnet group has been specified as part of the
  6346. // request and the PubliclyAccessible value has not been set, the DB instance
  6347. // will be private.
  6348. PubliclyAccessible *bool `type:"boolean"`
  6349. // The identifier of the DB instance that will act as the source for the Read
  6350. // Replica. Each DB instance can have up to five Read Replicas.
  6351. //
  6352. // Constraints:
  6353. //
  6354. // Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL DB
  6355. // instance.
  6356. //
  6357. // Can specify a DB instance that is a MySQL Read Replica only if the source
  6358. // is running MySQL 5.6.
  6359. //
  6360. // Can specify a DB instance that is a PostgreSQL Read Replica only if the
  6361. // source is running PostgreSQL 9.3.5.
  6362. //
  6363. // The specified DB instance must have automatic backups enabled, its backup
  6364. // retention period must be greater than 0.
  6365. //
  6366. // If the source DB instance is in the same region as the Read Replica, specify
  6367. // a valid DB instance identifier.
  6368. //
  6369. // If the source DB instance is in a different region than the Read Replica,
  6370. // specify a valid DB instance ARN. For more information, go to Constructing
  6371. // a Amazon RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN).
  6372. SourceDBInstanceIdentifier *string `type:"string" required:"true"`
  6373. // Specifies the storage type to be associated with the Read Replica.
  6374. //
  6375. // Valid values: standard | gp2 | io1
  6376. //
  6377. // If you specify io1, you must also include a value for the Iops parameter.
  6378. //
  6379. // Default: io1 if the Iops parameter is specified; otherwise standard
  6380. StorageType *string `type:"string"`
  6381. // A list of tags.
  6382. Tags []*Tag `locationNameList:"Tag" type:"list"`
  6383. }
  6384. // String returns the string representation
  6385. func (s CreateDBInstanceReadReplicaInput) String() string {
  6386. return awsutil.Prettify(s)
  6387. }
  6388. // GoString returns the string representation
  6389. func (s CreateDBInstanceReadReplicaInput) GoString() string {
  6390. return s.String()
  6391. }
  6392. // Validate inspects the fields of the type to determine if they are valid.
  6393. func (s *CreateDBInstanceReadReplicaInput) Validate() error {
  6394. invalidParams := request.ErrInvalidParams{Context: "CreateDBInstanceReadReplicaInput"}
  6395. if s.DBInstanceIdentifier == nil {
  6396. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  6397. }
  6398. if s.SourceDBInstanceIdentifier == nil {
  6399. invalidParams.Add(request.NewErrParamRequired("SourceDBInstanceIdentifier"))
  6400. }
  6401. if invalidParams.Len() > 0 {
  6402. return invalidParams
  6403. }
  6404. return nil
  6405. }
  6406. type CreateDBInstanceReadReplicaOutput struct {
  6407. _ struct{} `type:"structure"`
  6408. // Contains the result of a successful invocation of the following actions:
  6409. //
  6410. // CreateDBInstance
  6411. //
  6412. // DeleteDBInstance
  6413. //
  6414. // ModifyDBInstance
  6415. //
  6416. // This data type is used as a response element in the DescribeDBInstances
  6417. // action.
  6418. DBInstance *DBInstance `type:"structure"`
  6419. }
  6420. // String returns the string representation
  6421. func (s CreateDBInstanceReadReplicaOutput) String() string {
  6422. return awsutil.Prettify(s)
  6423. }
  6424. // GoString returns the string representation
  6425. func (s CreateDBInstanceReadReplicaOutput) GoString() string {
  6426. return s.String()
  6427. }
  6428. type CreateDBParameterGroupInput struct {
  6429. _ struct{} `type:"structure"`
  6430. // The DB parameter group family name. A DB parameter group can be associated
  6431. // with one and only one DB parameter group family, and can be applied only
  6432. // to a DB instance running a database engine and engine version compatible
  6433. // with that DB parameter group family.
  6434. DBParameterGroupFamily *string `type:"string" required:"true"`
  6435. // The name of the DB parameter group.
  6436. //
  6437. // Constraints:
  6438. //
  6439. // Must be 1 to 255 alphanumeric characters
  6440. //
  6441. // First character must be a letter
  6442. //
  6443. // Cannot end with a hyphen or contain two consecutive hyphens
  6444. //
  6445. // This value is stored as a lowercase string.
  6446. DBParameterGroupName *string `type:"string" required:"true"`
  6447. // The description for the DB parameter group.
  6448. Description *string `type:"string" required:"true"`
  6449. // A list of tags.
  6450. Tags []*Tag `locationNameList:"Tag" type:"list"`
  6451. }
  6452. // String returns the string representation
  6453. func (s CreateDBParameterGroupInput) String() string {
  6454. return awsutil.Prettify(s)
  6455. }
  6456. // GoString returns the string representation
  6457. func (s CreateDBParameterGroupInput) GoString() string {
  6458. return s.String()
  6459. }
  6460. // Validate inspects the fields of the type to determine if they are valid.
  6461. func (s *CreateDBParameterGroupInput) Validate() error {
  6462. invalidParams := request.ErrInvalidParams{Context: "CreateDBParameterGroupInput"}
  6463. if s.DBParameterGroupFamily == nil {
  6464. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  6465. }
  6466. if s.DBParameterGroupName == nil {
  6467. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  6468. }
  6469. if s.Description == nil {
  6470. invalidParams.Add(request.NewErrParamRequired("Description"))
  6471. }
  6472. if invalidParams.Len() > 0 {
  6473. return invalidParams
  6474. }
  6475. return nil
  6476. }
  6477. type CreateDBParameterGroupOutput struct {
  6478. _ struct{} `type:"structure"`
  6479. // Contains the result of a successful invocation of the CreateDBParameterGroup
  6480. // action.
  6481. //
  6482. // This data type is used as a request parameter in the DeleteDBParameterGroup
  6483. // action, and as a response element in the DescribeDBParameterGroups action.
  6484. DBParameterGroup *DBParameterGroup `type:"structure"`
  6485. }
  6486. // String returns the string representation
  6487. func (s CreateDBParameterGroupOutput) String() string {
  6488. return awsutil.Prettify(s)
  6489. }
  6490. // GoString returns the string representation
  6491. func (s CreateDBParameterGroupOutput) GoString() string {
  6492. return s.String()
  6493. }
  6494. type CreateDBSecurityGroupInput struct {
  6495. _ struct{} `type:"structure"`
  6496. // The description for the DB security group.
  6497. DBSecurityGroupDescription *string `type:"string" required:"true"`
  6498. // The name for the DB security group. This value is stored as a lowercase string.
  6499. //
  6500. // Constraints:
  6501. //
  6502. // Must be 1 to 255 alphanumeric characters
  6503. //
  6504. // First character must be a letter
  6505. //
  6506. // Cannot end with a hyphen or contain two consecutive hyphens
  6507. //
  6508. // Must not be "Default"
  6509. //
  6510. // Example: mysecuritygroup
  6511. DBSecurityGroupName *string `type:"string" required:"true"`
  6512. // A list of tags.
  6513. Tags []*Tag `locationNameList:"Tag" type:"list"`
  6514. }
  6515. // String returns the string representation
  6516. func (s CreateDBSecurityGroupInput) String() string {
  6517. return awsutil.Prettify(s)
  6518. }
  6519. // GoString returns the string representation
  6520. func (s CreateDBSecurityGroupInput) GoString() string {
  6521. return s.String()
  6522. }
  6523. // Validate inspects the fields of the type to determine if they are valid.
  6524. func (s *CreateDBSecurityGroupInput) Validate() error {
  6525. invalidParams := request.ErrInvalidParams{Context: "CreateDBSecurityGroupInput"}
  6526. if s.DBSecurityGroupDescription == nil {
  6527. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupDescription"))
  6528. }
  6529. if s.DBSecurityGroupName == nil {
  6530. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName"))
  6531. }
  6532. if invalidParams.Len() > 0 {
  6533. return invalidParams
  6534. }
  6535. return nil
  6536. }
  6537. type CreateDBSecurityGroupOutput struct {
  6538. _ struct{} `type:"structure"`
  6539. // Contains the result of a successful invocation of the following actions:
  6540. //
  6541. // DescribeDBSecurityGroups
  6542. //
  6543. // AuthorizeDBSecurityGroupIngress
  6544. //
  6545. // CreateDBSecurityGroup
  6546. //
  6547. // RevokeDBSecurityGroupIngress
  6548. //
  6549. // This data type is used as a response element in the DescribeDBSecurityGroups
  6550. // action.
  6551. DBSecurityGroup *DBSecurityGroup `type:"structure"`
  6552. }
  6553. // String returns the string representation
  6554. func (s CreateDBSecurityGroupOutput) String() string {
  6555. return awsutil.Prettify(s)
  6556. }
  6557. // GoString returns the string representation
  6558. func (s CreateDBSecurityGroupOutput) GoString() string {
  6559. return s.String()
  6560. }
  6561. type CreateDBSnapshotInput struct {
  6562. _ struct{} `type:"structure"`
  6563. // The DB instance identifier. This is the unique key that identifies a DB instance.
  6564. //
  6565. // Constraints:
  6566. //
  6567. // Must contain from 1 to 63 alphanumeric characters or hyphens
  6568. //
  6569. // First character must be a letter
  6570. //
  6571. // Cannot end with a hyphen or contain two consecutive hyphens
  6572. DBInstanceIdentifier *string `type:"string" required:"true"`
  6573. // The identifier for the DB snapshot.
  6574. //
  6575. // Constraints:
  6576. //
  6577. // Cannot be null, empty, or blank
  6578. //
  6579. // Must contain from 1 to 255 alphanumeric characters or hyphens
  6580. //
  6581. // First character must be a letter
  6582. //
  6583. // Cannot end with a hyphen or contain two consecutive hyphens
  6584. //
  6585. // Example: my-snapshot-id
  6586. DBSnapshotIdentifier *string `type:"string" required:"true"`
  6587. // A list of tags.
  6588. Tags []*Tag `locationNameList:"Tag" type:"list"`
  6589. }
  6590. // String returns the string representation
  6591. func (s CreateDBSnapshotInput) String() string {
  6592. return awsutil.Prettify(s)
  6593. }
  6594. // GoString returns the string representation
  6595. func (s CreateDBSnapshotInput) GoString() string {
  6596. return s.String()
  6597. }
  6598. // Validate inspects the fields of the type to determine if they are valid.
  6599. func (s *CreateDBSnapshotInput) Validate() error {
  6600. invalidParams := request.ErrInvalidParams{Context: "CreateDBSnapshotInput"}
  6601. if s.DBInstanceIdentifier == nil {
  6602. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  6603. }
  6604. if s.DBSnapshotIdentifier == nil {
  6605. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  6606. }
  6607. if invalidParams.Len() > 0 {
  6608. return invalidParams
  6609. }
  6610. return nil
  6611. }
  6612. type CreateDBSnapshotOutput struct {
  6613. _ struct{} `type:"structure"`
  6614. // Contains the result of a successful invocation of the following actions:
  6615. //
  6616. // CreateDBSnapshot
  6617. //
  6618. // DeleteDBSnapshot
  6619. //
  6620. // This data type is used as a response element in the DescribeDBSnapshots
  6621. // action.
  6622. DBSnapshot *DBSnapshot `type:"structure"`
  6623. }
  6624. // String returns the string representation
  6625. func (s CreateDBSnapshotOutput) String() string {
  6626. return awsutil.Prettify(s)
  6627. }
  6628. // GoString returns the string representation
  6629. func (s CreateDBSnapshotOutput) GoString() string {
  6630. return s.String()
  6631. }
  6632. type CreateDBSubnetGroupInput struct {
  6633. _ struct{} `type:"structure"`
  6634. // The description for the DB subnet group.
  6635. DBSubnetGroupDescription *string `type:"string" required:"true"`
  6636. // The name for the DB subnet group. This value is stored as a lowercase string.
  6637. //
  6638. // Constraints: Must contain no more than 255 alphanumeric characters. Cannot
  6639. // contain periods, underscores, spaces, or hyphens. Must not be default.
  6640. //
  6641. // Example: mySubnetgroup
  6642. DBSubnetGroupName *string `type:"string" required:"true"`
  6643. // The EC2 Subnet IDs for the DB subnet group.
  6644. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
  6645. // A list of tags.
  6646. Tags []*Tag `locationNameList:"Tag" type:"list"`
  6647. }
  6648. // String returns the string representation
  6649. func (s CreateDBSubnetGroupInput) String() string {
  6650. return awsutil.Prettify(s)
  6651. }
  6652. // GoString returns the string representation
  6653. func (s CreateDBSubnetGroupInput) GoString() string {
  6654. return s.String()
  6655. }
  6656. // Validate inspects the fields of the type to determine if they are valid.
  6657. func (s *CreateDBSubnetGroupInput) Validate() error {
  6658. invalidParams := request.ErrInvalidParams{Context: "CreateDBSubnetGroupInput"}
  6659. if s.DBSubnetGroupDescription == nil {
  6660. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupDescription"))
  6661. }
  6662. if s.DBSubnetGroupName == nil {
  6663. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName"))
  6664. }
  6665. if s.SubnetIds == nil {
  6666. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  6667. }
  6668. if invalidParams.Len() > 0 {
  6669. return invalidParams
  6670. }
  6671. return nil
  6672. }
  6673. type CreateDBSubnetGroupOutput struct {
  6674. _ struct{} `type:"structure"`
  6675. // Contains the result of a successful invocation of the following actions:
  6676. //
  6677. // CreateDBSubnetGroup
  6678. //
  6679. // ModifyDBSubnetGroup
  6680. //
  6681. // DescribeDBSubnetGroups
  6682. //
  6683. // DeleteDBSubnetGroup
  6684. //
  6685. // This data type is used as a response element in the DescribeDBSubnetGroups
  6686. // action.
  6687. DBSubnetGroup *DBSubnetGroup `type:"structure"`
  6688. }
  6689. // String returns the string representation
  6690. func (s CreateDBSubnetGroupOutput) String() string {
  6691. return awsutil.Prettify(s)
  6692. }
  6693. // GoString returns the string representation
  6694. func (s CreateDBSubnetGroupOutput) GoString() string {
  6695. return s.String()
  6696. }
  6697. type CreateEventSubscriptionInput struct {
  6698. _ struct{} `type:"structure"`
  6699. // A Boolean value; set to true to activate the subscription, set to false to
  6700. // create the subscription but not active it.
  6701. Enabled *bool `type:"boolean"`
  6702. // A list of event categories for a SourceType that you want to subscribe to.
  6703. // You can see a list of the categories for a given SourceType in the Events
  6704. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html)
  6705. // topic in the Amazon RDS User Guide or by using the DescribeEventCategories
  6706. // action.
  6707. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  6708. // The Amazon Resource Name (ARN) of the SNS topic created for event notification.
  6709. // The ARN is created by Amazon SNS when you create a topic and subscribe to
  6710. // it.
  6711. SnsTopicArn *string `type:"string" required:"true"`
  6712. // The list of identifiers of the event sources for which events will be returned.
  6713. // If not specified, then all sources are included in the response. An identifier
  6714. // must begin with a letter and must contain only ASCII letters, digits, and
  6715. // hyphens; it cannot end with a hyphen or contain two consecutive hyphens.
  6716. //
  6717. // Constraints:
  6718. //
  6719. // If SourceIds are supplied, SourceType must also be provided.
  6720. //
  6721. // If the source type is a DB instance, then a DBInstanceIdentifier must
  6722. // be supplied.
  6723. //
  6724. // If the source type is a DB security group, a DBSecurityGroupName must
  6725. // be supplied.
  6726. //
  6727. // If the source type is a DB parameter group, a DBParameterGroupName must
  6728. // be supplied.
  6729. //
  6730. // If the source type is a DB snapshot, a DBSnapshotIdentifier must be supplied.
  6731. SourceIds []*string `locationNameList:"SourceId" type:"list"`
  6732. // The type of source that will be generating the events. For example, if you
  6733. // want to be notified of events generated by a DB instance, you would set this
  6734. // parameter to db-instance. if this value is not specified, all events are
  6735. // returned.
  6736. //
  6737. // Valid values: db-instance | db-cluster | db-parameter-group | db-security-group
  6738. // | db-snapshot | db-cluster-snapshot
  6739. SourceType *string `type:"string"`
  6740. // The name of the subscription.
  6741. //
  6742. // Constraints: The name must be less than 255 characters.
  6743. SubscriptionName *string `type:"string" required:"true"`
  6744. // A list of tags.
  6745. Tags []*Tag `locationNameList:"Tag" type:"list"`
  6746. }
  6747. // String returns the string representation
  6748. func (s CreateEventSubscriptionInput) String() string {
  6749. return awsutil.Prettify(s)
  6750. }
  6751. // GoString returns the string representation
  6752. func (s CreateEventSubscriptionInput) GoString() string {
  6753. return s.String()
  6754. }
  6755. // Validate inspects the fields of the type to determine if they are valid.
  6756. func (s *CreateEventSubscriptionInput) Validate() error {
  6757. invalidParams := request.ErrInvalidParams{Context: "CreateEventSubscriptionInput"}
  6758. if s.SnsTopicArn == nil {
  6759. invalidParams.Add(request.NewErrParamRequired("SnsTopicArn"))
  6760. }
  6761. if s.SubscriptionName == nil {
  6762. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  6763. }
  6764. if invalidParams.Len() > 0 {
  6765. return invalidParams
  6766. }
  6767. return nil
  6768. }
  6769. type CreateEventSubscriptionOutput struct {
  6770. _ struct{} `type:"structure"`
  6771. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  6772. // action.
  6773. EventSubscription *EventSubscription `type:"structure"`
  6774. }
  6775. // String returns the string representation
  6776. func (s CreateEventSubscriptionOutput) String() string {
  6777. return awsutil.Prettify(s)
  6778. }
  6779. // GoString returns the string representation
  6780. func (s CreateEventSubscriptionOutput) GoString() string {
  6781. return s.String()
  6782. }
  6783. type CreateOptionGroupInput struct {
  6784. _ struct{} `type:"structure"`
  6785. // Specifies the name of the engine that this option group should be associated
  6786. // with.
  6787. EngineName *string `type:"string" required:"true"`
  6788. // Specifies the major version of the engine that this option group should be
  6789. // associated with.
  6790. MajorEngineVersion *string `type:"string" required:"true"`
  6791. // The description of the option group.
  6792. OptionGroupDescription *string `type:"string" required:"true"`
  6793. // Specifies the name of the option group to be created.
  6794. //
  6795. // Constraints:
  6796. //
  6797. // Must be 1 to 255 alphanumeric characters or hyphens
  6798. //
  6799. // First character must be a letter
  6800. //
  6801. // Cannot end with a hyphen or contain two consecutive hyphens
  6802. //
  6803. // Example: myoptiongroup
  6804. OptionGroupName *string `type:"string" required:"true"`
  6805. // A list of tags.
  6806. Tags []*Tag `locationNameList:"Tag" type:"list"`
  6807. }
  6808. // String returns the string representation
  6809. func (s CreateOptionGroupInput) String() string {
  6810. return awsutil.Prettify(s)
  6811. }
  6812. // GoString returns the string representation
  6813. func (s CreateOptionGroupInput) GoString() string {
  6814. return s.String()
  6815. }
  6816. // Validate inspects the fields of the type to determine if they are valid.
  6817. func (s *CreateOptionGroupInput) Validate() error {
  6818. invalidParams := request.ErrInvalidParams{Context: "CreateOptionGroupInput"}
  6819. if s.EngineName == nil {
  6820. invalidParams.Add(request.NewErrParamRequired("EngineName"))
  6821. }
  6822. if s.MajorEngineVersion == nil {
  6823. invalidParams.Add(request.NewErrParamRequired("MajorEngineVersion"))
  6824. }
  6825. if s.OptionGroupDescription == nil {
  6826. invalidParams.Add(request.NewErrParamRequired("OptionGroupDescription"))
  6827. }
  6828. if s.OptionGroupName == nil {
  6829. invalidParams.Add(request.NewErrParamRequired("OptionGroupName"))
  6830. }
  6831. if invalidParams.Len() > 0 {
  6832. return invalidParams
  6833. }
  6834. return nil
  6835. }
  6836. type CreateOptionGroupOutput struct {
  6837. _ struct{} `type:"structure"`
  6838. OptionGroup *OptionGroup `type:"structure"`
  6839. }
  6840. // String returns the string representation
  6841. func (s CreateOptionGroupOutput) String() string {
  6842. return awsutil.Prettify(s)
  6843. }
  6844. // GoString returns the string representation
  6845. func (s CreateOptionGroupOutput) GoString() string {
  6846. return s.String()
  6847. }
  6848. // Contains the result of a successful invocation of the following actions:
  6849. //
  6850. // CreateDBCluster
  6851. //
  6852. // DeleteDBCluster
  6853. //
  6854. // FailoverDBCluster
  6855. //
  6856. // ModifyDBCluster
  6857. //
  6858. // RestoreDBClusterFromSnapshot
  6859. //
  6860. // RestoreDBClusterToPointInTime
  6861. //
  6862. // This data type is used as a response element in the DescribeDBClusters
  6863. // action.
  6864. type DBCluster struct {
  6865. _ struct{} `type:"structure"`
  6866. // Specifies the allocated storage size in gigabytes (GB).
  6867. AllocatedStorage *int64 `type:"integer"`
  6868. // Provides the list of EC2 Availability Zones that instances in the DB cluster
  6869. // can be created in.
  6870. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  6871. // Specifies the number of days for which automatic DB snapshots are retained.
  6872. BackupRetentionPeriod *int64 `type:"integer"`
  6873. // If present, specifies the name of the character set that this cluster is
  6874. // associated with.
  6875. CharacterSetName *string `type:"string"`
  6876. // Contains a user-supplied DB cluster identifier. This identifier is the unique
  6877. // key that identifies a DB cluster.
  6878. DBClusterIdentifier *string `type:"string"`
  6879. // Provides the list of instances that make up the DB cluster.
  6880. DBClusterMembers []*DBClusterMember `locationNameList:"DBClusterMember" type:"list"`
  6881. // Provides the list of option group memberships for this DB cluster.
  6882. DBClusterOptionGroupMemberships []*DBClusterOptionGroupStatus `locationNameList:"DBClusterOptionGroup" type:"list"`
  6883. // Specifies the name of the DB cluster parameter group for the DB cluster.
  6884. DBClusterParameterGroup *string `type:"string"`
  6885. // Specifies information on the subnet group associated with the DB cluster,
  6886. // including the name, description, and subnets in the subnet group.
  6887. DBSubnetGroup *string `type:"string"`
  6888. // Contains the name of the initial database of this DB cluster that was provided
  6889. // at create time, if one was specified when the DB cluster was created. This
  6890. // same name is returned for the life of the DB cluster.
  6891. DatabaseName *string `type:"string"`
  6892. // The region-unique, immutable identifier for the DB cluster. This identifier
  6893. // is found in AWS CloudTrail log entries whenever the KMS key for the DB cluster
  6894. // is accessed.
  6895. DbClusterResourceId *string `type:"string"`
  6896. // Specifies the earliest time to which a database can be restored with point-in-time
  6897. // restore.
  6898. EarliestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  6899. // Specifies the connection endpoint for the primary instance of the DB cluster.
  6900. Endpoint *string `type:"string"`
  6901. // Provides the name of the database engine to be used for this DB cluster.
  6902. Engine *string `type:"string"`
  6903. // Indicates the database engine version.
  6904. EngineVersion *string `type:"string"`
  6905. // Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
  6906. HostedZoneId *string `type:"string"`
  6907. // If StorageEncrypted is true, the KMS key identifier for the encrypted DB
  6908. // cluster.
  6909. KmsKeyId *string `type:"string"`
  6910. // Specifies the latest time to which a database can be restored with point-in-time
  6911. // restore.
  6912. LatestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  6913. // Contains the master username for the DB cluster.
  6914. MasterUsername *string `type:"string"`
  6915. // Specifies the progress of the operation as a percentage.
  6916. PercentProgress *string `type:"string"`
  6917. // Specifies the port that the database engine is listening on.
  6918. Port *int64 `type:"integer"`
  6919. // Specifies the daily time range during which automated backups are created
  6920. // if automated backups are enabled, as determined by the BackupRetentionPeriod.
  6921. PreferredBackupWindow *string `type:"string"`
  6922. // Specifies the weekly time range during which system maintenance can occur,
  6923. // in Universal Coordinated Time (UTC).
  6924. PreferredMaintenanceWindow *string `type:"string"`
  6925. // Contains one or more identifiers of the Read Replicas associated with this
  6926. // DB cluster.
  6927. ReadReplicaIdentifiers []*string `locationNameList:"ReadReplicaIdentifier" type:"list"`
  6928. // Contains the identifier of the source DB cluster if this DB cluster is a
  6929. // Read Replica.
  6930. ReplicationSourceIdentifier *string `type:"string"`
  6931. // Specifies the current state of this DB cluster.
  6932. Status *string `type:"string"`
  6933. // Specifies whether the DB cluster is encrypted.
  6934. StorageEncrypted *bool `type:"boolean"`
  6935. // Provides a list of VPC security groups that the DB cluster belongs to.
  6936. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"`
  6937. }
  6938. // String returns the string representation
  6939. func (s DBCluster) String() string {
  6940. return awsutil.Prettify(s)
  6941. }
  6942. // GoString returns the string representation
  6943. func (s DBCluster) GoString() string {
  6944. return s.String()
  6945. }
  6946. // Contains information about an instance that is part of a DB cluster.
  6947. type DBClusterMember struct {
  6948. _ struct{} `type:"structure"`
  6949. // Specifies the status of the DB cluster parameter group for this member of
  6950. // the DB cluster.
  6951. DBClusterParameterGroupStatus *string `type:"string"`
  6952. // Specifies the instance identifier for this member of the DB cluster.
  6953. DBInstanceIdentifier *string `type:"string"`
  6954. // Value that is true if the cluster member is the primary instance for the
  6955. // DB cluster and false otherwise.
  6956. IsClusterWriter *bool `type:"boolean"`
  6957. // A value that specifies the order in which an Aurora Replica is promoted to
  6958. // the primary instance after a failure of the existing primary instance. For
  6959. // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance).
  6960. PromotionTier *int64 `type:"integer"`
  6961. }
  6962. // String returns the string representation
  6963. func (s DBClusterMember) String() string {
  6964. return awsutil.Prettify(s)
  6965. }
  6966. // GoString returns the string representation
  6967. func (s DBClusterMember) GoString() string {
  6968. return s.String()
  6969. }
  6970. // Contains status information for a DB cluster option group.
  6971. type DBClusterOptionGroupStatus struct {
  6972. _ struct{} `type:"structure"`
  6973. // Specifies the name of the DB cluster option group.
  6974. DBClusterOptionGroupName *string `type:"string"`
  6975. // Specifies the status of the DB cluster option group.
  6976. Status *string `type:"string"`
  6977. }
  6978. // String returns the string representation
  6979. func (s DBClusterOptionGroupStatus) String() string {
  6980. return awsutil.Prettify(s)
  6981. }
  6982. // GoString returns the string representation
  6983. func (s DBClusterOptionGroupStatus) GoString() string {
  6984. return s.String()
  6985. }
  6986. // Contains the result of a successful invocation of the CreateDBClusterParameterGroup
  6987. // or CopyDBClusterParameterGroup action.
  6988. //
  6989. // This data type is used as a request parameter in the DeleteDBClusterParameterGroup
  6990. // action, and as a response element in the DescribeDBClusterParameterGroups
  6991. // action.
  6992. type DBClusterParameterGroup struct {
  6993. _ struct{} `type:"structure"`
  6994. // Provides the name of the DB cluster parameter group.
  6995. DBClusterParameterGroupName *string `type:"string"`
  6996. // Provides the name of the DB parameter group family that this DB cluster parameter
  6997. // group is compatible with.
  6998. DBParameterGroupFamily *string `type:"string"`
  6999. // Provides the customer-specified description for this DB cluster parameter
  7000. // group.
  7001. Description *string `type:"string"`
  7002. }
  7003. // String returns the string representation
  7004. func (s DBClusterParameterGroup) String() string {
  7005. return awsutil.Prettify(s)
  7006. }
  7007. // GoString returns the string representation
  7008. func (s DBClusterParameterGroup) GoString() string {
  7009. return s.String()
  7010. }
  7011. type DBClusterParameterGroupNameMessage struct {
  7012. _ struct{} `type:"structure"`
  7013. // The name of the DB cluster parameter group.
  7014. //
  7015. // Constraints:
  7016. //
  7017. // Must be 1 to 255 alphanumeric characters
  7018. //
  7019. // First character must be a letter
  7020. //
  7021. // Cannot end with a hyphen or contain two consecutive hyphens
  7022. //
  7023. // This value is stored as a lowercase string.
  7024. DBClusterParameterGroupName *string `type:"string"`
  7025. }
  7026. // String returns the string representation
  7027. func (s DBClusterParameterGroupNameMessage) String() string {
  7028. return awsutil.Prettify(s)
  7029. }
  7030. // GoString returns the string representation
  7031. func (s DBClusterParameterGroupNameMessage) GoString() string {
  7032. return s.String()
  7033. }
  7034. // Contains the result of a successful invocation of the following actions:
  7035. //
  7036. // CreateDBClusterSnapshot
  7037. //
  7038. // DeleteDBClusterSnapshot
  7039. //
  7040. // This data type is used as a response element in the DescribeDBClusterSnapshots
  7041. // action.
  7042. type DBClusterSnapshot struct {
  7043. _ struct{} `type:"structure"`
  7044. // Specifies the allocated storage size in gigabytes (GB).
  7045. AllocatedStorage *int64 `type:"integer"`
  7046. // Provides the list of EC2 Availability Zones that instances in the DB cluster
  7047. // snapshot can be restored in.
  7048. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  7049. // Specifies the time when the DB cluster was created, in Universal Coordinated
  7050. // Time (UTC).
  7051. ClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  7052. // Specifies the DB cluster identifier of the DB cluster that this DB cluster
  7053. // snapshot was created from.
  7054. DBClusterIdentifier *string `type:"string"`
  7055. // Specifies the identifier for the DB cluster snapshot.
  7056. DBClusterSnapshotIdentifier *string `type:"string"`
  7057. // Specifies the name of the database engine.
  7058. Engine *string `type:"string"`
  7059. // Provides the version of the database engine for this DB cluster snapshot.
  7060. EngineVersion *string `type:"string"`
  7061. // If StorageEncrypted is true, the KMS key identifier for the encrypted DB
  7062. // cluster snapshot.
  7063. KmsKeyId *string `type:"string"`
  7064. // Provides the license model information for this DB cluster snapshot.
  7065. LicenseModel *string `type:"string"`
  7066. // Provides the master username for the DB cluster snapshot.
  7067. MasterUsername *string `type:"string"`
  7068. // Specifies the percentage of the estimated data that has been transferred.
  7069. PercentProgress *int64 `type:"integer"`
  7070. // Specifies the port that the DB cluster was listening on at the time of the
  7071. // snapshot.
  7072. Port *int64 `type:"integer"`
  7073. // Provides the time when the snapshot was taken, in Universal Coordinated Time
  7074. // (UTC).
  7075. SnapshotCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  7076. // Provides the type of the DB cluster snapshot.
  7077. SnapshotType *string `type:"string"`
  7078. // Specifies the status of this DB cluster snapshot.
  7079. Status *string `type:"string"`
  7080. // Specifies whether the DB cluster snapshot is encrypted.
  7081. StorageEncrypted *bool `type:"boolean"`
  7082. // Provides the VPC ID associated with the DB cluster snapshot.
  7083. VpcId *string `type:"string"`
  7084. }
  7085. // String returns the string representation
  7086. func (s DBClusterSnapshot) String() string {
  7087. return awsutil.Prettify(s)
  7088. }
  7089. // GoString returns the string representation
  7090. func (s DBClusterSnapshot) GoString() string {
  7091. return s.String()
  7092. }
  7093. // Contains the name and values of a manual DB cluster snapshot attribute.
  7094. //
  7095. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  7096. // to restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute
  7097. // API action.
  7098. type DBClusterSnapshotAttribute struct {
  7099. _ struct{} `type:"structure"`
  7100. // The name of the manual DB cluster snapshot attribute.
  7101. //
  7102. // The attribute named restore refers to the list of AWS accounts that have
  7103. // permission to copy or restore the manual DB cluster snapshot. For more information,
  7104. // see the ModifyDBClusterSnapshotAttribute API action.
  7105. AttributeName *string `type:"string"`
  7106. // The value(s) for the manual DB cluster snapshot attribute.
  7107. //
  7108. // If the AttributeName field is set to restore, then this element returns
  7109. // a list of IDs of the AWS accounts that are authorized to copy or restore
  7110. // the manual DB cluster snapshot. If a value of all is in the list, then the
  7111. // manual DB cluster snapshot is public and available for any AWS account to
  7112. // copy or restore.
  7113. AttributeValues []*string `locationNameList:"AttributeValue" type:"list"`
  7114. }
  7115. // String returns the string representation
  7116. func (s DBClusterSnapshotAttribute) String() string {
  7117. return awsutil.Prettify(s)
  7118. }
  7119. // GoString returns the string representation
  7120. func (s DBClusterSnapshotAttribute) GoString() string {
  7121. return s.String()
  7122. }
  7123. // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes
  7124. // API action.
  7125. //
  7126. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  7127. // to copy or restore a manual DB cluster snapshot. For more information, see
  7128. // the ModifyDBClusterSnapshotAttribute API action.
  7129. type DBClusterSnapshotAttributesResult struct {
  7130. _ struct{} `type:"structure"`
  7131. // The list of attributes and values for the manual DB cluster snapshot.
  7132. DBClusterSnapshotAttributes []*DBClusterSnapshotAttribute `locationNameList:"DBClusterSnapshotAttribute" type:"list"`
  7133. // The identifier of the manual DB cluster snapshot that the attributes apply
  7134. // to.
  7135. DBClusterSnapshotIdentifier *string `type:"string"`
  7136. }
  7137. // String returns the string representation
  7138. func (s DBClusterSnapshotAttributesResult) String() string {
  7139. return awsutil.Prettify(s)
  7140. }
  7141. // GoString returns the string representation
  7142. func (s DBClusterSnapshotAttributesResult) GoString() string {
  7143. return s.String()
  7144. }
  7145. // This data type is used as a response element in the action DescribeDBEngineVersions.
  7146. type DBEngineVersion struct {
  7147. _ struct{} `type:"structure"`
  7148. // The description of the database engine.
  7149. DBEngineDescription *string `type:"string"`
  7150. // The description of the database engine version.
  7151. DBEngineVersionDescription *string `type:"string"`
  7152. // The name of the DB parameter group family for the database engine.
  7153. DBParameterGroupFamily *string `type:"string"`
  7154. // The default character set for new instances of this engine version, if the
  7155. // CharacterSetName parameter of the CreateDBInstance API is not specified.
  7156. DefaultCharacterSet *CharacterSet `type:"structure"`
  7157. // The name of the database engine.
  7158. Engine *string `type:"string"`
  7159. // The version number of the database engine.
  7160. EngineVersion *string `type:"string"`
  7161. // A list of the character sets supported by this engine for the CharacterSetName
  7162. // parameter of the CreateDBInstance API.
  7163. SupportedCharacterSets []*CharacterSet `locationNameList:"CharacterSet" type:"list"`
  7164. // A list of engine versions that this database engine version can be upgraded
  7165. // to.
  7166. ValidUpgradeTarget []*UpgradeTarget `locationNameList:"UpgradeTarget" type:"list"`
  7167. }
  7168. // String returns the string representation
  7169. func (s DBEngineVersion) String() string {
  7170. return awsutil.Prettify(s)
  7171. }
  7172. // GoString returns the string representation
  7173. func (s DBEngineVersion) GoString() string {
  7174. return s.String()
  7175. }
  7176. // Contains the result of a successful invocation of the following actions:
  7177. //
  7178. // CreateDBInstance
  7179. //
  7180. // DeleteDBInstance
  7181. //
  7182. // ModifyDBInstance
  7183. //
  7184. // This data type is used as a response element in the DescribeDBInstances
  7185. // action.
  7186. type DBInstance struct {
  7187. _ struct{} `type:"structure"`
  7188. // Specifies the allocated storage size specified in gigabytes.
  7189. AllocatedStorage *int64 `type:"integer"`
  7190. // Indicates that minor version patches are applied automatically.
  7191. AutoMinorVersionUpgrade *bool `type:"boolean"`
  7192. // Specifies the name of the Availability Zone the DB instance is located in.
  7193. AvailabilityZone *string `type:"string"`
  7194. // Specifies the number of days for which automatic DB snapshots are retained.
  7195. BackupRetentionPeriod *int64 `type:"integer"`
  7196. // The identifier of the CA certificate for this DB instance.
  7197. CACertificateIdentifier *string `type:"string"`
  7198. // If present, specifies the name of the character set that this instance is
  7199. // associated with.
  7200. CharacterSetName *string `type:"string"`
  7201. // Specifies whether tags are copied from the DB instance to snapshots of the
  7202. // DB instance.
  7203. CopyTagsToSnapshot *bool `type:"boolean"`
  7204. // If the DB instance is a member of a DB cluster, contains the name of the
  7205. // DB cluster that the DB instance is a member of.
  7206. DBClusterIdentifier *string `type:"string"`
  7207. // Contains the name of the compute and memory capacity class of the DB instance.
  7208. DBInstanceClass *string `type:"string"`
  7209. // Contains a user-supplied database identifier. This identifier is the unique
  7210. // key that identifies a DB instance.
  7211. DBInstanceIdentifier *string `type:"string"`
  7212. // Specifies the current state of this database.
  7213. DBInstanceStatus *string `type:"string"`
  7214. // The meaning of this parameter differs according to the database engine you
  7215. // use. For example, this value returns MySQL, MariaDB, or PostgreSQL information
  7216. // when returning values from CreateDBInstanceReadReplica since Read Replicas
  7217. // are only supported for these engines.
  7218. //
  7219. // MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora
  7220. //
  7221. // Contains the name of the initial database of this instance that was provided
  7222. // at create time, if one was specified when the DB instance was created. This
  7223. // same name is returned for the life of the DB instance.
  7224. //
  7225. // Type: String
  7226. //
  7227. // Oracle
  7228. //
  7229. // Contains the Oracle System ID (SID) of the created DB instance. Not shown
  7230. // when the returned parameters do not apply to an Oracle DB instance.
  7231. DBName *string `type:"string"`
  7232. // Provides the list of DB parameter groups applied to this DB instance.
  7233. DBParameterGroups []*DBParameterGroupStatus `locationNameList:"DBParameterGroup" type:"list"`
  7234. // Provides List of DB security group elements containing only DBSecurityGroup.Name
  7235. // and DBSecurityGroup.Status subelements.
  7236. DBSecurityGroups []*DBSecurityGroupMembership `locationNameList:"DBSecurityGroup" type:"list"`
  7237. // Specifies information on the subnet group associated with the DB instance,
  7238. // including the name, description, and subnets in the subnet group.
  7239. DBSubnetGroup *DBSubnetGroup `type:"structure"`
  7240. // Specifies the port that the DB instance listens on. If the DB instance is
  7241. // part of a DB cluster, this can be a different port than the DB cluster port.
  7242. DbInstancePort *int64 `type:"integer"`
  7243. // The region-unique, immutable identifier for the DB instance. This identifier
  7244. // is found in AWS CloudTrail log entries whenever the KMS key for the DB instance
  7245. // is accessed.
  7246. DbiResourceId *string `type:"string"`
  7247. // The Active Directory Domain membership records associated with the DB instance.
  7248. DomainMemberships []*DomainMembership `locationNameList:"DomainMembership" type:"list"`
  7249. // Specifies the connection endpoint.
  7250. Endpoint *Endpoint `type:"structure"`
  7251. // Provides the name of the database engine to be used for this DB instance.
  7252. Engine *string `type:"string"`
  7253. // Indicates the database engine version.
  7254. EngineVersion *string `type:"string"`
  7255. // The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that
  7256. // receives the Enhanced Monitoring metrics data for the DB instance.
  7257. EnhancedMonitoringResourceArn *string `type:"string"`
  7258. // Provides the date and time the DB instance was created.
  7259. InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  7260. // Specifies the Provisioned IOPS (I/O operations per second) value.
  7261. Iops *int64 `type:"integer"`
  7262. // If StorageEncrypted is true, the KMS key identifier for the encrypted DB
  7263. // instance.
  7264. KmsKeyId *string `type:"string"`
  7265. // Specifies the latest time to which a database can be restored with point-in-time
  7266. // restore.
  7267. LatestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  7268. // License model information for this DB instance.
  7269. LicenseModel *string `type:"string"`
  7270. // Contains the master username for the DB instance.
  7271. MasterUsername *string `type:"string"`
  7272. // The interval, in seconds, between points when Enhanced Monitoring metrics
  7273. // are collected for the DB instance.
  7274. MonitoringInterval *int64 `type:"integer"`
  7275. // The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics
  7276. // to CloudWatch Logs.
  7277. MonitoringRoleArn *string `type:"string"`
  7278. // Specifies if the DB instance is a Multi-AZ deployment.
  7279. MultiAZ *bool `type:"boolean"`
  7280. // Provides the list of option group memberships for this DB instance.
  7281. OptionGroupMemberships []*OptionGroupMembership `locationNameList:"OptionGroupMembership" type:"list"`
  7282. // Specifies that changes to the DB instance are pending. This element is only
  7283. // included when changes are pending. Specific changes are identified by subelements.
  7284. PendingModifiedValues *PendingModifiedValues `type:"structure"`
  7285. // Specifies the daily time range during which automated backups are created
  7286. // if automated backups are enabled, as determined by the BackupRetentionPeriod.
  7287. PreferredBackupWindow *string `type:"string"`
  7288. // Specifies the weekly time range during which system maintenance can occur,
  7289. // in Universal Coordinated Time (UTC).
  7290. PreferredMaintenanceWindow *string `type:"string"`
  7291. // A value that specifies the order in which an Aurora Replica is promoted to
  7292. // the primary instance after a failure of the existing primary instance. For
  7293. // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance).
  7294. PromotionTier *int64 `type:"integer"`
  7295. // Specifies the accessibility options for the DB instance. A value of true
  7296. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  7297. // which resolves to a public IP address. A value of false specifies an internal
  7298. // instance with a DNS name that resolves to a private IP address.
  7299. //
  7300. // Default: The default behavior varies depending on whether a VPC has been
  7301. // requested or not. The following list shows the default behavior in each case.
  7302. //
  7303. // Default VPC:true
  7304. //
  7305. // VPC:false
  7306. //
  7307. // If no DB subnet group has been specified as part of the request and the
  7308. // PubliclyAccessible value has not been set, the DB instance will be publicly
  7309. // accessible. If a specific DB subnet group has been specified as part of the
  7310. // request and the PubliclyAccessible value has not been set, the DB instance
  7311. // will be private.
  7312. PubliclyAccessible *bool `type:"boolean"`
  7313. // Contains one or more identifiers of the Read Replicas associated with this
  7314. // DB instance.
  7315. ReadReplicaDBInstanceIdentifiers []*string `locationNameList:"ReadReplicaDBInstanceIdentifier" type:"list"`
  7316. // Contains the identifier of the source DB instance if this DB instance is
  7317. // a Read Replica.
  7318. ReadReplicaSourceDBInstanceIdentifier *string `type:"string"`
  7319. // If present, specifies the name of the secondary Availability Zone for a DB
  7320. // instance with multi-AZ support.
  7321. SecondaryAvailabilityZone *string `type:"string"`
  7322. // The status of a Read Replica. If the instance is not a Read Replica, this
  7323. // will be blank.
  7324. StatusInfos []*DBInstanceStatusInfo `locationNameList:"DBInstanceStatusInfo" type:"list"`
  7325. // Specifies whether the DB instance is encrypted.
  7326. StorageEncrypted *bool `type:"boolean"`
  7327. // Specifies the storage type associated with DB instance.
  7328. StorageType *string `type:"string"`
  7329. // The ARN from the Key Store with which the instance is associated for TDE
  7330. // encryption.
  7331. TdeCredentialArn *string `type:"string"`
  7332. // Provides List of VPC security group elements that the DB instance belongs
  7333. // to.
  7334. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"`
  7335. }
  7336. // String returns the string representation
  7337. func (s DBInstance) String() string {
  7338. return awsutil.Prettify(s)
  7339. }
  7340. // GoString returns the string representation
  7341. func (s DBInstance) GoString() string {
  7342. return s.String()
  7343. }
  7344. // Provides a list of status information for a DB instance.
  7345. type DBInstanceStatusInfo struct {
  7346. _ struct{} `type:"structure"`
  7347. // Details of the error if there is an error for the instance. If the instance
  7348. // is not in an error state, this value is blank.
  7349. Message *string `type:"string"`
  7350. // Boolean value that is true if the instance is operating normally, or false
  7351. // if the instance is in an error state.
  7352. Normal *bool `type:"boolean"`
  7353. // Status of the DB instance. For a StatusType of read replica, the values can
  7354. // be replicating, error, stopped, or terminated.
  7355. Status *string `type:"string"`
  7356. // This value is currently "read replication."
  7357. StatusType *string `type:"string"`
  7358. }
  7359. // String returns the string representation
  7360. func (s DBInstanceStatusInfo) String() string {
  7361. return awsutil.Prettify(s)
  7362. }
  7363. // GoString returns the string representation
  7364. func (s DBInstanceStatusInfo) GoString() string {
  7365. return s.String()
  7366. }
  7367. // Contains the result of a successful invocation of the CreateDBParameterGroup
  7368. // action.
  7369. //
  7370. // This data type is used as a request parameter in the DeleteDBParameterGroup
  7371. // action, and as a response element in the DescribeDBParameterGroups action.
  7372. type DBParameterGroup struct {
  7373. _ struct{} `type:"structure"`
  7374. // Provides the name of the DB parameter group family that this DB parameter
  7375. // group is compatible with.
  7376. DBParameterGroupFamily *string `type:"string"`
  7377. // Provides the name of the DB parameter group.
  7378. DBParameterGroupName *string `type:"string"`
  7379. // Provides the customer-specified description for this DB parameter group.
  7380. Description *string `type:"string"`
  7381. }
  7382. // String returns the string representation
  7383. func (s DBParameterGroup) String() string {
  7384. return awsutil.Prettify(s)
  7385. }
  7386. // GoString returns the string representation
  7387. func (s DBParameterGroup) GoString() string {
  7388. return s.String()
  7389. }
  7390. // Contains the result of a successful invocation of the ModifyDBParameterGroup
  7391. // or ResetDBParameterGroup action.
  7392. type DBParameterGroupNameMessage struct {
  7393. _ struct{} `type:"structure"`
  7394. // Provides the name of the DB parameter group.
  7395. DBParameterGroupName *string `type:"string"`
  7396. }
  7397. // String returns the string representation
  7398. func (s DBParameterGroupNameMessage) String() string {
  7399. return awsutil.Prettify(s)
  7400. }
  7401. // GoString returns the string representation
  7402. func (s DBParameterGroupNameMessage) GoString() string {
  7403. return s.String()
  7404. }
  7405. // The status of the DB parameter group.
  7406. //
  7407. // This data type is used as a response element in the following actions:
  7408. //
  7409. // CreateDBInstance
  7410. //
  7411. // CreateDBInstanceReadReplica
  7412. //
  7413. // DeleteDBInstance
  7414. //
  7415. // ModifyDBInstance
  7416. //
  7417. // RebootDBInstance
  7418. //
  7419. // RestoreDBInstanceFromDBSnapshot
  7420. type DBParameterGroupStatus struct {
  7421. _ struct{} `type:"structure"`
  7422. // The name of the DP parameter group.
  7423. DBParameterGroupName *string `type:"string"`
  7424. // The status of parameter updates.
  7425. ParameterApplyStatus *string `type:"string"`
  7426. }
  7427. // String returns the string representation
  7428. func (s DBParameterGroupStatus) String() string {
  7429. return awsutil.Prettify(s)
  7430. }
  7431. // GoString returns the string representation
  7432. func (s DBParameterGroupStatus) GoString() string {
  7433. return s.String()
  7434. }
  7435. // Contains the result of a successful invocation of the following actions:
  7436. //
  7437. // DescribeDBSecurityGroups
  7438. //
  7439. // AuthorizeDBSecurityGroupIngress
  7440. //
  7441. // CreateDBSecurityGroup
  7442. //
  7443. // RevokeDBSecurityGroupIngress
  7444. //
  7445. // This data type is used as a response element in the DescribeDBSecurityGroups
  7446. // action.
  7447. type DBSecurityGroup struct {
  7448. _ struct{} `type:"structure"`
  7449. // Provides the description of the DB security group.
  7450. DBSecurityGroupDescription *string `type:"string"`
  7451. // Specifies the name of the DB security group.
  7452. DBSecurityGroupName *string `type:"string"`
  7453. // Contains a list of EC2SecurityGroup elements.
  7454. EC2SecurityGroups []*EC2SecurityGroup `locationNameList:"EC2SecurityGroup" type:"list"`
  7455. // Contains a list of IPRange elements.
  7456. IPRanges []*IPRange `locationNameList:"IPRange" type:"list"`
  7457. // Provides the AWS ID of the owner of a specific DB security group.
  7458. OwnerId *string `type:"string"`
  7459. // Provides the VpcId of the DB security group.
  7460. VpcId *string `type:"string"`
  7461. }
  7462. // String returns the string representation
  7463. func (s DBSecurityGroup) String() string {
  7464. return awsutil.Prettify(s)
  7465. }
  7466. // GoString returns the string representation
  7467. func (s DBSecurityGroup) GoString() string {
  7468. return s.String()
  7469. }
  7470. // This data type is used as a response element in the following actions:
  7471. //
  7472. // ModifyDBInstance
  7473. //
  7474. // RebootDBInstance
  7475. //
  7476. // RestoreDBInstanceFromDBSnapshot
  7477. //
  7478. // RestoreDBInstanceToPointInTime
  7479. type DBSecurityGroupMembership struct {
  7480. _ struct{} `type:"structure"`
  7481. // The name of the DB security group.
  7482. DBSecurityGroupName *string `type:"string"`
  7483. // The status of the DB security group.
  7484. Status *string `type:"string"`
  7485. }
  7486. // String returns the string representation
  7487. func (s DBSecurityGroupMembership) String() string {
  7488. return awsutil.Prettify(s)
  7489. }
  7490. // GoString returns the string representation
  7491. func (s DBSecurityGroupMembership) GoString() string {
  7492. return s.String()
  7493. }
  7494. // Contains the result of a successful invocation of the following actions:
  7495. //
  7496. // CreateDBSnapshot
  7497. //
  7498. // DeleteDBSnapshot
  7499. //
  7500. // This data type is used as a response element in the DescribeDBSnapshots
  7501. // action.
  7502. type DBSnapshot struct {
  7503. _ struct{} `type:"structure"`
  7504. // Specifies the allocated storage size in gigabytes (GB).
  7505. AllocatedStorage *int64 `type:"integer"`
  7506. // Specifies the name of the Availability Zone the DB instance was located in
  7507. // at the time of the DB snapshot.
  7508. AvailabilityZone *string `type:"string"`
  7509. // Specifies the DB instance identifier of the DB instance this DB snapshot
  7510. // was created from.
  7511. DBInstanceIdentifier *string `type:"string"`
  7512. // Specifies the identifier for the DB snapshot.
  7513. DBSnapshotIdentifier *string `type:"string"`
  7514. // Specifies whether the DB snapshot is encrypted.
  7515. Encrypted *bool `type:"boolean"`
  7516. // Specifies the name of the database engine.
  7517. Engine *string `type:"string"`
  7518. // Specifies the version of the database engine.
  7519. EngineVersion *string `type:"string"`
  7520. // Specifies the time when the snapshot was taken, in Universal Coordinated
  7521. // Time (UTC).
  7522. InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  7523. // Specifies the Provisioned IOPS (I/O operations per second) value of the DB
  7524. // instance at the time of the snapshot.
  7525. Iops *int64 `type:"integer"`
  7526. // If Encrypted is true, the KMS key identifier for the encrypted DB snapshot.
  7527. KmsKeyId *string `type:"string"`
  7528. // License model information for the restored DB instance.
  7529. LicenseModel *string `type:"string"`
  7530. // Provides the master username for the DB snapshot.
  7531. MasterUsername *string `type:"string"`
  7532. // Provides the option group name for the DB snapshot.
  7533. OptionGroupName *string `type:"string"`
  7534. // The percentage of the estimated data that has been transferred.
  7535. PercentProgress *int64 `type:"integer"`
  7536. // Specifies the port that the database engine was listening on at the time
  7537. // of the snapshot.
  7538. Port *int64 `type:"integer"`
  7539. // Provides the time when the snapshot was taken, in Universal Coordinated Time
  7540. // (UTC).
  7541. SnapshotCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  7542. // Provides the type of the DB snapshot.
  7543. SnapshotType *string `type:"string"`
  7544. // The DB snapshot Arn that the DB snapshot was copied from. It only has value
  7545. // in case of cross customer or cross region copy.
  7546. SourceDBSnapshotIdentifier *string `type:"string"`
  7547. // The region that the DB snapshot was created in or copied from.
  7548. SourceRegion *string `type:"string"`
  7549. // Specifies the status of this DB snapshot.
  7550. Status *string `type:"string"`
  7551. // Specifies the storage type associated with DB Snapshot.
  7552. StorageType *string `type:"string"`
  7553. // The ARN from the Key Store with which to associate the instance for TDE encryption.
  7554. TdeCredentialArn *string `type:"string"`
  7555. // Provides the VPC ID associated with the DB snapshot.
  7556. VpcId *string `type:"string"`
  7557. }
  7558. // String returns the string representation
  7559. func (s DBSnapshot) String() string {
  7560. return awsutil.Prettify(s)
  7561. }
  7562. // GoString returns the string representation
  7563. func (s DBSnapshot) GoString() string {
  7564. return s.String()
  7565. }
  7566. // Contains the name and values of a manual DB snapshot attribute
  7567. //
  7568. // Manual DB snapshot attributes are used to authorize other AWS accounts to
  7569. // restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
  7570. // API.
  7571. type DBSnapshotAttribute struct {
  7572. _ struct{} `type:"structure"`
  7573. // The name of the manual DB snapshot attribute.
  7574. //
  7575. // The attribute named restore refers to the list of AWS accounts that have
  7576. // permission to copy or restore the manual DB cluster snapshot. For more information,
  7577. // see the ModifyDBSnapshotAttribute API action.
  7578. AttributeName *string `type:"string"`
  7579. // The value or values for the manual DB snapshot attribute.
  7580. //
  7581. // If the AttributeName field is set to restore, then this element returns
  7582. // a list of IDs of the AWS accounts that are authorized to copy or restore
  7583. // the manual DB snapshot. If a value of all is in the list, then the manual
  7584. // DB snapshot is public and available for any AWS account to copy or restore.
  7585. AttributeValues []*string `locationNameList:"AttributeValue" type:"list"`
  7586. }
  7587. // String returns the string representation
  7588. func (s DBSnapshotAttribute) String() string {
  7589. return awsutil.Prettify(s)
  7590. }
  7591. // GoString returns the string representation
  7592. func (s DBSnapshotAttribute) GoString() string {
  7593. return s.String()
  7594. }
  7595. // Contains the results of a successful call to the DescribeDBSnapshotAttributes
  7596. // API action.
  7597. //
  7598. // Manual DB snapshot attributes are used to authorize other AWS accounts to
  7599. // copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
  7600. // API action.
  7601. type DBSnapshotAttributesResult struct {
  7602. _ struct{} `type:"structure"`
  7603. // The list of attributes and values for the manual DB snapshot.
  7604. DBSnapshotAttributes []*DBSnapshotAttribute `locationNameList:"DBSnapshotAttribute" type:"list"`
  7605. // The identifier of the manual DB snapshot that the attributes apply to.
  7606. DBSnapshotIdentifier *string `type:"string"`
  7607. }
  7608. // String returns the string representation
  7609. func (s DBSnapshotAttributesResult) String() string {
  7610. return awsutil.Prettify(s)
  7611. }
  7612. // GoString returns the string representation
  7613. func (s DBSnapshotAttributesResult) GoString() string {
  7614. return s.String()
  7615. }
  7616. // Contains the result of a successful invocation of the following actions:
  7617. //
  7618. // CreateDBSubnetGroup
  7619. //
  7620. // ModifyDBSubnetGroup
  7621. //
  7622. // DescribeDBSubnetGroups
  7623. //
  7624. // DeleteDBSubnetGroup
  7625. //
  7626. // This data type is used as a response element in the DescribeDBSubnetGroups
  7627. // action.
  7628. type DBSubnetGroup struct {
  7629. _ struct{} `type:"structure"`
  7630. // Provides the description of the DB subnet group.
  7631. DBSubnetGroupDescription *string `type:"string"`
  7632. // The name of the DB subnet group.
  7633. DBSubnetGroupName *string `type:"string"`
  7634. // Provides the status of the DB subnet group.
  7635. SubnetGroupStatus *string `type:"string"`
  7636. // Contains a list of Subnet elements.
  7637. Subnets []*Subnet `locationNameList:"Subnet" type:"list"`
  7638. // Provides the VpcId of the DB subnet group.
  7639. VpcId *string `type:"string"`
  7640. }
  7641. // String returns the string representation
  7642. func (s DBSubnetGroup) String() string {
  7643. return awsutil.Prettify(s)
  7644. }
  7645. // GoString returns the string representation
  7646. func (s DBSubnetGroup) GoString() string {
  7647. return s.String()
  7648. }
  7649. type DeleteDBClusterInput struct {
  7650. _ struct{} `type:"structure"`
  7651. // The DB cluster identifier for the DB cluster to be deleted. This parameter
  7652. // isn't case-sensitive.
  7653. //
  7654. // Constraints:
  7655. //
  7656. // Must contain from 1 to 63 alphanumeric characters or hyphens
  7657. //
  7658. // First character must be a letter
  7659. //
  7660. // Cannot end with a hyphen or contain two consecutive hyphens
  7661. DBClusterIdentifier *string `type:"string" required:"true"`
  7662. // The DB cluster snapshot identifier of the new DB cluster snapshot created
  7663. // when SkipFinalSnapshot is set to false.
  7664. //
  7665. // Specifying this parameter and also setting the SkipFinalShapshot parameter
  7666. // to true results in an error.
  7667. //
  7668. // Constraints:
  7669. //
  7670. // Must be 1 to 255 alphanumeric characters
  7671. //
  7672. // First character must be a letter
  7673. //
  7674. // Cannot end with a hyphen or contain two consecutive hyphens
  7675. FinalDBSnapshotIdentifier *string `type:"string"`
  7676. // Determines whether a final DB cluster snapshot is created before the DB cluster
  7677. // is deleted. If true is specified, no DB cluster snapshot is created. If false
  7678. // is specified, a DB cluster snapshot is created before the DB cluster is deleted.
  7679. //
  7680. // You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot
  7681. // is false.
  7682. //
  7683. // Default: false
  7684. SkipFinalSnapshot *bool `type:"boolean"`
  7685. }
  7686. // String returns the string representation
  7687. func (s DeleteDBClusterInput) String() string {
  7688. return awsutil.Prettify(s)
  7689. }
  7690. // GoString returns the string representation
  7691. func (s DeleteDBClusterInput) GoString() string {
  7692. return s.String()
  7693. }
  7694. // Validate inspects the fields of the type to determine if they are valid.
  7695. func (s *DeleteDBClusterInput) Validate() error {
  7696. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterInput"}
  7697. if s.DBClusterIdentifier == nil {
  7698. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  7699. }
  7700. if invalidParams.Len() > 0 {
  7701. return invalidParams
  7702. }
  7703. return nil
  7704. }
  7705. type DeleteDBClusterOutput struct {
  7706. _ struct{} `type:"structure"`
  7707. // Contains the result of a successful invocation of the following actions:
  7708. //
  7709. // CreateDBCluster
  7710. //
  7711. // DeleteDBCluster
  7712. //
  7713. // FailoverDBCluster
  7714. //
  7715. // ModifyDBCluster
  7716. //
  7717. // RestoreDBClusterFromSnapshot
  7718. //
  7719. // RestoreDBClusterToPointInTime
  7720. //
  7721. // This data type is used as a response element in the DescribeDBClusters
  7722. // action.
  7723. DBCluster *DBCluster `type:"structure"`
  7724. }
  7725. // String returns the string representation
  7726. func (s DeleteDBClusterOutput) String() string {
  7727. return awsutil.Prettify(s)
  7728. }
  7729. // GoString returns the string representation
  7730. func (s DeleteDBClusterOutput) GoString() string {
  7731. return s.String()
  7732. }
  7733. type DeleteDBClusterParameterGroupInput struct {
  7734. _ struct{} `type:"structure"`
  7735. // The name of the DB cluster parameter group.
  7736. //
  7737. // Constraints:
  7738. //
  7739. // Must be the name of an existing DB cluster parameter group.
  7740. //
  7741. // You cannot delete a default DB cluster parameter group.
  7742. //
  7743. // Cannot be associated with any DB clusters.
  7744. DBClusterParameterGroupName *string `type:"string" required:"true"`
  7745. }
  7746. // String returns the string representation
  7747. func (s DeleteDBClusterParameterGroupInput) String() string {
  7748. return awsutil.Prettify(s)
  7749. }
  7750. // GoString returns the string representation
  7751. func (s DeleteDBClusterParameterGroupInput) GoString() string {
  7752. return s.String()
  7753. }
  7754. // Validate inspects the fields of the type to determine if they are valid.
  7755. func (s *DeleteDBClusterParameterGroupInput) Validate() error {
  7756. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterParameterGroupInput"}
  7757. if s.DBClusterParameterGroupName == nil {
  7758. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  7759. }
  7760. if invalidParams.Len() > 0 {
  7761. return invalidParams
  7762. }
  7763. return nil
  7764. }
  7765. type DeleteDBClusterParameterGroupOutput struct {
  7766. _ struct{} `type:"structure"`
  7767. }
  7768. // String returns the string representation
  7769. func (s DeleteDBClusterParameterGroupOutput) String() string {
  7770. return awsutil.Prettify(s)
  7771. }
  7772. // GoString returns the string representation
  7773. func (s DeleteDBClusterParameterGroupOutput) GoString() string {
  7774. return s.String()
  7775. }
  7776. type DeleteDBClusterSnapshotInput struct {
  7777. _ struct{} `type:"structure"`
  7778. // The identifier of the DB cluster snapshot to delete.
  7779. //
  7780. // Constraints: Must be the name of an existing DB cluster snapshot in the
  7781. // available state.
  7782. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  7783. }
  7784. // String returns the string representation
  7785. func (s DeleteDBClusterSnapshotInput) String() string {
  7786. return awsutil.Prettify(s)
  7787. }
  7788. // GoString returns the string representation
  7789. func (s DeleteDBClusterSnapshotInput) GoString() string {
  7790. return s.String()
  7791. }
  7792. // Validate inspects the fields of the type to determine if they are valid.
  7793. func (s *DeleteDBClusterSnapshotInput) Validate() error {
  7794. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterSnapshotInput"}
  7795. if s.DBClusterSnapshotIdentifier == nil {
  7796. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  7797. }
  7798. if invalidParams.Len() > 0 {
  7799. return invalidParams
  7800. }
  7801. return nil
  7802. }
  7803. type DeleteDBClusterSnapshotOutput struct {
  7804. _ struct{} `type:"structure"`
  7805. // Contains the result of a successful invocation of the following actions:
  7806. //
  7807. // CreateDBClusterSnapshot
  7808. //
  7809. // DeleteDBClusterSnapshot
  7810. //
  7811. // This data type is used as a response element in the DescribeDBClusterSnapshots
  7812. // action.
  7813. DBClusterSnapshot *DBClusterSnapshot `type:"structure"`
  7814. }
  7815. // String returns the string representation
  7816. func (s DeleteDBClusterSnapshotOutput) String() string {
  7817. return awsutil.Prettify(s)
  7818. }
  7819. // GoString returns the string representation
  7820. func (s DeleteDBClusterSnapshotOutput) GoString() string {
  7821. return s.String()
  7822. }
  7823. type DeleteDBInstanceInput struct {
  7824. _ struct{} `type:"structure"`
  7825. // The DB instance identifier for the DB instance to be deleted. This parameter
  7826. // isn't case-sensitive.
  7827. //
  7828. // Constraints:
  7829. //
  7830. // Must contain from 1 to 63 alphanumeric characters or hyphens
  7831. //
  7832. // First character must be a letter
  7833. //
  7834. // Cannot end with a hyphen or contain two consecutive hyphens
  7835. DBInstanceIdentifier *string `type:"string" required:"true"`
  7836. // The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot
  7837. // is set to false.
  7838. //
  7839. // Specifying this parameter and also setting the SkipFinalShapshot parameter
  7840. // to true results in an error.
  7841. //
  7842. // Constraints:
  7843. //
  7844. // Must be 1 to 255 alphanumeric characters
  7845. //
  7846. // First character must be a letter
  7847. //
  7848. // Cannot end with a hyphen or contain two consecutive hyphens
  7849. //
  7850. // Cannot be specified when deleting a Read Replica.
  7851. FinalDBSnapshotIdentifier *string `type:"string"`
  7852. // Determines whether a final DB snapshot is created before the DB instance
  7853. // is deleted. If true is specified, no DBSnapshot is created. If false is specified,
  7854. // a DB snapshot is created before the DB instance is deleted.
  7855. //
  7856. // Note that when a DB instance is in a failure state and has a status of 'failed',
  7857. // 'incompatible-restore', or 'incompatible-network', it can only be deleted
  7858. // when the SkipFinalSnapshot parameter is set to "true".
  7859. //
  7860. // Specify true when deleting a Read Replica.
  7861. //
  7862. // The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot
  7863. // is false.
  7864. //
  7865. // Default: false
  7866. SkipFinalSnapshot *bool `type:"boolean"`
  7867. }
  7868. // String returns the string representation
  7869. func (s DeleteDBInstanceInput) String() string {
  7870. return awsutil.Prettify(s)
  7871. }
  7872. // GoString returns the string representation
  7873. func (s DeleteDBInstanceInput) GoString() string {
  7874. return s.String()
  7875. }
  7876. // Validate inspects the fields of the type to determine if they are valid.
  7877. func (s *DeleteDBInstanceInput) Validate() error {
  7878. invalidParams := request.ErrInvalidParams{Context: "DeleteDBInstanceInput"}
  7879. if s.DBInstanceIdentifier == nil {
  7880. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  7881. }
  7882. if invalidParams.Len() > 0 {
  7883. return invalidParams
  7884. }
  7885. return nil
  7886. }
  7887. type DeleteDBInstanceOutput struct {
  7888. _ struct{} `type:"structure"`
  7889. // Contains the result of a successful invocation of the following actions:
  7890. //
  7891. // CreateDBInstance
  7892. //
  7893. // DeleteDBInstance
  7894. //
  7895. // ModifyDBInstance
  7896. //
  7897. // This data type is used as a response element in the DescribeDBInstances
  7898. // action.
  7899. DBInstance *DBInstance `type:"structure"`
  7900. }
  7901. // String returns the string representation
  7902. func (s DeleteDBInstanceOutput) String() string {
  7903. return awsutil.Prettify(s)
  7904. }
  7905. // GoString returns the string representation
  7906. func (s DeleteDBInstanceOutput) GoString() string {
  7907. return s.String()
  7908. }
  7909. type DeleteDBParameterGroupInput struct {
  7910. _ struct{} `type:"structure"`
  7911. // The name of the DB parameter group.
  7912. //
  7913. // Constraints:
  7914. //
  7915. // Must be the name of an existing DB parameter group
  7916. //
  7917. // You cannot delete a default DB parameter group
  7918. //
  7919. // Cannot be associated with any DB instances
  7920. DBParameterGroupName *string `type:"string" required:"true"`
  7921. }
  7922. // String returns the string representation
  7923. func (s DeleteDBParameterGroupInput) String() string {
  7924. return awsutil.Prettify(s)
  7925. }
  7926. // GoString returns the string representation
  7927. func (s DeleteDBParameterGroupInput) GoString() string {
  7928. return s.String()
  7929. }
  7930. // Validate inspects the fields of the type to determine if they are valid.
  7931. func (s *DeleteDBParameterGroupInput) Validate() error {
  7932. invalidParams := request.ErrInvalidParams{Context: "DeleteDBParameterGroupInput"}
  7933. if s.DBParameterGroupName == nil {
  7934. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  7935. }
  7936. if invalidParams.Len() > 0 {
  7937. return invalidParams
  7938. }
  7939. return nil
  7940. }
  7941. type DeleteDBParameterGroupOutput struct {
  7942. _ struct{} `type:"structure"`
  7943. }
  7944. // String returns the string representation
  7945. func (s DeleteDBParameterGroupOutput) String() string {
  7946. return awsutil.Prettify(s)
  7947. }
  7948. // GoString returns the string representation
  7949. func (s DeleteDBParameterGroupOutput) GoString() string {
  7950. return s.String()
  7951. }
  7952. type DeleteDBSecurityGroupInput struct {
  7953. _ struct{} `type:"structure"`
  7954. // The name of the DB security group to delete.
  7955. //
  7956. // You cannot delete the default DB security group.
  7957. //
  7958. // Constraints:
  7959. //
  7960. // Must be 1 to 255 alphanumeric characters
  7961. //
  7962. // First character must be a letter
  7963. //
  7964. // Cannot end with a hyphen or contain two consecutive hyphens
  7965. //
  7966. // Must not be "Default"
  7967. DBSecurityGroupName *string `type:"string" required:"true"`
  7968. }
  7969. // String returns the string representation
  7970. func (s DeleteDBSecurityGroupInput) String() string {
  7971. return awsutil.Prettify(s)
  7972. }
  7973. // GoString returns the string representation
  7974. func (s DeleteDBSecurityGroupInput) GoString() string {
  7975. return s.String()
  7976. }
  7977. // Validate inspects the fields of the type to determine if they are valid.
  7978. func (s *DeleteDBSecurityGroupInput) Validate() error {
  7979. invalidParams := request.ErrInvalidParams{Context: "DeleteDBSecurityGroupInput"}
  7980. if s.DBSecurityGroupName == nil {
  7981. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName"))
  7982. }
  7983. if invalidParams.Len() > 0 {
  7984. return invalidParams
  7985. }
  7986. return nil
  7987. }
  7988. type DeleteDBSecurityGroupOutput struct {
  7989. _ struct{} `type:"structure"`
  7990. }
  7991. // String returns the string representation
  7992. func (s DeleteDBSecurityGroupOutput) String() string {
  7993. return awsutil.Prettify(s)
  7994. }
  7995. // GoString returns the string representation
  7996. func (s DeleteDBSecurityGroupOutput) GoString() string {
  7997. return s.String()
  7998. }
  7999. type DeleteDBSnapshotInput struct {
  8000. _ struct{} `type:"structure"`
  8001. // The DBSnapshot identifier.
  8002. //
  8003. // Constraints: Must be the name of an existing DB snapshot in the available
  8004. // state.
  8005. DBSnapshotIdentifier *string `type:"string" required:"true"`
  8006. }
  8007. // String returns the string representation
  8008. func (s DeleteDBSnapshotInput) String() string {
  8009. return awsutil.Prettify(s)
  8010. }
  8011. // GoString returns the string representation
  8012. func (s DeleteDBSnapshotInput) GoString() string {
  8013. return s.String()
  8014. }
  8015. // Validate inspects the fields of the type to determine if they are valid.
  8016. func (s *DeleteDBSnapshotInput) Validate() error {
  8017. invalidParams := request.ErrInvalidParams{Context: "DeleteDBSnapshotInput"}
  8018. if s.DBSnapshotIdentifier == nil {
  8019. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  8020. }
  8021. if invalidParams.Len() > 0 {
  8022. return invalidParams
  8023. }
  8024. return nil
  8025. }
  8026. type DeleteDBSnapshotOutput struct {
  8027. _ struct{} `type:"structure"`
  8028. // Contains the result of a successful invocation of the following actions:
  8029. //
  8030. // CreateDBSnapshot
  8031. //
  8032. // DeleteDBSnapshot
  8033. //
  8034. // This data type is used as a response element in the DescribeDBSnapshots
  8035. // action.
  8036. DBSnapshot *DBSnapshot `type:"structure"`
  8037. }
  8038. // String returns the string representation
  8039. func (s DeleteDBSnapshotOutput) String() string {
  8040. return awsutil.Prettify(s)
  8041. }
  8042. // GoString returns the string representation
  8043. func (s DeleteDBSnapshotOutput) GoString() string {
  8044. return s.String()
  8045. }
  8046. type DeleteDBSubnetGroupInput struct {
  8047. _ struct{} `type:"structure"`
  8048. // The name of the database subnet group to delete.
  8049. //
  8050. // You cannot delete the default subnet group.
  8051. //
  8052. // Constraints:
  8053. //
  8054. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  8055. // underscores, spaces, or hyphens. Must not be default.
  8056. //
  8057. // Example: mySubnetgroup
  8058. DBSubnetGroupName *string `type:"string" required:"true"`
  8059. }
  8060. // String returns the string representation
  8061. func (s DeleteDBSubnetGroupInput) String() string {
  8062. return awsutil.Prettify(s)
  8063. }
  8064. // GoString returns the string representation
  8065. func (s DeleteDBSubnetGroupInput) GoString() string {
  8066. return s.String()
  8067. }
  8068. // Validate inspects the fields of the type to determine if they are valid.
  8069. func (s *DeleteDBSubnetGroupInput) Validate() error {
  8070. invalidParams := request.ErrInvalidParams{Context: "DeleteDBSubnetGroupInput"}
  8071. if s.DBSubnetGroupName == nil {
  8072. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName"))
  8073. }
  8074. if invalidParams.Len() > 0 {
  8075. return invalidParams
  8076. }
  8077. return nil
  8078. }
  8079. type DeleteDBSubnetGroupOutput struct {
  8080. _ struct{} `type:"structure"`
  8081. }
  8082. // String returns the string representation
  8083. func (s DeleteDBSubnetGroupOutput) String() string {
  8084. return awsutil.Prettify(s)
  8085. }
  8086. // GoString returns the string representation
  8087. func (s DeleteDBSubnetGroupOutput) GoString() string {
  8088. return s.String()
  8089. }
  8090. type DeleteEventSubscriptionInput struct {
  8091. _ struct{} `type:"structure"`
  8092. // The name of the RDS event notification subscription you want to delete.
  8093. SubscriptionName *string `type:"string" required:"true"`
  8094. }
  8095. // String returns the string representation
  8096. func (s DeleteEventSubscriptionInput) String() string {
  8097. return awsutil.Prettify(s)
  8098. }
  8099. // GoString returns the string representation
  8100. func (s DeleteEventSubscriptionInput) GoString() string {
  8101. return s.String()
  8102. }
  8103. // Validate inspects the fields of the type to determine if they are valid.
  8104. func (s *DeleteEventSubscriptionInput) Validate() error {
  8105. invalidParams := request.ErrInvalidParams{Context: "DeleteEventSubscriptionInput"}
  8106. if s.SubscriptionName == nil {
  8107. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  8108. }
  8109. if invalidParams.Len() > 0 {
  8110. return invalidParams
  8111. }
  8112. return nil
  8113. }
  8114. type DeleteEventSubscriptionOutput struct {
  8115. _ struct{} `type:"structure"`
  8116. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  8117. // action.
  8118. EventSubscription *EventSubscription `type:"structure"`
  8119. }
  8120. // String returns the string representation
  8121. func (s DeleteEventSubscriptionOutput) String() string {
  8122. return awsutil.Prettify(s)
  8123. }
  8124. // GoString returns the string representation
  8125. func (s DeleteEventSubscriptionOutput) GoString() string {
  8126. return s.String()
  8127. }
  8128. type DeleteOptionGroupInput struct {
  8129. _ struct{} `type:"structure"`
  8130. // The name of the option group to be deleted.
  8131. //
  8132. // You cannot delete default option groups.
  8133. OptionGroupName *string `type:"string" required:"true"`
  8134. }
  8135. // String returns the string representation
  8136. func (s DeleteOptionGroupInput) String() string {
  8137. return awsutil.Prettify(s)
  8138. }
  8139. // GoString returns the string representation
  8140. func (s DeleteOptionGroupInput) GoString() string {
  8141. return s.String()
  8142. }
  8143. // Validate inspects the fields of the type to determine if they are valid.
  8144. func (s *DeleteOptionGroupInput) Validate() error {
  8145. invalidParams := request.ErrInvalidParams{Context: "DeleteOptionGroupInput"}
  8146. if s.OptionGroupName == nil {
  8147. invalidParams.Add(request.NewErrParamRequired("OptionGroupName"))
  8148. }
  8149. if invalidParams.Len() > 0 {
  8150. return invalidParams
  8151. }
  8152. return nil
  8153. }
  8154. type DeleteOptionGroupOutput struct {
  8155. _ struct{} `type:"structure"`
  8156. }
  8157. // String returns the string representation
  8158. func (s DeleteOptionGroupOutput) String() string {
  8159. return awsutil.Prettify(s)
  8160. }
  8161. // GoString returns the string representation
  8162. func (s DeleteOptionGroupOutput) GoString() string {
  8163. return s.String()
  8164. }
  8165. type DescribeAccountAttributesInput struct {
  8166. _ struct{} `type:"structure"`
  8167. }
  8168. // String returns the string representation
  8169. func (s DescribeAccountAttributesInput) String() string {
  8170. return awsutil.Prettify(s)
  8171. }
  8172. // GoString returns the string representation
  8173. func (s DescribeAccountAttributesInput) GoString() string {
  8174. return s.String()
  8175. }
  8176. // Data returned by the DescribeAccountAttributes action.
  8177. type DescribeAccountAttributesOutput struct {
  8178. _ struct{} `type:"structure"`
  8179. // A list of AccountQuota objects. Within this list, each quota has a name,
  8180. // a count of usage toward the quota maximum, and a maximum value for the quota.
  8181. AccountQuotas []*AccountQuota `locationNameList:"AccountQuota" type:"list"`
  8182. }
  8183. // String returns the string representation
  8184. func (s DescribeAccountAttributesOutput) String() string {
  8185. return awsutil.Prettify(s)
  8186. }
  8187. // GoString returns the string representation
  8188. func (s DescribeAccountAttributesOutput) GoString() string {
  8189. return s.String()
  8190. }
  8191. type DescribeCertificatesInput struct {
  8192. _ struct{} `type:"structure"`
  8193. // The user-supplied certificate identifier. If this parameter is specified,
  8194. // information for only the identified certificate is returned. This parameter
  8195. // isn't case-sensitive.
  8196. //
  8197. // Constraints:
  8198. //
  8199. // Must contain from 1 to 63 alphanumeric characters or hyphens
  8200. //
  8201. // First character must be a letter
  8202. //
  8203. // Cannot end with a hyphen or contain two consecutive hyphens
  8204. CertificateIdentifier *string `type:"string"`
  8205. // This parameter is not currently supported.
  8206. Filters []*Filter `locationNameList:"Filter" type:"list"`
  8207. // An optional pagination token provided by a previous DescribeCertificates
  8208. // request. If this parameter is specified, the response includes only records
  8209. // beyond the marker, up to the value specified by MaxRecords.
  8210. Marker *string `type:"string"`
  8211. // The maximum number of records to include in the response. If more records
  8212. // exist than the specified MaxRecords value, a pagination token called a marker
  8213. // is included in the response so that the remaining results can be retrieved.
  8214. //
  8215. // Default: 100
  8216. //
  8217. // Constraints: Minimum 20, maximum 100.
  8218. MaxRecords *int64 `type:"integer"`
  8219. }
  8220. // String returns the string representation
  8221. func (s DescribeCertificatesInput) String() string {
  8222. return awsutil.Prettify(s)
  8223. }
  8224. // GoString returns the string representation
  8225. func (s DescribeCertificatesInput) GoString() string {
  8226. return s.String()
  8227. }
  8228. // Validate inspects the fields of the type to determine if they are valid.
  8229. func (s *DescribeCertificatesInput) Validate() error {
  8230. invalidParams := request.ErrInvalidParams{Context: "DescribeCertificatesInput"}
  8231. if s.Filters != nil {
  8232. for i, v := range s.Filters {
  8233. if v == nil {
  8234. continue
  8235. }
  8236. if err := v.Validate(); err != nil {
  8237. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  8238. }
  8239. }
  8240. }
  8241. if invalidParams.Len() > 0 {
  8242. return invalidParams
  8243. }
  8244. return nil
  8245. }
  8246. // Data returned by the DescribeCertificates action.
  8247. type DescribeCertificatesOutput struct {
  8248. _ struct{} `type:"structure"`
  8249. // The list of Certificate objects for the AWS account.
  8250. Certificates []*Certificate `locationNameList:"Certificate" type:"list"`
  8251. // An optional pagination token provided by a previous DescribeCertificates
  8252. // request. If this parameter is specified, the response includes only records
  8253. // beyond the marker, up to the value specified by MaxRecords .
  8254. Marker *string `type:"string"`
  8255. }
  8256. // String returns the string representation
  8257. func (s DescribeCertificatesOutput) String() string {
  8258. return awsutil.Prettify(s)
  8259. }
  8260. // GoString returns the string representation
  8261. func (s DescribeCertificatesOutput) GoString() string {
  8262. return s.String()
  8263. }
  8264. type DescribeDBClusterParameterGroupsInput struct {
  8265. _ struct{} `type:"structure"`
  8266. // The name of a specific DB cluster parameter group to return details for.
  8267. //
  8268. // Constraints:
  8269. //
  8270. // Must be 1 to 255 alphanumeric characters
  8271. //
  8272. // First character must be a letter
  8273. //
  8274. // Cannot end with a hyphen or contain two consecutive hyphens
  8275. DBClusterParameterGroupName *string `type:"string"`
  8276. // This parameter is not currently supported.
  8277. Filters []*Filter `locationNameList:"Filter" type:"list"`
  8278. // An optional pagination token provided by a previous DescribeDBClusterParameterGroups
  8279. // request. If this parameter is specified, the response includes only records
  8280. // beyond the marker, up to the value specified by MaxRecords.
  8281. Marker *string `type:"string"`
  8282. // The maximum number of records to include in the response. If more records
  8283. // exist than the specified MaxRecords value, a pagination token called a marker
  8284. // is included in the response so that the remaining results can be retrieved.
  8285. //
  8286. // Default: 100
  8287. //
  8288. // Constraints: Minimum 20, maximum 100.
  8289. MaxRecords *int64 `type:"integer"`
  8290. }
  8291. // String returns the string representation
  8292. func (s DescribeDBClusterParameterGroupsInput) String() string {
  8293. return awsutil.Prettify(s)
  8294. }
  8295. // GoString returns the string representation
  8296. func (s DescribeDBClusterParameterGroupsInput) GoString() string {
  8297. return s.String()
  8298. }
  8299. // Validate inspects the fields of the type to determine if they are valid.
  8300. func (s *DescribeDBClusterParameterGroupsInput) Validate() error {
  8301. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterParameterGroupsInput"}
  8302. if s.Filters != nil {
  8303. for i, v := range s.Filters {
  8304. if v == nil {
  8305. continue
  8306. }
  8307. if err := v.Validate(); err != nil {
  8308. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  8309. }
  8310. }
  8311. }
  8312. if invalidParams.Len() > 0 {
  8313. return invalidParams
  8314. }
  8315. return nil
  8316. }
  8317. type DescribeDBClusterParameterGroupsOutput struct {
  8318. _ struct{} `type:"structure"`
  8319. // A list of DB cluster parameter groups.
  8320. DBClusterParameterGroups []*DBClusterParameterGroup `locationNameList:"DBClusterParameterGroup" type:"list"`
  8321. // An optional pagination token provided by a previous DescribeDBClusterParameterGroups
  8322. // request. If this parameter is specified, the response includes only records
  8323. // beyond the marker, up to the value specified by MaxRecords.
  8324. Marker *string `type:"string"`
  8325. }
  8326. // String returns the string representation
  8327. func (s DescribeDBClusterParameterGroupsOutput) String() string {
  8328. return awsutil.Prettify(s)
  8329. }
  8330. // GoString returns the string representation
  8331. func (s DescribeDBClusterParameterGroupsOutput) GoString() string {
  8332. return s.String()
  8333. }
  8334. type DescribeDBClusterParametersInput struct {
  8335. _ struct{} `type:"structure"`
  8336. // The name of a specific DB cluster parameter group to return parameter details
  8337. // for.
  8338. //
  8339. // Constraints:
  8340. //
  8341. // Must be 1 to 255 alphanumeric characters
  8342. //
  8343. // First character must be a letter
  8344. //
  8345. // Cannot end with a hyphen or contain two consecutive hyphens
  8346. DBClusterParameterGroupName *string `type:"string" required:"true"`
  8347. // This parameter is not currently supported.
  8348. Filters []*Filter `locationNameList:"Filter" type:"list"`
  8349. // An optional pagination token provided by a previous DescribeDBClusterParameters
  8350. // request. If this parameter is specified, the response includes only records
  8351. // beyond the marker, up to the value specified by MaxRecords.
  8352. Marker *string `type:"string"`
  8353. // The maximum number of records to include in the response. If more records
  8354. // exist than the specified MaxRecords value, a pagination token called a marker
  8355. // is included in the response so that the remaining results can be retrieved.
  8356. //
  8357. // Default: 100
  8358. //
  8359. // Constraints: Minimum 20, maximum 100.
  8360. MaxRecords *int64 `type:"integer"`
  8361. // A value that indicates to return only parameters for a specific source. Parameter
  8362. // sources can be engine, service, or customer.
  8363. Source *string `type:"string"`
  8364. }
  8365. // String returns the string representation
  8366. func (s DescribeDBClusterParametersInput) String() string {
  8367. return awsutil.Prettify(s)
  8368. }
  8369. // GoString returns the string representation
  8370. func (s DescribeDBClusterParametersInput) GoString() string {
  8371. return s.String()
  8372. }
  8373. // Validate inspects the fields of the type to determine if they are valid.
  8374. func (s *DescribeDBClusterParametersInput) Validate() error {
  8375. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterParametersInput"}
  8376. if s.DBClusterParameterGroupName == nil {
  8377. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  8378. }
  8379. if s.Filters != nil {
  8380. for i, v := range s.Filters {
  8381. if v == nil {
  8382. continue
  8383. }
  8384. if err := v.Validate(); err != nil {
  8385. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  8386. }
  8387. }
  8388. }
  8389. if invalidParams.Len() > 0 {
  8390. return invalidParams
  8391. }
  8392. return nil
  8393. }
  8394. // Provides details about a DB cluster parameter group including the parameters
  8395. // in the DB cluster parameter group.
  8396. type DescribeDBClusterParametersOutput struct {
  8397. _ struct{} `type:"structure"`
  8398. // An optional pagination token provided by a previous DescribeDBClusterParameters
  8399. // request. If this parameter is specified, the response includes only records
  8400. // beyond the marker, up to the value specified by MaxRecords .
  8401. Marker *string `type:"string"`
  8402. // Provides a list of parameters for the DB cluster parameter group.
  8403. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  8404. }
  8405. // String returns the string representation
  8406. func (s DescribeDBClusterParametersOutput) String() string {
  8407. return awsutil.Prettify(s)
  8408. }
  8409. // GoString returns the string representation
  8410. func (s DescribeDBClusterParametersOutput) GoString() string {
  8411. return s.String()
  8412. }
  8413. type DescribeDBClusterSnapshotAttributesInput struct {
  8414. _ struct{} `type:"structure"`
  8415. // The identifier for the DB cluster snapshot to describe the attributes for.
  8416. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  8417. }
  8418. // String returns the string representation
  8419. func (s DescribeDBClusterSnapshotAttributesInput) String() string {
  8420. return awsutil.Prettify(s)
  8421. }
  8422. // GoString returns the string representation
  8423. func (s DescribeDBClusterSnapshotAttributesInput) GoString() string {
  8424. return s.String()
  8425. }
  8426. // Validate inspects the fields of the type to determine if they are valid.
  8427. func (s *DescribeDBClusterSnapshotAttributesInput) Validate() error {
  8428. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterSnapshotAttributesInput"}
  8429. if s.DBClusterSnapshotIdentifier == nil {
  8430. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  8431. }
  8432. if invalidParams.Len() > 0 {
  8433. return invalidParams
  8434. }
  8435. return nil
  8436. }
  8437. type DescribeDBClusterSnapshotAttributesOutput struct {
  8438. _ struct{} `type:"structure"`
  8439. // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes
  8440. // API action.
  8441. //
  8442. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  8443. // to copy or restore a manual DB cluster snapshot. For more information, see
  8444. // the ModifyDBClusterSnapshotAttribute API action.
  8445. DBClusterSnapshotAttributesResult *DBClusterSnapshotAttributesResult `type:"structure"`
  8446. }
  8447. // String returns the string representation
  8448. func (s DescribeDBClusterSnapshotAttributesOutput) String() string {
  8449. return awsutil.Prettify(s)
  8450. }
  8451. // GoString returns the string representation
  8452. func (s DescribeDBClusterSnapshotAttributesOutput) GoString() string {
  8453. return s.String()
  8454. }
  8455. type DescribeDBClusterSnapshotsInput struct {
  8456. _ struct{} `type:"structure"`
  8457. // The ID of the DB cluster to retrieve the list of DB cluster snapshots for.
  8458. // This parameter cannot be used in conjunction with the DBClusterSnapshotIdentifier
  8459. // parameter. This parameter is not case-sensitive.
  8460. //
  8461. // Constraints:
  8462. //
  8463. // Must contain from 1 to 63 alphanumeric characters or hyphens
  8464. //
  8465. // First character must be a letter
  8466. //
  8467. // Cannot end with a hyphen or contain two consecutive hyphens
  8468. DBClusterIdentifier *string `type:"string"`
  8469. // A specific DB cluster snapshot identifier to describe. This parameter cannot
  8470. // be used in conjunction with the DBClusterIdentifier parameter. This value
  8471. // is stored as a lowercase string.
  8472. //
  8473. // Constraints:
  8474. //
  8475. // Must be 1 to 255 alphanumeric characters
  8476. //
  8477. // First character must be a letter
  8478. //
  8479. // Cannot end with a hyphen or contain two consecutive hyphens
  8480. //
  8481. // If this identifier is for an automated snapshot, the SnapshotType parameter
  8482. // must also be specified.
  8483. DBClusterSnapshotIdentifier *string `type:"string"`
  8484. // This parameter is not currently supported.
  8485. Filters []*Filter `locationNameList:"Filter" type:"list"`
  8486. // Set this value to true to include manual DB cluster snapshots that are public
  8487. // and can be copied or restored by any AWS account, otherwise set this value
  8488. // to false. The default is false. The default is false.
  8489. //
  8490. // You can share a manual DB cluster snapshot as public by using the ModifyDBClusterSnapshotAttribute
  8491. // API action.
  8492. IncludePublic *bool `type:"boolean"`
  8493. // Set this value to true to include shared manual DB cluster snapshots from
  8494. // other AWS accounts that this AWS account has been given permission to copy
  8495. // or restore, otherwise set this value to false. The default is false.
  8496. //
  8497. // You can give an AWS account permission to restore a manual DB cluster snapshot
  8498. // from another AWS account by the ModifyDBClusterSnapshotAttribute API action.
  8499. IncludeShared *bool `type:"boolean"`
  8500. // An optional pagination token provided by a previous DescribeDBClusterSnapshots
  8501. // request. If this parameter is specified, the response includes only records
  8502. // beyond the marker, up to the value specified by MaxRecords.
  8503. Marker *string `type:"string"`
  8504. // The maximum number of records to include in the response. If more records
  8505. // exist than the specified MaxRecords value, a pagination token called a marker
  8506. // is included in the response so that the remaining results can be retrieved.
  8507. //
  8508. // Default: 100
  8509. //
  8510. // Constraints: Minimum 20, maximum 100.
  8511. MaxRecords *int64 `type:"integer"`
  8512. // The type of DB cluster snapshots to be returned. You can specify one of the
  8513. // following values:
  8514. //
  8515. // automated - Return all DB cluster snapshots that have been automatically
  8516. // taken by Amazon RDS for my AWS account.
  8517. //
  8518. // manual - Return all DB cluster snapshots that have been taken by my AWS
  8519. // account.
  8520. //
  8521. // shared - Return all manual DB cluster snapshots that have been shared
  8522. // to my AWS account.
  8523. //
  8524. // public - Return all DB cluster snapshots that have been marked as public.
  8525. //
  8526. // If you don't specify a SnapshotType value, then both automated and manual
  8527. // DB cluster snapshots are returned. You can include shared DB cluster snapshots
  8528. // with these results by setting the IncludeShared parameter to true. You can
  8529. // include public DB cluster snapshots with these results by setting the IncludePublic
  8530. // parameter to true.
  8531. //
  8532. // The IncludeShared and IncludePublic parameters don't apply for SnapshotType
  8533. // values of manual or automated. The IncludePublic parameter doesn't apply
  8534. // when SnapshotType is set to shared. The IncludeShared parameter doesn't apply
  8535. // when SnapshotType is set to public.
  8536. SnapshotType *string `type:"string"`
  8537. }
  8538. // String returns the string representation
  8539. func (s DescribeDBClusterSnapshotsInput) String() string {
  8540. return awsutil.Prettify(s)
  8541. }
  8542. // GoString returns the string representation
  8543. func (s DescribeDBClusterSnapshotsInput) GoString() string {
  8544. return s.String()
  8545. }
  8546. // Validate inspects the fields of the type to determine if they are valid.
  8547. func (s *DescribeDBClusterSnapshotsInput) Validate() error {
  8548. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterSnapshotsInput"}
  8549. if s.Filters != nil {
  8550. for i, v := range s.Filters {
  8551. if v == nil {
  8552. continue
  8553. }
  8554. if err := v.Validate(); err != nil {
  8555. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  8556. }
  8557. }
  8558. }
  8559. if invalidParams.Len() > 0 {
  8560. return invalidParams
  8561. }
  8562. return nil
  8563. }
  8564. // Provides a list of DB cluster snapshots for the user as the result of a call
  8565. // to the DescribeDBClusterSnapshots action.
  8566. type DescribeDBClusterSnapshotsOutput struct {
  8567. _ struct{} `type:"structure"`
  8568. // Provides a list of DB cluster snapshots for the user.
  8569. DBClusterSnapshots []*DBClusterSnapshot `locationNameList:"DBClusterSnapshot" type:"list"`
  8570. // An optional pagination token provided by a previous DescribeDBClusterSnapshots
  8571. // request. If this parameter is specified, the response includes only records
  8572. // beyond the marker, up to the value specified by MaxRecords.
  8573. Marker *string `type:"string"`
  8574. }
  8575. // String returns the string representation
  8576. func (s DescribeDBClusterSnapshotsOutput) String() string {
  8577. return awsutil.Prettify(s)
  8578. }
  8579. // GoString returns the string representation
  8580. func (s DescribeDBClusterSnapshotsOutput) GoString() string {
  8581. return s.String()
  8582. }
  8583. type DescribeDBClustersInput struct {
  8584. _ struct{} `type:"structure"`
  8585. // The user-supplied DB cluster identifier. If this parameter is specified,
  8586. // information from only the specific DB cluster is returned. This parameter
  8587. // isn't case-sensitive.
  8588. //
  8589. // Constraints:
  8590. //
  8591. // Must contain from 1 to 63 alphanumeric characters or hyphens
  8592. //
  8593. // First character must be a letter
  8594. //
  8595. // Cannot end with a hyphen or contain two consecutive hyphens
  8596. DBClusterIdentifier *string `type:"string"`
  8597. // This parameter is not currently supported.
  8598. Filters []*Filter `locationNameList:"Filter" type:"list"`
  8599. // An optional pagination token provided by a previous DescribeDBClusters request.
  8600. // If this parameter is specified, the response includes only records beyond
  8601. // the marker, up to the value specified by MaxRecords.
  8602. Marker *string `type:"string"`
  8603. // The maximum number of records to include in the response. If more records
  8604. // exist than the specified MaxRecords value, a pagination token called a marker
  8605. // is included in the response so that the remaining results can be retrieved.
  8606. //
  8607. // Default: 100
  8608. //
  8609. // Constraints: Minimum 20, maximum 100.
  8610. MaxRecords *int64 `type:"integer"`
  8611. }
  8612. // String returns the string representation
  8613. func (s DescribeDBClustersInput) String() string {
  8614. return awsutil.Prettify(s)
  8615. }
  8616. // GoString returns the string representation
  8617. func (s DescribeDBClustersInput) GoString() string {
  8618. return s.String()
  8619. }
  8620. // Validate inspects the fields of the type to determine if they are valid.
  8621. func (s *DescribeDBClustersInput) Validate() error {
  8622. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClustersInput"}
  8623. if s.Filters != nil {
  8624. for i, v := range s.Filters {
  8625. if v == nil {
  8626. continue
  8627. }
  8628. if err := v.Validate(); err != nil {
  8629. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  8630. }
  8631. }
  8632. }
  8633. if invalidParams.Len() > 0 {
  8634. return invalidParams
  8635. }
  8636. return nil
  8637. }
  8638. // Contains the result of a successful invocation of the DescribeDBClusters
  8639. // action.
  8640. type DescribeDBClustersOutput struct {
  8641. _ struct{} `type:"structure"`
  8642. // Contains a list of DB clusters for the user.
  8643. DBClusters []*DBCluster `locationNameList:"DBCluster" type:"list"`
  8644. // A pagination token that can be used in a subsequent DescribeDBClusters request.
  8645. Marker *string `type:"string"`
  8646. }
  8647. // String returns the string representation
  8648. func (s DescribeDBClustersOutput) String() string {
  8649. return awsutil.Prettify(s)
  8650. }
  8651. // GoString returns the string representation
  8652. func (s DescribeDBClustersOutput) GoString() string {
  8653. return s.String()
  8654. }
  8655. type DescribeDBEngineVersionsInput struct {
  8656. _ struct{} `type:"structure"`
  8657. // The name of a specific DB parameter group family to return details for.
  8658. //
  8659. // Constraints:
  8660. //
  8661. // Must be 1 to 255 alphanumeric characters
  8662. //
  8663. // First character must be a letter
  8664. //
  8665. // Cannot end with a hyphen or contain two consecutive hyphens
  8666. DBParameterGroupFamily *string `type:"string"`
  8667. // Indicates that only the default version of the specified engine or engine
  8668. // and major version combination is returned.
  8669. DefaultOnly *bool `type:"boolean"`
  8670. // The database engine to return.
  8671. Engine *string `type:"string"`
  8672. // The database engine version to return.
  8673. //
  8674. // Example: 5.1.49
  8675. EngineVersion *string `type:"string"`
  8676. // Not currently supported.
  8677. Filters []*Filter `locationNameList:"Filter" type:"list"`
  8678. // If this parameter is specified, and if the requested engine supports the
  8679. // CharacterSetName parameter for CreateDBInstance, the response includes a
  8680. // list of supported character sets for each engine version.
  8681. ListSupportedCharacterSets *bool `type:"boolean"`
  8682. // An optional pagination token provided by a previous request. If this parameter
  8683. // is specified, the response includes only records beyond the marker, up to
  8684. // the value specified by MaxRecords.
  8685. Marker *string `type:"string"`
  8686. // The maximum number of records to include in the response. If more than the
  8687. // MaxRecords value is available, a pagination token called a marker is included
  8688. // in the response so that the following results can be retrieved.
  8689. //
  8690. // Default: 100
  8691. //
  8692. // Constraints: Minimum 20, maximum 100.
  8693. MaxRecords *int64 `type:"integer"`
  8694. }
  8695. // String returns the string representation
  8696. func (s DescribeDBEngineVersionsInput) String() string {
  8697. return awsutil.Prettify(s)
  8698. }
  8699. // GoString returns the string representation
  8700. func (s DescribeDBEngineVersionsInput) GoString() string {
  8701. return s.String()
  8702. }
  8703. // Validate inspects the fields of the type to determine if they are valid.
  8704. func (s *DescribeDBEngineVersionsInput) Validate() error {
  8705. invalidParams := request.ErrInvalidParams{Context: "DescribeDBEngineVersionsInput"}
  8706. if s.Filters != nil {
  8707. for i, v := range s.Filters {
  8708. if v == nil {
  8709. continue
  8710. }
  8711. if err := v.Validate(); err != nil {
  8712. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  8713. }
  8714. }
  8715. }
  8716. if invalidParams.Len() > 0 {
  8717. return invalidParams
  8718. }
  8719. return nil
  8720. }
  8721. // Contains the result of a successful invocation of the DescribeDBEngineVersions
  8722. // action.
  8723. type DescribeDBEngineVersionsOutput struct {
  8724. _ struct{} `type:"structure"`
  8725. // A list of DBEngineVersion elements.
  8726. DBEngineVersions []*DBEngineVersion `locationNameList:"DBEngineVersion" type:"list"`
  8727. // An optional pagination token provided by a previous request. If this parameter
  8728. // is specified, the response includes only records beyond the marker, up to
  8729. // the value specified by MaxRecords.
  8730. Marker *string `type:"string"`
  8731. }
  8732. // String returns the string representation
  8733. func (s DescribeDBEngineVersionsOutput) String() string {
  8734. return awsutil.Prettify(s)
  8735. }
  8736. // GoString returns the string representation
  8737. func (s DescribeDBEngineVersionsOutput) GoString() string {
  8738. return s.String()
  8739. }
  8740. type DescribeDBInstancesInput struct {
  8741. _ struct{} `type:"structure"`
  8742. // The user-supplied instance identifier. If this parameter is specified, information
  8743. // from only the specific DB instance is returned. This parameter isn't case-sensitive.
  8744. //
  8745. // Constraints:
  8746. //
  8747. // Must contain from 1 to 63 alphanumeric characters or hyphens
  8748. //
  8749. // First character must be a letter
  8750. //
  8751. // Cannot end with a hyphen or contain two consecutive hyphens
  8752. DBInstanceIdentifier *string `type:"string"`
  8753. // This parameter is not currently supported.
  8754. Filters []*Filter `locationNameList:"Filter" type:"list"`
  8755. // An optional pagination token provided by a previous DescribeDBInstances request.
  8756. // If this parameter is specified, the response includes only records beyond
  8757. // the marker, up to the value specified by MaxRecords.
  8758. Marker *string `type:"string"`
  8759. // The maximum number of records to include in the response. If more records
  8760. // exist than the specified MaxRecords value, a pagination token called a marker
  8761. // is included in the response so that the remaining results can be retrieved.
  8762. //
  8763. // Default: 100
  8764. //
  8765. // Constraints: Minimum 20, maximum 100.
  8766. MaxRecords *int64 `type:"integer"`
  8767. }
  8768. // String returns the string representation
  8769. func (s DescribeDBInstancesInput) String() string {
  8770. return awsutil.Prettify(s)
  8771. }
  8772. // GoString returns the string representation
  8773. func (s DescribeDBInstancesInput) GoString() string {
  8774. return s.String()
  8775. }
  8776. // Validate inspects the fields of the type to determine if they are valid.
  8777. func (s *DescribeDBInstancesInput) Validate() error {
  8778. invalidParams := request.ErrInvalidParams{Context: "DescribeDBInstancesInput"}
  8779. if s.Filters != nil {
  8780. for i, v := range s.Filters {
  8781. if v == nil {
  8782. continue
  8783. }
  8784. if err := v.Validate(); err != nil {
  8785. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  8786. }
  8787. }
  8788. }
  8789. if invalidParams.Len() > 0 {
  8790. return invalidParams
  8791. }
  8792. return nil
  8793. }
  8794. // Contains the result of a successful invocation of the DescribeDBInstances
  8795. // action.
  8796. type DescribeDBInstancesOutput struct {
  8797. _ struct{} `type:"structure"`
  8798. // A list of DBInstance instances.
  8799. DBInstances []*DBInstance `locationNameList:"DBInstance" type:"list"`
  8800. // An optional pagination token provided by a previous request. If this parameter
  8801. // is specified, the response includes only records beyond the marker, up to
  8802. // the value specified by MaxRecords .
  8803. Marker *string `type:"string"`
  8804. }
  8805. // String returns the string representation
  8806. func (s DescribeDBInstancesOutput) String() string {
  8807. return awsutil.Prettify(s)
  8808. }
  8809. // GoString returns the string representation
  8810. func (s DescribeDBInstancesOutput) GoString() string {
  8811. return s.String()
  8812. }
  8813. // This data type is used as a response element to DescribeDBLogFiles.
  8814. type DescribeDBLogFilesDetails struct {
  8815. _ struct{} `type:"structure"`
  8816. // A POSIX timestamp when the last log entry was written.
  8817. LastWritten *int64 `type:"long"`
  8818. // The name of the log file for the specified DB instance.
  8819. LogFileName *string `type:"string"`
  8820. // The size, in bytes, of the log file for the specified DB instance.
  8821. Size *int64 `type:"long"`
  8822. }
  8823. // String returns the string representation
  8824. func (s DescribeDBLogFilesDetails) String() string {
  8825. return awsutil.Prettify(s)
  8826. }
  8827. // GoString returns the string representation
  8828. func (s DescribeDBLogFilesDetails) GoString() string {
  8829. return s.String()
  8830. }
  8831. type DescribeDBLogFilesInput struct {
  8832. _ struct{} `type:"structure"`
  8833. // The customer-assigned name of the DB instance that contains the log files
  8834. // you want to list.
  8835. //
  8836. // Constraints:
  8837. //
  8838. // Must contain from 1 to 63 alphanumeric characters or hyphens
  8839. //
  8840. // First character must be a letter
  8841. //
  8842. // Cannot end with a hyphen or contain two consecutive hyphens
  8843. DBInstanceIdentifier *string `type:"string" required:"true"`
  8844. // Filters the available log files for files written since the specified date,
  8845. // in POSIX timestamp format with milliseconds.
  8846. FileLastWritten *int64 `type:"long"`
  8847. // Filters the available log files for files larger than the specified size.
  8848. FileSize *int64 `type:"long"`
  8849. // Filters the available log files for log file names that contain the specified
  8850. // string.
  8851. FilenameContains *string `type:"string"`
  8852. // This parameter is not currently supported.
  8853. Filters []*Filter `locationNameList:"Filter" type:"list"`
  8854. // The pagination token provided in the previous request. If this parameter
  8855. // is specified the response includes only records beyond the marker, up to
  8856. // MaxRecords.
  8857. Marker *string `type:"string"`
  8858. // The maximum number of records to include in the response. If more records
  8859. // exist than the specified MaxRecords value, a pagination token called a marker
  8860. // is included in the response so that the remaining results can be retrieved.
  8861. MaxRecords *int64 `type:"integer"`
  8862. }
  8863. // String returns the string representation
  8864. func (s DescribeDBLogFilesInput) String() string {
  8865. return awsutil.Prettify(s)
  8866. }
  8867. // GoString returns the string representation
  8868. func (s DescribeDBLogFilesInput) GoString() string {
  8869. return s.String()
  8870. }
  8871. // Validate inspects the fields of the type to determine if they are valid.
  8872. func (s *DescribeDBLogFilesInput) Validate() error {
  8873. invalidParams := request.ErrInvalidParams{Context: "DescribeDBLogFilesInput"}
  8874. if s.DBInstanceIdentifier == nil {
  8875. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  8876. }
  8877. if s.Filters != nil {
  8878. for i, v := range s.Filters {
  8879. if v == nil {
  8880. continue
  8881. }
  8882. if err := v.Validate(); err != nil {
  8883. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  8884. }
  8885. }
  8886. }
  8887. if invalidParams.Len() > 0 {
  8888. return invalidParams
  8889. }
  8890. return nil
  8891. }
  8892. // The response from a call to DescribeDBLogFiles.
  8893. type DescribeDBLogFilesOutput struct {
  8894. _ struct{} `type:"structure"`
  8895. // The DB log files returned.
  8896. DescribeDBLogFiles []*DescribeDBLogFilesDetails `locationNameList:"DescribeDBLogFilesDetails" type:"list"`
  8897. // A pagination token that can be used in a subsequent DescribeDBLogFiles request.
  8898. Marker *string `type:"string"`
  8899. }
  8900. // String returns the string representation
  8901. func (s DescribeDBLogFilesOutput) String() string {
  8902. return awsutil.Prettify(s)
  8903. }
  8904. // GoString returns the string representation
  8905. func (s DescribeDBLogFilesOutput) GoString() string {
  8906. return s.String()
  8907. }
  8908. type DescribeDBParameterGroupsInput struct {
  8909. _ struct{} `type:"structure"`
  8910. // The name of a specific DB parameter group to return details for.
  8911. //
  8912. // Constraints:
  8913. //
  8914. // Must be 1 to 255 alphanumeric characters
  8915. //
  8916. // First character must be a letter
  8917. //
  8918. // Cannot end with a hyphen or contain two consecutive hyphens
  8919. DBParameterGroupName *string `type:"string"`
  8920. // This parameter is not currently supported.
  8921. Filters []*Filter `locationNameList:"Filter" type:"list"`
  8922. // An optional pagination token provided by a previous DescribeDBParameterGroups
  8923. // request. If this parameter is specified, the response includes only records
  8924. // beyond the marker, up to the value specified by MaxRecords.
  8925. Marker *string `type:"string"`
  8926. // The maximum number of records to include in the response. If more records
  8927. // exist than the specified MaxRecords value, a pagination token called a marker
  8928. // is included in the response so that the remaining results can be retrieved.
  8929. //
  8930. // Default: 100
  8931. //
  8932. // Constraints: Minimum 20, maximum 100.
  8933. MaxRecords *int64 `type:"integer"`
  8934. }
  8935. // String returns the string representation
  8936. func (s DescribeDBParameterGroupsInput) String() string {
  8937. return awsutil.Prettify(s)
  8938. }
  8939. // GoString returns the string representation
  8940. func (s DescribeDBParameterGroupsInput) GoString() string {
  8941. return s.String()
  8942. }
  8943. // Validate inspects the fields of the type to determine if they are valid.
  8944. func (s *DescribeDBParameterGroupsInput) Validate() error {
  8945. invalidParams := request.ErrInvalidParams{Context: "DescribeDBParameterGroupsInput"}
  8946. if s.Filters != nil {
  8947. for i, v := range s.Filters {
  8948. if v == nil {
  8949. continue
  8950. }
  8951. if err := v.Validate(); err != nil {
  8952. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  8953. }
  8954. }
  8955. }
  8956. if invalidParams.Len() > 0 {
  8957. return invalidParams
  8958. }
  8959. return nil
  8960. }
  8961. // Contains the result of a successful invocation of the DescribeDBParameterGroups
  8962. // action.
  8963. type DescribeDBParameterGroupsOutput struct {
  8964. _ struct{} `type:"structure"`
  8965. // A list of DBParameterGroup instances.
  8966. DBParameterGroups []*DBParameterGroup `locationNameList:"DBParameterGroup" type:"list"`
  8967. // An optional pagination token provided by a previous request. If this parameter
  8968. // is specified, the response includes only records beyond the marker, up to
  8969. // the value specified by MaxRecords.
  8970. Marker *string `type:"string"`
  8971. }
  8972. // String returns the string representation
  8973. func (s DescribeDBParameterGroupsOutput) String() string {
  8974. return awsutil.Prettify(s)
  8975. }
  8976. // GoString returns the string representation
  8977. func (s DescribeDBParameterGroupsOutput) GoString() string {
  8978. return s.String()
  8979. }
  8980. type DescribeDBParametersInput struct {
  8981. _ struct{} `type:"structure"`
  8982. // The name of a specific DB parameter group to return details for.
  8983. //
  8984. // Constraints:
  8985. //
  8986. // Must be 1 to 255 alphanumeric characters
  8987. //
  8988. // First character must be a letter
  8989. //
  8990. // Cannot end with a hyphen or contain two consecutive hyphens
  8991. DBParameterGroupName *string `type:"string" required:"true"`
  8992. // This parameter is not currently supported.
  8993. Filters []*Filter `locationNameList:"Filter" type:"list"`
  8994. // An optional pagination token provided by a previous DescribeDBParameters
  8995. // request. If this parameter is specified, the response includes only records
  8996. // beyond the marker, up to the value specified by MaxRecords.
  8997. Marker *string `type:"string"`
  8998. // The maximum number of records to include in the response. If more records
  8999. // exist than the specified MaxRecords value, a pagination token called a marker
  9000. // is included in the response so that the remaining results can be retrieved.
  9001. //
  9002. // Default: 100
  9003. //
  9004. // Constraints: Minimum 20, maximum 100.
  9005. MaxRecords *int64 `type:"integer"`
  9006. // The parameter types to return.
  9007. //
  9008. // Default: All parameter types returned
  9009. //
  9010. // Valid Values: user | system | engine-default
  9011. Source *string `type:"string"`
  9012. }
  9013. // String returns the string representation
  9014. func (s DescribeDBParametersInput) String() string {
  9015. return awsutil.Prettify(s)
  9016. }
  9017. // GoString returns the string representation
  9018. func (s DescribeDBParametersInput) GoString() string {
  9019. return s.String()
  9020. }
  9021. // Validate inspects the fields of the type to determine if they are valid.
  9022. func (s *DescribeDBParametersInput) Validate() error {
  9023. invalidParams := request.ErrInvalidParams{Context: "DescribeDBParametersInput"}
  9024. if s.DBParameterGroupName == nil {
  9025. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  9026. }
  9027. if s.Filters != nil {
  9028. for i, v := range s.Filters {
  9029. if v == nil {
  9030. continue
  9031. }
  9032. if err := v.Validate(); err != nil {
  9033. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9034. }
  9035. }
  9036. }
  9037. if invalidParams.Len() > 0 {
  9038. return invalidParams
  9039. }
  9040. return nil
  9041. }
  9042. // Contains the result of a successful invocation of the DescribeDBParameters
  9043. // action.
  9044. type DescribeDBParametersOutput struct {
  9045. _ struct{} `type:"structure"`
  9046. // An optional pagination token provided by a previous request. If this parameter
  9047. // is specified, the response includes only records beyond the marker, up to
  9048. // the value specified by MaxRecords.
  9049. Marker *string `type:"string"`
  9050. // A list of Parameter values.
  9051. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  9052. }
  9053. // String returns the string representation
  9054. func (s DescribeDBParametersOutput) String() string {
  9055. return awsutil.Prettify(s)
  9056. }
  9057. // GoString returns the string representation
  9058. func (s DescribeDBParametersOutput) GoString() string {
  9059. return s.String()
  9060. }
  9061. type DescribeDBSecurityGroupsInput struct {
  9062. _ struct{} `type:"structure"`
  9063. // The name of the DB security group to return details for.
  9064. DBSecurityGroupName *string `type:"string"`
  9065. // This parameter is not currently supported.
  9066. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9067. // An optional pagination token provided by a previous DescribeDBSecurityGroups
  9068. // request. If this parameter is specified, the response includes only records
  9069. // beyond the marker, up to the value specified by MaxRecords.
  9070. Marker *string `type:"string"`
  9071. // The maximum number of records to include in the response. If more records
  9072. // exist than the specified MaxRecords value, a pagination token called a marker
  9073. // is included in the response so that the remaining results can be retrieved.
  9074. //
  9075. // Default: 100
  9076. //
  9077. // Constraints: Minimum 20, maximum 100.
  9078. MaxRecords *int64 `type:"integer"`
  9079. }
  9080. // String returns the string representation
  9081. func (s DescribeDBSecurityGroupsInput) String() string {
  9082. return awsutil.Prettify(s)
  9083. }
  9084. // GoString returns the string representation
  9085. func (s DescribeDBSecurityGroupsInput) GoString() string {
  9086. return s.String()
  9087. }
  9088. // Validate inspects the fields of the type to determine if they are valid.
  9089. func (s *DescribeDBSecurityGroupsInput) Validate() error {
  9090. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSecurityGroupsInput"}
  9091. if s.Filters != nil {
  9092. for i, v := range s.Filters {
  9093. if v == nil {
  9094. continue
  9095. }
  9096. if err := v.Validate(); err != nil {
  9097. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9098. }
  9099. }
  9100. }
  9101. if invalidParams.Len() > 0 {
  9102. return invalidParams
  9103. }
  9104. return nil
  9105. }
  9106. // Contains the result of a successful invocation of the DescribeDBSecurityGroups
  9107. // action.
  9108. type DescribeDBSecurityGroupsOutput struct {
  9109. _ struct{} `type:"structure"`
  9110. // A list of DBSecurityGroup instances.
  9111. DBSecurityGroups []*DBSecurityGroup `locationNameList:"DBSecurityGroup" type:"list"`
  9112. // An optional pagination token provided by a previous request. If this parameter
  9113. // is specified, the response includes only records beyond the marker, up to
  9114. // the value specified by MaxRecords.
  9115. Marker *string `type:"string"`
  9116. }
  9117. // String returns the string representation
  9118. func (s DescribeDBSecurityGroupsOutput) String() string {
  9119. return awsutil.Prettify(s)
  9120. }
  9121. // GoString returns the string representation
  9122. func (s DescribeDBSecurityGroupsOutput) GoString() string {
  9123. return s.String()
  9124. }
  9125. type DescribeDBSnapshotAttributesInput struct {
  9126. _ struct{} `type:"structure"`
  9127. // The identifier for the DB snapshot to describe the attributes for.
  9128. DBSnapshotIdentifier *string `type:"string" required:"true"`
  9129. }
  9130. // String returns the string representation
  9131. func (s DescribeDBSnapshotAttributesInput) String() string {
  9132. return awsutil.Prettify(s)
  9133. }
  9134. // GoString returns the string representation
  9135. func (s DescribeDBSnapshotAttributesInput) GoString() string {
  9136. return s.String()
  9137. }
  9138. // Validate inspects the fields of the type to determine if they are valid.
  9139. func (s *DescribeDBSnapshotAttributesInput) Validate() error {
  9140. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSnapshotAttributesInput"}
  9141. if s.DBSnapshotIdentifier == nil {
  9142. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  9143. }
  9144. if invalidParams.Len() > 0 {
  9145. return invalidParams
  9146. }
  9147. return nil
  9148. }
  9149. type DescribeDBSnapshotAttributesOutput struct {
  9150. _ struct{} `type:"structure"`
  9151. // Contains the results of a successful call to the DescribeDBSnapshotAttributes
  9152. // API action.
  9153. //
  9154. // Manual DB snapshot attributes are used to authorize other AWS accounts to
  9155. // copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
  9156. // API action.
  9157. DBSnapshotAttributesResult *DBSnapshotAttributesResult `type:"structure"`
  9158. }
  9159. // String returns the string representation
  9160. func (s DescribeDBSnapshotAttributesOutput) String() string {
  9161. return awsutil.Prettify(s)
  9162. }
  9163. // GoString returns the string representation
  9164. func (s DescribeDBSnapshotAttributesOutput) GoString() string {
  9165. return s.String()
  9166. }
  9167. type DescribeDBSnapshotsInput struct {
  9168. _ struct{} `type:"structure"`
  9169. // The ID of the DB instance to retrieve the list of DB snapshots for. This
  9170. // parameter cannot be used in conjunction with DBSnapshotIdentifier. This parameter
  9171. // is not case-sensitive.
  9172. //
  9173. // Constraints:
  9174. //
  9175. // Must contain from 1 to 63 alphanumeric characters or hyphens
  9176. //
  9177. // First character must be a letter
  9178. //
  9179. // Cannot end with a hyphen or contain two consecutive hyphens
  9180. DBInstanceIdentifier *string `type:"string"`
  9181. // A specific DB snapshot identifier to describe. This parameter cannot be used
  9182. // in conjunction with DBInstanceIdentifier. This value is stored as a lowercase
  9183. // string.
  9184. //
  9185. // Constraints:
  9186. //
  9187. // Must be 1 to 255 alphanumeric characters.
  9188. //
  9189. // First character must be a letter.
  9190. //
  9191. // Cannot end with a hyphen or contain two consecutive hyphens.
  9192. //
  9193. // If this identifier is for an automated snapshot, the SnapshotType parameter
  9194. // must also be specified.
  9195. DBSnapshotIdentifier *string `type:"string"`
  9196. // This parameter is not currently supported.
  9197. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9198. // Set this value to true to include manual DB snapshots that are public and
  9199. // can be copied or restored by any AWS account, otherwise set this value to
  9200. // false. The default is false.
  9201. //
  9202. // You can share a manual DB snapshot as public by using the ModifyDBSnapshotAttribute
  9203. // API.
  9204. IncludePublic *bool `type:"boolean"`
  9205. // Set this value to true to include shared manual DB snapshots from other AWS
  9206. // accounts that this AWS account has been given permission to copy or restore,
  9207. // otherwise set this value to false. The default is false.
  9208. //
  9209. // You can give an AWS account permission to restore a manual DB snapshot from
  9210. // another AWS account by using the ModifyDBSnapshotAttribute API action.
  9211. IncludeShared *bool `type:"boolean"`
  9212. // An optional pagination token provided by a previous DescribeDBSnapshots request.
  9213. // If this parameter is specified, the response includes only records beyond
  9214. // the marker, up to the value specified by MaxRecords.
  9215. Marker *string `type:"string"`
  9216. // The maximum number of records to include in the response. If more records
  9217. // exist than the specified MaxRecords value, a pagination token called a marker
  9218. // is included in the response so that the remaining results can be retrieved.
  9219. //
  9220. // Default: 100
  9221. //
  9222. // Constraints: Minimum 20, maximum 100.
  9223. MaxRecords *int64 `type:"integer"`
  9224. // The type of snapshots to be returned. You can specify one of the following
  9225. // values:
  9226. //
  9227. // automated - Return all DB snapshots that have been automatically taken
  9228. // by Amazon RDS for my AWS account.
  9229. //
  9230. // manual - Return all DB snapshots that have been taken by my AWS account.
  9231. //
  9232. // shared - Return all manual DB snapshots that have been shared to my AWS
  9233. // account.
  9234. //
  9235. // public - Return all DB snapshots that have been marked as public.
  9236. //
  9237. // If you don't specify a SnapshotType value, then both automated and manual
  9238. // snapshots are returned. Shared and public DB snapshots are not included in
  9239. // the returned results by default. You can include shared snapshots with these
  9240. // results by setting the IncludeShared parameter to true. You can include public
  9241. // snapshots with these results by setting the IncludePublic parameter to true.
  9242. //
  9243. // The IncludeShared and IncludePublic parameters don't apply for SnapshotType
  9244. // values of manual or automated. The IncludePublic parameter doesn't apply
  9245. // when SnapshotType is set to shared. The IncludeShared parameter doesn't apply
  9246. // when SnapshotType is set to public.
  9247. SnapshotType *string `type:"string"`
  9248. }
  9249. // String returns the string representation
  9250. func (s DescribeDBSnapshotsInput) String() string {
  9251. return awsutil.Prettify(s)
  9252. }
  9253. // GoString returns the string representation
  9254. func (s DescribeDBSnapshotsInput) GoString() string {
  9255. return s.String()
  9256. }
  9257. // Validate inspects the fields of the type to determine if they are valid.
  9258. func (s *DescribeDBSnapshotsInput) Validate() error {
  9259. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSnapshotsInput"}
  9260. if s.Filters != nil {
  9261. for i, v := range s.Filters {
  9262. if v == nil {
  9263. continue
  9264. }
  9265. if err := v.Validate(); err != nil {
  9266. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9267. }
  9268. }
  9269. }
  9270. if invalidParams.Len() > 0 {
  9271. return invalidParams
  9272. }
  9273. return nil
  9274. }
  9275. // Contains the result of a successful invocation of the DescribeDBSnapshots
  9276. // action.
  9277. type DescribeDBSnapshotsOutput struct {
  9278. _ struct{} `type:"structure"`
  9279. // A list of DBSnapshot instances.
  9280. DBSnapshots []*DBSnapshot `locationNameList:"DBSnapshot" type:"list"`
  9281. // An optional pagination token provided by a previous request. If this parameter
  9282. // is specified, the response includes only records beyond the marker, up to
  9283. // the value specified by MaxRecords.
  9284. Marker *string `type:"string"`
  9285. }
  9286. // String returns the string representation
  9287. func (s DescribeDBSnapshotsOutput) String() string {
  9288. return awsutil.Prettify(s)
  9289. }
  9290. // GoString returns the string representation
  9291. func (s DescribeDBSnapshotsOutput) GoString() string {
  9292. return s.String()
  9293. }
  9294. type DescribeDBSubnetGroupsInput struct {
  9295. _ struct{} `type:"structure"`
  9296. // The name of the DB subnet group to return details for.
  9297. DBSubnetGroupName *string `type:"string"`
  9298. // This parameter is not currently supported.
  9299. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9300. // An optional pagination token provided by a previous DescribeDBSubnetGroups
  9301. // request. If this parameter is specified, the response includes only records
  9302. // beyond the marker, up to the value specified by MaxRecords.
  9303. Marker *string `type:"string"`
  9304. // The maximum number of records to include in the response. If more records
  9305. // exist than the specified MaxRecords value, a pagination token called a marker
  9306. // is included in the response so that the remaining results can be retrieved.
  9307. //
  9308. // Default: 100
  9309. //
  9310. // Constraints: Minimum 20, maximum 100.
  9311. MaxRecords *int64 `type:"integer"`
  9312. }
  9313. // String returns the string representation
  9314. func (s DescribeDBSubnetGroupsInput) String() string {
  9315. return awsutil.Prettify(s)
  9316. }
  9317. // GoString returns the string representation
  9318. func (s DescribeDBSubnetGroupsInput) GoString() string {
  9319. return s.String()
  9320. }
  9321. // Validate inspects the fields of the type to determine if they are valid.
  9322. func (s *DescribeDBSubnetGroupsInput) Validate() error {
  9323. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSubnetGroupsInput"}
  9324. if s.Filters != nil {
  9325. for i, v := range s.Filters {
  9326. if v == nil {
  9327. continue
  9328. }
  9329. if err := v.Validate(); err != nil {
  9330. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9331. }
  9332. }
  9333. }
  9334. if invalidParams.Len() > 0 {
  9335. return invalidParams
  9336. }
  9337. return nil
  9338. }
  9339. // Contains the result of a successful invocation of the DescribeDBSubnetGroups
  9340. // action.
  9341. type DescribeDBSubnetGroupsOutput struct {
  9342. _ struct{} `type:"structure"`
  9343. // A list of DBSubnetGroup instances.
  9344. DBSubnetGroups []*DBSubnetGroup `locationNameList:"DBSubnetGroup" type:"list"`
  9345. // An optional pagination token provided by a previous request. If this parameter
  9346. // is specified, the response includes only records beyond the marker, up to
  9347. // the value specified by MaxRecords.
  9348. Marker *string `type:"string"`
  9349. }
  9350. // String returns the string representation
  9351. func (s DescribeDBSubnetGroupsOutput) String() string {
  9352. return awsutil.Prettify(s)
  9353. }
  9354. // GoString returns the string representation
  9355. func (s DescribeDBSubnetGroupsOutput) GoString() string {
  9356. return s.String()
  9357. }
  9358. type DescribeEngineDefaultClusterParametersInput struct {
  9359. _ struct{} `type:"structure"`
  9360. // The name of the DB cluster parameter group family to return engine parameter
  9361. // information for.
  9362. DBParameterGroupFamily *string `type:"string" required:"true"`
  9363. // This parameter is not currently supported.
  9364. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9365. // An optional pagination token provided by a previous DescribeEngineDefaultClusterParameters
  9366. // request. If this parameter is specified, the response includes only records
  9367. // beyond the marker, up to the value specified by MaxRecords.
  9368. Marker *string `type:"string"`
  9369. // The maximum number of records to include in the response. If more records
  9370. // exist than the specified MaxRecords value, a pagination token called a marker
  9371. // is included in the response so that the remaining results can be retrieved.
  9372. //
  9373. // Default: 100
  9374. //
  9375. // Constraints: Minimum 20, maximum 100.
  9376. MaxRecords *int64 `type:"integer"`
  9377. }
  9378. // String returns the string representation
  9379. func (s DescribeEngineDefaultClusterParametersInput) String() string {
  9380. return awsutil.Prettify(s)
  9381. }
  9382. // GoString returns the string representation
  9383. func (s DescribeEngineDefaultClusterParametersInput) GoString() string {
  9384. return s.String()
  9385. }
  9386. // Validate inspects the fields of the type to determine if they are valid.
  9387. func (s *DescribeEngineDefaultClusterParametersInput) Validate() error {
  9388. invalidParams := request.ErrInvalidParams{Context: "DescribeEngineDefaultClusterParametersInput"}
  9389. if s.DBParameterGroupFamily == nil {
  9390. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  9391. }
  9392. if s.Filters != nil {
  9393. for i, v := range s.Filters {
  9394. if v == nil {
  9395. continue
  9396. }
  9397. if err := v.Validate(); err != nil {
  9398. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9399. }
  9400. }
  9401. }
  9402. if invalidParams.Len() > 0 {
  9403. return invalidParams
  9404. }
  9405. return nil
  9406. }
  9407. type DescribeEngineDefaultClusterParametersOutput struct {
  9408. _ struct{} `type:"structure"`
  9409. // Contains the result of a successful invocation of the DescribeEngineDefaultParameters
  9410. // action.
  9411. EngineDefaults *EngineDefaults `type:"structure"`
  9412. }
  9413. // String returns the string representation
  9414. func (s DescribeEngineDefaultClusterParametersOutput) String() string {
  9415. return awsutil.Prettify(s)
  9416. }
  9417. // GoString returns the string representation
  9418. func (s DescribeEngineDefaultClusterParametersOutput) GoString() string {
  9419. return s.String()
  9420. }
  9421. type DescribeEngineDefaultParametersInput struct {
  9422. _ struct{} `type:"structure"`
  9423. // The name of the DB parameter group family.
  9424. DBParameterGroupFamily *string `type:"string" required:"true"`
  9425. // Not currently supported.
  9426. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9427. // An optional pagination token provided by a previous DescribeEngineDefaultParameters
  9428. // request. If this parameter is specified, the response includes only records
  9429. // beyond the marker, up to the value specified by MaxRecords.
  9430. Marker *string `type:"string"`
  9431. // The maximum number of records to include in the response. If more records
  9432. // exist than the specified MaxRecords value, a pagination token called a marker
  9433. // is included in the response so that the remaining results can be retrieved.
  9434. //
  9435. // Default: 100
  9436. //
  9437. // Constraints: Minimum 20, maximum 100.
  9438. MaxRecords *int64 `type:"integer"`
  9439. }
  9440. // String returns the string representation
  9441. func (s DescribeEngineDefaultParametersInput) String() string {
  9442. return awsutil.Prettify(s)
  9443. }
  9444. // GoString returns the string representation
  9445. func (s DescribeEngineDefaultParametersInput) GoString() string {
  9446. return s.String()
  9447. }
  9448. // Validate inspects the fields of the type to determine if they are valid.
  9449. func (s *DescribeEngineDefaultParametersInput) Validate() error {
  9450. invalidParams := request.ErrInvalidParams{Context: "DescribeEngineDefaultParametersInput"}
  9451. if s.DBParameterGroupFamily == nil {
  9452. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  9453. }
  9454. if s.Filters != nil {
  9455. for i, v := range s.Filters {
  9456. if v == nil {
  9457. continue
  9458. }
  9459. if err := v.Validate(); err != nil {
  9460. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9461. }
  9462. }
  9463. }
  9464. if invalidParams.Len() > 0 {
  9465. return invalidParams
  9466. }
  9467. return nil
  9468. }
  9469. type DescribeEngineDefaultParametersOutput struct {
  9470. _ struct{} `type:"structure"`
  9471. // Contains the result of a successful invocation of the DescribeEngineDefaultParameters
  9472. // action.
  9473. EngineDefaults *EngineDefaults `type:"structure"`
  9474. }
  9475. // String returns the string representation
  9476. func (s DescribeEngineDefaultParametersOutput) String() string {
  9477. return awsutil.Prettify(s)
  9478. }
  9479. // GoString returns the string representation
  9480. func (s DescribeEngineDefaultParametersOutput) GoString() string {
  9481. return s.String()
  9482. }
  9483. type DescribeEventCategoriesInput struct {
  9484. _ struct{} `type:"structure"`
  9485. // This parameter is not currently supported.
  9486. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9487. // The type of source that will be generating the events.
  9488. //
  9489. // Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
  9490. SourceType *string `type:"string"`
  9491. }
  9492. // String returns the string representation
  9493. func (s DescribeEventCategoriesInput) String() string {
  9494. return awsutil.Prettify(s)
  9495. }
  9496. // GoString returns the string representation
  9497. func (s DescribeEventCategoriesInput) GoString() string {
  9498. return s.String()
  9499. }
  9500. // Validate inspects the fields of the type to determine if they are valid.
  9501. func (s *DescribeEventCategoriesInput) Validate() error {
  9502. invalidParams := request.ErrInvalidParams{Context: "DescribeEventCategoriesInput"}
  9503. if s.Filters != nil {
  9504. for i, v := range s.Filters {
  9505. if v == nil {
  9506. continue
  9507. }
  9508. if err := v.Validate(); err != nil {
  9509. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9510. }
  9511. }
  9512. }
  9513. if invalidParams.Len() > 0 {
  9514. return invalidParams
  9515. }
  9516. return nil
  9517. }
  9518. // Data returned from the DescribeEventCategories action.
  9519. type DescribeEventCategoriesOutput struct {
  9520. _ struct{} `type:"structure"`
  9521. // A list of EventCategoriesMap data types.
  9522. EventCategoriesMapList []*EventCategoriesMap `locationNameList:"EventCategoriesMap" type:"list"`
  9523. }
  9524. // String returns the string representation
  9525. func (s DescribeEventCategoriesOutput) String() string {
  9526. return awsutil.Prettify(s)
  9527. }
  9528. // GoString returns the string representation
  9529. func (s DescribeEventCategoriesOutput) GoString() string {
  9530. return s.String()
  9531. }
  9532. type DescribeEventSubscriptionsInput struct {
  9533. _ struct{} `type:"structure"`
  9534. // This parameter is not currently supported.
  9535. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9536. // An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions
  9537. // request. If this parameter is specified, the response includes only records
  9538. // beyond the marker, up to the value specified by MaxRecords .
  9539. Marker *string `type:"string"`
  9540. // The maximum number of records to include in the response. If more records
  9541. // exist than the specified MaxRecords value, a pagination token called a marker
  9542. // is included in the response so that the remaining results can be retrieved.
  9543. //
  9544. // Default: 100
  9545. //
  9546. // Constraints: Minimum 20, maximum 100.
  9547. MaxRecords *int64 `type:"integer"`
  9548. // The name of the RDS event notification subscription you want to describe.
  9549. SubscriptionName *string `type:"string"`
  9550. }
  9551. // String returns the string representation
  9552. func (s DescribeEventSubscriptionsInput) String() string {
  9553. return awsutil.Prettify(s)
  9554. }
  9555. // GoString returns the string representation
  9556. func (s DescribeEventSubscriptionsInput) GoString() string {
  9557. return s.String()
  9558. }
  9559. // Validate inspects the fields of the type to determine if they are valid.
  9560. func (s *DescribeEventSubscriptionsInput) Validate() error {
  9561. invalidParams := request.ErrInvalidParams{Context: "DescribeEventSubscriptionsInput"}
  9562. if s.Filters != nil {
  9563. for i, v := range s.Filters {
  9564. if v == nil {
  9565. continue
  9566. }
  9567. if err := v.Validate(); err != nil {
  9568. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9569. }
  9570. }
  9571. }
  9572. if invalidParams.Len() > 0 {
  9573. return invalidParams
  9574. }
  9575. return nil
  9576. }
  9577. // Data returned by the DescribeEventSubscriptions action.
  9578. type DescribeEventSubscriptionsOutput struct {
  9579. _ struct{} `type:"structure"`
  9580. // A list of EventSubscriptions data types.
  9581. EventSubscriptionsList []*EventSubscription `locationNameList:"EventSubscription" type:"list"`
  9582. // An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions
  9583. // request. If this parameter is specified, the response includes only records
  9584. // beyond the marker, up to the value specified by MaxRecords.
  9585. Marker *string `type:"string"`
  9586. }
  9587. // String returns the string representation
  9588. func (s DescribeEventSubscriptionsOutput) String() string {
  9589. return awsutil.Prettify(s)
  9590. }
  9591. // GoString returns the string representation
  9592. func (s DescribeEventSubscriptionsOutput) GoString() string {
  9593. return s.String()
  9594. }
  9595. type DescribeEventsInput struct {
  9596. _ struct{} `type:"structure"`
  9597. // The number of minutes to retrieve events for.
  9598. //
  9599. // Default: 60
  9600. Duration *int64 `type:"integer"`
  9601. // The end of the time interval for which to retrieve events, specified in ISO
  9602. // 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia
  9603. // page. (http://en.wikipedia.org/wiki/ISO_8601)
  9604. //
  9605. // Example: 2009-07-08T18:00Z
  9606. EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  9607. // A list of event categories that trigger notifications for a event notification
  9608. // subscription.
  9609. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  9610. // This parameter is not currently supported.
  9611. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9612. // An optional pagination token provided by a previous DescribeEvents request.
  9613. // If this parameter is specified, the response includes only records beyond
  9614. // the marker, up to the value specified by MaxRecords.
  9615. Marker *string `type:"string"`
  9616. // The maximum number of records to include in the response. If more records
  9617. // exist than the specified MaxRecords value, a pagination token called a marker
  9618. // is included in the response so that the remaining results can be retrieved.
  9619. //
  9620. // Default: 100
  9621. //
  9622. // Constraints: Minimum 20, maximum 100.
  9623. MaxRecords *int64 `type:"integer"`
  9624. // The identifier of the event source for which events will be returned. If
  9625. // not specified, then all sources are included in the response.
  9626. //
  9627. // Constraints:
  9628. //
  9629. // If SourceIdentifier is supplied, SourceType must also be provided.
  9630. //
  9631. // If the source type is DBInstance, then a DBInstanceIdentifier must be
  9632. // supplied.
  9633. //
  9634. // If the source type is DBSecurityGroup, a DBSecurityGroupName must be supplied.
  9635. //
  9636. // If the source type is DBParameterGroup, a DBParameterGroupName must be
  9637. // supplied.
  9638. //
  9639. // If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied.
  9640. //
  9641. // Cannot end with a hyphen or contain two consecutive hyphens.
  9642. SourceIdentifier *string `type:"string"`
  9643. // The event source to retrieve events for. If no value is specified, all events
  9644. // are returned.
  9645. SourceType *string `type:"string" enum:"SourceType"`
  9646. // The beginning of the time interval to retrieve events for, specified in ISO
  9647. // 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia
  9648. // page. (http://en.wikipedia.org/wiki/ISO_8601)
  9649. //
  9650. // Example: 2009-07-08T18:00Z
  9651. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  9652. }
  9653. // String returns the string representation
  9654. func (s DescribeEventsInput) String() string {
  9655. return awsutil.Prettify(s)
  9656. }
  9657. // GoString returns the string representation
  9658. func (s DescribeEventsInput) GoString() string {
  9659. return s.String()
  9660. }
  9661. // Validate inspects the fields of the type to determine if they are valid.
  9662. func (s *DescribeEventsInput) Validate() error {
  9663. invalidParams := request.ErrInvalidParams{Context: "DescribeEventsInput"}
  9664. if s.Filters != nil {
  9665. for i, v := range s.Filters {
  9666. if v == nil {
  9667. continue
  9668. }
  9669. if err := v.Validate(); err != nil {
  9670. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9671. }
  9672. }
  9673. }
  9674. if invalidParams.Len() > 0 {
  9675. return invalidParams
  9676. }
  9677. return nil
  9678. }
  9679. // Contains the result of a successful invocation of the DescribeEvents action.
  9680. type DescribeEventsOutput struct {
  9681. _ struct{} `type:"structure"`
  9682. // A list of Event instances.
  9683. Events []*Event `locationNameList:"Event" type:"list"`
  9684. // An optional pagination token provided by a previous Events request. If this
  9685. // parameter is specified, the response includes only records beyond the marker,
  9686. // up to the value specified by MaxRecords .
  9687. Marker *string `type:"string"`
  9688. }
  9689. // String returns the string representation
  9690. func (s DescribeEventsOutput) String() string {
  9691. return awsutil.Prettify(s)
  9692. }
  9693. // GoString returns the string representation
  9694. func (s DescribeEventsOutput) GoString() string {
  9695. return s.String()
  9696. }
  9697. type DescribeOptionGroupOptionsInput struct {
  9698. _ struct{} `type:"structure"`
  9699. // A required parameter. Options available for the given engine name will be
  9700. // described.
  9701. EngineName *string `type:"string" required:"true"`
  9702. // This parameter is not currently supported.
  9703. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9704. // If specified, filters the results to include only options for the specified
  9705. // major engine version.
  9706. MajorEngineVersion *string `type:"string"`
  9707. // An optional pagination token provided by a previous request. If this parameter
  9708. // is specified, the response includes only records beyond the marker, up to
  9709. // the value specified by MaxRecords.
  9710. Marker *string `type:"string"`
  9711. // The maximum number of records to include in the response. If more records
  9712. // exist than the specified MaxRecords value, a pagination token called a marker
  9713. // is included in the response so that the remaining results can be retrieved.
  9714. //
  9715. // Default: 100
  9716. //
  9717. // Constraints: Minimum 20, maximum 100.
  9718. MaxRecords *int64 `type:"integer"`
  9719. }
  9720. // String returns the string representation
  9721. func (s DescribeOptionGroupOptionsInput) String() string {
  9722. return awsutil.Prettify(s)
  9723. }
  9724. // GoString returns the string representation
  9725. func (s DescribeOptionGroupOptionsInput) GoString() string {
  9726. return s.String()
  9727. }
  9728. // Validate inspects the fields of the type to determine if they are valid.
  9729. func (s *DescribeOptionGroupOptionsInput) Validate() error {
  9730. invalidParams := request.ErrInvalidParams{Context: "DescribeOptionGroupOptionsInput"}
  9731. if s.EngineName == nil {
  9732. invalidParams.Add(request.NewErrParamRequired("EngineName"))
  9733. }
  9734. if s.Filters != nil {
  9735. for i, v := range s.Filters {
  9736. if v == nil {
  9737. continue
  9738. }
  9739. if err := v.Validate(); err != nil {
  9740. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9741. }
  9742. }
  9743. }
  9744. if invalidParams.Len() > 0 {
  9745. return invalidParams
  9746. }
  9747. return nil
  9748. }
  9749. type DescribeOptionGroupOptionsOutput struct {
  9750. _ struct{} `type:"structure"`
  9751. // An optional pagination token provided by a previous request. If this parameter
  9752. // is specified, the response includes only records beyond the marker, up to
  9753. // the value specified by MaxRecords.
  9754. Marker *string `type:"string"`
  9755. // List of available option group options.
  9756. OptionGroupOptions []*OptionGroupOption `locationNameList:"OptionGroupOption" type:"list"`
  9757. }
  9758. // String returns the string representation
  9759. func (s DescribeOptionGroupOptionsOutput) String() string {
  9760. return awsutil.Prettify(s)
  9761. }
  9762. // GoString returns the string representation
  9763. func (s DescribeOptionGroupOptionsOutput) GoString() string {
  9764. return s.String()
  9765. }
  9766. type DescribeOptionGroupsInput struct {
  9767. _ struct{} `type:"structure"`
  9768. // Filters the list of option groups to only include groups associated with
  9769. // a specific database engine.
  9770. EngineName *string `type:"string"`
  9771. // This parameter is not currently supported.
  9772. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9773. // Filters the list of option groups to only include groups associated with
  9774. // a specific database engine version. If specified, then EngineName must also
  9775. // be specified.
  9776. MajorEngineVersion *string `type:"string"`
  9777. // An optional pagination token provided by a previous DescribeOptionGroups
  9778. // request. If this parameter is specified, the response includes only records
  9779. // beyond the marker, up to the value specified by MaxRecords.
  9780. Marker *string `type:"string"`
  9781. // The maximum number of records to include in the response. If more records
  9782. // exist than the specified MaxRecords value, a pagination token called a marker
  9783. // is included in the response so that the remaining results can be retrieved.
  9784. //
  9785. // Default: 100
  9786. //
  9787. // Constraints: Minimum 20, maximum 100.
  9788. MaxRecords *int64 `type:"integer"`
  9789. // The name of the option group to describe. Cannot be supplied together with
  9790. // EngineName or MajorEngineVersion.
  9791. OptionGroupName *string `type:"string"`
  9792. }
  9793. // String returns the string representation
  9794. func (s DescribeOptionGroupsInput) String() string {
  9795. return awsutil.Prettify(s)
  9796. }
  9797. // GoString returns the string representation
  9798. func (s DescribeOptionGroupsInput) GoString() string {
  9799. return s.String()
  9800. }
  9801. // Validate inspects the fields of the type to determine if they are valid.
  9802. func (s *DescribeOptionGroupsInput) Validate() error {
  9803. invalidParams := request.ErrInvalidParams{Context: "DescribeOptionGroupsInput"}
  9804. if s.Filters != nil {
  9805. for i, v := range s.Filters {
  9806. if v == nil {
  9807. continue
  9808. }
  9809. if err := v.Validate(); err != nil {
  9810. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9811. }
  9812. }
  9813. }
  9814. if invalidParams.Len() > 0 {
  9815. return invalidParams
  9816. }
  9817. return nil
  9818. }
  9819. // List of option groups.
  9820. type DescribeOptionGroupsOutput struct {
  9821. _ struct{} `type:"structure"`
  9822. // An optional pagination token provided by a previous request. If this parameter
  9823. // is specified, the response includes only records beyond the marker, up to
  9824. // the value specified by MaxRecords.
  9825. Marker *string `type:"string"`
  9826. // List of option groups.
  9827. OptionGroupsList []*OptionGroup `locationNameList:"OptionGroup" type:"list"`
  9828. }
  9829. // String returns the string representation
  9830. func (s DescribeOptionGroupsOutput) String() string {
  9831. return awsutil.Prettify(s)
  9832. }
  9833. // GoString returns the string representation
  9834. func (s DescribeOptionGroupsOutput) GoString() string {
  9835. return s.String()
  9836. }
  9837. type DescribeOrderableDBInstanceOptionsInput struct {
  9838. _ struct{} `type:"structure"`
  9839. // The DB instance class filter value. Specify this parameter to show only the
  9840. // available offerings matching the specified DB instance class.
  9841. DBInstanceClass *string `type:"string"`
  9842. // The name of the engine to retrieve DB instance options for.
  9843. Engine *string `type:"string" required:"true"`
  9844. // The engine version filter value. Specify this parameter to show only the
  9845. // available offerings matching the specified engine version.
  9846. EngineVersion *string `type:"string"`
  9847. // This parameter is not currently supported.
  9848. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9849. // The license model filter value. Specify this parameter to show only the available
  9850. // offerings matching the specified license model.
  9851. LicenseModel *string `type:"string"`
  9852. // An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions
  9853. // request. If this parameter is specified, the response includes only records
  9854. // beyond the marker, up to the value specified by MaxRecords .
  9855. Marker *string `type:"string"`
  9856. // The maximum number of records to include in the response. If more records
  9857. // exist than the specified MaxRecords value, a pagination token called a marker
  9858. // is included in the response so that the remaining results can be retrieved.
  9859. //
  9860. // Default: 100
  9861. //
  9862. // Constraints: Minimum 20, maximum 100.
  9863. MaxRecords *int64 `type:"integer"`
  9864. // The VPC filter value. Specify this parameter to show only the available VPC
  9865. // or non-VPC offerings.
  9866. Vpc *bool `type:"boolean"`
  9867. }
  9868. // String returns the string representation
  9869. func (s DescribeOrderableDBInstanceOptionsInput) String() string {
  9870. return awsutil.Prettify(s)
  9871. }
  9872. // GoString returns the string representation
  9873. func (s DescribeOrderableDBInstanceOptionsInput) GoString() string {
  9874. return s.String()
  9875. }
  9876. // Validate inspects the fields of the type to determine if they are valid.
  9877. func (s *DescribeOrderableDBInstanceOptionsInput) Validate() error {
  9878. invalidParams := request.ErrInvalidParams{Context: "DescribeOrderableDBInstanceOptionsInput"}
  9879. if s.Engine == nil {
  9880. invalidParams.Add(request.NewErrParamRequired("Engine"))
  9881. }
  9882. if s.Filters != nil {
  9883. for i, v := range s.Filters {
  9884. if v == nil {
  9885. continue
  9886. }
  9887. if err := v.Validate(); err != nil {
  9888. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9889. }
  9890. }
  9891. }
  9892. if invalidParams.Len() > 0 {
  9893. return invalidParams
  9894. }
  9895. return nil
  9896. }
  9897. // Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions
  9898. // action.
  9899. type DescribeOrderableDBInstanceOptionsOutput struct {
  9900. _ struct{} `type:"structure"`
  9901. // An optional pagination token provided by a previous OrderableDBInstanceOptions
  9902. // request. If this parameter is specified, the response includes only records
  9903. // beyond the marker, up to the value specified by MaxRecords .
  9904. Marker *string `type:"string"`
  9905. // An OrderableDBInstanceOption structure containing information about orderable
  9906. // options for the DB instance.
  9907. OrderableDBInstanceOptions []*OrderableDBInstanceOption `locationNameList:"OrderableDBInstanceOption" type:"list"`
  9908. }
  9909. // String returns the string representation
  9910. func (s DescribeOrderableDBInstanceOptionsOutput) String() string {
  9911. return awsutil.Prettify(s)
  9912. }
  9913. // GoString returns the string representation
  9914. func (s DescribeOrderableDBInstanceOptionsOutput) GoString() string {
  9915. return s.String()
  9916. }
  9917. type DescribePendingMaintenanceActionsInput struct {
  9918. _ struct{} `type:"structure"`
  9919. // A filter that specifies one or more resources to return pending maintenance
  9920. // actions for.
  9921. //
  9922. // Supported filters:
  9923. //
  9924. // db-instance-id - Accepts DB instance identifiers and DB instance Amazon
  9925. // Resource Names (ARNs). The results list will only include pending maintenance
  9926. // actions for the DB instances identified by these ARNs.
  9927. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9928. // An optional pagination token provided by a previous DescribePendingMaintenanceActions
  9929. // request. If this parameter is specified, the response includes only records
  9930. // beyond the marker, up to a number of records specified by MaxRecords.
  9931. Marker *string `type:"string"`
  9932. // The maximum number of records to include in the response. If more records
  9933. // exist than the specified MaxRecords value, a pagination token called a marker
  9934. // is included in the response so that the remaining results can be retrieved.
  9935. //
  9936. // Default: 100
  9937. //
  9938. // Constraints: Minimum 20, maximum 100.
  9939. MaxRecords *int64 `type:"integer"`
  9940. // The ARN of a resource to return pending maintenance actions for.
  9941. ResourceIdentifier *string `type:"string"`
  9942. }
  9943. // String returns the string representation
  9944. func (s DescribePendingMaintenanceActionsInput) String() string {
  9945. return awsutil.Prettify(s)
  9946. }
  9947. // GoString returns the string representation
  9948. func (s DescribePendingMaintenanceActionsInput) GoString() string {
  9949. return s.String()
  9950. }
  9951. // Validate inspects the fields of the type to determine if they are valid.
  9952. func (s *DescribePendingMaintenanceActionsInput) Validate() error {
  9953. invalidParams := request.ErrInvalidParams{Context: "DescribePendingMaintenanceActionsInput"}
  9954. if s.Filters != nil {
  9955. for i, v := range s.Filters {
  9956. if v == nil {
  9957. continue
  9958. }
  9959. if err := v.Validate(); err != nil {
  9960. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  9961. }
  9962. }
  9963. }
  9964. if invalidParams.Len() > 0 {
  9965. return invalidParams
  9966. }
  9967. return nil
  9968. }
  9969. // Data returned from the DescribePendingMaintenanceActions action.
  9970. type DescribePendingMaintenanceActionsOutput struct {
  9971. _ struct{} `type:"structure"`
  9972. // An optional pagination token provided by a previous DescribePendingMaintenanceActions
  9973. // request. If this parameter is specified, the response includes only records
  9974. // beyond the marker, up to a number of records specified by MaxRecords.
  9975. Marker *string `type:"string"`
  9976. // A list of the pending maintenance actions for the resource.
  9977. PendingMaintenanceActions []*ResourcePendingMaintenanceActions `locationNameList:"ResourcePendingMaintenanceActions" type:"list"`
  9978. }
  9979. // String returns the string representation
  9980. func (s DescribePendingMaintenanceActionsOutput) String() string {
  9981. return awsutil.Prettify(s)
  9982. }
  9983. // GoString returns the string representation
  9984. func (s DescribePendingMaintenanceActionsOutput) GoString() string {
  9985. return s.String()
  9986. }
  9987. type DescribeReservedDBInstancesInput struct {
  9988. _ struct{} `type:"structure"`
  9989. // The DB instance class filter value. Specify this parameter to show only those
  9990. // reservations matching the specified DB instances class.
  9991. DBInstanceClass *string `type:"string"`
  9992. // The duration filter value, specified in years or seconds. Specify this parameter
  9993. // to show only reservations for this duration.
  9994. //
  9995. // Valid Values: 1 | 3 | 31536000 | 94608000
  9996. Duration *string `type:"string"`
  9997. // This parameter is not currently supported.
  9998. Filters []*Filter `locationNameList:"Filter" type:"list"`
  9999. // An optional pagination token provided by a previous request. If this parameter
  10000. // is specified, the response includes only records beyond the marker, up to
  10001. // the value specified by MaxRecords.
  10002. Marker *string `type:"string"`
  10003. // The maximum number of records to include in the response. If more than the
  10004. // MaxRecords value is available, a pagination token called a marker is included
  10005. // in the response so that the following results can be retrieved.
  10006. //
  10007. // Default: 100
  10008. //
  10009. // Constraints: Minimum 20, maximum 100.
  10010. MaxRecords *int64 `type:"integer"`
  10011. // The Multi-AZ filter value. Specify this parameter to show only those reservations
  10012. // matching the specified Multi-AZ parameter.
  10013. MultiAZ *bool `type:"boolean"`
  10014. // The offering type filter value. Specify this parameter to show only the available
  10015. // offerings matching the specified offering type.
  10016. //
  10017. // Valid Values: "Partial Upfront" | "All Upfront" | "No Upfront"
  10018. OfferingType *string `type:"string"`
  10019. // The product description filter value. Specify this parameter to show only
  10020. // those reservations matching the specified product description.
  10021. ProductDescription *string `type:"string"`
  10022. // The reserved DB instance identifier filter value. Specify this parameter
  10023. // to show only the reservation that matches the specified reservation ID.
  10024. ReservedDBInstanceId *string `type:"string"`
  10025. // The offering identifier filter value. Specify this parameter to show only
  10026. // purchased reservations matching the specified offering identifier.
  10027. ReservedDBInstancesOfferingId *string `type:"string"`
  10028. }
  10029. // String returns the string representation
  10030. func (s DescribeReservedDBInstancesInput) String() string {
  10031. return awsutil.Prettify(s)
  10032. }
  10033. // GoString returns the string representation
  10034. func (s DescribeReservedDBInstancesInput) GoString() string {
  10035. return s.String()
  10036. }
  10037. // Validate inspects the fields of the type to determine if they are valid.
  10038. func (s *DescribeReservedDBInstancesInput) Validate() error {
  10039. invalidParams := request.ErrInvalidParams{Context: "DescribeReservedDBInstancesInput"}
  10040. if s.Filters != nil {
  10041. for i, v := range s.Filters {
  10042. if v == nil {
  10043. continue
  10044. }
  10045. if err := v.Validate(); err != nil {
  10046. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  10047. }
  10048. }
  10049. }
  10050. if invalidParams.Len() > 0 {
  10051. return invalidParams
  10052. }
  10053. return nil
  10054. }
  10055. type DescribeReservedDBInstancesOfferingsInput struct {
  10056. _ struct{} `type:"structure"`
  10057. // The DB instance class filter value. Specify this parameter to show only the
  10058. // available offerings matching the specified DB instance class.
  10059. DBInstanceClass *string `type:"string"`
  10060. // Duration filter value, specified in years or seconds. Specify this parameter
  10061. // to show only reservations for this duration.
  10062. //
  10063. // Valid Values: 1 | 3 | 31536000 | 94608000
  10064. Duration *string `type:"string"`
  10065. // This parameter is not currently supported.
  10066. Filters []*Filter `locationNameList:"Filter" type:"list"`
  10067. // An optional pagination token provided by a previous request. If this parameter
  10068. // is specified, the response includes only records beyond the marker, up to
  10069. // the value specified by MaxRecords.
  10070. Marker *string `type:"string"`
  10071. // The maximum number of records to include in the response. If more than the
  10072. // MaxRecords value is available, a pagination token called a marker is included
  10073. // in the response so that the following results can be retrieved.
  10074. //
  10075. // Default: 100
  10076. //
  10077. // Constraints: Minimum 20, maximum 100.
  10078. MaxRecords *int64 `type:"integer"`
  10079. // The Multi-AZ filter value. Specify this parameter to show only the available
  10080. // offerings matching the specified Multi-AZ parameter.
  10081. MultiAZ *bool `type:"boolean"`
  10082. // The offering type filter value. Specify this parameter to show only the available
  10083. // offerings matching the specified offering type.
  10084. //
  10085. // Valid Values: "Partial Upfront" | "All Upfront" | "No Upfront"
  10086. OfferingType *string `type:"string"`
  10087. // Product description filter value. Specify this parameter to show only the
  10088. // available offerings matching the specified product description.
  10089. ProductDescription *string `type:"string"`
  10090. // The offering identifier filter value. Specify this parameter to show only
  10091. // the available offering that matches the specified reservation identifier.
  10092. //
  10093. // Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
  10094. ReservedDBInstancesOfferingId *string `type:"string"`
  10095. }
  10096. // String returns the string representation
  10097. func (s DescribeReservedDBInstancesOfferingsInput) String() string {
  10098. return awsutil.Prettify(s)
  10099. }
  10100. // GoString returns the string representation
  10101. func (s DescribeReservedDBInstancesOfferingsInput) GoString() string {
  10102. return s.String()
  10103. }
  10104. // Validate inspects the fields of the type to determine if they are valid.
  10105. func (s *DescribeReservedDBInstancesOfferingsInput) Validate() error {
  10106. invalidParams := request.ErrInvalidParams{Context: "DescribeReservedDBInstancesOfferingsInput"}
  10107. if s.Filters != nil {
  10108. for i, v := range s.Filters {
  10109. if v == nil {
  10110. continue
  10111. }
  10112. if err := v.Validate(); err != nil {
  10113. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  10114. }
  10115. }
  10116. }
  10117. if invalidParams.Len() > 0 {
  10118. return invalidParams
  10119. }
  10120. return nil
  10121. }
  10122. // Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings
  10123. // action.
  10124. type DescribeReservedDBInstancesOfferingsOutput struct {
  10125. _ struct{} `type:"structure"`
  10126. // An optional pagination token provided by a previous request. If this parameter
  10127. // is specified, the response includes only records beyond the marker, up to
  10128. // the value specified by MaxRecords.
  10129. Marker *string `type:"string"`
  10130. // A list of reserved DB instance offerings.
  10131. ReservedDBInstancesOfferings []*ReservedDBInstancesOffering `locationNameList:"ReservedDBInstancesOffering" type:"list"`
  10132. }
  10133. // String returns the string representation
  10134. func (s DescribeReservedDBInstancesOfferingsOutput) String() string {
  10135. return awsutil.Prettify(s)
  10136. }
  10137. // GoString returns the string representation
  10138. func (s DescribeReservedDBInstancesOfferingsOutput) GoString() string {
  10139. return s.String()
  10140. }
  10141. // Contains the result of a successful invocation of the DescribeReservedDBInstances
  10142. // action.
  10143. type DescribeReservedDBInstancesOutput struct {
  10144. _ struct{} `type:"structure"`
  10145. // An optional pagination token provided by a previous request. If this parameter
  10146. // is specified, the response includes only records beyond the marker, up to
  10147. // the value specified by MaxRecords.
  10148. Marker *string `type:"string"`
  10149. // A list of reserved DB instances.
  10150. ReservedDBInstances []*ReservedDBInstance `locationNameList:"ReservedDBInstance" type:"list"`
  10151. }
  10152. // String returns the string representation
  10153. func (s DescribeReservedDBInstancesOutput) String() string {
  10154. return awsutil.Prettify(s)
  10155. }
  10156. // GoString returns the string representation
  10157. func (s DescribeReservedDBInstancesOutput) GoString() string {
  10158. return s.String()
  10159. }
  10160. // An Active Directory Domain membership record associated with the DB instance.
  10161. type DomainMembership struct {
  10162. _ struct{} `type:"structure"`
  10163. // The identifier of the Active Directory Domain.
  10164. Domain *string `type:"string"`
  10165. // The fully qualified domain name of the Active Directory Domain.
  10166. FQDN *string `type:"string"`
  10167. // The name of the IAM role to be used when making API calls to the Directory
  10168. // Service.
  10169. IAMRoleName *string `type:"string"`
  10170. // The status of the DB instance's Active Directory Domain membership, such
  10171. // as joined, pending-join, failed etc).
  10172. Status *string `type:"string"`
  10173. }
  10174. // String returns the string representation
  10175. func (s DomainMembership) String() string {
  10176. return awsutil.Prettify(s)
  10177. }
  10178. // GoString returns the string representation
  10179. func (s DomainMembership) GoString() string {
  10180. return s.String()
  10181. }
  10182. type DownloadDBLogFilePortionInput struct {
  10183. _ struct{} `type:"structure"`
  10184. // The customer-assigned name of the DB instance that contains the log files
  10185. // you want to list.
  10186. //
  10187. // Constraints:
  10188. //
  10189. // Must contain from 1 to 63 alphanumeric characters or hyphens
  10190. //
  10191. // First character must be a letter
  10192. //
  10193. // Cannot end with a hyphen or contain two consecutive hyphens
  10194. DBInstanceIdentifier *string `type:"string" required:"true"`
  10195. // The name of the log file to be downloaded.
  10196. LogFileName *string `type:"string" required:"true"`
  10197. // The pagination token provided in the previous request or "0". If the Marker
  10198. // parameter is specified the response includes only records beyond the marker
  10199. // until the end of the file or up to NumberOfLines.
  10200. Marker *string `type:"string"`
  10201. // The number of lines to download. If the number of lines specified results
  10202. // in a file over 1 MB in size, the file will be truncated at 1 MB in size.
  10203. //
  10204. // If the NumberOfLines parameter is specified, then the block of lines returned
  10205. // can be from the beginning or the end of the log file, depending on the value
  10206. // of the Marker parameter.
  10207. //
  10208. // If neither Marker or NumberOfLines are specified, the entire log file
  10209. // is returned up to a maximum of 10000 lines, starting with the most recent
  10210. // log entries first.
  10211. //
  10212. // If NumberOfLines is specified and Marker is not specified, then the most
  10213. // recent lines from the end of the log file are returned.
  10214. //
  10215. // If Marker is specified as "0", then the specified number of lines from
  10216. // the beginning of the log file are returned.
  10217. //
  10218. // You can download the log file in blocks of lines by specifying the size
  10219. // of the block using the NumberOfLines parameter, and by specifying a value
  10220. // of "0" for the Marker parameter in your first request. Include the Marker
  10221. // value returned in the response as the Marker value for the next request,
  10222. // continuing until the AdditionalDataPending response element returns false.
  10223. NumberOfLines *int64 `type:"integer"`
  10224. }
  10225. // String returns the string representation
  10226. func (s DownloadDBLogFilePortionInput) String() string {
  10227. return awsutil.Prettify(s)
  10228. }
  10229. // GoString returns the string representation
  10230. func (s DownloadDBLogFilePortionInput) GoString() string {
  10231. return s.String()
  10232. }
  10233. // Validate inspects the fields of the type to determine if they are valid.
  10234. func (s *DownloadDBLogFilePortionInput) Validate() error {
  10235. invalidParams := request.ErrInvalidParams{Context: "DownloadDBLogFilePortionInput"}
  10236. if s.DBInstanceIdentifier == nil {
  10237. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  10238. }
  10239. if s.LogFileName == nil {
  10240. invalidParams.Add(request.NewErrParamRequired("LogFileName"))
  10241. }
  10242. if invalidParams.Len() > 0 {
  10243. return invalidParams
  10244. }
  10245. return nil
  10246. }
  10247. // This data type is used as a response element to DownloadDBLogFilePortion.
  10248. type DownloadDBLogFilePortionOutput struct {
  10249. _ struct{} `type:"structure"`
  10250. // Boolean value that if true, indicates there is more data to be downloaded.
  10251. AdditionalDataPending *bool `type:"boolean"`
  10252. // Entries from the specified log file.
  10253. LogFileData *string `type:"string"`
  10254. // A pagination token that can be used in a subsequent DownloadDBLogFilePortion
  10255. // request.
  10256. Marker *string `type:"string"`
  10257. }
  10258. // String returns the string representation
  10259. func (s DownloadDBLogFilePortionOutput) String() string {
  10260. return awsutil.Prettify(s)
  10261. }
  10262. // GoString returns the string representation
  10263. func (s DownloadDBLogFilePortionOutput) GoString() string {
  10264. return s.String()
  10265. }
  10266. // This data type is used as a response element in the following actions:
  10267. //
  10268. // AuthorizeDBSecurityGroupIngress
  10269. //
  10270. // DescribeDBSecurityGroups
  10271. //
  10272. // RevokeDBSecurityGroupIngress
  10273. type EC2SecurityGroup struct {
  10274. _ struct{} `type:"structure"`
  10275. // Specifies the id of the EC2 security group.
  10276. EC2SecurityGroupId *string `type:"string"`
  10277. // Specifies the name of the EC2 security group.
  10278. EC2SecurityGroupName *string `type:"string"`
  10279. // Specifies the AWS ID of the owner of the EC2 security group specified in
  10280. // the EC2SecurityGroupName field.
  10281. EC2SecurityGroupOwnerId *string `type:"string"`
  10282. // Provides the status of the EC2 security group. Status can be "authorizing",
  10283. // "authorized", "revoking", and "revoked".
  10284. Status *string `type:"string"`
  10285. }
  10286. // String returns the string representation
  10287. func (s EC2SecurityGroup) String() string {
  10288. return awsutil.Prettify(s)
  10289. }
  10290. // GoString returns the string representation
  10291. func (s EC2SecurityGroup) GoString() string {
  10292. return s.String()
  10293. }
  10294. // This data type is used as a response element in the following actions:
  10295. //
  10296. // CreateDBInstance
  10297. //
  10298. // DescribeDBInstances
  10299. //
  10300. // DeleteDBInstance
  10301. type Endpoint struct {
  10302. _ struct{} `type:"structure"`
  10303. // Specifies the DNS address of the DB instance.
  10304. Address *string `type:"string"`
  10305. // Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
  10306. HostedZoneId *string `type:"string"`
  10307. // Specifies the port that the database engine is listening on.
  10308. Port *int64 `type:"integer"`
  10309. }
  10310. // String returns the string representation
  10311. func (s Endpoint) String() string {
  10312. return awsutil.Prettify(s)
  10313. }
  10314. // GoString returns the string representation
  10315. func (s Endpoint) GoString() string {
  10316. return s.String()
  10317. }
  10318. // Contains the result of a successful invocation of the DescribeEngineDefaultParameters
  10319. // action.
  10320. type EngineDefaults struct {
  10321. _ struct{} `type:"structure"`
  10322. // Specifies the name of the DB parameter group family that the engine default
  10323. // parameters apply to.
  10324. DBParameterGroupFamily *string `type:"string"`
  10325. // An optional pagination token provided by a previous EngineDefaults request.
  10326. // If this parameter is specified, the response includes only records beyond
  10327. // the marker, up to the value specified by MaxRecords .
  10328. Marker *string `type:"string"`
  10329. // Contains a list of engine default parameters.
  10330. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  10331. }
  10332. // String returns the string representation
  10333. func (s EngineDefaults) String() string {
  10334. return awsutil.Prettify(s)
  10335. }
  10336. // GoString returns the string representation
  10337. func (s EngineDefaults) GoString() string {
  10338. return s.String()
  10339. }
  10340. // This data type is used as a response element in the DescribeEvents action.
  10341. type Event struct {
  10342. _ struct{} `type:"structure"`
  10343. // Specifies the date and time of the event.
  10344. Date *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  10345. // Specifies the category for the event.
  10346. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  10347. // Provides the text of this event.
  10348. Message *string `type:"string"`
  10349. // Provides the identifier for the source of the event.
  10350. SourceIdentifier *string `type:"string"`
  10351. // Specifies the source type for this event.
  10352. SourceType *string `type:"string" enum:"SourceType"`
  10353. }
  10354. // String returns the string representation
  10355. func (s Event) String() string {
  10356. return awsutil.Prettify(s)
  10357. }
  10358. // GoString returns the string representation
  10359. func (s Event) GoString() string {
  10360. return s.String()
  10361. }
  10362. // Contains the results of a successful invocation of the DescribeEventCategories
  10363. // action.
  10364. type EventCategoriesMap struct {
  10365. _ struct{} `type:"structure"`
  10366. // The event categories for the specified source type
  10367. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  10368. // The source type that the returned categories belong to
  10369. SourceType *string `type:"string"`
  10370. }
  10371. // String returns the string representation
  10372. func (s EventCategoriesMap) String() string {
  10373. return awsutil.Prettify(s)
  10374. }
  10375. // GoString returns the string representation
  10376. func (s EventCategoriesMap) GoString() string {
  10377. return s.String()
  10378. }
  10379. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  10380. // action.
  10381. type EventSubscription struct {
  10382. _ struct{} `type:"structure"`
  10383. // The RDS event notification subscription Id.
  10384. CustSubscriptionId *string `type:"string"`
  10385. // The AWS customer account associated with the RDS event notification subscription.
  10386. CustomerAwsId *string `type:"string"`
  10387. // A Boolean value indicating if the subscription is enabled. True indicates
  10388. // the subscription is enabled.
  10389. Enabled *bool `type:"boolean"`
  10390. // A list of event categories for the RDS event notification subscription.
  10391. EventCategoriesList []*string `locationNameList:"EventCategory" type:"list"`
  10392. // The topic ARN of the RDS event notification subscription.
  10393. SnsTopicArn *string `type:"string"`
  10394. // A list of source IDs for the RDS event notification subscription.
  10395. SourceIdsList []*string `locationNameList:"SourceId" type:"list"`
  10396. // The source type for the RDS event notification subscription.
  10397. SourceType *string `type:"string"`
  10398. // The status of the RDS event notification subscription.
  10399. //
  10400. // Constraints:
  10401. //
  10402. // Can be one of the following: creating | modifying | deleting | active |
  10403. // no-permission | topic-not-exist
  10404. //
  10405. // The status "no-permission" indicates that RDS no longer has permission to
  10406. // post to the SNS topic. The status "topic-not-exist" indicates that the topic
  10407. // was deleted after the subscription was created.
  10408. Status *string `type:"string"`
  10409. // The time the RDS event notification subscription was created.
  10410. SubscriptionCreationTime *string `type:"string"`
  10411. }
  10412. // String returns the string representation
  10413. func (s EventSubscription) String() string {
  10414. return awsutil.Prettify(s)
  10415. }
  10416. // GoString returns the string representation
  10417. func (s EventSubscription) GoString() string {
  10418. return s.String()
  10419. }
  10420. type FailoverDBClusterInput struct {
  10421. _ struct{} `type:"structure"`
  10422. // A DB cluster identifier to force a failover for. This parameter is not case-sensitive.
  10423. //
  10424. // Constraints:
  10425. //
  10426. // Must contain from 1 to 63 alphanumeric characters or hyphens
  10427. //
  10428. // First character must be a letter
  10429. //
  10430. // Cannot end with a hyphen or contain two consecutive hyphens
  10431. DBClusterIdentifier *string `type:"string"`
  10432. // The name of the instance to promote to the primary instance.
  10433. //
  10434. // You must specify the instance identifier for an Aurora Replica in the DB
  10435. // cluster. For example, mydbcluster-replica1.
  10436. TargetDBInstanceIdentifier *string `type:"string"`
  10437. }
  10438. // String returns the string representation
  10439. func (s FailoverDBClusterInput) String() string {
  10440. return awsutil.Prettify(s)
  10441. }
  10442. // GoString returns the string representation
  10443. func (s FailoverDBClusterInput) GoString() string {
  10444. return s.String()
  10445. }
  10446. type FailoverDBClusterOutput struct {
  10447. _ struct{} `type:"structure"`
  10448. // Contains the result of a successful invocation of the following actions:
  10449. //
  10450. // CreateDBCluster
  10451. //
  10452. // DeleteDBCluster
  10453. //
  10454. // FailoverDBCluster
  10455. //
  10456. // ModifyDBCluster
  10457. //
  10458. // RestoreDBClusterFromSnapshot
  10459. //
  10460. // RestoreDBClusterToPointInTime
  10461. //
  10462. // This data type is used as a response element in the DescribeDBClusters
  10463. // action.
  10464. DBCluster *DBCluster `type:"structure"`
  10465. }
  10466. // String returns the string representation
  10467. func (s FailoverDBClusterOutput) String() string {
  10468. return awsutil.Prettify(s)
  10469. }
  10470. // GoString returns the string representation
  10471. func (s FailoverDBClusterOutput) GoString() string {
  10472. return s.String()
  10473. }
  10474. // This type is not currently supported.
  10475. type Filter struct {
  10476. _ struct{} `type:"structure"`
  10477. // This parameter is not currently supported.
  10478. Name *string `type:"string" required:"true"`
  10479. // This parameter is not currently supported.
  10480. Values []*string `locationNameList:"Value" type:"list" required:"true"`
  10481. }
  10482. // String returns the string representation
  10483. func (s Filter) String() string {
  10484. return awsutil.Prettify(s)
  10485. }
  10486. // GoString returns the string representation
  10487. func (s Filter) GoString() string {
  10488. return s.String()
  10489. }
  10490. // Validate inspects the fields of the type to determine if they are valid.
  10491. func (s *Filter) Validate() error {
  10492. invalidParams := request.ErrInvalidParams{Context: "Filter"}
  10493. if s.Name == nil {
  10494. invalidParams.Add(request.NewErrParamRequired("Name"))
  10495. }
  10496. if s.Values == nil {
  10497. invalidParams.Add(request.NewErrParamRequired("Values"))
  10498. }
  10499. if invalidParams.Len() > 0 {
  10500. return invalidParams
  10501. }
  10502. return nil
  10503. }
  10504. // This data type is used as a response element in the DescribeDBSecurityGroups
  10505. // action.
  10506. type IPRange struct {
  10507. _ struct{} `type:"structure"`
  10508. // Specifies the IP range.
  10509. CIDRIP *string `type:"string"`
  10510. // Specifies the status of the IP range. Status can be "authorizing", "authorized",
  10511. // "revoking", and "revoked".
  10512. Status *string `type:"string"`
  10513. }
  10514. // String returns the string representation
  10515. func (s IPRange) String() string {
  10516. return awsutil.Prettify(s)
  10517. }
  10518. // GoString returns the string representation
  10519. func (s IPRange) GoString() string {
  10520. return s.String()
  10521. }
  10522. type ListTagsForResourceInput struct {
  10523. _ struct{} `type:"structure"`
  10524. // This parameter is not currently supported.
  10525. Filters []*Filter `locationNameList:"Filter" type:"list"`
  10526. // The Amazon RDS resource with tags to be listed. This value is an Amazon Resource
  10527. // Name (ARN). For information about creating an ARN, see Constructing an RDS
  10528. // Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN).
  10529. ResourceName *string `type:"string" required:"true"`
  10530. }
  10531. // String returns the string representation
  10532. func (s ListTagsForResourceInput) String() string {
  10533. return awsutil.Prettify(s)
  10534. }
  10535. // GoString returns the string representation
  10536. func (s ListTagsForResourceInput) GoString() string {
  10537. return s.String()
  10538. }
  10539. // Validate inspects the fields of the type to determine if they are valid.
  10540. func (s *ListTagsForResourceInput) Validate() error {
  10541. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  10542. if s.ResourceName == nil {
  10543. invalidParams.Add(request.NewErrParamRequired("ResourceName"))
  10544. }
  10545. if s.Filters != nil {
  10546. for i, v := range s.Filters {
  10547. if v == nil {
  10548. continue
  10549. }
  10550. if err := v.Validate(); err != nil {
  10551. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  10552. }
  10553. }
  10554. }
  10555. if invalidParams.Len() > 0 {
  10556. return invalidParams
  10557. }
  10558. return nil
  10559. }
  10560. type ListTagsForResourceOutput struct {
  10561. _ struct{} `type:"structure"`
  10562. // List of tags returned by the ListTagsForResource operation.
  10563. TagList []*Tag `locationNameList:"Tag" type:"list"`
  10564. }
  10565. // String returns the string representation
  10566. func (s ListTagsForResourceOutput) String() string {
  10567. return awsutil.Prettify(s)
  10568. }
  10569. // GoString returns the string representation
  10570. func (s ListTagsForResourceOutput) GoString() string {
  10571. return s.String()
  10572. }
  10573. type ModifyDBClusterInput struct {
  10574. _ struct{} `type:"structure"`
  10575. // A value that specifies whether the modifications in this request and any
  10576. // pending modifications are asynchronously applied as soon as possible, regardless
  10577. // of the PreferredMaintenanceWindow setting for the DB cluster. If this parameter
  10578. // is set to false, changes to the DB cluster are applied during the next maintenance
  10579. // window.
  10580. //
  10581. // The ApplyImmediately parameter only affects the NewDBClusterIdentifier and
  10582. // MasterUserPassword values. If you set the ApplyImmediately parameter value
  10583. // to false, then changes to the NewDBClusterIdentifier and MasterUserPassword
  10584. // values are applied during the next maintenance window. All other changes
  10585. // are applied immediately, regardless of the value of the ApplyImmediately
  10586. // parameter.
  10587. //
  10588. // Default: false
  10589. ApplyImmediately *bool `type:"boolean"`
  10590. // The number of days for which automated backups are retained. You must specify
  10591. // a minimum value of 1.
  10592. //
  10593. // Default: 1
  10594. //
  10595. // Constraints:
  10596. //
  10597. // Must be a value from 1 to 35
  10598. BackupRetentionPeriod *int64 `type:"integer"`
  10599. // The DB cluster identifier for the cluster being modified. This parameter
  10600. // is not case-sensitive.
  10601. //
  10602. // Constraints:
  10603. //
  10604. // Must be the identifier for an existing DB cluster.
  10605. //
  10606. // Must contain from 1 to 63 alphanumeric characters or hyphens.
  10607. //
  10608. // First character must be a letter.
  10609. //
  10610. // Cannot end with a hyphen or contain two consecutive hyphens.
  10611. DBClusterIdentifier *string `type:"string" required:"true"`
  10612. // The name of the DB cluster parameter group to use for the DB cluster.
  10613. DBClusterParameterGroupName *string `type:"string"`
  10614. // The new password for the master database user. This password can contain
  10615. // any printable ASCII character except "/", """, or "@".
  10616. //
  10617. // Constraints: Must contain from 8 to 41 characters.
  10618. MasterUserPassword *string `type:"string"`
  10619. // The new DB cluster identifier for the DB cluster when renaming a DB cluster.
  10620. // This value is stored as a lowercase string.
  10621. //
  10622. // Constraints:
  10623. //
  10624. // Must contain from 1 to 63 alphanumeric characters or hyphens
  10625. //
  10626. // First character must be a letter
  10627. //
  10628. // Cannot end with a hyphen or contain two consecutive hyphens
  10629. //
  10630. // Example: my-cluster2
  10631. NewDBClusterIdentifier *string `type:"string"`
  10632. // A value that indicates that the DB cluster should be associated with the
  10633. // specified option group. Changing this parameter does not result in an outage
  10634. // except in the following case, and the change is applied during the next maintenance
  10635. // window unless the ApplyImmediately parameter is set to true for this request.
  10636. // If the parameter change results in an option group that enables OEM, this
  10637. // change can cause a brief (sub-second) period during which new connections
  10638. // are rejected but existing connections are not interrupted.
  10639. //
  10640. // Permanent options cannot be removed from an option group. The option group
  10641. // cannot be removed from a DB cluster once it is associated with a DB cluster.
  10642. OptionGroupName *string `type:"string"`
  10643. // The port number on which the DB cluster accepts connections.
  10644. //
  10645. // Constraints: Value must be 1150-65535
  10646. //
  10647. // Default: The same port as the original DB cluster.
  10648. Port *int64 `type:"integer"`
  10649. // The daily time range during which automated backups are created if automated
  10650. // backups are enabled, using the BackupRetentionPeriod parameter.
  10651. //
  10652. // Default: A 30-minute window selected at random from an 8-hour block of time
  10653. // per region. To see the time blocks available, see Adjusting the Preferred
  10654. // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  10655. // in the Amazon RDS User Guide.
  10656. //
  10657. // Constraints:
  10658. //
  10659. // Must be in the format hh24:mi-hh24:mi.
  10660. //
  10661. // Times should be in Universal Coordinated Time (UTC).
  10662. //
  10663. // Must not conflict with the preferred maintenance window.
  10664. //
  10665. // Must be at least 30 minutes.
  10666. PreferredBackupWindow *string `type:"string"`
  10667. // The weekly time range during which system maintenance can occur, in Universal
  10668. // Coordinated Time (UTC).
  10669. //
  10670. // Format: ddd:hh24:mi-ddd:hh24:mi
  10671. //
  10672. // Default: A 30-minute window selected at random from an 8-hour block of time
  10673. // per region, occurring on a random day of the week. To see the time blocks
  10674. // available, see Adjusting the Preferred Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  10675. // in the Amazon RDS User Guide.
  10676. //
  10677. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  10678. //
  10679. // Constraints: Minimum 30-minute window.
  10680. PreferredMaintenanceWindow *string `type:"string"`
  10681. // A lst of VPC security groups that the DB cluster will belong to.
  10682. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  10683. }
  10684. // String returns the string representation
  10685. func (s ModifyDBClusterInput) String() string {
  10686. return awsutil.Prettify(s)
  10687. }
  10688. // GoString returns the string representation
  10689. func (s ModifyDBClusterInput) GoString() string {
  10690. return s.String()
  10691. }
  10692. // Validate inspects the fields of the type to determine if they are valid.
  10693. func (s *ModifyDBClusterInput) Validate() error {
  10694. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterInput"}
  10695. if s.DBClusterIdentifier == nil {
  10696. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  10697. }
  10698. if invalidParams.Len() > 0 {
  10699. return invalidParams
  10700. }
  10701. return nil
  10702. }
  10703. type ModifyDBClusterOutput struct {
  10704. _ struct{} `type:"structure"`
  10705. // Contains the result of a successful invocation of the following actions:
  10706. //
  10707. // CreateDBCluster
  10708. //
  10709. // DeleteDBCluster
  10710. //
  10711. // FailoverDBCluster
  10712. //
  10713. // ModifyDBCluster
  10714. //
  10715. // RestoreDBClusterFromSnapshot
  10716. //
  10717. // RestoreDBClusterToPointInTime
  10718. //
  10719. // This data type is used as a response element in the DescribeDBClusters
  10720. // action.
  10721. DBCluster *DBCluster `type:"structure"`
  10722. }
  10723. // String returns the string representation
  10724. func (s ModifyDBClusterOutput) String() string {
  10725. return awsutil.Prettify(s)
  10726. }
  10727. // GoString returns the string representation
  10728. func (s ModifyDBClusterOutput) GoString() string {
  10729. return s.String()
  10730. }
  10731. type ModifyDBClusterParameterGroupInput struct {
  10732. _ struct{} `type:"structure"`
  10733. // The name of the DB cluster parameter group to modify.
  10734. DBClusterParameterGroupName *string `type:"string" required:"true"`
  10735. // A list of parameters in the DB cluster parameter group to modify.
  10736. Parameters []*Parameter `locationNameList:"Parameter" type:"list" required:"true"`
  10737. }
  10738. // String returns the string representation
  10739. func (s ModifyDBClusterParameterGroupInput) String() string {
  10740. return awsutil.Prettify(s)
  10741. }
  10742. // GoString returns the string representation
  10743. func (s ModifyDBClusterParameterGroupInput) GoString() string {
  10744. return s.String()
  10745. }
  10746. // Validate inspects the fields of the type to determine if they are valid.
  10747. func (s *ModifyDBClusterParameterGroupInput) Validate() error {
  10748. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterParameterGroupInput"}
  10749. if s.DBClusterParameterGroupName == nil {
  10750. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  10751. }
  10752. if s.Parameters == nil {
  10753. invalidParams.Add(request.NewErrParamRequired("Parameters"))
  10754. }
  10755. if invalidParams.Len() > 0 {
  10756. return invalidParams
  10757. }
  10758. return nil
  10759. }
  10760. type ModifyDBClusterSnapshotAttributeInput struct {
  10761. _ struct{} `type:"structure"`
  10762. // The name of the DB cluster snapshot attribute to modify.
  10763. //
  10764. // To manage authorization for other AWS accounts to copy or restore a manual
  10765. // DB cluster snapshot, set this value to restore.
  10766. AttributeName *string `type:"string" required:"true"`
  10767. // The identifier for the DB cluster snapshot to modify the attributes for.
  10768. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  10769. // A list of DB cluster snapshot attributes to add to the attribute specified
  10770. // by AttributeName.
  10771. //
  10772. // To authorize other AWS accounts to copy or restore a manual DB cluster snapshot,
  10773. // set this list to include one or more AWS account IDs, or all to make the
  10774. // manual DB cluster snapshot restorable by any AWS account. Do not add the
  10775. // all value for any manual DB cluster snapshots that contain private information
  10776. // that you don't want available to all AWS accounts.
  10777. ValuesToAdd []*string `locationNameList:"AttributeValue" type:"list"`
  10778. // A list of DB cluster snapshot attributes to remove from the attribute specified
  10779. // by AttributeName.
  10780. //
  10781. // To remove authorization for other AWS accounts to copy or restore a manual
  10782. // DB cluster snapshot, set this list to include one or more AWS account identifiers,
  10783. // or all to remove authorization for any AWS account to copy or restore the
  10784. // DB cluster snapshot. If you specify all, an AWS account whose account ID
  10785. // is explicitly added to the restore attribute can still copy or restore a
  10786. // manual DB cluster snapshot.
  10787. ValuesToRemove []*string `locationNameList:"AttributeValue" type:"list"`
  10788. }
  10789. // String returns the string representation
  10790. func (s ModifyDBClusterSnapshotAttributeInput) String() string {
  10791. return awsutil.Prettify(s)
  10792. }
  10793. // GoString returns the string representation
  10794. func (s ModifyDBClusterSnapshotAttributeInput) GoString() string {
  10795. return s.String()
  10796. }
  10797. // Validate inspects the fields of the type to determine if they are valid.
  10798. func (s *ModifyDBClusterSnapshotAttributeInput) Validate() error {
  10799. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterSnapshotAttributeInput"}
  10800. if s.AttributeName == nil {
  10801. invalidParams.Add(request.NewErrParamRequired("AttributeName"))
  10802. }
  10803. if s.DBClusterSnapshotIdentifier == nil {
  10804. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  10805. }
  10806. if invalidParams.Len() > 0 {
  10807. return invalidParams
  10808. }
  10809. return nil
  10810. }
  10811. type ModifyDBClusterSnapshotAttributeOutput struct {
  10812. _ struct{} `type:"structure"`
  10813. // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes
  10814. // API action.
  10815. //
  10816. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  10817. // to copy or restore a manual DB cluster snapshot. For more information, see
  10818. // the ModifyDBClusterSnapshotAttribute API action.
  10819. DBClusterSnapshotAttributesResult *DBClusterSnapshotAttributesResult `type:"structure"`
  10820. }
  10821. // String returns the string representation
  10822. func (s ModifyDBClusterSnapshotAttributeOutput) String() string {
  10823. return awsutil.Prettify(s)
  10824. }
  10825. // GoString returns the string representation
  10826. func (s ModifyDBClusterSnapshotAttributeOutput) GoString() string {
  10827. return s.String()
  10828. }
  10829. type ModifyDBInstanceInput struct {
  10830. _ struct{} `type:"structure"`
  10831. // The new storage capacity of the RDS instance. Changing this setting does
  10832. // not result in an outage and the change is applied during the next maintenance
  10833. // window unless ApplyImmediately is set to true for this request.
  10834. //
  10835. // MySQL
  10836. //
  10837. // Default: Uses existing setting
  10838. //
  10839. // Valid Values: 5-6144
  10840. //
  10841. // Constraints: Value supplied must be at least 10% greater than the current
  10842. // value. Values that are not at least 10% greater than the existing value are
  10843. // rounded up so that they are 10% greater than the current value.
  10844. //
  10845. // Type: Integer
  10846. //
  10847. // MariaDB
  10848. //
  10849. // Default: Uses existing setting
  10850. //
  10851. // Valid Values: 5-6144
  10852. //
  10853. // Constraints: Value supplied must be at least 10% greater than the current
  10854. // value. Values that are not at least 10% greater than the existing value are
  10855. // rounded up so that they are 10% greater than the current value.
  10856. //
  10857. // Type: Integer
  10858. //
  10859. // PostgreSQL
  10860. //
  10861. // Default: Uses existing setting
  10862. //
  10863. // Valid Values: 5-6144
  10864. //
  10865. // Constraints: Value supplied must be at least 10% greater than the current
  10866. // value. Values that are not at least 10% greater than the existing value are
  10867. // rounded up so that they are 10% greater than the current value.
  10868. //
  10869. // Type: Integer
  10870. //
  10871. // Oracle
  10872. //
  10873. // Default: Uses existing setting
  10874. //
  10875. // Valid Values: 10-6144
  10876. //
  10877. // Constraints: Value supplied must be at least 10% greater than the current
  10878. // value. Values that are not at least 10% greater than the existing value are
  10879. // rounded up so that they are 10% greater than the current value.
  10880. //
  10881. // SQL Server
  10882. //
  10883. // Cannot be modified.
  10884. //
  10885. // If you choose to migrate your DB instance from using standard storage to
  10886. // using Provisioned IOPS, or from using Provisioned IOPS to using standard
  10887. // storage, the process can take time. The duration of the migration depends
  10888. // on several factors such as database load, storage size, storage type (standard
  10889. // or Provisioned IOPS), amount of IOPS provisioned (if any), and the number
  10890. // of prior scale storage operations. Typical migration times are under 24 hours,
  10891. // but the process can take up to several days in some cases. During the migration,
  10892. // the DB instance will be available for use, but might experience performance
  10893. // degradation. While the migration takes place, nightly backups for the instance
  10894. // will be suspended. No other Amazon RDS operations can take place for the
  10895. // instance, including modifying the instance, rebooting the instance, deleting
  10896. // the instance, creating a Read Replica for the instance, and creating a DB
  10897. // snapshot of the instance.
  10898. AllocatedStorage *int64 `type:"integer"`
  10899. // Indicates that major version upgrades are allowed. Changing this parameter
  10900. // does not result in an outage and the change is asynchronously applied as
  10901. // soon as possible.
  10902. //
  10903. // Constraints: This parameter must be set to true when specifying a value
  10904. // for the EngineVersion parameter that is a different major version than the
  10905. // DB instance's current version.
  10906. AllowMajorVersionUpgrade *bool `type:"boolean"`
  10907. // Specifies whether the modifications in this request and any pending modifications
  10908. // are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow
  10909. // setting for the DB instance.
  10910. //
  10911. // If this parameter is set to false, changes to the DB instance are applied
  10912. // during the next maintenance window. Some parameter changes can cause an outage
  10913. // and will be applied on the next call to RebootDBInstance, or the next failure
  10914. // reboot. Review the table of parameters in Modifying a DB Instance and Using
  10915. // the Apply Immediately Parameter (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html)
  10916. // to see the impact that setting ApplyImmediately to true or false has for
  10917. // each modified parameter and to determine when the changes will be applied.
  10918. //
  10919. // Default: false
  10920. ApplyImmediately *bool `type:"boolean"`
  10921. // Indicates that minor version upgrades will be applied automatically to the
  10922. // DB instance during the maintenance window. Changing this parameter does not
  10923. // result in an outage except in the following case and the change is asynchronously
  10924. // applied as soon as possible. An outage will result if this parameter is set
  10925. // to true during the maintenance window, and a newer minor version is available,
  10926. // and RDS has enabled auto patching for that engine version.
  10927. AutoMinorVersionUpgrade *bool `type:"boolean"`
  10928. // The number of days to retain automated backups. Setting this parameter to
  10929. // a positive number enables backups. Setting this parameter to 0 disables automated
  10930. // backups.
  10931. //
  10932. // Changing this parameter can result in an outage if you change from 0 to
  10933. // a non-zero value or from a non-zero value to 0. These changes are applied
  10934. // during the next maintenance window unless the ApplyImmediately parameter
  10935. // is set to true for this request. If you change the parameter from one non-zero
  10936. // value to another non-zero value, the change is asynchronously applied as
  10937. // soon as possible.
  10938. //
  10939. // Default: Uses existing setting
  10940. //
  10941. // Constraints:
  10942. //
  10943. // Must be a value from 0 to 35
  10944. //
  10945. // Can be specified for a MySQL Read Replica only if the source is running
  10946. // MySQL 5.6
  10947. //
  10948. // Can be specified for a PostgreSQL Read Replica only if the source is running
  10949. // PostgreSQL 9.3.5
  10950. //
  10951. // Cannot be set to 0 if the DB instance is a source to Read Replicas
  10952. BackupRetentionPeriod *int64 `type:"integer"`
  10953. // Indicates the certificate that needs to be associated with the instance.
  10954. CACertificateIdentifier *string `type:"string"`
  10955. // True to copy all tags from the DB instance to snapshots of the DB instance;
  10956. // otherwise false. The default is false.
  10957. CopyTagsToSnapshot *bool `type:"boolean"`
  10958. // The new compute and memory capacity of the DB instance. To determine the
  10959. // instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions
  10960. // action.
  10961. //
  10962. // Passing a value for this setting causes an outage during the change and
  10963. // is applied during the next maintenance window, unless ApplyImmediately is
  10964. // specified as true for this request.
  10965. //
  10966. // Default: Uses existing setting
  10967. //
  10968. // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge
  10969. // | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large
  10970. // | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge
  10971. // | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge
  10972. // | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium
  10973. // | db.t2.large
  10974. DBInstanceClass *string `type:"string"`
  10975. // The DB instance identifier. This value is stored as a lowercase string.
  10976. //
  10977. // Constraints:
  10978. //
  10979. // Must be the identifier for an existing DB instance
  10980. //
  10981. // Must contain from 1 to 63 alphanumeric characters or hyphens
  10982. //
  10983. // First character must be a letter
  10984. //
  10985. // Cannot end with a hyphen or contain two consecutive hyphens
  10986. DBInstanceIdentifier *string `type:"string" required:"true"`
  10987. // The name of the DB parameter group to apply to the DB instance. Changing
  10988. // this setting does not result in an outage. The parameter group name itself
  10989. // is changed immediately, but the actual parameter changes are not applied
  10990. // until you reboot the instance without failover. The db instance will NOT
  10991. // be rebooted automatically and the parameter changes will NOT be applied during
  10992. // the next maintenance window.
  10993. //
  10994. // Default: Uses existing setting
  10995. //
  10996. // Constraints: The DB parameter group must be in the same DB parameter group
  10997. // family as this DB instance.
  10998. DBParameterGroupName *string `type:"string"`
  10999. // The port number on which the database accepts connections.
  11000. //
  11001. // The value of the DBPortNumber parameter must not match any of the port values
  11002. // specified for options in the option group for the DB instance.
  11003. //
  11004. // Your database will restart when you change the DBPortNumber value regardless
  11005. // of the value of the ApplyImmediately parameter.
  11006. //
  11007. // MySQL
  11008. //
  11009. // Default: 3306
  11010. //
  11011. // Valid Values: 1150-65535
  11012. //
  11013. // MariaDB
  11014. //
  11015. // Default: 3306
  11016. //
  11017. // Valid Values: 1150-65535
  11018. //
  11019. // PostgreSQL
  11020. //
  11021. // Default: 5432
  11022. //
  11023. // Valid Values: 1150-65535
  11024. //
  11025. // Type: Integer
  11026. //
  11027. // Oracle
  11028. //
  11029. // Default: 1521
  11030. //
  11031. // Valid Values: 1150-65535
  11032. //
  11033. // SQL Server
  11034. //
  11035. // Default: 1433
  11036. //
  11037. // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152
  11038. // through 49156.
  11039. //
  11040. // Amazon Aurora
  11041. //
  11042. // Default: 3306
  11043. //
  11044. // Valid Values: 1150-65535
  11045. DBPortNumber *int64 `type:"integer"`
  11046. // A list of DB security groups to authorize on this DB instance. Changing this
  11047. // setting does not result in an outage and the change is asynchronously applied
  11048. // as soon as possible.
  11049. //
  11050. // Constraints:
  11051. //
  11052. // Must be 1 to 255 alphanumeric characters
  11053. //
  11054. // First character must be a letter
  11055. //
  11056. // Cannot end with a hyphen or contain two consecutive hyphens
  11057. DBSecurityGroups []*string `locationNameList:"DBSecurityGroupName" type:"list"`
  11058. // The new DB subnet group for the DB instance. You can use this parameter to
  11059. // move your DB instance to a different VPC, or to a different subnet group
  11060. // in the same VPC. If your DB instance is not in a VPC, you can also use this
  11061. // parameter to move your DB instance into a VPC. For more information, see
  11062. // Updating the VPC for a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Non-VPC2VPC).
  11063. //
  11064. // Changing the subnet group causes an outage during the change. The change
  11065. // is applied during the next maintenance window, unless you specify true for
  11066. // the ApplyImmediately parameter.
  11067. //
  11068. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  11069. // underscores, spaces, or hyphens.
  11070. //
  11071. // Example: mySubnetGroup
  11072. DBSubnetGroupName *string `type:"string"`
  11073. // Specify the Active Directory Domain to move the instance to.
  11074. //
  11075. // The specified Active Directory Domain must be created prior to this operation.
  11076. // Currently only a SQL Server instance can be created in a Active Directory
  11077. // Domain.
  11078. Domain *string `type:"string"`
  11079. // Specify the name of the IAM role to be used when making API calls to the
  11080. // Directory Service.
  11081. DomainIAMRoleName *string `type:"string"`
  11082. // The version number of the database engine to upgrade to. Changing this parameter
  11083. // results in an outage and the change is applied during the next maintenance
  11084. // window unless the ApplyImmediately parameter is set to true for this request.
  11085. //
  11086. // For major version upgrades, if a non-default DB parameter group is currently
  11087. // in use, a new DB parameter group in the DB parameter group family for the
  11088. // new engine version must be specified. The new DB parameter group can be the
  11089. // default for that DB parameter group family.
  11090. //
  11091. // For a list of valid engine versions, see CreateDBInstance.
  11092. EngineVersion *string `type:"string"`
  11093. // The new Provisioned IOPS (I/O operations per second) value for the RDS instance.
  11094. // Changing this setting does not result in an outage and the change is applied
  11095. // during the next maintenance window unless the ApplyImmediately parameter
  11096. // is set to true for this request.
  11097. //
  11098. // Default: Uses existing setting
  11099. //
  11100. // Constraints: Value supplied must be at least 10% greater than the current
  11101. // value. Values that are not at least 10% greater than the existing value are
  11102. // rounded up so that they are 10% greater than the current value. If you are
  11103. // migrating from Provisioned IOPS to standard storage, set this value to 0.
  11104. // The DB instance will require a reboot for the change in storage type to take
  11105. // effect.
  11106. //
  11107. // SQL Server
  11108. //
  11109. // Setting the IOPS value for the SQL Server database engine is not supported.
  11110. //
  11111. // Type: Integer
  11112. //
  11113. // If you choose to migrate your DB instance from using standard storage to
  11114. // using Provisioned IOPS, or from using Provisioned IOPS to using standard
  11115. // storage, the process can take time. The duration of the migration depends
  11116. // on several factors such as database load, storage size, storage type (standard
  11117. // or Provisioned IOPS), amount of IOPS provisioned (if any), and the number
  11118. // of prior scale storage operations. Typical migration times are under 24 hours,
  11119. // but the process can take up to several days in some cases. During the migration,
  11120. // the DB instance will be available for use, but might experience performance
  11121. // degradation. While the migration takes place, nightly backups for the instance
  11122. // will be suspended. No other Amazon RDS operations can take place for the
  11123. // instance, including modifying the instance, rebooting the instance, deleting
  11124. // the instance, creating a Read Replica for the instance, and creating a DB
  11125. // snapshot of the instance.
  11126. Iops *int64 `type:"integer"`
  11127. // The license model for the DB instance.
  11128. //
  11129. // Valid values: license-included | bring-your-own-license | general-public-license
  11130. LicenseModel *string `type:"string"`
  11131. // The new password for the DB instance master user. Can be any printable ASCII
  11132. // character except "/", """, or "@".
  11133. //
  11134. // Changing this parameter does not result in an outage and the change is
  11135. // asynchronously applied as soon as possible. Between the time of the request
  11136. // and the completion of the request, the MasterUserPassword element exists
  11137. // in the PendingModifiedValues element of the operation response.
  11138. //
  11139. // Default: Uses existing setting
  11140. //
  11141. // Constraints: Must be 8 to 41 alphanumeric characters (MySQL, MariaDB, and
  11142. // Amazon Aurora), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric
  11143. // characters (SQL Server).
  11144. //
  11145. // Amazon RDS API actions never return the password, so this action provides
  11146. // a way to regain access to a primary instance user if the password is lost.
  11147. // This includes restoring privileges that might have been accidentally revoked.
  11148. MasterUserPassword *string `type:"string"`
  11149. // The interval, in seconds, between points when Enhanced Monitoring metrics
  11150. // are collected for the DB instance. To disable collecting Enhanced Monitoring
  11151. // metrics, specify 0. The default is 0.
  11152. //
  11153. // If MonitoringRoleArn is specified, then you must also set MonitoringInterval
  11154. // to a value other than 0.
  11155. //
  11156. // Valid Values: 0, 1, 5, 10, 15, 30, 60
  11157. MonitoringInterval *int64 `type:"integer"`
  11158. // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics
  11159. // to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess.
  11160. // For information on creating a monitoring role, go to To create an IAM role
  11161. // for Amazon RDS Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole).
  11162. //
  11163. // If MonitoringInterval is set to a value other than 0, then you must supply
  11164. // a MonitoringRoleArn value.
  11165. MonitoringRoleArn *string `type:"string"`
  11166. // Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter
  11167. // does not result in an outage and the change is applied during the next maintenance
  11168. // window unless the ApplyImmediately parameter is set to true for this request.
  11169. //
  11170. // Constraints: Cannot be specified if the DB instance is a Read Replica.
  11171. MultiAZ *bool `type:"boolean"`
  11172. // The new DB instance identifier for the DB instance when renaming a DB instance.
  11173. // When you change the DB instance identifier, an instance reboot will occur
  11174. // immediately if you set Apply Immediately to true, or will occur during the
  11175. // next maintenance window if Apply Immediately to false. This value is stored
  11176. // as a lowercase string.
  11177. //
  11178. // Constraints:
  11179. //
  11180. // Must contain from 1 to 63 alphanumeric characters or hyphens
  11181. //
  11182. // First character must be a letter
  11183. //
  11184. // Cannot end with a hyphen or contain two consecutive hyphens
  11185. NewDBInstanceIdentifier *string `type:"string"`
  11186. // Indicates that the DB instance should be associated with the specified option
  11187. // group. Changing this parameter does not result in an outage except in the
  11188. // following case and the change is applied during the next maintenance window
  11189. // unless the ApplyImmediately parameter is set to true for this request. If
  11190. // the parameter change results in an option group that enables OEM, this change
  11191. // can cause a brief (sub-second) period during which new connections are rejected
  11192. // but existing connections are not interrupted.
  11193. //
  11194. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  11195. // cannot be removed from an option group, and that option group cannot be removed
  11196. // from a DB instance once it is associated with a DB instance
  11197. OptionGroupName *string `type:"string"`
  11198. // The daily time range during which automated backups are created if automated
  11199. // backups are enabled, as determined by the BackupRetentionPeriod parameter.
  11200. // Changing this parameter does not result in an outage and the change is asynchronously
  11201. // applied as soon as possible.
  11202. //
  11203. // Constraints:
  11204. //
  11205. // Must be in the format hh24:mi-hh24:mi
  11206. //
  11207. // Times should be in Universal Time Coordinated (UTC)
  11208. //
  11209. // Must not conflict with the preferred maintenance window
  11210. //
  11211. // Must be at least 30 minutes
  11212. PreferredBackupWindow *string `type:"string"`
  11213. // The weekly time range (in UTC) during which system maintenance can occur,
  11214. // which might result in an outage. Changing this parameter does not result
  11215. // in an outage, except in the following situation, and the change is asynchronously
  11216. // applied as soon as possible. If there are pending actions that cause a reboot,
  11217. // and the maintenance window is changed to include the current time, then changing
  11218. // this parameter will cause a reboot of the DB instance. If moving this window
  11219. // to the current time, there must be at least 30 minutes between the current
  11220. // time and end of the window to ensure pending changes are applied.
  11221. //
  11222. // Default: Uses existing setting
  11223. //
  11224. // Format: ddd:hh24:mi-ddd:hh24:mi
  11225. //
  11226. // Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
  11227. //
  11228. // Constraints: Must be at least 30 minutes
  11229. PreferredMaintenanceWindow *string `type:"string"`
  11230. // A value that specifies the order in which an Aurora Replica is promoted to
  11231. // the primary instance after a failure of the existing primary instance. For
  11232. // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance).
  11233. //
  11234. // Default: 1
  11235. //
  11236. // Valid Values: 0 - 15
  11237. PromotionTier *int64 `type:"integer"`
  11238. // Boolean value that indicates if the DB instance has a publicly resolvable
  11239. // DNS name. Set to True to make the DB instance Internet-facing with a publicly
  11240. // resolvable DNS name, which resolves to a public IP address. Set to False
  11241. // to make the DB instance internal with a DNS name that resolves to a private
  11242. // IP address.
  11243. //
  11244. // PubliclyAccessible only applies to DB instances in a VPC. The DB instance
  11245. // must be part of a public subnet and PubliclyAccessible must be true in order
  11246. // for it to be publicly accessible.
  11247. //
  11248. // Changes to the PubliclyAccessible parameter are applied immediately regardless
  11249. // of the value of the ApplyImmediately parameter.
  11250. //
  11251. // Default: false
  11252. PubliclyAccessible *bool `type:"boolean"`
  11253. // Specifies the storage type to be associated with the DB instance.
  11254. //
  11255. // Valid values: standard | gp2 | io1
  11256. //
  11257. // If you specify io1, you must also include a value for the Iops parameter.
  11258. //
  11259. // Default: io1 if the Iops parameter is specified; otherwise standard
  11260. StorageType *string `type:"string"`
  11261. // The ARN from the Key Store with which to associate the instance for TDE encryption.
  11262. TdeCredentialArn *string `type:"string"`
  11263. // The password for the given ARN from the Key Store in order to access the
  11264. // device.
  11265. TdeCredentialPassword *string `type:"string"`
  11266. // A list of EC2 VPC security groups to authorize on this DB instance. This
  11267. // change is asynchronously applied as soon as possible.
  11268. //
  11269. // Constraints:
  11270. //
  11271. // Must be 1 to 255 alphanumeric characters
  11272. //
  11273. // First character must be a letter
  11274. //
  11275. // Cannot end with a hyphen or contain two consecutive hyphens
  11276. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  11277. }
  11278. // String returns the string representation
  11279. func (s ModifyDBInstanceInput) String() string {
  11280. return awsutil.Prettify(s)
  11281. }
  11282. // GoString returns the string representation
  11283. func (s ModifyDBInstanceInput) GoString() string {
  11284. return s.String()
  11285. }
  11286. // Validate inspects the fields of the type to determine if they are valid.
  11287. func (s *ModifyDBInstanceInput) Validate() error {
  11288. invalidParams := request.ErrInvalidParams{Context: "ModifyDBInstanceInput"}
  11289. if s.DBInstanceIdentifier == nil {
  11290. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  11291. }
  11292. if invalidParams.Len() > 0 {
  11293. return invalidParams
  11294. }
  11295. return nil
  11296. }
  11297. type ModifyDBInstanceOutput struct {
  11298. _ struct{} `type:"structure"`
  11299. // Contains the result of a successful invocation of the following actions:
  11300. //
  11301. // CreateDBInstance
  11302. //
  11303. // DeleteDBInstance
  11304. //
  11305. // ModifyDBInstance
  11306. //
  11307. // This data type is used as a response element in the DescribeDBInstances
  11308. // action.
  11309. DBInstance *DBInstance `type:"structure"`
  11310. }
  11311. // String returns the string representation
  11312. func (s ModifyDBInstanceOutput) String() string {
  11313. return awsutil.Prettify(s)
  11314. }
  11315. // GoString returns the string representation
  11316. func (s ModifyDBInstanceOutput) GoString() string {
  11317. return s.String()
  11318. }
  11319. type ModifyDBParameterGroupInput struct {
  11320. _ struct{} `type:"structure"`
  11321. // The name of the DB parameter group.
  11322. //
  11323. // Constraints:
  11324. //
  11325. // Must be the name of an existing DB parameter group
  11326. //
  11327. // Must be 1 to 255 alphanumeric characters
  11328. //
  11329. // First character must be a letter
  11330. //
  11331. // Cannot end with a hyphen or contain two consecutive hyphens
  11332. DBParameterGroupName *string `type:"string" required:"true"`
  11333. // An array of parameter names, values, and the apply method for the parameter
  11334. // update. At least one parameter name, value, and apply method must be supplied;
  11335. // subsequent arguments are optional. A maximum of 20 parameters can be modified
  11336. // in a single request.
  11337. //
  11338. // Valid Values (for the application method): immediate | pending-reboot
  11339. //
  11340. // You can use the immediate value with dynamic parameters only. You can use
  11341. // the pending-reboot value for both dynamic and static parameters, and changes
  11342. // are applied when you reboot the DB instance without failover.
  11343. Parameters []*Parameter `locationNameList:"Parameter" type:"list" required:"true"`
  11344. }
  11345. // String returns the string representation
  11346. func (s ModifyDBParameterGroupInput) String() string {
  11347. return awsutil.Prettify(s)
  11348. }
  11349. // GoString returns the string representation
  11350. func (s ModifyDBParameterGroupInput) GoString() string {
  11351. return s.String()
  11352. }
  11353. // Validate inspects the fields of the type to determine if they are valid.
  11354. func (s *ModifyDBParameterGroupInput) Validate() error {
  11355. invalidParams := request.ErrInvalidParams{Context: "ModifyDBParameterGroupInput"}
  11356. if s.DBParameterGroupName == nil {
  11357. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  11358. }
  11359. if s.Parameters == nil {
  11360. invalidParams.Add(request.NewErrParamRequired("Parameters"))
  11361. }
  11362. if invalidParams.Len() > 0 {
  11363. return invalidParams
  11364. }
  11365. return nil
  11366. }
  11367. type ModifyDBSnapshotAttributeInput struct {
  11368. _ struct{} `type:"structure"`
  11369. // The name of the DB snapshot attribute to modify.
  11370. //
  11371. // To manage authorization for other AWS accounts to copy or restore a manual
  11372. // DB snapshot, set this value to restore.
  11373. AttributeName *string `type:"string" required:"true"`
  11374. // The identifier for the DB snapshot to modify the attributes for.
  11375. DBSnapshotIdentifier *string `type:"string" required:"true"`
  11376. // A list of DB snapshot attributes to add to the attribute specified by AttributeName.
  11377. //
  11378. // To authorize other AWS accounts to copy or restore a manual snapshot, set
  11379. // this list to include one or more AWS account IDs, or all to make the manual
  11380. // DB snapshot restorable by any AWS account. Do not add the all value for any
  11381. // manual DB snapshots that contain private information that you don't want
  11382. // available to all AWS accounts.
  11383. ValuesToAdd []*string `locationNameList:"AttributeValue" type:"list"`
  11384. // A list of DB snapshot attributes to remove from the attribute specified by
  11385. // AttributeName.
  11386. //
  11387. // To remove authorization for other AWS accounts to copy or restore a manual
  11388. // snapshot, set this list to include one or more AWS account identifiers, or
  11389. // all to remove authorization for any AWS account to copy or restore the DB
  11390. // snapshot. If you specify all, an AWS account whose account ID is explicitly
  11391. // added to the restore attribute can still copy or restore the manual DB snapshot.
  11392. ValuesToRemove []*string `locationNameList:"AttributeValue" type:"list"`
  11393. }
  11394. // String returns the string representation
  11395. func (s ModifyDBSnapshotAttributeInput) String() string {
  11396. return awsutil.Prettify(s)
  11397. }
  11398. // GoString returns the string representation
  11399. func (s ModifyDBSnapshotAttributeInput) GoString() string {
  11400. return s.String()
  11401. }
  11402. // Validate inspects the fields of the type to determine if they are valid.
  11403. func (s *ModifyDBSnapshotAttributeInput) Validate() error {
  11404. invalidParams := request.ErrInvalidParams{Context: "ModifyDBSnapshotAttributeInput"}
  11405. if s.AttributeName == nil {
  11406. invalidParams.Add(request.NewErrParamRequired("AttributeName"))
  11407. }
  11408. if s.DBSnapshotIdentifier == nil {
  11409. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  11410. }
  11411. if invalidParams.Len() > 0 {
  11412. return invalidParams
  11413. }
  11414. return nil
  11415. }
  11416. type ModifyDBSnapshotAttributeOutput struct {
  11417. _ struct{} `type:"structure"`
  11418. // Contains the results of a successful call to the DescribeDBSnapshotAttributes
  11419. // API action.
  11420. //
  11421. // Manual DB snapshot attributes are used to authorize other AWS accounts to
  11422. // copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
  11423. // API action.
  11424. DBSnapshotAttributesResult *DBSnapshotAttributesResult `type:"structure"`
  11425. }
  11426. // String returns the string representation
  11427. func (s ModifyDBSnapshotAttributeOutput) String() string {
  11428. return awsutil.Prettify(s)
  11429. }
  11430. // GoString returns the string representation
  11431. func (s ModifyDBSnapshotAttributeOutput) GoString() string {
  11432. return s.String()
  11433. }
  11434. type ModifyDBSubnetGroupInput struct {
  11435. _ struct{} `type:"structure"`
  11436. // The description for the DB subnet group.
  11437. DBSubnetGroupDescription *string `type:"string"`
  11438. // The name for the DB subnet group. This value is stored as a lowercase string.
  11439. //
  11440. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  11441. // underscores, spaces, or hyphens. Must not be default.
  11442. //
  11443. // Example: mySubnetgroup
  11444. DBSubnetGroupName *string `type:"string" required:"true"`
  11445. // The EC2 subnet IDs for the DB subnet group.
  11446. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
  11447. }
  11448. // String returns the string representation
  11449. func (s ModifyDBSubnetGroupInput) String() string {
  11450. return awsutil.Prettify(s)
  11451. }
  11452. // GoString returns the string representation
  11453. func (s ModifyDBSubnetGroupInput) GoString() string {
  11454. return s.String()
  11455. }
  11456. // Validate inspects the fields of the type to determine if they are valid.
  11457. func (s *ModifyDBSubnetGroupInput) Validate() error {
  11458. invalidParams := request.ErrInvalidParams{Context: "ModifyDBSubnetGroupInput"}
  11459. if s.DBSubnetGroupName == nil {
  11460. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName"))
  11461. }
  11462. if s.SubnetIds == nil {
  11463. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  11464. }
  11465. if invalidParams.Len() > 0 {
  11466. return invalidParams
  11467. }
  11468. return nil
  11469. }
  11470. type ModifyDBSubnetGroupOutput struct {
  11471. _ struct{} `type:"structure"`
  11472. // Contains the result of a successful invocation of the following actions:
  11473. //
  11474. // CreateDBSubnetGroup
  11475. //
  11476. // ModifyDBSubnetGroup
  11477. //
  11478. // DescribeDBSubnetGroups
  11479. //
  11480. // DeleteDBSubnetGroup
  11481. //
  11482. // This data type is used as a response element in the DescribeDBSubnetGroups
  11483. // action.
  11484. DBSubnetGroup *DBSubnetGroup `type:"structure"`
  11485. }
  11486. // String returns the string representation
  11487. func (s ModifyDBSubnetGroupOutput) String() string {
  11488. return awsutil.Prettify(s)
  11489. }
  11490. // GoString returns the string representation
  11491. func (s ModifyDBSubnetGroupOutput) GoString() string {
  11492. return s.String()
  11493. }
  11494. type ModifyEventSubscriptionInput struct {
  11495. _ struct{} `type:"structure"`
  11496. // A Boolean value; set to true to activate the subscription.
  11497. Enabled *bool `type:"boolean"`
  11498. // A list of event categories for a SourceType that you want to subscribe to.
  11499. // You can see a list of the categories for a given SourceType in the Events
  11500. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html)
  11501. // topic in the Amazon RDS User Guide or by using the DescribeEventCategories
  11502. // action.
  11503. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  11504. // The Amazon Resource Name (ARN) of the SNS topic created for event notification.
  11505. // The ARN is created by Amazon SNS when you create a topic and subscribe to
  11506. // it.
  11507. SnsTopicArn *string `type:"string"`
  11508. // The type of source that will be generating the events. For example, if you
  11509. // want to be notified of events generated by a DB instance, you would set this
  11510. // parameter to db-instance. if this value is not specified, all events are
  11511. // returned.
  11512. //
  11513. // Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
  11514. SourceType *string `type:"string"`
  11515. // The name of the RDS event notification subscription.
  11516. SubscriptionName *string `type:"string" required:"true"`
  11517. }
  11518. // String returns the string representation
  11519. func (s ModifyEventSubscriptionInput) String() string {
  11520. return awsutil.Prettify(s)
  11521. }
  11522. // GoString returns the string representation
  11523. func (s ModifyEventSubscriptionInput) GoString() string {
  11524. return s.String()
  11525. }
  11526. // Validate inspects the fields of the type to determine if they are valid.
  11527. func (s *ModifyEventSubscriptionInput) Validate() error {
  11528. invalidParams := request.ErrInvalidParams{Context: "ModifyEventSubscriptionInput"}
  11529. if s.SubscriptionName == nil {
  11530. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  11531. }
  11532. if invalidParams.Len() > 0 {
  11533. return invalidParams
  11534. }
  11535. return nil
  11536. }
  11537. type ModifyEventSubscriptionOutput struct {
  11538. _ struct{} `type:"structure"`
  11539. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  11540. // action.
  11541. EventSubscription *EventSubscription `type:"structure"`
  11542. }
  11543. // String returns the string representation
  11544. func (s ModifyEventSubscriptionOutput) String() string {
  11545. return awsutil.Prettify(s)
  11546. }
  11547. // GoString returns the string representation
  11548. func (s ModifyEventSubscriptionOutput) GoString() string {
  11549. return s.String()
  11550. }
  11551. type ModifyOptionGroupInput struct {
  11552. _ struct{} `type:"structure"`
  11553. // Indicates whether the changes should be applied immediately, or during the
  11554. // next maintenance window for each instance associated with the option group.
  11555. ApplyImmediately *bool `type:"boolean"`
  11556. // The name of the option group to be modified.
  11557. //
  11558. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  11559. // cannot be removed from an option group, and that option group cannot be removed
  11560. // from a DB instance once it is associated with a DB instance
  11561. OptionGroupName *string `type:"string" required:"true"`
  11562. // Options in this list are added to the option group or, if already present,
  11563. // the specified configuration is used to update the existing configuration.
  11564. OptionsToInclude []*OptionConfiguration `locationNameList:"OptionConfiguration" type:"list"`
  11565. // Options in this list are removed from the option group.
  11566. OptionsToRemove []*string `type:"list"`
  11567. }
  11568. // String returns the string representation
  11569. func (s ModifyOptionGroupInput) String() string {
  11570. return awsutil.Prettify(s)
  11571. }
  11572. // GoString returns the string representation
  11573. func (s ModifyOptionGroupInput) GoString() string {
  11574. return s.String()
  11575. }
  11576. // Validate inspects the fields of the type to determine if they are valid.
  11577. func (s *ModifyOptionGroupInput) Validate() error {
  11578. invalidParams := request.ErrInvalidParams{Context: "ModifyOptionGroupInput"}
  11579. if s.OptionGroupName == nil {
  11580. invalidParams.Add(request.NewErrParamRequired("OptionGroupName"))
  11581. }
  11582. if s.OptionsToInclude != nil {
  11583. for i, v := range s.OptionsToInclude {
  11584. if v == nil {
  11585. continue
  11586. }
  11587. if err := v.Validate(); err != nil {
  11588. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionsToInclude", i), err.(request.ErrInvalidParams))
  11589. }
  11590. }
  11591. }
  11592. if invalidParams.Len() > 0 {
  11593. return invalidParams
  11594. }
  11595. return nil
  11596. }
  11597. type ModifyOptionGroupOutput struct {
  11598. _ struct{} `type:"structure"`
  11599. OptionGroup *OptionGroup `type:"structure"`
  11600. }
  11601. // String returns the string representation
  11602. func (s ModifyOptionGroupOutput) String() string {
  11603. return awsutil.Prettify(s)
  11604. }
  11605. // GoString returns the string representation
  11606. func (s ModifyOptionGroupOutput) GoString() string {
  11607. return s.String()
  11608. }
  11609. // Option details.
  11610. type Option struct {
  11611. _ struct{} `type:"structure"`
  11612. // If the option requires access to a port, then this DB security group allows
  11613. // access to the port.
  11614. DBSecurityGroupMemberships []*DBSecurityGroupMembership `locationNameList:"DBSecurityGroup" type:"list"`
  11615. // The description of the option.
  11616. OptionDescription *string `type:"string"`
  11617. // The name of the option.
  11618. OptionName *string `type:"string"`
  11619. // The option settings for this option.
  11620. OptionSettings []*OptionSetting `locationNameList:"OptionSetting" type:"list"`
  11621. // The version of the option.
  11622. OptionVersion *string `type:"string"`
  11623. // Indicate if this option is permanent.
  11624. Permanent *bool `type:"boolean"`
  11625. // Indicate if this option is persistent.
  11626. Persistent *bool `type:"boolean"`
  11627. // If required, the port configured for this option to use.
  11628. Port *int64 `type:"integer"`
  11629. // If the option requires access to a port, then this VPC security group allows
  11630. // access to the port.
  11631. VpcSecurityGroupMemberships []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"`
  11632. }
  11633. // String returns the string representation
  11634. func (s Option) String() string {
  11635. return awsutil.Prettify(s)
  11636. }
  11637. // GoString returns the string representation
  11638. func (s Option) GoString() string {
  11639. return s.String()
  11640. }
  11641. // A list of all available options
  11642. type OptionConfiguration struct {
  11643. _ struct{} `type:"structure"`
  11644. // A list of DBSecurityGroupMemebrship name strings used for this option.
  11645. DBSecurityGroupMemberships []*string `locationNameList:"DBSecurityGroupName" type:"list"`
  11646. // The configuration of options to include in a group.
  11647. OptionName *string `type:"string" required:"true"`
  11648. // The option settings to include in an option group.
  11649. OptionSettings []*OptionSetting `locationNameList:"OptionSetting" type:"list"`
  11650. // The version for the option.
  11651. OptionVersion *string `type:"string"`
  11652. // The optional port for the option.
  11653. Port *int64 `type:"integer"`
  11654. // A list of VpcSecurityGroupMemebrship name strings used for this option.
  11655. VpcSecurityGroupMemberships []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  11656. }
  11657. // String returns the string representation
  11658. func (s OptionConfiguration) String() string {
  11659. return awsutil.Prettify(s)
  11660. }
  11661. // GoString returns the string representation
  11662. func (s OptionConfiguration) GoString() string {
  11663. return s.String()
  11664. }
  11665. // Validate inspects the fields of the type to determine if they are valid.
  11666. func (s *OptionConfiguration) Validate() error {
  11667. invalidParams := request.ErrInvalidParams{Context: "OptionConfiguration"}
  11668. if s.OptionName == nil {
  11669. invalidParams.Add(request.NewErrParamRequired("OptionName"))
  11670. }
  11671. if invalidParams.Len() > 0 {
  11672. return invalidParams
  11673. }
  11674. return nil
  11675. }
  11676. type OptionGroup struct {
  11677. _ struct{} `type:"structure"`
  11678. // Indicates whether this option group can be applied to both VPC and non-VPC
  11679. // instances. The value true indicates the option group can be applied to both
  11680. // VPC and non-VPC instances.
  11681. AllowsVpcAndNonVpcInstanceMemberships *bool `type:"boolean"`
  11682. // Indicates the name of the engine that this option group can be applied to.
  11683. EngineName *string `type:"string"`
  11684. // Indicates the major engine version associated with this option group.
  11685. MajorEngineVersion *string `type:"string"`
  11686. // Provides a description of the option group.
  11687. OptionGroupDescription *string `type:"string"`
  11688. // Specifies the name of the option group.
  11689. OptionGroupName *string `type:"string"`
  11690. // Indicates what options are available in the option group.
  11691. Options []*Option `locationNameList:"Option" type:"list"`
  11692. // If AllowsVpcAndNonVpcInstanceMemberships is false, this field is blank. If
  11693. // AllowsVpcAndNonVpcInstanceMemberships is true and this field is blank, then
  11694. // this option group can be applied to both VPC and non-VPC instances. If this
  11695. // field contains a value, then this option group can only be applied to instances
  11696. // that are in the VPC indicated by this field.
  11697. VpcId *string `type:"string"`
  11698. }
  11699. // String returns the string representation
  11700. func (s OptionGroup) String() string {
  11701. return awsutil.Prettify(s)
  11702. }
  11703. // GoString returns the string representation
  11704. func (s OptionGroup) GoString() string {
  11705. return s.String()
  11706. }
  11707. // Provides information on the option groups the DB instance is a member of.
  11708. type OptionGroupMembership struct {
  11709. _ struct{} `type:"structure"`
  11710. // The name of the option group that the instance belongs to.
  11711. OptionGroupName *string `type:"string"`
  11712. // The status of the DB instance's option group membership. Valid values are:
  11713. // in-sync, pending-apply, pending-removal, pending-maintenance-apply, pending-maintenance-removal,
  11714. // applying, removing, and failed.
  11715. Status *string `type:"string"`
  11716. }
  11717. // String returns the string representation
  11718. func (s OptionGroupMembership) String() string {
  11719. return awsutil.Prettify(s)
  11720. }
  11721. // GoString returns the string representation
  11722. func (s OptionGroupMembership) GoString() string {
  11723. return s.String()
  11724. }
  11725. // Available option.
  11726. type OptionGroupOption struct {
  11727. _ struct{} `type:"structure"`
  11728. // If the option requires a port, specifies the default port for the option.
  11729. DefaultPort *int64 `type:"integer"`
  11730. // The description of the option.
  11731. Description *string `type:"string"`
  11732. // The name of the engine that this option can be applied to.
  11733. EngineName *string `type:"string"`
  11734. // Indicates the major engine version that the option is available for.
  11735. MajorEngineVersion *string `type:"string"`
  11736. // The minimum required engine version for the option to be applied.
  11737. MinimumRequiredMinorEngineVersion *string `type:"string"`
  11738. // The name of the option.
  11739. Name *string `type:"string"`
  11740. // Specifies the option settings that are available (and the default value)
  11741. // for each option in an option group.
  11742. OptionGroupOptionSettings []*OptionGroupOptionSetting `locationNameList:"OptionGroupOptionSetting" type:"list"`
  11743. // Specifies the versions that are available for the option.
  11744. OptionGroupOptionVersions []*OptionVersion `locationNameList:"OptionVersion" type:"list"`
  11745. // List of all options that are prerequisites for this option.
  11746. OptionsDependedOn []*string `locationNameList:"OptionName" type:"list"`
  11747. // A permanent option cannot be removed from the option group once the option
  11748. // group is used, and it cannot be removed from the db instance after assigning
  11749. // an option group with this permanent option.
  11750. Permanent *bool `type:"boolean"`
  11751. // A persistent option cannot be removed from the option group once the option
  11752. // group is used, but this option can be removed from the db instance while
  11753. // modifying the related data and assigning another option group without this
  11754. // option.
  11755. Persistent *bool `type:"boolean"`
  11756. // Specifies whether the option requires a port.
  11757. PortRequired *bool `type:"boolean"`
  11758. }
  11759. // String returns the string representation
  11760. func (s OptionGroupOption) String() string {
  11761. return awsutil.Prettify(s)
  11762. }
  11763. // GoString returns the string representation
  11764. func (s OptionGroupOption) GoString() string {
  11765. return s.String()
  11766. }
  11767. // Option group option settings are used to display settings available for each
  11768. // option with their default values and other information. These values are
  11769. // used with the DescribeOptionGroupOptions action.
  11770. type OptionGroupOptionSetting struct {
  11771. _ struct{} `type:"structure"`
  11772. // Indicates the acceptable values for the option group option.
  11773. AllowedValues *string `type:"string"`
  11774. // The DB engine specific parameter type for the option group option.
  11775. ApplyType *string `type:"string"`
  11776. // The default value for the option group option.
  11777. DefaultValue *string `type:"string"`
  11778. // Boolean value where true indicates that this option group option can be changed
  11779. // from the default value.
  11780. IsModifiable *bool `type:"boolean"`
  11781. // The description of the option group option.
  11782. SettingDescription *string `type:"string"`
  11783. // The name of the option group option.
  11784. SettingName *string `type:"string"`
  11785. }
  11786. // String returns the string representation
  11787. func (s OptionGroupOptionSetting) String() string {
  11788. return awsutil.Prettify(s)
  11789. }
  11790. // GoString returns the string representation
  11791. func (s OptionGroupOptionSetting) GoString() string {
  11792. return s.String()
  11793. }
  11794. // Option settings are the actual settings being applied or configured for that
  11795. // option. It is used when you modify an option group or describe option groups.
  11796. // For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER
  11797. // that can have several different values.
  11798. type OptionSetting struct {
  11799. _ struct{} `type:"structure"`
  11800. // The allowed values of the option setting.
  11801. AllowedValues *string `type:"string"`
  11802. // The DB engine specific parameter type.
  11803. ApplyType *string `type:"string"`
  11804. // The data type of the option setting.
  11805. DataType *string `type:"string"`
  11806. // The default value of the option setting.
  11807. DefaultValue *string `type:"string"`
  11808. // The description of the option setting.
  11809. Description *string `type:"string"`
  11810. // Indicates if the option setting is part of a collection.
  11811. IsCollection *bool `type:"boolean"`
  11812. // A Boolean value that, when true, indicates the option setting can be modified
  11813. // from the default.
  11814. IsModifiable *bool `type:"boolean"`
  11815. // The name of the option that has settings that you can set.
  11816. Name *string `type:"string"`
  11817. // The current value of the option setting.
  11818. Value *string `type:"string"`
  11819. }
  11820. // String returns the string representation
  11821. func (s OptionSetting) String() string {
  11822. return awsutil.Prettify(s)
  11823. }
  11824. // GoString returns the string representation
  11825. func (s OptionSetting) GoString() string {
  11826. return s.String()
  11827. }
  11828. // The version for an option. Option group option versions are returned by the
  11829. // DescribeOptionGroupOptions action.
  11830. type OptionVersion struct {
  11831. _ struct{} `type:"structure"`
  11832. // True if the version is the default version of the option; otherwise, false.
  11833. IsDefault *bool `type:"boolean"`
  11834. // The version of the option.
  11835. Version *string `type:"string"`
  11836. }
  11837. // String returns the string representation
  11838. func (s OptionVersion) String() string {
  11839. return awsutil.Prettify(s)
  11840. }
  11841. // GoString returns the string representation
  11842. func (s OptionVersion) GoString() string {
  11843. return s.String()
  11844. }
  11845. // Contains a list of available options for a DB instance
  11846. //
  11847. // This data type is used as a response element in the DescribeOrderableDBInstanceOptions
  11848. // action.
  11849. type OrderableDBInstanceOption struct {
  11850. _ struct{} `type:"structure"`
  11851. // A list of Availability Zones for the orderable DB instance.
  11852. AvailabilityZones []*AvailabilityZone `locationNameList:"AvailabilityZone" type:"list"`
  11853. // The DB instance class for the orderable DB instance.
  11854. DBInstanceClass *string `type:"string"`
  11855. // The engine type of the orderable DB instance.
  11856. Engine *string `type:"string"`
  11857. // The engine version of the orderable DB instance.
  11858. EngineVersion *string `type:"string"`
  11859. // The license model for the orderable DB instance.
  11860. LicenseModel *string `type:"string"`
  11861. // Indicates whether this orderable DB instance is multi-AZ capable.
  11862. MultiAZCapable *bool `type:"boolean"`
  11863. // Indicates whether this orderable DB instance can have a Read Replica.
  11864. ReadReplicaCapable *bool `type:"boolean"`
  11865. // Indicates the storage type for this orderable DB instance.
  11866. StorageType *string `type:"string"`
  11867. // Indicates whether the DB instance supports enhanced monitoring at intervals
  11868. // from 1 to 60 seconds.
  11869. SupportsEnhancedMonitoring *bool `type:"boolean"`
  11870. // Indicates whether this orderable DB instance supports provisioned IOPS.
  11871. SupportsIops *bool `type:"boolean"`
  11872. // Indicates whether this orderable DB instance supports encrypted storage.
  11873. SupportsStorageEncryption *bool `type:"boolean"`
  11874. // Indicates whether this is a VPC orderable DB instance.
  11875. Vpc *bool `type:"boolean"`
  11876. }
  11877. // String returns the string representation
  11878. func (s OrderableDBInstanceOption) String() string {
  11879. return awsutil.Prettify(s)
  11880. }
  11881. // GoString returns the string representation
  11882. func (s OrderableDBInstanceOption) GoString() string {
  11883. return s.String()
  11884. }
  11885. // This data type is used as a request parameter in the ModifyDBParameterGroup
  11886. // and ResetDBParameterGroup actions.
  11887. //
  11888. // This data type is used as a response element in the DescribeEngineDefaultParameters
  11889. // and DescribeDBParameters actions.
  11890. type Parameter struct {
  11891. _ struct{} `type:"structure"`
  11892. // Specifies the valid range of values for the parameter.
  11893. AllowedValues *string `type:"string"`
  11894. // Indicates when to apply parameter updates.
  11895. ApplyMethod *string `type:"string" enum:"ApplyMethod"`
  11896. // Specifies the engine specific parameters type.
  11897. ApplyType *string `type:"string"`
  11898. // Specifies the valid data type for the parameter.
  11899. DataType *string `type:"string"`
  11900. // Provides a description of the parameter.
  11901. Description *string `type:"string"`
  11902. // Indicates whether (true) or not (false) the parameter can be modified. Some
  11903. // parameters have security or operational implications that prevent them from
  11904. // being changed.
  11905. IsModifiable *bool `type:"boolean"`
  11906. // The earliest engine version to which the parameter can apply.
  11907. MinimumEngineVersion *string `type:"string"`
  11908. // Specifies the name of the parameter.
  11909. ParameterName *string `type:"string"`
  11910. // Specifies the value of the parameter.
  11911. ParameterValue *string `type:"string"`
  11912. // Indicates the source of the parameter value.
  11913. Source *string `type:"string"`
  11914. }
  11915. // String returns the string representation
  11916. func (s Parameter) String() string {
  11917. return awsutil.Prettify(s)
  11918. }
  11919. // GoString returns the string representation
  11920. func (s Parameter) GoString() string {
  11921. return s.String()
  11922. }
  11923. // Provides information about a pending maintenance action for a resource.
  11924. type PendingMaintenanceAction struct {
  11925. _ struct{} `type:"structure"`
  11926. // The type of pending maintenance action that is available for the resource.
  11927. Action *string `type:"string"`
  11928. // The date of the maintenance window when the action will be applied. The maintenance
  11929. // action will be applied to the resource during its first maintenance window
  11930. // after this date. If this date is specified, any next-maintenance opt-in requests
  11931. // are ignored.
  11932. AutoAppliedAfterDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  11933. // The effective date when the pending maintenance action will be applied to
  11934. // the resource. This date takes into account opt-in requests received from
  11935. // the ApplyPendingMaintenanceAction API, the AutoAppliedAfterDate, and the
  11936. // ForcedApplyDate. This value is blank if an opt-in request has not been received
  11937. // and nothing has been specified as AutoAppliedAfterDate or ForcedApplyDate.
  11938. CurrentApplyDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  11939. // A description providing more detail about the maintenance action.
  11940. Description *string `type:"string"`
  11941. // The date when the maintenance action will be automatically applied. The maintenance
  11942. // action will be applied to the resource on this date regardless of the maintenance
  11943. // window for the resource. If this date is specified, any immediate opt-in
  11944. // requests are ignored.
  11945. ForcedApplyDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  11946. // Indicates the type of opt-in request that has been received for the resource.
  11947. OptInStatus *string `type:"string"`
  11948. }
  11949. // String returns the string representation
  11950. func (s PendingMaintenanceAction) String() string {
  11951. return awsutil.Prettify(s)
  11952. }
  11953. // GoString returns the string representation
  11954. func (s PendingMaintenanceAction) GoString() string {
  11955. return s.String()
  11956. }
  11957. // This data type is used as a response element in the ModifyDBInstance action.
  11958. type PendingModifiedValues struct {
  11959. _ struct{} `type:"structure"`
  11960. // Contains the new AllocatedStorage size for the DB instance that will be applied
  11961. // or is in progress.
  11962. AllocatedStorage *int64 `type:"integer"`
  11963. // Specifies the pending number of days for which automated backups are retained.
  11964. BackupRetentionPeriod *int64 `type:"integer"`
  11965. // Specifies the identifier of the CA certificate for the DB instance.
  11966. CACertificateIdentifier *string `type:"string"`
  11967. // Contains the new DBInstanceClass for the DB instance that will be applied
  11968. // or is in progress.
  11969. DBInstanceClass *string `type:"string"`
  11970. // Contains the new DBInstanceIdentifier for the DB instance that will be applied
  11971. // or is in progress.
  11972. DBInstanceIdentifier *string `type:"string"`
  11973. // The new DB subnet group for the DB instance.
  11974. DBSubnetGroupName *string `type:"string"`
  11975. // Indicates the database engine version.
  11976. EngineVersion *string `type:"string"`
  11977. // Specifies the new Provisioned IOPS value for the DB instance that will be
  11978. // applied or is being applied.
  11979. Iops *int64 `type:"integer"`
  11980. // The license model for the DB instance.
  11981. //
  11982. // Valid values: license-included | bring-your-own-license | general-public-license
  11983. LicenseModel *string `type:"string"`
  11984. // Contains the pending or in-progress change of the master credentials for
  11985. // the DB instance.
  11986. MasterUserPassword *string `type:"string"`
  11987. // Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.
  11988. MultiAZ *bool `type:"boolean"`
  11989. // Specifies the pending port for the DB instance.
  11990. Port *int64 `type:"integer"`
  11991. // Specifies the storage type to be associated with the DB instance.
  11992. StorageType *string `type:"string"`
  11993. }
  11994. // String returns the string representation
  11995. func (s PendingModifiedValues) String() string {
  11996. return awsutil.Prettify(s)
  11997. }
  11998. // GoString returns the string representation
  11999. func (s PendingModifiedValues) GoString() string {
  12000. return s.String()
  12001. }
  12002. type PromoteReadReplicaDBClusterInput struct {
  12003. _ struct{} `type:"structure"`
  12004. // The identifier of the DB cluster Read Replica to promote. This parameter
  12005. // is not case-sensitive.
  12006. //
  12007. // Constraints:
  12008. //
  12009. // Must contain from 1 to 63 alphanumeric characters or hyphens.
  12010. //
  12011. // First character must be a letter.
  12012. //
  12013. // Cannot end with a hyphen or contain two consecutive hyphens.
  12014. //
  12015. // Example: my-cluster-replica1
  12016. DBClusterIdentifier *string `type:"string" required:"true"`
  12017. }
  12018. // String returns the string representation
  12019. func (s PromoteReadReplicaDBClusterInput) String() string {
  12020. return awsutil.Prettify(s)
  12021. }
  12022. // GoString returns the string representation
  12023. func (s PromoteReadReplicaDBClusterInput) GoString() string {
  12024. return s.String()
  12025. }
  12026. // Validate inspects the fields of the type to determine if they are valid.
  12027. func (s *PromoteReadReplicaDBClusterInput) Validate() error {
  12028. invalidParams := request.ErrInvalidParams{Context: "PromoteReadReplicaDBClusterInput"}
  12029. if s.DBClusterIdentifier == nil {
  12030. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  12031. }
  12032. if invalidParams.Len() > 0 {
  12033. return invalidParams
  12034. }
  12035. return nil
  12036. }
  12037. type PromoteReadReplicaDBClusterOutput struct {
  12038. _ struct{} `type:"structure"`
  12039. // Contains the result of a successful invocation of the following actions:
  12040. //
  12041. // CreateDBCluster
  12042. //
  12043. // DeleteDBCluster
  12044. //
  12045. // FailoverDBCluster
  12046. //
  12047. // ModifyDBCluster
  12048. //
  12049. // RestoreDBClusterFromSnapshot
  12050. //
  12051. // RestoreDBClusterToPointInTime
  12052. //
  12053. // This data type is used as a response element in the DescribeDBClusters
  12054. // action.
  12055. DBCluster *DBCluster `type:"structure"`
  12056. }
  12057. // String returns the string representation
  12058. func (s PromoteReadReplicaDBClusterOutput) String() string {
  12059. return awsutil.Prettify(s)
  12060. }
  12061. // GoString returns the string representation
  12062. func (s PromoteReadReplicaDBClusterOutput) GoString() string {
  12063. return s.String()
  12064. }
  12065. type PromoteReadReplicaInput struct {
  12066. _ struct{} `type:"structure"`
  12067. // The number of days to retain automated backups. Setting this parameter to
  12068. // a positive number enables backups. Setting this parameter to 0 disables automated
  12069. // backups.
  12070. //
  12071. // Default: 1
  12072. //
  12073. // Constraints:
  12074. //
  12075. // Must be a value from 0 to 8
  12076. BackupRetentionPeriod *int64 `type:"integer"`
  12077. // The DB instance identifier. This value is stored as a lowercase string.
  12078. //
  12079. // Constraints:
  12080. //
  12081. // Must be the identifier for an existing Read Replica DB instance
  12082. //
  12083. // Must contain from 1 to 63 alphanumeric characters or hyphens
  12084. //
  12085. // First character must be a letter
  12086. //
  12087. // Cannot end with a hyphen or contain two consecutive hyphens
  12088. //
  12089. // Example: mydbinstance
  12090. DBInstanceIdentifier *string `type:"string" required:"true"`
  12091. // The daily time range during which automated backups are created if automated
  12092. // backups are enabled, using the BackupRetentionPeriod parameter.
  12093. //
  12094. // Default: A 30-minute window selected at random from an 8-hour block of
  12095. // time per region. To see the time blocks available, see Adjusting the Preferred
  12096. // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  12097. // in the Amazon RDS User Guide.
  12098. //
  12099. // Constraints:
  12100. //
  12101. // Must be in the format hh24:mi-hh24:mi.
  12102. //
  12103. // Times should be in Universal Coordinated Time (UTC).
  12104. //
  12105. // Must not conflict with the preferred maintenance window.
  12106. //
  12107. // Must be at least 30 minutes.
  12108. PreferredBackupWindow *string `type:"string"`
  12109. }
  12110. // String returns the string representation
  12111. func (s PromoteReadReplicaInput) String() string {
  12112. return awsutil.Prettify(s)
  12113. }
  12114. // GoString returns the string representation
  12115. func (s PromoteReadReplicaInput) GoString() string {
  12116. return s.String()
  12117. }
  12118. // Validate inspects the fields of the type to determine if they are valid.
  12119. func (s *PromoteReadReplicaInput) Validate() error {
  12120. invalidParams := request.ErrInvalidParams{Context: "PromoteReadReplicaInput"}
  12121. if s.DBInstanceIdentifier == nil {
  12122. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  12123. }
  12124. if invalidParams.Len() > 0 {
  12125. return invalidParams
  12126. }
  12127. return nil
  12128. }
  12129. type PromoteReadReplicaOutput struct {
  12130. _ struct{} `type:"structure"`
  12131. // Contains the result of a successful invocation of the following actions:
  12132. //
  12133. // CreateDBInstance
  12134. //
  12135. // DeleteDBInstance
  12136. //
  12137. // ModifyDBInstance
  12138. //
  12139. // This data type is used as a response element in the DescribeDBInstances
  12140. // action.
  12141. DBInstance *DBInstance `type:"structure"`
  12142. }
  12143. // String returns the string representation
  12144. func (s PromoteReadReplicaOutput) String() string {
  12145. return awsutil.Prettify(s)
  12146. }
  12147. // GoString returns the string representation
  12148. func (s PromoteReadReplicaOutput) GoString() string {
  12149. return s.String()
  12150. }
  12151. type PurchaseReservedDBInstancesOfferingInput struct {
  12152. _ struct{} `type:"structure"`
  12153. // The number of instances to reserve.
  12154. //
  12155. // Default: 1
  12156. DBInstanceCount *int64 `type:"integer"`
  12157. // Customer-specified identifier to track this reservation.
  12158. //
  12159. // Example: myreservationID
  12160. ReservedDBInstanceId *string `type:"string"`
  12161. // The ID of the Reserved DB instance offering to purchase.
  12162. //
  12163. // Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
  12164. ReservedDBInstancesOfferingId *string `type:"string" required:"true"`
  12165. // A list of tags.
  12166. Tags []*Tag `locationNameList:"Tag" type:"list"`
  12167. }
  12168. // String returns the string representation
  12169. func (s PurchaseReservedDBInstancesOfferingInput) String() string {
  12170. return awsutil.Prettify(s)
  12171. }
  12172. // GoString returns the string representation
  12173. func (s PurchaseReservedDBInstancesOfferingInput) GoString() string {
  12174. return s.String()
  12175. }
  12176. // Validate inspects the fields of the type to determine if they are valid.
  12177. func (s *PurchaseReservedDBInstancesOfferingInput) Validate() error {
  12178. invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedDBInstancesOfferingInput"}
  12179. if s.ReservedDBInstancesOfferingId == nil {
  12180. invalidParams.Add(request.NewErrParamRequired("ReservedDBInstancesOfferingId"))
  12181. }
  12182. if invalidParams.Len() > 0 {
  12183. return invalidParams
  12184. }
  12185. return nil
  12186. }
  12187. type PurchaseReservedDBInstancesOfferingOutput struct {
  12188. _ struct{} `type:"structure"`
  12189. // This data type is used as a response element in the DescribeReservedDBInstances
  12190. // and PurchaseReservedDBInstancesOffering actions.
  12191. ReservedDBInstance *ReservedDBInstance `type:"structure"`
  12192. }
  12193. // String returns the string representation
  12194. func (s PurchaseReservedDBInstancesOfferingOutput) String() string {
  12195. return awsutil.Prettify(s)
  12196. }
  12197. // GoString returns the string representation
  12198. func (s PurchaseReservedDBInstancesOfferingOutput) GoString() string {
  12199. return s.String()
  12200. }
  12201. type RebootDBInstanceInput struct {
  12202. _ struct{} `type:"structure"`
  12203. // The DB instance identifier. This parameter is stored as a lowercase string.
  12204. //
  12205. // Constraints:
  12206. //
  12207. // Must contain from 1 to 63 alphanumeric characters or hyphens
  12208. //
  12209. // First character must be a letter
  12210. //
  12211. // Cannot end with a hyphen or contain two consecutive hyphens
  12212. DBInstanceIdentifier *string `type:"string" required:"true"`
  12213. // When true, the reboot will be conducted through a MultiAZ failover.
  12214. //
  12215. // Constraint: You cannot specify true if the instance is not configured for
  12216. // MultiAZ.
  12217. ForceFailover *bool `type:"boolean"`
  12218. }
  12219. // String returns the string representation
  12220. func (s RebootDBInstanceInput) String() string {
  12221. return awsutil.Prettify(s)
  12222. }
  12223. // GoString returns the string representation
  12224. func (s RebootDBInstanceInput) GoString() string {
  12225. return s.String()
  12226. }
  12227. // Validate inspects the fields of the type to determine if they are valid.
  12228. func (s *RebootDBInstanceInput) Validate() error {
  12229. invalidParams := request.ErrInvalidParams{Context: "RebootDBInstanceInput"}
  12230. if s.DBInstanceIdentifier == nil {
  12231. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  12232. }
  12233. if invalidParams.Len() > 0 {
  12234. return invalidParams
  12235. }
  12236. return nil
  12237. }
  12238. type RebootDBInstanceOutput struct {
  12239. _ struct{} `type:"structure"`
  12240. // Contains the result of a successful invocation of the following actions:
  12241. //
  12242. // CreateDBInstance
  12243. //
  12244. // DeleteDBInstance
  12245. //
  12246. // ModifyDBInstance
  12247. //
  12248. // This data type is used as a response element in the DescribeDBInstances
  12249. // action.
  12250. DBInstance *DBInstance `type:"structure"`
  12251. }
  12252. // String returns the string representation
  12253. func (s RebootDBInstanceOutput) String() string {
  12254. return awsutil.Prettify(s)
  12255. }
  12256. // GoString returns the string representation
  12257. func (s RebootDBInstanceOutput) GoString() string {
  12258. return s.String()
  12259. }
  12260. // This data type is used as a response element in the DescribeReservedDBInstances
  12261. // and DescribeReservedDBInstancesOfferings actions.
  12262. type RecurringCharge struct {
  12263. _ struct{} `type:"structure"`
  12264. // The amount of the recurring charge.
  12265. RecurringChargeAmount *float64 `type:"double"`
  12266. // The frequency of the recurring charge.
  12267. RecurringChargeFrequency *string `type:"string"`
  12268. }
  12269. // String returns the string representation
  12270. func (s RecurringCharge) String() string {
  12271. return awsutil.Prettify(s)
  12272. }
  12273. // GoString returns the string representation
  12274. func (s RecurringCharge) GoString() string {
  12275. return s.String()
  12276. }
  12277. type RemoveSourceIdentifierFromSubscriptionInput struct {
  12278. _ struct{} `type:"structure"`
  12279. // The source identifier to be removed from the subscription, such as the DB
  12280. // instance identifier for a DB instance or the name of a security group.
  12281. SourceIdentifier *string `type:"string" required:"true"`
  12282. // The name of the RDS event notification subscription you want to remove a
  12283. // source identifier from.
  12284. SubscriptionName *string `type:"string" required:"true"`
  12285. }
  12286. // String returns the string representation
  12287. func (s RemoveSourceIdentifierFromSubscriptionInput) String() string {
  12288. return awsutil.Prettify(s)
  12289. }
  12290. // GoString returns the string representation
  12291. func (s RemoveSourceIdentifierFromSubscriptionInput) GoString() string {
  12292. return s.String()
  12293. }
  12294. // Validate inspects the fields of the type to determine if they are valid.
  12295. func (s *RemoveSourceIdentifierFromSubscriptionInput) Validate() error {
  12296. invalidParams := request.ErrInvalidParams{Context: "RemoveSourceIdentifierFromSubscriptionInput"}
  12297. if s.SourceIdentifier == nil {
  12298. invalidParams.Add(request.NewErrParamRequired("SourceIdentifier"))
  12299. }
  12300. if s.SubscriptionName == nil {
  12301. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  12302. }
  12303. if invalidParams.Len() > 0 {
  12304. return invalidParams
  12305. }
  12306. return nil
  12307. }
  12308. type RemoveSourceIdentifierFromSubscriptionOutput struct {
  12309. _ struct{} `type:"structure"`
  12310. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  12311. // action.
  12312. EventSubscription *EventSubscription `type:"structure"`
  12313. }
  12314. // String returns the string representation
  12315. func (s RemoveSourceIdentifierFromSubscriptionOutput) String() string {
  12316. return awsutil.Prettify(s)
  12317. }
  12318. // GoString returns the string representation
  12319. func (s RemoveSourceIdentifierFromSubscriptionOutput) GoString() string {
  12320. return s.String()
  12321. }
  12322. type RemoveTagsFromResourceInput struct {
  12323. _ struct{} `type:"structure"`
  12324. // The Amazon RDS resource the tags will be removed from. This value is an Amazon
  12325. // Resource Name (ARN). For information about creating an ARN, see Constructing
  12326. // an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.ARN).
  12327. ResourceName *string `type:"string" required:"true"`
  12328. // The tag key (name) of the tag to be removed.
  12329. TagKeys []*string `type:"list" required:"true"`
  12330. }
  12331. // String returns the string representation
  12332. func (s RemoveTagsFromResourceInput) String() string {
  12333. return awsutil.Prettify(s)
  12334. }
  12335. // GoString returns the string representation
  12336. func (s RemoveTagsFromResourceInput) GoString() string {
  12337. return s.String()
  12338. }
  12339. // Validate inspects the fields of the type to determine if they are valid.
  12340. func (s *RemoveTagsFromResourceInput) Validate() error {
  12341. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
  12342. if s.ResourceName == nil {
  12343. invalidParams.Add(request.NewErrParamRequired("ResourceName"))
  12344. }
  12345. if s.TagKeys == nil {
  12346. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  12347. }
  12348. if invalidParams.Len() > 0 {
  12349. return invalidParams
  12350. }
  12351. return nil
  12352. }
  12353. type RemoveTagsFromResourceOutput struct {
  12354. _ struct{} `type:"structure"`
  12355. }
  12356. // String returns the string representation
  12357. func (s RemoveTagsFromResourceOutput) String() string {
  12358. return awsutil.Prettify(s)
  12359. }
  12360. // GoString returns the string representation
  12361. func (s RemoveTagsFromResourceOutput) GoString() string {
  12362. return s.String()
  12363. }
  12364. // This data type is used as a response element in the DescribeReservedDBInstances
  12365. // and PurchaseReservedDBInstancesOffering actions.
  12366. type ReservedDBInstance struct {
  12367. _ struct{} `type:"structure"`
  12368. // The currency code for the reserved DB instance.
  12369. CurrencyCode *string `type:"string"`
  12370. // The DB instance class for the reserved DB instance.
  12371. DBInstanceClass *string `type:"string"`
  12372. // The number of reserved DB instances.
  12373. DBInstanceCount *int64 `type:"integer"`
  12374. // The duration of the reservation in seconds.
  12375. Duration *int64 `type:"integer"`
  12376. // The fixed price charged for this reserved DB instance.
  12377. FixedPrice *float64 `type:"double"`
  12378. // Indicates if the reservation applies to Multi-AZ deployments.
  12379. MultiAZ *bool `type:"boolean"`
  12380. // The offering type of this reserved DB instance.
  12381. OfferingType *string `type:"string"`
  12382. // The description of the reserved DB instance.
  12383. ProductDescription *string `type:"string"`
  12384. // The recurring price charged to run this reserved DB instance.
  12385. RecurringCharges []*RecurringCharge `locationNameList:"RecurringCharge" type:"list"`
  12386. // The unique identifier for the reservation.
  12387. ReservedDBInstanceId *string `type:"string"`
  12388. // The offering identifier.
  12389. ReservedDBInstancesOfferingId *string `type:"string"`
  12390. // The time the reservation started.
  12391. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  12392. // The state of the reserved DB instance.
  12393. State *string `type:"string"`
  12394. // The hourly price charged for this reserved DB instance.
  12395. UsagePrice *float64 `type:"double"`
  12396. }
  12397. // String returns the string representation
  12398. func (s ReservedDBInstance) String() string {
  12399. return awsutil.Prettify(s)
  12400. }
  12401. // GoString returns the string representation
  12402. func (s ReservedDBInstance) GoString() string {
  12403. return s.String()
  12404. }
  12405. // This data type is used as a response element in the DescribeReservedDBInstancesOfferings
  12406. // action.
  12407. type ReservedDBInstancesOffering struct {
  12408. _ struct{} `type:"structure"`
  12409. // The currency code for the reserved DB instance offering.
  12410. CurrencyCode *string `type:"string"`
  12411. // The DB instance class for the reserved DB instance.
  12412. DBInstanceClass *string `type:"string"`
  12413. // The duration of the offering in seconds.
  12414. Duration *int64 `type:"integer"`
  12415. // The fixed price charged for this offering.
  12416. FixedPrice *float64 `type:"double"`
  12417. // Indicates if the offering applies to Multi-AZ deployments.
  12418. MultiAZ *bool `type:"boolean"`
  12419. // The offering type.
  12420. OfferingType *string `type:"string"`
  12421. // The database engine used by the offering.
  12422. ProductDescription *string `type:"string"`
  12423. // The recurring price charged to run this reserved DB instance.
  12424. RecurringCharges []*RecurringCharge `locationNameList:"RecurringCharge" type:"list"`
  12425. // The offering identifier.
  12426. ReservedDBInstancesOfferingId *string `type:"string"`
  12427. // The hourly price charged for this offering.
  12428. UsagePrice *float64 `type:"double"`
  12429. }
  12430. // String returns the string representation
  12431. func (s ReservedDBInstancesOffering) String() string {
  12432. return awsutil.Prettify(s)
  12433. }
  12434. // GoString returns the string representation
  12435. func (s ReservedDBInstancesOffering) GoString() string {
  12436. return s.String()
  12437. }
  12438. type ResetDBClusterParameterGroupInput struct {
  12439. _ struct{} `type:"structure"`
  12440. // The name of the DB cluster parameter group to reset.
  12441. DBClusterParameterGroupName *string `type:"string" required:"true"`
  12442. // A list of parameter names in the DB cluster parameter group to reset to the
  12443. // default values. You cannot use this parameter if the ResetAllParameters parameter
  12444. // is set to true.
  12445. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  12446. // A value that is set to true to reset all parameters in the DB cluster parameter
  12447. // group to their default values, and false otherwise. You cannot use this parameter
  12448. // if there is a list of parameter names specified for the Parameters parameter.
  12449. ResetAllParameters *bool `type:"boolean"`
  12450. }
  12451. // String returns the string representation
  12452. func (s ResetDBClusterParameterGroupInput) String() string {
  12453. return awsutil.Prettify(s)
  12454. }
  12455. // GoString returns the string representation
  12456. func (s ResetDBClusterParameterGroupInput) GoString() string {
  12457. return s.String()
  12458. }
  12459. // Validate inspects the fields of the type to determine if they are valid.
  12460. func (s *ResetDBClusterParameterGroupInput) Validate() error {
  12461. invalidParams := request.ErrInvalidParams{Context: "ResetDBClusterParameterGroupInput"}
  12462. if s.DBClusterParameterGroupName == nil {
  12463. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  12464. }
  12465. if invalidParams.Len() > 0 {
  12466. return invalidParams
  12467. }
  12468. return nil
  12469. }
  12470. type ResetDBParameterGroupInput struct {
  12471. _ struct{} `type:"structure"`
  12472. // The name of the DB parameter group.
  12473. //
  12474. // Constraints:
  12475. //
  12476. // Must be 1 to 255 alphanumeric characters
  12477. //
  12478. // First character must be a letter
  12479. //
  12480. // Cannot end with a hyphen or contain two consecutive hyphens
  12481. DBParameterGroupName *string `type:"string" required:"true"`
  12482. // An array of parameter names, values, and the apply method for the parameter
  12483. // update. At least one parameter name, value, and apply method must be supplied;
  12484. // subsequent arguments are optional. A maximum of 20 parameters can be modified
  12485. // in a single request.
  12486. //
  12487. // MySQL
  12488. //
  12489. // Valid Values (for Apply method): immediate | pending-reboot
  12490. //
  12491. // You can use the immediate value with dynamic parameters only. You can use
  12492. // the pending-reboot value for both dynamic and static parameters, and changes
  12493. // are applied when DB instance reboots.
  12494. //
  12495. // MariaDB
  12496. //
  12497. // Valid Values (for Apply method): immediate | pending-reboot
  12498. //
  12499. // You can use the immediate value with dynamic parameters only. You can use
  12500. // the pending-reboot value for both dynamic and static parameters, and changes
  12501. // are applied when DB instance reboots.
  12502. //
  12503. // Oracle
  12504. //
  12505. // Valid Values (for Apply method): pending-reboot
  12506. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  12507. // Specifies whether (true) or not (false) to reset all parameters in the DB
  12508. // parameter group to default values.
  12509. //
  12510. // Default: true
  12511. ResetAllParameters *bool `type:"boolean"`
  12512. }
  12513. // String returns the string representation
  12514. func (s ResetDBParameterGroupInput) String() string {
  12515. return awsutil.Prettify(s)
  12516. }
  12517. // GoString returns the string representation
  12518. func (s ResetDBParameterGroupInput) GoString() string {
  12519. return s.String()
  12520. }
  12521. // Validate inspects the fields of the type to determine if they are valid.
  12522. func (s *ResetDBParameterGroupInput) Validate() error {
  12523. invalidParams := request.ErrInvalidParams{Context: "ResetDBParameterGroupInput"}
  12524. if s.DBParameterGroupName == nil {
  12525. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  12526. }
  12527. if invalidParams.Len() > 0 {
  12528. return invalidParams
  12529. }
  12530. return nil
  12531. }
  12532. // Describes the pending maintenance actions for a resource.
  12533. type ResourcePendingMaintenanceActions struct {
  12534. _ struct{} `type:"structure"`
  12535. // A list that provides details about the pending maintenance actions for the
  12536. // resource.
  12537. PendingMaintenanceActionDetails []*PendingMaintenanceAction `locationNameList:"PendingMaintenanceAction" type:"list"`
  12538. // The ARN of the resource that has pending maintenance actions.
  12539. ResourceIdentifier *string `type:"string"`
  12540. }
  12541. // String returns the string representation
  12542. func (s ResourcePendingMaintenanceActions) String() string {
  12543. return awsutil.Prettify(s)
  12544. }
  12545. // GoString returns the string representation
  12546. func (s ResourcePendingMaintenanceActions) GoString() string {
  12547. return s.String()
  12548. }
  12549. type RestoreDBClusterFromS3Input struct {
  12550. _ struct{} `type:"structure"`
  12551. // A list of EC2 Availability Zones that instances in the restored DB cluster
  12552. // can be created in.
  12553. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  12554. // The number of days for which automated backups of the restored DB cluster
  12555. // are retained. You must specify a minimum value of 1.
  12556. //
  12557. // Default: 1
  12558. //
  12559. // Constraints:
  12560. //
  12561. // Must be a value from 1 to 35
  12562. BackupRetentionPeriod *int64 `type:"integer"`
  12563. // A value that indicates that the restored DB cluster should be associated
  12564. // with the specified CharacterSet.
  12565. CharacterSetName *string `type:"string"`
  12566. // The name of the DB cluster to create from the source data in the S3 bucket.
  12567. // This parameter is isn't case-sensitive.
  12568. //
  12569. // Constraints:
  12570. //
  12571. // Must contain from 1 to 63 alphanumeric characters or hyphens.
  12572. //
  12573. // First character must be a letter.
  12574. //
  12575. // Cannot end with a hyphen or contain two consecutive hyphens.
  12576. //
  12577. // Example: my-cluster1
  12578. DBClusterIdentifier *string `type:"string" required:"true"`
  12579. // The name of the DB cluster parameter group to associate with the restored
  12580. // DB cluster. If this argument is omitted, default.aurora5.6 will be used.
  12581. //
  12582. // Constraints:
  12583. //
  12584. // Must be 1 to 255 alphanumeric characters
  12585. //
  12586. // First character must be a letter
  12587. //
  12588. // Cannot end with a hyphen or contain two consecutive hyphens
  12589. DBClusterParameterGroupName *string `type:"string"`
  12590. // A DB subnet group to associate with the restored DB cluster.
  12591. //
  12592. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  12593. // underscores, spaces, or hyphens. Must not be default.
  12594. //
  12595. // Example: mySubnetgroup
  12596. DBSubnetGroupName *string `type:"string"`
  12597. // The database name for the restored DB cluster.
  12598. DatabaseName *string `type:"string"`
  12599. // The name of the database engine to be used for the restored DB cluster.
  12600. //
  12601. // Valid Values: aurora
  12602. Engine *string `type:"string" required:"true"`
  12603. // The version number of the database engine to use.
  12604. //
  12605. // Aurora
  12606. //
  12607. // Example: 5.6.10a
  12608. EngineVersion *string `type:"string"`
  12609. // The KMS key identifier for an encrypted DB cluster.
  12610. //
  12611. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  12612. // key. If you are creating a DB cluster with the same AWS account that owns
  12613. // the KMS encryption key used to encrypt the new DB cluster, then you can use
  12614. // the KMS key alias instead of the ARN for the KM encryption key.
  12615. //
  12616. // If the StorageEncrypted parameter is true, and you do not specify a value
  12617. // for the KmsKeyId parameter, then Amazon RDS will use your default encryption
  12618. // key. AWS KMS creates the default encryption key for your AWS account. Your
  12619. // AWS account has a different default encryption key for each AWS region.
  12620. KmsKeyId *string `type:"string"`
  12621. // The password for the master database user. This password can contain any
  12622. // printable ASCII character except "/", """, or "@".
  12623. //
  12624. // Constraints: Must contain from 8 to 41 characters.
  12625. MasterUserPassword *string `type:"string" required:"true"`
  12626. // The name of the master user for the restored DB cluster.
  12627. //
  12628. // Constraints:
  12629. //
  12630. // Must be 1 to 16 alphanumeric characters.
  12631. //
  12632. // First character must be a letter.
  12633. //
  12634. // Cannot be a reserved word for the chosen database engine.
  12635. MasterUsername *string `type:"string" required:"true"`
  12636. // A value that indicates that the restored DB cluster should be associated
  12637. // with the specified option group.
  12638. //
  12639. // Permanent options cannot be removed from an option group. An option group
  12640. // cannot be removed from a DB cluster once it is associated with a DB cluster.
  12641. OptionGroupName *string `type:"string"`
  12642. // The port number on which the instances in the restored DB cluster accept
  12643. // connections.
  12644. //
  12645. // Default: 3306
  12646. Port *int64 `type:"integer"`
  12647. // The daily time range during which automated backups are created if automated
  12648. // backups are enabled using the BackupRetentionPeriod parameter.
  12649. //
  12650. // Default: A 30-minute window selected at random from an 8-hour block of time
  12651. // per region. To see the time blocks available, see Adjusting the Preferred
  12652. // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  12653. // in the Amazon RDS User Guide.
  12654. //
  12655. // Constraints:
  12656. //
  12657. // Must be in the format hh24:mi-hh24:mi.
  12658. //
  12659. // Times should be in Universal Coordinated Time (UTC).
  12660. //
  12661. // Must not conflict with the preferred maintenance window.
  12662. //
  12663. // Must be at least 30 minutes.
  12664. PreferredBackupWindow *string `type:"string"`
  12665. // The weekly time range during which system maintenance can occur, in Universal
  12666. // Coordinated Time (UTC).
  12667. //
  12668. // Format: ddd:hh24:mi-ddd:hh24:mi
  12669. //
  12670. // Default: A 30-minute window selected at random from an 8-hour block of time
  12671. // per region, occurring on a random day of the week. To see the time blocks
  12672. // available, see Adjusting the Preferred Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  12673. // in the Amazon RDS User Guide.
  12674. //
  12675. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  12676. //
  12677. // Constraints: Minimum 30-minute window.
  12678. PreferredMaintenanceWindow *string `type:"string"`
  12679. // The name of the Amazon S3 bucket that contains the data used to create the
  12680. // Amazon Aurora DB cluster.
  12681. S3BucketName *string `type:"string" required:"true"`
  12682. // The Amazon Resource Name (ARN) of the AWS Identity and Access Management
  12683. // (IAM) role that authorizes Amazon RDS to access the Amazon S3 bucket on your
  12684. // behalf.
  12685. S3IngestionRoleArn *string `type:"string" required:"true"`
  12686. // The prefix for all of the file names that contain the data used to create
  12687. // the Amazon Aurora DB cluster. If you do not specify a SourceS3Prefix value,
  12688. // then the Amazon Aurora DB cluster is created by using all of the files in
  12689. // the Amazon S3 bucket.
  12690. S3Prefix *string `type:"string"`
  12691. // The identifier for the database engine that was backed up to create the files
  12692. // stored in the Amazon S3 bucket.
  12693. //
  12694. // Valid values: mysql
  12695. SourceEngine *string `type:"string" required:"true"`
  12696. // The version of the database that the backup files were created from.
  12697. //
  12698. // MySQL version 5.5 and 5.6 are supported.
  12699. //
  12700. // Example: 5.6.22
  12701. SourceEngineVersion *string `type:"string" required:"true"`
  12702. // Specifies whether the restored DB cluster is encrypted.
  12703. StorageEncrypted *bool `type:"boolean"`
  12704. // A list of tags.
  12705. Tags []*Tag `locationNameList:"Tag" type:"list"`
  12706. // A list of EC2 VPC security groups to associate with the restored DB cluster.
  12707. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  12708. }
  12709. // String returns the string representation
  12710. func (s RestoreDBClusterFromS3Input) String() string {
  12711. return awsutil.Prettify(s)
  12712. }
  12713. // GoString returns the string representation
  12714. func (s RestoreDBClusterFromS3Input) GoString() string {
  12715. return s.String()
  12716. }
  12717. // Validate inspects the fields of the type to determine if they are valid.
  12718. func (s *RestoreDBClusterFromS3Input) Validate() error {
  12719. invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterFromS3Input"}
  12720. if s.DBClusterIdentifier == nil {
  12721. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  12722. }
  12723. if s.Engine == nil {
  12724. invalidParams.Add(request.NewErrParamRequired("Engine"))
  12725. }
  12726. if s.MasterUserPassword == nil {
  12727. invalidParams.Add(request.NewErrParamRequired("MasterUserPassword"))
  12728. }
  12729. if s.MasterUsername == nil {
  12730. invalidParams.Add(request.NewErrParamRequired("MasterUsername"))
  12731. }
  12732. if s.S3BucketName == nil {
  12733. invalidParams.Add(request.NewErrParamRequired("S3BucketName"))
  12734. }
  12735. if s.S3IngestionRoleArn == nil {
  12736. invalidParams.Add(request.NewErrParamRequired("S3IngestionRoleArn"))
  12737. }
  12738. if s.SourceEngine == nil {
  12739. invalidParams.Add(request.NewErrParamRequired("SourceEngine"))
  12740. }
  12741. if s.SourceEngineVersion == nil {
  12742. invalidParams.Add(request.NewErrParamRequired("SourceEngineVersion"))
  12743. }
  12744. if invalidParams.Len() > 0 {
  12745. return invalidParams
  12746. }
  12747. return nil
  12748. }
  12749. type RestoreDBClusterFromS3Output struct {
  12750. _ struct{} `type:"structure"`
  12751. // Contains the result of a successful invocation of the following actions:
  12752. //
  12753. // CreateDBCluster
  12754. //
  12755. // DeleteDBCluster
  12756. //
  12757. // FailoverDBCluster
  12758. //
  12759. // ModifyDBCluster
  12760. //
  12761. // RestoreDBClusterFromSnapshot
  12762. //
  12763. // RestoreDBClusterToPointInTime
  12764. //
  12765. // This data type is used as a response element in the DescribeDBClusters
  12766. // action.
  12767. DBCluster *DBCluster `type:"structure"`
  12768. }
  12769. // String returns the string representation
  12770. func (s RestoreDBClusterFromS3Output) String() string {
  12771. return awsutil.Prettify(s)
  12772. }
  12773. // GoString returns the string representation
  12774. func (s RestoreDBClusterFromS3Output) GoString() string {
  12775. return s.String()
  12776. }
  12777. type RestoreDBClusterFromSnapshotInput struct {
  12778. _ struct{} `type:"structure"`
  12779. // Provides the list of EC2 Availability Zones that instances in the restored
  12780. // DB cluster can be created in.
  12781. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  12782. // The name of the DB cluster to create from the DB cluster snapshot. This parameter
  12783. // isn't case-sensitive.
  12784. //
  12785. // Constraints:
  12786. //
  12787. // Must contain from 1 to 255 alphanumeric characters or hyphens
  12788. //
  12789. // First character must be a letter
  12790. //
  12791. // Cannot end with a hyphen or contain two consecutive hyphens
  12792. //
  12793. // Example: my-snapshot-id
  12794. DBClusterIdentifier *string `type:"string" required:"true"`
  12795. // The name of the DB subnet group to use for the new DB cluster.
  12796. //
  12797. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  12798. // underscores, spaces, or hyphens. Must not be default.
  12799. //
  12800. // Example: mySubnetgroup
  12801. DBSubnetGroupName *string `type:"string"`
  12802. // The database name for the restored DB cluster.
  12803. DatabaseName *string `type:"string"`
  12804. // The database engine to use for the new DB cluster.
  12805. //
  12806. // Default: The same as source
  12807. //
  12808. // Constraint: Must be compatible with the engine of the source
  12809. Engine *string `type:"string" required:"true"`
  12810. // The version of the database engine to use for the new DB cluster.
  12811. EngineVersion *string `type:"string"`
  12812. // The KMS key identifier to use when restoring an encrypted DB cluster from
  12813. // a DB cluster snapshot.
  12814. //
  12815. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  12816. // key. If you are restoring a DB cluster with the same AWS account that owns
  12817. // the KMS encryption key used to encrypt the new DB cluster, then you can use
  12818. // the KMS key alias instead of the ARN for the KMS encryption key.
  12819. //
  12820. // If you do not specify a value for the KmsKeyId parameter, then the following
  12821. // will occur:
  12822. //
  12823. // If the DB cluster snapshot is encrypted, then the restored DB cluster
  12824. // is encrypted using the KMS key that was used to encrypt the DB cluster snapshot.
  12825. //
  12826. // If the DB cluster snapshot is not encrypted, then the restored DB cluster
  12827. // is encrypted using the specified encryption key.
  12828. KmsKeyId *string `type:"string"`
  12829. // The name of the option group to use for the restored DB cluster.
  12830. OptionGroupName *string `type:"string"`
  12831. // The port number on which the new DB cluster accepts connections.
  12832. //
  12833. // Constraints: Value must be 1150-65535
  12834. //
  12835. // Default: The same port as the original DB cluster.
  12836. Port *int64 `type:"integer"`
  12837. // The identifier for the DB cluster snapshot to restore from.
  12838. //
  12839. // Constraints:
  12840. //
  12841. // Must contain from 1 to 63 alphanumeric characters or hyphens
  12842. //
  12843. // First character must be a letter
  12844. //
  12845. // Cannot end with a hyphen or contain two consecutive hyphens
  12846. SnapshotIdentifier *string `type:"string" required:"true"`
  12847. // The tags to be assigned to the restored DB cluster.
  12848. Tags []*Tag `locationNameList:"Tag" type:"list"`
  12849. // A list of VPC security groups that the new DB cluster will belong to.
  12850. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  12851. }
  12852. // String returns the string representation
  12853. func (s RestoreDBClusterFromSnapshotInput) String() string {
  12854. return awsutil.Prettify(s)
  12855. }
  12856. // GoString returns the string representation
  12857. func (s RestoreDBClusterFromSnapshotInput) GoString() string {
  12858. return s.String()
  12859. }
  12860. // Validate inspects the fields of the type to determine if they are valid.
  12861. func (s *RestoreDBClusterFromSnapshotInput) Validate() error {
  12862. invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterFromSnapshotInput"}
  12863. if s.DBClusterIdentifier == nil {
  12864. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  12865. }
  12866. if s.Engine == nil {
  12867. invalidParams.Add(request.NewErrParamRequired("Engine"))
  12868. }
  12869. if s.SnapshotIdentifier == nil {
  12870. invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier"))
  12871. }
  12872. if invalidParams.Len() > 0 {
  12873. return invalidParams
  12874. }
  12875. return nil
  12876. }
  12877. type RestoreDBClusterFromSnapshotOutput struct {
  12878. _ struct{} `type:"structure"`
  12879. // Contains the result of a successful invocation of the following actions:
  12880. //
  12881. // CreateDBCluster
  12882. //
  12883. // DeleteDBCluster
  12884. //
  12885. // FailoverDBCluster
  12886. //
  12887. // ModifyDBCluster
  12888. //
  12889. // RestoreDBClusterFromSnapshot
  12890. //
  12891. // RestoreDBClusterToPointInTime
  12892. //
  12893. // This data type is used as a response element in the DescribeDBClusters
  12894. // action.
  12895. DBCluster *DBCluster `type:"structure"`
  12896. }
  12897. // String returns the string representation
  12898. func (s RestoreDBClusterFromSnapshotOutput) String() string {
  12899. return awsutil.Prettify(s)
  12900. }
  12901. // GoString returns the string representation
  12902. func (s RestoreDBClusterFromSnapshotOutput) GoString() string {
  12903. return s.String()
  12904. }
  12905. type RestoreDBClusterToPointInTimeInput struct {
  12906. _ struct{} `type:"structure"`
  12907. // The name of the new DB cluster to be created.
  12908. //
  12909. // Constraints:
  12910. //
  12911. // Must contain from 1 to 63 alphanumeric characters or hyphens
  12912. //
  12913. // First character must be a letter
  12914. //
  12915. // Cannot end with a hyphen or contain two consecutive hyphens
  12916. DBClusterIdentifier *string `type:"string" required:"true"`
  12917. // The DB subnet group name to use for the new DB cluster.
  12918. //
  12919. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  12920. // underscores, spaces, or hyphens. Must not be default.
  12921. //
  12922. // Example: mySubnetgroup
  12923. DBSubnetGroupName *string `type:"string"`
  12924. // The KMS key identifier to use when restoring an encrypted DB cluster from
  12925. // an encrypted DB cluster.
  12926. //
  12927. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  12928. // key. If you are restoring a DB cluster with the same AWS account that owns
  12929. // the KMS encryption key used to encrypt the new DB cluster, then you can use
  12930. // the KMS key alias instead of the ARN for the KMS encryption key.
  12931. //
  12932. // You can restore to a new DB cluster and encrypt the new DB cluster with
  12933. // a KMS key that is different than the KMS key used to encrypt the source DB
  12934. // cluster. The new DB cluster will be encrypted with the KMS key identified
  12935. // by the KmsKeyId parameter.
  12936. //
  12937. // If you do not specify a value for the KmsKeyId parameter, then the following
  12938. // will occur:
  12939. //
  12940. // If the DB cluster is encrypted, then the restored DB cluster is encrypted
  12941. // using the KMS key that was used to encrypt the source DB cluster.
  12942. //
  12943. // If the DB cluster is not encrypted, then the restored DB cluster is not
  12944. // encrypted.
  12945. //
  12946. // If DBClusterIdentifier refers to a DB cluster that is note encrypted,
  12947. // then the restore request is rejected.
  12948. KmsKeyId *string `type:"string"`
  12949. // The name of the option group for the new DB cluster.
  12950. OptionGroupName *string `type:"string"`
  12951. // The port number on which the new DB cluster accepts connections.
  12952. //
  12953. // Constraints: Value must be 1150-65535
  12954. //
  12955. // Default: The same port as the original DB cluster.
  12956. Port *int64 `type:"integer"`
  12957. // The date and time to restore the DB cluster to.
  12958. //
  12959. // Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
  12960. //
  12961. // Constraints:
  12962. //
  12963. // Must be before the latest restorable time for the DB instance
  12964. //
  12965. // Cannot be specified if UseLatestRestorableTime parameter is true
  12966. //
  12967. // Example: 2015-03-07T23:45:00Z
  12968. RestoreToTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  12969. // The identifier of the source DB cluster from which to restore.
  12970. //
  12971. // Constraints:
  12972. //
  12973. // Must be the identifier of an existing database instance
  12974. //
  12975. // Must contain from 1 to 63 alphanumeric characters or hyphens
  12976. //
  12977. // First character must be a letter
  12978. //
  12979. // Cannot end with a hyphen or contain two consecutive hyphens
  12980. SourceDBClusterIdentifier *string `type:"string" required:"true"`
  12981. // A list of tags.
  12982. Tags []*Tag `locationNameList:"Tag" type:"list"`
  12983. // A value that is set to true to restore the DB cluster to the latest restorable
  12984. // backup time, and false otherwise.
  12985. //
  12986. // Default: false
  12987. //
  12988. // Constraints: Cannot be specified if RestoreToTime parameter is provided.
  12989. UseLatestRestorableTime *bool `type:"boolean"`
  12990. // A lst of VPC security groups that the new DB cluster belongs to.
  12991. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  12992. }
  12993. // String returns the string representation
  12994. func (s RestoreDBClusterToPointInTimeInput) String() string {
  12995. return awsutil.Prettify(s)
  12996. }
  12997. // GoString returns the string representation
  12998. func (s RestoreDBClusterToPointInTimeInput) GoString() string {
  12999. return s.String()
  13000. }
  13001. // Validate inspects the fields of the type to determine if they are valid.
  13002. func (s *RestoreDBClusterToPointInTimeInput) Validate() error {
  13003. invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterToPointInTimeInput"}
  13004. if s.DBClusterIdentifier == nil {
  13005. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  13006. }
  13007. if s.SourceDBClusterIdentifier == nil {
  13008. invalidParams.Add(request.NewErrParamRequired("SourceDBClusterIdentifier"))
  13009. }
  13010. if invalidParams.Len() > 0 {
  13011. return invalidParams
  13012. }
  13013. return nil
  13014. }
  13015. type RestoreDBClusterToPointInTimeOutput struct {
  13016. _ struct{} `type:"structure"`
  13017. // Contains the result of a successful invocation of the following actions:
  13018. //
  13019. // CreateDBCluster
  13020. //
  13021. // DeleteDBCluster
  13022. //
  13023. // FailoverDBCluster
  13024. //
  13025. // ModifyDBCluster
  13026. //
  13027. // RestoreDBClusterFromSnapshot
  13028. //
  13029. // RestoreDBClusterToPointInTime
  13030. //
  13031. // This data type is used as a response element in the DescribeDBClusters
  13032. // action.
  13033. DBCluster *DBCluster `type:"structure"`
  13034. }
  13035. // String returns the string representation
  13036. func (s RestoreDBClusterToPointInTimeOutput) String() string {
  13037. return awsutil.Prettify(s)
  13038. }
  13039. // GoString returns the string representation
  13040. func (s RestoreDBClusterToPointInTimeOutput) GoString() string {
  13041. return s.String()
  13042. }
  13043. type RestoreDBInstanceFromDBSnapshotInput struct {
  13044. _ struct{} `type:"structure"`
  13045. // Indicates that minor version upgrades will be applied automatically to the
  13046. // DB instance during the maintenance window.
  13047. AutoMinorVersionUpgrade *bool `type:"boolean"`
  13048. // The EC2 Availability Zone that the database instance will be created in.
  13049. //
  13050. // Default: A random, system-chosen Availability Zone.
  13051. //
  13052. // Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ
  13053. // parameter is set to true.
  13054. //
  13055. // Example: us-east-1a
  13056. AvailabilityZone *string `type:"string"`
  13057. // True to copy all tags from the restored DB instance to snapshots of the DB
  13058. // instance; otherwise false. The default is false.
  13059. CopyTagsToSnapshot *bool `type:"boolean"`
  13060. // The compute and memory capacity of the Amazon RDS DB instance.
  13061. //
  13062. // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge
  13063. // | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge
  13064. // | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge
  13065. // | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge
  13066. // | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large
  13067. DBInstanceClass *string `type:"string"`
  13068. // Name of the DB instance to create from the DB snapshot. This parameter isn't
  13069. // case-sensitive.
  13070. //
  13071. // Constraints:
  13072. //
  13073. // Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15
  13074. // for SQL Server)
  13075. //
  13076. // First character must be a letter
  13077. //
  13078. // Cannot end with a hyphen or contain two consecutive hyphens
  13079. //
  13080. // Example: my-snapshot-id
  13081. DBInstanceIdentifier *string `type:"string" required:"true"`
  13082. // The database name for the restored DB instance.
  13083. //
  13084. // This parameter doesn't apply to the MySQL, PostgreSQL, or MariaDB engines.
  13085. DBName *string `type:"string"`
  13086. // The identifier for the DB snapshot to restore from.
  13087. //
  13088. // Constraints:
  13089. //
  13090. // Must contain from 1 to 255 alphanumeric characters or hyphens
  13091. //
  13092. // First character must be a letter
  13093. //
  13094. // Cannot end with a hyphen or contain two consecutive hyphens
  13095. //
  13096. // If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier
  13097. // must be the ARN of the shared DB snapshot.
  13098. DBSnapshotIdentifier *string `type:"string" required:"true"`
  13099. // The DB subnet group name to use for the new instance.
  13100. //
  13101. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  13102. // underscores, spaces, or hyphens. Must not be default.
  13103. //
  13104. // Example: mySubnetgroup
  13105. DBSubnetGroupName *string `type:"string"`
  13106. // Specify the Active Directory Domain to restore the instance in.
  13107. Domain *string `type:"string"`
  13108. // Specify the name of the IAM role to be used when making API calls to the
  13109. // Directory Service.
  13110. DomainIAMRoleName *string `type:"string"`
  13111. // The database engine to use for the new instance.
  13112. //
  13113. // Default: The same as source
  13114. //
  13115. // Constraint: Must be compatible with the engine of the source
  13116. //
  13117. // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee
  13118. // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora
  13119. Engine *string `type:"string"`
  13120. // Specifies the amount of provisioned IOPS for the DB instance, expressed in
  13121. // I/O operations per second. If this parameter is not specified, the IOPS value
  13122. // will be taken from the backup. If this parameter is set to 0, the new instance
  13123. // will be converted to a non-PIOPS instance, which will take additional time,
  13124. // though your DB instance will be available for connections before the conversion
  13125. // starts.
  13126. //
  13127. // Constraints: Must be an integer greater than 1000.
  13128. //
  13129. // SQL Server
  13130. //
  13131. // Setting the IOPS value for the SQL Server database engine is not supported.
  13132. Iops *int64 `type:"integer"`
  13133. // License model information for the restored DB instance.
  13134. //
  13135. // Default: Same as source.
  13136. //
  13137. // Valid values: license-included | bring-your-own-license | general-public-license
  13138. LicenseModel *string `type:"string"`
  13139. // Specifies if the DB instance is a Multi-AZ deployment.
  13140. //
  13141. // Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ
  13142. // parameter is set to true.
  13143. MultiAZ *bool `type:"boolean"`
  13144. // The name of the option group to be used for the restored DB instance.
  13145. //
  13146. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  13147. // cannot be removed from an option group, and that option group cannot be removed
  13148. // from a DB instance once it is associated with a DB instance
  13149. OptionGroupName *string `type:"string"`
  13150. // The port number on which the database accepts connections.
  13151. //
  13152. // Default: The same port as the original DB instance
  13153. //
  13154. // Constraints: Value must be 1150-65535
  13155. Port *int64 `type:"integer"`
  13156. // Specifies the accessibility options for the DB instance. A value of true
  13157. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  13158. // which resolves to a public IP address. A value of false specifies an internal
  13159. // instance with a DNS name that resolves to a private IP address.
  13160. //
  13161. // Default: The default behavior varies depending on whether a VPC has been
  13162. // requested or not. The following list shows the default behavior in each case.
  13163. //
  13164. // Default VPC: true
  13165. //
  13166. // VPC: false
  13167. //
  13168. // If no DB subnet group has been specified as part of the request and the
  13169. // PubliclyAccessible value has not been set, the DB instance will be publicly
  13170. // accessible. If a specific DB subnet group has been specified as part of the
  13171. // request and the PubliclyAccessible value has not been set, the DB instance
  13172. // will be private.
  13173. PubliclyAccessible *bool `type:"boolean"`
  13174. // Specifies the storage type to be associated with the DB instance.
  13175. //
  13176. // Valid values: standard | gp2 | io1
  13177. //
  13178. // If you specify io1, you must also include a value for the Iops parameter.
  13179. //
  13180. // Default: io1 if the Iops parameter is specified; otherwise standard
  13181. StorageType *string `type:"string"`
  13182. // A list of tags.
  13183. Tags []*Tag `locationNameList:"Tag" type:"list"`
  13184. // The ARN from the Key Store with which to associate the instance for TDE encryption.
  13185. TdeCredentialArn *string `type:"string"`
  13186. // The password for the given ARN from the Key Store in order to access the
  13187. // device.
  13188. TdeCredentialPassword *string `type:"string"`
  13189. }
  13190. // String returns the string representation
  13191. func (s RestoreDBInstanceFromDBSnapshotInput) String() string {
  13192. return awsutil.Prettify(s)
  13193. }
  13194. // GoString returns the string representation
  13195. func (s RestoreDBInstanceFromDBSnapshotInput) GoString() string {
  13196. return s.String()
  13197. }
  13198. // Validate inspects the fields of the type to determine if they are valid.
  13199. func (s *RestoreDBInstanceFromDBSnapshotInput) Validate() error {
  13200. invalidParams := request.ErrInvalidParams{Context: "RestoreDBInstanceFromDBSnapshotInput"}
  13201. if s.DBInstanceIdentifier == nil {
  13202. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  13203. }
  13204. if s.DBSnapshotIdentifier == nil {
  13205. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  13206. }
  13207. if invalidParams.Len() > 0 {
  13208. return invalidParams
  13209. }
  13210. return nil
  13211. }
  13212. type RestoreDBInstanceFromDBSnapshotOutput struct {
  13213. _ struct{} `type:"structure"`
  13214. // Contains the result of a successful invocation of the following actions:
  13215. //
  13216. // CreateDBInstance
  13217. //
  13218. // DeleteDBInstance
  13219. //
  13220. // ModifyDBInstance
  13221. //
  13222. // This data type is used as a response element in the DescribeDBInstances
  13223. // action.
  13224. DBInstance *DBInstance `type:"structure"`
  13225. }
  13226. // String returns the string representation
  13227. func (s RestoreDBInstanceFromDBSnapshotOutput) String() string {
  13228. return awsutil.Prettify(s)
  13229. }
  13230. // GoString returns the string representation
  13231. func (s RestoreDBInstanceFromDBSnapshotOutput) GoString() string {
  13232. return s.String()
  13233. }
  13234. type RestoreDBInstanceToPointInTimeInput struct {
  13235. _ struct{} `type:"structure"`
  13236. // Indicates that minor version upgrades will be applied automatically to the
  13237. // DB instance during the maintenance window.
  13238. AutoMinorVersionUpgrade *bool `type:"boolean"`
  13239. // The EC2 Availability Zone that the database instance will be created in.
  13240. //
  13241. // Default: A random, system-chosen Availability Zone.
  13242. //
  13243. // Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ
  13244. // parameter is set to true.
  13245. //
  13246. // Example: us-east-1a
  13247. AvailabilityZone *string `type:"string"`
  13248. // True to copy all tags from the restored DB instance to snapshots of the DB
  13249. // instance; otherwise false. The default is false.
  13250. CopyTagsToSnapshot *bool `type:"boolean"`
  13251. // The compute and memory capacity of the Amazon RDS DB instance.
  13252. //
  13253. // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge
  13254. // | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge
  13255. // | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge
  13256. // | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge
  13257. // | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large
  13258. //
  13259. // Default: The same DBInstanceClass as the original DB instance.
  13260. DBInstanceClass *string `type:"string"`
  13261. // The database name for the restored DB instance.
  13262. //
  13263. // This parameter is not used for the MySQL or MariaDB engines.
  13264. DBName *string `type:"string"`
  13265. // The DB subnet group name to use for the new instance.
  13266. //
  13267. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  13268. // underscores, spaces, or hyphens. Must not be default.
  13269. //
  13270. // Example: mySubnetgroup
  13271. DBSubnetGroupName *string `type:"string"`
  13272. // Specify the Active Directory Domain to restore the instance in.
  13273. Domain *string `type:"string"`
  13274. // Specify the name of the IAM role to be used when making API calls to the
  13275. // Directory Service.
  13276. DomainIAMRoleName *string `type:"string"`
  13277. // The database engine to use for the new instance.
  13278. //
  13279. // Default: The same as source
  13280. //
  13281. // Constraint: Must be compatible with the engine of the source
  13282. //
  13283. // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee
  13284. // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora
  13285. Engine *string `type:"string"`
  13286. // The amount of Provisioned IOPS (input/output operations per second) to be
  13287. // initially allocated for the DB instance.
  13288. //
  13289. // Constraints: Must be an integer greater than 1000.
  13290. //
  13291. // SQL Server
  13292. //
  13293. // Setting the IOPS value for the SQL Server database engine is not supported.
  13294. Iops *int64 `type:"integer"`
  13295. // License model information for the restored DB instance.
  13296. //
  13297. // Default: Same as source.
  13298. //
  13299. // Valid values: license-included | bring-your-own-license | general-public-license
  13300. LicenseModel *string `type:"string"`
  13301. // Specifies if the DB instance is a Multi-AZ deployment.
  13302. //
  13303. // Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ
  13304. // parameter is set to true.
  13305. MultiAZ *bool `type:"boolean"`
  13306. // The name of the option group to be used for the restored DB instance.
  13307. //
  13308. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  13309. // cannot be removed from an option group, and that option group cannot be removed
  13310. // from a DB instance once it is associated with a DB instance
  13311. OptionGroupName *string `type:"string"`
  13312. // The port number on which the database accepts connections.
  13313. //
  13314. // Constraints: Value must be 1150-65535
  13315. //
  13316. // Default: The same port as the original DB instance.
  13317. Port *int64 `type:"integer"`
  13318. // Specifies the accessibility options for the DB instance. A value of true
  13319. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  13320. // which resolves to a public IP address. A value of false specifies an internal
  13321. // instance with a DNS name that resolves to a private IP address.
  13322. //
  13323. // Default: The default behavior varies depending on whether a VPC has been
  13324. // requested or not. The following list shows the default behavior in each case.
  13325. //
  13326. // Default VPC:true
  13327. //
  13328. // VPC:false
  13329. //
  13330. // If no DB subnet group has been specified as part of the request and the
  13331. // PubliclyAccessible value has not been set, the DB instance will be publicly
  13332. // accessible. If a specific DB subnet group has been specified as part of the
  13333. // request and the PubliclyAccessible value has not been set, the DB instance
  13334. // will be private.
  13335. PubliclyAccessible *bool `type:"boolean"`
  13336. // The date and time to restore from.
  13337. //
  13338. // Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
  13339. //
  13340. // Constraints:
  13341. //
  13342. // Must be before the latest restorable time for the DB instance
  13343. //
  13344. // Cannot be specified if UseLatestRestorableTime parameter is true
  13345. //
  13346. // Example: 2009-09-07T23:45:00Z
  13347. RestoreTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  13348. // The identifier of the source DB instance from which to restore.
  13349. //
  13350. // Constraints:
  13351. //
  13352. // Must be the identifier of an existing database instance
  13353. //
  13354. // Must contain from 1 to 63 alphanumeric characters or hyphens
  13355. //
  13356. // First character must be a letter
  13357. //
  13358. // Cannot end with a hyphen or contain two consecutive hyphens
  13359. SourceDBInstanceIdentifier *string `type:"string" required:"true"`
  13360. // Specifies the storage type to be associated with the DB instance.
  13361. //
  13362. // Valid values: standard | gp2 | io1
  13363. //
  13364. // If you specify io1, you must also include a value for the Iops parameter.
  13365. //
  13366. // Default: io1 if the Iops parameter is specified; otherwise standard
  13367. StorageType *string `type:"string"`
  13368. // A list of tags.
  13369. Tags []*Tag `locationNameList:"Tag" type:"list"`
  13370. // The name of the new database instance to be created.
  13371. //
  13372. // Constraints:
  13373. //
  13374. // Must contain from 1 to 63 alphanumeric characters or hyphens
  13375. //
  13376. // First character must be a letter
  13377. //
  13378. // Cannot end with a hyphen or contain two consecutive hyphens
  13379. TargetDBInstanceIdentifier *string `type:"string" required:"true"`
  13380. // The ARN from the Key Store with which to associate the instance for TDE encryption.
  13381. TdeCredentialArn *string `type:"string"`
  13382. // The password for the given ARN from the Key Store in order to access the
  13383. // device.
  13384. TdeCredentialPassword *string `type:"string"`
  13385. // Specifies whether (true) or not (false) the DB instance is restored from
  13386. // the latest backup time.
  13387. //
  13388. // Default: false
  13389. //
  13390. // Constraints: Cannot be specified if RestoreTime parameter is provided.
  13391. UseLatestRestorableTime *bool `type:"boolean"`
  13392. }
  13393. // String returns the string representation
  13394. func (s RestoreDBInstanceToPointInTimeInput) String() string {
  13395. return awsutil.Prettify(s)
  13396. }
  13397. // GoString returns the string representation
  13398. func (s RestoreDBInstanceToPointInTimeInput) GoString() string {
  13399. return s.String()
  13400. }
  13401. // Validate inspects the fields of the type to determine if they are valid.
  13402. func (s *RestoreDBInstanceToPointInTimeInput) Validate() error {
  13403. invalidParams := request.ErrInvalidParams{Context: "RestoreDBInstanceToPointInTimeInput"}
  13404. if s.SourceDBInstanceIdentifier == nil {
  13405. invalidParams.Add(request.NewErrParamRequired("SourceDBInstanceIdentifier"))
  13406. }
  13407. if s.TargetDBInstanceIdentifier == nil {
  13408. invalidParams.Add(request.NewErrParamRequired("TargetDBInstanceIdentifier"))
  13409. }
  13410. if invalidParams.Len() > 0 {
  13411. return invalidParams
  13412. }
  13413. return nil
  13414. }
  13415. type RestoreDBInstanceToPointInTimeOutput struct {
  13416. _ struct{} `type:"structure"`
  13417. // Contains the result of a successful invocation of the following actions:
  13418. //
  13419. // CreateDBInstance
  13420. //
  13421. // DeleteDBInstance
  13422. //
  13423. // ModifyDBInstance
  13424. //
  13425. // This data type is used as a response element in the DescribeDBInstances
  13426. // action.
  13427. DBInstance *DBInstance `type:"structure"`
  13428. }
  13429. // String returns the string representation
  13430. func (s RestoreDBInstanceToPointInTimeOutput) String() string {
  13431. return awsutil.Prettify(s)
  13432. }
  13433. // GoString returns the string representation
  13434. func (s RestoreDBInstanceToPointInTimeOutput) GoString() string {
  13435. return s.String()
  13436. }
  13437. type RevokeDBSecurityGroupIngressInput struct {
  13438. _ struct{} `type:"structure"`
  13439. // The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP
  13440. // is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId
  13441. // cannot be provided.
  13442. CIDRIP *string `type:"string"`
  13443. // The name of the DB security group to revoke ingress from.
  13444. DBSecurityGroupName *string `type:"string" required:"true"`
  13445. // The id of the EC2 security group to revoke access from. For VPC DB security
  13446. // groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId
  13447. // and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
  13448. EC2SecurityGroupId *string `type:"string"`
  13449. // The name of the EC2 security group to revoke access from. For VPC DB security
  13450. // groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId
  13451. // and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
  13452. EC2SecurityGroupName *string `type:"string"`
  13453. // The AWS Account Number of the owner of the EC2 security group specified in
  13454. // the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable
  13455. // value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise,
  13456. // EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId
  13457. // must be provided.
  13458. EC2SecurityGroupOwnerId *string `type:"string"`
  13459. }
  13460. // String returns the string representation
  13461. func (s RevokeDBSecurityGroupIngressInput) String() string {
  13462. return awsutil.Prettify(s)
  13463. }
  13464. // GoString returns the string representation
  13465. func (s RevokeDBSecurityGroupIngressInput) GoString() string {
  13466. return s.String()
  13467. }
  13468. // Validate inspects the fields of the type to determine if they are valid.
  13469. func (s *RevokeDBSecurityGroupIngressInput) Validate() error {
  13470. invalidParams := request.ErrInvalidParams{Context: "RevokeDBSecurityGroupIngressInput"}
  13471. if s.DBSecurityGroupName == nil {
  13472. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName"))
  13473. }
  13474. if invalidParams.Len() > 0 {
  13475. return invalidParams
  13476. }
  13477. return nil
  13478. }
  13479. type RevokeDBSecurityGroupIngressOutput struct {
  13480. _ struct{} `type:"structure"`
  13481. // Contains the result of a successful invocation of the following actions:
  13482. //
  13483. // DescribeDBSecurityGroups
  13484. //
  13485. // AuthorizeDBSecurityGroupIngress
  13486. //
  13487. // CreateDBSecurityGroup
  13488. //
  13489. // RevokeDBSecurityGroupIngress
  13490. //
  13491. // This data type is used as a response element in the DescribeDBSecurityGroups
  13492. // action.
  13493. DBSecurityGroup *DBSecurityGroup `type:"structure"`
  13494. }
  13495. // String returns the string representation
  13496. func (s RevokeDBSecurityGroupIngressOutput) String() string {
  13497. return awsutil.Prettify(s)
  13498. }
  13499. // GoString returns the string representation
  13500. func (s RevokeDBSecurityGroupIngressOutput) GoString() string {
  13501. return s.String()
  13502. }
  13503. // This data type is used as a response element in the DescribeDBSubnetGroups
  13504. // action.
  13505. type Subnet struct {
  13506. _ struct{} `type:"structure"`
  13507. // Contains Availability Zone information.
  13508. //
  13509. // This data type is used as an element in the following data type:
  13510. //
  13511. // OrderableDBInstanceOption
  13512. SubnetAvailabilityZone *AvailabilityZone `type:"structure"`
  13513. // Specifies the identifier of the subnet.
  13514. SubnetIdentifier *string `type:"string"`
  13515. // Specifies the status of the subnet.
  13516. SubnetStatus *string `type:"string"`
  13517. }
  13518. // String returns the string representation
  13519. func (s Subnet) String() string {
  13520. return awsutil.Prettify(s)
  13521. }
  13522. // GoString returns the string representation
  13523. func (s Subnet) GoString() string {
  13524. return s.String()
  13525. }
  13526. // Metadata assigned to an Amazon RDS resource consisting of a key-value pair.
  13527. type Tag struct {
  13528. _ struct{} `type:"structure"`
  13529. // A key is the required name of the tag. The string value can be from 1 to
  13530. // 128 Unicode characters in length and cannot be prefixed with "aws:" or "rds:".
  13531. // The string can only contain only the set of Unicode letters, digits, white-space,
  13532. // '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
  13533. Key *string `type:"string"`
  13534. // A value is the optional value of the tag. The string value can be from 1
  13535. // to 256 Unicode characters in length and cannot be prefixed with "aws:" or
  13536. // "rds:". The string can only contain only the set of Unicode letters, digits,
  13537. // white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
  13538. Value *string `type:"string"`
  13539. }
  13540. // String returns the string representation
  13541. func (s Tag) String() string {
  13542. return awsutil.Prettify(s)
  13543. }
  13544. // GoString returns the string representation
  13545. func (s Tag) GoString() string {
  13546. return s.String()
  13547. }
  13548. // The version of the database engine that a DB instance can be upgraded to.
  13549. type UpgradeTarget struct {
  13550. _ struct{} `type:"structure"`
  13551. // A value that indicates whether the target version will be applied to any
  13552. // source DB instances that have AutoMinorVersionUpgrade set to true.
  13553. AutoUpgrade *bool `type:"boolean"`
  13554. // The version of the database engine that a DB instance can be upgraded to.
  13555. Description *string `type:"string"`
  13556. // The name of the upgrade target database engine.
  13557. Engine *string `type:"string"`
  13558. // The version number of the upgrade target database engine.
  13559. EngineVersion *string `type:"string"`
  13560. // A value that indicates whether a database engine will be upgraded to a major
  13561. // version.
  13562. IsMajorVersionUpgrade *bool `type:"boolean"`
  13563. }
  13564. // String returns the string representation
  13565. func (s UpgradeTarget) String() string {
  13566. return awsutil.Prettify(s)
  13567. }
  13568. // GoString returns the string representation
  13569. func (s UpgradeTarget) GoString() string {
  13570. return s.String()
  13571. }
  13572. // This data type is used as a response element for queries on VPC security
  13573. // group membership.
  13574. type VpcSecurityGroupMembership struct {
  13575. _ struct{} `type:"structure"`
  13576. // The status of the VPC security group.
  13577. Status *string `type:"string"`
  13578. // The name of the VPC security group.
  13579. VpcSecurityGroupId *string `type:"string"`
  13580. }
  13581. // String returns the string representation
  13582. func (s VpcSecurityGroupMembership) String() string {
  13583. return awsutil.Prettify(s)
  13584. }
  13585. // GoString returns the string representation
  13586. func (s VpcSecurityGroupMembership) GoString() string {
  13587. return s.String()
  13588. }
  13589. const (
  13590. // @enum ApplyMethod
  13591. ApplyMethodImmediate = "immediate"
  13592. // @enum ApplyMethod
  13593. ApplyMethodPendingReboot = "pending-reboot"
  13594. )
  13595. const (
  13596. // @enum SourceType
  13597. SourceTypeDbInstance = "db-instance"
  13598. // @enum SourceType
  13599. SourceTypeDbParameterGroup = "db-parameter-group"
  13600. // @enum SourceType
  13601. SourceTypeDbSecurityGroup = "db-security-group"
  13602. // @enum SourceType
  13603. SourceTypeDbSnapshot = "db-snapshot"
  13604. // @enum SourceType
  13605. SourceTypeDbCluster = "db-cluster"
  13606. // @enum SourceType
  13607. SourceTypeDbClusterSnapshot = "db-cluster-snapshot"
  13608. )