api.go 643 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651
  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 opAddRoleToDBCluster = "AddRoleToDBCluster"
  13. // AddRoleToDBClusterRequest generates a "aws/request.Request" representing the
  14. // client's request for the AddRoleToDBCluster operation. The "output" return
  15. // value can be used to capture response data after the request's "Send" method
  16. // is called.
  17. //
  18. // See AddRoleToDBCluster for usage and error information.
  19. //
  20. // Creating a request object using this method should be used when you want to inject
  21. // custom logic into the request's lifecycle using a custom handler, or if you want to
  22. // access properties on the request object before or after sending the request. If
  23. // you just want the service response, call the AddRoleToDBCluster method directly
  24. // instead.
  25. //
  26. // Note: You must call the "Send" method on the returned request object in order
  27. // to execute the request.
  28. //
  29. // // Example sending a request using the AddRoleToDBClusterRequest method.
  30. // req, resp := client.AddRoleToDBClusterRequest(params)
  31. //
  32. // err := req.Send()
  33. // if err == nil { // resp is now filled
  34. // fmt.Println(resp)
  35. // }
  36. //
  37. func (c *RDS) AddRoleToDBClusterRequest(input *AddRoleToDBClusterInput) (req *request.Request, output *AddRoleToDBClusterOutput) {
  38. op := &request.Operation{
  39. Name: opAddRoleToDBCluster,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &AddRoleToDBClusterInput{}
  45. }
  46. req = c.newRequest(op, input, output)
  47. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  48. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  49. output = &AddRoleToDBClusterOutput{}
  50. req.Data = output
  51. return
  52. }
  53. // AddRoleToDBCluster API operation for Amazon Relational Database Service.
  54. //
  55. // Associates an Identity and Access Management (IAM) role from an Aurora DB
  56. // cluster. For more information, see Authorizing Amazon Aurora to Access Other
  57. // AWS Services On Your Behalf (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Authorizing.AWSServices.html).
  58. //
  59. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  60. // with awserr.Error's Code and Message methods to get detailed information about
  61. // the error.
  62. //
  63. // See the AWS API reference guide for Amazon Relational Database Service's
  64. // API operation AddRoleToDBCluster for usage and error information.
  65. //
  66. // Returned Error Codes:
  67. // * DBClusterNotFoundFault
  68. // DBClusterIdentifier does not refer to an existing DB cluster.
  69. //
  70. // * DBClusterRoleAlreadyExists
  71. // The specified IAM role Amazon Resource Name (ARN) is already associated with
  72. // the specified DB cluster.
  73. //
  74. // * InvalidDBClusterStateFault
  75. // The DB cluster is not in a valid state.
  76. //
  77. // * DBClusterRoleQuotaExceeded
  78. // You have exceeded the maximum number of IAM roles that can be associated
  79. // with the specified DB cluster.
  80. //
  81. func (c *RDS) AddRoleToDBCluster(input *AddRoleToDBClusterInput) (*AddRoleToDBClusterOutput, error) {
  82. req, out := c.AddRoleToDBClusterRequest(input)
  83. err := req.Send()
  84. return out, err
  85. }
  86. const opAddSourceIdentifierToSubscription = "AddSourceIdentifierToSubscription"
  87. // AddSourceIdentifierToSubscriptionRequest generates a "aws/request.Request" representing the
  88. // client's request for the AddSourceIdentifierToSubscription operation. The "output" return
  89. // value can be used to capture response data after the request's "Send" method
  90. // is called.
  91. //
  92. // See AddSourceIdentifierToSubscription for usage and error information.
  93. //
  94. // Creating a request object using this method should be used when you want to inject
  95. // custom logic into the request's lifecycle using a custom handler, or if you want to
  96. // access properties on the request object before or after sending the request. If
  97. // you just want the service response, call the AddSourceIdentifierToSubscription method directly
  98. // instead.
  99. //
  100. // Note: You must call the "Send" method on the returned request object in order
  101. // to execute the request.
  102. //
  103. // // Example sending a request using the AddSourceIdentifierToSubscriptionRequest method.
  104. // req, resp := client.AddSourceIdentifierToSubscriptionRequest(params)
  105. //
  106. // err := req.Send()
  107. // if err == nil { // resp is now filled
  108. // fmt.Println(resp)
  109. // }
  110. //
  111. func (c *RDS) AddSourceIdentifierToSubscriptionRequest(input *AddSourceIdentifierToSubscriptionInput) (req *request.Request, output *AddSourceIdentifierToSubscriptionOutput) {
  112. op := &request.Operation{
  113. Name: opAddSourceIdentifierToSubscription,
  114. HTTPMethod: "POST",
  115. HTTPPath: "/",
  116. }
  117. if input == nil {
  118. input = &AddSourceIdentifierToSubscriptionInput{}
  119. }
  120. req = c.newRequest(op, input, output)
  121. output = &AddSourceIdentifierToSubscriptionOutput{}
  122. req.Data = output
  123. return
  124. }
  125. // AddSourceIdentifierToSubscription API operation for Amazon Relational Database Service.
  126. //
  127. // Adds a source identifier to an existing RDS event notification subscription.
  128. //
  129. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  130. // with awserr.Error's Code and Message methods to get detailed information about
  131. // the error.
  132. //
  133. // See the AWS API reference guide for Amazon Relational Database Service's
  134. // API operation AddSourceIdentifierToSubscription for usage and error information.
  135. //
  136. // Returned Error Codes:
  137. // * SubscriptionNotFound
  138. // The subscription name does not exist.
  139. //
  140. // * SourceNotFound
  141. // The requested source could not be found.
  142. //
  143. func (c *RDS) AddSourceIdentifierToSubscription(input *AddSourceIdentifierToSubscriptionInput) (*AddSourceIdentifierToSubscriptionOutput, error) {
  144. req, out := c.AddSourceIdentifierToSubscriptionRequest(input)
  145. err := req.Send()
  146. return out, err
  147. }
  148. const opAddTagsToResource = "AddTagsToResource"
  149. // AddTagsToResourceRequest generates a "aws/request.Request" representing the
  150. // client's request for the AddTagsToResource operation. The "output" return
  151. // value can be used to capture response data after the request's "Send" method
  152. // is called.
  153. //
  154. // See AddTagsToResource for usage and error information.
  155. //
  156. // Creating a request object using this method should be used when you want to inject
  157. // custom logic into the request's lifecycle using a custom handler, or if you want to
  158. // access properties on the request object before or after sending the request. If
  159. // you just want the service response, call the AddTagsToResource method directly
  160. // instead.
  161. //
  162. // Note: You must call the "Send" method on the returned request object in order
  163. // to execute the request.
  164. //
  165. // // Example sending a request using the AddTagsToResourceRequest method.
  166. // req, resp := client.AddTagsToResourceRequest(params)
  167. //
  168. // err := req.Send()
  169. // if err == nil { // resp is now filled
  170. // fmt.Println(resp)
  171. // }
  172. //
  173. func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) {
  174. op := &request.Operation{
  175. Name: opAddTagsToResource,
  176. HTTPMethod: "POST",
  177. HTTPPath: "/",
  178. }
  179. if input == nil {
  180. input = &AddTagsToResourceInput{}
  181. }
  182. req = c.newRequest(op, input, output)
  183. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  184. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  185. output = &AddTagsToResourceOutput{}
  186. req.Data = output
  187. return
  188. }
  189. // AddTagsToResource API operation for Amazon Relational Database Service.
  190. //
  191. // Adds metadata tags to an Amazon RDS resource. These tags can also be used
  192. // with cost allocation reporting to track cost associated with Amazon RDS resources,
  193. // or used in a Condition statement in an IAM policy for Amazon RDS.
  194. //
  195. // For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS Resources
  196. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html).
  197. //
  198. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  199. // with awserr.Error's Code and Message methods to get detailed information about
  200. // the error.
  201. //
  202. // See the AWS API reference guide for Amazon Relational Database Service's
  203. // API operation AddTagsToResource for usage and error information.
  204. //
  205. // Returned Error Codes:
  206. // * DBInstanceNotFound
  207. // DBInstanceIdentifier does not refer to an existing DB instance.
  208. //
  209. // * DBSnapshotNotFound
  210. // DBSnapshotIdentifier does not refer to an existing DB snapshot.
  211. //
  212. func (c *RDS) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
  213. req, out := c.AddTagsToResourceRequest(input)
  214. err := req.Send()
  215. return out, err
  216. }
  217. const opApplyPendingMaintenanceAction = "ApplyPendingMaintenanceAction"
  218. // ApplyPendingMaintenanceActionRequest generates a "aws/request.Request" representing the
  219. // client's request for the ApplyPendingMaintenanceAction operation. The "output" return
  220. // value can be used to capture response data after the request's "Send" method
  221. // is called.
  222. //
  223. // See ApplyPendingMaintenanceAction for usage and error information.
  224. //
  225. // Creating a request object using this method should be used when you want to inject
  226. // custom logic into the request's lifecycle using a custom handler, or if you want to
  227. // access properties on the request object before or after sending the request. If
  228. // you just want the service response, call the ApplyPendingMaintenanceAction method directly
  229. // instead.
  230. //
  231. // Note: You must call the "Send" method on the returned request object in order
  232. // to execute the request.
  233. //
  234. // // Example sending a request using the ApplyPendingMaintenanceActionRequest method.
  235. // req, resp := client.ApplyPendingMaintenanceActionRequest(params)
  236. //
  237. // err := req.Send()
  238. // if err == nil { // resp is now filled
  239. // fmt.Println(resp)
  240. // }
  241. //
  242. func (c *RDS) ApplyPendingMaintenanceActionRequest(input *ApplyPendingMaintenanceActionInput) (req *request.Request, output *ApplyPendingMaintenanceActionOutput) {
  243. op := &request.Operation{
  244. Name: opApplyPendingMaintenanceAction,
  245. HTTPMethod: "POST",
  246. HTTPPath: "/",
  247. }
  248. if input == nil {
  249. input = &ApplyPendingMaintenanceActionInput{}
  250. }
  251. req = c.newRequest(op, input, output)
  252. output = &ApplyPendingMaintenanceActionOutput{}
  253. req.Data = output
  254. return
  255. }
  256. // ApplyPendingMaintenanceAction API operation for Amazon Relational Database Service.
  257. //
  258. // Applies a pending maintenance action to a resource (for example, to a DB
  259. // instance).
  260. //
  261. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  262. // with awserr.Error's Code and Message methods to get detailed information about
  263. // the error.
  264. //
  265. // See the AWS API reference guide for Amazon Relational Database Service's
  266. // API operation ApplyPendingMaintenanceAction for usage and error information.
  267. //
  268. // Returned Error Codes:
  269. // * ResourceNotFoundFault
  270. // The specified resource ID was not found.
  271. //
  272. func (c *RDS) ApplyPendingMaintenanceAction(input *ApplyPendingMaintenanceActionInput) (*ApplyPendingMaintenanceActionOutput, error) {
  273. req, out := c.ApplyPendingMaintenanceActionRequest(input)
  274. err := req.Send()
  275. return out, err
  276. }
  277. const opAuthorizeDBSecurityGroupIngress = "AuthorizeDBSecurityGroupIngress"
  278. // AuthorizeDBSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  279. // client's request for the AuthorizeDBSecurityGroupIngress operation. The "output" return
  280. // value can be used to capture response data after the request's "Send" method
  281. // is called.
  282. //
  283. // See AuthorizeDBSecurityGroupIngress for usage and error information.
  284. //
  285. // Creating a request object using this method should be used when you want to inject
  286. // custom logic into the request's lifecycle using a custom handler, or if you want to
  287. // access properties on the request object before or after sending the request. If
  288. // you just want the service response, call the AuthorizeDBSecurityGroupIngress method directly
  289. // instead.
  290. //
  291. // Note: You must call the "Send" method on the returned request object in order
  292. // to execute the request.
  293. //
  294. // // Example sending a request using the AuthorizeDBSecurityGroupIngressRequest method.
  295. // req, resp := client.AuthorizeDBSecurityGroupIngressRequest(params)
  296. //
  297. // err := req.Send()
  298. // if err == nil { // resp is now filled
  299. // fmt.Println(resp)
  300. // }
  301. //
  302. func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityGroupIngressInput) (req *request.Request, output *AuthorizeDBSecurityGroupIngressOutput) {
  303. op := &request.Operation{
  304. Name: opAuthorizeDBSecurityGroupIngress,
  305. HTTPMethod: "POST",
  306. HTTPPath: "/",
  307. }
  308. if input == nil {
  309. input = &AuthorizeDBSecurityGroupIngressInput{}
  310. }
  311. req = c.newRequest(op, input, output)
  312. output = &AuthorizeDBSecurityGroupIngressOutput{}
  313. req.Data = output
  314. return
  315. }
  316. // AuthorizeDBSecurityGroupIngress API operation for Amazon Relational Database Service.
  317. //
  318. // Enables ingress to a DBSecurityGroup using one of two forms of authorization.
  319. // First, EC2 or VPC security groups can be added to the DBSecurityGroup if
  320. // the application using the database is running on EC2 or VPC instances. Second,
  321. // IP ranges are available if the application accessing your database is running
  322. // on the Internet. Required parameters for this API are one of CIDR range,
  323. // EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName
  324. // or EC2SecurityGroupId for non-VPC).
  325. //
  326. // You cannot authorize ingress from an EC2 security group in one region to
  327. // an Amazon RDS DB instance in another. You cannot authorize ingress from a
  328. // VPC security group in one VPC to an Amazon RDS DB instance in another.
  329. //
  330. // For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing).
  331. //
  332. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  333. // with awserr.Error's Code and Message methods to get detailed information about
  334. // the error.
  335. //
  336. // See the AWS API reference guide for Amazon Relational Database Service's
  337. // API operation AuthorizeDBSecurityGroupIngress for usage and error information.
  338. //
  339. // Returned Error Codes:
  340. // * DBSecurityGroupNotFound
  341. // DBSecurityGroupName does not refer to an existing DB security group.
  342. //
  343. // * InvalidDBSecurityGroupState
  344. // The state of the DB security group does not allow deletion.
  345. //
  346. // * AuthorizationAlreadyExists
  347. // The specified CIDRIP or EC2 security group is already authorized for the
  348. // specified DB security group.
  349. //
  350. // * AuthorizationQuotaExceeded
  351. // DB security group authorization quota has been reached.
  352. //
  353. func (c *RDS) AuthorizeDBSecurityGroupIngress(input *AuthorizeDBSecurityGroupIngressInput) (*AuthorizeDBSecurityGroupIngressOutput, error) {
  354. req, out := c.AuthorizeDBSecurityGroupIngressRequest(input)
  355. err := req.Send()
  356. return out, err
  357. }
  358. const opCopyDBClusterParameterGroup = "CopyDBClusterParameterGroup"
  359. // CopyDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  360. // client's request for the CopyDBClusterParameterGroup operation. The "output" return
  361. // value can be used to capture response data after the request's "Send" method
  362. // is called.
  363. //
  364. // See CopyDBClusterParameterGroup for usage and error information.
  365. //
  366. // Creating a request object using this method should be used when you want to inject
  367. // custom logic into the request's lifecycle using a custom handler, or if you want to
  368. // access properties on the request object before or after sending the request. If
  369. // you just want the service response, call the CopyDBClusterParameterGroup method directly
  370. // instead.
  371. //
  372. // Note: You must call the "Send" method on the returned request object in order
  373. // to execute the request.
  374. //
  375. // // Example sending a request using the CopyDBClusterParameterGroupRequest method.
  376. // req, resp := client.CopyDBClusterParameterGroupRequest(params)
  377. //
  378. // err := req.Send()
  379. // if err == nil { // resp is now filled
  380. // fmt.Println(resp)
  381. // }
  382. //
  383. func (c *RDS) CopyDBClusterParameterGroupRequest(input *CopyDBClusterParameterGroupInput) (req *request.Request, output *CopyDBClusterParameterGroupOutput) {
  384. op := &request.Operation{
  385. Name: opCopyDBClusterParameterGroup,
  386. HTTPMethod: "POST",
  387. HTTPPath: "/",
  388. }
  389. if input == nil {
  390. input = &CopyDBClusterParameterGroupInput{}
  391. }
  392. req = c.newRequest(op, input, output)
  393. output = &CopyDBClusterParameterGroupOutput{}
  394. req.Data = output
  395. return
  396. }
  397. // CopyDBClusterParameterGroup API operation for Amazon Relational Database Service.
  398. //
  399. // Copies the specified DB cluster parameter group.
  400. //
  401. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  402. // with awserr.Error's Code and Message methods to get detailed information about
  403. // the error.
  404. //
  405. // See the AWS API reference guide for Amazon Relational Database Service's
  406. // API operation CopyDBClusterParameterGroup for usage and error information.
  407. //
  408. // Returned Error Codes:
  409. // * DBParameterGroupNotFound
  410. // DBParameterGroupName does not refer to an existing DB parameter group.
  411. //
  412. // * DBParameterGroupQuotaExceeded
  413. // Request would result in user exceeding the allowed number of DB parameter
  414. // groups.
  415. //
  416. // * DBParameterGroupAlreadyExists
  417. // A DB parameter group with the same name exists.
  418. //
  419. func (c *RDS) CopyDBClusterParameterGroup(input *CopyDBClusterParameterGroupInput) (*CopyDBClusterParameterGroupOutput, error) {
  420. req, out := c.CopyDBClusterParameterGroupRequest(input)
  421. err := req.Send()
  422. return out, err
  423. }
  424. const opCopyDBClusterSnapshot = "CopyDBClusterSnapshot"
  425. // CopyDBClusterSnapshotRequest generates a "aws/request.Request" representing the
  426. // client's request for the CopyDBClusterSnapshot operation. The "output" return
  427. // value can be used to capture response data after the request's "Send" method
  428. // is called.
  429. //
  430. // See CopyDBClusterSnapshot for usage and error information.
  431. //
  432. // Creating a request object using this method should be used when you want to inject
  433. // custom logic into the request's lifecycle using a custom handler, or if you want to
  434. // access properties on the request object before or after sending the request. If
  435. // you just want the service response, call the CopyDBClusterSnapshot method directly
  436. // instead.
  437. //
  438. // Note: You must call the "Send" method on the returned request object in order
  439. // to execute the request.
  440. //
  441. // // Example sending a request using the CopyDBClusterSnapshotRequest method.
  442. // req, resp := client.CopyDBClusterSnapshotRequest(params)
  443. //
  444. // err := req.Send()
  445. // if err == nil { // resp is now filled
  446. // fmt.Println(resp)
  447. // }
  448. //
  449. func (c *RDS) CopyDBClusterSnapshotRequest(input *CopyDBClusterSnapshotInput) (req *request.Request, output *CopyDBClusterSnapshotOutput) {
  450. op := &request.Operation{
  451. Name: opCopyDBClusterSnapshot,
  452. HTTPMethod: "POST",
  453. HTTPPath: "/",
  454. }
  455. if input == nil {
  456. input = &CopyDBClusterSnapshotInput{}
  457. }
  458. req = c.newRequest(op, input, output)
  459. output = &CopyDBClusterSnapshotOutput{}
  460. req.Data = output
  461. return
  462. }
  463. // CopyDBClusterSnapshot API operation for Amazon Relational Database Service.
  464. //
  465. // Creates a snapshot of a DB cluster. For more information on Amazon Aurora,
  466. // see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  467. // in the Amazon RDS User Guide.
  468. //
  469. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  470. // with awserr.Error's Code and Message methods to get detailed information about
  471. // the error.
  472. //
  473. // See the AWS API reference guide for Amazon Relational Database Service's
  474. // API operation CopyDBClusterSnapshot for usage and error information.
  475. //
  476. // Returned Error Codes:
  477. // * DBClusterSnapshotAlreadyExistsFault
  478. // User already has a DB cluster snapshot with the given identifier.
  479. //
  480. // * DBClusterSnapshotNotFoundFault
  481. // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot.
  482. //
  483. // * InvalidDBClusterStateFault
  484. // The DB cluster is not in a valid state.
  485. //
  486. // * InvalidDBClusterSnapshotStateFault
  487. // The supplied value is not a valid DB cluster snapshot state.
  488. //
  489. // * SnapshotQuotaExceeded
  490. // Request would result in user exceeding the allowed number of DB snapshots.
  491. //
  492. // * KMSKeyNotAccessibleFault
  493. // Error accessing KMS key.
  494. //
  495. func (c *RDS) CopyDBClusterSnapshot(input *CopyDBClusterSnapshotInput) (*CopyDBClusterSnapshotOutput, error) {
  496. req, out := c.CopyDBClusterSnapshotRequest(input)
  497. err := req.Send()
  498. return out, err
  499. }
  500. const opCopyDBParameterGroup = "CopyDBParameterGroup"
  501. // CopyDBParameterGroupRequest generates a "aws/request.Request" representing the
  502. // client's request for the CopyDBParameterGroup operation. The "output" return
  503. // value can be used to capture response data after the request's "Send" method
  504. // is called.
  505. //
  506. // See CopyDBParameterGroup for usage and error information.
  507. //
  508. // Creating a request object using this method should be used when you want to inject
  509. // custom logic into the request's lifecycle using a custom handler, or if you want to
  510. // access properties on the request object before or after sending the request. If
  511. // you just want the service response, call the CopyDBParameterGroup method directly
  512. // instead.
  513. //
  514. // Note: You must call the "Send" method on the returned request object in order
  515. // to execute the request.
  516. //
  517. // // Example sending a request using the CopyDBParameterGroupRequest method.
  518. // req, resp := client.CopyDBParameterGroupRequest(params)
  519. //
  520. // err := req.Send()
  521. // if err == nil { // resp is now filled
  522. // fmt.Println(resp)
  523. // }
  524. //
  525. func (c *RDS) CopyDBParameterGroupRequest(input *CopyDBParameterGroupInput) (req *request.Request, output *CopyDBParameterGroupOutput) {
  526. op := &request.Operation{
  527. Name: opCopyDBParameterGroup,
  528. HTTPMethod: "POST",
  529. HTTPPath: "/",
  530. }
  531. if input == nil {
  532. input = &CopyDBParameterGroupInput{}
  533. }
  534. req = c.newRequest(op, input, output)
  535. output = &CopyDBParameterGroupOutput{}
  536. req.Data = output
  537. return
  538. }
  539. // CopyDBParameterGroup API operation for Amazon Relational Database Service.
  540. //
  541. // Copies the specified DB parameter group.
  542. //
  543. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  544. // with awserr.Error's Code and Message methods to get detailed information about
  545. // the error.
  546. //
  547. // See the AWS API reference guide for Amazon Relational Database Service's
  548. // API operation CopyDBParameterGroup for usage and error information.
  549. //
  550. // Returned Error Codes:
  551. // * DBParameterGroupNotFound
  552. // DBParameterGroupName does not refer to an existing DB parameter group.
  553. //
  554. // * DBParameterGroupAlreadyExists
  555. // A DB parameter group with the same name exists.
  556. //
  557. // * DBParameterGroupQuotaExceeded
  558. // Request would result in user exceeding the allowed number of DB parameter
  559. // groups.
  560. //
  561. func (c *RDS) CopyDBParameterGroup(input *CopyDBParameterGroupInput) (*CopyDBParameterGroupOutput, error) {
  562. req, out := c.CopyDBParameterGroupRequest(input)
  563. err := req.Send()
  564. return out, err
  565. }
  566. const opCopyDBSnapshot = "CopyDBSnapshot"
  567. // CopyDBSnapshotRequest generates a "aws/request.Request" representing the
  568. // client's request for the CopyDBSnapshot operation. The "output" return
  569. // value can be used to capture response data after the request's "Send" method
  570. // is called.
  571. //
  572. // See CopyDBSnapshot for usage and error information.
  573. //
  574. // Creating a request object using this method should be used when you want to inject
  575. // custom logic into the request's lifecycle using a custom handler, or if you want to
  576. // access properties on the request object before or after sending the request. If
  577. // you just want the service response, call the CopyDBSnapshot method directly
  578. // instead.
  579. //
  580. // Note: You must call the "Send" method on the returned request object in order
  581. // to execute the request.
  582. //
  583. // // Example sending a request using the CopyDBSnapshotRequest method.
  584. // req, resp := client.CopyDBSnapshotRequest(params)
  585. //
  586. // err := req.Send()
  587. // if err == nil { // resp is now filled
  588. // fmt.Println(resp)
  589. // }
  590. //
  591. func (c *RDS) CopyDBSnapshotRequest(input *CopyDBSnapshotInput) (req *request.Request, output *CopyDBSnapshotOutput) {
  592. op := &request.Operation{
  593. Name: opCopyDBSnapshot,
  594. HTTPMethod: "POST",
  595. HTTPPath: "/",
  596. }
  597. if input == nil {
  598. input = &CopyDBSnapshotInput{}
  599. }
  600. req = c.newRequest(op, input, output)
  601. output = &CopyDBSnapshotOutput{}
  602. req.Data = output
  603. return
  604. }
  605. // CopyDBSnapshot API operation for Amazon Relational Database Service.
  606. //
  607. // Copies the specified DB snapshot. The source DB snapshot must be in the "available"
  608. // state.
  609. //
  610. // If you are copying from a shared manual DB snapshot, the SourceDBSnapshotIdentifier
  611. // must be the ARN of the shared DB snapshot.
  612. //
  613. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  614. // with awserr.Error's Code and Message methods to get detailed information about
  615. // the error.
  616. //
  617. // See the AWS API reference guide for Amazon Relational Database Service's
  618. // API operation CopyDBSnapshot for usage and error information.
  619. //
  620. // Returned Error Codes:
  621. // * DBSnapshotAlreadyExists
  622. // DBSnapshotIdentifier is already used by an existing snapshot.
  623. //
  624. // * DBSnapshotNotFound
  625. // DBSnapshotIdentifier does not refer to an existing DB snapshot.
  626. //
  627. // * InvalidDBSnapshotState
  628. // The state of the DB snapshot does not allow deletion.
  629. //
  630. // * SnapshotQuotaExceeded
  631. // Request would result in user exceeding the allowed number of DB snapshots.
  632. //
  633. // * KMSKeyNotAccessibleFault
  634. // Error accessing KMS key.
  635. //
  636. func (c *RDS) CopyDBSnapshot(input *CopyDBSnapshotInput) (*CopyDBSnapshotOutput, error) {
  637. req, out := c.CopyDBSnapshotRequest(input)
  638. err := req.Send()
  639. return out, err
  640. }
  641. const opCopyOptionGroup = "CopyOptionGroup"
  642. // CopyOptionGroupRequest generates a "aws/request.Request" representing the
  643. // client's request for the CopyOptionGroup operation. The "output" return
  644. // value can be used to capture response data after the request's "Send" method
  645. // is called.
  646. //
  647. // See CopyOptionGroup for usage and error information.
  648. //
  649. // Creating a request object using this method should be used when you want to inject
  650. // custom logic into the request's lifecycle using a custom handler, or if you want to
  651. // access properties on the request object before or after sending the request. If
  652. // you just want the service response, call the CopyOptionGroup method directly
  653. // instead.
  654. //
  655. // Note: You must call the "Send" method on the returned request object in order
  656. // to execute the request.
  657. //
  658. // // Example sending a request using the CopyOptionGroupRequest method.
  659. // req, resp := client.CopyOptionGroupRequest(params)
  660. //
  661. // err := req.Send()
  662. // if err == nil { // resp is now filled
  663. // fmt.Println(resp)
  664. // }
  665. //
  666. func (c *RDS) CopyOptionGroupRequest(input *CopyOptionGroupInput) (req *request.Request, output *CopyOptionGroupOutput) {
  667. op := &request.Operation{
  668. Name: opCopyOptionGroup,
  669. HTTPMethod: "POST",
  670. HTTPPath: "/",
  671. }
  672. if input == nil {
  673. input = &CopyOptionGroupInput{}
  674. }
  675. req = c.newRequest(op, input, output)
  676. output = &CopyOptionGroupOutput{}
  677. req.Data = output
  678. return
  679. }
  680. // CopyOptionGroup API operation for Amazon Relational Database Service.
  681. //
  682. // Copies the specified option group.
  683. //
  684. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  685. // with awserr.Error's Code and Message methods to get detailed information about
  686. // the error.
  687. //
  688. // See the AWS API reference guide for Amazon Relational Database Service's
  689. // API operation CopyOptionGroup for usage and error information.
  690. //
  691. // Returned Error Codes:
  692. // * OptionGroupAlreadyExistsFault
  693. // The option group you are trying to create already exists.
  694. //
  695. // * OptionGroupNotFoundFault
  696. // The specified option group could not be found.
  697. //
  698. // * OptionGroupQuotaExceededFault
  699. // The quota of 20 option groups was exceeded for this AWS account.
  700. //
  701. func (c *RDS) CopyOptionGroup(input *CopyOptionGroupInput) (*CopyOptionGroupOutput, error) {
  702. req, out := c.CopyOptionGroupRequest(input)
  703. err := req.Send()
  704. return out, err
  705. }
  706. const opCreateDBCluster = "CreateDBCluster"
  707. // CreateDBClusterRequest generates a "aws/request.Request" representing the
  708. // client's request for the CreateDBCluster operation. The "output" return
  709. // value can be used to capture response data after the request's "Send" method
  710. // is called.
  711. //
  712. // See CreateDBCluster for usage and error information.
  713. //
  714. // Creating a request object using this method should be used when you want to inject
  715. // custom logic into the request's lifecycle using a custom handler, or if you want to
  716. // access properties on the request object before or after sending the request. If
  717. // you just want the service response, call the CreateDBCluster method directly
  718. // instead.
  719. //
  720. // Note: You must call the "Send" method on the returned request object in order
  721. // to execute the request.
  722. //
  723. // // Example sending a request using the CreateDBClusterRequest method.
  724. // req, resp := client.CreateDBClusterRequest(params)
  725. //
  726. // err := req.Send()
  727. // if err == nil { // resp is now filled
  728. // fmt.Println(resp)
  729. // }
  730. //
  731. func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request.Request, output *CreateDBClusterOutput) {
  732. op := &request.Operation{
  733. Name: opCreateDBCluster,
  734. HTTPMethod: "POST",
  735. HTTPPath: "/",
  736. }
  737. if input == nil {
  738. input = &CreateDBClusterInput{}
  739. }
  740. req = c.newRequest(op, input, output)
  741. output = &CreateDBClusterOutput{}
  742. req.Data = output
  743. return
  744. }
  745. // CreateDBCluster API operation for Amazon Relational Database Service.
  746. //
  747. // Creates a new Amazon Aurora DB cluster.
  748. //
  749. // You can use the ReplicationSourceIdentifier parameter to create the DB cluster
  750. // as a Read Replica of another DB cluster.
  751. //
  752. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  753. // in the Amazon RDS User Guide.
  754. //
  755. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  756. // with awserr.Error's Code and Message methods to get detailed information about
  757. // the error.
  758. //
  759. // See the AWS API reference guide for Amazon Relational Database Service's
  760. // API operation CreateDBCluster for usage and error information.
  761. //
  762. // Returned Error Codes:
  763. // * DBClusterAlreadyExistsFault
  764. // User already has a DB cluster with the given identifier.
  765. //
  766. // * InsufficientStorageClusterCapacity
  767. // There is insufficient storage available for the current action. You may be
  768. // able to resolve this error by updating your subnet group to use different
  769. // Availability Zones that have more storage available.
  770. //
  771. // * DBClusterQuotaExceededFault
  772. // User attempted to create a new DB cluster and the user has already reached
  773. // the maximum allowed DB cluster quota.
  774. //
  775. // * StorageQuotaExceeded
  776. // Request would result in user exceeding the allowed amount of storage available
  777. // across all DB instances.
  778. //
  779. // * DBSubnetGroupNotFoundFault
  780. // DBSubnetGroupName does not refer to an existing DB subnet group.
  781. //
  782. // * InvalidVPCNetworkStateFault
  783. // DB subnet group does not cover all Availability Zones after it is created
  784. // because users' change.
  785. //
  786. // * InvalidDBClusterStateFault
  787. // The DB cluster is not in a valid state.
  788. //
  789. // * InvalidDBSubnetGroupStateFault
  790. // The DB subnet group cannot be deleted because it is in use.
  791. //
  792. // * InvalidSubnet
  793. // The requested subnet is invalid, or multiple subnets were requested that
  794. // are not all in a common VPC.
  795. //
  796. // * DBClusterParameterGroupNotFound
  797. // DBClusterParameterGroupName does not refer to an existing DB Cluster parameter
  798. // group.
  799. //
  800. // * KMSKeyNotAccessibleFault
  801. // Error accessing KMS key.
  802. //
  803. // * DBClusterNotFoundFault
  804. // DBClusterIdentifier does not refer to an existing DB cluster.
  805. //
  806. func (c *RDS) CreateDBCluster(input *CreateDBClusterInput) (*CreateDBClusterOutput, error) {
  807. req, out := c.CreateDBClusterRequest(input)
  808. err := req.Send()
  809. return out, err
  810. }
  811. const opCreateDBClusterParameterGroup = "CreateDBClusterParameterGroup"
  812. // CreateDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  813. // client's request for the CreateDBClusterParameterGroup operation. The "output" return
  814. // value can be used to capture response data after the request's "Send" method
  815. // is called.
  816. //
  817. // See CreateDBClusterParameterGroup for usage and error information.
  818. //
  819. // Creating a request object using this method should be used when you want to inject
  820. // custom logic into the request's lifecycle using a custom handler, or if you want to
  821. // access properties on the request object before or after sending the request. If
  822. // you just want the service response, call the CreateDBClusterParameterGroup method directly
  823. // instead.
  824. //
  825. // Note: You must call the "Send" method on the returned request object in order
  826. // to execute the request.
  827. //
  828. // // Example sending a request using the CreateDBClusterParameterGroupRequest method.
  829. // req, resp := client.CreateDBClusterParameterGroupRequest(params)
  830. //
  831. // err := req.Send()
  832. // if err == nil { // resp is now filled
  833. // fmt.Println(resp)
  834. // }
  835. //
  836. func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParameterGroupInput) (req *request.Request, output *CreateDBClusterParameterGroupOutput) {
  837. op := &request.Operation{
  838. Name: opCreateDBClusterParameterGroup,
  839. HTTPMethod: "POST",
  840. HTTPPath: "/",
  841. }
  842. if input == nil {
  843. input = &CreateDBClusterParameterGroupInput{}
  844. }
  845. req = c.newRequest(op, input, output)
  846. output = &CreateDBClusterParameterGroupOutput{}
  847. req.Data = output
  848. return
  849. }
  850. // CreateDBClusterParameterGroup API operation for Amazon Relational Database Service.
  851. //
  852. // Creates a new DB cluster parameter group.
  853. //
  854. // Parameters in a DB cluster parameter group apply to all of the instances
  855. // in a DB cluster.
  856. //
  857. // A DB cluster parameter group is initially created with the default parameters
  858. // for the database engine used by instances in the DB cluster. To provide custom
  859. // values for any of the parameters, you must modify the group after creating
  860. // it using ModifyDBClusterParameterGroup. Once you've created a DB cluster
  861. // parameter group, you need to associate it with your DB cluster using ModifyDBCluster.
  862. // When you associate a new DB cluster parameter group with a running DB cluster,
  863. // you need to reboot the DB instances in the DB cluster without failover for
  864. // the new DB cluster parameter group and associated settings to take effect.
  865. //
  866. // After you create a DB cluster parameter group, you should wait at least 5
  867. // minutes before creating your first DB cluster that uses that DB cluster parameter
  868. // group as the default parameter group. This allows Amazon RDS to fully complete
  869. // the create action before the DB cluster parameter group is used as the default
  870. // for a new DB cluster. This is especially important for parameters that are
  871. // critical when creating the default database for a DB cluster, such as the
  872. // character set for the default database defined by the character_set_database
  873. // parameter. You can use the Parameter Groups option of the Amazon RDS console
  874. // (https://console.aws.amazon.com/rds/) or the DescribeDBClusterParameters
  875. // command to verify that your DB cluster parameter group has been created or
  876. // modified.
  877. //
  878. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  879. // in the Amazon RDS User Guide.
  880. //
  881. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  882. // with awserr.Error's Code and Message methods to get detailed information about
  883. // the error.
  884. //
  885. // See the AWS API reference guide for Amazon Relational Database Service's
  886. // API operation CreateDBClusterParameterGroup for usage and error information.
  887. //
  888. // Returned Error Codes:
  889. // * DBParameterGroupQuotaExceeded
  890. // Request would result in user exceeding the allowed number of DB parameter
  891. // groups.
  892. //
  893. // * DBParameterGroupAlreadyExists
  894. // A DB parameter group with the same name exists.
  895. //
  896. func (c *RDS) CreateDBClusterParameterGroup(input *CreateDBClusterParameterGroupInput) (*CreateDBClusterParameterGroupOutput, error) {
  897. req, out := c.CreateDBClusterParameterGroupRequest(input)
  898. err := req.Send()
  899. return out, err
  900. }
  901. const opCreateDBClusterSnapshot = "CreateDBClusterSnapshot"
  902. // CreateDBClusterSnapshotRequest generates a "aws/request.Request" representing the
  903. // client's request for the CreateDBClusterSnapshot operation. The "output" return
  904. // value can be used to capture response data after the request's "Send" method
  905. // is called.
  906. //
  907. // See CreateDBClusterSnapshot for usage and error information.
  908. //
  909. // Creating a request object using this method should be used when you want to inject
  910. // custom logic into the request's lifecycle using a custom handler, or if you want to
  911. // access properties on the request object before or after sending the request. If
  912. // you just want the service response, call the CreateDBClusterSnapshot method directly
  913. // instead.
  914. //
  915. // Note: You must call the "Send" method on the returned request object in order
  916. // to execute the request.
  917. //
  918. // // Example sending a request using the CreateDBClusterSnapshotRequest method.
  919. // req, resp := client.CreateDBClusterSnapshotRequest(params)
  920. //
  921. // err := req.Send()
  922. // if err == nil { // resp is now filled
  923. // fmt.Println(resp)
  924. // }
  925. //
  926. func (c *RDS) CreateDBClusterSnapshotRequest(input *CreateDBClusterSnapshotInput) (req *request.Request, output *CreateDBClusterSnapshotOutput) {
  927. op := &request.Operation{
  928. Name: opCreateDBClusterSnapshot,
  929. HTTPMethod: "POST",
  930. HTTPPath: "/",
  931. }
  932. if input == nil {
  933. input = &CreateDBClusterSnapshotInput{}
  934. }
  935. req = c.newRequest(op, input, output)
  936. output = &CreateDBClusterSnapshotOutput{}
  937. req.Data = output
  938. return
  939. }
  940. // CreateDBClusterSnapshot API operation for Amazon Relational Database Service.
  941. //
  942. // Creates a snapshot of a DB cluster. For more information on Amazon Aurora,
  943. // see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  944. // in the Amazon RDS User Guide.
  945. //
  946. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  947. // with awserr.Error's Code and Message methods to get detailed information about
  948. // the error.
  949. //
  950. // See the AWS API reference guide for Amazon Relational Database Service's
  951. // API operation CreateDBClusterSnapshot for usage and error information.
  952. //
  953. // Returned Error Codes:
  954. // * DBClusterSnapshotAlreadyExistsFault
  955. // User already has a DB cluster snapshot with the given identifier.
  956. //
  957. // * InvalidDBClusterStateFault
  958. // The DB cluster is not in a valid state.
  959. //
  960. // * DBClusterNotFoundFault
  961. // DBClusterIdentifier does not refer to an existing DB cluster.
  962. //
  963. // * SnapshotQuotaExceeded
  964. // Request would result in user exceeding the allowed number of DB snapshots.
  965. //
  966. // * InvalidDBClusterSnapshotStateFault
  967. // The supplied value is not a valid DB cluster snapshot state.
  968. //
  969. func (c *RDS) CreateDBClusterSnapshot(input *CreateDBClusterSnapshotInput) (*CreateDBClusterSnapshotOutput, error) {
  970. req, out := c.CreateDBClusterSnapshotRequest(input)
  971. err := req.Send()
  972. return out, err
  973. }
  974. const opCreateDBInstance = "CreateDBInstance"
  975. // CreateDBInstanceRequest generates a "aws/request.Request" representing the
  976. // client's request for the CreateDBInstance operation. The "output" return
  977. // value can be used to capture response data after the request's "Send" method
  978. // is called.
  979. //
  980. // See CreateDBInstance for usage and error information.
  981. //
  982. // Creating a request object using this method should be used when you want to inject
  983. // custom logic into the request's lifecycle using a custom handler, or if you want to
  984. // access properties on the request object before or after sending the request. If
  985. // you just want the service response, call the CreateDBInstance method directly
  986. // instead.
  987. //
  988. // Note: You must call the "Send" method on the returned request object in order
  989. // to execute the request.
  990. //
  991. // // Example sending a request using the CreateDBInstanceRequest method.
  992. // req, resp := client.CreateDBInstanceRequest(params)
  993. //
  994. // err := req.Send()
  995. // if err == nil { // resp is now filled
  996. // fmt.Println(resp)
  997. // }
  998. //
  999. func (c *RDS) CreateDBInstanceRequest(input *CreateDBInstanceInput) (req *request.Request, output *CreateDBInstanceOutput) {
  1000. op := &request.Operation{
  1001. Name: opCreateDBInstance,
  1002. HTTPMethod: "POST",
  1003. HTTPPath: "/",
  1004. }
  1005. if input == nil {
  1006. input = &CreateDBInstanceInput{}
  1007. }
  1008. req = c.newRequest(op, input, output)
  1009. output = &CreateDBInstanceOutput{}
  1010. req.Data = output
  1011. return
  1012. }
  1013. // CreateDBInstance API operation for Amazon Relational Database Service.
  1014. //
  1015. // Creates a new DB instance.
  1016. //
  1017. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1018. // with awserr.Error's Code and Message methods to get detailed information about
  1019. // the error.
  1020. //
  1021. // See the AWS API reference guide for Amazon Relational Database Service's
  1022. // API operation CreateDBInstance for usage and error information.
  1023. //
  1024. // Returned Error Codes:
  1025. // * DBInstanceAlreadyExists
  1026. // User already has a DB instance with the given identifier.
  1027. //
  1028. // * InsufficientDBInstanceCapacity
  1029. // Specified DB instance class is not available in the specified Availability
  1030. // Zone.
  1031. //
  1032. // * DBParameterGroupNotFound
  1033. // DBParameterGroupName does not refer to an existing DB parameter group.
  1034. //
  1035. // * DBSecurityGroupNotFound
  1036. // DBSecurityGroupName does not refer to an existing DB security group.
  1037. //
  1038. // * InstanceQuotaExceeded
  1039. // Request would result in user exceeding the allowed number of DB instances.
  1040. //
  1041. // * StorageQuotaExceeded
  1042. // Request would result in user exceeding the allowed amount of storage available
  1043. // across all DB instances.
  1044. //
  1045. // * DBSubnetGroupNotFoundFault
  1046. // DBSubnetGroupName does not refer to an existing DB subnet group.
  1047. //
  1048. // * DBSubnetGroupDoesNotCoverEnoughAZs
  1049. // Subnets in the DB subnet group should cover at least two Availability Zones
  1050. // unless there is only one Availability Zone.
  1051. //
  1052. // * InvalidDBClusterStateFault
  1053. // The DB cluster is not in a valid state.
  1054. //
  1055. // * InvalidSubnet
  1056. // The requested subnet is invalid, or multiple subnets were requested that
  1057. // are not all in a common VPC.
  1058. //
  1059. // * InvalidVPCNetworkStateFault
  1060. // DB subnet group does not cover all Availability Zones after it is created
  1061. // because users' change.
  1062. //
  1063. // * ProvisionedIopsNotAvailableInAZFault
  1064. // Provisioned IOPS not available in the specified Availability Zone.
  1065. //
  1066. // * OptionGroupNotFoundFault
  1067. // The specified option group could not be found.
  1068. //
  1069. // * DBClusterNotFoundFault
  1070. // DBClusterIdentifier does not refer to an existing DB cluster.
  1071. //
  1072. // * StorageTypeNotSupported
  1073. // StorageType specified cannot be associated with the DB Instance.
  1074. //
  1075. // * AuthorizationNotFound
  1076. // Specified CIDRIP or EC2 security group is not authorized for the specified
  1077. // DB security group.
  1078. //
  1079. // RDS may not also be authorized via IAM to perform necessary actions on your
  1080. // behalf.
  1081. //
  1082. // * KMSKeyNotAccessibleFault
  1083. // Error accessing KMS key.
  1084. //
  1085. // * DomainNotFoundFault
  1086. // Domain does not refer to an existing Active Directory Domain.
  1087. //
  1088. func (c *RDS) CreateDBInstance(input *CreateDBInstanceInput) (*CreateDBInstanceOutput, error) {
  1089. req, out := c.CreateDBInstanceRequest(input)
  1090. err := req.Send()
  1091. return out, err
  1092. }
  1093. const opCreateDBInstanceReadReplica = "CreateDBInstanceReadReplica"
  1094. // CreateDBInstanceReadReplicaRequest generates a "aws/request.Request" representing the
  1095. // client's request for the CreateDBInstanceReadReplica operation. The "output" return
  1096. // value can be used to capture response data after the request's "Send" method
  1097. // is called.
  1098. //
  1099. // See CreateDBInstanceReadReplica for usage and error information.
  1100. //
  1101. // Creating a request object using this method should be used when you want to inject
  1102. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1103. // access properties on the request object before or after sending the request. If
  1104. // you just want the service response, call the CreateDBInstanceReadReplica method directly
  1105. // instead.
  1106. //
  1107. // Note: You must call the "Send" method on the returned request object in order
  1108. // to execute the request.
  1109. //
  1110. // // Example sending a request using the CreateDBInstanceReadReplicaRequest method.
  1111. // req, resp := client.CreateDBInstanceReadReplicaRequest(params)
  1112. //
  1113. // err := req.Send()
  1114. // if err == nil { // resp is now filled
  1115. // fmt.Println(resp)
  1116. // }
  1117. //
  1118. func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadReplicaInput) (req *request.Request, output *CreateDBInstanceReadReplicaOutput) {
  1119. op := &request.Operation{
  1120. Name: opCreateDBInstanceReadReplica,
  1121. HTTPMethod: "POST",
  1122. HTTPPath: "/",
  1123. }
  1124. if input == nil {
  1125. input = &CreateDBInstanceReadReplicaInput{}
  1126. }
  1127. req = c.newRequest(op, input, output)
  1128. output = &CreateDBInstanceReadReplicaOutput{}
  1129. req.Data = output
  1130. return
  1131. }
  1132. // CreateDBInstanceReadReplica API operation for Amazon Relational Database Service.
  1133. //
  1134. // Creates a DB instance for a DB instance running MySQL, MariaDB, or PostgreSQL
  1135. // that acts as a Read Replica of a source DB instance.
  1136. //
  1137. // All Read Replica DB instances are created as Single-AZ deployments with backups
  1138. // disabled. All other DB instance attributes (including DB security groups
  1139. // and DB parameter groups) are inherited from the source DB instance, except
  1140. // as specified below.
  1141. //
  1142. // The source DB instance must have backup retention enabled.
  1143. //
  1144. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1145. // with awserr.Error's Code and Message methods to get detailed information about
  1146. // the error.
  1147. //
  1148. // See the AWS API reference guide for Amazon Relational Database Service's
  1149. // API operation CreateDBInstanceReadReplica for usage and error information.
  1150. //
  1151. // Returned Error Codes:
  1152. // * DBInstanceAlreadyExists
  1153. // User already has a DB instance with the given identifier.
  1154. //
  1155. // * InsufficientDBInstanceCapacity
  1156. // Specified DB instance class is not available in the specified Availability
  1157. // Zone.
  1158. //
  1159. // * DBParameterGroupNotFound
  1160. // DBParameterGroupName does not refer to an existing DB parameter group.
  1161. //
  1162. // * DBSecurityGroupNotFound
  1163. // DBSecurityGroupName does not refer to an existing DB security group.
  1164. //
  1165. // * InstanceQuotaExceeded
  1166. // Request would result in user exceeding the allowed number of DB instances.
  1167. //
  1168. // * StorageQuotaExceeded
  1169. // Request would result in user exceeding the allowed amount of storage available
  1170. // across all DB instances.
  1171. //
  1172. // * DBInstanceNotFound
  1173. // DBInstanceIdentifier does not refer to an existing DB instance.
  1174. //
  1175. // * InvalidDBInstanceState
  1176. // The specified DB instance is not in the available state.
  1177. //
  1178. // * DBSubnetGroupNotFoundFault
  1179. // DBSubnetGroupName does not refer to an existing DB subnet group.
  1180. //
  1181. // * DBSubnetGroupDoesNotCoverEnoughAZs
  1182. // Subnets in the DB subnet group should cover at least two Availability Zones
  1183. // unless there is only one Availability Zone.
  1184. //
  1185. // * InvalidSubnet
  1186. // The requested subnet is invalid, or multiple subnets were requested that
  1187. // are not all in a common VPC.
  1188. //
  1189. // * InvalidVPCNetworkStateFault
  1190. // DB subnet group does not cover all Availability Zones after it is created
  1191. // because users' change.
  1192. //
  1193. // * ProvisionedIopsNotAvailableInAZFault
  1194. // Provisioned IOPS not available in the specified Availability Zone.
  1195. //
  1196. // * OptionGroupNotFoundFault
  1197. // The specified option group could not be found.
  1198. //
  1199. // * DBSubnetGroupNotAllowedFault
  1200. // Indicates that the DBSubnetGroup should not be specified while creating read
  1201. // replicas that lie in the same region as the source instance.
  1202. //
  1203. // * InvalidDBSubnetGroupFault
  1204. // Indicates the DBSubnetGroup does not belong to the same VPC as that of an
  1205. // existing cross region read replica of the same source instance.
  1206. //
  1207. // * StorageTypeNotSupported
  1208. // StorageType specified cannot be associated with the DB Instance.
  1209. //
  1210. // * KMSKeyNotAccessibleFault
  1211. // Error accessing KMS key.
  1212. //
  1213. func (c *RDS) CreateDBInstanceReadReplica(input *CreateDBInstanceReadReplicaInput) (*CreateDBInstanceReadReplicaOutput, error) {
  1214. req, out := c.CreateDBInstanceReadReplicaRequest(input)
  1215. err := req.Send()
  1216. return out, err
  1217. }
  1218. const opCreateDBParameterGroup = "CreateDBParameterGroup"
  1219. // CreateDBParameterGroupRequest generates a "aws/request.Request" representing the
  1220. // client's request for the CreateDBParameterGroup operation. The "output" return
  1221. // value can be used to capture response data after the request's "Send" method
  1222. // is called.
  1223. //
  1224. // See CreateDBParameterGroup for usage and error information.
  1225. //
  1226. // Creating a request object using this method should be used when you want to inject
  1227. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1228. // access properties on the request object before or after sending the request. If
  1229. // you just want the service response, call the CreateDBParameterGroup method directly
  1230. // instead.
  1231. //
  1232. // Note: You must call the "Send" method on the returned request object in order
  1233. // to execute the request.
  1234. //
  1235. // // Example sending a request using the CreateDBParameterGroupRequest method.
  1236. // req, resp := client.CreateDBParameterGroupRequest(params)
  1237. //
  1238. // err := req.Send()
  1239. // if err == nil { // resp is now filled
  1240. // fmt.Println(resp)
  1241. // }
  1242. //
  1243. func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) (req *request.Request, output *CreateDBParameterGroupOutput) {
  1244. op := &request.Operation{
  1245. Name: opCreateDBParameterGroup,
  1246. HTTPMethod: "POST",
  1247. HTTPPath: "/",
  1248. }
  1249. if input == nil {
  1250. input = &CreateDBParameterGroupInput{}
  1251. }
  1252. req = c.newRequest(op, input, output)
  1253. output = &CreateDBParameterGroupOutput{}
  1254. req.Data = output
  1255. return
  1256. }
  1257. // CreateDBParameterGroup API operation for Amazon Relational Database Service.
  1258. //
  1259. // Creates a new DB parameter group.
  1260. //
  1261. // A DB parameter group is initially created with the default parameters for
  1262. // the database engine used by the DB instance. To provide custom values for
  1263. // any of the parameters, you must modify the group after creating it using
  1264. // ModifyDBParameterGroup. Once you've created a DB parameter group, you need
  1265. // to associate it with your DB instance using ModifyDBInstance. When you associate
  1266. // a new DB parameter group with a running DB instance, you need to reboot the
  1267. // DB instance without failover for the new DB parameter group and associated
  1268. // settings to take effect.
  1269. //
  1270. // After you create a DB parameter group, you should wait at least 5 minutes
  1271. // before creating your first DB instance that uses that DB parameter group
  1272. // as the default parameter group. This allows Amazon RDS to fully complete
  1273. // the create action before the parameter group is used as the default for a
  1274. // new DB instance. This is especially important for parameters that are critical
  1275. // when creating the default database for a DB instance, such as the character
  1276. // set for the default database defined by the character_set_database parameter.
  1277. // You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/)
  1278. // or the DescribeDBParameters command to verify that your DB parameter group
  1279. // has been created or modified.
  1280. //
  1281. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1282. // with awserr.Error's Code and Message methods to get detailed information about
  1283. // the error.
  1284. //
  1285. // See the AWS API reference guide for Amazon Relational Database Service's
  1286. // API operation CreateDBParameterGroup for usage and error information.
  1287. //
  1288. // Returned Error Codes:
  1289. // * DBParameterGroupQuotaExceeded
  1290. // Request would result in user exceeding the allowed number of DB parameter
  1291. // groups.
  1292. //
  1293. // * DBParameterGroupAlreadyExists
  1294. // A DB parameter group with the same name exists.
  1295. //
  1296. func (c *RDS) CreateDBParameterGroup(input *CreateDBParameterGroupInput) (*CreateDBParameterGroupOutput, error) {
  1297. req, out := c.CreateDBParameterGroupRequest(input)
  1298. err := req.Send()
  1299. return out, err
  1300. }
  1301. const opCreateDBSecurityGroup = "CreateDBSecurityGroup"
  1302. // CreateDBSecurityGroupRequest generates a "aws/request.Request" representing the
  1303. // client's request for the CreateDBSecurityGroup operation. The "output" return
  1304. // value can be used to capture response data after the request's "Send" method
  1305. // is called.
  1306. //
  1307. // See CreateDBSecurityGroup for usage and error information.
  1308. //
  1309. // Creating a request object using this method should be used when you want to inject
  1310. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1311. // access properties on the request object before or after sending the request. If
  1312. // you just want the service response, call the CreateDBSecurityGroup method directly
  1313. // instead.
  1314. //
  1315. // Note: You must call the "Send" method on the returned request object in order
  1316. // to execute the request.
  1317. //
  1318. // // Example sending a request using the CreateDBSecurityGroupRequest method.
  1319. // req, resp := client.CreateDBSecurityGroupRequest(params)
  1320. //
  1321. // err := req.Send()
  1322. // if err == nil { // resp is now filled
  1323. // fmt.Println(resp)
  1324. // }
  1325. //
  1326. func (c *RDS) CreateDBSecurityGroupRequest(input *CreateDBSecurityGroupInput) (req *request.Request, output *CreateDBSecurityGroupOutput) {
  1327. op := &request.Operation{
  1328. Name: opCreateDBSecurityGroup,
  1329. HTTPMethod: "POST",
  1330. HTTPPath: "/",
  1331. }
  1332. if input == nil {
  1333. input = &CreateDBSecurityGroupInput{}
  1334. }
  1335. req = c.newRequest(op, input, output)
  1336. output = &CreateDBSecurityGroupOutput{}
  1337. req.Data = output
  1338. return
  1339. }
  1340. // CreateDBSecurityGroup API operation for Amazon Relational Database Service.
  1341. //
  1342. // Creates a new DB security group. DB security groups control access to a DB
  1343. // instance.
  1344. //
  1345. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1346. // with awserr.Error's Code and Message methods to get detailed information about
  1347. // the error.
  1348. //
  1349. // See the AWS API reference guide for Amazon Relational Database Service's
  1350. // API operation CreateDBSecurityGroup for usage and error information.
  1351. //
  1352. // Returned Error Codes:
  1353. // * DBSecurityGroupAlreadyExists
  1354. // A DB security group with the name specified in DBSecurityGroupName already
  1355. // exists.
  1356. //
  1357. // * QuotaExceeded.DBSecurityGroup
  1358. // Request would result in user exceeding the allowed number of DB security
  1359. // groups.
  1360. //
  1361. // * DBSecurityGroupNotSupported
  1362. // A DB security group is not allowed for this action.
  1363. //
  1364. func (c *RDS) CreateDBSecurityGroup(input *CreateDBSecurityGroupInput) (*CreateDBSecurityGroupOutput, error) {
  1365. req, out := c.CreateDBSecurityGroupRequest(input)
  1366. err := req.Send()
  1367. return out, err
  1368. }
  1369. const opCreateDBSnapshot = "CreateDBSnapshot"
  1370. // CreateDBSnapshotRequest generates a "aws/request.Request" representing the
  1371. // client's request for the CreateDBSnapshot operation. The "output" return
  1372. // value can be used to capture response data after the request's "Send" method
  1373. // is called.
  1374. //
  1375. // See CreateDBSnapshot for usage and error information.
  1376. //
  1377. // Creating a request object using this method should be used when you want to inject
  1378. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1379. // access properties on the request object before or after sending the request. If
  1380. // you just want the service response, call the CreateDBSnapshot method directly
  1381. // instead.
  1382. //
  1383. // Note: You must call the "Send" method on the returned request object in order
  1384. // to execute the request.
  1385. //
  1386. // // Example sending a request using the CreateDBSnapshotRequest method.
  1387. // req, resp := client.CreateDBSnapshotRequest(params)
  1388. //
  1389. // err := req.Send()
  1390. // if err == nil { // resp is now filled
  1391. // fmt.Println(resp)
  1392. // }
  1393. //
  1394. func (c *RDS) CreateDBSnapshotRequest(input *CreateDBSnapshotInput) (req *request.Request, output *CreateDBSnapshotOutput) {
  1395. op := &request.Operation{
  1396. Name: opCreateDBSnapshot,
  1397. HTTPMethod: "POST",
  1398. HTTPPath: "/",
  1399. }
  1400. if input == nil {
  1401. input = &CreateDBSnapshotInput{}
  1402. }
  1403. req = c.newRequest(op, input, output)
  1404. output = &CreateDBSnapshotOutput{}
  1405. req.Data = output
  1406. return
  1407. }
  1408. // CreateDBSnapshot API operation for Amazon Relational Database Service.
  1409. //
  1410. // Creates a DBSnapshot. The source DBInstance must be in "available" state.
  1411. //
  1412. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1413. // with awserr.Error's Code and Message methods to get detailed information about
  1414. // the error.
  1415. //
  1416. // See the AWS API reference guide for Amazon Relational Database Service's
  1417. // API operation CreateDBSnapshot for usage and error information.
  1418. //
  1419. // Returned Error Codes:
  1420. // * DBSnapshotAlreadyExists
  1421. // DBSnapshotIdentifier is already used by an existing snapshot.
  1422. //
  1423. // * InvalidDBInstanceState
  1424. // The specified DB instance is not in the available state.
  1425. //
  1426. // * DBInstanceNotFound
  1427. // DBInstanceIdentifier does not refer to an existing DB instance.
  1428. //
  1429. // * SnapshotQuotaExceeded
  1430. // Request would result in user exceeding the allowed number of DB snapshots.
  1431. //
  1432. func (c *RDS) CreateDBSnapshot(input *CreateDBSnapshotInput) (*CreateDBSnapshotOutput, error) {
  1433. req, out := c.CreateDBSnapshotRequest(input)
  1434. err := req.Send()
  1435. return out, err
  1436. }
  1437. const opCreateDBSubnetGroup = "CreateDBSubnetGroup"
  1438. // CreateDBSubnetGroupRequest generates a "aws/request.Request" representing the
  1439. // client's request for the CreateDBSubnetGroup operation. The "output" return
  1440. // value can be used to capture response data after the request's "Send" method
  1441. // is called.
  1442. //
  1443. // See CreateDBSubnetGroup for usage and error information.
  1444. //
  1445. // Creating a request object using this method should be used when you want to inject
  1446. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1447. // access properties on the request object before or after sending the request. If
  1448. // you just want the service response, call the CreateDBSubnetGroup method directly
  1449. // instead.
  1450. //
  1451. // Note: You must call the "Send" method on the returned request object in order
  1452. // to execute the request.
  1453. //
  1454. // // Example sending a request using the CreateDBSubnetGroupRequest method.
  1455. // req, resp := client.CreateDBSubnetGroupRequest(params)
  1456. //
  1457. // err := req.Send()
  1458. // if err == nil { // resp is now filled
  1459. // fmt.Println(resp)
  1460. // }
  1461. //
  1462. func (c *RDS) CreateDBSubnetGroupRequest(input *CreateDBSubnetGroupInput) (req *request.Request, output *CreateDBSubnetGroupOutput) {
  1463. op := &request.Operation{
  1464. Name: opCreateDBSubnetGroup,
  1465. HTTPMethod: "POST",
  1466. HTTPPath: "/",
  1467. }
  1468. if input == nil {
  1469. input = &CreateDBSubnetGroupInput{}
  1470. }
  1471. req = c.newRequest(op, input, output)
  1472. output = &CreateDBSubnetGroupOutput{}
  1473. req.Data = output
  1474. return
  1475. }
  1476. // CreateDBSubnetGroup API operation for Amazon Relational Database Service.
  1477. //
  1478. // Creates a new DB subnet group. DB subnet groups must contain at least one
  1479. // subnet in at least two AZs in the region.
  1480. //
  1481. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1482. // with awserr.Error's Code and Message methods to get detailed information about
  1483. // the error.
  1484. //
  1485. // See the AWS API reference guide for Amazon Relational Database Service's
  1486. // API operation CreateDBSubnetGroup for usage and error information.
  1487. //
  1488. // Returned Error Codes:
  1489. // * DBSubnetGroupAlreadyExists
  1490. // DBSubnetGroupName is already used by an existing DB subnet group.
  1491. //
  1492. // * DBSubnetGroupQuotaExceeded
  1493. // Request would result in user exceeding the allowed number of DB subnet groups.
  1494. //
  1495. // * DBSubnetQuotaExceededFault
  1496. // Request would result in user exceeding the allowed number of subnets in a
  1497. // DB subnet groups.
  1498. //
  1499. // * DBSubnetGroupDoesNotCoverEnoughAZs
  1500. // Subnets in the DB subnet group should cover at least two Availability Zones
  1501. // unless there is only one Availability Zone.
  1502. //
  1503. // * InvalidSubnet
  1504. // The requested subnet is invalid, or multiple subnets were requested that
  1505. // are not all in a common VPC.
  1506. //
  1507. func (c *RDS) CreateDBSubnetGroup(input *CreateDBSubnetGroupInput) (*CreateDBSubnetGroupOutput, error) {
  1508. req, out := c.CreateDBSubnetGroupRequest(input)
  1509. err := req.Send()
  1510. return out, err
  1511. }
  1512. const opCreateEventSubscription = "CreateEventSubscription"
  1513. // CreateEventSubscriptionRequest generates a "aws/request.Request" representing the
  1514. // client's request for the CreateEventSubscription operation. The "output" return
  1515. // value can be used to capture response data after the request's "Send" method
  1516. // is called.
  1517. //
  1518. // See CreateEventSubscription for usage and error information.
  1519. //
  1520. // Creating a request object using this method should be used when you want to inject
  1521. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1522. // access properties on the request object before or after sending the request. If
  1523. // you just want the service response, call the CreateEventSubscription method directly
  1524. // instead.
  1525. //
  1526. // Note: You must call the "Send" method on the returned request object in order
  1527. // to execute the request.
  1528. //
  1529. // // Example sending a request using the CreateEventSubscriptionRequest method.
  1530. // req, resp := client.CreateEventSubscriptionRequest(params)
  1531. //
  1532. // err := req.Send()
  1533. // if err == nil { // resp is now filled
  1534. // fmt.Println(resp)
  1535. // }
  1536. //
  1537. func (c *RDS) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput) (req *request.Request, output *CreateEventSubscriptionOutput) {
  1538. op := &request.Operation{
  1539. Name: opCreateEventSubscription,
  1540. HTTPMethod: "POST",
  1541. HTTPPath: "/",
  1542. }
  1543. if input == nil {
  1544. input = &CreateEventSubscriptionInput{}
  1545. }
  1546. req = c.newRequest(op, input, output)
  1547. output = &CreateEventSubscriptionOutput{}
  1548. req.Data = output
  1549. return
  1550. }
  1551. // CreateEventSubscription API operation for Amazon Relational Database Service.
  1552. //
  1553. // Creates an RDS event notification subscription. This action requires a topic
  1554. // ARN (Amazon Resource Name) created by either the RDS console, the SNS console,
  1555. // or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon
  1556. // SNS and subscribe to the topic. The ARN is displayed in the SNS console.
  1557. //
  1558. // You can specify the type of source (SourceType) you want to be notified of,
  1559. // provide a list of RDS sources (SourceIds) that triggers the events, and provide
  1560. // a list of event categories (EventCategories) for events you want to be notified
  1561. // of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1,
  1562. // mydbinstance2 and EventCategories = Availability, Backup.
  1563. //
  1564. // If you specify both the SourceType and SourceIds, such as SourceType = db-instance
  1565. // and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance
  1566. // events for the specified source. If you specify a SourceType but do not specify
  1567. // a SourceIdentifier, you will receive notice of the events for that source
  1568. // type for all your RDS sources. If you do not specify either the SourceType
  1569. // nor the SourceIdentifier, you will be notified of events generated from all
  1570. // RDS sources belonging to your customer account.
  1571. //
  1572. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1573. // with awserr.Error's Code and Message methods to get detailed information about
  1574. // the error.
  1575. //
  1576. // See the AWS API reference guide for Amazon Relational Database Service's
  1577. // API operation CreateEventSubscription for usage and error information.
  1578. //
  1579. // Returned Error Codes:
  1580. // * EventSubscriptionQuotaExceeded
  1581. // You have reached the maximum number of event subscriptions.
  1582. //
  1583. // * SubscriptionAlreadyExist
  1584. // The supplied subscription name already exists.
  1585. //
  1586. // * SNSInvalidTopic
  1587. // SNS has responded that there is a problem with the SND topic specified.
  1588. //
  1589. // * SNSNoAuthorization
  1590. // You do not have permission to publish to the SNS topic ARN.
  1591. //
  1592. // * SNSTopicArnNotFound
  1593. // The SNS topic ARN does not exist.
  1594. //
  1595. // * SubscriptionCategoryNotFound
  1596. // The supplied category does not exist.
  1597. //
  1598. // * SourceNotFound
  1599. // The requested source could not be found.
  1600. //
  1601. func (c *RDS) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error) {
  1602. req, out := c.CreateEventSubscriptionRequest(input)
  1603. err := req.Send()
  1604. return out, err
  1605. }
  1606. const opCreateOptionGroup = "CreateOptionGroup"
  1607. // CreateOptionGroupRequest generates a "aws/request.Request" representing the
  1608. // client's request for the CreateOptionGroup operation. The "output" return
  1609. // value can be used to capture response data after the request's "Send" method
  1610. // is called.
  1611. //
  1612. // See CreateOptionGroup for usage and error information.
  1613. //
  1614. // Creating a request object using this method should be used when you want to inject
  1615. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1616. // access properties on the request object before or after sending the request. If
  1617. // you just want the service response, call the CreateOptionGroup method directly
  1618. // instead.
  1619. //
  1620. // Note: You must call the "Send" method on the returned request object in order
  1621. // to execute the request.
  1622. //
  1623. // // Example sending a request using the CreateOptionGroupRequest method.
  1624. // req, resp := client.CreateOptionGroupRequest(params)
  1625. //
  1626. // err := req.Send()
  1627. // if err == nil { // resp is now filled
  1628. // fmt.Println(resp)
  1629. // }
  1630. //
  1631. func (c *RDS) CreateOptionGroupRequest(input *CreateOptionGroupInput) (req *request.Request, output *CreateOptionGroupOutput) {
  1632. op := &request.Operation{
  1633. Name: opCreateOptionGroup,
  1634. HTTPMethod: "POST",
  1635. HTTPPath: "/",
  1636. }
  1637. if input == nil {
  1638. input = &CreateOptionGroupInput{}
  1639. }
  1640. req = c.newRequest(op, input, output)
  1641. output = &CreateOptionGroupOutput{}
  1642. req.Data = output
  1643. return
  1644. }
  1645. // CreateOptionGroup API operation for Amazon Relational Database Service.
  1646. //
  1647. // Creates a new option group. You can create up to 20 option groups.
  1648. //
  1649. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1650. // with awserr.Error's Code and Message methods to get detailed information about
  1651. // the error.
  1652. //
  1653. // See the AWS API reference guide for Amazon Relational Database Service's
  1654. // API operation CreateOptionGroup for usage and error information.
  1655. //
  1656. // Returned Error Codes:
  1657. // * OptionGroupAlreadyExistsFault
  1658. // The option group you are trying to create already exists.
  1659. //
  1660. // * OptionGroupQuotaExceededFault
  1661. // The quota of 20 option groups was exceeded for this AWS account.
  1662. //
  1663. func (c *RDS) CreateOptionGroup(input *CreateOptionGroupInput) (*CreateOptionGroupOutput, error) {
  1664. req, out := c.CreateOptionGroupRequest(input)
  1665. err := req.Send()
  1666. return out, err
  1667. }
  1668. const opDeleteDBCluster = "DeleteDBCluster"
  1669. // DeleteDBClusterRequest generates a "aws/request.Request" representing the
  1670. // client's request for the DeleteDBCluster operation. The "output" return
  1671. // value can be used to capture response data after the request's "Send" method
  1672. // is called.
  1673. //
  1674. // See DeleteDBCluster for usage and error information.
  1675. //
  1676. // Creating a request object using this method should be used when you want to inject
  1677. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1678. // access properties on the request object before or after sending the request. If
  1679. // you just want the service response, call the DeleteDBCluster method directly
  1680. // instead.
  1681. //
  1682. // Note: You must call the "Send" method on the returned request object in order
  1683. // to execute the request.
  1684. //
  1685. // // Example sending a request using the DeleteDBClusterRequest method.
  1686. // req, resp := client.DeleteDBClusterRequest(params)
  1687. //
  1688. // err := req.Send()
  1689. // if err == nil { // resp is now filled
  1690. // fmt.Println(resp)
  1691. // }
  1692. //
  1693. func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request.Request, output *DeleteDBClusterOutput) {
  1694. op := &request.Operation{
  1695. Name: opDeleteDBCluster,
  1696. HTTPMethod: "POST",
  1697. HTTPPath: "/",
  1698. }
  1699. if input == nil {
  1700. input = &DeleteDBClusterInput{}
  1701. }
  1702. req = c.newRequest(op, input, output)
  1703. output = &DeleteDBClusterOutput{}
  1704. req.Data = output
  1705. return
  1706. }
  1707. // DeleteDBCluster API operation for Amazon Relational Database Service.
  1708. //
  1709. // The DeleteDBCluster action deletes a previously provisioned DB cluster. When
  1710. // you delete a DB cluster, all automated backups for that DB cluster are deleted
  1711. // and cannot be recovered. Manual DB cluster snapshots of the specified DB
  1712. // cluster are not deleted.
  1713. //
  1714. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)in the Amazon RDS User Guide.
  1715. //
  1716. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1717. // with awserr.Error's Code and Message methods to get detailed information about
  1718. // the error.
  1719. //
  1720. // See the AWS API reference guide for Amazon Relational Database Service's
  1721. // API operation DeleteDBCluster for usage and error information.
  1722. //
  1723. // Returned Error Codes:
  1724. // * DBClusterNotFoundFault
  1725. // DBClusterIdentifier does not refer to an existing DB cluster.
  1726. //
  1727. // * InvalidDBClusterStateFault
  1728. // The DB cluster is not in a valid state.
  1729. //
  1730. // * DBClusterSnapshotAlreadyExistsFault
  1731. // User already has a DB cluster snapshot with the given identifier.
  1732. //
  1733. // * SnapshotQuotaExceeded
  1734. // Request would result in user exceeding the allowed number of DB snapshots.
  1735. //
  1736. // * InvalidDBClusterSnapshotStateFault
  1737. // The supplied value is not a valid DB cluster snapshot state.
  1738. //
  1739. func (c *RDS) DeleteDBCluster(input *DeleteDBClusterInput) (*DeleteDBClusterOutput, error) {
  1740. req, out := c.DeleteDBClusterRequest(input)
  1741. err := req.Send()
  1742. return out, err
  1743. }
  1744. const opDeleteDBClusterParameterGroup = "DeleteDBClusterParameterGroup"
  1745. // DeleteDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  1746. // client's request for the DeleteDBClusterParameterGroup operation. The "output" return
  1747. // value can be used to capture response data after the request's "Send" method
  1748. // is called.
  1749. //
  1750. // See DeleteDBClusterParameterGroup for usage and error information.
  1751. //
  1752. // Creating a request object using this method should be used when you want to inject
  1753. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1754. // access properties on the request object before or after sending the request. If
  1755. // you just want the service response, call the DeleteDBClusterParameterGroup method directly
  1756. // instead.
  1757. //
  1758. // Note: You must call the "Send" method on the returned request object in order
  1759. // to execute the request.
  1760. //
  1761. // // Example sending a request using the DeleteDBClusterParameterGroupRequest method.
  1762. // req, resp := client.DeleteDBClusterParameterGroupRequest(params)
  1763. //
  1764. // err := req.Send()
  1765. // if err == nil { // resp is now filled
  1766. // fmt.Println(resp)
  1767. // }
  1768. //
  1769. func (c *RDS) DeleteDBClusterParameterGroupRequest(input *DeleteDBClusterParameterGroupInput) (req *request.Request, output *DeleteDBClusterParameterGroupOutput) {
  1770. op := &request.Operation{
  1771. Name: opDeleteDBClusterParameterGroup,
  1772. HTTPMethod: "POST",
  1773. HTTPPath: "/",
  1774. }
  1775. if input == nil {
  1776. input = &DeleteDBClusterParameterGroupInput{}
  1777. }
  1778. req = c.newRequest(op, input, output)
  1779. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  1780. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1781. output = &DeleteDBClusterParameterGroupOutput{}
  1782. req.Data = output
  1783. return
  1784. }
  1785. // DeleteDBClusterParameterGroup API operation for Amazon Relational Database Service.
  1786. //
  1787. // Deletes a specified DB cluster parameter group. The DB cluster parameter
  1788. // group to be deleted cannot be associated with any DB clusters.
  1789. //
  1790. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  1791. // in the Amazon RDS User Guide.
  1792. //
  1793. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1794. // with awserr.Error's Code and Message methods to get detailed information about
  1795. // the error.
  1796. //
  1797. // See the AWS API reference guide for Amazon Relational Database Service's
  1798. // API operation DeleteDBClusterParameterGroup for usage and error information.
  1799. //
  1800. // Returned Error Codes:
  1801. // * InvalidDBParameterGroupState
  1802. // The DB parameter group cannot be deleted because it is in use.
  1803. //
  1804. // * DBParameterGroupNotFound
  1805. // DBParameterGroupName does not refer to an existing DB parameter group.
  1806. //
  1807. func (c *RDS) DeleteDBClusterParameterGroup(input *DeleteDBClusterParameterGroupInput) (*DeleteDBClusterParameterGroupOutput, error) {
  1808. req, out := c.DeleteDBClusterParameterGroupRequest(input)
  1809. err := req.Send()
  1810. return out, err
  1811. }
  1812. const opDeleteDBClusterSnapshot = "DeleteDBClusterSnapshot"
  1813. // DeleteDBClusterSnapshotRequest generates a "aws/request.Request" representing the
  1814. // client's request for the DeleteDBClusterSnapshot operation. The "output" return
  1815. // value can be used to capture response data after the request's "Send" method
  1816. // is called.
  1817. //
  1818. // See DeleteDBClusterSnapshot for usage and error information.
  1819. //
  1820. // Creating a request object using this method should be used when you want to inject
  1821. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1822. // access properties on the request object before or after sending the request. If
  1823. // you just want the service response, call the DeleteDBClusterSnapshot method directly
  1824. // instead.
  1825. //
  1826. // Note: You must call the "Send" method on the returned request object in order
  1827. // to execute the request.
  1828. //
  1829. // // Example sending a request using the DeleteDBClusterSnapshotRequest method.
  1830. // req, resp := client.DeleteDBClusterSnapshotRequest(params)
  1831. //
  1832. // err := req.Send()
  1833. // if err == nil { // resp is now filled
  1834. // fmt.Println(resp)
  1835. // }
  1836. //
  1837. func (c *RDS) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput) (req *request.Request, output *DeleteDBClusterSnapshotOutput) {
  1838. op := &request.Operation{
  1839. Name: opDeleteDBClusterSnapshot,
  1840. HTTPMethod: "POST",
  1841. HTTPPath: "/",
  1842. }
  1843. if input == nil {
  1844. input = &DeleteDBClusterSnapshotInput{}
  1845. }
  1846. req = c.newRequest(op, input, output)
  1847. output = &DeleteDBClusterSnapshotOutput{}
  1848. req.Data = output
  1849. return
  1850. }
  1851. // DeleteDBClusterSnapshot API operation for Amazon Relational Database Service.
  1852. //
  1853. // Deletes a DB cluster snapshot. If the snapshot is being copied, the copy
  1854. // operation is terminated.
  1855. //
  1856. // The DB cluster snapshot must be in the available state to be deleted.
  1857. //
  1858. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  1859. // in the Amazon RDS User Guide.
  1860. //
  1861. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1862. // with awserr.Error's Code and Message methods to get detailed information about
  1863. // the error.
  1864. //
  1865. // See the AWS API reference guide for Amazon Relational Database Service's
  1866. // API operation DeleteDBClusterSnapshot for usage and error information.
  1867. //
  1868. // Returned Error Codes:
  1869. // * InvalidDBClusterSnapshotStateFault
  1870. // The supplied value is not a valid DB cluster snapshot state.
  1871. //
  1872. // * DBClusterSnapshotNotFoundFault
  1873. // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot.
  1874. //
  1875. func (c *RDS) DeleteDBClusterSnapshot(input *DeleteDBClusterSnapshotInput) (*DeleteDBClusterSnapshotOutput, error) {
  1876. req, out := c.DeleteDBClusterSnapshotRequest(input)
  1877. err := req.Send()
  1878. return out, err
  1879. }
  1880. const opDeleteDBInstance = "DeleteDBInstance"
  1881. // DeleteDBInstanceRequest generates a "aws/request.Request" representing the
  1882. // client's request for the DeleteDBInstance operation. The "output" return
  1883. // value can be used to capture response data after the request's "Send" method
  1884. // is called.
  1885. //
  1886. // See DeleteDBInstance for usage and error information.
  1887. //
  1888. // Creating a request object using this method should be used when you want to inject
  1889. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1890. // access properties on the request object before or after sending the request. If
  1891. // you just want the service response, call the DeleteDBInstance method directly
  1892. // instead.
  1893. //
  1894. // Note: You must call the "Send" method on the returned request object in order
  1895. // to execute the request.
  1896. //
  1897. // // Example sending a request using the DeleteDBInstanceRequest method.
  1898. // req, resp := client.DeleteDBInstanceRequest(params)
  1899. //
  1900. // err := req.Send()
  1901. // if err == nil { // resp is now filled
  1902. // fmt.Println(resp)
  1903. // }
  1904. //
  1905. func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *request.Request, output *DeleteDBInstanceOutput) {
  1906. op := &request.Operation{
  1907. Name: opDeleteDBInstance,
  1908. HTTPMethod: "POST",
  1909. HTTPPath: "/",
  1910. }
  1911. if input == nil {
  1912. input = &DeleteDBInstanceInput{}
  1913. }
  1914. req = c.newRequest(op, input, output)
  1915. output = &DeleteDBInstanceOutput{}
  1916. req.Data = output
  1917. return
  1918. }
  1919. // DeleteDBInstance API operation for Amazon Relational Database Service.
  1920. //
  1921. // The DeleteDBInstance action deletes a previously provisioned DB instance.
  1922. // When you delete a DB instance, all automated backups for that instance are
  1923. // deleted and cannot be recovered. Manual DB snapshots of the DB instance to
  1924. // be deleted by DeleteDBInstance are not deleted.
  1925. //
  1926. // If you request a final DB snapshot the status of the Amazon RDS DB instance
  1927. // is deleting until the DB snapshot is created. The API action DescribeDBInstance
  1928. // is used to monitor the status of this operation. The action cannot be canceled
  1929. // or reverted once submitted.
  1930. //
  1931. // Note that when a DB instance is in a failure state and has a status of failed,
  1932. // incompatible-restore, or incompatible-network, you can only delete it when
  1933. // the SkipFinalSnapshot parameter is set to true.
  1934. //
  1935. // If the specified DB instance is part of an Amazon Aurora DB cluster, you
  1936. // cannot delete the DB instance if the following are true:
  1937. //
  1938. // * The DB cluster is a Read Replica of another Amazon Aurora DB cluster.
  1939. //
  1940. // * The DB instance is the only instance in the DB cluster.
  1941. //
  1942. // To delete a DB instance in this case, first call the PromoteReadReplicaDBCluster
  1943. // API action to promote the DB cluster so it's no longer a Read Replica. After
  1944. // the promotion completes, then call the DeleteDBInstance API action to delete
  1945. // the final instance in the DB cluster.
  1946. //
  1947. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1948. // with awserr.Error's Code and Message methods to get detailed information about
  1949. // the error.
  1950. //
  1951. // See the AWS API reference guide for Amazon Relational Database Service's
  1952. // API operation DeleteDBInstance for usage and error information.
  1953. //
  1954. // Returned Error Codes:
  1955. // * DBInstanceNotFound
  1956. // DBInstanceIdentifier does not refer to an existing DB instance.
  1957. //
  1958. // * InvalidDBInstanceState
  1959. // The specified DB instance is not in the available state.
  1960. //
  1961. // * DBSnapshotAlreadyExists
  1962. // DBSnapshotIdentifier is already used by an existing snapshot.
  1963. //
  1964. // * SnapshotQuotaExceeded
  1965. // Request would result in user exceeding the allowed number of DB snapshots.
  1966. //
  1967. // * InvalidDBClusterStateFault
  1968. // The DB cluster is not in a valid state.
  1969. //
  1970. func (c *RDS) DeleteDBInstance(input *DeleteDBInstanceInput) (*DeleteDBInstanceOutput, error) {
  1971. req, out := c.DeleteDBInstanceRequest(input)
  1972. err := req.Send()
  1973. return out, err
  1974. }
  1975. const opDeleteDBParameterGroup = "DeleteDBParameterGroup"
  1976. // DeleteDBParameterGroupRequest generates a "aws/request.Request" representing the
  1977. // client's request for the DeleteDBParameterGroup operation. The "output" return
  1978. // value can be used to capture response data after the request's "Send" method
  1979. // is called.
  1980. //
  1981. // See DeleteDBParameterGroup for usage and error information.
  1982. //
  1983. // Creating a request object using this method should be used when you want to inject
  1984. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1985. // access properties on the request object before or after sending the request. If
  1986. // you just want the service response, call the DeleteDBParameterGroup method directly
  1987. // instead.
  1988. //
  1989. // Note: You must call the "Send" method on the returned request object in order
  1990. // to execute the request.
  1991. //
  1992. // // Example sending a request using the DeleteDBParameterGroupRequest method.
  1993. // req, resp := client.DeleteDBParameterGroupRequest(params)
  1994. //
  1995. // err := req.Send()
  1996. // if err == nil { // resp is now filled
  1997. // fmt.Println(resp)
  1998. // }
  1999. //
  2000. func (c *RDS) DeleteDBParameterGroupRequest(input *DeleteDBParameterGroupInput) (req *request.Request, output *DeleteDBParameterGroupOutput) {
  2001. op := &request.Operation{
  2002. Name: opDeleteDBParameterGroup,
  2003. HTTPMethod: "POST",
  2004. HTTPPath: "/",
  2005. }
  2006. if input == nil {
  2007. input = &DeleteDBParameterGroupInput{}
  2008. }
  2009. req = c.newRequest(op, input, output)
  2010. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2011. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2012. output = &DeleteDBParameterGroupOutput{}
  2013. req.Data = output
  2014. return
  2015. }
  2016. // DeleteDBParameterGroup API operation for Amazon Relational Database Service.
  2017. //
  2018. // Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted
  2019. // cannot be associated with any DB instances.
  2020. //
  2021. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2022. // with awserr.Error's Code and Message methods to get detailed information about
  2023. // the error.
  2024. //
  2025. // See the AWS API reference guide for Amazon Relational Database Service's
  2026. // API operation DeleteDBParameterGroup for usage and error information.
  2027. //
  2028. // Returned Error Codes:
  2029. // * InvalidDBParameterGroupState
  2030. // The DB parameter group cannot be deleted because it is in use.
  2031. //
  2032. // * DBParameterGroupNotFound
  2033. // DBParameterGroupName does not refer to an existing DB parameter group.
  2034. //
  2035. func (c *RDS) DeleteDBParameterGroup(input *DeleteDBParameterGroupInput) (*DeleteDBParameterGroupOutput, error) {
  2036. req, out := c.DeleteDBParameterGroupRequest(input)
  2037. err := req.Send()
  2038. return out, err
  2039. }
  2040. const opDeleteDBSecurityGroup = "DeleteDBSecurityGroup"
  2041. // DeleteDBSecurityGroupRequest generates a "aws/request.Request" representing the
  2042. // client's request for the DeleteDBSecurityGroup operation. The "output" return
  2043. // value can be used to capture response data after the request's "Send" method
  2044. // is called.
  2045. //
  2046. // See DeleteDBSecurityGroup for usage and error information.
  2047. //
  2048. // Creating a request object using this method should be used when you want to inject
  2049. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2050. // access properties on the request object before or after sending the request. If
  2051. // you just want the service response, call the DeleteDBSecurityGroup method directly
  2052. // instead.
  2053. //
  2054. // Note: You must call the "Send" method on the returned request object in order
  2055. // to execute the request.
  2056. //
  2057. // // Example sending a request using the DeleteDBSecurityGroupRequest method.
  2058. // req, resp := client.DeleteDBSecurityGroupRequest(params)
  2059. //
  2060. // err := req.Send()
  2061. // if err == nil { // resp is now filled
  2062. // fmt.Println(resp)
  2063. // }
  2064. //
  2065. func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (req *request.Request, output *DeleteDBSecurityGroupOutput) {
  2066. op := &request.Operation{
  2067. Name: opDeleteDBSecurityGroup,
  2068. HTTPMethod: "POST",
  2069. HTTPPath: "/",
  2070. }
  2071. if input == nil {
  2072. input = &DeleteDBSecurityGroupInput{}
  2073. }
  2074. req = c.newRequest(op, input, output)
  2075. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2076. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2077. output = &DeleteDBSecurityGroupOutput{}
  2078. req.Data = output
  2079. return
  2080. }
  2081. // DeleteDBSecurityGroup API operation for Amazon Relational Database Service.
  2082. //
  2083. // Deletes a DB security group.
  2084. //
  2085. // The specified DB security group must not be associated with any DB instances.
  2086. //
  2087. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2088. // with awserr.Error's Code and Message methods to get detailed information about
  2089. // the error.
  2090. //
  2091. // See the AWS API reference guide for Amazon Relational Database Service's
  2092. // API operation DeleteDBSecurityGroup for usage and error information.
  2093. //
  2094. // Returned Error Codes:
  2095. // * InvalidDBSecurityGroupState
  2096. // The state of the DB security group does not allow deletion.
  2097. //
  2098. // * DBSecurityGroupNotFound
  2099. // DBSecurityGroupName does not refer to an existing DB security group.
  2100. //
  2101. func (c *RDS) DeleteDBSecurityGroup(input *DeleteDBSecurityGroupInput) (*DeleteDBSecurityGroupOutput, error) {
  2102. req, out := c.DeleteDBSecurityGroupRequest(input)
  2103. err := req.Send()
  2104. return out, err
  2105. }
  2106. const opDeleteDBSnapshot = "DeleteDBSnapshot"
  2107. // DeleteDBSnapshotRequest generates a "aws/request.Request" representing the
  2108. // client's request for the DeleteDBSnapshot operation. The "output" return
  2109. // value can be used to capture response data after the request's "Send" method
  2110. // is called.
  2111. //
  2112. // See DeleteDBSnapshot for usage and error information.
  2113. //
  2114. // Creating a request object using this method should be used when you want to inject
  2115. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2116. // access properties on the request object before or after sending the request. If
  2117. // you just want the service response, call the DeleteDBSnapshot method directly
  2118. // instead.
  2119. //
  2120. // Note: You must call the "Send" method on the returned request object in order
  2121. // to execute the request.
  2122. //
  2123. // // Example sending a request using the DeleteDBSnapshotRequest method.
  2124. // req, resp := client.DeleteDBSnapshotRequest(params)
  2125. //
  2126. // err := req.Send()
  2127. // if err == nil { // resp is now filled
  2128. // fmt.Println(resp)
  2129. // }
  2130. //
  2131. func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *request.Request, output *DeleteDBSnapshotOutput) {
  2132. op := &request.Operation{
  2133. Name: opDeleteDBSnapshot,
  2134. HTTPMethod: "POST",
  2135. HTTPPath: "/",
  2136. }
  2137. if input == nil {
  2138. input = &DeleteDBSnapshotInput{}
  2139. }
  2140. req = c.newRequest(op, input, output)
  2141. output = &DeleteDBSnapshotOutput{}
  2142. req.Data = output
  2143. return
  2144. }
  2145. // DeleteDBSnapshot API operation for Amazon Relational Database Service.
  2146. //
  2147. // Deletes a DBSnapshot. If the snapshot is being copied, the copy operation
  2148. // is terminated.
  2149. //
  2150. // The DBSnapshot must be in the available state to be deleted.
  2151. //
  2152. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2153. // with awserr.Error's Code and Message methods to get detailed information about
  2154. // the error.
  2155. //
  2156. // See the AWS API reference guide for Amazon Relational Database Service's
  2157. // API operation DeleteDBSnapshot for usage and error information.
  2158. //
  2159. // Returned Error Codes:
  2160. // * InvalidDBSnapshotState
  2161. // The state of the DB snapshot does not allow deletion.
  2162. //
  2163. // * DBSnapshotNotFound
  2164. // DBSnapshotIdentifier does not refer to an existing DB snapshot.
  2165. //
  2166. func (c *RDS) DeleteDBSnapshot(input *DeleteDBSnapshotInput) (*DeleteDBSnapshotOutput, error) {
  2167. req, out := c.DeleteDBSnapshotRequest(input)
  2168. err := req.Send()
  2169. return out, err
  2170. }
  2171. const opDeleteDBSubnetGroup = "DeleteDBSubnetGroup"
  2172. // DeleteDBSubnetGroupRequest generates a "aws/request.Request" representing the
  2173. // client's request for the DeleteDBSubnetGroup operation. The "output" return
  2174. // value can be used to capture response data after the request's "Send" method
  2175. // is called.
  2176. //
  2177. // See DeleteDBSubnetGroup for usage and error information.
  2178. //
  2179. // Creating a request object using this method should be used when you want to inject
  2180. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2181. // access properties on the request object before or after sending the request. If
  2182. // you just want the service response, call the DeleteDBSubnetGroup method directly
  2183. // instead.
  2184. //
  2185. // Note: You must call the "Send" method on the returned request object in order
  2186. // to execute the request.
  2187. //
  2188. // // Example sending a request using the DeleteDBSubnetGroupRequest method.
  2189. // req, resp := client.DeleteDBSubnetGroupRequest(params)
  2190. //
  2191. // err := req.Send()
  2192. // if err == nil { // resp is now filled
  2193. // fmt.Println(resp)
  2194. // }
  2195. //
  2196. func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req *request.Request, output *DeleteDBSubnetGroupOutput) {
  2197. op := &request.Operation{
  2198. Name: opDeleteDBSubnetGroup,
  2199. HTTPMethod: "POST",
  2200. HTTPPath: "/",
  2201. }
  2202. if input == nil {
  2203. input = &DeleteDBSubnetGroupInput{}
  2204. }
  2205. req = c.newRequest(op, input, output)
  2206. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2207. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2208. output = &DeleteDBSubnetGroupOutput{}
  2209. req.Data = output
  2210. return
  2211. }
  2212. // DeleteDBSubnetGroup API operation for Amazon Relational Database Service.
  2213. //
  2214. // Deletes a DB subnet group.
  2215. //
  2216. // The specified database subnet group must not be associated with any DB instances.
  2217. //
  2218. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2219. // with awserr.Error's Code and Message methods to get detailed information about
  2220. // the error.
  2221. //
  2222. // See the AWS API reference guide for Amazon Relational Database Service's
  2223. // API operation DeleteDBSubnetGroup for usage and error information.
  2224. //
  2225. // Returned Error Codes:
  2226. // * InvalidDBSubnetGroupStateFault
  2227. // The DB subnet group cannot be deleted because it is in use.
  2228. //
  2229. // * InvalidDBSubnetStateFault
  2230. // The DB subnet is not in the available state.
  2231. //
  2232. // * DBSubnetGroupNotFoundFault
  2233. // DBSubnetGroupName does not refer to an existing DB subnet group.
  2234. //
  2235. func (c *RDS) DeleteDBSubnetGroup(input *DeleteDBSubnetGroupInput) (*DeleteDBSubnetGroupOutput, error) {
  2236. req, out := c.DeleteDBSubnetGroupRequest(input)
  2237. err := req.Send()
  2238. return out, err
  2239. }
  2240. const opDeleteEventSubscription = "DeleteEventSubscription"
  2241. // DeleteEventSubscriptionRequest generates a "aws/request.Request" representing the
  2242. // client's request for the DeleteEventSubscription operation. The "output" return
  2243. // value can be used to capture response data after the request's "Send" method
  2244. // is called.
  2245. //
  2246. // See DeleteEventSubscription for usage and error information.
  2247. //
  2248. // Creating a request object using this method should be used when you want to inject
  2249. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2250. // access properties on the request object before or after sending the request. If
  2251. // you just want the service response, call the DeleteEventSubscription method directly
  2252. // instead.
  2253. //
  2254. // Note: You must call the "Send" method on the returned request object in order
  2255. // to execute the request.
  2256. //
  2257. // // Example sending a request using the DeleteEventSubscriptionRequest method.
  2258. // req, resp := client.DeleteEventSubscriptionRequest(params)
  2259. //
  2260. // err := req.Send()
  2261. // if err == nil { // resp is now filled
  2262. // fmt.Println(resp)
  2263. // }
  2264. //
  2265. func (c *RDS) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput) (req *request.Request, output *DeleteEventSubscriptionOutput) {
  2266. op := &request.Operation{
  2267. Name: opDeleteEventSubscription,
  2268. HTTPMethod: "POST",
  2269. HTTPPath: "/",
  2270. }
  2271. if input == nil {
  2272. input = &DeleteEventSubscriptionInput{}
  2273. }
  2274. req = c.newRequest(op, input, output)
  2275. output = &DeleteEventSubscriptionOutput{}
  2276. req.Data = output
  2277. return
  2278. }
  2279. // DeleteEventSubscription API operation for Amazon Relational Database Service.
  2280. //
  2281. // Deletes an RDS event notification subscription.
  2282. //
  2283. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2284. // with awserr.Error's Code and Message methods to get detailed information about
  2285. // the error.
  2286. //
  2287. // See the AWS API reference guide for Amazon Relational Database Service's
  2288. // API operation DeleteEventSubscription for usage and error information.
  2289. //
  2290. // Returned Error Codes:
  2291. // * SubscriptionNotFound
  2292. // The subscription name does not exist.
  2293. //
  2294. // * InvalidEventSubscriptionState
  2295. // This error can occur if someone else is modifying a subscription. You should
  2296. // retry the action.
  2297. //
  2298. func (c *RDS) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error) {
  2299. req, out := c.DeleteEventSubscriptionRequest(input)
  2300. err := req.Send()
  2301. return out, err
  2302. }
  2303. const opDeleteOptionGroup = "DeleteOptionGroup"
  2304. // DeleteOptionGroupRequest generates a "aws/request.Request" representing the
  2305. // client's request for the DeleteOptionGroup operation. The "output" return
  2306. // value can be used to capture response data after the request's "Send" method
  2307. // is called.
  2308. //
  2309. // See DeleteOptionGroup for usage and error information.
  2310. //
  2311. // Creating a request object using this method should be used when you want to inject
  2312. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2313. // access properties on the request object before or after sending the request. If
  2314. // you just want the service response, call the DeleteOptionGroup method directly
  2315. // instead.
  2316. //
  2317. // Note: You must call the "Send" method on the returned request object in order
  2318. // to execute the request.
  2319. //
  2320. // // Example sending a request using the DeleteOptionGroupRequest method.
  2321. // req, resp := client.DeleteOptionGroupRequest(params)
  2322. //
  2323. // err := req.Send()
  2324. // if err == nil { // resp is now filled
  2325. // fmt.Println(resp)
  2326. // }
  2327. //
  2328. func (c *RDS) DeleteOptionGroupRequest(input *DeleteOptionGroupInput) (req *request.Request, output *DeleteOptionGroupOutput) {
  2329. op := &request.Operation{
  2330. Name: opDeleteOptionGroup,
  2331. HTTPMethod: "POST",
  2332. HTTPPath: "/",
  2333. }
  2334. if input == nil {
  2335. input = &DeleteOptionGroupInput{}
  2336. }
  2337. req = c.newRequest(op, input, output)
  2338. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  2339. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2340. output = &DeleteOptionGroupOutput{}
  2341. req.Data = output
  2342. return
  2343. }
  2344. // DeleteOptionGroup API operation for Amazon Relational Database Service.
  2345. //
  2346. // Deletes an existing option group.
  2347. //
  2348. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2349. // with awserr.Error's Code and Message methods to get detailed information about
  2350. // the error.
  2351. //
  2352. // See the AWS API reference guide for Amazon Relational Database Service's
  2353. // API operation DeleteOptionGroup for usage and error information.
  2354. //
  2355. // Returned Error Codes:
  2356. // * OptionGroupNotFoundFault
  2357. // The specified option group could not be found.
  2358. //
  2359. // * InvalidOptionGroupStateFault
  2360. // The option group is not in the available state.
  2361. //
  2362. func (c *RDS) DeleteOptionGroup(input *DeleteOptionGroupInput) (*DeleteOptionGroupOutput, error) {
  2363. req, out := c.DeleteOptionGroupRequest(input)
  2364. err := req.Send()
  2365. return out, err
  2366. }
  2367. const opDescribeAccountAttributes = "DescribeAccountAttributes"
  2368. // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
  2369. // client's request for the DescribeAccountAttributes operation. The "output" return
  2370. // value can be used to capture response data after the request's "Send" method
  2371. // is called.
  2372. //
  2373. // See DescribeAccountAttributes for usage and error information.
  2374. //
  2375. // Creating a request object using this method should be used when you want to inject
  2376. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2377. // access properties on the request object before or after sending the request. If
  2378. // you just want the service response, call the DescribeAccountAttributes method directly
  2379. // instead.
  2380. //
  2381. // Note: You must call the "Send" method on the returned request object in order
  2382. // to execute the request.
  2383. //
  2384. // // Example sending a request using the DescribeAccountAttributesRequest method.
  2385. // req, resp := client.DescribeAccountAttributesRequest(params)
  2386. //
  2387. // err := req.Send()
  2388. // if err == nil { // resp is now filled
  2389. // fmt.Println(resp)
  2390. // }
  2391. //
  2392. func (c *RDS) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) {
  2393. op := &request.Operation{
  2394. Name: opDescribeAccountAttributes,
  2395. HTTPMethod: "POST",
  2396. HTTPPath: "/",
  2397. }
  2398. if input == nil {
  2399. input = &DescribeAccountAttributesInput{}
  2400. }
  2401. req = c.newRequest(op, input, output)
  2402. output = &DescribeAccountAttributesOutput{}
  2403. req.Data = output
  2404. return
  2405. }
  2406. // DescribeAccountAttributes API operation for Amazon Relational Database Service.
  2407. //
  2408. // Lists all of the attributes for a customer account. The attributes include
  2409. // Amazon RDS quotas for the account, such as the number of DB instances allowed.
  2410. // The description for a quota includes the quota name, current usage toward
  2411. // that quota, and the quota's maximum value.
  2412. //
  2413. // This command does not take any parameters.
  2414. //
  2415. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2416. // with awserr.Error's Code and Message methods to get detailed information about
  2417. // the error.
  2418. //
  2419. // See the AWS API reference guide for Amazon Relational Database Service's
  2420. // API operation DescribeAccountAttributes for usage and error information.
  2421. func (c *RDS) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) {
  2422. req, out := c.DescribeAccountAttributesRequest(input)
  2423. err := req.Send()
  2424. return out, err
  2425. }
  2426. const opDescribeCertificates = "DescribeCertificates"
  2427. // DescribeCertificatesRequest generates a "aws/request.Request" representing the
  2428. // client's request for the DescribeCertificates operation. The "output" return
  2429. // value can be used to capture response data after the request's "Send" method
  2430. // is called.
  2431. //
  2432. // See DescribeCertificates for usage and error information.
  2433. //
  2434. // Creating a request object using this method should be used when you want to inject
  2435. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2436. // access properties on the request object before or after sending the request. If
  2437. // you just want the service response, call the DescribeCertificates method directly
  2438. // instead.
  2439. //
  2440. // Note: You must call the "Send" method on the returned request object in order
  2441. // to execute the request.
  2442. //
  2443. // // Example sending a request using the DescribeCertificatesRequest method.
  2444. // req, resp := client.DescribeCertificatesRequest(params)
  2445. //
  2446. // err := req.Send()
  2447. // if err == nil { // resp is now filled
  2448. // fmt.Println(resp)
  2449. // }
  2450. //
  2451. func (c *RDS) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req *request.Request, output *DescribeCertificatesOutput) {
  2452. op := &request.Operation{
  2453. Name: opDescribeCertificates,
  2454. HTTPMethod: "POST",
  2455. HTTPPath: "/",
  2456. }
  2457. if input == nil {
  2458. input = &DescribeCertificatesInput{}
  2459. }
  2460. req = c.newRequest(op, input, output)
  2461. output = &DescribeCertificatesOutput{}
  2462. req.Data = output
  2463. return
  2464. }
  2465. // DescribeCertificates API operation for Amazon Relational Database Service.
  2466. //
  2467. // Lists the set of CA certificates provided by Amazon RDS for this AWS account.
  2468. //
  2469. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2470. // with awserr.Error's Code and Message methods to get detailed information about
  2471. // the error.
  2472. //
  2473. // See the AWS API reference guide for Amazon Relational Database Service's
  2474. // API operation DescribeCertificates for usage and error information.
  2475. //
  2476. // Returned Error Codes:
  2477. // * CertificateNotFound
  2478. // CertificateIdentifier does not refer to an existing certificate.
  2479. //
  2480. func (c *RDS) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error) {
  2481. req, out := c.DescribeCertificatesRequest(input)
  2482. err := req.Send()
  2483. return out, err
  2484. }
  2485. const opDescribeDBClusterParameterGroups = "DescribeDBClusterParameterGroups"
  2486. // DescribeDBClusterParameterGroupsRequest generates a "aws/request.Request" representing the
  2487. // client's request for the DescribeDBClusterParameterGroups operation. The "output" return
  2488. // value can be used to capture response data after the request's "Send" method
  2489. // is called.
  2490. //
  2491. // See DescribeDBClusterParameterGroups for usage and error information.
  2492. //
  2493. // Creating a request object using this method should be used when you want to inject
  2494. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2495. // access properties on the request object before or after sending the request. If
  2496. // you just want the service response, call the DescribeDBClusterParameterGroups method directly
  2497. // instead.
  2498. //
  2499. // Note: You must call the "Send" method on the returned request object in order
  2500. // to execute the request.
  2501. //
  2502. // // Example sending a request using the DescribeDBClusterParameterGroupsRequest method.
  2503. // req, resp := client.DescribeDBClusterParameterGroupsRequest(params)
  2504. //
  2505. // err := req.Send()
  2506. // if err == nil { // resp is now filled
  2507. // fmt.Println(resp)
  2508. // }
  2509. //
  2510. func (c *RDS) DescribeDBClusterParameterGroupsRequest(input *DescribeDBClusterParameterGroupsInput) (req *request.Request, output *DescribeDBClusterParameterGroupsOutput) {
  2511. op := &request.Operation{
  2512. Name: opDescribeDBClusterParameterGroups,
  2513. HTTPMethod: "POST",
  2514. HTTPPath: "/",
  2515. }
  2516. if input == nil {
  2517. input = &DescribeDBClusterParameterGroupsInput{}
  2518. }
  2519. req = c.newRequest(op, input, output)
  2520. output = &DescribeDBClusterParameterGroupsOutput{}
  2521. req.Data = output
  2522. return
  2523. }
  2524. // DescribeDBClusterParameterGroups API operation for Amazon Relational Database Service.
  2525. //
  2526. // Returns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName
  2527. // parameter is specified, the list will contain only the description of the
  2528. // specified DB cluster parameter group.
  2529. //
  2530. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  2531. // in the Amazon RDS User Guide.
  2532. //
  2533. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2534. // with awserr.Error's Code and Message methods to get detailed information about
  2535. // the error.
  2536. //
  2537. // See the AWS API reference guide for Amazon Relational Database Service's
  2538. // API operation DescribeDBClusterParameterGroups for usage and error information.
  2539. //
  2540. // Returned Error Codes:
  2541. // * DBParameterGroupNotFound
  2542. // DBParameterGroupName does not refer to an existing DB parameter group.
  2543. //
  2544. func (c *RDS) DescribeDBClusterParameterGroups(input *DescribeDBClusterParameterGroupsInput) (*DescribeDBClusterParameterGroupsOutput, error) {
  2545. req, out := c.DescribeDBClusterParameterGroupsRequest(input)
  2546. err := req.Send()
  2547. return out, err
  2548. }
  2549. const opDescribeDBClusterParameters = "DescribeDBClusterParameters"
  2550. // DescribeDBClusterParametersRequest generates a "aws/request.Request" representing the
  2551. // client's request for the DescribeDBClusterParameters operation. The "output" return
  2552. // value can be used to capture response data after the request's "Send" method
  2553. // is called.
  2554. //
  2555. // See DescribeDBClusterParameters for usage and error information.
  2556. //
  2557. // Creating a request object using this method should be used when you want to inject
  2558. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2559. // access properties on the request object before or after sending the request. If
  2560. // you just want the service response, call the DescribeDBClusterParameters method directly
  2561. // instead.
  2562. //
  2563. // Note: You must call the "Send" method on the returned request object in order
  2564. // to execute the request.
  2565. //
  2566. // // Example sending a request using the DescribeDBClusterParametersRequest method.
  2567. // req, resp := client.DescribeDBClusterParametersRequest(params)
  2568. //
  2569. // err := req.Send()
  2570. // if err == nil { // resp is now filled
  2571. // fmt.Println(resp)
  2572. // }
  2573. //
  2574. func (c *RDS) DescribeDBClusterParametersRequest(input *DescribeDBClusterParametersInput) (req *request.Request, output *DescribeDBClusterParametersOutput) {
  2575. op := &request.Operation{
  2576. Name: opDescribeDBClusterParameters,
  2577. HTTPMethod: "POST",
  2578. HTTPPath: "/",
  2579. }
  2580. if input == nil {
  2581. input = &DescribeDBClusterParametersInput{}
  2582. }
  2583. req = c.newRequest(op, input, output)
  2584. output = &DescribeDBClusterParametersOutput{}
  2585. req.Data = output
  2586. return
  2587. }
  2588. // DescribeDBClusterParameters API operation for Amazon Relational Database Service.
  2589. //
  2590. // Returns the detailed parameter list for a particular DB cluster parameter
  2591. // group.
  2592. //
  2593. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  2594. // in the Amazon RDS User Guide.
  2595. //
  2596. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2597. // with awserr.Error's Code and Message methods to get detailed information about
  2598. // the error.
  2599. //
  2600. // See the AWS API reference guide for Amazon Relational Database Service's
  2601. // API operation DescribeDBClusterParameters for usage and error information.
  2602. //
  2603. // Returned Error Codes:
  2604. // * DBParameterGroupNotFound
  2605. // DBParameterGroupName does not refer to an existing DB parameter group.
  2606. //
  2607. func (c *RDS) DescribeDBClusterParameters(input *DescribeDBClusterParametersInput) (*DescribeDBClusterParametersOutput, error) {
  2608. req, out := c.DescribeDBClusterParametersRequest(input)
  2609. err := req.Send()
  2610. return out, err
  2611. }
  2612. const opDescribeDBClusterSnapshotAttributes = "DescribeDBClusterSnapshotAttributes"
  2613. // DescribeDBClusterSnapshotAttributesRequest generates a "aws/request.Request" representing the
  2614. // client's request for the DescribeDBClusterSnapshotAttributes operation. The "output" return
  2615. // value can be used to capture response data after the request's "Send" method
  2616. // is called.
  2617. //
  2618. // See DescribeDBClusterSnapshotAttributes for usage and error information.
  2619. //
  2620. // Creating a request object using this method should be used when you want to inject
  2621. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2622. // access properties on the request object before or after sending the request. If
  2623. // you just want the service response, call the DescribeDBClusterSnapshotAttributes method directly
  2624. // instead.
  2625. //
  2626. // Note: You must call the "Send" method on the returned request object in order
  2627. // to execute the request.
  2628. //
  2629. // // Example sending a request using the DescribeDBClusterSnapshotAttributesRequest method.
  2630. // req, resp := client.DescribeDBClusterSnapshotAttributesRequest(params)
  2631. //
  2632. // err := req.Send()
  2633. // if err == nil { // resp is now filled
  2634. // fmt.Println(resp)
  2635. // }
  2636. //
  2637. func (c *RDS) DescribeDBClusterSnapshotAttributesRequest(input *DescribeDBClusterSnapshotAttributesInput) (req *request.Request, output *DescribeDBClusterSnapshotAttributesOutput) {
  2638. op := &request.Operation{
  2639. Name: opDescribeDBClusterSnapshotAttributes,
  2640. HTTPMethod: "POST",
  2641. HTTPPath: "/",
  2642. }
  2643. if input == nil {
  2644. input = &DescribeDBClusterSnapshotAttributesInput{}
  2645. }
  2646. req = c.newRequest(op, input, output)
  2647. output = &DescribeDBClusterSnapshotAttributesOutput{}
  2648. req.Data = output
  2649. return
  2650. }
  2651. // DescribeDBClusterSnapshotAttributes API operation for Amazon Relational Database Service.
  2652. //
  2653. // Returns a list of DB cluster snapshot attribute names and values for a manual
  2654. // DB cluster snapshot.
  2655. //
  2656. // When sharing snapshots with other AWS accounts, DescribeDBClusterSnapshotAttributes
  2657. // returns the restore attribute and a list of IDs for the AWS accounts that
  2658. // are authorized to copy or restore the manual DB cluster snapshot. If all
  2659. // is included in the list of values for the restore attribute, then the manual
  2660. // DB cluster snapshot is public and can be copied or restored by all AWS accounts.
  2661. //
  2662. // To add or remove access for an AWS account to copy or restore a manual DB
  2663. // cluster snapshot, or to make the manual DB cluster snapshot public or private,
  2664. // use the ModifyDBClusterSnapshotAttribute API action.
  2665. //
  2666. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2667. // with awserr.Error's Code and Message methods to get detailed information about
  2668. // the error.
  2669. //
  2670. // See the AWS API reference guide for Amazon Relational Database Service's
  2671. // API operation DescribeDBClusterSnapshotAttributes for usage and error information.
  2672. //
  2673. // Returned Error Codes:
  2674. // * DBClusterSnapshotNotFoundFault
  2675. // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot.
  2676. //
  2677. func (c *RDS) DescribeDBClusterSnapshotAttributes(input *DescribeDBClusterSnapshotAttributesInput) (*DescribeDBClusterSnapshotAttributesOutput, error) {
  2678. req, out := c.DescribeDBClusterSnapshotAttributesRequest(input)
  2679. err := req.Send()
  2680. return out, err
  2681. }
  2682. const opDescribeDBClusterSnapshots = "DescribeDBClusterSnapshots"
  2683. // DescribeDBClusterSnapshotsRequest generates a "aws/request.Request" representing the
  2684. // client's request for the DescribeDBClusterSnapshots operation. The "output" return
  2685. // value can be used to capture response data after the request's "Send" method
  2686. // is called.
  2687. //
  2688. // See DescribeDBClusterSnapshots for usage and error information.
  2689. //
  2690. // Creating a request object using this method should be used when you want to inject
  2691. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2692. // access properties on the request object before or after sending the request. If
  2693. // you just want the service response, call the DescribeDBClusterSnapshots method directly
  2694. // instead.
  2695. //
  2696. // Note: You must call the "Send" method on the returned request object in order
  2697. // to execute the request.
  2698. //
  2699. // // Example sending a request using the DescribeDBClusterSnapshotsRequest method.
  2700. // req, resp := client.DescribeDBClusterSnapshotsRequest(params)
  2701. //
  2702. // err := req.Send()
  2703. // if err == nil { // resp is now filled
  2704. // fmt.Println(resp)
  2705. // }
  2706. //
  2707. func (c *RDS) DescribeDBClusterSnapshotsRequest(input *DescribeDBClusterSnapshotsInput) (req *request.Request, output *DescribeDBClusterSnapshotsOutput) {
  2708. op := &request.Operation{
  2709. Name: opDescribeDBClusterSnapshots,
  2710. HTTPMethod: "POST",
  2711. HTTPPath: "/",
  2712. }
  2713. if input == nil {
  2714. input = &DescribeDBClusterSnapshotsInput{}
  2715. }
  2716. req = c.newRequest(op, input, output)
  2717. output = &DescribeDBClusterSnapshotsOutput{}
  2718. req.Data = output
  2719. return
  2720. }
  2721. // DescribeDBClusterSnapshots API operation for Amazon Relational Database Service.
  2722. //
  2723. // Returns information about DB cluster snapshots. This API action supports
  2724. // pagination.
  2725. //
  2726. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  2727. // in the Amazon RDS User Guide.
  2728. //
  2729. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2730. // with awserr.Error's Code and Message methods to get detailed information about
  2731. // the error.
  2732. //
  2733. // See the AWS API reference guide for Amazon Relational Database Service's
  2734. // API operation DescribeDBClusterSnapshots for usage and error information.
  2735. //
  2736. // Returned Error Codes:
  2737. // * DBClusterSnapshotNotFoundFault
  2738. // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot.
  2739. //
  2740. func (c *RDS) DescribeDBClusterSnapshots(input *DescribeDBClusterSnapshotsInput) (*DescribeDBClusterSnapshotsOutput, error) {
  2741. req, out := c.DescribeDBClusterSnapshotsRequest(input)
  2742. err := req.Send()
  2743. return out, err
  2744. }
  2745. const opDescribeDBClusters = "DescribeDBClusters"
  2746. // DescribeDBClustersRequest generates a "aws/request.Request" representing the
  2747. // client's request for the DescribeDBClusters operation. The "output" return
  2748. // value can be used to capture response data after the request's "Send" method
  2749. // is called.
  2750. //
  2751. // See DescribeDBClusters for usage and error information.
  2752. //
  2753. // Creating a request object using this method should be used when you want to inject
  2754. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2755. // access properties on the request object before or after sending the request. If
  2756. // you just want the service response, call the DescribeDBClusters method directly
  2757. // instead.
  2758. //
  2759. // Note: You must call the "Send" method on the returned request object in order
  2760. // to execute the request.
  2761. //
  2762. // // Example sending a request using the DescribeDBClustersRequest method.
  2763. // req, resp := client.DescribeDBClustersRequest(params)
  2764. //
  2765. // err := req.Send()
  2766. // if err == nil { // resp is now filled
  2767. // fmt.Println(resp)
  2768. // }
  2769. //
  2770. func (c *RDS) DescribeDBClustersRequest(input *DescribeDBClustersInput) (req *request.Request, output *DescribeDBClustersOutput) {
  2771. op := &request.Operation{
  2772. Name: opDescribeDBClusters,
  2773. HTTPMethod: "POST",
  2774. HTTPPath: "/",
  2775. }
  2776. if input == nil {
  2777. input = &DescribeDBClustersInput{}
  2778. }
  2779. req = c.newRequest(op, input, output)
  2780. output = &DescribeDBClustersOutput{}
  2781. req.Data = output
  2782. return
  2783. }
  2784. // DescribeDBClusters API operation for Amazon Relational Database Service.
  2785. //
  2786. // Returns information about provisioned Aurora DB clusters. This API supports
  2787. // pagination.
  2788. //
  2789. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  2790. // in the Amazon RDS User Guide.
  2791. //
  2792. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2793. // with awserr.Error's Code and Message methods to get detailed information about
  2794. // the error.
  2795. //
  2796. // See the AWS API reference guide for Amazon Relational Database Service's
  2797. // API operation DescribeDBClusters for usage and error information.
  2798. //
  2799. // Returned Error Codes:
  2800. // * DBClusterNotFoundFault
  2801. // DBClusterIdentifier does not refer to an existing DB cluster.
  2802. //
  2803. func (c *RDS) DescribeDBClusters(input *DescribeDBClustersInput) (*DescribeDBClustersOutput, error) {
  2804. req, out := c.DescribeDBClustersRequest(input)
  2805. err := req.Send()
  2806. return out, err
  2807. }
  2808. const opDescribeDBEngineVersions = "DescribeDBEngineVersions"
  2809. // DescribeDBEngineVersionsRequest generates a "aws/request.Request" representing the
  2810. // client's request for the DescribeDBEngineVersions operation. The "output" return
  2811. // value can be used to capture response data after the request's "Send" method
  2812. // is called.
  2813. //
  2814. // See DescribeDBEngineVersions for usage and error information.
  2815. //
  2816. // Creating a request object using this method should be used when you want to inject
  2817. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2818. // access properties on the request object before or after sending the request. If
  2819. // you just want the service response, call the DescribeDBEngineVersions method directly
  2820. // instead.
  2821. //
  2822. // Note: You must call the "Send" method on the returned request object in order
  2823. // to execute the request.
  2824. //
  2825. // // Example sending a request using the DescribeDBEngineVersionsRequest method.
  2826. // req, resp := client.DescribeDBEngineVersionsRequest(params)
  2827. //
  2828. // err := req.Send()
  2829. // if err == nil { // resp is now filled
  2830. // fmt.Println(resp)
  2831. // }
  2832. //
  2833. func (c *RDS) DescribeDBEngineVersionsRequest(input *DescribeDBEngineVersionsInput) (req *request.Request, output *DescribeDBEngineVersionsOutput) {
  2834. op := &request.Operation{
  2835. Name: opDescribeDBEngineVersions,
  2836. HTTPMethod: "POST",
  2837. HTTPPath: "/",
  2838. Paginator: &request.Paginator{
  2839. InputTokens: []string{"Marker"},
  2840. OutputTokens: []string{"Marker"},
  2841. LimitToken: "MaxRecords",
  2842. TruncationToken: "",
  2843. },
  2844. }
  2845. if input == nil {
  2846. input = &DescribeDBEngineVersionsInput{}
  2847. }
  2848. req = c.newRequest(op, input, output)
  2849. output = &DescribeDBEngineVersionsOutput{}
  2850. req.Data = output
  2851. return
  2852. }
  2853. // DescribeDBEngineVersions API operation for Amazon Relational Database Service.
  2854. //
  2855. // Returns a list of the available DB engines.
  2856. //
  2857. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2858. // with awserr.Error's Code and Message methods to get detailed information about
  2859. // the error.
  2860. //
  2861. // See the AWS API reference guide for Amazon Relational Database Service's
  2862. // API operation DescribeDBEngineVersions for usage and error information.
  2863. func (c *RDS) DescribeDBEngineVersions(input *DescribeDBEngineVersionsInput) (*DescribeDBEngineVersionsOutput, error) {
  2864. req, out := c.DescribeDBEngineVersionsRequest(input)
  2865. err := req.Send()
  2866. return out, err
  2867. }
  2868. // DescribeDBEngineVersionsPages iterates over the pages of a DescribeDBEngineVersions operation,
  2869. // calling the "fn" function with the response data for each page. To stop
  2870. // iterating, return false from the fn function.
  2871. //
  2872. // See DescribeDBEngineVersions method for more information on how to use this operation.
  2873. //
  2874. // Note: This operation can generate multiple requests to a service.
  2875. //
  2876. // // Example iterating over at most 3 pages of a DescribeDBEngineVersions operation.
  2877. // pageNum := 0
  2878. // err := client.DescribeDBEngineVersionsPages(params,
  2879. // func(page *DescribeDBEngineVersionsOutput, lastPage bool) bool {
  2880. // pageNum++
  2881. // fmt.Println(page)
  2882. // return pageNum <= 3
  2883. // })
  2884. //
  2885. func (c *RDS) DescribeDBEngineVersionsPages(input *DescribeDBEngineVersionsInput, fn func(p *DescribeDBEngineVersionsOutput, lastPage bool) (shouldContinue bool)) error {
  2886. page, _ := c.DescribeDBEngineVersionsRequest(input)
  2887. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2888. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2889. return fn(p.(*DescribeDBEngineVersionsOutput), lastPage)
  2890. })
  2891. }
  2892. const opDescribeDBInstances = "DescribeDBInstances"
  2893. // DescribeDBInstancesRequest generates a "aws/request.Request" representing the
  2894. // client's request for the DescribeDBInstances operation. The "output" return
  2895. // value can be used to capture response data after the request's "Send" method
  2896. // is called.
  2897. //
  2898. // See DescribeDBInstances for usage and error information.
  2899. //
  2900. // Creating a request object using this method should be used when you want to inject
  2901. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2902. // access properties on the request object before or after sending the request. If
  2903. // you just want the service response, call the DescribeDBInstances method directly
  2904. // instead.
  2905. //
  2906. // Note: You must call the "Send" method on the returned request object in order
  2907. // to execute the request.
  2908. //
  2909. // // Example sending a request using the DescribeDBInstancesRequest method.
  2910. // req, resp := client.DescribeDBInstancesRequest(params)
  2911. //
  2912. // err := req.Send()
  2913. // if err == nil { // resp is now filled
  2914. // fmt.Println(resp)
  2915. // }
  2916. //
  2917. func (c *RDS) DescribeDBInstancesRequest(input *DescribeDBInstancesInput) (req *request.Request, output *DescribeDBInstancesOutput) {
  2918. op := &request.Operation{
  2919. Name: opDescribeDBInstances,
  2920. HTTPMethod: "POST",
  2921. HTTPPath: "/",
  2922. Paginator: &request.Paginator{
  2923. InputTokens: []string{"Marker"},
  2924. OutputTokens: []string{"Marker"},
  2925. LimitToken: "MaxRecords",
  2926. TruncationToken: "",
  2927. },
  2928. }
  2929. if input == nil {
  2930. input = &DescribeDBInstancesInput{}
  2931. }
  2932. req = c.newRequest(op, input, output)
  2933. output = &DescribeDBInstancesOutput{}
  2934. req.Data = output
  2935. return
  2936. }
  2937. // DescribeDBInstances API operation for Amazon Relational Database Service.
  2938. //
  2939. // Returns information about provisioned RDS instances. This API supports pagination.
  2940. //
  2941. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2942. // with awserr.Error's Code and Message methods to get detailed information about
  2943. // the error.
  2944. //
  2945. // See the AWS API reference guide for Amazon Relational Database Service's
  2946. // API operation DescribeDBInstances for usage and error information.
  2947. //
  2948. // Returned Error Codes:
  2949. // * DBInstanceNotFound
  2950. // DBInstanceIdentifier does not refer to an existing DB instance.
  2951. //
  2952. func (c *RDS) DescribeDBInstances(input *DescribeDBInstancesInput) (*DescribeDBInstancesOutput, error) {
  2953. req, out := c.DescribeDBInstancesRequest(input)
  2954. err := req.Send()
  2955. return out, err
  2956. }
  2957. // DescribeDBInstancesPages iterates over the pages of a DescribeDBInstances operation,
  2958. // calling the "fn" function with the response data for each page. To stop
  2959. // iterating, return false from the fn function.
  2960. //
  2961. // See DescribeDBInstances method for more information on how to use this operation.
  2962. //
  2963. // Note: This operation can generate multiple requests to a service.
  2964. //
  2965. // // Example iterating over at most 3 pages of a DescribeDBInstances operation.
  2966. // pageNum := 0
  2967. // err := client.DescribeDBInstancesPages(params,
  2968. // func(page *DescribeDBInstancesOutput, lastPage bool) bool {
  2969. // pageNum++
  2970. // fmt.Println(page)
  2971. // return pageNum <= 3
  2972. // })
  2973. //
  2974. func (c *RDS) DescribeDBInstancesPages(input *DescribeDBInstancesInput, fn func(p *DescribeDBInstancesOutput, lastPage bool) (shouldContinue bool)) error {
  2975. page, _ := c.DescribeDBInstancesRequest(input)
  2976. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2977. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2978. return fn(p.(*DescribeDBInstancesOutput), lastPage)
  2979. })
  2980. }
  2981. const opDescribeDBLogFiles = "DescribeDBLogFiles"
  2982. // DescribeDBLogFilesRequest generates a "aws/request.Request" representing the
  2983. // client's request for the DescribeDBLogFiles operation. The "output" return
  2984. // value can be used to capture response data after the request's "Send" method
  2985. // is called.
  2986. //
  2987. // See DescribeDBLogFiles for usage and error information.
  2988. //
  2989. // Creating a request object using this method should be used when you want to inject
  2990. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2991. // access properties on the request object before or after sending the request. If
  2992. // you just want the service response, call the DescribeDBLogFiles method directly
  2993. // instead.
  2994. //
  2995. // Note: You must call the "Send" method on the returned request object in order
  2996. // to execute the request.
  2997. //
  2998. // // Example sending a request using the DescribeDBLogFilesRequest method.
  2999. // req, resp := client.DescribeDBLogFilesRequest(params)
  3000. //
  3001. // err := req.Send()
  3002. // if err == nil { // resp is now filled
  3003. // fmt.Println(resp)
  3004. // }
  3005. //
  3006. func (c *RDS) DescribeDBLogFilesRequest(input *DescribeDBLogFilesInput) (req *request.Request, output *DescribeDBLogFilesOutput) {
  3007. op := &request.Operation{
  3008. Name: opDescribeDBLogFiles,
  3009. HTTPMethod: "POST",
  3010. HTTPPath: "/",
  3011. Paginator: &request.Paginator{
  3012. InputTokens: []string{"Marker"},
  3013. OutputTokens: []string{"Marker"},
  3014. LimitToken: "MaxRecords",
  3015. TruncationToken: "",
  3016. },
  3017. }
  3018. if input == nil {
  3019. input = &DescribeDBLogFilesInput{}
  3020. }
  3021. req = c.newRequest(op, input, output)
  3022. output = &DescribeDBLogFilesOutput{}
  3023. req.Data = output
  3024. return
  3025. }
  3026. // DescribeDBLogFiles API operation for Amazon Relational Database Service.
  3027. //
  3028. // Returns a list of DB log files for the DB instance.
  3029. //
  3030. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3031. // with awserr.Error's Code and Message methods to get detailed information about
  3032. // the error.
  3033. //
  3034. // See the AWS API reference guide for Amazon Relational Database Service's
  3035. // API operation DescribeDBLogFiles for usage and error information.
  3036. //
  3037. // Returned Error Codes:
  3038. // * DBInstanceNotFound
  3039. // DBInstanceIdentifier does not refer to an existing DB instance.
  3040. //
  3041. func (c *RDS) DescribeDBLogFiles(input *DescribeDBLogFilesInput) (*DescribeDBLogFilesOutput, error) {
  3042. req, out := c.DescribeDBLogFilesRequest(input)
  3043. err := req.Send()
  3044. return out, err
  3045. }
  3046. // DescribeDBLogFilesPages iterates over the pages of a DescribeDBLogFiles operation,
  3047. // calling the "fn" function with the response data for each page. To stop
  3048. // iterating, return false from the fn function.
  3049. //
  3050. // See DescribeDBLogFiles method for more information on how to use this operation.
  3051. //
  3052. // Note: This operation can generate multiple requests to a service.
  3053. //
  3054. // // Example iterating over at most 3 pages of a DescribeDBLogFiles operation.
  3055. // pageNum := 0
  3056. // err := client.DescribeDBLogFilesPages(params,
  3057. // func(page *DescribeDBLogFilesOutput, lastPage bool) bool {
  3058. // pageNum++
  3059. // fmt.Println(page)
  3060. // return pageNum <= 3
  3061. // })
  3062. //
  3063. func (c *RDS) DescribeDBLogFilesPages(input *DescribeDBLogFilesInput, fn func(p *DescribeDBLogFilesOutput, lastPage bool) (shouldContinue bool)) error {
  3064. page, _ := c.DescribeDBLogFilesRequest(input)
  3065. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  3066. return page.EachPage(func(p interface{}, lastPage bool) bool {
  3067. return fn(p.(*DescribeDBLogFilesOutput), lastPage)
  3068. })
  3069. }
  3070. const opDescribeDBParameterGroups = "DescribeDBParameterGroups"
  3071. // DescribeDBParameterGroupsRequest generates a "aws/request.Request" representing the
  3072. // client's request for the DescribeDBParameterGroups operation. The "output" return
  3073. // value can be used to capture response data after the request's "Send" method
  3074. // is called.
  3075. //
  3076. // See DescribeDBParameterGroups for usage and error information.
  3077. //
  3078. // Creating a request object using this method should be used when you want to inject
  3079. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3080. // access properties on the request object before or after sending the request. If
  3081. // you just want the service response, call the DescribeDBParameterGroups method directly
  3082. // instead.
  3083. //
  3084. // Note: You must call the "Send" method on the returned request object in order
  3085. // to execute the request.
  3086. //
  3087. // // Example sending a request using the DescribeDBParameterGroupsRequest method.
  3088. // req, resp := client.DescribeDBParameterGroupsRequest(params)
  3089. //
  3090. // err := req.Send()
  3091. // if err == nil { // resp is now filled
  3092. // fmt.Println(resp)
  3093. // }
  3094. //
  3095. func (c *RDS) DescribeDBParameterGroupsRequest(input *DescribeDBParameterGroupsInput) (req *request.Request, output *DescribeDBParameterGroupsOutput) {
  3096. op := &request.Operation{
  3097. Name: opDescribeDBParameterGroups,
  3098. HTTPMethod: "POST",
  3099. HTTPPath: "/",
  3100. Paginator: &request.Paginator{
  3101. InputTokens: []string{"Marker"},
  3102. OutputTokens: []string{"Marker"},
  3103. LimitToken: "MaxRecords",
  3104. TruncationToken: "",
  3105. },
  3106. }
  3107. if input == nil {
  3108. input = &DescribeDBParameterGroupsInput{}
  3109. }
  3110. req = c.newRequest(op, input, output)
  3111. output = &DescribeDBParameterGroupsOutput{}
  3112. req.Data = output
  3113. return
  3114. }
  3115. // DescribeDBParameterGroups API operation for Amazon Relational Database Service.
  3116. //
  3117. // Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName
  3118. // is specified, the list will contain only the description of the specified
  3119. // DB parameter group.
  3120. //
  3121. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3122. // with awserr.Error's Code and Message methods to get detailed information about
  3123. // the error.
  3124. //
  3125. // See the AWS API reference guide for Amazon Relational Database Service's
  3126. // API operation DescribeDBParameterGroups for usage and error information.
  3127. //
  3128. // Returned Error Codes:
  3129. // * DBParameterGroupNotFound
  3130. // DBParameterGroupName does not refer to an existing DB parameter group.
  3131. //
  3132. func (c *RDS) DescribeDBParameterGroups(input *DescribeDBParameterGroupsInput) (*DescribeDBParameterGroupsOutput, error) {
  3133. req, out := c.DescribeDBParameterGroupsRequest(input)
  3134. err := req.Send()
  3135. return out, err
  3136. }
  3137. // DescribeDBParameterGroupsPages iterates over the pages of a DescribeDBParameterGroups operation,
  3138. // calling the "fn" function with the response data for each page. To stop
  3139. // iterating, return false from the fn function.
  3140. //
  3141. // See DescribeDBParameterGroups method for more information on how to use this operation.
  3142. //
  3143. // Note: This operation can generate multiple requests to a service.
  3144. //
  3145. // // Example iterating over at most 3 pages of a DescribeDBParameterGroups operation.
  3146. // pageNum := 0
  3147. // err := client.DescribeDBParameterGroupsPages(params,
  3148. // func(page *DescribeDBParameterGroupsOutput, lastPage bool) bool {
  3149. // pageNum++
  3150. // fmt.Println(page)
  3151. // return pageNum <= 3
  3152. // })
  3153. //
  3154. func (c *RDS) DescribeDBParameterGroupsPages(input *DescribeDBParameterGroupsInput, fn func(p *DescribeDBParameterGroupsOutput, lastPage bool) (shouldContinue bool)) error {
  3155. page, _ := c.DescribeDBParameterGroupsRequest(input)
  3156. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  3157. return page.EachPage(func(p interface{}, lastPage bool) bool {
  3158. return fn(p.(*DescribeDBParameterGroupsOutput), lastPage)
  3159. })
  3160. }
  3161. const opDescribeDBParameters = "DescribeDBParameters"
  3162. // DescribeDBParametersRequest generates a "aws/request.Request" representing the
  3163. // client's request for the DescribeDBParameters operation. The "output" return
  3164. // value can be used to capture response data after the request's "Send" method
  3165. // is called.
  3166. //
  3167. // See DescribeDBParameters for usage and error information.
  3168. //
  3169. // Creating a request object using this method should be used when you want to inject
  3170. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3171. // access properties on the request object before or after sending the request. If
  3172. // you just want the service response, call the DescribeDBParameters method directly
  3173. // instead.
  3174. //
  3175. // Note: You must call the "Send" method on the returned request object in order
  3176. // to execute the request.
  3177. //
  3178. // // Example sending a request using the DescribeDBParametersRequest method.
  3179. // req, resp := client.DescribeDBParametersRequest(params)
  3180. //
  3181. // err := req.Send()
  3182. // if err == nil { // resp is now filled
  3183. // fmt.Println(resp)
  3184. // }
  3185. //
  3186. func (c *RDS) DescribeDBParametersRequest(input *DescribeDBParametersInput) (req *request.Request, output *DescribeDBParametersOutput) {
  3187. op := &request.Operation{
  3188. Name: opDescribeDBParameters,
  3189. HTTPMethod: "POST",
  3190. HTTPPath: "/",
  3191. Paginator: &request.Paginator{
  3192. InputTokens: []string{"Marker"},
  3193. OutputTokens: []string{"Marker"},
  3194. LimitToken: "MaxRecords",
  3195. TruncationToken: "",
  3196. },
  3197. }
  3198. if input == nil {
  3199. input = &DescribeDBParametersInput{}
  3200. }
  3201. req = c.newRequest(op, input, output)
  3202. output = &DescribeDBParametersOutput{}
  3203. req.Data = output
  3204. return
  3205. }
  3206. // DescribeDBParameters API operation for Amazon Relational Database Service.
  3207. //
  3208. // Returns the detailed parameter list for a particular DB parameter group.
  3209. //
  3210. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3211. // with awserr.Error's Code and Message methods to get detailed information about
  3212. // the error.
  3213. //
  3214. // See the AWS API reference guide for Amazon Relational Database Service's
  3215. // API operation DescribeDBParameters for usage and error information.
  3216. //
  3217. // Returned Error Codes:
  3218. // * DBParameterGroupNotFound
  3219. // DBParameterGroupName does not refer to an existing DB parameter group.
  3220. //
  3221. func (c *RDS) DescribeDBParameters(input *DescribeDBParametersInput) (*DescribeDBParametersOutput, error) {
  3222. req, out := c.DescribeDBParametersRequest(input)
  3223. err := req.Send()
  3224. return out, err
  3225. }
  3226. // DescribeDBParametersPages iterates over the pages of a DescribeDBParameters operation,
  3227. // calling the "fn" function with the response data for each page. To stop
  3228. // iterating, return false from the fn function.
  3229. //
  3230. // See DescribeDBParameters method for more information on how to use this operation.
  3231. //
  3232. // Note: This operation can generate multiple requests to a service.
  3233. //
  3234. // // Example iterating over at most 3 pages of a DescribeDBParameters operation.
  3235. // pageNum := 0
  3236. // err := client.DescribeDBParametersPages(params,
  3237. // func(page *DescribeDBParametersOutput, lastPage bool) bool {
  3238. // pageNum++
  3239. // fmt.Println(page)
  3240. // return pageNum <= 3
  3241. // })
  3242. //
  3243. func (c *RDS) DescribeDBParametersPages(input *DescribeDBParametersInput, fn func(p *DescribeDBParametersOutput, lastPage bool) (shouldContinue bool)) error {
  3244. page, _ := c.DescribeDBParametersRequest(input)
  3245. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  3246. return page.EachPage(func(p interface{}, lastPage bool) bool {
  3247. return fn(p.(*DescribeDBParametersOutput), lastPage)
  3248. })
  3249. }
  3250. const opDescribeDBSecurityGroups = "DescribeDBSecurityGroups"
  3251. // DescribeDBSecurityGroupsRequest generates a "aws/request.Request" representing the
  3252. // client's request for the DescribeDBSecurityGroups operation. The "output" return
  3253. // value can be used to capture response data after the request's "Send" method
  3254. // is called.
  3255. //
  3256. // See DescribeDBSecurityGroups for usage and error information.
  3257. //
  3258. // Creating a request object using this method should be used when you want to inject
  3259. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3260. // access properties on the request object before or after sending the request. If
  3261. // you just want the service response, call the DescribeDBSecurityGroups method directly
  3262. // instead.
  3263. //
  3264. // Note: You must call the "Send" method on the returned request object in order
  3265. // to execute the request.
  3266. //
  3267. // // Example sending a request using the DescribeDBSecurityGroupsRequest method.
  3268. // req, resp := client.DescribeDBSecurityGroupsRequest(params)
  3269. //
  3270. // err := req.Send()
  3271. // if err == nil { // resp is now filled
  3272. // fmt.Println(resp)
  3273. // }
  3274. //
  3275. func (c *RDS) DescribeDBSecurityGroupsRequest(input *DescribeDBSecurityGroupsInput) (req *request.Request, output *DescribeDBSecurityGroupsOutput) {
  3276. op := &request.Operation{
  3277. Name: opDescribeDBSecurityGroups,
  3278. HTTPMethod: "POST",
  3279. HTTPPath: "/",
  3280. Paginator: &request.Paginator{
  3281. InputTokens: []string{"Marker"},
  3282. OutputTokens: []string{"Marker"},
  3283. LimitToken: "MaxRecords",
  3284. TruncationToken: "",
  3285. },
  3286. }
  3287. if input == nil {
  3288. input = &DescribeDBSecurityGroupsInput{}
  3289. }
  3290. req = c.newRequest(op, input, output)
  3291. output = &DescribeDBSecurityGroupsOutput{}
  3292. req.Data = output
  3293. return
  3294. }
  3295. // DescribeDBSecurityGroups API operation for Amazon Relational Database Service.
  3296. //
  3297. // Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName
  3298. // is specified, the list will contain only the descriptions of the specified
  3299. // DB security group.
  3300. //
  3301. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3302. // with awserr.Error's Code and Message methods to get detailed information about
  3303. // the error.
  3304. //
  3305. // See the AWS API reference guide for Amazon Relational Database Service's
  3306. // API operation DescribeDBSecurityGroups for usage and error information.
  3307. //
  3308. // Returned Error Codes:
  3309. // * DBSecurityGroupNotFound
  3310. // DBSecurityGroupName does not refer to an existing DB security group.
  3311. //
  3312. func (c *RDS) DescribeDBSecurityGroups(input *DescribeDBSecurityGroupsInput) (*DescribeDBSecurityGroupsOutput, error) {
  3313. req, out := c.DescribeDBSecurityGroupsRequest(input)
  3314. err := req.Send()
  3315. return out, err
  3316. }
  3317. // DescribeDBSecurityGroupsPages iterates over the pages of a DescribeDBSecurityGroups operation,
  3318. // calling the "fn" function with the response data for each page. To stop
  3319. // iterating, return false from the fn function.
  3320. //
  3321. // See DescribeDBSecurityGroups method for more information on how to use this operation.
  3322. //
  3323. // Note: This operation can generate multiple requests to a service.
  3324. //
  3325. // // Example iterating over at most 3 pages of a DescribeDBSecurityGroups operation.
  3326. // pageNum := 0
  3327. // err := client.DescribeDBSecurityGroupsPages(params,
  3328. // func(page *DescribeDBSecurityGroupsOutput, lastPage bool) bool {
  3329. // pageNum++
  3330. // fmt.Println(page)
  3331. // return pageNum <= 3
  3332. // })
  3333. //
  3334. func (c *RDS) DescribeDBSecurityGroupsPages(input *DescribeDBSecurityGroupsInput, fn func(p *DescribeDBSecurityGroupsOutput, lastPage bool) (shouldContinue bool)) error {
  3335. page, _ := c.DescribeDBSecurityGroupsRequest(input)
  3336. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  3337. return page.EachPage(func(p interface{}, lastPage bool) bool {
  3338. return fn(p.(*DescribeDBSecurityGroupsOutput), lastPage)
  3339. })
  3340. }
  3341. const opDescribeDBSnapshotAttributes = "DescribeDBSnapshotAttributes"
  3342. // DescribeDBSnapshotAttributesRequest generates a "aws/request.Request" representing the
  3343. // client's request for the DescribeDBSnapshotAttributes operation. The "output" return
  3344. // value can be used to capture response data after the request's "Send" method
  3345. // is called.
  3346. //
  3347. // See DescribeDBSnapshotAttributes for usage and error information.
  3348. //
  3349. // Creating a request object using this method should be used when you want to inject
  3350. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3351. // access properties on the request object before or after sending the request. If
  3352. // you just want the service response, call the DescribeDBSnapshotAttributes method directly
  3353. // instead.
  3354. //
  3355. // Note: You must call the "Send" method on the returned request object in order
  3356. // to execute the request.
  3357. //
  3358. // // Example sending a request using the DescribeDBSnapshotAttributesRequest method.
  3359. // req, resp := client.DescribeDBSnapshotAttributesRequest(params)
  3360. //
  3361. // err := req.Send()
  3362. // if err == nil { // resp is now filled
  3363. // fmt.Println(resp)
  3364. // }
  3365. //
  3366. func (c *RDS) DescribeDBSnapshotAttributesRequest(input *DescribeDBSnapshotAttributesInput) (req *request.Request, output *DescribeDBSnapshotAttributesOutput) {
  3367. op := &request.Operation{
  3368. Name: opDescribeDBSnapshotAttributes,
  3369. HTTPMethod: "POST",
  3370. HTTPPath: "/",
  3371. }
  3372. if input == nil {
  3373. input = &DescribeDBSnapshotAttributesInput{}
  3374. }
  3375. req = c.newRequest(op, input, output)
  3376. output = &DescribeDBSnapshotAttributesOutput{}
  3377. req.Data = output
  3378. return
  3379. }
  3380. // DescribeDBSnapshotAttributes API operation for Amazon Relational Database Service.
  3381. //
  3382. // Returns a list of DB snapshot attribute names and values for a manual DB
  3383. // snapshot.
  3384. //
  3385. // When sharing snapshots with other AWS accounts, DescribeDBSnapshotAttributes
  3386. // returns the restore attribute and a list of IDs for the AWS accounts that
  3387. // are authorized to copy or restore the manual DB snapshot. If all is included
  3388. // in the list of values for the restore attribute, then the manual DB snapshot
  3389. // is public and can be copied or restored by all AWS accounts.
  3390. //
  3391. // To add or remove access for an AWS account to copy or restore a manual DB
  3392. // snapshot, or to make the manual DB snapshot public or private, use the ModifyDBSnapshotAttribute
  3393. // API action.
  3394. //
  3395. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3396. // with awserr.Error's Code and Message methods to get detailed information about
  3397. // the error.
  3398. //
  3399. // See the AWS API reference guide for Amazon Relational Database Service's
  3400. // API operation DescribeDBSnapshotAttributes for usage and error information.
  3401. //
  3402. // Returned Error Codes:
  3403. // * DBSnapshotNotFound
  3404. // DBSnapshotIdentifier does not refer to an existing DB snapshot.
  3405. //
  3406. func (c *RDS) DescribeDBSnapshotAttributes(input *DescribeDBSnapshotAttributesInput) (*DescribeDBSnapshotAttributesOutput, error) {
  3407. req, out := c.DescribeDBSnapshotAttributesRequest(input)
  3408. err := req.Send()
  3409. return out, err
  3410. }
  3411. const opDescribeDBSnapshots = "DescribeDBSnapshots"
  3412. // DescribeDBSnapshotsRequest generates a "aws/request.Request" representing the
  3413. // client's request for the DescribeDBSnapshots operation. The "output" return
  3414. // value can be used to capture response data after the request's "Send" method
  3415. // is called.
  3416. //
  3417. // See DescribeDBSnapshots for usage and error information.
  3418. //
  3419. // Creating a request object using this method should be used when you want to inject
  3420. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3421. // access properties on the request object before or after sending the request. If
  3422. // you just want the service response, call the DescribeDBSnapshots method directly
  3423. // instead.
  3424. //
  3425. // Note: You must call the "Send" method on the returned request object in order
  3426. // to execute the request.
  3427. //
  3428. // // Example sending a request using the DescribeDBSnapshotsRequest method.
  3429. // req, resp := client.DescribeDBSnapshotsRequest(params)
  3430. //
  3431. // err := req.Send()
  3432. // if err == nil { // resp is now filled
  3433. // fmt.Println(resp)
  3434. // }
  3435. //
  3436. func (c *RDS) DescribeDBSnapshotsRequest(input *DescribeDBSnapshotsInput) (req *request.Request, output *DescribeDBSnapshotsOutput) {
  3437. op := &request.Operation{
  3438. Name: opDescribeDBSnapshots,
  3439. HTTPMethod: "POST",
  3440. HTTPPath: "/",
  3441. Paginator: &request.Paginator{
  3442. InputTokens: []string{"Marker"},
  3443. OutputTokens: []string{"Marker"},
  3444. LimitToken: "MaxRecords",
  3445. TruncationToken: "",
  3446. },
  3447. }
  3448. if input == nil {
  3449. input = &DescribeDBSnapshotsInput{}
  3450. }
  3451. req = c.newRequest(op, input, output)
  3452. output = &DescribeDBSnapshotsOutput{}
  3453. req.Data = output
  3454. return
  3455. }
  3456. // DescribeDBSnapshots API operation for Amazon Relational Database Service.
  3457. //
  3458. // Returns information about DB snapshots. This API action supports pagination.
  3459. //
  3460. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3461. // with awserr.Error's Code and Message methods to get detailed information about
  3462. // the error.
  3463. //
  3464. // See the AWS API reference guide for Amazon Relational Database Service's
  3465. // API operation DescribeDBSnapshots for usage and error information.
  3466. //
  3467. // Returned Error Codes:
  3468. // * DBSnapshotNotFound
  3469. // DBSnapshotIdentifier does not refer to an existing DB snapshot.
  3470. //
  3471. func (c *RDS) DescribeDBSnapshots(input *DescribeDBSnapshotsInput) (*DescribeDBSnapshotsOutput, error) {
  3472. req, out := c.DescribeDBSnapshotsRequest(input)
  3473. err := req.Send()
  3474. return out, err
  3475. }
  3476. // DescribeDBSnapshotsPages iterates over the pages of a DescribeDBSnapshots operation,
  3477. // calling the "fn" function with the response data for each page. To stop
  3478. // iterating, return false from the fn function.
  3479. //
  3480. // See DescribeDBSnapshots method for more information on how to use this operation.
  3481. //
  3482. // Note: This operation can generate multiple requests to a service.
  3483. //
  3484. // // Example iterating over at most 3 pages of a DescribeDBSnapshots operation.
  3485. // pageNum := 0
  3486. // err := client.DescribeDBSnapshotsPages(params,
  3487. // func(page *DescribeDBSnapshotsOutput, lastPage bool) bool {
  3488. // pageNum++
  3489. // fmt.Println(page)
  3490. // return pageNum <= 3
  3491. // })
  3492. //
  3493. func (c *RDS) DescribeDBSnapshotsPages(input *DescribeDBSnapshotsInput, fn func(p *DescribeDBSnapshotsOutput, lastPage bool) (shouldContinue bool)) error {
  3494. page, _ := c.DescribeDBSnapshotsRequest(input)
  3495. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  3496. return page.EachPage(func(p interface{}, lastPage bool) bool {
  3497. return fn(p.(*DescribeDBSnapshotsOutput), lastPage)
  3498. })
  3499. }
  3500. const opDescribeDBSubnetGroups = "DescribeDBSubnetGroups"
  3501. // DescribeDBSubnetGroupsRequest generates a "aws/request.Request" representing the
  3502. // client's request for the DescribeDBSubnetGroups operation. The "output" return
  3503. // value can be used to capture response data after the request's "Send" method
  3504. // is called.
  3505. //
  3506. // See DescribeDBSubnetGroups for usage and error information.
  3507. //
  3508. // Creating a request object using this method should be used when you want to inject
  3509. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3510. // access properties on the request object before or after sending the request. If
  3511. // you just want the service response, call the DescribeDBSubnetGroups method directly
  3512. // instead.
  3513. //
  3514. // Note: You must call the "Send" method on the returned request object in order
  3515. // to execute the request.
  3516. //
  3517. // // Example sending a request using the DescribeDBSubnetGroupsRequest method.
  3518. // req, resp := client.DescribeDBSubnetGroupsRequest(params)
  3519. //
  3520. // err := req.Send()
  3521. // if err == nil { // resp is now filled
  3522. // fmt.Println(resp)
  3523. // }
  3524. //
  3525. func (c *RDS) DescribeDBSubnetGroupsRequest(input *DescribeDBSubnetGroupsInput) (req *request.Request, output *DescribeDBSubnetGroupsOutput) {
  3526. op := &request.Operation{
  3527. Name: opDescribeDBSubnetGroups,
  3528. HTTPMethod: "POST",
  3529. HTTPPath: "/",
  3530. Paginator: &request.Paginator{
  3531. InputTokens: []string{"Marker"},
  3532. OutputTokens: []string{"Marker"},
  3533. LimitToken: "MaxRecords",
  3534. TruncationToken: "",
  3535. },
  3536. }
  3537. if input == nil {
  3538. input = &DescribeDBSubnetGroupsInput{}
  3539. }
  3540. req = c.newRequest(op, input, output)
  3541. output = &DescribeDBSubnetGroupsOutput{}
  3542. req.Data = output
  3543. return
  3544. }
  3545. // DescribeDBSubnetGroups API operation for Amazon Relational Database Service.
  3546. //
  3547. // Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified,
  3548. // the list will contain only the descriptions of the specified DBSubnetGroup.
  3549. //
  3550. // For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing).
  3551. //
  3552. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3553. // with awserr.Error's Code and Message methods to get detailed information about
  3554. // the error.
  3555. //
  3556. // See the AWS API reference guide for Amazon Relational Database Service's
  3557. // API operation DescribeDBSubnetGroups for usage and error information.
  3558. //
  3559. // Returned Error Codes:
  3560. // * DBSubnetGroupNotFoundFault
  3561. // DBSubnetGroupName does not refer to an existing DB subnet group.
  3562. //
  3563. func (c *RDS) DescribeDBSubnetGroups(input *DescribeDBSubnetGroupsInput) (*DescribeDBSubnetGroupsOutput, error) {
  3564. req, out := c.DescribeDBSubnetGroupsRequest(input)
  3565. err := req.Send()
  3566. return out, err
  3567. }
  3568. // DescribeDBSubnetGroupsPages iterates over the pages of a DescribeDBSubnetGroups operation,
  3569. // calling the "fn" function with the response data for each page. To stop
  3570. // iterating, return false from the fn function.
  3571. //
  3572. // See DescribeDBSubnetGroups method for more information on how to use this operation.
  3573. //
  3574. // Note: This operation can generate multiple requests to a service.
  3575. //
  3576. // // Example iterating over at most 3 pages of a DescribeDBSubnetGroups operation.
  3577. // pageNum := 0
  3578. // err := client.DescribeDBSubnetGroupsPages(params,
  3579. // func(page *DescribeDBSubnetGroupsOutput, lastPage bool) bool {
  3580. // pageNum++
  3581. // fmt.Println(page)
  3582. // return pageNum <= 3
  3583. // })
  3584. //
  3585. func (c *RDS) DescribeDBSubnetGroupsPages(input *DescribeDBSubnetGroupsInput, fn func(p *DescribeDBSubnetGroupsOutput, lastPage bool) (shouldContinue bool)) error {
  3586. page, _ := c.DescribeDBSubnetGroupsRequest(input)
  3587. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  3588. return page.EachPage(func(p interface{}, lastPage bool) bool {
  3589. return fn(p.(*DescribeDBSubnetGroupsOutput), lastPage)
  3590. })
  3591. }
  3592. const opDescribeEngineDefaultClusterParameters = "DescribeEngineDefaultClusterParameters"
  3593. // DescribeEngineDefaultClusterParametersRequest generates a "aws/request.Request" representing the
  3594. // client's request for the DescribeEngineDefaultClusterParameters operation. The "output" return
  3595. // value can be used to capture response data after the request's "Send" method
  3596. // is called.
  3597. //
  3598. // See DescribeEngineDefaultClusterParameters for usage and error information.
  3599. //
  3600. // Creating a request object using this method should be used when you want to inject
  3601. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3602. // access properties on the request object before or after sending the request. If
  3603. // you just want the service response, call the DescribeEngineDefaultClusterParameters method directly
  3604. // instead.
  3605. //
  3606. // Note: You must call the "Send" method on the returned request object in order
  3607. // to execute the request.
  3608. //
  3609. // // Example sending a request using the DescribeEngineDefaultClusterParametersRequest method.
  3610. // req, resp := client.DescribeEngineDefaultClusterParametersRequest(params)
  3611. //
  3612. // err := req.Send()
  3613. // if err == nil { // resp is now filled
  3614. // fmt.Println(resp)
  3615. // }
  3616. //
  3617. func (c *RDS) DescribeEngineDefaultClusterParametersRequest(input *DescribeEngineDefaultClusterParametersInput) (req *request.Request, output *DescribeEngineDefaultClusterParametersOutput) {
  3618. op := &request.Operation{
  3619. Name: opDescribeEngineDefaultClusterParameters,
  3620. HTTPMethod: "POST",
  3621. HTTPPath: "/",
  3622. }
  3623. if input == nil {
  3624. input = &DescribeEngineDefaultClusterParametersInput{}
  3625. }
  3626. req = c.newRequest(op, input, output)
  3627. output = &DescribeEngineDefaultClusterParametersOutput{}
  3628. req.Data = output
  3629. return
  3630. }
  3631. // DescribeEngineDefaultClusterParameters API operation for Amazon Relational Database Service.
  3632. //
  3633. // Returns the default engine and system parameter information for the cluster
  3634. // database engine.
  3635. //
  3636. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  3637. // in the Amazon RDS User Guide.
  3638. //
  3639. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3640. // with awserr.Error's Code and Message methods to get detailed information about
  3641. // the error.
  3642. //
  3643. // See the AWS API reference guide for Amazon Relational Database Service's
  3644. // API operation DescribeEngineDefaultClusterParameters for usage and error information.
  3645. func (c *RDS) DescribeEngineDefaultClusterParameters(input *DescribeEngineDefaultClusterParametersInput) (*DescribeEngineDefaultClusterParametersOutput, error) {
  3646. req, out := c.DescribeEngineDefaultClusterParametersRequest(input)
  3647. err := req.Send()
  3648. return out, err
  3649. }
  3650. const opDescribeEngineDefaultParameters = "DescribeEngineDefaultParameters"
  3651. // DescribeEngineDefaultParametersRequest generates a "aws/request.Request" representing the
  3652. // client's request for the DescribeEngineDefaultParameters operation. The "output" return
  3653. // value can be used to capture response data after the request's "Send" method
  3654. // is called.
  3655. //
  3656. // See DescribeEngineDefaultParameters for usage and error information.
  3657. //
  3658. // Creating a request object using this method should be used when you want to inject
  3659. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3660. // access properties on the request object before or after sending the request. If
  3661. // you just want the service response, call the DescribeEngineDefaultParameters method directly
  3662. // instead.
  3663. //
  3664. // Note: You must call the "Send" method on the returned request object in order
  3665. // to execute the request.
  3666. //
  3667. // // Example sending a request using the DescribeEngineDefaultParametersRequest method.
  3668. // req, resp := client.DescribeEngineDefaultParametersRequest(params)
  3669. //
  3670. // err := req.Send()
  3671. // if err == nil { // resp is now filled
  3672. // fmt.Println(resp)
  3673. // }
  3674. //
  3675. func (c *RDS) DescribeEngineDefaultParametersRequest(input *DescribeEngineDefaultParametersInput) (req *request.Request, output *DescribeEngineDefaultParametersOutput) {
  3676. op := &request.Operation{
  3677. Name: opDescribeEngineDefaultParameters,
  3678. HTTPMethod: "POST",
  3679. HTTPPath: "/",
  3680. Paginator: &request.Paginator{
  3681. InputTokens: []string{"Marker"},
  3682. OutputTokens: []string{"EngineDefaults.Marker"},
  3683. LimitToken: "MaxRecords",
  3684. TruncationToken: "",
  3685. },
  3686. }
  3687. if input == nil {
  3688. input = &DescribeEngineDefaultParametersInput{}
  3689. }
  3690. req = c.newRequest(op, input, output)
  3691. output = &DescribeEngineDefaultParametersOutput{}
  3692. req.Data = output
  3693. return
  3694. }
  3695. // DescribeEngineDefaultParameters API operation for Amazon Relational Database Service.
  3696. //
  3697. // Returns the default engine and system parameter information for the specified
  3698. // database engine.
  3699. //
  3700. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3701. // with awserr.Error's Code and Message methods to get detailed information about
  3702. // the error.
  3703. //
  3704. // See the AWS API reference guide for Amazon Relational Database Service's
  3705. // API operation DescribeEngineDefaultParameters for usage and error information.
  3706. func (c *RDS) DescribeEngineDefaultParameters(input *DescribeEngineDefaultParametersInput) (*DescribeEngineDefaultParametersOutput, error) {
  3707. req, out := c.DescribeEngineDefaultParametersRequest(input)
  3708. err := req.Send()
  3709. return out, err
  3710. }
  3711. // DescribeEngineDefaultParametersPages iterates over the pages of a DescribeEngineDefaultParameters operation,
  3712. // calling the "fn" function with the response data for each page. To stop
  3713. // iterating, return false from the fn function.
  3714. //
  3715. // See DescribeEngineDefaultParameters method for more information on how to use this operation.
  3716. //
  3717. // Note: This operation can generate multiple requests to a service.
  3718. //
  3719. // // Example iterating over at most 3 pages of a DescribeEngineDefaultParameters operation.
  3720. // pageNum := 0
  3721. // err := client.DescribeEngineDefaultParametersPages(params,
  3722. // func(page *DescribeEngineDefaultParametersOutput, lastPage bool) bool {
  3723. // pageNum++
  3724. // fmt.Println(page)
  3725. // return pageNum <= 3
  3726. // })
  3727. //
  3728. func (c *RDS) DescribeEngineDefaultParametersPages(input *DescribeEngineDefaultParametersInput, fn func(p *DescribeEngineDefaultParametersOutput, lastPage bool) (shouldContinue bool)) error {
  3729. page, _ := c.DescribeEngineDefaultParametersRequest(input)
  3730. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  3731. return page.EachPage(func(p interface{}, lastPage bool) bool {
  3732. return fn(p.(*DescribeEngineDefaultParametersOutput), lastPage)
  3733. })
  3734. }
  3735. const opDescribeEventCategories = "DescribeEventCategories"
  3736. // DescribeEventCategoriesRequest generates a "aws/request.Request" representing the
  3737. // client's request for the DescribeEventCategories operation. The "output" return
  3738. // value can be used to capture response data after the request's "Send" method
  3739. // is called.
  3740. //
  3741. // See DescribeEventCategories for usage and error information.
  3742. //
  3743. // Creating a request object using this method should be used when you want to inject
  3744. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3745. // access properties on the request object before or after sending the request. If
  3746. // you just want the service response, call the DescribeEventCategories method directly
  3747. // instead.
  3748. //
  3749. // Note: You must call the "Send" method on the returned request object in order
  3750. // to execute the request.
  3751. //
  3752. // // Example sending a request using the DescribeEventCategoriesRequest method.
  3753. // req, resp := client.DescribeEventCategoriesRequest(params)
  3754. //
  3755. // err := req.Send()
  3756. // if err == nil { // resp is now filled
  3757. // fmt.Println(resp)
  3758. // }
  3759. //
  3760. func (c *RDS) DescribeEventCategoriesRequest(input *DescribeEventCategoriesInput) (req *request.Request, output *DescribeEventCategoriesOutput) {
  3761. op := &request.Operation{
  3762. Name: opDescribeEventCategories,
  3763. HTTPMethod: "POST",
  3764. HTTPPath: "/",
  3765. }
  3766. if input == nil {
  3767. input = &DescribeEventCategoriesInput{}
  3768. }
  3769. req = c.newRequest(op, input, output)
  3770. output = &DescribeEventCategoriesOutput{}
  3771. req.Data = output
  3772. return
  3773. }
  3774. // DescribeEventCategories API operation for Amazon Relational Database Service.
  3775. //
  3776. // Displays a list of categories for all event source types, or, if specified,
  3777. // for a specified source type. You can see a list of the event categories and
  3778. // source types in the Events (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html)
  3779. // topic in the Amazon RDS User Guide.
  3780. //
  3781. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3782. // with awserr.Error's Code and Message methods to get detailed information about
  3783. // the error.
  3784. //
  3785. // See the AWS API reference guide for Amazon Relational Database Service's
  3786. // API operation DescribeEventCategories for usage and error information.
  3787. func (c *RDS) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error) {
  3788. req, out := c.DescribeEventCategoriesRequest(input)
  3789. err := req.Send()
  3790. return out, err
  3791. }
  3792. const opDescribeEventSubscriptions = "DescribeEventSubscriptions"
  3793. // DescribeEventSubscriptionsRequest generates a "aws/request.Request" representing the
  3794. // client's request for the DescribeEventSubscriptions operation. The "output" return
  3795. // value can be used to capture response data after the request's "Send" method
  3796. // is called.
  3797. //
  3798. // See DescribeEventSubscriptions for usage and error information.
  3799. //
  3800. // Creating a request object using this method should be used when you want to inject
  3801. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3802. // access properties on the request object before or after sending the request. If
  3803. // you just want the service response, call the DescribeEventSubscriptions method directly
  3804. // instead.
  3805. //
  3806. // Note: You must call the "Send" method on the returned request object in order
  3807. // to execute the request.
  3808. //
  3809. // // Example sending a request using the DescribeEventSubscriptionsRequest method.
  3810. // req, resp := client.DescribeEventSubscriptionsRequest(params)
  3811. //
  3812. // err := req.Send()
  3813. // if err == nil { // resp is now filled
  3814. // fmt.Println(resp)
  3815. // }
  3816. //
  3817. func (c *RDS) DescribeEventSubscriptionsRequest(input *DescribeEventSubscriptionsInput) (req *request.Request, output *DescribeEventSubscriptionsOutput) {
  3818. op := &request.Operation{
  3819. Name: opDescribeEventSubscriptions,
  3820. HTTPMethod: "POST",
  3821. HTTPPath: "/",
  3822. Paginator: &request.Paginator{
  3823. InputTokens: []string{"Marker"},
  3824. OutputTokens: []string{"Marker"},
  3825. LimitToken: "MaxRecords",
  3826. TruncationToken: "",
  3827. },
  3828. }
  3829. if input == nil {
  3830. input = &DescribeEventSubscriptionsInput{}
  3831. }
  3832. req = c.newRequest(op, input, output)
  3833. output = &DescribeEventSubscriptionsOutput{}
  3834. req.Data = output
  3835. return
  3836. }
  3837. // DescribeEventSubscriptions API operation for Amazon Relational Database Service.
  3838. //
  3839. // Lists all the subscription descriptions for a customer account. The description
  3840. // for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType,
  3841. // SourceID, CreationTime, and Status.
  3842. //
  3843. // If you specify a SubscriptionName, lists the description for that subscription.
  3844. //
  3845. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3846. // with awserr.Error's Code and Message methods to get detailed information about
  3847. // the error.
  3848. //
  3849. // See the AWS API reference guide for Amazon Relational Database Service's
  3850. // API operation DescribeEventSubscriptions for usage and error information.
  3851. //
  3852. // Returned Error Codes:
  3853. // * SubscriptionNotFound
  3854. // The subscription name does not exist.
  3855. //
  3856. func (c *RDS) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) (*DescribeEventSubscriptionsOutput, error) {
  3857. req, out := c.DescribeEventSubscriptionsRequest(input)
  3858. err := req.Send()
  3859. return out, err
  3860. }
  3861. // DescribeEventSubscriptionsPages iterates over the pages of a DescribeEventSubscriptions operation,
  3862. // calling the "fn" function with the response data for each page. To stop
  3863. // iterating, return false from the fn function.
  3864. //
  3865. // See DescribeEventSubscriptions method for more information on how to use this operation.
  3866. //
  3867. // Note: This operation can generate multiple requests to a service.
  3868. //
  3869. // // Example iterating over at most 3 pages of a DescribeEventSubscriptions operation.
  3870. // pageNum := 0
  3871. // err := client.DescribeEventSubscriptionsPages(params,
  3872. // func(page *DescribeEventSubscriptionsOutput, lastPage bool) bool {
  3873. // pageNum++
  3874. // fmt.Println(page)
  3875. // return pageNum <= 3
  3876. // })
  3877. //
  3878. func (c *RDS) DescribeEventSubscriptionsPages(input *DescribeEventSubscriptionsInput, fn func(p *DescribeEventSubscriptionsOutput, lastPage bool) (shouldContinue bool)) error {
  3879. page, _ := c.DescribeEventSubscriptionsRequest(input)
  3880. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  3881. return page.EachPage(func(p interface{}, lastPage bool) bool {
  3882. return fn(p.(*DescribeEventSubscriptionsOutput), lastPage)
  3883. })
  3884. }
  3885. const opDescribeEvents = "DescribeEvents"
  3886. // DescribeEventsRequest generates a "aws/request.Request" representing the
  3887. // client's request for the DescribeEvents operation. The "output" return
  3888. // value can be used to capture response data after the request's "Send" method
  3889. // is called.
  3890. //
  3891. // See DescribeEvents for usage and error information.
  3892. //
  3893. // Creating a request object using this method should be used when you want to inject
  3894. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3895. // access properties on the request object before or after sending the request. If
  3896. // you just want the service response, call the DescribeEvents method directly
  3897. // instead.
  3898. //
  3899. // Note: You must call the "Send" method on the returned request object in order
  3900. // to execute the request.
  3901. //
  3902. // // Example sending a request using the DescribeEventsRequest method.
  3903. // req, resp := client.DescribeEventsRequest(params)
  3904. //
  3905. // err := req.Send()
  3906. // if err == nil { // resp is now filled
  3907. // fmt.Println(resp)
  3908. // }
  3909. //
  3910. func (c *RDS) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) {
  3911. op := &request.Operation{
  3912. Name: opDescribeEvents,
  3913. HTTPMethod: "POST",
  3914. HTTPPath: "/",
  3915. Paginator: &request.Paginator{
  3916. InputTokens: []string{"Marker"},
  3917. OutputTokens: []string{"Marker"},
  3918. LimitToken: "MaxRecords",
  3919. TruncationToken: "",
  3920. },
  3921. }
  3922. if input == nil {
  3923. input = &DescribeEventsInput{}
  3924. }
  3925. req = c.newRequest(op, input, output)
  3926. output = &DescribeEventsOutput{}
  3927. req.Data = output
  3928. return
  3929. }
  3930. // DescribeEvents API operation for Amazon Relational Database Service.
  3931. //
  3932. // Returns events related to DB instances, DB security groups, DB snapshots,
  3933. // and DB parameter groups for the past 14 days. Events specific to a particular
  3934. // DB instance, DB security group, database snapshot, or DB parameter group
  3935. // can be obtained by providing the name as a parameter. By default, the past
  3936. // hour of events are returned.
  3937. //
  3938. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3939. // with awserr.Error's Code and Message methods to get detailed information about
  3940. // the error.
  3941. //
  3942. // See the AWS API reference guide for Amazon Relational Database Service's
  3943. // API operation DescribeEvents for usage and error information.
  3944. func (c *RDS) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) {
  3945. req, out := c.DescribeEventsRequest(input)
  3946. err := req.Send()
  3947. return out, err
  3948. }
  3949. // DescribeEventsPages iterates over the pages of a DescribeEvents operation,
  3950. // calling the "fn" function with the response data for each page. To stop
  3951. // iterating, return false from the fn function.
  3952. //
  3953. // See DescribeEvents method for more information on how to use this operation.
  3954. //
  3955. // Note: This operation can generate multiple requests to a service.
  3956. //
  3957. // // Example iterating over at most 3 pages of a DescribeEvents operation.
  3958. // pageNum := 0
  3959. // err := client.DescribeEventsPages(params,
  3960. // func(page *DescribeEventsOutput, lastPage bool) bool {
  3961. // pageNum++
  3962. // fmt.Println(page)
  3963. // return pageNum <= 3
  3964. // })
  3965. //
  3966. func (c *RDS) DescribeEventsPages(input *DescribeEventsInput, fn func(p *DescribeEventsOutput, lastPage bool) (shouldContinue bool)) error {
  3967. page, _ := c.DescribeEventsRequest(input)
  3968. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  3969. return page.EachPage(func(p interface{}, lastPage bool) bool {
  3970. return fn(p.(*DescribeEventsOutput), lastPage)
  3971. })
  3972. }
  3973. const opDescribeOptionGroupOptions = "DescribeOptionGroupOptions"
  3974. // DescribeOptionGroupOptionsRequest generates a "aws/request.Request" representing the
  3975. // client's request for the DescribeOptionGroupOptions operation. The "output" return
  3976. // value can be used to capture response data after the request's "Send" method
  3977. // is called.
  3978. //
  3979. // See DescribeOptionGroupOptions for usage and error information.
  3980. //
  3981. // Creating a request object using this method should be used when you want to inject
  3982. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3983. // access properties on the request object before or after sending the request. If
  3984. // you just want the service response, call the DescribeOptionGroupOptions method directly
  3985. // instead.
  3986. //
  3987. // Note: You must call the "Send" method on the returned request object in order
  3988. // to execute the request.
  3989. //
  3990. // // Example sending a request using the DescribeOptionGroupOptionsRequest method.
  3991. // req, resp := client.DescribeOptionGroupOptionsRequest(params)
  3992. //
  3993. // err := req.Send()
  3994. // if err == nil { // resp is now filled
  3995. // fmt.Println(resp)
  3996. // }
  3997. //
  3998. func (c *RDS) DescribeOptionGroupOptionsRequest(input *DescribeOptionGroupOptionsInput) (req *request.Request, output *DescribeOptionGroupOptionsOutput) {
  3999. op := &request.Operation{
  4000. Name: opDescribeOptionGroupOptions,
  4001. HTTPMethod: "POST",
  4002. HTTPPath: "/",
  4003. Paginator: &request.Paginator{
  4004. InputTokens: []string{"Marker"},
  4005. OutputTokens: []string{"Marker"},
  4006. LimitToken: "MaxRecords",
  4007. TruncationToken: "",
  4008. },
  4009. }
  4010. if input == nil {
  4011. input = &DescribeOptionGroupOptionsInput{}
  4012. }
  4013. req = c.newRequest(op, input, output)
  4014. output = &DescribeOptionGroupOptionsOutput{}
  4015. req.Data = output
  4016. return
  4017. }
  4018. // DescribeOptionGroupOptions API operation for Amazon Relational Database Service.
  4019. //
  4020. // Describes all available options.
  4021. //
  4022. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4023. // with awserr.Error's Code and Message methods to get detailed information about
  4024. // the error.
  4025. //
  4026. // See the AWS API reference guide for Amazon Relational Database Service's
  4027. // API operation DescribeOptionGroupOptions for usage and error information.
  4028. func (c *RDS) DescribeOptionGroupOptions(input *DescribeOptionGroupOptionsInput) (*DescribeOptionGroupOptionsOutput, error) {
  4029. req, out := c.DescribeOptionGroupOptionsRequest(input)
  4030. err := req.Send()
  4031. return out, err
  4032. }
  4033. // DescribeOptionGroupOptionsPages iterates over the pages of a DescribeOptionGroupOptions operation,
  4034. // calling the "fn" function with the response data for each page. To stop
  4035. // iterating, return false from the fn function.
  4036. //
  4037. // See DescribeOptionGroupOptions method for more information on how to use this operation.
  4038. //
  4039. // Note: This operation can generate multiple requests to a service.
  4040. //
  4041. // // Example iterating over at most 3 pages of a DescribeOptionGroupOptions operation.
  4042. // pageNum := 0
  4043. // err := client.DescribeOptionGroupOptionsPages(params,
  4044. // func(page *DescribeOptionGroupOptionsOutput, lastPage bool) bool {
  4045. // pageNum++
  4046. // fmt.Println(page)
  4047. // return pageNum <= 3
  4048. // })
  4049. //
  4050. func (c *RDS) DescribeOptionGroupOptionsPages(input *DescribeOptionGroupOptionsInput, fn func(p *DescribeOptionGroupOptionsOutput, lastPage bool) (shouldContinue bool)) error {
  4051. page, _ := c.DescribeOptionGroupOptionsRequest(input)
  4052. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  4053. return page.EachPage(func(p interface{}, lastPage bool) bool {
  4054. return fn(p.(*DescribeOptionGroupOptionsOutput), lastPage)
  4055. })
  4056. }
  4057. const opDescribeOptionGroups = "DescribeOptionGroups"
  4058. // DescribeOptionGroupsRequest generates a "aws/request.Request" representing the
  4059. // client's request for the DescribeOptionGroups operation. The "output" return
  4060. // value can be used to capture response data after the request's "Send" method
  4061. // is called.
  4062. //
  4063. // See DescribeOptionGroups for usage and error information.
  4064. //
  4065. // Creating a request object using this method should be used when you want to inject
  4066. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4067. // access properties on the request object before or after sending the request. If
  4068. // you just want the service response, call the DescribeOptionGroups method directly
  4069. // instead.
  4070. //
  4071. // Note: You must call the "Send" method on the returned request object in order
  4072. // to execute the request.
  4073. //
  4074. // // Example sending a request using the DescribeOptionGroupsRequest method.
  4075. // req, resp := client.DescribeOptionGroupsRequest(params)
  4076. //
  4077. // err := req.Send()
  4078. // if err == nil { // resp is now filled
  4079. // fmt.Println(resp)
  4080. // }
  4081. //
  4082. func (c *RDS) DescribeOptionGroupsRequest(input *DescribeOptionGroupsInput) (req *request.Request, output *DescribeOptionGroupsOutput) {
  4083. op := &request.Operation{
  4084. Name: opDescribeOptionGroups,
  4085. HTTPMethod: "POST",
  4086. HTTPPath: "/",
  4087. Paginator: &request.Paginator{
  4088. InputTokens: []string{"Marker"},
  4089. OutputTokens: []string{"Marker"},
  4090. LimitToken: "MaxRecords",
  4091. TruncationToken: "",
  4092. },
  4093. }
  4094. if input == nil {
  4095. input = &DescribeOptionGroupsInput{}
  4096. }
  4097. req = c.newRequest(op, input, output)
  4098. output = &DescribeOptionGroupsOutput{}
  4099. req.Data = output
  4100. return
  4101. }
  4102. // DescribeOptionGroups API operation for Amazon Relational Database Service.
  4103. //
  4104. // Describes the available option groups.
  4105. //
  4106. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4107. // with awserr.Error's Code and Message methods to get detailed information about
  4108. // the error.
  4109. //
  4110. // See the AWS API reference guide for Amazon Relational Database Service's
  4111. // API operation DescribeOptionGroups for usage and error information.
  4112. //
  4113. // Returned Error Codes:
  4114. // * OptionGroupNotFoundFault
  4115. // The specified option group could not be found.
  4116. //
  4117. func (c *RDS) DescribeOptionGroups(input *DescribeOptionGroupsInput) (*DescribeOptionGroupsOutput, error) {
  4118. req, out := c.DescribeOptionGroupsRequest(input)
  4119. err := req.Send()
  4120. return out, err
  4121. }
  4122. // DescribeOptionGroupsPages iterates over the pages of a DescribeOptionGroups operation,
  4123. // calling the "fn" function with the response data for each page. To stop
  4124. // iterating, return false from the fn function.
  4125. //
  4126. // See DescribeOptionGroups method for more information on how to use this operation.
  4127. //
  4128. // Note: This operation can generate multiple requests to a service.
  4129. //
  4130. // // Example iterating over at most 3 pages of a DescribeOptionGroups operation.
  4131. // pageNum := 0
  4132. // err := client.DescribeOptionGroupsPages(params,
  4133. // func(page *DescribeOptionGroupsOutput, lastPage bool) bool {
  4134. // pageNum++
  4135. // fmt.Println(page)
  4136. // return pageNum <= 3
  4137. // })
  4138. //
  4139. func (c *RDS) DescribeOptionGroupsPages(input *DescribeOptionGroupsInput, fn func(p *DescribeOptionGroupsOutput, lastPage bool) (shouldContinue bool)) error {
  4140. page, _ := c.DescribeOptionGroupsRequest(input)
  4141. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  4142. return page.EachPage(func(p interface{}, lastPage bool) bool {
  4143. return fn(p.(*DescribeOptionGroupsOutput), lastPage)
  4144. })
  4145. }
  4146. const opDescribeOrderableDBInstanceOptions = "DescribeOrderableDBInstanceOptions"
  4147. // DescribeOrderableDBInstanceOptionsRequest generates a "aws/request.Request" representing the
  4148. // client's request for the DescribeOrderableDBInstanceOptions operation. The "output" return
  4149. // value can be used to capture response data after the request's "Send" method
  4150. // is called.
  4151. //
  4152. // See DescribeOrderableDBInstanceOptions for usage and error information.
  4153. //
  4154. // Creating a request object using this method should be used when you want to inject
  4155. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4156. // access properties on the request object before or after sending the request. If
  4157. // you just want the service response, call the DescribeOrderableDBInstanceOptions method directly
  4158. // instead.
  4159. //
  4160. // Note: You must call the "Send" method on the returned request object in order
  4161. // to execute the request.
  4162. //
  4163. // // Example sending a request using the DescribeOrderableDBInstanceOptionsRequest method.
  4164. // req, resp := client.DescribeOrderableDBInstanceOptionsRequest(params)
  4165. //
  4166. // err := req.Send()
  4167. // if err == nil { // resp is now filled
  4168. // fmt.Println(resp)
  4169. // }
  4170. //
  4171. func (c *RDS) DescribeOrderableDBInstanceOptionsRequest(input *DescribeOrderableDBInstanceOptionsInput) (req *request.Request, output *DescribeOrderableDBInstanceOptionsOutput) {
  4172. op := &request.Operation{
  4173. Name: opDescribeOrderableDBInstanceOptions,
  4174. HTTPMethod: "POST",
  4175. HTTPPath: "/",
  4176. Paginator: &request.Paginator{
  4177. InputTokens: []string{"Marker"},
  4178. OutputTokens: []string{"Marker"},
  4179. LimitToken: "MaxRecords",
  4180. TruncationToken: "",
  4181. },
  4182. }
  4183. if input == nil {
  4184. input = &DescribeOrderableDBInstanceOptionsInput{}
  4185. }
  4186. req = c.newRequest(op, input, output)
  4187. output = &DescribeOrderableDBInstanceOptionsOutput{}
  4188. req.Data = output
  4189. return
  4190. }
  4191. // DescribeOrderableDBInstanceOptions API operation for Amazon Relational Database Service.
  4192. //
  4193. // Returns a list of orderable DB instance options for the specified engine.
  4194. //
  4195. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4196. // with awserr.Error's Code and Message methods to get detailed information about
  4197. // the error.
  4198. //
  4199. // See the AWS API reference guide for Amazon Relational Database Service's
  4200. // API operation DescribeOrderableDBInstanceOptions for usage and error information.
  4201. func (c *RDS) DescribeOrderableDBInstanceOptions(input *DescribeOrderableDBInstanceOptionsInput) (*DescribeOrderableDBInstanceOptionsOutput, error) {
  4202. req, out := c.DescribeOrderableDBInstanceOptionsRequest(input)
  4203. err := req.Send()
  4204. return out, err
  4205. }
  4206. // DescribeOrderableDBInstanceOptionsPages iterates over the pages of a DescribeOrderableDBInstanceOptions operation,
  4207. // calling the "fn" function with the response data for each page. To stop
  4208. // iterating, return false from the fn function.
  4209. //
  4210. // See DescribeOrderableDBInstanceOptions method for more information on how to use this operation.
  4211. //
  4212. // Note: This operation can generate multiple requests to a service.
  4213. //
  4214. // // Example iterating over at most 3 pages of a DescribeOrderableDBInstanceOptions operation.
  4215. // pageNum := 0
  4216. // err := client.DescribeOrderableDBInstanceOptionsPages(params,
  4217. // func(page *DescribeOrderableDBInstanceOptionsOutput, lastPage bool) bool {
  4218. // pageNum++
  4219. // fmt.Println(page)
  4220. // return pageNum <= 3
  4221. // })
  4222. //
  4223. func (c *RDS) DescribeOrderableDBInstanceOptionsPages(input *DescribeOrderableDBInstanceOptionsInput, fn func(p *DescribeOrderableDBInstanceOptionsOutput, lastPage bool) (shouldContinue bool)) error {
  4224. page, _ := c.DescribeOrderableDBInstanceOptionsRequest(input)
  4225. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  4226. return page.EachPage(func(p interface{}, lastPage bool) bool {
  4227. return fn(p.(*DescribeOrderableDBInstanceOptionsOutput), lastPage)
  4228. })
  4229. }
  4230. const opDescribePendingMaintenanceActions = "DescribePendingMaintenanceActions"
  4231. // DescribePendingMaintenanceActionsRequest generates a "aws/request.Request" representing the
  4232. // client's request for the DescribePendingMaintenanceActions operation. The "output" return
  4233. // value can be used to capture response data after the request's "Send" method
  4234. // is called.
  4235. //
  4236. // See DescribePendingMaintenanceActions for usage and error information.
  4237. //
  4238. // Creating a request object using this method should be used when you want to inject
  4239. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4240. // access properties on the request object before or after sending the request. If
  4241. // you just want the service response, call the DescribePendingMaintenanceActions method directly
  4242. // instead.
  4243. //
  4244. // Note: You must call the "Send" method on the returned request object in order
  4245. // to execute the request.
  4246. //
  4247. // // Example sending a request using the DescribePendingMaintenanceActionsRequest method.
  4248. // req, resp := client.DescribePendingMaintenanceActionsRequest(params)
  4249. //
  4250. // err := req.Send()
  4251. // if err == nil { // resp is now filled
  4252. // fmt.Println(resp)
  4253. // }
  4254. //
  4255. func (c *RDS) DescribePendingMaintenanceActionsRequest(input *DescribePendingMaintenanceActionsInput) (req *request.Request, output *DescribePendingMaintenanceActionsOutput) {
  4256. op := &request.Operation{
  4257. Name: opDescribePendingMaintenanceActions,
  4258. HTTPMethod: "POST",
  4259. HTTPPath: "/",
  4260. }
  4261. if input == nil {
  4262. input = &DescribePendingMaintenanceActionsInput{}
  4263. }
  4264. req = c.newRequest(op, input, output)
  4265. output = &DescribePendingMaintenanceActionsOutput{}
  4266. req.Data = output
  4267. return
  4268. }
  4269. // DescribePendingMaintenanceActions API operation for Amazon Relational Database Service.
  4270. //
  4271. // Returns a list of resources (for example, DB instances) that have at least
  4272. // one pending maintenance action.
  4273. //
  4274. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4275. // with awserr.Error's Code and Message methods to get detailed information about
  4276. // the error.
  4277. //
  4278. // See the AWS API reference guide for Amazon Relational Database Service's
  4279. // API operation DescribePendingMaintenanceActions for usage and error information.
  4280. //
  4281. // Returned Error Codes:
  4282. // * ResourceNotFoundFault
  4283. // The specified resource ID was not found.
  4284. //
  4285. func (c *RDS) DescribePendingMaintenanceActions(input *DescribePendingMaintenanceActionsInput) (*DescribePendingMaintenanceActionsOutput, error) {
  4286. req, out := c.DescribePendingMaintenanceActionsRequest(input)
  4287. err := req.Send()
  4288. return out, err
  4289. }
  4290. const opDescribeReservedDBInstances = "DescribeReservedDBInstances"
  4291. // DescribeReservedDBInstancesRequest generates a "aws/request.Request" representing the
  4292. // client's request for the DescribeReservedDBInstances operation. The "output" return
  4293. // value can be used to capture response data after the request's "Send" method
  4294. // is called.
  4295. //
  4296. // See DescribeReservedDBInstances for usage and error information.
  4297. //
  4298. // Creating a request object using this method should be used when you want to inject
  4299. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4300. // access properties on the request object before or after sending the request. If
  4301. // you just want the service response, call the DescribeReservedDBInstances method directly
  4302. // instead.
  4303. //
  4304. // Note: You must call the "Send" method on the returned request object in order
  4305. // to execute the request.
  4306. //
  4307. // // Example sending a request using the DescribeReservedDBInstancesRequest method.
  4308. // req, resp := client.DescribeReservedDBInstancesRequest(params)
  4309. //
  4310. // err := req.Send()
  4311. // if err == nil { // resp is now filled
  4312. // fmt.Println(resp)
  4313. // }
  4314. //
  4315. func (c *RDS) DescribeReservedDBInstancesRequest(input *DescribeReservedDBInstancesInput) (req *request.Request, output *DescribeReservedDBInstancesOutput) {
  4316. op := &request.Operation{
  4317. Name: opDescribeReservedDBInstances,
  4318. HTTPMethod: "POST",
  4319. HTTPPath: "/",
  4320. Paginator: &request.Paginator{
  4321. InputTokens: []string{"Marker"},
  4322. OutputTokens: []string{"Marker"},
  4323. LimitToken: "MaxRecords",
  4324. TruncationToken: "",
  4325. },
  4326. }
  4327. if input == nil {
  4328. input = &DescribeReservedDBInstancesInput{}
  4329. }
  4330. req = c.newRequest(op, input, output)
  4331. output = &DescribeReservedDBInstancesOutput{}
  4332. req.Data = output
  4333. return
  4334. }
  4335. // DescribeReservedDBInstances API operation for Amazon Relational Database Service.
  4336. //
  4337. // Returns information about reserved DB instances for this account, or about
  4338. // a specified reserved DB instance.
  4339. //
  4340. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4341. // with awserr.Error's Code and Message methods to get detailed information about
  4342. // the error.
  4343. //
  4344. // See the AWS API reference guide for Amazon Relational Database Service's
  4345. // API operation DescribeReservedDBInstances for usage and error information.
  4346. //
  4347. // Returned Error Codes:
  4348. // * ReservedDBInstanceNotFound
  4349. // The specified reserved DB Instance not found.
  4350. //
  4351. func (c *RDS) DescribeReservedDBInstances(input *DescribeReservedDBInstancesInput) (*DescribeReservedDBInstancesOutput, error) {
  4352. req, out := c.DescribeReservedDBInstancesRequest(input)
  4353. err := req.Send()
  4354. return out, err
  4355. }
  4356. // DescribeReservedDBInstancesPages iterates over the pages of a DescribeReservedDBInstances operation,
  4357. // calling the "fn" function with the response data for each page. To stop
  4358. // iterating, return false from the fn function.
  4359. //
  4360. // See DescribeReservedDBInstances method for more information on how to use this operation.
  4361. //
  4362. // Note: This operation can generate multiple requests to a service.
  4363. //
  4364. // // Example iterating over at most 3 pages of a DescribeReservedDBInstances operation.
  4365. // pageNum := 0
  4366. // err := client.DescribeReservedDBInstancesPages(params,
  4367. // func(page *DescribeReservedDBInstancesOutput, lastPage bool) bool {
  4368. // pageNum++
  4369. // fmt.Println(page)
  4370. // return pageNum <= 3
  4371. // })
  4372. //
  4373. func (c *RDS) DescribeReservedDBInstancesPages(input *DescribeReservedDBInstancesInput, fn func(p *DescribeReservedDBInstancesOutput, lastPage bool) (shouldContinue bool)) error {
  4374. page, _ := c.DescribeReservedDBInstancesRequest(input)
  4375. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  4376. return page.EachPage(func(p interface{}, lastPage bool) bool {
  4377. return fn(p.(*DescribeReservedDBInstancesOutput), lastPage)
  4378. })
  4379. }
  4380. const opDescribeReservedDBInstancesOfferings = "DescribeReservedDBInstancesOfferings"
  4381. // DescribeReservedDBInstancesOfferingsRequest generates a "aws/request.Request" representing the
  4382. // client's request for the DescribeReservedDBInstancesOfferings operation. The "output" return
  4383. // value can be used to capture response data after the request's "Send" method
  4384. // is called.
  4385. //
  4386. // See DescribeReservedDBInstancesOfferings for usage and error information.
  4387. //
  4388. // Creating a request object using this method should be used when you want to inject
  4389. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4390. // access properties on the request object before or after sending the request. If
  4391. // you just want the service response, call the DescribeReservedDBInstancesOfferings method directly
  4392. // instead.
  4393. //
  4394. // Note: You must call the "Send" method on the returned request object in order
  4395. // to execute the request.
  4396. //
  4397. // // Example sending a request using the DescribeReservedDBInstancesOfferingsRequest method.
  4398. // req, resp := client.DescribeReservedDBInstancesOfferingsRequest(params)
  4399. //
  4400. // err := req.Send()
  4401. // if err == nil { // resp is now filled
  4402. // fmt.Println(resp)
  4403. // }
  4404. //
  4405. func (c *RDS) DescribeReservedDBInstancesOfferingsRequest(input *DescribeReservedDBInstancesOfferingsInput) (req *request.Request, output *DescribeReservedDBInstancesOfferingsOutput) {
  4406. op := &request.Operation{
  4407. Name: opDescribeReservedDBInstancesOfferings,
  4408. HTTPMethod: "POST",
  4409. HTTPPath: "/",
  4410. Paginator: &request.Paginator{
  4411. InputTokens: []string{"Marker"},
  4412. OutputTokens: []string{"Marker"},
  4413. LimitToken: "MaxRecords",
  4414. TruncationToken: "",
  4415. },
  4416. }
  4417. if input == nil {
  4418. input = &DescribeReservedDBInstancesOfferingsInput{}
  4419. }
  4420. req = c.newRequest(op, input, output)
  4421. output = &DescribeReservedDBInstancesOfferingsOutput{}
  4422. req.Data = output
  4423. return
  4424. }
  4425. // DescribeReservedDBInstancesOfferings API operation for Amazon Relational Database Service.
  4426. //
  4427. // Lists available reserved DB instance offerings.
  4428. //
  4429. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4430. // with awserr.Error's Code and Message methods to get detailed information about
  4431. // the error.
  4432. //
  4433. // See the AWS API reference guide for Amazon Relational Database Service's
  4434. // API operation DescribeReservedDBInstancesOfferings for usage and error information.
  4435. //
  4436. // Returned Error Codes:
  4437. // * ReservedDBInstancesOfferingNotFound
  4438. // Specified offering does not exist.
  4439. //
  4440. func (c *RDS) DescribeReservedDBInstancesOfferings(input *DescribeReservedDBInstancesOfferingsInput) (*DescribeReservedDBInstancesOfferingsOutput, error) {
  4441. req, out := c.DescribeReservedDBInstancesOfferingsRequest(input)
  4442. err := req.Send()
  4443. return out, err
  4444. }
  4445. // DescribeReservedDBInstancesOfferingsPages iterates over the pages of a DescribeReservedDBInstancesOfferings operation,
  4446. // calling the "fn" function with the response data for each page. To stop
  4447. // iterating, return false from the fn function.
  4448. //
  4449. // See DescribeReservedDBInstancesOfferings method for more information on how to use this operation.
  4450. //
  4451. // Note: This operation can generate multiple requests to a service.
  4452. //
  4453. // // Example iterating over at most 3 pages of a DescribeReservedDBInstancesOfferings operation.
  4454. // pageNum := 0
  4455. // err := client.DescribeReservedDBInstancesOfferingsPages(params,
  4456. // func(page *DescribeReservedDBInstancesOfferingsOutput, lastPage bool) bool {
  4457. // pageNum++
  4458. // fmt.Println(page)
  4459. // return pageNum <= 3
  4460. // })
  4461. //
  4462. func (c *RDS) DescribeReservedDBInstancesOfferingsPages(input *DescribeReservedDBInstancesOfferingsInput, fn func(p *DescribeReservedDBInstancesOfferingsOutput, lastPage bool) (shouldContinue bool)) error {
  4463. page, _ := c.DescribeReservedDBInstancesOfferingsRequest(input)
  4464. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  4465. return page.EachPage(func(p interface{}, lastPage bool) bool {
  4466. return fn(p.(*DescribeReservedDBInstancesOfferingsOutput), lastPage)
  4467. })
  4468. }
  4469. const opDescribeSourceRegions = "DescribeSourceRegions"
  4470. // DescribeSourceRegionsRequest generates a "aws/request.Request" representing the
  4471. // client's request for the DescribeSourceRegions operation. The "output" return
  4472. // value can be used to capture response data after the request's "Send" method
  4473. // is called.
  4474. //
  4475. // See DescribeSourceRegions for usage and error information.
  4476. //
  4477. // Creating a request object using this method should be used when you want to inject
  4478. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4479. // access properties on the request object before or after sending the request. If
  4480. // you just want the service response, call the DescribeSourceRegions method directly
  4481. // instead.
  4482. //
  4483. // Note: You must call the "Send" method on the returned request object in order
  4484. // to execute the request.
  4485. //
  4486. // // Example sending a request using the DescribeSourceRegionsRequest method.
  4487. // req, resp := client.DescribeSourceRegionsRequest(params)
  4488. //
  4489. // err := req.Send()
  4490. // if err == nil { // resp is now filled
  4491. // fmt.Println(resp)
  4492. // }
  4493. //
  4494. func (c *RDS) DescribeSourceRegionsRequest(input *DescribeSourceRegionsInput) (req *request.Request, output *DescribeSourceRegionsOutput) {
  4495. op := &request.Operation{
  4496. Name: opDescribeSourceRegions,
  4497. HTTPMethod: "POST",
  4498. HTTPPath: "/",
  4499. }
  4500. if input == nil {
  4501. input = &DescribeSourceRegionsInput{}
  4502. }
  4503. req = c.newRequest(op, input, output)
  4504. output = &DescribeSourceRegionsOutput{}
  4505. req.Data = output
  4506. return
  4507. }
  4508. // DescribeSourceRegions API operation for Amazon Relational Database Service.
  4509. //
  4510. // Returns a list of the source AWS regions where the current AWS region can
  4511. // create a Read Replica or copy a DB snapshot from. This API action supports
  4512. // pagination.
  4513. //
  4514. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4515. // with awserr.Error's Code and Message methods to get detailed information about
  4516. // the error.
  4517. //
  4518. // See the AWS API reference guide for Amazon Relational Database Service's
  4519. // API operation DescribeSourceRegions for usage and error information.
  4520. func (c *RDS) DescribeSourceRegions(input *DescribeSourceRegionsInput) (*DescribeSourceRegionsOutput, error) {
  4521. req, out := c.DescribeSourceRegionsRequest(input)
  4522. err := req.Send()
  4523. return out, err
  4524. }
  4525. const opDownloadDBLogFilePortion = "DownloadDBLogFilePortion"
  4526. // DownloadDBLogFilePortionRequest generates a "aws/request.Request" representing the
  4527. // client's request for the DownloadDBLogFilePortion operation. The "output" return
  4528. // value can be used to capture response data after the request's "Send" method
  4529. // is called.
  4530. //
  4531. // See DownloadDBLogFilePortion for usage and error information.
  4532. //
  4533. // Creating a request object using this method should be used when you want to inject
  4534. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4535. // access properties on the request object before or after sending the request. If
  4536. // you just want the service response, call the DownloadDBLogFilePortion method directly
  4537. // instead.
  4538. //
  4539. // Note: You must call the "Send" method on the returned request object in order
  4540. // to execute the request.
  4541. //
  4542. // // Example sending a request using the DownloadDBLogFilePortionRequest method.
  4543. // req, resp := client.DownloadDBLogFilePortionRequest(params)
  4544. //
  4545. // err := req.Send()
  4546. // if err == nil { // resp is now filled
  4547. // fmt.Println(resp)
  4548. // }
  4549. //
  4550. func (c *RDS) DownloadDBLogFilePortionRequest(input *DownloadDBLogFilePortionInput) (req *request.Request, output *DownloadDBLogFilePortionOutput) {
  4551. op := &request.Operation{
  4552. Name: opDownloadDBLogFilePortion,
  4553. HTTPMethod: "POST",
  4554. HTTPPath: "/",
  4555. Paginator: &request.Paginator{
  4556. InputTokens: []string{"Marker"},
  4557. OutputTokens: []string{"Marker"},
  4558. LimitToken: "NumberOfLines",
  4559. TruncationToken: "AdditionalDataPending",
  4560. },
  4561. }
  4562. if input == nil {
  4563. input = &DownloadDBLogFilePortionInput{}
  4564. }
  4565. req = c.newRequest(op, input, output)
  4566. output = &DownloadDBLogFilePortionOutput{}
  4567. req.Data = output
  4568. return
  4569. }
  4570. // DownloadDBLogFilePortion API operation for Amazon Relational Database Service.
  4571. //
  4572. // Downloads all or a portion of the specified log file, up to 1 MB in size.
  4573. //
  4574. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4575. // with awserr.Error's Code and Message methods to get detailed information about
  4576. // the error.
  4577. //
  4578. // See the AWS API reference guide for Amazon Relational Database Service's
  4579. // API operation DownloadDBLogFilePortion for usage and error information.
  4580. //
  4581. // Returned Error Codes:
  4582. // * DBInstanceNotFound
  4583. // DBInstanceIdentifier does not refer to an existing DB instance.
  4584. //
  4585. // * DBLogFileNotFoundFault
  4586. // LogFileName does not refer to an existing DB log file.
  4587. //
  4588. func (c *RDS) DownloadDBLogFilePortion(input *DownloadDBLogFilePortionInput) (*DownloadDBLogFilePortionOutput, error) {
  4589. req, out := c.DownloadDBLogFilePortionRequest(input)
  4590. err := req.Send()
  4591. return out, err
  4592. }
  4593. // DownloadDBLogFilePortionPages iterates over the pages of a DownloadDBLogFilePortion operation,
  4594. // calling the "fn" function with the response data for each page. To stop
  4595. // iterating, return false from the fn function.
  4596. //
  4597. // See DownloadDBLogFilePortion method for more information on how to use this operation.
  4598. //
  4599. // Note: This operation can generate multiple requests to a service.
  4600. //
  4601. // // Example iterating over at most 3 pages of a DownloadDBLogFilePortion operation.
  4602. // pageNum := 0
  4603. // err := client.DownloadDBLogFilePortionPages(params,
  4604. // func(page *DownloadDBLogFilePortionOutput, lastPage bool) bool {
  4605. // pageNum++
  4606. // fmt.Println(page)
  4607. // return pageNum <= 3
  4608. // })
  4609. //
  4610. func (c *RDS) DownloadDBLogFilePortionPages(input *DownloadDBLogFilePortionInput, fn func(p *DownloadDBLogFilePortionOutput, lastPage bool) (shouldContinue bool)) error {
  4611. page, _ := c.DownloadDBLogFilePortionRequest(input)
  4612. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  4613. return page.EachPage(func(p interface{}, lastPage bool) bool {
  4614. return fn(p.(*DownloadDBLogFilePortionOutput), lastPage)
  4615. })
  4616. }
  4617. const opFailoverDBCluster = "FailoverDBCluster"
  4618. // FailoverDBClusterRequest generates a "aws/request.Request" representing the
  4619. // client's request for the FailoverDBCluster operation. The "output" return
  4620. // value can be used to capture response data after the request's "Send" method
  4621. // is called.
  4622. //
  4623. // See FailoverDBCluster for usage and error information.
  4624. //
  4625. // Creating a request object using this method should be used when you want to inject
  4626. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4627. // access properties on the request object before or after sending the request. If
  4628. // you just want the service response, call the FailoverDBCluster method directly
  4629. // instead.
  4630. //
  4631. // Note: You must call the "Send" method on the returned request object in order
  4632. // to execute the request.
  4633. //
  4634. // // Example sending a request using the FailoverDBClusterRequest method.
  4635. // req, resp := client.FailoverDBClusterRequest(params)
  4636. //
  4637. // err := req.Send()
  4638. // if err == nil { // resp is now filled
  4639. // fmt.Println(resp)
  4640. // }
  4641. //
  4642. func (c *RDS) FailoverDBClusterRequest(input *FailoverDBClusterInput) (req *request.Request, output *FailoverDBClusterOutput) {
  4643. op := &request.Operation{
  4644. Name: opFailoverDBCluster,
  4645. HTTPMethod: "POST",
  4646. HTTPPath: "/",
  4647. }
  4648. if input == nil {
  4649. input = &FailoverDBClusterInput{}
  4650. }
  4651. req = c.newRequest(op, input, output)
  4652. output = &FailoverDBClusterOutput{}
  4653. req.Data = output
  4654. return
  4655. }
  4656. // FailoverDBCluster API operation for Amazon Relational Database Service.
  4657. //
  4658. // Forces a failover for a DB cluster.
  4659. //
  4660. // A failover for a DB cluster promotes one of the read-only instances in the
  4661. // DB cluster to the master DB instance (the cluster writer) and deletes the
  4662. // current primary instance.
  4663. //
  4664. // Amazon Aurora will automatically fail over to a read-only instance, if one
  4665. // exists, when the primary instance fails. You can force a failover when you
  4666. // want to simulate a failure of a DB instance for testing. Because each instance
  4667. // in a DB cluster has its own endpoint address, you will need to clean up and
  4668. // re-establish any existing connections that use those endpoint addresses when
  4669. // the failover is complete.
  4670. //
  4671. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  4672. // in the Amazon RDS User Guide.
  4673. //
  4674. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4675. // with awserr.Error's Code and Message methods to get detailed information about
  4676. // the error.
  4677. //
  4678. // See the AWS API reference guide for Amazon Relational Database Service's
  4679. // API operation FailoverDBCluster for usage and error information.
  4680. //
  4681. // Returned Error Codes:
  4682. // * DBClusterNotFoundFault
  4683. // DBClusterIdentifier does not refer to an existing DB cluster.
  4684. //
  4685. // * InvalidDBClusterStateFault
  4686. // The DB cluster is not in a valid state.
  4687. //
  4688. // * InvalidDBInstanceState
  4689. // The specified DB instance is not in the available state.
  4690. //
  4691. func (c *RDS) FailoverDBCluster(input *FailoverDBClusterInput) (*FailoverDBClusterOutput, error) {
  4692. req, out := c.FailoverDBClusterRequest(input)
  4693. err := req.Send()
  4694. return out, err
  4695. }
  4696. const opListTagsForResource = "ListTagsForResource"
  4697. // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  4698. // client's request for the ListTagsForResource operation. The "output" return
  4699. // value can be used to capture response data after the request's "Send" method
  4700. // is called.
  4701. //
  4702. // See ListTagsForResource for usage and error information.
  4703. //
  4704. // Creating a request object using this method should be used when you want to inject
  4705. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4706. // access properties on the request object before or after sending the request. If
  4707. // you just want the service response, call the ListTagsForResource method directly
  4708. // instead.
  4709. //
  4710. // Note: You must call the "Send" method on the returned request object in order
  4711. // to execute the request.
  4712. //
  4713. // // Example sending a request using the ListTagsForResourceRequest method.
  4714. // req, resp := client.ListTagsForResourceRequest(params)
  4715. //
  4716. // err := req.Send()
  4717. // if err == nil { // resp is now filled
  4718. // fmt.Println(resp)
  4719. // }
  4720. //
  4721. func (c *RDS) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  4722. op := &request.Operation{
  4723. Name: opListTagsForResource,
  4724. HTTPMethod: "POST",
  4725. HTTPPath: "/",
  4726. }
  4727. if input == nil {
  4728. input = &ListTagsForResourceInput{}
  4729. }
  4730. req = c.newRequest(op, input, output)
  4731. output = &ListTagsForResourceOutput{}
  4732. req.Data = output
  4733. return
  4734. }
  4735. // ListTagsForResource API operation for Amazon Relational Database Service.
  4736. //
  4737. // Lists all tags on an Amazon RDS resource.
  4738. //
  4739. // For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS
  4740. // Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html).
  4741. //
  4742. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4743. // with awserr.Error's Code and Message methods to get detailed information about
  4744. // the error.
  4745. //
  4746. // See the AWS API reference guide for Amazon Relational Database Service's
  4747. // API operation ListTagsForResource for usage and error information.
  4748. //
  4749. // Returned Error Codes:
  4750. // * DBInstanceNotFound
  4751. // DBInstanceIdentifier does not refer to an existing DB instance.
  4752. //
  4753. // * DBSnapshotNotFound
  4754. // DBSnapshotIdentifier does not refer to an existing DB snapshot.
  4755. //
  4756. func (c *RDS) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  4757. req, out := c.ListTagsForResourceRequest(input)
  4758. err := req.Send()
  4759. return out, err
  4760. }
  4761. const opModifyDBCluster = "ModifyDBCluster"
  4762. // ModifyDBClusterRequest generates a "aws/request.Request" representing the
  4763. // client's request for the ModifyDBCluster operation. The "output" return
  4764. // value can be used to capture response data after the request's "Send" method
  4765. // is called.
  4766. //
  4767. // See ModifyDBCluster for usage and error information.
  4768. //
  4769. // Creating a request object using this method should be used when you want to inject
  4770. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4771. // access properties on the request object before or after sending the request. If
  4772. // you just want the service response, call the ModifyDBCluster method directly
  4773. // instead.
  4774. //
  4775. // Note: You must call the "Send" method on the returned request object in order
  4776. // to execute the request.
  4777. //
  4778. // // Example sending a request using the ModifyDBClusterRequest method.
  4779. // req, resp := client.ModifyDBClusterRequest(params)
  4780. //
  4781. // err := req.Send()
  4782. // if err == nil { // resp is now filled
  4783. // fmt.Println(resp)
  4784. // }
  4785. //
  4786. func (c *RDS) ModifyDBClusterRequest(input *ModifyDBClusterInput) (req *request.Request, output *ModifyDBClusterOutput) {
  4787. op := &request.Operation{
  4788. Name: opModifyDBCluster,
  4789. HTTPMethod: "POST",
  4790. HTTPPath: "/",
  4791. }
  4792. if input == nil {
  4793. input = &ModifyDBClusterInput{}
  4794. }
  4795. req = c.newRequest(op, input, output)
  4796. output = &ModifyDBClusterOutput{}
  4797. req.Data = output
  4798. return
  4799. }
  4800. // ModifyDBCluster API operation for Amazon Relational Database Service.
  4801. //
  4802. // Modify a setting for an Amazon Aurora DB cluster. You can change one or more
  4803. // database configuration parameters by specifying these parameters and the
  4804. // new values in the request. For more information on Amazon Aurora, see Aurora
  4805. // on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  4806. // in the Amazon RDS User Guide.
  4807. //
  4808. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4809. // with awserr.Error's Code and Message methods to get detailed information about
  4810. // the error.
  4811. //
  4812. // See the AWS API reference guide for Amazon Relational Database Service's
  4813. // API operation ModifyDBCluster for usage and error information.
  4814. //
  4815. // Returned Error Codes:
  4816. // * DBClusterNotFoundFault
  4817. // DBClusterIdentifier does not refer to an existing DB cluster.
  4818. //
  4819. // * InvalidDBClusterStateFault
  4820. // The DB cluster is not in a valid state.
  4821. //
  4822. // * StorageQuotaExceeded
  4823. // Request would result in user exceeding the allowed amount of storage available
  4824. // across all DB instances.
  4825. //
  4826. // * DBSubnetGroupNotFoundFault
  4827. // DBSubnetGroupName does not refer to an existing DB subnet group.
  4828. //
  4829. // * InvalidVPCNetworkStateFault
  4830. // DB subnet group does not cover all Availability Zones after it is created
  4831. // because users' change.
  4832. //
  4833. // * InvalidDBSubnetGroupStateFault
  4834. // The DB subnet group cannot be deleted because it is in use.
  4835. //
  4836. // * InvalidSubnet
  4837. // The requested subnet is invalid, or multiple subnets were requested that
  4838. // are not all in a common VPC.
  4839. //
  4840. // * DBClusterParameterGroupNotFound
  4841. // DBClusterParameterGroupName does not refer to an existing DB Cluster parameter
  4842. // group.
  4843. //
  4844. // * InvalidDBSecurityGroupState
  4845. // The state of the DB security group does not allow deletion.
  4846. //
  4847. // * InvalidDBInstanceState
  4848. // The specified DB instance is not in the available state.
  4849. //
  4850. // * DBClusterAlreadyExistsFault
  4851. // User already has a DB cluster with the given identifier.
  4852. //
  4853. func (c *RDS) ModifyDBCluster(input *ModifyDBClusterInput) (*ModifyDBClusterOutput, error) {
  4854. req, out := c.ModifyDBClusterRequest(input)
  4855. err := req.Send()
  4856. return out, err
  4857. }
  4858. const opModifyDBClusterParameterGroup = "ModifyDBClusterParameterGroup"
  4859. // ModifyDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  4860. // client's request for the ModifyDBClusterParameterGroup operation. The "output" return
  4861. // value can be used to capture response data after the request's "Send" method
  4862. // is called.
  4863. //
  4864. // See ModifyDBClusterParameterGroup for usage and error information.
  4865. //
  4866. // Creating a request object using this method should be used when you want to inject
  4867. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4868. // access properties on the request object before or after sending the request. If
  4869. // you just want the service response, call the ModifyDBClusterParameterGroup method directly
  4870. // instead.
  4871. //
  4872. // Note: You must call the "Send" method on the returned request object in order
  4873. // to execute the request.
  4874. //
  4875. // // Example sending a request using the ModifyDBClusterParameterGroupRequest method.
  4876. // req, resp := client.ModifyDBClusterParameterGroupRequest(params)
  4877. //
  4878. // err := req.Send()
  4879. // if err == nil { // resp is now filled
  4880. // fmt.Println(resp)
  4881. // }
  4882. //
  4883. func (c *RDS) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParameterGroupInput) (req *request.Request, output *DBClusterParameterGroupNameMessage) {
  4884. op := &request.Operation{
  4885. Name: opModifyDBClusterParameterGroup,
  4886. HTTPMethod: "POST",
  4887. HTTPPath: "/",
  4888. }
  4889. if input == nil {
  4890. input = &ModifyDBClusterParameterGroupInput{}
  4891. }
  4892. req = c.newRequest(op, input, output)
  4893. output = &DBClusterParameterGroupNameMessage{}
  4894. req.Data = output
  4895. return
  4896. }
  4897. // ModifyDBClusterParameterGroup API operation for Amazon Relational Database Service.
  4898. //
  4899. // Modifies the parameters of a DB cluster parameter group. To modify more than
  4900. // one parameter, submit a list of the following: ParameterName, ParameterValue,
  4901. // and ApplyMethod. A maximum of 20 parameters can be modified in a single request.
  4902. //
  4903. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  4904. // in the Amazon RDS User Guide.
  4905. //
  4906. // Changes to dynamic parameters are applied immediately. Changes to static
  4907. // parameters require a reboot without failover to the DB cluster associated
  4908. // with the parameter group before the change can take effect.
  4909. //
  4910. // After you create a DB cluster parameter group, you should wait at least 5
  4911. // minutes before creating your first DB cluster that uses that DB cluster parameter
  4912. // group as the default parameter group. This allows Amazon RDS to fully complete
  4913. // the create action before the parameter group is used as the default for a
  4914. // new DB cluster. This is especially important for parameters that are critical
  4915. // when creating the default database for a DB cluster, such as the character
  4916. // set for the default database defined by the character_set_database parameter.
  4917. // You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/)
  4918. // or the DescribeDBClusterParameters command to verify that your DB cluster
  4919. // parameter group has been created or modified.
  4920. //
  4921. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4922. // with awserr.Error's Code and Message methods to get detailed information about
  4923. // the error.
  4924. //
  4925. // See the AWS API reference guide for Amazon Relational Database Service's
  4926. // API operation ModifyDBClusterParameterGroup for usage and error information.
  4927. //
  4928. // Returned Error Codes:
  4929. // * DBParameterGroupNotFound
  4930. // DBParameterGroupName does not refer to an existing DB parameter group.
  4931. //
  4932. // * InvalidDBParameterGroupState
  4933. // The DB parameter group cannot be deleted because it is in use.
  4934. //
  4935. func (c *RDS) ModifyDBClusterParameterGroup(input *ModifyDBClusterParameterGroupInput) (*DBClusterParameterGroupNameMessage, error) {
  4936. req, out := c.ModifyDBClusterParameterGroupRequest(input)
  4937. err := req.Send()
  4938. return out, err
  4939. }
  4940. const opModifyDBClusterSnapshotAttribute = "ModifyDBClusterSnapshotAttribute"
  4941. // ModifyDBClusterSnapshotAttributeRequest generates a "aws/request.Request" representing the
  4942. // client's request for the ModifyDBClusterSnapshotAttribute operation. The "output" return
  4943. // value can be used to capture response data after the request's "Send" method
  4944. // is called.
  4945. //
  4946. // See ModifyDBClusterSnapshotAttribute for usage and error information.
  4947. //
  4948. // Creating a request object using this method should be used when you want to inject
  4949. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4950. // access properties on the request object before or after sending the request. If
  4951. // you just want the service response, call the ModifyDBClusterSnapshotAttribute method directly
  4952. // instead.
  4953. //
  4954. // Note: You must call the "Send" method on the returned request object in order
  4955. // to execute the request.
  4956. //
  4957. // // Example sending a request using the ModifyDBClusterSnapshotAttributeRequest method.
  4958. // req, resp := client.ModifyDBClusterSnapshotAttributeRequest(params)
  4959. //
  4960. // err := req.Send()
  4961. // if err == nil { // resp is now filled
  4962. // fmt.Println(resp)
  4963. // }
  4964. //
  4965. func (c *RDS) ModifyDBClusterSnapshotAttributeRequest(input *ModifyDBClusterSnapshotAttributeInput) (req *request.Request, output *ModifyDBClusterSnapshotAttributeOutput) {
  4966. op := &request.Operation{
  4967. Name: opModifyDBClusterSnapshotAttribute,
  4968. HTTPMethod: "POST",
  4969. HTTPPath: "/",
  4970. }
  4971. if input == nil {
  4972. input = &ModifyDBClusterSnapshotAttributeInput{}
  4973. }
  4974. req = c.newRequest(op, input, output)
  4975. output = &ModifyDBClusterSnapshotAttributeOutput{}
  4976. req.Data = output
  4977. return
  4978. }
  4979. // ModifyDBClusterSnapshotAttribute API operation for Amazon Relational Database Service.
  4980. //
  4981. // Adds an attribute and values to, or removes an attribute and values from,
  4982. // a manual DB cluster snapshot.
  4983. //
  4984. // To share a manual DB cluster snapshot with other AWS accounts, specify restore
  4985. // as the AttributeName and use the ValuesToAdd parameter to add a list of IDs
  4986. // of the AWS accounts that are authorized to restore the manual DB cluster
  4987. // snapshot. Use the value all to make the manual DB cluster snapshot public,
  4988. // which means that it can be copied or restored by all AWS accounts. Do not
  4989. // add the all value for any manual DB cluster snapshots that contain private
  4990. // information that you don't want available to all AWS accounts.
  4991. //
  4992. // To view which AWS accounts have access to copy or restore a manual DB cluster
  4993. // snapshot, or whether a manual DB cluster snapshot public or private, use
  4994. // the DescribeDBClusterSnapshotAttributes API action.
  4995. //
  4996. // If a manual DB cluster snapshot is encrypted, it cannot be shared.
  4997. //
  4998. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4999. // with awserr.Error's Code and Message methods to get detailed information about
  5000. // the error.
  5001. //
  5002. // See the AWS API reference guide for Amazon Relational Database Service's
  5003. // API operation ModifyDBClusterSnapshotAttribute for usage and error information.
  5004. //
  5005. // Returned Error Codes:
  5006. // * DBClusterSnapshotNotFoundFault
  5007. // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot.
  5008. //
  5009. // * InvalidDBClusterSnapshotStateFault
  5010. // The supplied value is not a valid DB cluster snapshot state.
  5011. //
  5012. // * SharedSnapshotQuotaExceeded
  5013. // You have exceeded the maximum number of accounts that you can share a manual
  5014. // DB snapshot with.
  5015. //
  5016. func (c *RDS) ModifyDBClusterSnapshotAttribute(input *ModifyDBClusterSnapshotAttributeInput) (*ModifyDBClusterSnapshotAttributeOutput, error) {
  5017. req, out := c.ModifyDBClusterSnapshotAttributeRequest(input)
  5018. err := req.Send()
  5019. return out, err
  5020. }
  5021. const opModifyDBInstance = "ModifyDBInstance"
  5022. // ModifyDBInstanceRequest generates a "aws/request.Request" representing the
  5023. // client's request for the ModifyDBInstance operation. The "output" return
  5024. // value can be used to capture response data after the request's "Send" method
  5025. // is called.
  5026. //
  5027. // See ModifyDBInstance for usage and error information.
  5028. //
  5029. // Creating a request object using this method should be used when you want to inject
  5030. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5031. // access properties on the request object before or after sending the request. If
  5032. // you just want the service response, call the ModifyDBInstance method directly
  5033. // instead.
  5034. //
  5035. // Note: You must call the "Send" method on the returned request object in order
  5036. // to execute the request.
  5037. //
  5038. // // Example sending a request using the ModifyDBInstanceRequest method.
  5039. // req, resp := client.ModifyDBInstanceRequest(params)
  5040. //
  5041. // err := req.Send()
  5042. // if err == nil { // resp is now filled
  5043. // fmt.Println(resp)
  5044. // }
  5045. //
  5046. func (c *RDS) ModifyDBInstanceRequest(input *ModifyDBInstanceInput) (req *request.Request, output *ModifyDBInstanceOutput) {
  5047. op := &request.Operation{
  5048. Name: opModifyDBInstance,
  5049. HTTPMethod: "POST",
  5050. HTTPPath: "/",
  5051. }
  5052. if input == nil {
  5053. input = &ModifyDBInstanceInput{}
  5054. }
  5055. req = c.newRequest(op, input, output)
  5056. output = &ModifyDBInstanceOutput{}
  5057. req.Data = output
  5058. return
  5059. }
  5060. // ModifyDBInstance API operation for Amazon Relational Database Service.
  5061. //
  5062. // Modifies settings for a DB instance. You can change one or more database
  5063. // configuration parameters by specifying these parameters and the new values
  5064. // in the request.
  5065. //
  5066. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5067. // with awserr.Error's Code and Message methods to get detailed information about
  5068. // the error.
  5069. //
  5070. // See the AWS API reference guide for Amazon Relational Database Service's
  5071. // API operation ModifyDBInstance for usage and error information.
  5072. //
  5073. // Returned Error Codes:
  5074. // * InvalidDBInstanceState
  5075. // The specified DB instance is not in the available state.
  5076. //
  5077. // * InvalidDBSecurityGroupState
  5078. // The state of the DB security group does not allow deletion.
  5079. //
  5080. // * DBInstanceAlreadyExists
  5081. // User already has a DB instance with the given identifier.
  5082. //
  5083. // * DBInstanceNotFound
  5084. // DBInstanceIdentifier does not refer to an existing DB instance.
  5085. //
  5086. // * DBSecurityGroupNotFound
  5087. // DBSecurityGroupName does not refer to an existing DB security group.
  5088. //
  5089. // * DBParameterGroupNotFound
  5090. // DBParameterGroupName does not refer to an existing DB parameter group.
  5091. //
  5092. // * InsufficientDBInstanceCapacity
  5093. // Specified DB instance class is not available in the specified Availability
  5094. // Zone.
  5095. //
  5096. // * StorageQuotaExceeded
  5097. // Request would result in user exceeding the allowed amount of storage available
  5098. // across all DB instances.
  5099. //
  5100. // * InvalidVPCNetworkStateFault
  5101. // DB subnet group does not cover all Availability Zones after it is created
  5102. // because users' change.
  5103. //
  5104. // * ProvisionedIopsNotAvailableInAZFault
  5105. // Provisioned IOPS not available in the specified Availability Zone.
  5106. //
  5107. // * OptionGroupNotFoundFault
  5108. // The specified option group could not be found.
  5109. //
  5110. // * DBUpgradeDependencyFailure
  5111. // The DB upgrade failed because a resource the DB depends on could not be modified.
  5112. //
  5113. // * StorageTypeNotSupported
  5114. // StorageType specified cannot be associated with the DB Instance.
  5115. //
  5116. // * AuthorizationNotFound
  5117. // Specified CIDRIP or EC2 security group is not authorized for the specified
  5118. // DB security group.
  5119. //
  5120. // RDS may not also be authorized via IAM to perform necessary actions on your
  5121. // behalf.
  5122. //
  5123. // * CertificateNotFound
  5124. // CertificateIdentifier does not refer to an existing certificate.
  5125. //
  5126. // * DomainNotFoundFault
  5127. // Domain does not refer to an existing Active Directory Domain.
  5128. //
  5129. func (c *RDS) ModifyDBInstance(input *ModifyDBInstanceInput) (*ModifyDBInstanceOutput, error) {
  5130. req, out := c.ModifyDBInstanceRequest(input)
  5131. err := req.Send()
  5132. return out, err
  5133. }
  5134. const opModifyDBParameterGroup = "ModifyDBParameterGroup"
  5135. // ModifyDBParameterGroupRequest generates a "aws/request.Request" representing the
  5136. // client's request for the ModifyDBParameterGroup operation. The "output" return
  5137. // value can be used to capture response data after the request's "Send" method
  5138. // is called.
  5139. //
  5140. // See ModifyDBParameterGroup for usage and error information.
  5141. //
  5142. // Creating a request object using this method should be used when you want to inject
  5143. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5144. // access properties on the request object before or after sending the request. If
  5145. // you just want the service response, call the ModifyDBParameterGroup method directly
  5146. // instead.
  5147. //
  5148. // Note: You must call the "Send" method on the returned request object in order
  5149. // to execute the request.
  5150. //
  5151. // // Example sending a request using the ModifyDBParameterGroupRequest method.
  5152. // req, resp := client.ModifyDBParameterGroupRequest(params)
  5153. //
  5154. // err := req.Send()
  5155. // if err == nil { // resp is now filled
  5156. // fmt.Println(resp)
  5157. // }
  5158. //
  5159. func (c *RDS) ModifyDBParameterGroupRequest(input *ModifyDBParameterGroupInput) (req *request.Request, output *DBParameterGroupNameMessage) {
  5160. op := &request.Operation{
  5161. Name: opModifyDBParameterGroup,
  5162. HTTPMethod: "POST",
  5163. HTTPPath: "/",
  5164. }
  5165. if input == nil {
  5166. input = &ModifyDBParameterGroupInput{}
  5167. }
  5168. req = c.newRequest(op, input, output)
  5169. output = &DBParameterGroupNameMessage{}
  5170. req.Data = output
  5171. return
  5172. }
  5173. // ModifyDBParameterGroup API operation for Amazon Relational Database Service.
  5174. //
  5175. // Modifies the parameters of a DB parameter group. To modify more than one
  5176. // parameter, submit a list of the following: ParameterName, ParameterValue,
  5177. // and ApplyMethod. A maximum of 20 parameters can be modified in a single request.
  5178. //
  5179. // Changes to dynamic parameters are applied immediately. Changes to static
  5180. // parameters require a reboot without failover to the DB instance associated
  5181. // with the parameter group before the change can take effect.
  5182. //
  5183. // After you modify a DB parameter group, you should wait at least 5 minutes
  5184. // before creating your first DB instance that uses that DB parameter group
  5185. // as the default parameter group. This allows Amazon RDS to fully complete
  5186. // the modify action before the parameter group is used as the default for a
  5187. // new DB instance. This is especially important for parameters that are critical
  5188. // when creating the default database for a DB instance, such as the character
  5189. // set for the default database defined by the character_set_database parameter.
  5190. // You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/)
  5191. // or the DescribeDBParameters command to verify that your DB parameter group
  5192. // has been created or modified.
  5193. //
  5194. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5195. // with awserr.Error's Code and Message methods to get detailed information about
  5196. // the error.
  5197. //
  5198. // See the AWS API reference guide for Amazon Relational Database Service's
  5199. // API operation ModifyDBParameterGroup for usage and error information.
  5200. //
  5201. // Returned Error Codes:
  5202. // * DBParameterGroupNotFound
  5203. // DBParameterGroupName does not refer to an existing DB parameter group.
  5204. //
  5205. // * InvalidDBParameterGroupState
  5206. // The DB parameter group cannot be deleted because it is in use.
  5207. //
  5208. func (c *RDS) ModifyDBParameterGroup(input *ModifyDBParameterGroupInput) (*DBParameterGroupNameMessage, error) {
  5209. req, out := c.ModifyDBParameterGroupRequest(input)
  5210. err := req.Send()
  5211. return out, err
  5212. }
  5213. const opModifyDBSnapshotAttribute = "ModifyDBSnapshotAttribute"
  5214. // ModifyDBSnapshotAttributeRequest generates a "aws/request.Request" representing the
  5215. // client's request for the ModifyDBSnapshotAttribute operation. The "output" return
  5216. // value can be used to capture response data after the request's "Send" method
  5217. // is called.
  5218. //
  5219. // See ModifyDBSnapshotAttribute for usage and error information.
  5220. //
  5221. // Creating a request object using this method should be used when you want to inject
  5222. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5223. // access properties on the request object before or after sending the request. If
  5224. // you just want the service response, call the ModifyDBSnapshotAttribute method directly
  5225. // instead.
  5226. //
  5227. // Note: You must call the "Send" method on the returned request object in order
  5228. // to execute the request.
  5229. //
  5230. // // Example sending a request using the ModifyDBSnapshotAttributeRequest method.
  5231. // req, resp := client.ModifyDBSnapshotAttributeRequest(params)
  5232. //
  5233. // err := req.Send()
  5234. // if err == nil { // resp is now filled
  5235. // fmt.Println(resp)
  5236. // }
  5237. //
  5238. func (c *RDS) ModifyDBSnapshotAttributeRequest(input *ModifyDBSnapshotAttributeInput) (req *request.Request, output *ModifyDBSnapshotAttributeOutput) {
  5239. op := &request.Operation{
  5240. Name: opModifyDBSnapshotAttribute,
  5241. HTTPMethod: "POST",
  5242. HTTPPath: "/",
  5243. }
  5244. if input == nil {
  5245. input = &ModifyDBSnapshotAttributeInput{}
  5246. }
  5247. req = c.newRequest(op, input, output)
  5248. output = &ModifyDBSnapshotAttributeOutput{}
  5249. req.Data = output
  5250. return
  5251. }
  5252. // ModifyDBSnapshotAttribute API operation for Amazon Relational Database Service.
  5253. //
  5254. // Adds an attribute and values to, or removes an attribute and values from,
  5255. // a manual DB snapshot.
  5256. //
  5257. // To share a manual DB snapshot with other AWS accounts, specify restore as
  5258. // the AttributeName and use the ValuesToAdd parameter to add a list of IDs
  5259. // of the AWS accounts that are authorized to restore the manual DB snapshot.
  5260. // Uses the value all to make the manual DB snapshot public, which means it
  5261. // can be copied or restored by all AWS accounts. Do not add the all value for
  5262. // any manual DB snapshots that contain private information that you don't want
  5263. // available to all AWS accounts.
  5264. //
  5265. // To view which AWS accounts have access to copy or restore a manual DB snapshot,
  5266. // or whether a manual DB snapshot public or private, use the DescribeDBSnapshotAttributes
  5267. // API action.
  5268. //
  5269. // If the manual DB snapshot is encrypted, it cannot be shared.
  5270. //
  5271. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5272. // with awserr.Error's Code and Message methods to get detailed information about
  5273. // the error.
  5274. //
  5275. // See the AWS API reference guide for Amazon Relational Database Service's
  5276. // API operation ModifyDBSnapshotAttribute for usage and error information.
  5277. //
  5278. // Returned Error Codes:
  5279. // * DBSnapshotNotFound
  5280. // DBSnapshotIdentifier does not refer to an existing DB snapshot.
  5281. //
  5282. // * InvalidDBSnapshotState
  5283. // The state of the DB snapshot does not allow deletion.
  5284. //
  5285. // * SharedSnapshotQuotaExceeded
  5286. // You have exceeded the maximum number of accounts that you can share a manual
  5287. // DB snapshot with.
  5288. //
  5289. func (c *RDS) ModifyDBSnapshotAttribute(input *ModifyDBSnapshotAttributeInput) (*ModifyDBSnapshotAttributeOutput, error) {
  5290. req, out := c.ModifyDBSnapshotAttributeRequest(input)
  5291. err := req.Send()
  5292. return out, err
  5293. }
  5294. const opModifyDBSubnetGroup = "ModifyDBSubnetGroup"
  5295. // ModifyDBSubnetGroupRequest generates a "aws/request.Request" representing the
  5296. // client's request for the ModifyDBSubnetGroup operation. The "output" return
  5297. // value can be used to capture response data after the request's "Send" method
  5298. // is called.
  5299. //
  5300. // See ModifyDBSubnetGroup for usage and error information.
  5301. //
  5302. // Creating a request object using this method should be used when you want to inject
  5303. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5304. // access properties on the request object before or after sending the request. If
  5305. // you just want the service response, call the ModifyDBSubnetGroup method directly
  5306. // instead.
  5307. //
  5308. // Note: You must call the "Send" method on the returned request object in order
  5309. // to execute the request.
  5310. //
  5311. // // Example sending a request using the ModifyDBSubnetGroupRequest method.
  5312. // req, resp := client.ModifyDBSubnetGroupRequest(params)
  5313. //
  5314. // err := req.Send()
  5315. // if err == nil { // resp is now filled
  5316. // fmt.Println(resp)
  5317. // }
  5318. //
  5319. func (c *RDS) ModifyDBSubnetGroupRequest(input *ModifyDBSubnetGroupInput) (req *request.Request, output *ModifyDBSubnetGroupOutput) {
  5320. op := &request.Operation{
  5321. Name: opModifyDBSubnetGroup,
  5322. HTTPMethod: "POST",
  5323. HTTPPath: "/",
  5324. }
  5325. if input == nil {
  5326. input = &ModifyDBSubnetGroupInput{}
  5327. }
  5328. req = c.newRequest(op, input, output)
  5329. output = &ModifyDBSubnetGroupOutput{}
  5330. req.Data = output
  5331. return
  5332. }
  5333. // ModifyDBSubnetGroup API operation for Amazon Relational Database Service.
  5334. //
  5335. // Modifies an existing DB subnet group. DB subnet groups must contain at least
  5336. // one subnet in at least two AZs in the region.
  5337. //
  5338. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5339. // with awserr.Error's Code and Message methods to get detailed information about
  5340. // the error.
  5341. //
  5342. // See the AWS API reference guide for Amazon Relational Database Service's
  5343. // API operation ModifyDBSubnetGroup for usage and error information.
  5344. //
  5345. // Returned Error Codes:
  5346. // * DBSubnetGroupNotFoundFault
  5347. // DBSubnetGroupName does not refer to an existing DB subnet group.
  5348. //
  5349. // * DBSubnetQuotaExceededFault
  5350. // Request would result in user exceeding the allowed number of subnets in a
  5351. // DB subnet groups.
  5352. //
  5353. // * SubnetAlreadyInUse
  5354. // The DB subnet is already in use in the Availability Zone.
  5355. //
  5356. // * DBSubnetGroupDoesNotCoverEnoughAZs
  5357. // Subnets in the DB subnet group should cover at least two Availability Zones
  5358. // unless there is only one Availability Zone.
  5359. //
  5360. // * InvalidSubnet
  5361. // The requested subnet is invalid, or multiple subnets were requested that
  5362. // are not all in a common VPC.
  5363. //
  5364. func (c *RDS) ModifyDBSubnetGroup(input *ModifyDBSubnetGroupInput) (*ModifyDBSubnetGroupOutput, error) {
  5365. req, out := c.ModifyDBSubnetGroupRequest(input)
  5366. err := req.Send()
  5367. return out, err
  5368. }
  5369. const opModifyEventSubscription = "ModifyEventSubscription"
  5370. // ModifyEventSubscriptionRequest generates a "aws/request.Request" representing the
  5371. // client's request for the ModifyEventSubscription operation. The "output" return
  5372. // value can be used to capture response data after the request's "Send" method
  5373. // is called.
  5374. //
  5375. // See ModifyEventSubscription for usage and error information.
  5376. //
  5377. // Creating a request object using this method should be used when you want to inject
  5378. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5379. // access properties on the request object before or after sending the request. If
  5380. // you just want the service response, call the ModifyEventSubscription method directly
  5381. // instead.
  5382. //
  5383. // Note: You must call the "Send" method on the returned request object in order
  5384. // to execute the request.
  5385. //
  5386. // // Example sending a request using the ModifyEventSubscriptionRequest method.
  5387. // req, resp := client.ModifyEventSubscriptionRequest(params)
  5388. //
  5389. // err := req.Send()
  5390. // if err == nil { // resp is now filled
  5391. // fmt.Println(resp)
  5392. // }
  5393. //
  5394. func (c *RDS) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput) (req *request.Request, output *ModifyEventSubscriptionOutput) {
  5395. op := &request.Operation{
  5396. Name: opModifyEventSubscription,
  5397. HTTPMethod: "POST",
  5398. HTTPPath: "/",
  5399. }
  5400. if input == nil {
  5401. input = &ModifyEventSubscriptionInput{}
  5402. }
  5403. req = c.newRequest(op, input, output)
  5404. output = &ModifyEventSubscriptionOutput{}
  5405. req.Data = output
  5406. return
  5407. }
  5408. // ModifyEventSubscription API operation for Amazon Relational Database Service.
  5409. //
  5410. // Modifies an existing RDS event notification subscription. Note that you cannot
  5411. // modify the source identifiers using this call; to change source identifiers
  5412. // for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription
  5413. // calls.
  5414. //
  5415. // You can see a list of the event categories for a given SourceType in the
  5416. // Events (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html)
  5417. // topic in the Amazon RDS User Guide or by using the DescribeEventCategories
  5418. // action.
  5419. //
  5420. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5421. // with awserr.Error's Code and Message methods to get detailed information about
  5422. // the error.
  5423. //
  5424. // See the AWS API reference guide for Amazon Relational Database Service's
  5425. // API operation ModifyEventSubscription for usage and error information.
  5426. //
  5427. // Returned Error Codes:
  5428. // * EventSubscriptionQuotaExceeded
  5429. // You have reached the maximum number of event subscriptions.
  5430. //
  5431. // * SubscriptionNotFound
  5432. // The subscription name does not exist.
  5433. //
  5434. // * SNSInvalidTopic
  5435. // SNS has responded that there is a problem with the SND topic specified.
  5436. //
  5437. // * SNSNoAuthorization
  5438. // You do not have permission to publish to the SNS topic ARN.
  5439. //
  5440. // * SNSTopicArnNotFound
  5441. // The SNS topic ARN does not exist.
  5442. //
  5443. // * SubscriptionCategoryNotFound
  5444. // The supplied category does not exist.
  5445. //
  5446. func (c *RDS) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error) {
  5447. req, out := c.ModifyEventSubscriptionRequest(input)
  5448. err := req.Send()
  5449. return out, err
  5450. }
  5451. const opModifyOptionGroup = "ModifyOptionGroup"
  5452. // ModifyOptionGroupRequest generates a "aws/request.Request" representing the
  5453. // client's request for the ModifyOptionGroup operation. The "output" return
  5454. // value can be used to capture response data after the request's "Send" method
  5455. // is called.
  5456. //
  5457. // See ModifyOptionGroup for usage and error information.
  5458. //
  5459. // Creating a request object using this method should be used when you want to inject
  5460. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5461. // access properties on the request object before or after sending the request. If
  5462. // you just want the service response, call the ModifyOptionGroup method directly
  5463. // instead.
  5464. //
  5465. // Note: You must call the "Send" method on the returned request object in order
  5466. // to execute the request.
  5467. //
  5468. // // Example sending a request using the ModifyOptionGroupRequest method.
  5469. // req, resp := client.ModifyOptionGroupRequest(params)
  5470. //
  5471. // err := req.Send()
  5472. // if err == nil { // resp is now filled
  5473. // fmt.Println(resp)
  5474. // }
  5475. //
  5476. func (c *RDS) ModifyOptionGroupRequest(input *ModifyOptionGroupInput) (req *request.Request, output *ModifyOptionGroupOutput) {
  5477. op := &request.Operation{
  5478. Name: opModifyOptionGroup,
  5479. HTTPMethod: "POST",
  5480. HTTPPath: "/",
  5481. }
  5482. if input == nil {
  5483. input = &ModifyOptionGroupInput{}
  5484. }
  5485. req = c.newRequest(op, input, output)
  5486. output = &ModifyOptionGroupOutput{}
  5487. req.Data = output
  5488. return
  5489. }
  5490. // ModifyOptionGroup API operation for Amazon Relational Database Service.
  5491. //
  5492. // Modifies an existing option group.
  5493. //
  5494. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5495. // with awserr.Error's Code and Message methods to get detailed information about
  5496. // the error.
  5497. //
  5498. // See the AWS API reference guide for Amazon Relational Database Service's
  5499. // API operation ModifyOptionGroup for usage and error information.
  5500. //
  5501. // Returned Error Codes:
  5502. // * InvalidOptionGroupStateFault
  5503. // The option group is not in the available state.
  5504. //
  5505. // * OptionGroupNotFoundFault
  5506. // The specified option group could not be found.
  5507. //
  5508. func (c *RDS) ModifyOptionGroup(input *ModifyOptionGroupInput) (*ModifyOptionGroupOutput, error) {
  5509. req, out := c.ModifyOptionGroupRequest(input)
  5510. err := req.Send()
  5511. return out, err
  5512. }
  5513. const opPromoteReadReplica = "PromoteReadReplica"
  5514. // PromoteReadReplicaRequest generates a "aws/request.Request" representing the
  5515. // client's request for the PromoteReadReplica operation. The "output" return
  5516. // value can be used to capture response data after the request's "Send" method
  5517. // is called.
  5518. //
  5519. // See PromoteReadReplica for usage and error information.
  5520. //
  5521. // Creating a request object using this method should be used when you want to inject
  5522. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5523. // access properties on the request object before or after sending the request. If
  5524. // you just want the service response, call the PromoteReadReplica method directly
  5525. // instead.
  5526. //
  5527. // Note: You must call the "Send" method on the returned request object in order
  5528. // to execute the request.
  5529. //
  5530. // // Example sending a request using the PromoteReadReplicaRequest method.
  5531. // req, resp := client.PromoteReadReplicaRequest(params)
  5532. //
  5533. // err := req.Send()
  5534. // if err == nil { // resp is now filled
  5535. // fmt.Println(resp)
  5536. // }
  5537. //
  5538. func (c *RDS) PromoteReadReplicaRequest(input *PromoteReadReplicaInput) (req *request.Request, output *PromoteReadReplicaOutput) {
  5539. op := &request.Operation{
  5540. Name: opPromoteReadReplica,
  5541. HTTPMethod: "POST",
  5542. HTTPPath: "/",
  5543. }
  5544. if input == nil {
  5545. input = &PromoteReadReplicaInput{}
  5546. }
  5547. req = c.newRequest(op, input, output)
  5548. output = &PromoteReadReplicaOutput{}
  5549. req.Data = output
  5550. return
  5551. }
  5552. // PromoteReadReplica API operation for Amazon Relational Database Service.
  5553. //
  5554. // Promotes a Read Replica DB instance to a standalone DB instance.
  5555. //
  5556. // We recommend that you enable automated backups on your Read Replica before
  5557. // promoting the Read Replica. This ensures that no backup is taken during the
  5558. // promotion process. Once the instance is promoted to a primary instance, backups
  5559. // are taken based on your backup settings.
  5560. //
  5561. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5562. // with awserr.Error's Code and Message methods to get detailed information about
  5563. // the error.
  5564. //
  5565. // See the AWS API reference guide for Amazon Relational Database Service's
  5566. // API operation PromoteReadReplica for usage and error information.
  5567. //
  5568. // Returned Error Codes:
  5569. // * InvalidDBInstanceState
  5570. // The specified DB instance is not in the available state.
  5571. //
  5572. // * DBInstanceNotFound
  5573. // DBInstanceIdentifier does not refer to an existing DB instance.
  5574. //
  5575. func (c *RDS) PromoteReadReplica(input *PromoteReadReplicaInput) (*PromoteReadReplicaOutput, error) {
  5576. req, out := c.PromoteReadReplicaRequest(input)
  5577. err := req.Send()
  5578. return out, err
  5579. }
  5580. const opPromoteReadReplicaDBCluster = "PromoteReadReplicaDBCluster"
  5581. // PromoteReadReplicaDBClusterRequest generates a "aws/request.Request" representing the
  5582. // client's request for the PromoteReadReplicaDBCluster operation. The "output" return
  5583. // value can be used to capture response data after the request's "Send" method
  5584. // is called.
  5585. //
  5586. // See PromoteReadReplicaDBCluster for usage and error information.
  5587. //
  5588. // Creating a request object using this method should be used when you want to inject
  5589. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5590. // access properties on the request object before or after sending the request. If
  5591. // you just want the service response, call the PromoteReadReplicaDBCluster method directly
  5592. // instead.
  5593. //
  5594. // Note: You must call the "Send" method on the returned request object in order
  5595. // to execute the request.
  5596. //
  5597. // // Example sending a request using the PromoteReadReplicaDBClusterRequest method.
  5598. // req, resp := client.PromoteReadReplicaDBClusterRequest(params)
  5599. //
  5600. // err := req.Send()
  5601. // if err == nil { // resp is now filled
  5602. // fmt.Println(resp)
  5603. // }
  5604. //
  5605. func (c *RDS) PromoteReadReplicaDBClusterRequest(input *PromoteReadReplicaDBClusterInput) (req *request.Request, output *PromoteReadReplicaDBClusterOutput) {
  5606. op := &request.Operation{
  5607. Name: opPromoteReadReplicaDBCluster,
  5608. HTTPMethod: "POST",
  5609. HTTPPath: "/",
  5610. }
  5611. if input == nil {
  5612. input = &PromoteReadReplicaDBClusterInput{}
  5613. }
  5614. req = c.newRequest(op, input, output)
  5615. output = &PromoteReadReplicaDBClusterOutput{}
  5616. req.Data = output
  5617. return
  5618. }
  5619. // PromoteReadReplicaDBCluster API operation for Amazon Relational Database Service.
  5620. //
  5621. // Promotes a Read Replica DB cluster to a standalone DB cluster.
  5622. //
  5623. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5624. // with awserr.Error's Code and Message methods to get detailed information about
  5625. // the error.
  5626. //
  5627. // See the AWS API reference guide for Amazon Relational Database Service's
  5628. // API operation PromoteReadReplicaDBCluster for usage and error information.
  5629. //
  5630. // Returned Error Codes:
  5631. // * DBClusterNotFoundFault
  5632. // DBClusterIdentifier does not refer to an existing DB cluster.
  5633. //
  5634. // * InvalidDBClusterStateFault
  5635. // The DB cluster is not in a valid state.
  5636. //
  5637. func (c *RDS) PromoteReadReplicaDBCluster(input *PromoteReadReplicaDBClusterInput) (*PromoteReadReplicaDBClusterOutput, error) {
  5638. req, out := c.PromoteReadReplicaDBClusterRequest(input)
  5639. err := req.Send()
  5640. return out, err
  5641. }
  5642. const opPurchaseReservedDBInstancesOffering = "PurchaseReservedDBInstancesOffering"
  5643. // PurchaseReservedDBInstancesOfferingRequest generates a "aws/request.Request" representing the
  5644. // client's request for the PurchaseReservedDBInstancesOffering operation. The "output" return
  5645. // value can be used to capture response data after the request's "Send" method
  5646. // is called.
  5647. //
  5648. // See PurchaseReservedDBInstancesOffering for usage and error information.
  5649. //
  5650. // Creating a request object using this method should be used when you want to inject
  5651. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5652. // access properties on the request object before or after sending the request. If
  5653. // you just want the service response, call the PurchaseReservedDBInstancesOffering method directly
  5654. // instead.
  5655. //
  5656. // Note: You must call the "Send" method on the returned request object in order
  5657. // to execute the request.
  5658. //
  5659. // // Example sending a request using the PurchaseReservedDBInstancesOfferingRequest method.
  5660. // req, resp := client.PurchaseReservedDBInstancesOfferingRequest(params)
  5661. //
  5662. // err := req.Send()
  5663. // if err == nil { // resp is now filled
  5664. // fmt.Println(resp)
  5665. // }
  5666. //
  5667. func (c *RDS) PurchaseReservedDBInstancesOfferingRequest(input *PurchaseReservedDBInstancesOfferingInput) (req *request.Request, output *PurchaseReservedDBInstancesOfferingOutput) {
  5668. op := &request.Operation{
  5669. Name: opPurchaseReservedDBInstancesOffering,
  5670. HTTPMethod: "POST",
  5671. HTTPPath: "/",
  5672. }
  5673. if input == nil {
  5674. input = &PurchaseReservedDBInstancesOfferingInput{}
  5675. }
  5676. req = c.newRequest(op, input, output)
  5677. output = &PurchaseReservedDBInstancesOfferingOutput{}
  5678. req.Data = output
  5679. return
  5680. }
  5681. // PurchaseReservedDBInstancesOffering API operation for Amazon Relational Database Service.
  5682. //
  5683. // Purchases a reserved DB instance offering.
  5684. //
  5685. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5686. // with awserr.Error's Code and Message methods to get detailed information about
  5687. // the error.
  5688. //
  5689. // See the AWS API reference guide for Amazon Relational Database Service's
  5690. // API operation PurchaseReservedDBInstancesOffering for usage and error information.
  5691. //
  5692. // Returned Error Codes:
  5693. // * ReservedDBInstancesOfferingNotFound
  5694. // Specified offering does not exist.
  5695. //
  5696. // * ReservedDBInstanceAlreadyExists
  5697. // User already has a reservation with the given identifier.
  5698. //
  5699. // * ReservedDBInstanceQuotaExceeded
  5700. // Request would exceed the user's DB Instance quota.
  5701. //
  5702. func (c *RDS) PurchaseReservedDBInstancesOffering(input *PurchaseReservedDBInstancesOfferingInput) (*PurchaseReservedDBInstancesOfferingOutput, error) {
  5703. req, out := c.PurchaseReservedDBInstancesOfferingRequest(input)
  5704. err := req.Send()
  5705. return out, err
  5706. }
  5707. const opRebootDBInstance = "RebootDBInstance"
  5708. // RebootDBInstanceRequest generates a "aws/request.Request" representing the
  5709. // client's request for the RebootDBInstance operation. The "output" return
  5710. // value can be used to capture response data after the request's "Send" method
  5711. // is called.
  5712. //
  5713. // See RebootDBInstance for usage and error information.
  5714. //
  5715. // Creating a request object using this method should be used when you want to inject
  5716. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5717. // access properties on the request object before or after sending the request. If
  5718. // you just want the service response, call the RebootDBInstance method directly
  5719. // instead.
  5720. //
  5721. // Note: You must call the "Send" method on the returned request object in order
  5722. // to execute the request.
  5723. //
  5724. // // Example sending a request using the RebootDBInstanceRequest method.
  5725. // req, resp := client.RebootDBInstanceRequest(params)
  5726. //
  5727. // err := req.Send()
  5728. // if err == nil { // resp is now filled
  5729. // fmt.Println(resp)
  5730. // }
  5731. //
  5732. func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *request.Request, output *RebootDBInstanceOutput) {
  5733. op := &request.Operation{
  5734. Name: opRebootDBInstance,
  5735. HTTPMethod: "POST",
  5736. HTTPPath: "/",
  5737. }
  5738. if input == nil {
  5739. input = &RebootDBInstanceInput{}
  5740. }
  5741. req = c.newRequest(op, input, output)
  5742. output = &RebootDBInstanceOutput{}
  5743. req.Data = output
  5744. return
  5745. }
  5746. // RebootDBInstance API operation for Amazon Relational Database Service.
  5747. //
  5748. // Rebooting a DB instance restarts the database engine service. A reboot also
  5749. // applies to the DB instance any modifications to the associated DB parameter
  5750. // group that were pending. Rebooting a DB instance results in a momentary outage
  5751. // of the instance, during which the DB instance status is set to rebooting.
  5752. // If the RDS instance is configured for MultiAZ, it is possible that the reboot
  5753. // will be conducted through a failover. An Amazon RDS event is created when
  5754. // the reboot is completed.
  5755. //
  5756. // If your DB instance is deployed in multiple Availability Zones, you can force
  5757. // a failover from one AZ to the other during the reboot. You might force a
  5758. // failover to test the availability of your DB instance deployment or to restore
  5759. // operations to the original AZ after a failover occurs.
  5760. //
  5761. // The time required to reboot is a function of the specific database engine's
  5762. // crash recovery process. To improve the reboot time, we recommend that you
  5763. // reduce database activities as much as possible during the reboot process
  5764. // to reduce rollback activity for in-transit transactions.
  5765. //
  5766. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5767. // with awserr.Error's Code and Message methods to get detailed information about
  5768. // the error.
  5769. //
  5770. // See the AWS API reference guide for Amazon Relational Database Service's
  5771. // API operation RebootDBInstance for usage and error information.
  5772. //
  5773. // Returned Error Codes:
  5774. // * InvalidDBInstanceState
  5775. // The specified DB instance is not in the available state.
  5776. //
  5777. // * DBInstanceNotFound
  5778. // DBInstanceIdentifier does not refer to an existing DB instance.
  5779. //
  5780. func (c *RDS) RebootDBInstance(input *RebootDBInstanceInput) (*RebootDBInstanceOutput, error) {
  5781. req, out := c.RebootDBInstanceRequest(input)
  5782. err := req.Send()
  5783. return out, err
  5784. }
  5785. const opRemoveRoleFromDBCluster = "RemoveRoleFromDBCluster"
  5786. // RemoveRoleFromDBClusterRequest generates a "aws/request.Request" representing the
  5787. // client's request for the RemoveRoleFromDBCluster operation. The "output" return
  5788. // value can be used to capture response data after the request's "Send" method
  5789. // is called.
  5790. //
  5791. // See RemoveRoleFromDBCluster for usage and error information.
  5792. //
  5793. // Creating a request object using this method should be used when you want to inject
  5794. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5795. // access properties on the request object before or after sending the request. If
  5796. // you just want the service response, call the RemoveRoleFromDBCluster method directly
  5797. // instead.
  5798. //
  5799. // Note: You must call the "Send" method on the returned request object in order
  5800. // to execute the request.
  5801. //
  5802. // // Example sending a request using the RemoveRoleFromDBClusterRequest method.
  5803. // req, resp := client.RemoveRoleFromDBClusterRequest(params)
  5804. //
  5805. // err := req.Send()
  5806. // if err == nil { // resp is now filled
  5807. // fmt.Println(resp)
  5808. // }
  5809. //
  5810. func (c *RDS) RemoveRoleFromDBClusterRequest(input *RemoveRoleFromDBClusterInput) (req *request.Request, output *RemoveRoleFromDBClusterOutput) {
  5811. op := &request.Operation{
  5812. Name: opRemoveRoleFromDBCluster,
  5813. HTTPMethod: "POST",
  5814. HTTPPath: "/",
  5815. }
  5816. if input == nil {
  5817. input = &RemoveRoleFromDBClusterInput{}
  5818. }
  5819. req = c.newRequest(op, input, output)
  5820. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  5821. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5822. output = &RemoveRoleFromDBClusterOutput{}
  5823. req.Data = output
  5824. return
  5825. }
  5826. // RemoveRoleFromDBCluster API operation for Amazon Relational Database Service.
  5827. //
  5828. // Disassociates an Identity and Access Management (IAM) role from an Aurora
  5829. // DB cluster. For more information, see Authorizing Amazon Aurora to Access
  5830. // Other AWS Services On Your Behalf (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Authorizing.AWSServices.html).
  5831. //
  5832. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5833. // with awserr.Error's Code and Message methods to get detailed information about
  5834. // the error.
  5835. //
  5836. // See the AWS API reference guide for Amazon Relational Database Service's
  5837. // API operation RemoveRoleFromDBCluster for usage and error information.
  5838. //
  5839. // Returned Error Codes:
  5840. // * DBClusterNotFoundFault
  5841. // DBClusterIdentifier does not refer to an existing DB cluster.
  5842. //
  5843. // * DBClusterRoleNotFound
  5844. // The specified IAM role Amazon Resource Name (ARN) is not associated with
  5845. // the specified DB cluster.
  5846. //
  5847. // * InvalidDBClusterStateFault
  5848. // The DB cluster is not in a valid state.
  5849. //
  5850. func (c *RDS) RemoveRoleFromDBCluster(input *RemoveRoleFromDBClusterInput) (*RemoveRoleFromDBClusterOutput, error) {
  5851. req, out := c.RemoveRoleFromDBClusterRequest(input)
  5852. err := req.Send()
  5853. return out, err
  5854. }
  5855. const opRemoveSourceIdentifierFromSubscription = "RemoveSourceIdentifierFromSubscription"
  5856. // RemoveSourceIdentifierFromSubscriptionRequest generates a "aws/request.Request" representing the
  5857. // client's request for the RemoveSourceIdentifierFromSubscription operation. The "output" return
  5858. // value can be used to capture response data after the request's "Send" method
  5859. // is called.
  5860. //
  5861. // See RemoveSourceIdentifierFromSubscription for usage and error information.
  5862. //
  5863. // Creating a request object using this method should be used when you want to inject
  5864. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5865. // access properties on the request object before or after sending the request. If
  5866. // you just want the service response, call the RemoveSourceIdentifierFromSubscription method directly
  5867. // instead.
  5868. //
  5869. // Note: You must call the "Send" method on the returned request object in order
  5870. // to execute the request.
  5871. //
  5872. // // Example sending a request using the RemoveSourceIdentifierFromSubscriptionRequest method.
  5873. // req, resp := client.RemoveSourceIdentifierFromSubscriptionRequest(params)
  5874. //
  5875. // err := req.Send()
  5876. // if err == nil { // resp is now filled
  5877. // fmt.Println(resp)
  5878. // }
  5879. //
  5880. func (c *RDS) RemoveSourceIdentifierFromSubscriptionRequest(input *RemoveSourceIdentifierFromSubscriptionInput) (req *request.Request, output *RemoveSourceIdentifierFromSubscriptionOutput) {
  5881. op := &request.Operation{
  5882. Name: opRemoveSourceIdentifierFromSubscription,
  5883. HTTPMethod: "POST",
  5884. HTTPPath: "/",
  5885. }
  5886. if input == nil {
  5887. input = &RemoveSourceIdentifierFromSubscriptionInput{}
  5888. }
  5889. req = c.newRequest(op, input, output)
  5890. output = &RemoveSourceIdentifierFromSubscriptionOutput{}
  5891. req.Data = output
  5892. return
  5893. }
  5894. // RemoveSourceIdentifierFromSubscription API operation for Amazon Relational Database Service.
  5895. //
  5896. // Removes a source identifier from an existing RDS event notification subscription.
  5897. //
  5898. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5899. // with awserr.Error's Code and Message methods to get detailed information about
  5900. // the error.
  5901. //
  5902. // See the AWS API reference guide for Amazon Relational Database Service's
  5903. // API operation RemoveSourceIdentifierFromSubscription for usage and error information.
  5904. //
  5905. // Returned Error Codes:
  5906. // * SubscriptionNotFound
  5907. // The subscription name does not exist.
  5908. //
  5909. // * SourceNotFound
  5910. // The requested source could not be found.
  5911. //
  5912. func (c *RDS) RemoveSourceIdentifierFromSubscription(input *RemoveSourceIdentifierFromSubscriptionInput) (*RemoveSourceIdentifierFromSubscriptionOutput, error) {
  5913. req, out := c.RemoveSourceIdentifierFromSubscriptionRequest(input)
  5914. err := req.Send()
  5915. return out, err
  5916. }
  5917. const opRemoveTagsFromResource = "RemoveTagsFromResource"
  5918. // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
  5919. // client's request for the RemoveTagsFromResource operation. The "output" return
  5920. // value can be used to capture response data after the request's "Send" method
  5921. // is called.
  5922. //
  5923. // See RemoveTagsFromResource for usage and error information.
  5924. //
  5925. // Creating a request object using this method should be used when you want to inject
  5926. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5927. // access properties on the request object before or after sending the request. If
  5928. // you just want the service response, call the RemoveTagsFromResource method directly
  5929. // instead.
  5930. //
  5931. // Note: You must call the "Send" method on the returned request object in order
  5932. // to execute the request.
  5933. //
  5934. // // Example sending a request using the RemoveTagsFromResourceRequest method.
  5935. // req, resp := client.RemoveTagsFromResourceRequest(params)
  5936. //
  5937. // err := req.Send()
  5938. // if err == nil { // resp is now filled
  5939. // fmt.Println(resp)
  5940. // }
  5941. //
  5942. func (c *RDS) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
  5943. op := &request.Operation{
  5944. Name: opRemoveTagsFromResource,
  5945. HTTPMethod: "POST",
  5946. HTTPPath: "/",
  5947. }
  5948. if input == nil {
  5949. input = &RemoveTagsFromResourceInput{}
  5950. }
  5951. req = c.newRequest(op, input, output)
  5952. req.Handlers.Unmarshal.Remove(query.UnmarshalHandler)
  5953. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  5954. output = &RemoveTagsFromResourceOutput{}
  5955. req.Data = output
  5956. return
  5957. }
  5958. // RemoveTagsFromResource API operation for Amazon Relational Database Service.
  5959. //
  5960. // Removes metadata tags from an Amazon RDS resource.
  5961. //
  5962. // For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS
  5963. // Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html).
  5964. //
  5965. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5966. // with awserr.Error's Code and Message methods to get detailed information about
  5967. // the error.
  5968. //
  5969. // See the AWS API reference guide for Amazon Relational Database Service's
  5970. // API operation RemoveTagsFromResource for usage and error information.
  5971. //
  5972. // Returned Error Codes:
  5973. // * DBInstanceNotFound
  5974. // DBInstanceIdentifier does not refer to an existing DB instance.
  5975. //
  5976. // * DBSnapshotNotFound
  5977. // DBSnapshotIdentifier does not refer to an existing DB snapshot.
  5978. //
  5979. func (c *RDS) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
  5980. req, out := c.RemoveTagsFromResourceRequest(input)
  5981. err := req.Send()
  5982. return out, err
  5983. }
  5984. const opResetDBClusterParameterGroup = "ResetDBClusterParameterGroup"
  5985. // ResetDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  5986. // client's request for the ResetDBClusterParameterGroup operation. The "output" return
  5987. // value can be used to capture response data after the request's "Send" method
  5988. // is called.
  5989. //
  5990. // See ResetDBClusterParameterGroup for usage and error information.
  5991. //
  5992. // Creating a request object using this method should be used when you want to inject
  5993. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5994. // access properties on the request object before or after sending the request. If
  5995. // you just want the service response, call the ResetDBClusterParameterGroup method directly
  5996. // instead.
  5997. //
  5998. // Note: You must call the "Send" method on the returned request object in order
  5999. // to execute the request.
  6000. //
  6001. // // Example sending a request using the ResetDBClusterParameterGroupRequest method.
  6002. // req, resp := client.ResetDBClusterParameterGroupRequest(params)
  6003. //
  6004. // err := req.Send()
  6005. // if err == nil { // resp is now filled
  6006. // fmt.Println(resp)
  6007. // }
  6008. //
  6009. func (c *RDS) ResetDBClusterParameterGroupRequest(input *ResetDBClusterParameterGroupInput) (req *request.Request, output *DBClusterParameterGroupNameMessage) {
  6010. op := &request.Operation{
  6011. Name: opResetDBClusterParameterGroup,
  6012. HTTPMethod: "POST",
  6013. HTTPPath: "/",
  6014. }
  6015. if input == nil {
  6016. input = &ResetDBClusterParameterGroupInput{}
  6017. }
  6018. req = c.newRequest(op, input, output)
  6019. output = &DBClusterParameterGroupNameMessage{}
  6020. req.Data = output
  6021. return
  6022. }
  6023. // ResetDBClusterParameterGroup API operation for Amazon Relational Database Service.
  6024. //
  6025. // Modifies the parameters of a DB cluster parameter group to the default value.
  6026. // To reset specific parameters submit a list of the following: ParameterName
  6027. // and ApplyMethod. To reset the entire DB cluster parameter group, specify
  6028. // the DBClusterParameterGroupName and ResetAllParameters parameters.
  6029. //
  6030. // When resetting the entire group, dynamic parameters are updated immediately
  6031. // and static parameters are set to pending-reboot to take effect on the next
  6032. // DB instance restart or RebootDBInstance request. You must call RebootDBInstance
  6033. // for every DB instance in your DB cluster that you want the updated static
  6034. // parameter to apply to.
  6035. //
  6036. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  6037. // in the Amazon RDS User Guide.
  6038. //
  6039. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6040. // with awserr.Error's Code and Message methods to get detailed information about
  6041. // the error.
  6042. //
  6043. // See the AWS API reference guide for Amazon Relational Database Service's
  6044. // API operation ResetDBClusterParameterGroup for usage and error information.
  6045. //
  6046. // Returned Error Codes:
  6047. // * InvalidDBParameterGroupState
  6048. // The DB parameter group cannot be deleted because it is in use.
  6049. //
  6050. // * DBParameterGroupNotFound
  6051. // DBParameterGroupName does not refer to an existing DB parameter group.
  6052. //
  6053. func (c *RDS) ResetDBClusterParameterGroup(input *ResetDBClusterParameterGroupInput) (*DBClusterParameterGroupNameMessage, error) {
  6054. req, out := c.ResetDBClusterParameterGroupRequest(input)
  6055. err := req.Send()
  6056. return out, err
  6057. }
  6058. const opResetDBParameterGroup = "ResetDBParameterGroup"
  6059. // ResetDBParameterGroupRequest generates a "aws/request.Request" representing the
  6060. // client's request for the ResetDBParameterGroup operation. The "output" return
  6061. // value can be used to capture response data after the request's "Send" method
  6062. // is called.
  6063. //
  6064. // See ResetDBParameterGroup for usage and error information.
  6065. //
  6066. // Creating a request object using this method should be used when you want to inject
  6067. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6068. // access properties on the request object before or after sending the request. If
  6069. // you just want the service response, call the ResetDBParameterGroup method directly
  6070. // instead.
  6071. //
  6072. // Note: You must call the "Send" method on the returned request object in order
  6073. // to execute the request.
  6074. //
  6075. // // Example sending a request using the ResetDBParameterGroupRequest method.
  6076. // req, resp := client.ResetDBParameterGroupRequest(params)
  6077. //
  6078. // err := req.Send()
  6079. // if err == nil { // resp is now filled
  6080. // fmt.Println(resp)
  6081. // }
  6082. //
  6083. func (c *RDS) ResetDBParameterGroupRequest(input *ResetDBParameterGroupInput) (req *request.Request, output *DBParameterGroupNameMessage) {
  6084. op := &request.Operation{
  6085. Name: opResetDBParameterGroup,
  6086. HTTPMethod: "POST",
  6087. HTTPPath: "/",
  6088. }
  6089. if input == nil {
  6090. input = &ResetDBParameterGroupInput{}
  6091. }
  6092. req = c.newRequest(op, input, output)
  6093. output = &DBParameterGroupNameMessage{}
  6094. req.Data = output
  6095. return
  6096. }
  6097. // ResetDBParameterGroup API operation for Amazon Relational Database Service.
  6098. //
  6099. // Modifies the parameters of a DB parameter group to the engine/system default
  6100. // value. To reset specific parameters submit a list of the following: ParameterName
  6101. // and ApplyMethod. To reset the entire DB parameter group, specify the DBParameterGroup
  6102. // name and ResetAllParameters parameters. When resetting the entire group,
  6103. // dynamic parameters are updated immediately and static parameters are set
  6104. // to pending-reboot to take effect on the next DB instance restart or RebootDBInstance
  6105. // request.
  6106. //
  6107. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6108. // with awserr.Error's Code and Message methods to get detailed information about
  6109. // the error.
  6110. //
  6111. // See the AWS API reference guide for Amazon Relational Database Service's
  6112. // API operation ResetDBParameterGroup for usage and error information.
  6113. //
  6114. // Returned Error Codes:
  6115. // * InvalidDBParameterGroupState
  6116. // The DB parameter group cannot be deleted because it is in use.
  6117. //
  6118. // * DBParameterGroupNotFound
  6119. // DBParameterGroupName does not refer to an existing DB parameter group.
  6120. //
  6121. func (c *RDS) ResetDBParameterGroup(input *ResetDBParameterGroupInput) (*DBParameterGroupNameMessage, error) {
  6122. req, out := c.ResetDBParameterGroupRequest(input)
  6123. err := req.Send()
  6124. return out, err
  6125. }
  6126. const opRestoreDBClusterFromS3 = "RestoreDBClusterFromS3"
  6127. // RestoreDBClusterFromS3Request generates a "aws/request.Request" representing the
  6128. // client's request for the RestoreDBClusterFromS3 operation. The "output" return
  6129. // value can be used to capture response data after the request's "Send" method
  6130. // is called.
  6131. //
  6132. // See RestoreDBClusterFromS3 for usage and error information.
  6133. //
  6134. // Creating a request object using this method should be used when you want to inject
  6135. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6136. // access properties on the request object before or after sending the request. If
  6137. // you just want the service response, call the RestoreDBClusterFromS3 method directly
  6138. // instead.
  6139. //
  6140. // Note: You must call the "Send" method on the returned request object in order
  6141. // to execute the request.
  6142. //
  6143. // // Example sending a request using the RestoreDBClusterFromS3Request method.
  6144. // req, resp := client.RestoreDBClusterFromS3Request(params)
  6145. //
  6146. // err := req.Send()
  6147. // if err == nil { // resp is now filled
  6148. // fmt.Println(resp)
  6149. // }
  6150. //
  6151. func (c *RDS) RestoreDBClusterFromS3Request(input *RestoreDBClusterFromS3Input) (req *request.Request, output *RestoreDBClusterFromS3Output) {
  6152. op := &request.Operation{
  6153. Name: opRestoreDBClusterFromS3,
  6154. HTTPMethod: "POST",
  6155. HTTPPath: "/",
  6156. }
  6157. if input == nil {
  6158. input = &RestoreDBClusterFromS3Input{}
  6159. }
  6160. req = c.newRequest(op, input, output)
  6161. output = &RestoreDBClusterFromS3Output{}
  6162. req.Data = output
  6163. return
  6164. }
  6165. // RestoreDBClusterFromS3 API operation for Amazon Relational Database Service.
  6166. //
  6167. // Creates an Amazon Aurora DB cluster from data stored in an Amazon S3 bucket.
  6168. // Amazon RDS must be authorized to access the Amazon S3 bucket and the data
  6169. // must be created using the Percona XtraBackup utility as described in Migrating
  6170. // Data from MySQL by Using an Amazon S3 Bucket (AmazonRDS/latest/UserGuide/Aurora.Migrate.MySQL.html#Aurora.Migrate.MySQL.S3).
  6171. //
  6172. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6173. // with awserr.Error's Code and Message methods to get detailed information about
  6174. // the error.
  6175. //
  6176. // See the AWS API reference guide for Amazon Relational Database Service's
  6177. // API operation RestoreDBClusterFromS3 for usage and error information.
  6178. //
  6179. // Returned Error Codes:
  6180. // * DBClusterAlreadyExistsFault
  6181. // User already has a DB cluster with the given identifier.
  6182. //
  6183. // * DBClusterQuotaExceededFault
  6184. // User attempted to create a new DB cluster and the user has already reached
  6185. // the maximum allowed DB cluster quota.
  6186. //
  6187. // * StorageQuotaExceeded
  6188. // Request would result in user exceeding the allowed amount of storage available
  6189. // across all DB instances.
  6190. //
  6191. // * DBSubnetGroupNotFoundFault
  6192. // DBSubnetGroupName does not refer to an existing DB subnet group.
  6193. //
  6194. // * InvalidVPCNetworkStateFault
  6195. // DB subnet group does not cover all Availability Zones after it is created
  6196. // because users' change.
  6197. //
  6198. // * InvalidDBClusterStateFault
  6199. // The DB cluster is not in a valid state.
  6200. //
  6201. // * InvalidDBSubnetGroupStateFault
  6202. // The DB subnet group cannot be deleted because it is in use.
  6203. //
  6204. // * InvalidSubnet
  6205. // The requested subnet is invalid, or multiple subnets were requested that
  6206. // are not all in a common VPC.
  6207. //
  6208. // * InvalidS3BucketFault
  6209. // The specified Amazon S3 bucket name could not be found or Amazon RDS is not
  6210. // authorized to access the specified Amazon S3 bucket. Verify the SourceS3BucketName
  6211. // and S3IngestionRoleArn values and try again.
  6212. //
  6213. // * DBClusterParameterGroupNotFound
  6214. // DBClusterParameterGroupName does not refer to an existing DB Cluster parameter
  6215. // group.
  6216. //
  6217. // * KMSKeyNotAccessibleFault
  6218. // Error accessing KMS key.
  6219. //
  6220. // * DBClusterNotFoundFault
  6221. // DBClusterIdentifier does not refer to an existing DB cluster.
  6222. //
  6223. // * InsufficientStorageClusterCapacity
  6224. // There is insufficient storage available for the current action. You may be
  6225. // able to resolve this error by updating your subnet group to use different
  6226. // Availability Zones that have more storage available.
  6227. //
  6228. func (c *RDS) RestoreDBClusterFromS3(input *RestoreDBClusterFromS3Input) (*RestoreDBClusterFromS3Output, error) {
  6229. req, out := c.RestoreDBClusterFromS3Request(input)
  6230. err := req.Send()
  6231. return out, err
  6232. }
  6233. const opRestoreDBClusterFromSnapshot = "RestoreDBClusterFromSnapshot"
  6234. // RestoreDBClusterFromSnapshotRequest generates a "aws/request.Request" representing the
  6235. // client's request for the RestoreDBClusterFromSnapshot operation. The "output" return
  6236. // value can be used to capture response data after the request's "Send" method
  6237. // is called.
  6238. //
  6239. // See RestoreDBClusterFromSnapshot for usage and error information.
  6240. //
  6241. // Creating a request object using this method should be used when you want to inject
  6242. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6243. // access properties on the request object before or after sending the request. If
  6244. // you just want the service response, call the RestoreDBClusterFromSnapshot method directly
  6245. // instead.
  6246. //
  6247. // Note: You must call the "Send" method on the returned request object in order
  6248. // to execute the request.
  6249. //
  6250. // // Example sending a request using the RestoreDBClusterFromSnapshotRequest method.
  6251. // req, resp := client.RestoreDBClusterFromSnapshotRequest(params)
  6252. //
  6253. // err := req.Send()
  6254. // if err == nil { // resp is now filled
  6255. // fmt.Println(resp)
  6256. // }
  6257. //
  6258. func (c *RDS) RestoreDBClusterFromSnapshotRequest(input *RestoreDBClusterFromSnapshotInput) (req *request.Request, output *RestoreDBClusterFromSnapshotOutput) {
  6259. op := &request.Operation{
  6260. Name: opRestoreDBClusterFromSnapshot,
  6261. HTTPMethod: "POST",
  6262. HTTPPath: "/",
  6263. }
  6264. if input == nil {
  6265. input = &RestoreDBClusterFromSnapshotInput{}
  6266. }
  6267. req = c.newRequest(op, input, output)
  6268. output = &RestoreDBClusterFromSnapshotOutput{}
  6269. req.Data = output
  6270. return
  6271. }
  6272. // RestoreDBClusterFromSnapshot API operation for Amazon Relational Database Service.
  6273. //
  6274. // Creates a new DB cluster from a DB cluster snapshot. The target DB cluster
  6275. // is created from the source DB cluster restore point with the same configuration
  6276. // as the original source DB cluster, except that the new DB cluster is created
  6277. // with the default security group.
  6278. //
  6279. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  6280. // in the Amazon RDS User Guide.
  6281. //
  6282. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6283. // with awserr.Error's Code and Message methods to get detailed information about
  6284. // the error.
  6285. //
  6286. // See the AWS API reference guide for Amazon Relational Database Service's
  6287. // API operation RestoreDBClusterFromSnapshot for usage and error information.
  6288. //
  6289. // Returned Error Codes:
  6290. // * DBClusterAlreadyExistsFault
  6291. // User already has a DB cluster with the given identifier.
  6292. //
  6293. // * DBClusterQuotaExceededFault
  6294. // User attempted to create a new DB cluster and the user has already reached
  6295. // the maximum allowed DB cluster quota.
  6296. //
  6297. // * StorageQuotaExceeded
  6298. // Request would result in user exceeding the allowed amount of storage available
  6299. // across all DB instances.
  6300. //
  6301. // * DBSubnetGroupNotFoundFault
  6302. // DBSubnetGroupName does not refer to an existing DB subnet group.
  6303. //
  6304. // * DBSnapshotNotFound
  6305. // DBSnapshotIdentifier does not refer to an existing DB snapshot.
  6306. //
  6307. // * DBClusterSnapshotNotFoundFault
  6308. // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot.
  6309. //
  6310. // * InsufficientDBClusterCapacityFault
  6311. // The DB cluster does not have enough capacity for the current operation.
  6312. //
  6313. // * InsufficientStorageClusterCapacity
  6314. // There is insufficient storage available for the current action. You may be
  6315. // able to resolve this error by updating your subnet group to use different
  6316. // Availability Zones that have more storage available.
  6317. //
  6318. // * InvalidDBSnapshotState
  6319. // The state of the DB snapshot does not allow deletion.
  6320. //
  6321. // * InvalidDBClusterSnapshotStateFault
  6322. // The supplied value is not a valid DB cluster snapshot state.
  6323. //
  6324. // * StorageQuotaExceeded
  6325. // Request would result in user exceeding the allowed amount of storage available
  6326. // across all DB instances.
  6327. //
  6328. // * InvalidVPCNetworkStateFault
  6329. // DB subnet group does not cover all Availability Zones after it is created
  6330. // because users' change.
  6331. //
  6332. // * InvalidRestoreFault
  6333. // Cannot restore from vpc backup to non-vpc DB instance.
  6334. //
  6335. // * DBSubnetGroupNotFoundFault
  6336. // DBSubnetGroupName does not refer to an existing DB subnet group.
  6337. //
  6338. // * InvalidSubnet
  6339. // The requested subnet is invalid, or multiple subnets were requested that
  6340. // are not all in a common VPC.
  6341. //
  6342. // * OptionGroupNotFoundFault
  6343. // The specified option group could not be found.
  6344. //
  6345. // * KMSKeyNotAccessibleFault
  6346. // Error accessing KMS key.
  6347. //
  6348. func (c *RDS) RestoreDBClusterFromSnapshot(input *RestoreDBClusterFromSnapshotInput) (*RestoreDBClusterFromSnapshotOutput, error) {
  6349. req, out := c.RestoreDBClusterFromSnapshotRequest(input)
  6350. err := req.Send()
  6351. return out, err
  6352. }
  6353. const opRestoreDBClusterToPointInTime = "RestoreDBClusterToPointInTime"
  6354. // RestoreDBClusterToPointInTimeRequest generates a "aws/request.Request" representing the
  6355. // client's request for the RestoreDBClusterToPointInTime operation. The "output" return
  6356. // value can be used to capture response data after the request's "Send" method
  6357. // is called.
  6358. //
  6359. // See RestoreDBClusterToPointInTime for usage and error information.
  6360. //
  6361. // Creating a request object using this method should be used when you want to inject
  6362. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6363. // access properties on the request object before or after sending the request. If
  6364. // you just want the service response, call the RestoreDBClusterToPointInTime method directly
  6365. // instead.
  6366. //
  6367. // Note: You must call the "Send" method on the returned request object in order
  6368. // to execute the request.
  6369. //
  6370. // // Example sending a request using the RestoreDBClusterToPointInTimeRequest method.
  6371. // req, resp := client.RestoreDBClusterToPointInTimeRequest(params)
  6372. //
  6373. // err := req.Send()
  6374. // if err == nil { // resp is now filled
  6375. // fmt.Println(resp)
  6376. // }
  6377. //
  6378. func (c *RDS) RestoreDBClusterToPointInTimeRequest(input *RestoreDBClusterToPointInTimeInput) (req *request.Request, output *RestoreDBClusterToPointInTimeOutput) {
  6379. op := &request.Operation{
  6380. Name: opRestoreDBClusterToPointInTime,
  6381. HTTPMethod: "POST",
  6382. HTTPPath: "/",
  6383. }
  6384. if input == nil {
  6385. input = &RestoreDBClusterToPointInTimeInput{}
  6386. }
  6387. req = c.newRequest(op, input, output)
  6388. output = &RestoreDBClusterToPointInTimeOutput{}
  6389. req.Data = output
  6390. return
  6391. }
  6392. // RestoreDBClusterToPointInTime API operation for Amazon Relational Database Service.
  6393. //
  6394. // Restores a DB cluster to an arbitrary point in time. Users can restore to
  6395. // any point in time before LatestRestorableTime for up to BackupRetentionPeriod
  6396. // days. The target DB cluster is created from the source DB cluster with the
  6397. // same configuration as the original DB cluster, except that the new DB cluster
  6398. // is created with the default DB security group.
  6399. //
  6400. // For more information on Amazon Aurora, see Aurora on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Aurora.html)
  6401. // in the Amazon RDS User Guide.
  6402. //
  6403. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6404. // with awserr.Error's Code and Message methods to get detailed information about
  6405. // the error.
  6406. //
  6407. // See the AWS API reference guide for Amazon Relational Database Service's
  6408. // API operation RestoreDBClusterToPointInTime for usage and error information.
  6409. //
  6410. // Returned Error Codes:
  6411. // * DBClusterAlreadyExistsFault
  6412. // User already has a DB cluster with the given identifier.
  6413. //
  6414. // * DBClusterQuotaExceededFault
  6415. // User attempted to create a new DB cluster and the user has already reached
  6416. // the maximum allowed DB cluster quota.
  6417. //
  6418. // * StorageQuotaExceeded
  6419. // Request would result in user exceeding the allowed amount of storage available
  6420. // across all DB instances.
  6421. //
  6422. // * DBSubnetGroupNotFoundFault
  6423. // DBSubnetGroupName does not refer to an existing DB subnet group.
  6424. //
  6425. // * DBClusterNotFoundFault
  6426. // DBClusterIdentifier does not refer to an existing DB cluster.
  6427. //
  6428. // * DBClusterSnapshotNotFoundFault
  6429. // DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot.
  6430. //
  6431. // * InsufficientDBClusterCapacityFault
  6432. // The DB cluster does not have enough capacity for the current operation.
  6433. //
  6434. // * InsufficientStorageClusterCapacity
  6435. // There is insufficient storage available for the current action. You may be
  6436. // able to resolve this error by updating your subnet group to use different
  6437. // Availability Zones that have more storage available.
  6438. //
  6439. // * InvalidDBSnapshotState
  6440. // The state of the DB snapshot does not allow deletion.
  6441. //
  6442. // * InvalidDBClusterSnapshotStateFault
  6443. // The supplied value is not a valid DB cluster snapshot state.
  6444. //
  6445. // * StorageQuotaExceeded
  6446. // Request would result in user exceeding the allowed amount of storage available
  6447. // across all DB instances.
  6448. //
  6449. // * InvalidVPCNetworkStateFault
  6450. // DB subnet group does not cover all Availability Zones after it is created
  6451. // because users' change.
  6452. //
  6453. // * InvalidRestoreFault
  6454. // Cannot restore from vpc backup to non-vpc DB instance.
  6455. //
  6456. // * DBSubnetGroupNotFoundFault
  6457. // DBSubnetGroupName does not refer to an existing DB subnet group.
  6458. //
  6459. // * InvalidSubnet
  6460. // The requested subnet is invalid, or multiple subnets were requested that
  6461. // are not all in a common VPC.
  6462. //
  6463. // * OptionGroupNotFoundFault
  6464. // The specified option group could not be found.
  6465. //
  6466. // * KMSKeyNotAccessibleFault
  6467. // Error accessing KMS key.
  6468. //
  6469. func (c *RDS) RestoreDBClusterToPointInTime(input *RestoreDBClusterToPointInTimeInput) (*RestoreDBClusterToPointInTimeOutput, error) {
  6470. req, out := c.RestoreDBClusterToPointInTimeRequest(input)
  6471. err := req.Send()
  6472. return out, err
  6473. }
  6474. const opRestoreDBInstanceFromDBSnapshot = "RestoreDBInstanceFromDBSnapshot"
  6475. // RestoreDBInstanceFromDBSnapshotRequest generates a "aws/request.Request" representing the
  6476. // client's request for the RestoreDBInstanceFromDBSnapshot operation. The "output" return
  6477. // value can be used to capture response data after the request's "Send" method
  6478. // is called.
  6479. //
  6480. // See RestoreDBInstanceFromDBSnapshot for usage and error information.
  6481. //
  6482. // Creating a request object using this method should be used when you want to inject
  6483. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6484. // access properties on the request object before or after sending the request. If
  6485. // you just want the service response, call the RestoreDBInstanceFromDBSnapshot method directly
  6486. // instead.
  6487. //
  6488. // Note: You must call the "Send" method on the returned request object in order
  6489. // to execute the request.
  6490. //
  6491. // // Example sending a request using the RestoreDBInstanceFromDBSnapshotRequest method.
  6492. // req, resp := client.RestoreDBInstanceFromDBSnapshotRequest(params)
  6493. //
  6494. // err := req.Send()
  6495. // if err == nil { // resp is now filled
  6496. // fmt.Println(resp)
  6497. // }
  6498. //
  6499. func (c *RDS) RestoreDBInstanceFromDBSnapshotRequest(input *RestoreDBInstanceFromDBSnapshotInput) (req *request.Request, output *RestoreDBInstanceFromDBSnapshotOutput) {
  6500. op := &request.Operation{
  6501. Name: opRestoreDBInstanceFromDBSnapshot,
  6502. HTTPMethod: "POST",
  6503. HTTPPath: "/",
  6504. }
  6505. if input == nil {
  6506. input = &RestoreDBInstanceFromDBSnapshotInput{}
  6507. }
  6508. req = c.newRequest(op, input, output)
  6509. output = &RestoreDBInstanceFromDBSnapshotOutput{}
  6510. req.Data = output
  6511. return
  6512. }
  6513. // RestoreDBInstanceFromDBSnapshot API operation for Amazon Relational Database Service.
  6514. //
  6515. // Creates a new DB instance from a DB snapshot. The target database is created
  6516. // from the source database restore point with the most of original configuration
  6517. // with the default security group and the default DB parameter group. By default,
  6518. // the new DB instance is created as a single-AZ deployment except when the
  6519. // instance is a SQL Server instance that has an option group that is associated
  6520. // with mirroring; in this case, the instance becomes a mirrored AZ deployment
  6521. // and not a single-AZ deployment.
  6522. //
  6523. // If your intent is to replace your original DB instance with the new, restored
  6524. // DB instance, then rename your original DB instance before you call the RestoreDBInstanceFromDBSnapshot
  6525. // action. RDS does not allow two DB instances with the same name. Once you
  6526. // have renamed your original DB instance with a different identifier, then
  6527. // you can pass the original name of the DB instance as the DBInstanceIdentifier
  6528. // in the call to the RestoreDBInstanceFromDBSnapshot action. The result is
  6529. // that you will replace the original DB instance with the DB instance created
  6530. // from the snapshot.
  6531. //
  6532. // If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier
  6533. // must be the ARN of the shared DB snapshot.
  6534. //
  6535. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6536. // with awserr.Error's Code and Message methods to get detailed information about
  6537. // the error.
  6538. //
  6539. // See the AWS API reference guide for Amazon Relational Database Service's
  6540. // API operation RestoreDBInstanceFromDBSnapshot for usage and error information.
  6541. //
  6542. // Returned Error Codes:
  6543. // * DBInstanceAlreadyExists
  6544. // User already has a DB instance with the given identifier.
  6545. //
  6546. // * DBSnapshotNotFound
  6547. // DBSnapshotIdentifier does not refer to an existing DB snapshot.
  6548. //
  6549. // * InstanceQuotaExceeded
  6550. // Request would result in user exceeding the allowed number of DB instances.
  6551. //
  6552. // * InsufficientDBInstanceCapacity
  6553. // Specified DB instance class is not available in the specified Availability
  6554. // Zone.
  6555. //
  6556. // * InvalidDBSnapshotState
  6557. // The state of the DB snapshot does not allow deletion.
  6558. //
  6559. // * StorageQuotaExceeded
  6560. // Request would result in user exceeding the allowed amount of storage available
  6561. // across all DB instances.
  6562. //
  6563. // * InvalidVPCNetworkStateFault
  6564. // DB subnet group does not cover all Availability Zones after it is created
  6565. // because users' change.
  6566. //
  6567. // * InvalidRestoreFault
  6568. // Cannot restore from vpc backup to non-vpc DB instance.
  6569. //
  6570. // * DBSubnetGroupNotFoundFault
  6571. // DBSubnetGroupName does not refer to an existing DB subnet group.
  6572. //
  6573. // * DBSubnetGroupDoesNotCoverEnoughAZs
  6574. // Subnets in the DB subnet group should cover at least two Availability Zones
  6575. // unless there is only one Availability Zone.
  6576. //
  6577. // * InvalidSubnet
  6578. // The requested subnet is invalid, or multiple subnets were requested that
  6579. // are not all in a common VPC.
  6580. //
  6581. // * ProvisionedIopsNotAvailableInAZFault
  6582. // Provisioned IOPS not available in the specified Availability Zone.
  6583. //
  6584. // * OptionGroupNotFoundFault
  6585. // The specified option group could not be found.
  6586. //
  6587. // * StorageTypeNotSupported
  6588. // StorageType specified cannot be associated with the DB Instance.
  6589. //
  6590. // * AuthorizationNotFound
  6591. // Specified CIDRIP or EC2 security group is not authorized for the specified
  6592. // DB security group.
  6593. //
  6594. // RDS may not also be authorized via IAM to perform necessary actions on your
  6595. // behalf.
  6596. //
  6597. // * KMSKeyNotAccessibleFault
  6598. // Error accessing KMS key.
  6599. //
  6600. // * DBSecurityGroupNotFound
  6601. // DBSecurityGroupName does not refer to an existing DB security group.
  6602. //
  6603. // * DomainNotFoundFault
  6604. // Domain does not refer to an existing Active Directory Domain.
  6605. //
  6606. func (c *RDS) RestoreDBInstanceFromDBSnapshot(input *RestoreDBInstanceFromDBSnapshotInput) (*RestoreDBInstanceFromDBSnapshotOutput, error) {
  6607. req, out := c.RestoreDBInstanceFromDBSnapshotRequest(input)
  6608. err := req.Send()
  6609. return out, err
  6610. }
  6611. const opRestoreDBInstanceToPointInTime = "RestoreDBInstanceToPointInTime"
  6612. // RestoreDBInstanceToPointInTimeRequest generates a "aws/request.Request" representing the
  6613. // client's request for the RestoreDBInstanceToPointInTime operation. The "output" return
  6614. // value can be used to capture response data after the request's "Send" method
  6615. // is called.
  6616. //
  6617. // See RestoreDBInstanceToPointInTime for usage and error information.
  6618. //
  6619. // Creating a request object using this method should be used when you want to inject
  6620. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6621. // access properties on the request object before or after sending the request. If
  6622. // you just want the service response, call the RestoreDBInstanceToPointInTime method directly
  6623. // instead.
  6624. //
  6625. // Note: You must call the "Send" method on the returned request object in order
  6626. // to execute the request.
  6627. //
  6628. // // Example sending a request using the RestoreDBInstanceToPointInTimeRequest method.
  6629. // req, resp := client.RestoreDBInstanceToPointInTimeRequest(params)
  6630. //
  6631. // err := req.Send()
  6632. // if err == nil { // resp is now filled
  6633. // fmt.Println(resp)
  6634. // }
  6635. //
  6636. func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPointInTimeInput) (req *request.Request, output *RestoreDBInstanceToPointInTimeOutput) {
  6637. op := &request.Operation{
  6638. Name: opRestoreDBInstanceToPointInTime,
  6639. HTTPMethod: "POST",
  6640. HTTPPath: "/",
  6641. }
  6642. if input == nil {
  6643. input = &RestoreDBInstanceToPointInTimeInput{}
  6644. }
  6645. req = c.newRequest(op, input, output)
  6646. output = &RestoreDBInstanceToPointInTimeOutput{}
  6647. req.Data = output
  6648. return
  6649. }
  6650. // RestoreDBInstanceToPointInTime API operation for Amazon Relational Database Service.
  6651. //
  6652. // Restores a DB instance to an arbitrary point in time. You can restore to
  6653. // any point in time before the time identified by the LatestRestorableTime
  6654. // property. You can restore to a point up to the number of days specified by
  6655. // the BackupRetentionPeriod property.
  6656. //
  6657. // The target database is created with most of the original configuration, but
  6658. // in a system-selected availability zone, with the default security group,
  6659. // the default subnet group, and the default DB parameter group. By default,
  6660. // the new DB instance is created as a single-AZ deployment except when the
  6661. // instance is a SQL Server instance that has an option group that is associated
  6662. // with mirroring; in this case, the instance becomes a mirrored deployment
  6663. // and not a single-AZ deployment.
  6664. //
  6665. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6666. // with awserr.Error's Code and Message methods to get detailed information about
  6667. // the error.
  6668. //
  6669. // See the AWS API reference guide for Amazon Relational Database Service's
  6670. // API operation RestoreDBInstanceToPointInTime for usage and error information.
  6671. //
  6672. // Returned Error Codes:
  6673. // * DBInstanceAlreadyExists
  6674. // User already has a DB instance with the given identifier.
  6675. //
  6676. // * DBInstanceNotFound
  6677. // DBInstanceIdentifier does not refer to an existing DB instance.
  6678. //
  6679. // * InstanceQuotaExceeded
  6680. // Request would result in user exceeding the allowed number of DB instances.
  6681. //
  6682. // * InsufficientDBInstanceCapacity
  6683. // Specified DB instance class is not available in the specified Availability
  6684. // Zone.
  6685. //
  6686. // * InvalidDBInstanceState
  6687. // The specified DB instance is not in the available state.
  6688. //
  6689. // * PointInTimeRestoreNotEnabled
  6690. // SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod
  6691. // equal to 0.
  6692. //
  6693. // * StorageQuotaExceeded
  6694. // Request would result in user exceeding the allowed amount of storage available
  6695. // across all DB instances.
  6696. //
  6697. // * InvalidVPCNetworkStateFault
  6698. // DB subnet group does not cover all Availability Zones after it is created
  6699. // because users' change.
  6700. //
  6701. // * InvalidRestoreFault
  6702. // Cannot restore from vpc backup to non-vpc DB instance.
  6703. //
  6704. // * DBSubnetGroupNotFoundFault
  6705. // DBSubnetGroupName does not refer to an existing DB subnet group.
  6706. //
  6707. // * DBSubnetGroupDoesNotCoverEnoughAZs
  6708. // Subnets in the DB subnet group should cover at least two Availability Zones
  6709. // unless there is only one Availability Zone.
  6710. //
  6711. // * InvalidSubnet
  6712. // The requested subnet is invalid, or multiple subnets were requested that
  6713. // are not all in a common VPC.
  6714. //
  6715. // * ProvisionedIopsNotAvailableInAZFault
  6716. // Provisioned IOPS not available in the specified Availability Zone.
  6717. //
  6718. // * OptionGroupNotFoundFault
  6719. // The specified option group could not be found.
  6720. //
  6721. // * StorageTypeNotSupported
  6722. // StorageType specified cannot be associated with the DB Instance.
  6723. //
  6724. // * AuthorizationNotFound
  6725. // Specified CIDRIP or EC2 security group is not authorized for the specified
  6726. // DB security group.
  6727. //
  6728. // RDS may not also be authorized via IAM to perform necessary actions on your
  6729. // behalf.
  6730. //
  6731. // * KMSKeyNotAccessibleFault
  6732. // Error accessing KMS key.
  6733. //
  6734. // * DBSecurityGroupNotFound
  6735. // DBSecurityGroupName does not refer to an existing DB security group.
  6736. //
  6737. // * DomainNotFoundFault
  6738. // Domain does not refer to an existing Active Directory Domain.
  6739. //
  6740. func (c *RDS) RestoreDBInstanceToPointInTime(input *RestoreDBInstanceToPointInTimeInput) (*RestoreDBInstanceToPointInTimeOutput, error) {
  6741. req, out := c.RestoreDBInstanceToPointInTimeRequest(input)
  6742. err := req.Send()
  6743. return out, err
  6744. }
  6745. const opRevokeDBSecurityGroupIngress = "RevokeDBSecurityGroupIngress"
  6746. // RevokeDBSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  6747. // client's request for the RevokeDBSecurityGroupIngress operation. The "output" return
  6748. // value can be used to capture response data after the request's "Send" method
  6749. // is called.
  6750. //
  6751. // See RevokeDBSecurityGroupIngress for usage and error information.
  6752. //
  6753. // Creating a request object using this method should be used when you want to inject
  6754. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6755. // access properties on the request object before or after sending the request. If
  6756. // you just want the service response, call the RevokeDBSecurityGroupIngress method directly
  6757. // instead.
  6758. //
  6759. // Note: You must call the "Send" method on the returned request object in order
  6760. // to execute the request.
  6761. //
  6762. // // Example sending a request using the RevokeDBSecurityGroupIngressRequest method.
  6763. // req, resp := client.RevokeDBSecurityGroupIngressRequest(params)
  6764. //
  6765. // err := req.Send()
  6766. // if err == nil { // resp is now filled
  6767. // fmt.Println(resp)
  6768. // }
  6769. //
  6770. func (c *RDS) RevokeDBSecurityGroupIngressRequest(input *RevokeDBSecurityGroupIngressInput) (req *request.Request, output *RevokeDBSecurityGroupIngressOutput) {
  6771. op := &request.Operation{
  6772. Name: opRevokeDBSecurityGroupIngress,
  6773. HTTPMethod: "POST",
  6774. HTTPPath: "/",
  6775. }
  6776. if input == nil {
  6777. input = &RevokeDBSecurityGroupIngressInput{}
  6778. }
  6779. req = c.newRequest(op, input, output)
  6780. output = &RevokeDBSecurityGroupIngressOutput{}
  6781. req.Data = output
  6782. return
  6783. }
  6784. // RevokeDBSecurityGroupIngress API operation for Amazon Relational Database Service.
  6785. //
  6786. // Revokes ingress from a DBSecurityGroup for previously authorized IP ranges
  6787. // or EC2 or VPC Security Groups. Required parameters for this API are one of
  6788. // CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either
  6789. // EC2SecurityGroupName or EC2SecurityGroupId).
  6790. //
  6791. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6792. // with awserr.Error's Code and Message methods to get detailed information about
  6793. // the error.
  6794. //
  6795. // See the AWS API reference guide for Amazon Relational Database Service's
  6796. // API operation RevokeDBSecurityGroupIngress for usage and error information.
  6797. //
  6798. // Returned Error Codes:
  6799. // * DBSecurityGroupNotFound
  6800. // DBSecurityGroupName does not refer to an existing DB security group.
  6801. //
  6802. // * AuthorizationNotFound
  6803. // Specified CIDRIP or EC2 security group is not authorized for the specified
  6804. // DB security group.
  6805. //
  6806. // RDS may not also be authorized via IAM to perform necessary actions on your
  6807. // behalf.
  6808. //
  6809. // * InvalidDBSecurityGroupState
  6810. // The state of the DB security group does not allow deletion.
  6811. //
  6812. func (c *RDS) RevokeDBSecurityGroupIngress(input *RevokeDBSecurityGroupIngressInput) (*RevokeDBSecurityGroupIngressOutput, error) {
  6813. req, out := c.RevokeDBSecurityGroupIngressRequest(input)
  6814. err := req.Send()
  6815. return out, err
  6816. }
  6817. // Describes a quota for an AWS account, for example, the number of DB instances
  6818. // allowed.
  6819. type AccountQuota struct {
  6820. _ struct{} `type:"structure"`
  6821. // The name of the Amazon RDS quota for this AWS account.
  6822. AccountQuotaName *string `type:"string"`
  6823. // The maximum allowed value for the quota.
  6824. Max *int64 `type:"long"`
  6825. // The amount currently used toward the quota maximum.
  6826. Used *int64 `type:"long"`
  6827. }
  6828. // String returns the string representation
  6829. func (s AccountQuota) String() string {
  6830. return awsutil.Prettify(s)
  6831. }
  6832. // GoString returns the string representation
  6833. func (s AccountQuota) GoString() string {
  6834. return s.String()
  6835. }
  6836. type AddRoleToDBClusterInput struct {
  6837. _ struct{} `type:"structure"`
  6838. // The name of the DB cluster to associate the IAM role with.
  6839. //
  6840. // DBClusterIdentifier is a required field
  6841. DBClusterIdentifier *string `type:"string" required:"true"`
  6842. // The Amazon Resource Name (ARN) of the IAM role to associate with the Aurora
  6843. // DB cluster, for example arn:aws:iam::123456789012:role/AuroraAccessRole.
  6844. //
  6845. // RoleArn is a required field
  6846. RoleArn *string `type:"string" required:"true"`
  6847. }
  6848. // String returns the string representation
  6849. func (s AddRoleToDBClusterInput) String() string {
  6850. return awsutil.Prettify(s)
  6851. }
  6852. // GoString returns the string representation
  6853. func (s AddRoleToDBClusterInput) GoString() string {
  6854. return s.String()
  6855. }
  6856. // Validate inspects the fields of the type to determine if they are valid.
  6857. func (s *AddRoleToDBClusterInput) Validate() error {
  6858. invalidParams := request.ErrInvalidParams{Context: "AddRoleToDBClusterInput"}
  6859. if s.DBClusterIdentifier == nil {
  6860. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  6861. }
  6862. if s.RoleArn == nil {
  6863. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  6864. }
  6865. if invalidParams.Len() > 0 {
  6866. return invalidParams
  6867. }
  6868. return nil
  6869. }
  6870. type AddRoleToDBClusterOutput struct {
  6871. _ struct{} `type:"structure"`
  6872. }
  6873. // String returns the string representation
  6874. func (s AddRoleToDBClusterOutput) String() string {
  6875. return awsutil.Prettify(s)
  6876. }
  6877. // GoString returns the string representation
  6878. func (s AddRoleToDBClusterOutput) GoString() string {
  6879. return s.String()
  6880. }
  6881. type AddSourceIdentifierToSubscriptionInput struct {
  6882. _ struct{} `type:"structure"`
  6883. // The identifier of the event source to be added. An identifier must begin
  6884. // with a letter and must contain only ASCII letters, digits, and hyphens; it
  6885. // cannot end with a hyphen or contain two consecutive hyphens.
  6886. //
  6887. // Constraints:
  6888. //
  6889. // * If the source type is a DB instance, then a DBInstanceIdentifier must
  6890. // be supplied.
  6891. //
  6892. // * If the source type is a DB security group, a DBSecurityGroupName must
  6893. // be supplied.
  6894. //
  6895. // * If the source type is a DB parameter group, a DBParameterGroupName must
  6896. // be supplied.
  6897. //
  6898. // * If the source type is a DB snapshot, a DBSnapshotIdentifier must be
  6899. // supplied.
  6900. //
  6901. // SourceIdentifier is a required field
  6902. SourceIdentifier *string `type:"string" required:"true"`
  6903. // The name of the RDS event notification subscription you want to add a source
  6904. // identifier to.
  6905. //
  6906. // SubscriptionName is a required field
  6907. SubscriptionName *string `type:"string" required:"true"`
  6908. }
  6909. // String returns the string representation
  6910. func (s AddSourceIdentifierToSubscriptionInput) String() string {
  6911. return awsutil.Prettify(s)
  6912. }
  6913. // GoString returns the string representation
  6914. func (s AddSourceIdentifierToSubscriptionInput) GoString() string {
  6915. return s.String()
  6916. }
  6917. // Validate inspects the fields of the type to determine if they are valid.
  6918. func (s *AddSourceIdentifierToSubscriptionInput) Validate() error {
  6919. invalidParams := request.ErrInvalidParams{Context: "AddSourceIdentifierToSubscriptionInput"}
  6920. if s.SourceIdentifier == nil {
  6921. invalidParams.Add(request.NewErrParamRequired("SourceIdentifier"))
  6922. }
  6923. if s.SubscriptionName == nil {
  6924. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  6925. }
  6926. if invalidParams.Len() > 0 {
  6927. return invalidParams
  6928. }
  6929. return nil
  6930. }
  6931. type AddSourceIdentifierToSubscriptionOutput struct {
  6932. _ struct{} `type:"structure"`
  6933. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  6934. // action.
  6935. EventSubscription *EventSubscription `type:"structure"`
  6936. }
  6937. // String returns the string representation
  6938. func (s AddSourceIdentifierToSubscriptionOutput) String() string {
  6939. return awsutil.Prettify(s)
  6940. }
  6941. // GoString returns the string representation
  6942. func (s AddSourceIdentifierToSubscriptionOutput) GoString() string {
  6943. return s.String()
  6944. }
  6945. type AddTagsToResourceInput struct {
  6946. _ struct{} `type:"structure"`
  6947. // The Amazon RDS resource the tags will be added to. This value is an Amazon
  6948. // Resource Name (ARN). For information about creating an ARN, see Constructing
  6949. // an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing).
  6950. //
  6951. // ResourceName is a required field
  6952. ResourceName *string `type:"string" required:"true"`
  6953. // The tags to be assigned to the Amazon RDS resource.
  6954. //
  6955. // Tags is a required field
  6956. Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"`
  6957. }
  6958. // String returns the string representation
  6959. func (s AddTagsToResourceInput) String() string {
  6960. return awsutil.Prettify(s)
  6961. }
  6962. // GoString returns the string representation
  6963. func (s AddTagsToResourceInput) GoString() string {
  6964. return s.String()
  6965. }
  6966. // Validate inspects the fields of the type to determine if they are valid.
  6967. func (s *AddTagsToResourceInput) Validate() error {
  6968. invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
  6969. if s.ResourceName == nil {
  6970. invalidParams.Add(request.NewErrParamRequired("ResourceName"))
  6971. }
  6972. if s.Tags == nil {
  6973. invalidParams.Add(request.NewErrParamRequired("Tags"))
  6974. }
  6975. if invalidParams.Len() > 0 {
  6976. return invalidParams
  6977. }
  6978. return nil
  6979. }
  6980. type AddTagsToResourceOutput struct {
  6981. _ struct{} `type:"structure"`
  6982. }
  6983. // String returns the string representation
  6984. func (s AddTagsToResourceOutput) String() string {
  6985. return awsutil.Prettify(s)
  6986. }
  6987. // GoString returns the string representation
  6988. func (s AddTagsToResourceOutput) GoString() string {
  6989. return s.String()
  6990. }
  6991. type ApplyPendingMaintenanceActionInput struct {
  6992. _ struct{} `type:"structure"`
  6993. // The pending maintenance action to apply to this resource.
  6994. //
  6995. // Valid values: system-update, db-upgrade
  6996. //
  6997. // ApplyAction is a required field
  6998. ApplyAction *string `type:"string" required:"true"`
  6999. // A value that specifies the type of opt-in request, or undoes an opt-in request.
  7000. // An opt-in request of type immediate cannot be undone.
  7001. //
  7002. // Valid values:
  7003. //
  7004. // * immediate - Apply the maintenance action immediately.
  7005. //
  7006. // * next-maintenance - Apply the maintenance action during the next maintenance
  7007. // window for the resource.
  7008. //
  7009. // * undo-opt-in - Cancel any existing next-maintenance opt-in requests.
  7010. //
  7011. // OptInType is a required field
  7012. OptInType *string `type:"string" required:"true"`
  7013. // The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance
  7014. // action applies to. For information about creating an ARN, see Constructing
  7015. // an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing).
  7016. //
  7017. // ResourceIdentifier is a required field
  7018. ResourceIdentifier *string `type:"string" required:"true"`
  7019. }
  7020. // String returns the string representation
  7021. func (s ApplyPendingMaintenanceActionInput) String() string {
  7022. return awsutil.Prettify(s)
  7023. }
  7024. // GoString returns the string representation
  7025. func (s ApplyPendingMaintenanceActionInput) GoString() string {
  7026. return s.String()
  7027. }
  7028. // Validate inspects the fields of the type to determine if they are valid.
  7029. func (s *ApplyPendingMaintenanceActionInput) Validate() error {
  7030. invalidParams := request.ErrInvalidParams{Context: "ApplyPendingMaintenanceActionInput"}
  7031. if s.ApplyAction == nil {
  7032. invalidParams.Add(request.NewErrParamRequired("ApplyAction"))
  7033. }
  7034. if s.OptInType == nil {
  7035. invalidParams.Add(request.NewErrParamRequired("OptInType"))
  7036. }
  7037. if s.ResourceIdentifier == nil {
  7038. invalidParams.Add(request.NewErrParamRequired("ResourceIdentifier"))
  7039. }
  7040. if invalidParams.Len() > 0 {
  7041. return invalidParams
  7042. }
  7043. return nil
  7044. }
  7045. type ApplyPendingMaintenanceActionOutput struct {
  7046. _ struct{} `type:"structure"`
  7047. // Describes the pending maintenance actions for a resource.
  7048. ResourcePendingMaintenanceActions *ResourcePendingMaintenanceActions `type:"structure"`
  7049. }
  7050. // String returns the string representation
  7051. func (s ApplyPendingMaintenanceActionOutput) String() string {
  7052. return awsutil.Prettify(s)
  7053. }
  7054. // GoString returns the string representation
  7055. func (s ApplyPendingMaintenanceActionOutput) GoString() string {
  7056. return s.String()
  7057. }
  7058. type AuthorizeDBSecurityGroupIngressInput struct {
  7059. _ struct{} `type:"structure"`
  7060. // The IP range to authorize.
  7061. CIDRIP *string `type:"string"`
  7062. // The name of the DB security group to add authorization to.
  7063. //
  7064. // DBSecurityGroupName is a required field
  7065. DBSecurityGroupName *string `type:"string" required:"true"`
  7066. // Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId
  7067. // must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName
  7068. // or EC2SecurityGroupId must be provided.
  7069. EC2SecurityGroupId *string `type:"string"`
  7070. // Name of the EC2 security group to authorize. For VPC DB security groups,
  7071. // EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and
  7072. // either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
  7073. EC2SecurityGroupName *string `type:"string"`
  7074. // AWS account number of the owner of the EC2 security group specified in the
  7075. // EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable
  7076. // value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise,
  7077. // EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId
  7078. // must be provided.
  7079. EC2SecurityGroupOwnerId *string `type:"string"`
  7080. }
  7081. // String returns the string representation
  7082. func (s AuthorizeDBSecurityGroupIngressInput) String() string {
  7083. return awsutil.Prettify(s)
  7084. }
  7085. // GoString returns the string representation
  7086. func (s AuthorizeDBSecurityGroupIngressInput) GoString() string {
  7087. return s.String()
  7088. }
  7089. // Validate inspects the fields of the type to determine if they are valid.
  7090. func (s *AuthorizeDBSecurityGroupIngressInput) Validate() error {
  7091. invalidParams := request.ErrInvalidParams{Context: "AuthorizeDBSecurityGroupIngressInput"}
  7092. if s.DBSecurityGroupName == nil {
  7093. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName"))
  7094. }
  7095. if invalidParams.Len() > 0 {
  7096. return invalidParams
  7097. }
  7098. return nil
  7099. }
  7100. type AuthorizeDBSecurityGroupIngressOutput struct {
  7101. _ struct{} `type:"structure"`
  7102. // Contains the result of a successful invocation of the following actions:
  7103. //
  7104. // * DescribeDBSecurityGroups
  7105. //
  7106. // * AuthorizeDBSecurityGroupIngress
  7107. //
  7108. // * CreateDBSecurityGroup
  7109. //
  7110. // * RevokeDBSecurityGroupIngress
  7111. //
  7112. // This data type is used as a response element in the DescribeDBSecurityGroups
  7113. // action.
  7114. DBSecurityGroup *DBSecurityGroup `type:"structure"`
  7115. }
  7116. // String returns the string representation
  7117. func (s AuthorizeDBSecurityGroupIngressOutput) String() string {
  7118. return awsutil.Prettify(s)
  7119. }
  7120. // GoString returns the string representation
  7121. func (s AuthorizeDBSecurityGroupIngressOutput) GoString() string {
  7122. return s.String()
  7123. }
  7124. // Contains Availability Zone information.
  7125. //
  7126. // This data type is used as an element in the following data type:
  7127. //
  7128. // * OrderableDBInstanceOption
  7129. type AvailabilityZone struct {
  7130. _ struct{} `type:"structure"`
  7131. // The name of the availability zone.
  7132. Name *string `type:"string"`
  7133. }
  7134. // String returns the string representation
  7135. func (s AvailabilityZone) String() string {
  7136. return awsutil.Prettify(s)
  7137. }
  7138. // GoString returns the string representation
  7139. func (s AvailabilityZone) GoString() string {
  7140. return s.String()
  7141. }
  7142. // A CA certificate for an AWS account.
  7143. type Certificate struct {
  7144. _ struct{} `type:"structure"`
  7145. // The Amazon Resource Name (ARN) for the certificate.
  7146. CertificateArn *string `type:"string"`
  7147. // The unique key that identifies a certificate.
  7148. CertificateIdentifier *string `type:"string"`
  7149. // The type of the certificate.
  7150. CertificateType *string `type:"string"`
  7151. // The thumbprint of the certificate.
  7152. Thumbprint *string `type:"string"`
  7153. // The starting date from which the certificate is valid.
  7154. ValidFrom *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  7155. // The final date that the certificate continues to be valid.
  7156. ValidTill *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  7157. }
  7158. // String returns the string representation
  7159. func (s Certificate) String() string {
  7160. return awsutil.Prettify(s)
  7161. }
  7162. // GoString returns the string representation
  7163. func (s Certificate) GoString() string {
  7164. return s.String()
  7165. }
  7166. // This data type is used as a response element in the action DescribeDBEngineVersions.
  7167. type CharacterSet struct {
  7168. _ struct{} `type:"structure"`
  7169. // The description of the character set.
  7170. CharacterSetDescription *string `type:"string"`
  7171. // The name of the character set.
  7172. CharacterSetName *string `type:"string"`
  7173. }
  7174. // String returns the string representation
  7175. func (s CharacterSet) String() string {
  7176. return awsutil.Prettify(s)
  7177. }
  7178. // GoString returns the string representation
  7179. func (s CharacterSet) GoString() string {
  7180. return s.String()
  7181. }
  7182. type CopyDBClusterParameterGroupInput struct {
  7183. _ struct{} `type:"structure"`
  7184. // The identifier or Amazon Resource Name (ARN) for the source DB cluster parameter
  7185. // group. For information about creating an ARN, see Constructing an RDS Amazon
  7186. // Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing).
  7187. //
  7188. // Constraints:
  7189. //
  7190. // * Must specify a valid DB cluster parameter group.
  7191. //
  7192. // * If the source DB cluster parameter group is in the same region as the
  7193. // copy, specify a valid DB parameter group identifier, for example my-db-cluster-param-group,
  7194. // or a valid ARN.
  7195. //
  7196. // * If the source DB parameter group is in a different region than the copy,
  7197. // specify a valid DB cluster parameter group ARN, for example arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1.
  7198. //
  7199. // SourceDBClusterParameterGroupIdentifier is a required field
  7200. SourceDBClusterParameterGroupIdentifier *string `type:"string" required:"true"`
  7201. // A list of tags.
  7202. Tags []*Tag `locationNameList:"Tag" type:"list"`
  7203. // A description for the copied DB cluster parameter group.
  7204. //
  7205. // TargetDBClusterParameterGroupDescription is a required field
  7206. TargetDBClusterParameterGroupDescription *string `type:"string" required:"true"`
  7207. // The identifier for the copied DB cluster parameter group.
  7208. //
  7209. // Constraints:
  7210. //
  7211. // * Cannot be null, empty, or blank
  7212. //
  7213. // * Must contain from 1 to 255 alphanumeric characters or hyphens
  7214. //
  7215. // * First character must be a letter
  7216. //
  7217. // * Cannot end with a hyphen or contain two consecutive hyphens
  7218. //
  7219. // Example: my-cluster-param-group1
  7220. //
  7221. // TargetDBClusterParameterGroupIdentifier is a required field
  7222. TargetDBClusterParameterGroupIdentifier *string `type:"string" required:"true"`
  7223. }
  7224. // String returns the string representation
  7225. func (s CopyDBClusterParameterGroupInput) String() string {
  7226. return awsutil.Prettify(s)
  7227. }
  7228. // GoString returns the string representation
  7229. func (s CopyDBClusterParameterGroupInput) GoString() string {
  7230. return s.String()
  7231. }
  7232. // Validate inspects the fields of the type to determine if they are valid.
  7233. func (s *CopyDBClusterParameterGroupInput) Validate() error {
  7234. invalidParams := request.ErrInvalidParams{Context: "CopyDBClusterParameterGroupInput"}
  7235. if s.SourceDBClusterParameterGroupIdentifier == nil {
  7236. invalidParams.Add(request.NewErrParamRequired("SourceDBClusterParameterGroupIdentifier"))
  7237. }
  7238. if s.TargetDBClusterParameterGroupDescription == nil {
  7239. invalidParams.Add(request.NewErrParamRequired("TargetDBClusterParameterGroupDescription"))
  7240. }
  7241. if s.TargetDBClusterParameterGroupIdentifier == nil {
  7242. invalidParams.Add(request.NewErrParamRequired("TargetDBClusterParameterGroupIdentifier"))
  7243. }
  7244. if invalidParams.Len() > 0 {
  7245. return invalidParams
  7246. }
  7247. return nil
  7248. }
  7249. type CopyDBClusterParameterGroupOutput struct {
  7250. _ struct{} `type:"structure"`
  7251. // Contains the result of a successful invocation of the CreateDBClusterParameterGroup
  7252. // or CopyDBClusterParameterGroup action.
  7253. //
  7254. // This data type is used as a request parameter in the DeleteDBClusterParameterGroup
  7255. // action, and as a response element in the DescribeDBClusterParameterGroups
  7256. // action.
  7257. DBClusterParameterGroup *DBClusterParameterGroup `type:"structure"`
  7258. }
  7259. // String returns the string representation
  7260. func (s CopyDBClusterParameterGroupOutput) String() string {
  7261. return awsutil.Prettify(s)
  7262. }
  7263. // GoString returns the string representation
  7264. func (s CopyDBClusterParameterGroupOutput) GoString() string {
  7265. return s.String()
  7266. }
  7267. type CopyDBClusterSnapshotInput struct {
  7268. _ struct{} `type:"structure"`
  7269. // The identifier of the DB cluster snapshot to copy. This parameter is not
  7270. // case-sensitive.
  7271. //
  7272. // Constraints:
  7273. //
  7274. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  7275. //
  7276. // * First character must be a letter.
  7277. //
  7278. // * Cannot end with a hyphen or contain two consecutive hyphens.
  7279. //
  7280. // Example: my-cluster-snapshot1
  7281. //
  7282. // SourceDBClusterSnapshotIdentifier is a required field
  7283. SourceDBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  7284. // A list of tags.
  7285. Tags []*Tag `locationNameList:"Tag" type:"list"`
  7286. // The identifier of the new DB cluster snapshot to create from the source DB
  7287. // cluster snapshot. This parameter is not case-sensitive.
  7288. //
  7289. // Constraints:
  7290. //
  7291. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  7292. //
  7293. // * First character must be a letter.
  7294. //
  7295. // * Cannot end with a hyphen or contain two consecutive hyphens.
  7296. //
  7297. // Example: my-cluster-snapshot2
  7298. //
  7299. // TargetDBClusterSnapshotIdentifier is a required field
  7300. TargetDBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  7301. }
  7302. // String returns the string representation
  7303. func (s CopyDBClusterSnapshotInput) String() string {
  7304. return awsutil.Prettify(s)
  7305. }
  7306. // GoString returns the string representation
  7307. func (s CopyDBClusterSnapshotInput) GoString() string {
  7308. return s.String()
  7309. }
  7310. // Validate inspects the fields of the type to determine if they are valid.
  7311. func (s *CopyDBClusterSnapshotInput) Validate() error {
  7312. invalidParams := request.ErrInvalidParams{Context: "CopyDBClusterSnapshotInput"}
  7313. if s.SourceDBClusterSnapshotIdentifier == nil {
  7314. invalidParams.Add(request.NewErrParamRequired("SourceDBClusterSnapshotIdentifier"))
  7315. }
  7316. if s.TargetDBClusterSnapshotIdentifier == nil {
  7317. invalidParams.Add(request.NewErrParamRequired("TargetDBClusterSnapshotIdentifier"))
  7318. }
  7319. if invalidParams.Len() > 0 {
  7320. return invalidParams
  7321. }
  7322. return nil
  7323. }
  7324. type CopyDBClusterSnapshotOutput struct {
  7325. _ struct{} `type:"structure"`
  7326. // Contains the result of a successful invocation of the following actions:
  7327. //
  7328. // * CreateDBClusterSnapshot
  7329. //
  7330. // * DeleteDBClusterSnapshot
  7331. //
  7332. // This data type is used as a response element in the DescribeDBClusterSnapshots
  7333. // action.
  7334. DBClusterSnapshot *DBClusterSnapshot `type:"structure"`
  7335. }
  7336. // String returns the string representation
  7337. func (s CopyDBClusterSnapshotOutput) String() string {
  7338. return awsutil.Prettify(s)
  7339. }
  7340. // GoString returns the string representation
  7341. func (s CopyDBClusterSnapshotOutput) GoString() string {
  7342. return s.String()
  7343. }
  7344. type CopyDBParameterGroupInput struct {
  7345. _ struct{} `type:"structure"`
  7346. // The identifier or ARN for the source DB parameter group. For information
  7347. // about creating an ARN, see Constructing an RDS Amazon Resource Name (ARN)
  7348. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing).
  7349. //
  7350. // Constraints:
  7351. //
  7352. // * Must specify a valid DB parameter group.
  7353. //
  7354. // * Must specify a valid DB parameter group identifier, for example my-db-param-group,
  7355. // or a valid ARN.
  7356. //
  7357. // SourceDBParameterGroupIdentifier is a required field
  7358. SourceDBParameterGroupIdentifier *string `type:"string" required:"true"`
  7359. // A list of tags.
  7360. Tags []*Tag `locationNameList:"Tag" type:"list"`
  7361. // A description for the copied DB parameter group.
  7362. //
  7363. // TargetDBParameterGroupDescription is a required field
  7364. TargetDBParameterGroupDescription *string `type:"string" required:"true"`
  7365. // The identifier for the copied DB parameter group.
  7366. //
  7367. // Constraints:
  7368. //
  7369. // * Cannot be null, empty, or blank
  7370. //
  7371. // * Must contain from 1 to 255 alphanumeric characters or hyphens
  7372. //
  7373. // * First character must be a letter
  7374. //
  7375. // * Cannot end with a hyphen or contain two consecutive hyphens
  7376. //
  7377. // Example: my-db-parameter-group
  7378. //
  7379. // TargetDBParameterGroupIdentifier is a required field
  7380. TargetDBParameterGroupIdentifier *string `type:"string" required:"true"`
  7381. }
  7382. // String returns the string representation
  7383. func (s CopyDBParameterGroupInput) String() string {
  7384. return awsutil.Prettify(s)
  7385. }
  7386. // GoString returns the string representation
  7387. func (s CopyDBParameterGroupInput) GoString() string {
  7388. return s.String()
  7389. }
  7390. // Validate inspects the fields of the type to determine if they are valid.
  7391. func (s *CopyDBParameterGroupInput) Validate() error {
  7392. invalidParams := request.ErrInvalidParams{Context: "CopyDBParameterGroupInput"}
  7393. if s.SourceDBParameterGroupIdentifier == nil {
  7394. invalidParams.Add(request.NewErrParamRequired("SourceDBParameterGroupIdentifier"))
  7395. }
  7396. if s.TargetDBParameterGroupDescription == nil {
  7397. invalidParams.Add(request.NewErrParamRequired("TargetDBParameterGroupDescription"))
  7398. }
  7399. if s.TargetDBParameterGroupIdentifier == nil {
  7400. invalidParams.Add(request.NewErrParamRequired("TargetDBParameterGroupIdentifier"))
  7401. }
  7402. if invalidParams.Len() > 0 {
  7403. return invalidParams
  7404. }
  7405. return nil
  7406. }
  7407. type CopyDBParameterGroupOutput struct {
  7408. _ struct{} `type:"structure"`
  7409. // Contains the result of a successful invocation of the CreateDBParameterGroup
  7410. // action.
  7411. //
  7412. // This data type is used as a request parameter in the DeleteDBParameterGroup
  7413. // action, and as a response element in the DescribeDBParameterGroups action.
  7414. DBParameterGroup *DBParameterGroup `type:"structure"`
  7415. }
  7416. // String returns the string representation
  7417. func (s CopyDBParameterGroupOutput) String() string {
  7418. return awsutil.Prettify(s)
  7419. }
  7420. // GoString returns the string representation
  7421. func (s CopyDBParameterGroupOutput) GoString() string {
  7422. return s.String()
  7423. }
  7424. type CopyDBSnapshotInput struct {
  7425. _ struct{} `type:"structure"`
  7426. // True to copy all tags from the source DB snapshot to the target DB snapshot;
  7427. // otherwise false. The default is false.
  7428. CopyTags *bool `type:"boolean"`
  7429. // The AWS Key Management Service (AWS KMS) key identifier for an encrypted
  7430. // DB snapshot. The KMS key identifier is the Amazon Resource Name (ARN) or
  7431. // the KMS key alias for the KMS encryption key.
  7432. //
  7433. // If you copy an unencrypted DB snapshot and specify a value for the KmsKeyId
  7434. // parameter, Amazon RDS encrypts the target DB snapshot using the specified
  7435. // KMS encryption key.
  7436. //
  7437. // If you copy an encrypted DB snapshot from your AWS account, you can specify
  7438. // a value for KmsKeyId to encrypt the copy with a new KMS encryption key. If
  7439. // you don't specify a value for KmsKeyId then the copy of the DB snapshot is
  7440. // encrypted with the same KMS key as the source DB snapshot.
  7441. //
  7442. // If you copy an encrypted DB snapshot that is shared from another AWS account,
  7443. // then you must specify a value for KmsKeyId.
  7444. KmsKeyId *string `type:"string"`
  7445. // The identifier for the source DB snapshot.
  7446. //
  7447. // If you are copying from a shared manual DB snapshot, this must be the ARN
  7448. // of the shared DB snapshot.
  7449. //
  7450. // Constraints:
  7451. //
  7452. // * Must specify a valid system snapshot in the "available" state.
  7453. //
  7454. // * If the source snapshot is in the same region as the copy, specify a
  7455. // valid DB snapshot identifier.
  7456. //
  7457. // * If the source snapshot is in a different region than the copy, specify
  7458. // a valid DB snapshot ARN. For more information, go to Copying a DB Snapshot
  7459. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html).
  7460. //
  7461. // Example: rds:mydb-2012-04-02-00-01
  7462. //
  7463. // Example: arn:aws:rds:rr-regn-1:123456789012:snapshot:mysql-instance1-snapshot-20130805
  7464. //
  7465. // SourceDBSnapshotIdentifier is a required field
  7466. SourceDBSnapshotIdentifier *string `type:"string" required:"true"`
  7467. // A list of tags.
  7468. Tags []*Tag `locationNameList:"Tag" type:"list"`
  7469. // The identifier for the copied snapshot.
  7470. //
  7471. // Constraints:
  7472. //
  7473. // * Cannot be null, empty, or blank
  7474. //
  7475. // * Must contain from 1 to 255 alphanumeric characters or hyphens
  7476. //
  7477. // * First character must be a letter
  7478. //
  7479. // * Cannot end with a hyphen or contain two consecutive hyphens
  7480. //
  7481. // Example: my-db-snapshot
  7482. //
  7483. // TargetDBSnapshotIdentifier is a required field
  7484. TargetDBSnapshotIdentifier *string `type:"string" required:"true"`
  7485. }
  7486. // String returns the string representation
  7487. func (s CopyDBSnapshotInput) String() string {
  7488. return awsutil.Prettify(s)
  7489. }
  7490. // GoString returns the string representation
  7491. func (s CopyDBSnapshotInput) GoString() string {
  7492. return s.String()
  7493. }
  7494. // Validate inspects the fields of the type to determine if they are valid.
  7495. func (s *CopyDBSnapshotInput) Validate() error {
  7496. invalidParams := request.ErrInvalidParams{Context: "CopyDBSnapshotInput"}
  7497. if s.SourceDBSnapshotIdentifier == nil {
  7498. invalidParams.Add(request.NewErrParamRequired("SourceDBSnapshotIdentifier"))
  7499. }
  7500. if s.TargetDBSnapshotIdentifier == nil {
  7501. invalidParams.Add(request.NewErrParamRequired("TargetDBSnapshotIdentifier"))
  7502. }
  7503. if invalidParams.Len() > 0 {
  7504. return invalidParams
  7505. }
  7506. return nil
  7507. }
  7508. type CopyDBSnapshotOutput struct {
  7509. _ struct{} `type:"structure"`
  7510. // Contains the result of a successful invocation of the following actions:
  7511. //
  7512. // * CreateDBSnapshot
  7513. //
  7514. // * DeleteDBSnapshot
  7515. //
  7516. // This data type is used as a response element in the DescribeDBSnapshots action.
  7517. DBSnapshot *DBSnapshot `type:"structure"`
  7518. }
  7519. // String returns the string representation
  7520. func (s CopyDBSnapshotOutput) String() string {
  7521. return awsutil.Prettify(s)
  7522. }
  7523. // GoString returns the string representation
  7524. func (s CopyDBSnapshotOutput) GoString() string {
  7525. return s.String()
  7526. }
  7527. type CopyOptionGroupInput struct {
  7528. _ struct{} `type:"structure"`
  7529. // The identifier or ARN for the source option group. For information about
  7530. // creating an ARN, see Constructing an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing).
  7531. //
  7532. // Constraints:
  7533. //
  7534. // * Must specify a valid option group.
  7535. //
  7536. // * If the source option group is in the same region as the copy, specify
  7537. // a valid option group identifier, for example my-option-group, or a valid
  7538. // ARN.
  7539. //
  7540. // * If the source option group is in a different region than the copy, specify
  7541. // a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options.
  7542. //
  7543. // SourceOptionGroupIdentifier is a required field
  7544. SourceOptionGroupIdentifier *string `type:"string" required:"true"`
  7545. // A list of tags.
  7546. Tags []*Tag `locationNameList:"Tag" type:"list"`
  7547. // The description for the copied option group.
  7548. //
  7549. // TargetOptionGroupDescription is a required field
  7550. TargetOptionGroupDescription *string `type:"string" required:"true"`
  7551. // The identifier for the copied option group.
  7552. //
  7553. // Constraints:
  7554. //
  7555. // * Cannot be null, empty, or blank
  7556. //
  7557. // * Must contain from 1 to 255 alphanumeric characters or hyphens
  7558. //
  7559. // * First character must be a letter
  7560. //
  7561. // * Cannot end with a hyphen or contain two consecutive hyphens
  7562. //
  7563. // Example: my-option-group
  7564. //
  7565. // TargetOptionGroupIdentifier is a required field
  7566. TargetOptionGroupIdentifier *string `type:"string" required:"true"`
  7567. }
  7568. // String returns the string representation
  7569. func (s CopyOptionGroupInput) String() string {
  7570. return awsutil.Prettify(s)
  7571. }
  7572. // GoString returns the string representation
  7573. func (s CopyOptionGroupInput) GoString() string {
  7574. return s.String()
  7575. }
  7576. // Validate inspects the fields of the type to determine if they are valid.
  7577. func (s *CopyOptionGroupInput) Validate() error {
  7578. invalidParams := request.ErrInvalidParams{Context: "CopyOptionGroupInput"}
  7579. if s.SourceOptionGroupIdentifier == nil {
  7580. invalidParams.Add(request.NewErrParamRequired("SourceOptionGroupIdentifier"))
  7581. }
  7582. if s.TargetOptionGroupDescription == nil {
  7583. invalidParams.Add(request.NewErrParamRequired("TargetOptionGroupDescription"))
  7584. }
  7585. if s.TargetOptionGroupIdentifier == nil {
  7586. invalidParams.Add(request.NewErrParamRequired("TargetOptionGroupIdentifier"))
  7587. }
  7588. if invalidParams.Len() > 0 {
  7589. return invalidParams
  7590. }
  7591. return nil
  7592. }
  7593. type CopyOptionGroupOutput struct {
  7594. _ struct{} `type:"structure"`
  7595. OptionGroup *OptionGroup `type:"structure"`
  7596. }
  7597. // String returns the string representation
  7598. func (s CopyOptionGroupOutput) String() string {
  7599. return awsutil.Prettify(s)
  7600. }
  7601. // GoString returns the string representation
  7602. func (s CopyOptionGroupOutput) GoString() string {
  7603. return s.String()
  7604. }
  7605. type CreateDBClusterInput struct {
  7606. _ struct{} `type:"structure"`
  7607. // A list of EC2 Availability Zones that instances in the DB cluster can be
  7608. // created in. For information on regions and Availability Zones, see Regions
  7609. // and Availability Zones (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
  7610. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  7611. // The number of days for which automated backups are retained. You must specify
  7612. // a minimum value of 1.
  7613. //
  7614. // Default: 1
  7615. //
  7616. // Constraints:
  7617. //
  7618. // * Must be a value from 1 to 35
  7619. BackupRetentionPeriod *int64 `type:"integer"`
  7620. // A value that indicates that the DB cluster should be associated with the
  7621. // specified CharacterSet.
  7622. CharacterSetName *string `type:"string"`
  7623. // The DB cluster identifier. This parameter is stored as a lowercase string.
  7624. //
  7625. // Constraints:
  7626. //
  7627. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  7628. //
  7629. // * First character must be a letter.
  7630. //
  7631. // * Cannot end with a hyphen or contain two consecutive hyphens.
  7632. //
  7633. // Example: my-cluster1
  7634. //
  7635. // DBClusterIdentifier is a required field
  7636. DBClusterIdentifier *string `type:"string" required:"true"`
  7637. // The name of the DB cluster parameter group to associate with this DB cluster.
  7638. // If this argument is omitted, default.aurora5.6 will be used.
  7639. //
  7640. // Constraints:
  7641. //
  7642. // * Must be 1 to 255 alphanumeric characters
  7643. //
  7644. // * First character must be a letter
  7645. //
  7646. // * Cannot end with a hyphen or contain two consecutive hyphens
  7647. DBClusterParameterGroupName *string `type:"string"`
  7648. // A DB subnet group to associate with this DB cluster.
  7649. //
  7650. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  7651. // underscores, spaces, or hyphens. Must not be default.
  7652. //
  7653. // Example: mySubnetgroup
  7654. DBSubnetGroupName *string `type:"string"`
  7655. // The name for your database of up to 8 alpha-numeric characters. If you do
  7656. // not provide a name, Amazon RDS will not create a database in the DB cluster
  7657. // you are creating.
  7658. DatabaseName *string `type:"string"`
  7659. // The name of the database engine to be used for this DB cluster.
  7660. //
  7661. // Valid Values: aurora
  7662. //
  7663. // Engine is a required field
  7664. Engine *string `type:"string" required:"true"`
  7665. // The version number of the database engine to use.
  7666. //
  7667. // Aurora
  7668. //
  7669. // Example: 5.6.10a
  7670. EngineVersion *string `type:"string"`
  7671. // The KMS key identifier for an encrypted DB cluster.
  7672. //
  7673. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  7674. // key. If you are creating a DB cluster with the same AWS account that owns
  7675. // the KMS encryption key used to encrypt the new DB cluster, then you can use
  7676. // the KMS key alias instead of the ARN for the KM encryption key.
  7677. //
  7678. // If the StorageEncrypted parameter is true, and you do not specify a value
  7679. // for the KmsKeyId parameter, then Amazon RDS will use your default encryption
  7680. // key. AWS KMS creates the default encryption key for your AWS account. Your
  7681. // AWS account has a different default encryption key for each AWS region.
  7682. KmsKeyId *string `type:"string"`
  7683. // The password for the master database user. This password can contain any
  7684. // printable ASCII character except "/", """, or "@".
  7685. //
  7686. // Constraints: Must contain from 8 to 41 characters.
  7687. MasterUserPassword *string `type:"string"`
  7688. // The name of the master user for the DB cluster.
  7689. //
  7690. // Constraints:
  7691. //
  7692. // * Must be 1 to 16 alphanumeric characters.
  7693. //
  7694. // * First character must be a letter.
  7695. //
  7696. // * Cannot be a reserved word for the chosen database engine.
  7697. MasterUsername *string `type:"string"`
  7698. // A value that indicates that the DB cluster should be associated with the
  7699. // specified option group.
  7700. //
  7701. // Permanent options cannot be removed from an option group. The option group
  7702. // cannot be removed from a DB cluster once it is associated with a DB cluster.
  7703. OptionGroupName *string `type:"string"`
  7704. // The port number on which the instances in the DB cluster accept connections.
  7705. //
  7706. // Default: 3306
  7707. Port *int64 `type:"integer"`
  7708. // The daily time range during which automated backups are created if automated
  7709. // backups are enabled using the BackupRetentionPeriod parameter.
  7710. //
  7711. // Default: A 30-minute window selected at random from an 8-hour block of time
  7712. // per region. To see the time blocks available, see Adjusting the Preferred
  7713. // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  7714. // in the Amazon RDS User Guide.
  7715. //
  7716. // Constraints:
  7717. //
  7718. // * Must be in the format hh24:mi-hh24:mi.
  7719. //
  7720. // * Times should be in Universal Coordinated Time (UTC).
  7721. //
  7722. // * Must not conflict with the preferred maintenance window.
  7723. //
  7724. // * Must be at least 30 minutes.
  7725. PreferredBackupWindow *string `type:"string"`
  7726. // The weekly time range during which system maintenance can occur, in Universal
  7727. // Coordinated Time (UTC).
  7728. //
  7729. // Format: ddd:hh24:mi-ddd:hh24:mi
  7730. //
  7731. // Default: A 30-minute window selected at random from an 8-hour block of time
  7732. // per region, occurring on a random day of the week. To see the time blocks
  7733. // available, see Adjusting the Preferred Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  7734. // in the Amazon RDS User Guide.
  7735. //
  7736. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  7737. //
  7738. // Constraints: Minimum 30-minute window.
  7739. PreferredMaintenanceWindow *string `type:"string"`
  7740. // The Amazon Resource Name (ARN) of the source DB cluster if this DB cluster
  7741. // is created as a Read Replica.
  7742. ReplicationSourceIdentifier *string `type:"string"`
  7743. // Specifies whether the DB cluster is encrypted.
  7744. StorageEncrypted *bool `type:"boolean"`
  7745. // A list of tags.
  7746. Tags []*Tag `locationNameList:"Tag" type:"list"`
  7747. // A list of EC2 VPC security groups to associate with this DB cluster.
  7748. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  7749. }
  7750. // String returns the string representation
  7751. func (s CreateDBClusterInput) String() string {
  7752. return awsutil.Prettify(s)
  7753. }
  7754. // GoString returns the string representation
  7755. func (s CreateDBClusterInput) GoString() string {
  7756. return s.String()
  7757. }
  7758. // Validate inspects the fields of the type to determine if they are valid.
  7759. func (s *CreateDBClusterInput) Validate() error {
  7760. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterInput"}
  7761. if s.DBClusterIdentifier == nil {
  7762. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  7763. }
  7764. if s.Engine == nil {
  7765. invalidParams.Add(request.NewErrParamRequired("Engine"))
  7766. }
  7767. if invalidParams.Len() > 0 {
  7768. return invalidParams
  7769. }
  7770. return nil
  7771. }
  7772. type CreateDBClusterOutput struct {
  7773. _ struct{} `type:"structure"`
  7774. // Contains the result of a successful invocation of the following actions:
  7775. //
  7776. // * CreateDBCluster
  7777. //
  7778. // * DeleteDBCluster
  7779. //
  7780. // * FailoverDBCluster
  7781. //
  7782. // * ModifyDBCluster
  7783. //
  7784. // * RestoreDBClusterFromSnapshot
  7785. //
  7786. // * RestoreDBClusterToPointInTime
  7787. //
  7788. // This data type is used as a response element in the DescribeDBClusters action.
  7789. DBCluster *DBCluster `type:"structure"`
  7790. }
  7791. // String returns the string representation
  7792. func (s CreateDBClusterOutput) String() string {
  7793. return awsutil.Prettify(s)
  7794. }
  7795. // GoString returns the string representation
  7796. func (s CreateDBClusterOutput) GoString() string {
  7797. return s.String()
  7798. }
  7799. type CreateDBClusterParameterGroupInput struct {
  7800. _ struct{} `type:"structure"`
  7801. // The name of the DB cluster parameter group.
  7802. //
  7803. // Constraints:
  7804. //
  7805. // * Must be 1 to 255 alphanumeric characters
  7806. //
  7807. // * First character must be a letter
  7808. //
  7809. // * Cannot end with a hyphen or contain two consecutive hyphens
  7810. //
  7811. // This value is stored as a lowercase string.
  7812. //
  7813. // DBClusterParameterGroupName is a required field
  7814. DBClusterParameterGroupName *string `type:"string" required:"true"`
  7815. // The DB cluster parameter group family name. A DB cluster parameter group
  7816. // can be associated with one and only one DB cluster parameter group family,
  7817. // and can be applied only to a DB cluster running a database engine and engine
  7818. // version compatible with that DB cluster parameter group family.
  7819. //
  7820. // DBParameterGroupFamily is a required field
  7821. DBParameterGroupFamily *string `type:"string" required:"true"`
  7822. // The description for the DB cluster parameter group.
  7823. //
  7824. // Description is a required field
  7825. Description *string `type:"string" required:"true"`
  7826. // A list of tags.
  7827. Tags []*Tag `locationNameList:"Tag" type:"list"`
  7828. }
  7829. // String returns the string representation
  7830. func (s CreateDBClusterParameterGroupInput) String() string {
  7831. return awsutil.Prettify(s)
  7832. }
  7833. // GoString returns the string representation
  7834. func (s CreateDBClusterParameterGroupInput) GoString() string {
  7835. return s.String()
  7836. }
  7837. // Validate inspects the fields of the type to determine if they are valid.
  7838. func (s *CreateDBClusterParameterGroupInput) Validate() error {
  7839. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterParameterGroupInput"}
  7840. if s.DBClusterParameterGroupName == nil {
  7841. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  7842. }
  7843. if s.DBParameterGroupFamily == nil {
  7844. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  7845. }
  7846. if s.Description == nil {
  7847. invalidParams.Add(request.NewErrParamRequired("Description"))
  7848. }
  7849. if invalidParams.Len() > 0 {
  7850. return invalidParams
  7851. }
  7852. return nil
  7853. }
  7854. type CreateDBClusterParameterGroupOutput struct {
  7855. _ struct{} `type:"structure"`
  7856. // Contains the result of a successful invocation of the CreateDBClusterParameterGroup
  7857. // or CopyDBClusterParameterGroup action.
  7858. //
  7859. // This data type is used as a request parameter in the DeleteDBClusterParameterGroup
  7860. // action, and as a response element in the DescribeDBClusterParameterGroups
  7861. // action.
  7862. DBClusterParameterGroup *DBClusterParameterGroup `type:"structure"`
  7863. }
  7864. // String returns the string representation
  7865. func (s CreateDBClusterParameterGroupOutput) String() string {
  7866. return awsutil.Prettify(s)
  7867. }
  7868. // GoString returns the string representation
  7869. func (s CreateDBClusterParameterGroupOutput) GoString() string {
  7870. return s.String()
  7871. }
  7872. type CreateDBClusterSnapshotInput struct {
  7873. _ struct{} `type:"structure"`
  7874. // The identifier of the DB cluster to create a snapshot for. This parameter
  7875. // is not case-sensitive.
  7876. //
  7877. // Constraints:
  7878. //
  7879. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  7880. //
  7881. // * First character must be a letter.
  7882. //
  7883. // * Cannot end with a hyphen or contain two consecutive hyphens.
  7884. //
  7885. // Example: my-cluster1
  7886. //
  7887. // DBClusterIdentifier is a required field
  7888. DBClusterIdentifier *string `type:"string" required:"true"`
  7889. // The identifier of the DB cluster snapshot. This parameter is stored as a
  7890. // lowercase string.
  7891. //
  7892. // Constraints:
  7893. //
  7894. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  7895. //
  7896. // * First character must be a letter.
  7897. //
  7898. // * Cannot end with a hyphen or contain two consecutive hyphens.
  7899. //
  7900. // Example: my-cluster1-snapshot1
  7901. //
  7902. // DBClusterSnapshotIdentifier is a required field
  7903. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  7904. // The tags to be assigned to the DB cluster snapshot.
  7905. Tags []*Tag `locationNameList:"Tag" type:"list"`
  7906. }
  7907. // String returns the string representation
  7908. func (s CreateDBClusterSnapshotInput) String() string {
  7909. return awsutil.Prettify(s)
  7910. }
  7911. // GoString returns the string representation
  7912. func (s CreateDBClusterSnapshotInput) GoString() string {
  7913. return s.String()
  7914. }
  7915. // Validate inspects the fields of the type to determine if they are valid.
  7916. func (s *CreateDBClusterSnapshotInput) Validate() error {
  7917. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterSnapshotInput"}
  7918. if s.DBClusterIdentifier == nil {
  7919. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  7920. }
  7921. if s.DBClusterSnapshotIdentifier == nil {
  7922. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  7923. }
  7924. if invalidParams.Len() > 0 {
  7925. return invalidParams
  7926. }
  7927. return nil
  7928. }
  7929. type CreateDBClusterSnapshotOutput struct {
  7930. _ struct{} `type:"structure"`
  7931. // Contains the result of a successful invocation of the following actions:
  7932. //
  7933. // * CreateDBClusterSnapshot
  7934. //
  7935. // * DeleteDBClusterSnapshot
  7936. //
  7937. // This data type is used as a response element in the DescribeDBClusterSnapshots
  7938. // action.
  7939. DBClusterSnapshot *DBClusterSnapshot `type:"structure"`
  7940. }
  7941. // String returns the string representation
  7942. func (s CreateDBClusterSnapshotOutput) String() string {
  7943. return awsutil.Prettify(s)
  7944. }
  7945. // GoString returns the string representation
  7946. func (s CreateDBClusterSnapshotOutput) GoString() string {
  7947. return s.String()
  7948. }
  7949. type CreateDBInstanceInput struct {
  7950. _ struct{} `type:"structure"`
  7951. // The amount of storage (in gigabytes) to be initially allocated for the database
  7952. // instance.
  7953. //
  7954. // Type: Integer
  7955. //
  7956. // MySQL
  7957. //
  7958. // Constraints: Must be an integer from 5 to 6144.
  7959. //
  7960. // MariaDB
  7961. //
  7962. // Constraints: Must be an integer from 5 to 6144.
  7963. //
  7964. // PostgreSQL
  7965. //
  7966. // Constraints: Must be an integer from 5 to 6144.
  7967. //
  7968. // Oracle
  7969. //
  7970. // Constraints: Must be an integer from 10 to 6144.
  7971. //
  7972. // SQL Server
  7973. //
  7974. // Constraints: Must be an integer from 200 to 4096 (Standard Edition and Enterprise
  7975. // Edition) or from 20 to 4096 (Express Edition and Web Edition)
  7976. AllocatedStorage *int64 `type:"integer"`
  7977. // Indicates that minor engine upgrades will be applied automatically to the
  7978. // DB instance during the maintenance window.
  7979. //
  7980. // Default: true
  7981. AutoMinorVersionUpgrade *bool `type:"boolean"`
  7982. // The EC2 Availability Zone that the database instance will be created in.
  7983. // For information on regions and Availability Zones, see Regions and Availability
  7984. // Zones (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
  7985. //
  7986. // Default: A random, system-chosen Availability Zone in the endpoint's region.
  7987. //
  7988. // Example: us-east-1d
  7989. //
  7990. // Constraint: The AvailabilityZone parameter cannot be specified if the MultiAZ
  7991. // parameter is set to true. The specified Availability Zone must be in the
  7992. // same region as the current endpoint.
  7993. AvailabilityZone *string `type:"string"`
  7994. // The number of days for which automated backups are retained. Setting this
  7995. // parameter to a positive number enables backups. Setting this parameter to
  7996. // 0 disables automated backups.
  7997. //
  7998. // Default: 1
  7999. //
  8000. // Constraints:
  8001. //
  8002. // * Must be a value from 0 to 35
  8003. //
  8004. // * Cannot be set to 0 if the DB instance is a source to Read Replicas
  8005. BackupRetentionPeriod *int64 `type:"integer"`
  8006. // For supported engines, indicates that the DB instance should be associated
  8007. // with the specified CharacterSet.
  8008. CharacterSetName *string `type:"string"`
  8009. // True to copy all tags from the DB instance to snapshots of the DB instance;
  8010. // otherwise false. The default is false.
  8011. CopyTagsToSnapshot *bool `type:"boolean"`
  8012. // The identifier of the DB cluster that the instance will belong to.
  8013. //
  8014. // For information on creating a DB cluster, see CreateDBCluster.
  8015. //
  8016. // Type: String
  8017. DBClusterIdentifier *string `type:"string"`
  8018. // The compute and memory capacity of the DB instance.
  8019. //
  8020. // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge
  8021. // | db.m2.xlarge |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large
  8022. // | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge
  8023. // | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge
  8024. // | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium
  8025. // | db.t2.large
  8026. //
  8027. // DBInstanceClass is a required field
  8028. DBInstanceClass *string `type:"string" required:"true"`
  8029. // The DB instance identifier. This parameter is stored as a lowercase string.
  8030. //
  8031. // Constraints:
  8032. //
  8033. // * Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15
  8034. // for SQL Server).
  8035. //
  8036. // * First character must be a letter.
  8037. //
  8038. // * Cannot end with a hyphen or contain two consecutive hyphens.
  8039. //
  8040. // Example: mydbinstance
  8041. //
  8042. // DBInstanceIdentifier is a required field
  8043. DBInstanceIdentifier *string `type:"string" required:"true"`
  8044. // The meaning of this parameter differs according to the database engine you
  8045. // use.
  8046. //
  8047. // Type: String
  8048. //
  8049. // MySQL
  8050. //
  8051. // The name of the database to create when the DB instance is created. If this
  8052. // parameter is not specified, no database is created in the DB instance.
  8053. //
  8054. // Constraints:
  8055. //
  8056. // * Must contain 1 to 64 alphanumeric characters
  8057. //
  8058. // * Cannot be a word reserved by the specified database engine
  8059. //
  8060. // MariaDB
  8061. //
  8062. // The name of the database to create when the DB instance is created. If this
  8063. // parameter is not specified, no database is created in the DB instance.
  8064. //
  8065. // Constraints:
  8066. //
  8067. // * Must contain 1 to 64 alphanumeric characters
  8068. //
  8069. // * Cannot be a word reserved by the specified database engine
  8070. //
  8071. // PostgreSQL
  8072. //
  8073. // The name of the database to create when the DB instance is created. If this
  8074. // parameter is not specified, the default "postgres" database is created in
  8075. // the DB instance.
  8076. //
  8077. // Constraints:
  8078. //
  8079. // * Must contain 1 to 63 alphanumeric characters
  8080. //
  8081. // * Must begin with a letter or an underscore. Subsequent characters can
  8082. // be letters, underscores, or digits (0-9).
  8083. //
  8084. // * Cannot be a word reserved by the specified database engine
  8085. //
  8086. // Oracle
  8087. //
  8088. // The Oracle System ID (SID) of the created DB instance.
  8089. //
  8090. // Default: ORCL
  8091. //
  8092. // Constraints:
  8093. //
  8094. // * Cannot be longer than 8 characters
  8095. //
  8096. // SQL Server
  8097. //
  8098. // Not applicable. Must be null.
  8099. //
  8100. // Amazon Aurora
  8101. //
  8102. // The name of the database to create when the primary instance of the DB cluster
  8103. // is created. If this parameter is not specified, no database is created in
  8104. // the DB instance.
  8105. //
  8106. // Constraints:
  8107. //
  8108. // * Must contain 1 to 64 alphanumeric characters
  8109. //
  8110. // * Cannot be a word reserved by the specified database engine
  8111. DBName *string `type:"string"`
  8112. // The name of the DB parameter group to associate with this DB instance. If
  8113. // this argument is omitted, the default DBParameterGroup for the specified
  8114. // engine will be used.
  8115. //
  8116. // Constraints:
  8117. //
  8118. // * Must be 1 to 255 alphanumeric characters
  8119. //
  8120. // * First character must be a letter
  8121. //
  8122. // * Cannot end with a hyphen or contain two consecutive hyphens
  8123. DBParameterGroupName *string `type:"string"`
  8124. // A list of DB security groups to associate with this DB instance.
  8125. //
  8126. // Default: The default DB security group for the database engine.
  8127. DBSecurityGroups []*string `locationNameList:"DBSecurityGroupName" type:"list"`
  8128. // A DB subnet group to associate with this DB instance.
  8129. //
  8130. // If there is no DB subnet group, then it is a non-VPC DB instance.
  8131. DBSubnetGroupName *string `type:"string"`
  8132. // Specify the Active Directory Domain to create the instance in.
  8133. Domain *string `type:"string"`
  8134. // Specify the name of the IAM role to be used when making API calls to the
  8135. // Directory Service.
  8136. DomainIAMRoleName *string `type:"string"`
  8137. // The name of the database engine to be used for this instance.
  8138. //
  8139. // Valid Values: mysql | mariadb | oracle-se1 | oracle-se2 | oracle-se | oracle-ee
  8140. // | sqlserver-ee | sqlserver-se | sqlserver-ex | sqlserver-web | postgres |
  8141. // aurora
  8142. //
  8143. // Not every database engine is available for every AWS region.
  8144. //
  8145. // Engine is a required field
  8146. Engine *string `type:"string" required:"true"`
  8147. // The version number of the database engine to use.
  8148. //
  8149. // The following are the database engines and major and minor versions that
  8150. // are available with Amazon RDS. Not every database engine is available for
  8151. // every AWS region.
  8152. //
  8153. // Amazon Aurora
  8154. //
  8155. // * Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2,
  8156. // ap-south-1, ap-southeast-2, eu-west-1, us-east-1, us-west-2): 5.6.10a
  8157. //
  8158. // MariaDB
  8159. //
  8160. // * Version 10.1 (available in these AWS regions: ap-northeast-1, ap-northeast-2,
  8161. // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1,
  8162. // us-east-1, us-west-1, us-west-2): 10.1.14
  8163. //
  8164. // * Version 10.0 (available in all AWS regions): 10.0.17 | 10.0.24
  8165. //
  8166. // MySQL
  8167. //
  8168. // * Version 5.7 (available in all AWS regions): 5.7.10 | 5.7.11
  8169. //
  8170. // * Version 5.6 (available in all AWS regions): 5.6.27 | 5.6.29
  8171. //
  8172. // * Version 5.6 (available in these AWS regions: ap-northeast-1, ap-northeast-2,
  8173. // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1,
  8174. // us-gov-west-1, us-west-1, us-west-2): 5.6.23
  8175. //
  8176. // * Version 5.6 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8177. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1,
  8178. // us-west-1, us-west-2): 5.6.19a | 5.6.19b | 5.6.21 | 5.6.21b | 5.6.22
  8179. //
  8180. // * Version 5.5 (available in all AWS regions): 5.5.46
  8181. //
  8182. // * Version 5.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2,
  8183. // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1,
  8184. // us-gov-west-1, us-west-1, us-west-2): 5.5.42
  8185. //
  8186. // * Version 5.5 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8187. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1,
  8188. // us-west-1, us-west-2): 5.5.40b | 5.5.41
  8189. //
  8190. // * Version 5.5 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8191. // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1,
  8192. // us-west-2): 5.5.40 | 5.5.40a
  8193. //
  8194. // Oracle Database Enterprise Edition (oracle-ee)
  8195. //
  8196. // * Version 12.1.0.2 (available in these AWS regions: ap-northeast-1, ap-northeast-2,
  8197. // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1,
  8198. // us-east-1, us-west-1, us-west-2): 12.1.0.2.v5
  8199. //
  8200. // * Version 12.1.0.2 (available in all AWS regions): 12.1.0.2.v1 | 12.1.0.2.v2
  8201. // | 12.1.0.2.v3 | 12.1.0.2.v4
  8202. //
  8203. // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8204. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1,
  8205. // us-west-2): 12.1.0.1.v6
  8206. //
  8207. // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8208. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1,
  8209. // us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5
  8210. //
  8211. // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8212. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1,
  8213. // us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v1 | 12.1.0.1.v2
  8214. //
  8215. // * Version 11.2.0.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2,
  8216. // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1,
  8217. // us-east-1, us-west-1, us-west-2): 11.2.0.4.v6 | 11.2.0.4.v9
  8218. //
  8219. // * Version 11.2.0.4 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3
  8220. // | 11.2.0.4.v4 | 11.2.0.4.v5 | 11.2.0.4.v7 | 11.2.0.4.v8
  8221. //
  8222. // Oracle Database Standard Edition Two (oracle-se2)
  8223. //
  8224. // * Version 12.1.0.2 (available in these AWS regions: ap-northeast-1, ap-northeast-2,
  8225. // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1,
  8226. // us-east-1, us-west-1, us-west-2): 12.1.0.2.v5
  8227. //
  8228. // * Version 12.1.0.2 (available in all AWS regions): 12.1.0.2.v2 | 12.1.0.2.v3
  8229. // | 12.1.0.2.v4
  8230. //
  8231. // Oracle Database Standard Edition One (oracle-se1)
  8232. //
  8233. // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8234. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1,
  8235. // us-west-2): 12.1.0.1.v6
  8236. //
  8237. // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8238. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1,
  8239. // us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5
  8240. //
  8241. // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8242. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1,
  8243. // us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v1 | 12.1.0.1.v2
  8244. //
  8245. // * Version 11.2.0.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2,
  8246. // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1,
  8247. // us-east-1, us-west-1, us-west-2): 11.2.0.4.v6 | 11.2.0.4.v9
  8248. //
  8249. // * Version 11.2.0.4 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3
  8250. // | 11.2.0.4.v4 | 11.2.0.4.v5 | 11.2.0.4.v7 | 11.2.0.4.v8
  8251. //
  8252. // Oracle Database Standard Edition (oracle-se)
  8253. //
  8254. // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8255. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1,
  8256. // us-west-2): 12.1.0.1.v6
  8257. //
  8258. // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8259. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1,
  8260. // us-west-1, us-west-2): 12.1.0.1.v3 | 12.1.0.1.v4 | 12.1.0.1.v5
  8261. //
  8262. // * Version 12.1.0.1 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8263. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1,
  8264. // us-gov-west-1, us-west-1, us-west-2): 12.1.0.1.v1 | 12.1.0.1.v2
  8265. //
  8266. // * Version 11.2.0.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2,
  8267. // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1,
  8268. // us-east-1, us-west-1, us-west-2): 11.2.0.4.v6 | 11.2.0.4.v9
  8269. //
  8270. // * Version 11.2.0.4 (available in all AWS regions): 11.2.0.4.v1 | 11.2.0.4.v3
  8271. // | 11.2.0.4.v4 | 11.2.0.4.v5 | 11.2.0.4.v7 | 11.2.0.4.v8
  8272. //
  8273. // PostgreSQL
  8274. //
  8275. // * Version 9.5 (available in these AWS regions: ap-northeast-1, ap-northeast-2,
  8276. // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1,
  8277. // us-east-1, us-west-1, us-west-2): 9.5.2 | 9.5.4
  8278. //
  8279. // * Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2,
  8280. // ap-south-1, ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1,
  8281. // us-east-1, us-west-1, us-west-2): 9.4.7 | 9.4.9
  8282. //
  8283. // * Version 9.4 (available in all AWS regions): 9.4.5
  8284. //
  8285. // * Version 9.4 (available in these AWS regions: ap-northeast-1, ap-northeast-2,
  8286. // ap-southeast-1, ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1,
  8287. // us-gov-west-1, us-west-1, us-west-2): 9.4.1 | 9.4.4
  8288. //
  8289. // * Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8290. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-gov-west-1,
  8291. // us-west-1, us-west-2): 9.3.10 | 9.3.3 | 9.3.5 | 9.3.6 | 9.3.9
  8292. //
  8293. // * Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8294. // ap-southeast-2, eu-west-1, sa-east-1, us-east-1, us-gov-west-1, us-west-1,
  8295. // us-west-2): 9.3.1 | 9.3.2
  8296. //
  8297. // * Version 9.3 (available in these AWS regions: ap-northeast-1, ap-southeast-1,
  8298. // ap-southeast-2, eu-central-1, eu-west-1, sa-east-1, us-east-1, us-west-1,
  8299. // us-west-2): 9.3.12 | 9.3.14
  8300. //
  8301. // Microsoft SQL Server Enterprise Edition (sqlserver-ee)
  8302. //
  8303. // * Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1
  8304. // | 11.00.6020.0.v1
  8305. //
  8306. // * Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1
  8307. // | 10.50.6529.0.v1
  8308. //
  8309. // Microsoft SQL Server Express Edition (sqlserver-ex)
  8310. //
  8311. // * Version 12.00 (available in all AWS regions): 12.00.4422.0.v1
  8312. //
  8313. // * Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1
  8314. // | 11.00.6020.0.v1
  8315. //
  8316. // * Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1
  8317. // | 10.50.6529.0.v1
  8318. //
  8319. // Microsoft SQL Server Standard Edition (sqlserver-se)
  8320. //
  8321. // * Version 12.00 (available in all AWS regions): 12.00.4422.0.v1
  8322. //
  8323. // * Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1
  8324. // | 11.00.6020.0.v1
  8325. //
  8326. // * Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1
  8327. // | 10.50.6529.0.v1
  8328. //
  8329. // Microsoft SQL Server Web Edition (sqlserver-web)
  8330. //
  8331. // * Version 12.00 (available in all AWS regions): 12.00.4422.0.v1
  8332. //
  8333. // * Version 11.00 (available in all AWS regions): 11.00.2100.60.v1 | 11.00.5058.0.v1
  8334. // | 11.00.6020.0.v1
  8335. //
  8336. // * Version 10.50 (available in all AWS regions): 10.50.2789.0.v1 | 10.50.6000.34.v1
  8337. // | 10.50.6529.0.v1
  8338. EngineVersion *string `type:"string"`
  8339. // The amount of Provisioned IOPS (input/output operations per second) to be
  8340. // initially allocated for the DB instance.
  8341. //
  8342. // Constraints: Must be a multiple between 3 and 10 of the storage amount for
  8343. // the DB instance. Must also be an integer multiple of 1000. For example, if
  8344. // the size of your DB instance is 500 GB, then your Iops value can be 2000,
  8345. // 3000, 4000, or 5000.
  8346. Iops *int64 `type:"integer"`
  8347. // The KMS key identifier for an encrypted DB instance.
  8348. //
  8349. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  8350. // key. If you are creating a DB instance with the same AWS account that owns
  8351. // the KMS encryption key used to encrypt the new DB instance, then you can
  8352. // use the KMS key alias instead of the ARN for the KM encryption key.
  8353. //
  8354. // If the StorageEncrypted parameter is true, and you do not specify a value
  8355. // for the KmsKeyId parameter, then Amazon RDS will use your default encryption
  8356. // key. AWS KMS creates the default encryption key for your AWS account. Your
  8357. // AWS account has a different default encryption key for each AWS region.
  8358. KmsKeyId *string `type:"string"`
  8359. // License model information for this DB instance.
  8360. //
  8361. // Valid values: license-included | bring-your-own-license | general-public-license
  8362. LicenseModel *string `type:"string"`
  8363. // The password for the master database user. Can be any printable ASCII character
  8364. // except "/", """, or "@".
  8365. //
  8366. // Type: String
  8367. //
  8368. // MySQL
  8369. //
  8370. // Constraints: Must contain from 8 to 41 characters.
  8371. //
  8372. // MariaDB
  8373. //
  8374. // Constraints: Must contain from 8 to 41 characters.
  8375. //
  8376. // Oracle
  8377. //
  8378. // Constraints: Must contain from 8 to 30 characters.
  8379. //
  8380. // SQL Server
  8381. //
  8382. // Constraints: Must contain from 8 to 128 characters.
  8383. //
  8384. // PostgreSQL
  8385. //
  8386. // Constraints: Must contain from 8 to 128 characters.
  8387. //
  8388. // Amazon Aurora
  8389. //
  8390. // Constraints: Must contain from 8 to 41 characters.
  8391. MasterUserPassword *string `type:"string"`
  8392. // The name of master user for the client DB instance.
  8393. //
  8394. // MySQL
  8395. //
  8396. // Constraints:
  8397. //
  8398. // * Must be 1 to 16 alphanumeric characters.
  8399. //
  8400. // * First character must be a letter.
  8401. //
  8402. // * Cannot be a reserved word for the chosen database engine.
  8403. //
  8404. // MariaDB
  8405. //
  8406. // Constraints:
  8407. //
  8408. // * Must be 1 to 16 alphanumeric characters.
  8409. //
  8410. // * Cannot be a reserved word for the chosen database engine.
  8411. //
  8412. // Type: String
  8413. //
  8414. // Oracle
  8415. //
  8416. // Constraints:
  8417. //
  8418. // * Must be 1 to 30 alphanumeric characters.
  8419. //
  8420. // * First character must be a letter.
  8421. //
  8422. // * Cannot be a reserved word for the chosen database engine.
  8423. //
  8424. // SQL Server
  8425. //
  8426. // Constraints:
  8427. //
  8428. // * Must be 1 to 128 alphanumeric characters.
  8429. //
  8430. // * First character must be a letter.
  8431. //
  8432. // * Cannot be a reserved word for the chosen database engine.
  8433. //
  8434. // PostgreSQL
  8435. //
  8436. // Constraints:
  8437. //
  8438. // * Must be 1 to 63 alphanumeric characters.
  8439. //
  8440. // * First character must be a letter.
  8441. //
  8442. // * Cannot be a reserved word for the chosen database engine.
  8443. MasterUsername *string `type:"string"`
  8444. // The interval, in seconds, between points when Enhanced Monitoring metrics
  8445. // are collected for the DB instance. To disable collecting Enhanced Monitoring
  8446. // metrics, specify 0. The default is 0.
  8447. //
  8448. // If MonitoringRoleArn is specified, then you must also set MonitoringInterval
  8449. // to a value other than 0.
  8450. //
  8451. // Valid Values: 0, 1, 5, 10, 15, 30, 60
  8452. MonitoringInterval *int64 `type:"integer"`
  8453. // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics
  8454. // to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess.
  8455. // For information on creating a monitoring role, go to To create an IAM role
  8456. // for Amazon RDS Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole).
  8457. //
  8458. // If MonitoringInterval is set to a value other than 0, then you must supply
  8459. // a MonitoringRoleArn value.
  8460. MonitoringRoleArn *string `type:"string"`
  8461. // Specifies if the DB instance is a Multi-AZ deployment. You cannot set the
  8462. // AvailabilityZone parameter if the MultiAZ parameter is set to true.
  8463. MultiAZ *bool `type:"boolean"`
  8464. // Indicates that the DB instance should be associated with the specified option
  8465. // group.
  8466. //
  8467. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  8468. // cannot be removed from an option group, and that option group cannot be removed
  8469. // from a DB instance once it is associated with a DB instance
  8470. OptionGroupName *string `type:"string"`
  8471. // The port number on which the database accepts connections.
  8472. //
  8473. // MySQL
  8474. //
  8475. // Default: 3306
  8476. //
  8477. // Valid Values: 1150-65535
  8478. //
  8479. // Type: Integer
  8480. //
  8481. // MariaDB
  8482. //
  8483. // Default: 3306
  8484. //
  8485. // Valid Values: 1150-65535
  8486. //
  8487. // Type: Integer
  8488. //
  8489. // PostgreSQL
  8490. //
  8491. // Default: 5432
  8492. //
  8493. // Valid Values: 1150-65535
  8494. //
  8495. // Type: Integer
  8496. //
  8497. // Oracle
  8498. //
  8499. // Default: 1521
  8500. //
  8501. // Valid Values: 1150-65535
  8502. //
  8503. // SQL Server
  8504. //
  8505. // Default: 1433
  8506. //
  8507. // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through
  8508. // 49156.
  8509. //
  8510. // Amazon Aurora
  8511. //
  8512. // Default: 3306
  8513. //
  8514. // Valid Values: 1150-65535
  8515. //
  8516. // Type: Integer
  8517. Port *int64 `type:"integer"`
  8518. // The daily time range during which automated backups are created if automated
  8519. // backups are enabled, using the BackupRetentionPeriod parameter. For more
  8520. // information, see DB Instance Backups (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.BackingUpAndRestoringAmazonRDSInstances.html).
  8521. //
  8522. // Default: A 30-minute window selected at random from an 8-hour block of time
  8523. // per region. To see the time blocks available, see Adjusting the Preferred
  8524. // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  8525. // in the Amazon RDS User Guide.
  8526. //
  8527. // Constraints:
  8528. //
  8529. // * Must be in the format hh24:mi-hh24:mi.
  8530. //
  8531. // * Times should be in Universal Coordinated Time (UTC).
  8532. //
  8533. // * Must not conflict with the preferred maintenance window.
  8534. //
  8535. // * Must be at least 30 minutes.
  8536. PreferredBackupWindow *string `type:"string"`
  8537. // The weekly time range during which system maintenance can occur, in Universal
  8538. // Coordinated Time (UTC). For more information, see DB Instance Maintenance
  8539. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBMaintenance.html).
  8540. //
  8541. // Format: ddd:hh24:mi-ddd:hh24:mi
  8542. //
  8543. // Default: A 30-minute window selected at random from an 8-hour block of time
  8544. // per region, occurring on a random day of the week. To see the time blocks
  8545. // available, see Adjusting the Preferred Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  8546. // in the Amazon RDS User Guide.
  8547. //
  8548. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  8549. //
  8550. // Constraints: Minimum 30-minute window.
  8551. PreferredMaintenanceWindow *string `type:"string"`
  8552. // A value that specifies the order in which an Aurora Replica is promoted to
  8553. // the primary instance after a failure of the existing primary instance. For
  8554. // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance).
  8555. //
  8556. // Default: 1
  8557. //
  8558. // Valid Values: 0 - 15
  8559. PromotionTier *int64 `type:"integer"`
  8560. // Specifies the accessibility options for the DB instance. A value of true
  8561. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  8562. // which resolves to a public IP address. A value of false specifies an internal
  8563. // instance with a DNS name that resolves to a private IP address.
  8564. //
  8565. // Default: The default behavior varies depending on whether a VPC has been
  8566. // requested or not. The following list shows the default behavior in each case.
  8567. //
  8568. // * Default VPC: true
  8569. //
  8570. // * VPC: false
  8571. //
  8572. // If no DB subnet group has been specified as part of the request and the PubliclyAccessible
  8573. // value has not been set, the DB instance will be publicly accessible. If a
  8574. // specific DB subnet group has been specified as part of the request and the
  8575. // PubliclyAccessible value has not been set, the DB instance will be private.
  8576. PubliclyAccessible *bool `type:"boolean"`
  8577. // Specifies whether the DB instance is encrypted.
  8578. //
  8579. // Default: false
  8580. StorageEncrypted *bool `type:"boolean"`
  8581. // Specifies the storage type to be associated with the DB instance.
  8582. //
  8583. // Valid values: standard | gp2 | io1
  8584. //
  8585. // If you specify io1, you must also include a value for the Iops parameter.
  8586. //
  8587. // Default: io1 if the Iops parameter is specified; otherwise standard
  8588. StorageType *string `type:"string"`
  8589. // A list of tags.
  8590. Tags []*Tag `locationNameList:"Tag" type:"list"`
  8591. // The ARN from the Key Store with which to associate the instance for TDE encryption.
  8592. TdeCredentialArn *string `type:"string"`
  8593. // The password for the given ARN from the Key Store in order to access the
  8594. // device.
  8595. TdeCredentialPassword *string `type:"string"`
  8596. // The time zone of the DB instance. The time zone parameter is currently supported
  8597. // only by Microsoft SQL Server (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone).
  8598. Timezone *string `type:"string"`
  8599. // A list of EC2 VPC security groups to associate with this DB instance.
  8600. //
  8601. // Default: The default EC2 VPC security group for the DB subnet group's VPC.
  8602. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  8603. }
  8604. // String returns the string representation
  8605. func (s CreateDBInstanceInput) String() string {
  8606. return awsutil.Prettify(s)
  8607. }
  8608. // GoString returns the string representation
  8609. func (s CreateDBInstanceInput) GoString() string {
  8610. return s.String()
  8611. }
  8612. // Validate inspects the fields of the type to determine if they are valid.
  8613. func (s *CreateDBInstanceInput) Validate() error {
  8614. invalidParams := request.ErrInvalidParams{Context: "CreateDBInstanceInput"}
  8615. if s.DBInstanceClass == nil {
  8616. invalidParams.Add(request.NewErrParamRequired("DBInstanceClass"))
  8617. }
  8618. if s.DBInstanceIdentifier == nil {
  8619. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  8620. }
  8621. if s.Engine == nil {
  8622. invalidParams.Add(request.NewErrParamRequired("Engine"))
  8623. }
  8624. if invalidParams.Len() > 0 {
  8625. return invalidParams
  8626. }
  8627. return nil
  8628. }
  8629. type CreateDBInstanceOutput struct {
  8630. _ struct{} `type:"structure"`
  8631. // Contains the result of a successful invocation of the following actions:
  8632. //
  8633. // * CreateDBInstance
  8634. //
  8635. // * DeleteDBInstance
  8636. //
  8637. // * ModifyDBInstance
  8638. //
  8639. // This data type is used as a response element in the DescribeDBInstances action.
  8640. DBInstance *DBInstance `type:"structure"`
  8641. }
  8642. // String returns the string representation
  8643. func (s CreateDBInstanceOutput) String() string {
  8644. return awsutil.Prettify(s)
  8645. }
  8646. // GoString returns the string representation
  8647. func (s CreateDBInstanceOutput) GoString() string {
  8648. return s.String()
  8649. }
  8650. type CreateDBInstanceReadReplicaInput struct {
  8651. _ struct{} `type:"structure"`
  8652. // Indicates that minor engine upgrades will be applied automatically to the
  8653. // Read Replica during the maintenance window.
  8654. //
  8655. // Default: Inherits from the source DB instance
  8656. AutoMinorVersionUpgrade *bool `type:"boolean"`
  8657. // The Amazon EC2 Availability Zone that the Read Replica will be created in.
  8658. //
  8659. // Default: A random, system-chosen Availability Zone in the endpoint's region.
  8660. //
  8661. // Example: us-east-1d
  8662. AvailabilityZone *string `type:"string"`
  8663. // True to copy all tags from the Read Replica to snapshots of the Read Replica;
  8664. // otherwise false. The default is false.
  8665. CopyTagsToSnapshot *bool `type:"boolean"`
  8666. // The compute and memory capacity of the Read Replica.
  8667. //
  8668. // Valid Values: db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.xlarge
  8669. // |db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge
  8670. // | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge
  8671. // | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge
  8672. // | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large
  8673. //
  8674. // Default: Inherits from the source DB instance.
  8675. DBInstanceClass *string `type:"string"`
  8676. // The DB instance identifier of the Read Replica. This identifier is the unique
  8677. // key that identifies a DB instance. This parameter is stored as a lowercase
  8678. // string.
  8679. //
  8680. // DBInstanceIdentifier is a required field
  8681. DBInstanceIdentifier *string `type:"string" required:"true"`
  8682. // Specifies a DB subnet group for the DB instance. The new DB instance will
  8683. // be created in the VPC associated with the DB subnet group. If no DB subnet
  8684. // group is specified, then the new DB instance is not created in a VPC.
  8685. //
  8686. // Constraints:
  8687. //
  8688. // * Can only be specified if the source DB instance identifier specifies
  8689. // a DB instance in another region.
  8690. //
  8691. // * The specified DB subnet group must be in the same region in which the
  8692. // operation is running.
  8693. //
  8694. // * All Read Replicas in one region that are created from the same source
  8695. // DB instance must either:>
  8696. //
  8697. // Specify DB subnet groups from the same VPC. All these Read Replicas will
  8698. // be created in the same VPC.
  8699. //
  8700. // Not specify a DB subnet group. All these Read Replicas will be created outside
  8701. // of any VPC.
  8702. //
  8703. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  8704. // underscores, spaces, or hyphens. Must not be default.
  8705. //
  8706. // Example: mySubnetgroup
  8707. DBSubnetGroupName *string `type:"string"`
  8708. // The amount of Provisioned IOPS (input/output operations per second) to be
  8709. // initially allocated for the DB instance.
  8710. Iops *int64 `type:"integer"`
  8711. // The interval, in seconds, between points when Enhanced Monitoring metrics
  8712. // are collected for the Read Replica. To disable collecting Enhanced Monitoring
  8713. // metrics, specify 0. The default is 0.
  8714. //
  8715. // If MonitoringRoleArn is specified, then you must also set MonitoringInterval
  8716. // to a value other than 0.
  8717. //
  8718. // Valid Values: 0, 1, 5, 10, 15, 30, 60
  8719. MonitoringInterval *int64 `type:"integer"`
  8720. // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics
  8721. // to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess.
  8722. // For information on creating a monitoring role, go to To create an IAM role
  8723. // for Amazon RDS Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole).
  8724. //
  8725. // If MonitoringInterval is set to a value other than 0, then you must supply
  8726. // a MonitoringRoleArn value.
  8727. MonitoringRoleArn *string `type:"string"`
  8728. // The option group the DB instance will be associated with. If omitted, the
  8729. // default option group for the engine specified will be used.
  8730. OptionGroupName *string `type:"string"`
  8731. // The port number that the DB instance uses for connections.
  8732. //
  8733. // Default: Inherits from the source DB instance
  8734. //
  8735. // Valid Values: 1150-65535
  8736. Port *int64 `type:"integer"`
  8737. // Specifies the accessibility options for the DB instance. A value of true
  8738. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  8739. // which resolves to a public IP address. A value of false specifies an internal
  8740. // instance with a DNS name that resolves to a private IP address.
  8741. //
  8742. // Default: The default behavior varies depending on whether a VPC has been
  8743. // requested or not. The following list shows the default behavior in each case.
  8744. //
  8745. // * Default VPC:true
  8746. //
  8747. // * VPC:false
  8748. //
  8749. // If no DB subnet group has been specified as part of the request and the PubliclyAccessible
  8750. // value has not been set, the DB instance will be publicly accessible. If a
  8751. // specific DB subnet group has been specified as part of the request and the
  8752. // PubliclyAccessible value has not been set, the DB instance will be private.
  8753. PubliclyAccessible *bool `type:"boolean"`
  8754. // The identifier of the DB instance that will act as the source for the Read
  8755. // Replica. Each DB instance can have up to five Read Replicas.
  8756. //
  8757. // Constraints:
  8758. //
  8759. // * Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL
  8760. // DB instance.
  8761. //
  8762. // * Can specify a DB instance that is a MySQL Read Replica only if the source
  8763. // is running MySQL 5.6.
  8764. //
  8765. // * Can specify a DB instance that is a PostgreSQL Read Replica only if
  8766. // the source is running PostgreSQL 9.3.5.
  8767. //
  8768. // * The specified DB instance must have automatic backups enabled, its backup
  8769. // retention period must be greater than 0.
  8770. //
  8771. // * If the source DB instance is in the same region as the Read Replica,
  8772. // specify a valid DB instance identifier.
  8773. //
  8774. // * If the source DB instance is in a different region than the Read Replica,
  8775. // specify a valid DB instance ARN. For more information, go to Constructing
  8776. // a Amazon RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing).
  8777. //
  8778. // SourceDBInstanceIdentifier is a required field
  8779. SourceDBInstanceIdentifier *string `type:"string" required:"true"`
  8780. // Specifies the storage type to be associated with the Read Replica.
  8781. //
  8782. // Valid values: standard | gp2 | io1
  8783. //
  8784. // If you specify io1, you must also include a value for the Iops parameter.
  8785. //
  8786. // Default: io1 if the Iops parameter is specified; otherwise standard
  8787. StorageType *string `type:"string"`
  8788. // A list of tags.
  8789. Tags []*Tag `locationNameList:"Tag" type:"list"`
  8790. }
  8791. // String returns the string representation
  8792. func (s CreateDBInstanceReadReplicaInput) String() string {
  8793. return awsutil.Prettify(s)
  8794. }
  8795. // GoString returns the string representation
  8796. func (s CreateDBInstanceReadReplicaInput) GoString() string {
  8797. return s.String()
  8798. }
  8799. // Validate inspects the fields of the type to determine if they are valid.
  8800. func (s *CreateDBInstanceReadReplicaInput) Validate() error {
  8801. invalidParams := request.ErrInvalidParams{Context: "CreateDBInstanceReadReplicaInput"}
  8802. if s.DBInstanceIdentifier == nil {
  8803. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  8804. }
  8805. if s.SourceDBInstanceIdentifier == nil {
  8806. invalidParams.Add(request.NewErrParamRequired("SourceDBInstanceIdentifier"))
  8807. }
  8808. if invalidParams.Len() > 0 {
  8809. return invalidParams
  8810. }
  8811. return nil
  8812. }
  8813. type CreateDBInstanceReadReplicaOutput struct {
  8814. _ struct{} `type:"structure"`
  8815. // Contains the result of a successful invocation of the following actions:
  8816. //
  8817. // * CreateDBInstance
  8818. //
  8819. // * DeleteDBInstance
  8820. //
  8821. // * ModifyDBInstance
  8822. //
  8823. // This data type is used as a response element in the DescribeDBInstances action.
  8824. DBInstance *DBInstance `type:"structure"`
  8825. }
  8826. // String returns the string representation
  8827. func (s CreateDBInstanceReadReplicaOutput) String() string {
  8828. return awsutil.Prettify(s)
  8829. }
  8830. // GoString returns the string representation
  8831. func (s CreateDBInstanceReadReplicaOutput) GoString() string {
  8832. return s.String()
  8833. }
  8834. type CreateDBParameterGroupInput struct {
  8835. _ struct{} `type:"structure"`
  8836. // The DB parameter group family name. A DB parameter group can be associated
  8837. // with one and only one DB parameter group family, and can be applied only
  8838. // to a DB instance running a database engine and engine version compatible
  8839. // with that DB parameter group family.
  8840. //
  8841. // DBParameterGroupFamily is a required field
  8842. DBParameterGroupFamily *string `type:"string" required:"true"`
  8843. // The name of the DB parameter group.
  8844. //
  8845. // Constraints:
  8846. //
  8847. // * Must be 1 to 255 alphanumeric characters
  8848. //
  8849. // * First character must be a letter
  8850. //
  8851. // * Cannot end with a hyphen or contain two consecutive hyphens
  8852. //
  8853. // This value is stored as a lowercase string.
  8854. //
  8855. // DBParameterGroupName is a required field
  8856. DBParameterGroupName *string `type:"string" required:"true"`
  8857. // The description for the DB parameter group.
  8858. //
  8859. // Description is a required field
  8860. Description *string `type:"string" required:"true"`
  8861. // A list of tags.
  8862. Tags []*Tag `locationNameList:"Tag" type:"list"`
  8863. }
  8864. // String returns the string representation
  8865. func (s CreateDBParameterGroupInput) String() string {
  8866. return awsutil.Prettify(s)
  8867. }
  8868. // GoString returns the string representation
  8869. func (s CreateDBParameterGroupInput) GoString() string {
  8870. return s.String()
  8871. }
  8872. // Validate inspects the fields of the type to determine if they are valid.
  8873. func (s *CreateDBParameterGroupInput) Validate() error {
  8874. invalidParams := request.ErrInvalidParams{Context: "CreateDBParameterGroupInput"}
  8875. if s.DBParameterGroupFamily == nil {
  8876. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  8877. }
  8878. if s.DBParameterGroupName == nil {
  8879. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  8880. }
  8881. if s.Description == nil {
  8882. invalidParams.Add(request.NewErrParamRequired("Description"))
  8883. }
  8884. if invalidParams.Len() > 0 {
  8885. return invalidParams
  8886. }
  8887. return nil
  8888. }
  8889. type CreateDBParameterGroupOutput struct {
  8890. _ struct{} `type:"structure"`
  8891. // Contains the result of a successful invocation of the CreateDBParameterGroup
  8892. // action.
  8893. //
  8894. // This data type is used as a request parameter in the DeleteDBParameterGroup
  8895. // action, and as a response element in the DescribeDBParameterGroups action.
  8896. DBParameterGroup *DBParameterGroup `type:"structure"`
  8897. }
  8898. // String returns the string representation
  8899. func (s CreateDBParameterGroupOutput) String() string {
  8900. return awsutil.Prettify(s)
  8901. }
  8902. // GoString returns the string representation
  8903. func (s CreateDBParameterGroupOutput) GoString() string {
  8904. return s.String()
  8905. }
  8906. type CreateDBSecurityGroupInput struct {
  8907. _ struct{} `type:"structure"`
  8908. // The description for the DB security group.
  8909. //
  8910. // DBSecurityGroupDescription is a required field
  8911. DBSecurityGroupDescription *string `type:"string" required:"true"`
  8912. // The name for the DB security group. This value is stored as a lowercase string.
  8913. //
  8914. // Constraints:
  8915. //
  8916. // * Must be 1 to 255 alphanumeric characters
  8917. //
  8918. // * First character must be a letter
  8919. //
  8920. // * Cannot end with a hyphen or contain two consecutive hyphens
  8921. //
  8922. // * Must not be "Default"
  8923. //
  8924. // Example: mysecuritygroup
  8925. //
  8926. // DBSecurityGroupName is a required field
  8927. DBSecurityGroupName *string `type:"string" required:"true"`
  8928. // A list of tags.
  8929. Tags []*Tag `locationNameList:"Tag" type:"list"`
  8930. }
  8931. // String returns the string representation
  8932. func (s CreateDBSecurityGroupInput) String() string {
  8933. return awsutil.Prettify(s)
  8934. }
  8935. // GoString returns the string representation
  8936. func (s CreateDBSecurityGroupInput) GoString() string {
  8937. return s.String()
  8938. }
  8939. // Validate inspects the fields of the type to determine if they are valid.
  8940. func (s *CreateDBSecurityGroupInput) Validate() error {
  8941. invalidParams := request.ErrInvalidParams{Context: "CreateDBSecurityGroupInput"}
  8942. if s.DBSecurityGroupDescription == nil {
  8943. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupDescription"))
  8944. }
  8945. if s.DBSecurityGroupName == nil {
  8946. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName"))
  8947. }
  8948. if invalidParams.Len() > 0 {
  8949. return invalidParams
  8950. }
  8951. return nil
  8952. }
  8953. type CreateDBSecurityGroupOutput struct {
  8954. _ struct{} `type:"structure"`
  8955. // Contains the result of a successful invocation of the following actions:
  8956. //
  8957. // * DescribeDBSecurityGroups
  8958. //
  8959. // * AuthorizeDBSecurityGroupIngress
  8960. //
  8961. // * CreateDBSecurityGroup
  8962. //
  8963. // * RevokeDBSecurityGroupIngress
  8964. //
  8965. // This data type is used as a response element in the DescribeDBSecurityGroups
  8966. // action.
  8967. DBSecurityGroup *DBSecurityGroup `type:"structure"`
  8968. }
  8969. // String returns the string representation
  8970. func (s CreateDBSecurityGroupOutput) String() string {
  8971. return awsutil.Prettify(s)
  8972. }
  8973. // GoString returns the string representation
  8974. func (s CreateDBSecurityGroupOutput) GoString() string {
  8975. return s.String()
  8976. }
  8977. type CreateDBSnapshotInput struct {
  8978. _ struct{} `type:"structure"`
  8979. // The DB instance identifier. This is the unique key that identifies a DB instance.
  8980. //
  8981. // Constraints:
  8982. //
  8983. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  8984. //
  8985. // * First character must be a letter
  8986. //
  8987. // * Cannot end with a hyphen or contain two consecutive hyphens
  8988. //
  8989. // DBInstanceIdentifier is a required field
  8990. DBInstanceIdentifier *string `type:"string" required:"true"`
  8991. // The identifier for the DB snapshot.
  8992. //
  8993. // Constraints:
  8994. //
  8995. // * Cannot be null, empty, or blank
  8996. //
  8997. // * Must contain from 1 to 255 alphanumeric characters or hyphens
  8998. //
  8999. // * First character must be a letter
  9000. //
  9001. // * Cannot end with a hyphen or contain two consecutive hyphens
  9002. //
  9003. // Example: my-snapshot-id
  9004. //
  9005. // DBSnapshotIdentifier is a required field
  9006. DBSnapshotIdentifier *string `type:"string" required:"true"`
  9007. // A list of tags.
  9008. Tags []*Tag `locationNameList:"Tag" type:"list"`
  9009. }
  9010. // String returns the string representation
  9011. func (s CreateDBSnapshotInput) String() string {
  9012. return awsutil.Prettify(s)
  9013. }
  9014. // GoString returns the string representation
  9015. func (s CreateDBSnapshotInput) GoString() string {
  9016. return s.String()
  9017. }
  9018. // Validate inspects the fields of the type to determine if they are valid.
  9019. func (s *CreateDBSnapshotInput) Validate() error {
  9020. invalidParams := request.ErrInvalidParams{Context: "CreateDBSnapshotInput"}
  9021. if s.DBInstanceIdentifier == nil {
  9022. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  9023. }
  9024. if s.DBSnapshotIdentifier == nil {
  9025. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  9026. }
  9027. if invalidParams.Len() > 0 {
  9028. return invalidParams
  9029. }
  9030. return nil
  9031. }
  9032. type CreateDBSnapshotOutput struct {
  9033. _ struct{} `type:"structure"`
  9034. // Contains the result of a successful invocation of the following actions:
  9035. //
  9036. // * CreateDBSnapshot
  9037. //
  9038. // * DeleteDBSnapshot
  9039. //
  9040. // This data type is used as a response element in the DescribeDBSnapshots action.
  9041. DBSnapshot *DBSnapshot `type:"structure"`
  9042. }
  9043. // String returns the string representation
  9044. func (s CreateDBSnapshotOutput) String() string {
  9045. return awsutil.Prettify(s)
  9046. }
  9047. // GoString returns the string representation
  9048. func (s CreateDBSnapshotOutput) GoString() string {
  9049. return s.String()
  9050. }
  9051. type CreateDBSubnetGroupInput struct {
  9052. _ struct{} `type:"structure"`
  9053. // The description for the DB subnet group.
  9054. //
  9055. // DBSubnetGroupDescription is a required field
  9056. DBSubnetGroupDescription *string `type:"string" required:"true"`
  9057. // The name for the DB subnet group. This value is stored as a lowercase string.
  9058. //
  9059. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  9060. // underscores, spaces, or hyphens. Must not be default.
  9061. //
  9062. // Example: mySubnetgroup
  9063. //
  9064. // DBSubnetGroupName is a required field
  9065. DBSubnetGroupName *string `type:"string" required:"true"`
  9066. // The EC2 Subnet IDs for the DB subnet group.
  9067. //
  9068. // SubnetIds is a required field
  9069. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
  9070. // A list of tags.
  9071. Tags []*Tag `locationNameList:"Tag" type:"list"`
  9072. }
  9073. // String returns the string representation
  9074. func (s CreateDBSubnetGroupInput) String() string {
  9075. return awsutil.Prettify(s)
  9076. }
  9077. // GoString returns the string representation
  9078. func (s CreateDBSubnetGroupInput) GoString() string {
  9079. return s.String()
  9080. }
  9081. // Validate inspects the fields of the type to determine if they are valid.
  9082. func (s *CreateDBSubnetGroupInput) Validate() error {
  9083. invalidParams := request.ErrInvalidParams{Context: "CreateDBSubnetGroupInput"}
  9084. if s.DBSubnetGroupDescription == nil {
  9085. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupDescription"))
  9086. }
  9087. if s.DBSubnetGroupName == nil {
  9088. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName"))
  9089. }
  9090. if s.SubnetIds == nil {
  9091. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  9092. }
  9093. if invalidParams.Len() > 0 {
  9094. return invalidParams
  9095. }
  9096. return nil
  9097. }
  9098. type CreateDBSubnetGroupOutput struct {
  9099. _ struct{} `type:"structure"`
  9100. // Contains the result of a successful invocation of the following actions:
  9101. //
  9102. // * CreateDBSubnetGroup
  9103. //
  9104. // * ModifyDBSubnetGroup
  9105. //
  9106. // * DescribeDBSubnetGroups
  9107. //
  9108. // * DeleteDBSubnetGroup
  9109. //
  9110. // This data type is used as a response element in the DescribeDBSubnetGroups
  9111. // action.
  9112. DBSubnetGroup *DBSubnetGroup `type:"structure"`
  9113. }
  9114. // String returns the string representation
  9115. func (s CreateDBSubnetGroupOutput) String() string {
  9116. return awsutil.Prettify(s)
  9117. }
  9118. // GoString returns the string representation
  9119. func (s CreateDBSubnetGroupOutput) GoString() string {
  9120. return s.String()
  9121. }
  9122. type CreateEventSubscriptionInput struct {
  9123. _ struct{} `type:"structure"`
  9124. // A Boolean value; set to true to activate the subscription, set to false to
  9125. // create the subscription but not active it.
  9126. Enabled *bool `type:"boolean"`
  9127. // A list of event categories for a SourceType that you want to subscribe to.
  9128. // You can see a list of the categories for a given SourceType in the Events
  9129. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html)
  9130. // topic in the Amazon RDS User Guide or by using the DescribeEventCategories
  9131. // action.
  9132. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  9133. // The Amazon Resource Name (ARN) of the SNS topic created for event notification.
  9134. // The ARN is created by Amazon SNS when you create a topic and subscribe to
  9135. // it.
  9136. //
  9137. // SnsTopicArn is a required field
  9138. SnsTopicArn *string `type:"string" required:"true"`
  9139. // The list of identifiers of the event sources for which events will be returned.
  9140. // If not specified, then all sources are included in the response. An identifier
  9141. // must begin with a letter and must contain only ASCII letters, digits, and
  9142. // hyphens; it cannot end with a hyphen or contain two consecutive hyphens.
  9143. //
  9144. // Constraints:
  9145. //
  9146. // * If SourceIds are supplied, SourceType must also be provided.
  9147. //
  9148. // * If the source type is a DB instance, then a DBInstanceIdentifier must
  9149. // be supplied.
  9150. //
  9151. // * If the source type is a DB security group, a DBSecurityGroupName must
  9152. // be supplied.
  9153. //
  9154. // * If the source type is a DB parameter group, a DBParameterGroupName must
  9155. // be supplied.
  9156. //
  9157. // * If the source type is a DB snapshot, a DBSnapshotIdentifier must be
  9158. // supplied.
  9159. SourceIds []*string `locationNameList:"SourceId" type:"list"`
  9160. // The type of source that will be generating the events. For example, if you
  9161. // want to be notified of events generated by a DB instance, you would set this
  9162. // parameter to db-instance. if this value is not specified, all events are
  9163. // returned.
  9164. //
  9165. // Valid values: db-instance | db-cluster | db-parameter-group | db-security-group
  9166. // | db-snapshot | db-cluster-snapshot
  9167. SourceType *string `type:"string"`
  9168. // The name of the subscription.
  9169. //
  9170. // Constraints: The name must be less than 255 characters.
  9171. //
  9172. // SubscriptionName is a required field
  9173. SubscriptionName *string `type:"string" required:"true"`
  9174. // A list of tags.
  9175. Tags []*Tag `locationNameList:"Tag" type:"list"`
  9176. }
  9177. // String returns the string representation
  9178. func (s CreateEventSubscriptionInput) String() string {
  9179. return awsutil.Prettify(s)
  9180. }
  9181. // GoString returns the string representation
  9182. func (s CreateEventSubscriptionInput) GoString() string {
  9183. return s.String()
  9184. }
  9185. // Validate inspects the fields of the type to determine if they are valid.
  9186. func (s *CreateEventSubscriptionInput) Validate() error {
  9187. invalidParams := request.ErrInvalidParams{Context: "CreateEventSubscriptionInput"}
  9188. if s.SnsTopicArn == nil {
  9189. invalidParams.Add(request.NewErrParamRequired("SnsTopicArn"))
  9190. }
  9191. if s.SubscriptionName == nil {
  9192. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  9193. }
  9194. if invalidParams.Len() > 0 {
  9195. return invalidParams
  9196. }
  9197. return nil
  9198. }
  9199. type CreateEventSubscriptionOutput struct {
  9200. _ struct{} `type:"structure"`
  9201. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  9202. // action.
  9203. EventSubscription *EventSubscription `type:"structure"`
  9204. }
  9205. // String returns the string representation
  9206. func (s CreateEventSubscriptionOutput) String() string {
  9207. return awsutil.Prettify(s)
  9208. }
  9209. // GoString returns the string representation
  9210. func (s CreateEventSubscriptionOutput) GoString() string {
  9211. return s.String()
  9212. }
  9213. type CreateOptionGroupInput struct {
  9214. _ struct{} `type:"structure"`
  9215. // Specifies the name of the engine that this option group should be associated
  9216. // with.
  9217. //
  9218. // EngineName is a required field
  9219. EngineName *string `type:"string" required:"true"`
  9220. // Specifies the major version of the engine that this option group should be
  9221. // associated with.
  9222. //
  9223. // MajorEngineVersion is a required field
  9224. MajorEngineVersion *string `type:"string" required:"true"`
  9225. // The description of the option group.
  9226. //
  9227. // OptionGroupDescription is a required field
  9228. OptionGroupDescription *string `type:"string" required:"true"`
  9229. // Specifies the name of the option group to be created.
  9230. //
  9231. // Constraints:
  9232. //
  9233. // * Must be 1 to 255 alphanumeric characters or hyphens
  9234. //
  9235. // * First character must be a letter
  9236. //
  9237. // * Cannot end with a hyphen or contain two consecutive hyphens
  9238. //
  9239. // Example: myoptiongroup
  9240. //
  9241. // OptionGroupName is a required field
  9242. OptionGroupName *string `type:"string" required:"true"`
  9243. // A list of tags.
  9244. Tags []*Tag `locationNameList:"Tag" type:"list"`
  9245. }
  9246. // String returns the string representation
  9247. func (s CreateOptionGroupInput) String() string {
  9248. return awsutil.Prettify(s)
  9249. }
  9250. // GoString returns the string representation
  9251. func (s CreateOptionGroupInput) GoString() string {
  9252. return s.String()
  9253. }
  9254. // Validate inspects the fields of the type to determine if they are valid.
  9255. func (s *CreateOptionGroupInput) Validate() error {
  9256. invalidParams := request.ErrInvalidParams{Context: "CreateOptionGroupInput"}
  9257. if s.EngineName == nil {
  9258. invalidParams.Add(request.NewErrParamRequired("EngineName"))
  9259. }
  9260. if s.MajorEngineVersion == nil {
  9261. invalidParams.Add(request.NewErrParamRequired("MajorEngineVersion"))
  9262. }
  9263. if s.OptionGroupDescription == nil {
  9264. invalidParams.Add(request.NewErrParamRequired("OptionGroupDescription"))
  9265. }
  9266. if s.OptionGroupName == nil {
  9267. invalidParams.Add(request.NewErrParamRequired("OptionGroupName"))
  9268. }
  9269. if invalidParams.Len() > 0 {
  9270. return invalidParams
  9271. }
  9272. return nil
  9273. }
  9274. type CreateOptionGroupOutput struct {
  9275. _ struct{} `type:"structure"`
  9276. OptionGroup *OptionGroup `type:"structure"`
  9277. }
  9278. // String returns the string representation
  9279. func (s CreateOptionGroupOutput) String() string {
  9280. return awsutil.Prettify(s)
  9281. }
  9282. // GoString returns the string representation
  9283. func (s CreateOptionGroupOutput) GoString() string {
  9284. return s.String()
  9285. }
  9286. // Contains the result of a successful invocation of the following actions:
  9287. //
  9288. // * CreateDBCluster
  9289. //
  9290. // * DeleteDBCluster
  9291. //
  9292. // * FailoverDBCluster
  9293. //
  9294. // * ModifyDBCluster
  9295. //
  9296. // * RestoreDBClusterFromSnapshot
  9297. //
  9298. // * RestoreDBClusterToPointInTime
  9299. //
  9300. // This data type is used as a response element in the DescribeDBClusters action.
  9301. type DBCluster struct {
  9302. _ struct{} `type:"structure"`
  9303. // Specifies the allocated storage size in gigabytes (GB).
  9304. AllocatedStorage *int64 `type:"integer"`
  9305. // Provides a list of the AWS Identity and Access Management (IAM) roles that
  9306. // are associated with the DB cluster. IAM roles that are associated with a
  9307. // DB cluster grant permission for the DB cluster to access other AWS services
  9308. // on your behalf.
  9309. AssociatedRoles []*DBClusterRole `locationNameList:"DBClusterRole" type:"list"`
  9310. // Provides the list of EC2 Availability Zones that instances in the DB cluster
  9311. // can be created in.
  9312. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  9313. // Specifies the number of days for which automatic DB snapshots are retained.
  9314. BackupRetentionPeriod *int64 `type:"integer"`
  9315. // If present, specifies the name of the character set that this cluster is
  9316. // associated with.
  9317. CharacterSetName *string `type:"string"`
  9318. // The Amazon Resource Name (ARN) for the DB cluster.
  9319. DBClusterArn *string `type:"string"`
  9320. // Contains a user-supplied DB cluster identifier. This identifier is the unique
  9321. // key that identifies a DB cluster.
  9322. DBClusterIdentifier *string `type:"string"`
  9323. // Provides the list of instances that make up the DB cluster.
  9324. DBClusterMembers []*DBClusterMember `locationNameList:"DBClusterMember" type:"list"`
  9325. // Provides the list of option group memberships for this DB cluster.
  9326. DBClusterOptionGroupMemberships []*DBClusterOptionGroupStatus `locationNameList:"DBClusterOptionGroup" type:"list"`
  9327. // Specifies the name of the DB cluster parameter group for the DB cluster.
  9328. DBClusterParameterGroup *string `type:"string"`
  9329. // Specifies information on the subnet group associated with the DB cluster,
  9330. // including the name, description, and subnets in the subnet group.
  9331. DBSubnetGroup *string `type:"string"`
  9332. // Contains the name of the initial database of this DB cluster that was provided
  9333. // at create time, if one was specified when the DB cluster was created. This
  9334. // same name is returned for the life of the DB cluster.
  9335. DatabaseName *string `type:"string"`
  9336. // The region-unique, immutable identifier for the DB cluster. This identifier
  9337. // is found in AWS CloudTrail log entries whenever the KMS key for the DB cluster
  9338. // is accessed.
  9339. DbClusterResourceId *string `type:"string"`
  9340. // Specifies the earliest time to which a database can be restored with point-in-time
  9341. // restore.
  9342. EarliestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  9343. // Specifies the connection endpoint for the primary instance of the DB cluster.
  9344. Endpoint *string `type:"string"`
  9345. // Provides the name of the database engine to be used for this DB cluster.
  9346. Engine *string `type:"string"`
  9347. // Indicates the database engine version.
  9348. EngineVersion *string `type:"string"`
  9349. // Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
  9350. HostedZoneId *string `type:"string"`
  9351. // If StorageEncrypted is true, the KMS key identifier for the encrypted DB
  9352. // cluster.
  9353. KmsKeyId *string `type:"string"`
  9354. // Specifies the latest time to which a database can be restored with point-in-time
  9355. // restore.
  9356. LatestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  9357. // Contains the master username for the DB cluster.
  9358. MasterUsername *string `type:"string"`
  9359. // Specifies the progress of the operation as a percentage.
  9360. PercentProgress *string `type:"string"`
  9361. // Specifies the port that the database engine is listening on.
  9362. Port *int64 `type:"integer"`
  9363. // Specifies the daily time range during which automated backups are created
  9364. // if automated backups are enabled, as determined by the BackupRetentionPeriod.
  9365. PreferredBackupWindow *string `type:"string"`
  9366. // Specifies the weekly time range during which system maintenance can occur,
  9367. // in Universal Coordinated Time (UTC).
  9368. PreferredMaintenanceWindow *string `type:"string"`
  9369. // Contains one or more identifiers of the Read Replicas associated with this
  9370. // DB cluster.
  9371. ReadReplicaIdentifiers []*string `locationNameList:"ReadReplicaIdentifier" type:"list"`
  9372. // The reader endpoint for the DB cluster. The reader endpoint for a DB cluster
  9373. // load-balances connections across the Aurora Replicas that are available in
  9374. // a DB cluster. As clients request new connections to the reader endpoint,
  9375. // Aurora distributes the connection requests among the Aurora Replicas in the
  9376. // DB cluster. This functionality can help balance your read workload across
  9377. // multiple Aurora Replicas in your DB cluster.
  9378. //
  9379. // If a failover occurs, and the Aurora Replica that you are connected to is
  9380. // promoted to be the primary instance, your connection will be dropped. To
  9381. // continue sending your read workload to other Aurora Replicas in the cluster,
  9382. // you can then recoonect to the reader endpoint.
  9383. ReaderEndpoint *string `type:"string"`
  9384. // Contains the identifier of the source DB cluster if this DB cluster is a
  9385. // Read Replica.
  9386. ReplicationSourceIdentifier *string `type:"string"`
  9387. // Specifies the current state of this DB cluster.
  9388. Status *string `type:"string"`
  9389. // Specifies whether the DB cluster is encrypted.
  9390. StorageEncrypted *bool `type:"boolean"`
  9391. // Provides a list of VPC security groups that the DB cluster belongs to.
  9392. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"`
  9393. }
  9394. // String returns the string representation
  9395. func (s DBCluster) String() string {
  9396. return awsutil.Prettify(s)
  9397. }
  9398. // GoString returns the string representation
  9399. func (s DBCluster) GoString() string {
  9400. return s.String()
  9401. }
  9402. // Contains information about an instance that is part of a DB cluster.
  9403. type DBClusterMember struct {
  9404. _ struct{} `type:"structure"`
  9405. // Specifies the status of the DB cluster parameter group for this member of
  9406. // the DB cluster.
  9407. DBClusterParameterGroupStatus *string `type:"string"`
  9408. // Specifies the instance identifier for this member of the DB cluster.
  9409. DBInstanceIdentifier *string `type:"string"`
  9410. // Value that is true if the cluster member is the primary instance for the
  9411. // DB cluster and false otherwise.
  9412. IsClusterWriter *bool `type:"boolean"`
  9413. // A value that specifies the order in which an Aurora Replica is promoted to
  9414. // the primary instance after a failure of the existing primary instance. For
  9415. // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance).
  9416. PromotionTier *int64 `type:"integer"`
  9417. }
  9418. // String returns the string representation
  9419. func (s DBClusterMember) String() string {
  9420. return awsutil.Prettify(s)
  9421. }
  9422. // GoString returns the string representation
  9423. func (s DBClusterMember) GoString() string {
  9424. return s.String()
  9425. }
  9426. // Contains status information for a DB cluster option group.
  9427. type DBClusterOptionGroupStatus struct {
  9428. _ struct{} `type:"structure"`
  9429. // Specifies the name of the DB cluster option group.
  9430. DBClusterOptionGroupName *string `type:"string"`
  9431. // Specifies the status of the DB cluster option group.
  9432. Status *string `type:"string"`
  9433. }
  9434. // String returns the string representation
  9435. func (s DBClusterOptionGroupStatus) String() string {
  9436. return awsutil.Prettify(s)
  9437. }
  9438. // GoString returns the string representation
  9439. func (s DBClusterOptionGroupStatus) GoString() string {
  9440. return s.String()
  9441. }
  9442. // Contains the result of a successful invocation of the CreateDBClusterParameterGroup
  9443. // or CopyDBClusterParameterGroup action.
  9444. //
  9445. // This data type is used as a request parameter in the DeleteDBClusterParameterGroup
  9446. // action, and as a response element in the DescribeDBClusterParameterGroups
  9447. // action.
  9448. type DBClusterParameterGroup struct {
  9449. _ struct{} `type:"structure"`
  9450. // The Amazon Resource Name (ARN) for the DB cluster parameter group.
  9451. DBClusterParameterGroupArn *string `type:"string"`
  9452. // Provides the name of the DB cluster parameter group.
  9453. DBClusterParameterGroupName *string `type:"string"`
  9454. // Provides the name of the DB parameter group family that this DB cluster parameter
  9455. // group is compatible with.
  9456. DBParameterGroupFamily *string `type:"string"`
  9457. // Provides the customer-specified description for this DB cluster parameter
  9458. // group.
  9459. Description *string `type:"string"`
  9460. }
  9461. // String returns the string representation
  9462. func (s DBClusterParameterGroup) String() string {
  9463. return awsutil.Prettify(s)
  9464. }
  9465. // GoString returns the string representation
  9466. func (s DBClusterParameterGroup) GoString() string {
  9467. return s.String()
  9468. }
  9469. type DBClusterParameterGroupNameMessage struct {
  9470. _ struct{} `type:"structure"`
  9471. // The name of the DB cluster parameter group.
  9472. //
  9473. // Constraints:
  9474. //
  9475. // * Must be 1 to 255 alphanumeric characters
  9476. //
  9477. // * First character must be a letter
  9478. //
  9479. // * Cannot end with a hyphen or contain two consecutive hyphens
  9480. //
  9481. // This value is stored as a lowercase string.
  9482. DBClusterParameterGroupName *string `type:"string"`
  9483. }
  9484. // String returns the string representation
  9485. func (s DBClusterParameterGroupNameMessage) String() string {
  9486. return awsutil.Prettify(s)
  9487. }
  9488. // GoString returns the string representation
  9489. func (s DBClusterParameterGroupNameMessage) GoString() string {
  9490. return s.String()
  9491. }
  9492. // Describes an AWS Identity and Access Management (IAM) role that is associated
  9493. // with a DB cluster.
  9494. type DBClusterRole struct {
  9495. _ struct{} `type:"structure"`
  9496. // The Amazon Resource Name (ARN) of the IAM role that is associated with the
  9497. // DB cluster.
  9498. RoleArn *string `type:"string"`
  9499. // Describes the state of association between the IAM role and the DB cluster.
  9500. // The Status property returns one of the following values:
  9501. //
  9502. // * ACTIVE - the IAM role ARN is associated with the DB cluster and can
  9503. // be used to access other AWS services on your behalf.
  9504. //
  9505. // * PENDING - the IAM role ARN is being associated with the DB cluster.
  9506. //
  9507. // * INVALID - the IAM role ARN is associated with the DB cluster, but the
  9508. // DB cluster is unable to assume the IAM role in order to access other AWS
  9509. // services on your behalf.
  9510. Status *string `type:"string"`
  9511. }
  9512. // String returns the string representation
  9513. func (s DBClusterRole) String() string {
  9514. return awsutil.Prettify(s)
  9515. }
  9516. // GoString returns the string representation
  9517. func (s DBClusterRole) GoString() string {
  9518. return s.String()
  9519. }
  9520. // Contains the result of a successful invocation of the following actions:
  9521. //
  9522. // * CreateDBClusterSnapshot
  9523. //
  9524. // * DeleteDBClusterSnapshot
  9525. //
  9526. // This data type is used as a response element in the DescribeDBClusterSnapshots
  9527. // action.
  9528. type DBClusterSnapshot struct {
  9529. _ struct{} `type:"structure"`
  9530. // Specifies the allocated storage size in gigabytes (GB).
  9531. AllocatedStorage *int64 `type:"integer"`
  9532. // Provides the list of EC2 Availability Zones that instances in the DB cluster
  9533. // snapshot can be restored in.
  9534. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  9535. // Specifies the time when the DB cluster was created, in Universal Coordinated
  9536. // Time (UTC).
  9537. ClusterCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  9538. // Specifies the DB cluster identifier of the DB cluster that this DB cluster
  9539. // snapshot was created from.
  9540. DBClusterIdentifier *string `type:"string"`
  9541. // The Amazon Resource Name (ARN) for the DB cluster snapshot.
  9542. DBClusterSnapshotArn *string `type:"string"`
  9543. // Specifies the identifier for the DB cluster snapshot.
  9544. DBClusterSnapshotIdentifier *string `type:"string"`
  9545. // Specifies the name of the database engine.
  9546. Engine *string `type:"string"`
  9547. // Provides the version of the database engine for this DB cluster snapshot.
  9548. EngineVersion *string `type:"string"`
  9549. // If StorageEncrypted is true, the KMS key identifier for the encrypted DB
  9550. // cluster snapshot.
  9551. KmsKeyId *string `type:"string"`
  9552. // Provides the license model information for this DB cluster snapshot.
  9553. LicenseModel *string `type:"string"`
  9554. // Provides the master username for the DB cluster snapshot.
  9555. MasterUsername *string `type:"string"`
  9556. // Specifies the percentage of the estimated data that has been transferred.
  9557. PercentProgress *int64 `type:"integer"`
  9558. // Specifies the port that the DB cluster was listening on at the time of the
  9559. // snapshot.
  9560. Port *int64 `type:"integer"`
  9561. // Provides the time when the snapshot was taken, in Universal Coordinated Time
  9562. // (UTC).
  9563. SnapshotCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  9564. // Provides the type of the DB cluster snapshot.
  9565. SnapshotType *string `type:"string"`
  9566. // Specifies the status of this DB cluster snapshot.
  9567. Status *string `type:"string"`
  9568. // Specifies whether the DB cluster snapshot is encrypted.
  9569. StorageEncrypted *bool `type:"boolean"`
  9570. // Provides the VPC ID associated with the DB cluster snapshot.
  9571. VpcId *string `type:"string"`
  9572. }
  9573. // String returns the string representation
  9574. func (s DBClusterSnapshot) String() string {
  9575. return awsutil.Prettify(s)
  9576. }
  9577. // GoString returns the string representation
  9578. func (s DBClusterSnapshot) GoString() string {
  9579. return s.String()
  9580. }
  9581. // Contains the name and values of a manual DB cluster snapshot attribute.
  9582. //
  9583. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  9584. // to restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute
  9585. // API action.
  9586. type DBClusterSnapshotAttribute struct {
  9587. _ struct{} `type:"structure"`
  9588. // The name of the manual DB cluster snapshot attribute.
  9589. //
  9590. // The attribute named restore refers to the list of AWS accounts that have
  9591. // permission to copy or restore the manual DB cluster snapshot. For more information,
  9592. // see the ModifyDBClusterSnapshotAttribute API action.
  9593. AttributeName *string `type:"string"`
  9594. // The value(s) for the manual DB cluster snapshot attribute.
  9595. //
  9596. // If the AttributeName field is set to restore, then this element returns a
  9597. // list of IDs of the AWS accounts that are authorized to copy or restore the
  9598. // manual DB cluster snapshot. If a value of all is in the list, then the manual
  9599. // DB cluster snapshot is public and available for any AWS account to copy or
  9600. // restore.
  9601. AttributeValues []*string `locationNameList:"AttributeValue" type:"list"`
  9602. }
  9603. // String returns the string representation
  9604. func (s DBClusterSnapshotAttribute) String() string {
  9605. return awsutil.Prettify(s)
  9606. }
  9607. // GoString returns the string representation
  9608. func (s DBClusterSnapshotAttribute) GoString() string {
  9609. return s.String()
  9610. }
  9611. // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes
  9612. // API action.
  9613. //
  9614. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  9615. // to copy or restore a manual DB cluster snapshot. For more information, see
  9616. // the ModifyDBClusterSnapshotAttribute API action.
  9617. type DBClusterSnapshotAttributesResult struct {
  9618. _ struct{} `type:"structure"`
  9619. // The list of attributes and values for the manual DB cluster snapshot.
  9620. DBClusterSnapshotAttributes []*DBClusterSnapshotAttribute `locationNameList:"DBClusterSnapshotAttribute" type:"list"`
  9621. // The identifier of the manual DB cluster snapshot that the attributes apply
  9622. // to.
  9623. DBClusterSnapshotIdentifier *string `type:"string"`
  9624. }
  9625. // String returns the string representation
  9626. func (s DBClusterSnapshotAttributesResult) String() string {
  9627. return awsutil.Prettify(s)
  9628. }
  9629. // GoString returns the string representation
  9630. func (s DBClusterSnapshotAttributesResult) GoString() string {
  9631. return s.String()
  9632. }
  9633. // This data type is used as a response element in the action DescribeDBEngineVersions.
  9634. type DBEngineVersion struct {
  9635. _ struct{} `type:"structure"`
  9636. // The description of the database engine.
  9637. DBEngineDescription *string `type:"string"`
  9638. // The description of the database engine version.
  9639. DBEngineVersionDescription *string `type:"string"`
  9640. // The name of the DB parameter group family for the database engine.
  9641. DBParameterGroupFamily *string `type:"string"`
  9642. // The default character set for new instances of this engine version, if the
  9643. // CharacterSetName parameter of the CreateDBInstance API is not specified.
  9644. DefaultCharacterSet *CharacterSet `type:"structure"`
  9645. // The name of the database engine.
  9646. Engine *string `type:"string"`
  9647. // The version number of the database engine.
  9648. EngineVersion *string `type:"string"`
  9649. // A list of the character sets supported by this engine for the CharacterSetName
  9650. // parameter of the CreateDBInstance action.
  9651. SupportedCharacterSets []*CharacterSet `locationNameList:"CharacterSet" type:"list"`
  9652. // A list of the time zones supported by this engine for the Timezone parameter
  9653. // of the CreateDBInstance action.
  9654. SupportedTimezones []*Timezone `locationNameList:"Timezone" type:"list"`
  9655. // A list of engine versions that this database engine version can be upgraded
  9656. // to.
  9657. ValidUpgradeTarget []*UpgradeTarget `locationNameList:"UpgradeTarget" type:"list"`
  9658. }
  9659. // String returns the string representation
  9660. func (s DBEngineVersion) String() string {
  9661. return awsutil.Prettify(s)
  9662. }
  9663. // GoString returns the string representation
  9664. func (s DBEngineVersion) GoString() string {
  9665. return s.String()
  9666. }
  9667. // Contains the result of a successful invocation of the following actions:
  9668. //
  9669. // * CreateDBInstance
  9670. //
  9671. // * DeleteDBInstance
  9672. //
  9673. // * ModifyDBInstance
  9674. //
  9675. // This data type is used as a response element in the DescribeDBInstances action.
  9676. type DBInstance struct {
  9677. _ struct{} `type:"structure"`
  9678. // Specifies the allocated storage size specified in gigabytes.
  9679. AllocatedStorage *int64 `type:"integer"`
  9680. // Indicates that minor version patches are applied automatically.
  9681. AutoMinorVersionUpgrade *bool `type:"boolean"`
  9682. // Specifies the name of the Availability Zone the DB instance is located in.
  9683. AvailabilityZone *string `type:"string"`
  9684. // Specifies the number of days for which automatic DB snapshots are retained.
  9685. BackupRetentionPeriod *int64 `type:"integer"`
  9686. // The identifier of the CA certificate for this DB instance.
  9687. CACertificateIdentifier *string `type:"string"`
  9688. // If present, specifies the name of the character set that this instance is
  9689. // associated with.
  9690. CharacterSetName *string `type:"string"`
  9691. // Specifies whether tags are copied from the DB instance to snapshots of the
  9692. // DB instance.
  9693. CopyTagsToSnapshot *bool `type:"boolean"`
  9694. // If the DB instance is a member of a DB cluster, contains the name of the
  9695. // DB cluster that the DB instance is a member of.
  9696. DBClusterIdentifier *string `type:"string"`
  9697. // The Amazon Resource Name (ARN) for the DB instance.
  9698. DBInstanceArn *string `type:"string"`
  9699. // Contains the name of the compute and memory capacity class of the DB instance.
  9700. DBInstanceClass *string `type:"string"`
  9701. // Contains a user-supplied database identifier. This identifier is the unique
  9702. // key that identifies a DB instance.
  9703. DBInstanceIdentifier *string `type:"string"`
  9704. // Specifies the current state of this database.
  9705. DBInstanceStatus *string `type:"string"`
  9706. // The meaning of this parameter differs according to the database engine you
  9707. // use. For example, this value returns MySQL, MariaDB, or PostgreSQL information
  9708. // when returning values from CreateDBInstanceReadReplica since Read Replicas
  9709. // are only supported for these engines.
  9710. //
  9711. // MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora
  9712. //
  9713. // Contains the name of the initial database of this instance that was provided
  9714. // at create time, if one was specified when the DB instance was created. This
  9715. // same name is returned for the life of the DB instance.
  9716. //
  9717. // Type: String
  9718. //
  9719. // Oracle
  9720. //
  9721. // Contains the Oracle System ID (SID) of the created DB instance. Not shown
  9722. // when the returned parameters do not apply to an Oracle DB instance.
  9723. DBName *string `type:"string"`
  9724. // Provides the list of DB parameter groups applied to this DB instance.
  9725. DBParameterGroups []*DBParameterGroupStatus `locationNameList:"DBParameterGroup" type:"list"`
  9726. // Provides List of DB security group elements containing only DBSecurityGroup.Name
  9727. // and DBSecurityGroup.Status subelements.
  9728. DBSecurityGroups []*DBSecurityGroupMembership `locationNameList:"DBSecurityGroup" type:"list"`
  9729. // Specifies information on the subnet group associated with the DB instance,
  9730. // including the name, description, and subnets in the subnet group.
  9731. DBSubnetGroup *DBSubnetGroup `type:"structure"`
  9732. // Specifies the port that the DB instance listens on. If the DB instance is
  9733. // part of a DB cluster, this can be a different port than the DB cluster port.
  9734. DbInstancePort *int64 `type:"integer"`
  9735. // The region-unique, immutable identifier for the DB instance. This identifier
  9736. // is found in AWS CloudTrail log entries whenever the KMS key for the DB instance
  9737. // is accessed.
  9738. DbiResourceId *string `type:"string"`
  9739. // The Active Directory Domain membership records associated with the DB instance.
  9740. DomainMemberships []*DomainMembership `locationNameList:"DomainMembership" type:"list"`
  9741. // Specifies the connection endpoint.
  9742. Endpoint *Endpoint `type:"structure"`
  9743. // Provides the name of the database engine to be used for this DB instance.
  9744. Engine *string `type:"string"`
  9745. // Indicates the database engine version.
  9746. EngineVersion *string `type:"string"`
  9747. // The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that
  9748. // receives the Enhanced Monitoring metrics data for the DB instance.
  9749. EnhancedMonitoringResourceArn *string `type:"string"`
  9750. // Provides the date and time the DB instance was created.
  9751. InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  9752. // Specifies the Provisioned IOPS (I/O operations per second) value.
  9753. Iops *int64 `type:"integer"`
  9754. // If StorageEncrypted is true, the KMS key identifier for the encrypted DB
  9755. // instance.
  9756. KmsKeyId *string `type:"string"`
  9757. // Specifies the latest time to which a database can be restored with point-in-time
  9758. // restore.
  9759. LatestRestorableTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  9760. // License model information for this DB instance.
  9761. LicenseModel *string `type:"string"`
  9762. // Contains the master username for the DB instance.
  9763. MasterUsername *string `type:"string"`
  9764. // The interval, in seconds, between points when Enhanced Monitoring metrics
  9765. // are collected for the DB instance.
  9766. MonitoringInterval *int64 `type:"integer"`
  9767. // The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics
  9768. // to CloudWatch Logs.
  9769. MonitoringRoleArn *string `type:"string"`
  9770. // Specifies if the DB instance is a Multi-AZ deployment.
  9771. MultiAZ *bool `type:"boolean"`
  9772. // Provides the list of option group memberships for this DB instance.
  9773. OptionGroupMemberships []*OptionGroupMembership `locationNameList:"OptionGroupMembership" type:"list"`
  9774. // Specifies that changes to the DB instance are pending. This element is only
  9775. // included when changes are pending. Specific changes are identified by subelements.
  9776. PendingModifiedValues *PendingModifiedValues `type:"structure"`
  9777. // Specifies the daily time range during which automated backups are created
  9778. // if automated backups are enabled, as determined by the BackupRetentionPeriod.
  9779. PreferredBackupWindow *string `type:"string"`
  9780. // Specifies the weekly time range during which system maintenance can occur,
  9781. // in Universal Coordinated Time (UTC).
  9782. PreferredMaintenanceWindow *string `type:"string"`
  9783. // A value that specifies the order in which an Aurora Replica is promoted to
  9784. // the primary instance after a failure of the existing primary instance. For
  9785. // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance).
  9786. PromotionTier *int64 `type:"integer"`
  9787. // Specifies the accessibility options for the DB instance. A value of true
  9788. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  9789. // which resolves to a public IP address. A value of false specifies an internal
  9790. // instance with a DNS name that resolves to a private IP address.
  9791. //
  9792. // Default: The default behavior varies depending on whether a VPC has been
  9793. // requested or not. The following list shows the default behavior in each case.
  9794. //
  9795. // * Default VPC:true
  9796. //
  9797. // * VPC:false
  9798. //
  9799. // If no DB subnet group has been specified as part of the request and the PubliclyAccessible
  9800. // value has not been set, the DB instance will be publicly accessible. If a
  9801. // specific DB subnet group has been specified as part of the request and the
  9802. // PubliclyAccessible value has not been set, the DB instance will be private.
  9803. PubliclyAccessible *bool `type:"boolean"`
  9804. // Contains one or more identifiers of the Read Replicas associated with this
  9805. // DB instance.
  9806. ReadReplicaDBInstanceIdentifiers []*string `locationNameList:"ReadReplicaDBInstanceIdentifier" type:"list"`
  9807. // Contains the identifier of the source DB instance if this DB instance is
  9808. // a Read Replica.
  9809. ReadReplicaSourceDBInstanceIdentifier *string `type:"string"`
  9810. // If present, specifies the name of the secondary Availability Zone for a DB
  9811. // instance with multi-AZ support.
  9812. SecondaryAvailabilityZone *string `type:"string"`
  9813. // The status of a Read Replica. If the instance is not a Read Replica, this
  9814. // will be blank.
  9815. StatusInfos []*DBInstanceStatusInfo `locationNameList:"DBInstanceStatusInfo" type:"list"`
  9816. // Specifies whether the DB instance is encrypted.
  9817. StorageEncrypted *bool `type:"boolean"`
  9818. // Specifies the storage type associated with DB instance.
  9819. StorageType *string `type:"string"`
  9820. // The ARN from the key store with which the instance is associated for TDE
  9821. // encryption.
  9822. TdeCredentialArn *string `type:"string"`
  9823. // The time zone of the DB instance. In most cases, the Timezone element is
  9824. // empty. Timezone content appears only for Microsoft SQL Server DB instances
  9825. // that were created with a time zone specified.
  9826. Timezone *string `type:"string"`
  9827. // Provides a list of VPC security group elements that the DB instance belongs
  9828. // to.
  9829. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"`
  9830. }
  9831. // String returns the string representation
  9832. func (s DBInstance) String() string {
  9833. return awsutil.Prettify(s)
  9834. }
  9835. // GoString returns the string representation
  9836. func (s DBInstance) GoString() string {
  9837. return s.String()
  9838. }
  9839. // Provides a list of status information for a DB instance.
  9840. type DBInstanceStatusInfo struct {
  9841. _ struct{} `type:"structure"`
  9842. // Details of the error if there is an error for the instance. If the instance
  9843. // is not in an error state, this value is blank.
  9844. Message *string `type:"string"`
  9845. // Boolean value that is true if the instance is operating normally, or false
  9846. // if the instance is in an error state.
  9847. Normal *bool `type:"boolean"`
  9848. // Status of the DB instance. For a StatusType of read replica, the values can
  9849. // be replicating, error, stopped, or terminated.
  9850. Status *string `type:"string"`
  9851. // This value is currently "read replication."
  9852. StatusType *string `type:"string"`
  9853. }
  9854. // String returns the string representation
  9855. func (s DBInstanceStatusInfo) String() string {
  9856. return awsutil.Prettify(s)
  9857. }
  9858. // GoString returns the string representation
  9859. func (s DBInstanceStatusInfo) GoString() string {
  9860. return s.String()
  9861. }
  9862. // Contains the result of a successful invocation of the CreateDBParameterGroup
  9863. // action.
  9864. //
  9865. // This data type is used as a request parameter in the DeleteDBParameterGroup
  9866. // action, and as a response element in the DescribeDBParameterGroups action.
  9867. type DBParameterGroup struct {
  9868. _ struct{} `type:"structure"`
  9869. // The Amazon Resource Name (ARN) for the DB parameter group.
  9870. DBParameterGroupArn *string `type:"string"`
  9871. // Provides the name of the DB parameter group family that this DB parameter
  9872. // group is compatible with.
  9873. DBParameterGroupFamily *string `type:"string"`
  9874. // Provides the name of the DB parameter group.
  9875. DBParameterGroupName *string `type:"string"`
  9876. // Provides the customer-specified description for this DB parameter group.
  9877. Description *string `type:"string"`
  9878. }
  9879. // String returns the string representation
  9880. func (s DBParameterGroup) String() string {
  9881. return awsutil.Prettify(s)
  9882. }
  9883. // GoString returns the string representation
  9884. func (s DBParameterGroup) GoString() string {
  9885. return s.String()
  9886. }
  9887. // Contains the result of a successful invocation of the ModifyDBParameterGroup
  9888. // or ResetDBParameterGroup action.
  9889. type DBParameterGroupNameMessage struct {
  9890. _ struct{} `type:"structure"`
  9891. // Provides the name of the DB parameter group.
  9892. DBParameterGroupName *string `type:"string"`
  9893. }
  9894. // String returns the string representation
  9895. func (s DBParameterGroupNameMessage) String() string {
  9896. return awsutil.Prettify(s)
  9897. }
  9898. // GoString returns the string representation
  9899. func (s DBParameterGroupNameMessage) GoString() string {
  9900. return s.String()
  9901. }
  9902. // The status of the DB parameter group.
  9903. //
  9904. // This data type is used as a response element in the following actions:
  9905. //
  9906. // * CreateDBInstance
  9907. //
  9908. // * CreateDBInstanceReadReplica
  9909. //
  9910. // * DeleteDBInstance
  9911. //
  9912. // * ModifyDBInstance
  9913. //
  9914. // * RebootDBInstance
  9915. //
  9916. // * RestoreDBInstanceFromDBSnapshot
  9917. type DBParameterGroupStatus struct {
  9918. _ struct{} `type:"structure"`
  9919. // The name of the DP parameter group.
  9920. DBParameterGroupName *string `type:"string"`
  9921. // The status of parameter updates.
  9922. ParameterApplyStatus *string `type:"string"`
  9923. }
  9924. // String returns the string representation
  9925. func (s DBParameterGroupStatus) String() string {
  9926. return awsutil.Prettify(s)
  9927. }
  9928. // GoString returns the string representation
  9929. func (s DBParameterGroupStatus) GoString() string {
  9930. return s.String()
  9931. }
  9932. // Contains the result of a successful invocation of the following actions:
  9933. //
  9934. // * DescribeDBSecurityGroups
  9935. //
  9936. // * AuthorizeDBSecurityGroupIngress
  9937. //
  9938. // * CreateDBSecurityGroup
  9939. //
  9940. // * RevokeDBSecurityGroupIngress
  9941. //
  9942. // This data type is used as a response element in the DescribeDBSecurityGroups
  9943. // action.
  9944. type DBSecurityGroup struct {
  9945. _ struct{} `type:"structure"`
  9946. // The Amazon Resource Name (ARN) for the DB security group.
  9947. DBSecurityGroupArn *string `type:"string"`
  9948. // Provides the description of the DB security group.
  9949. DBSecurityGroupDescription *string `type:"string"`
  9950. // Specifies the name of the DB security group.
  9951. DBSecurityGroupName *string `type:"string"`
  9952. // Contains a list of EC2SecurityGroup elements.
  9953. EC2SecurityGroups []*EC2SecurityGroup `locationNameList:"EC2SecurityGroup" type:"list"`
  9954. // Contains a list of IPRange elements.
  9955. IPRanges []*IPRange `locationNameList:"IPRange" type:"list"`
  9956. // Provides the AWS ID of the owner of a specific DB security group.
  9957. OwnerId *string `type:"string"`
  9958. // Provides the VpcId of the DB security group.
  9959. VpcId *string `type:"string"`
  9960. }
  9961. // String returns the string representation
  9962. func (s DBSecurityGroup) String() string {
  9963. return awsutil.Prettify(s)
  9964. }
  9965. // GoString returns the string representation
  9966. func (s DBSecurityGroup) GoString() string {
  9967. return s.String()
  9968. }
  9969. // This data type is used as a response element in the following actions:
  9970. //
  9971. // * ModifyDBInstance
  9972. //
  9973. // * RebootDBInstance
  9974. //
  9975. // * RestoreDBInstanceFromDBSnapshot
  9976. //
  9977. // * RestoreDBInstanceToPointInTime
  9978. type DBSecurityGroupMembership struct {
  9979. _ struct{} `type:"structure"`
  9980. // The name of the DB security group.
  9981. DBSecurityGroupName *string `type:"string"`
  9982. // The status of the DB security group.
  9983. Status *string `type:"string"`
  9984. }
  9985. // String returns the string representation
  9986. func (s DBSecurityGroupMembership) String() string {
  9987. return awsutil.Prettify(s)
  9988. }
  9989. // GoString returns the string representation
  9990. func (s DBSecurityGroupMembership) GoString() string {
  9991. return s.String()
  9992. }
  9993. // Contains the result of a successful invocation of the following actions:
  9994. //
  9995. // * CreateDBSnapshot
  9996. //
  9997. // * DeleteDBSnapshot
  9998. //
  9999. // This data type is used as a response element in the DescribeDBSnapshots action.
  10000. type DBSnapshot struct {
  10001. _ struct{} `type:"structure"`
  10002. // Specifies the allocated storage size in gigabytes (GB).
  10003. AllocatedStorage *int64 `type:"integer"`
  10004. // Specifies the name of the Availability Zone the DB instance was located in
  10005. // at the time of the DB snapshot.
  10006. AvailabilityZone *string `type:"string"`
  10007. // Specifies the DB instance identifier of the DB instance this DB snapshot
  10008. // was created from.
  10009. DBInstanceIdentifier *string `type:"string"`
  10010. // The Amazon Resource Name (ARN) for the DB snapshot.
  10011. DBSnapshotArn *string `type:"string"`
  10012. // Specifies the identifier for the DB snapshot.
  10013. DBSnapshotIdentifier *string `type:"string"`
  10014. // Specifies whether the DB snapshot is encrypted.
  10015. Encrypted *bool `type:"boolean"`
  10016. // Specifies the name of the database engine.
  10017. Engine *string `type:"string"`
  10018. // Specifies the version of the database engine.
  10019. EngineVersion *string `type:"string"`
  10020. // Specifies the time when the snapshot was taken, in Universal Coordinated
  10021. // Time (UTC).
  10022. InstanceCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  10023. // Specifies the Provisioned IOPS (I/O operations per second) value of the DB
  10024. // instance at the time of the snapshot.
  10025. Iops *int64 `type:"integer"`
  10026. // If Encrypted is true, the KMS key identifier for the encrypted DB snapshot.
  10027. KmsKeyId *string `type:"string"`
  10028. // License model information for the restored DB instance.
  10029. LicenseModel *string `type:"string"`
  10030. // Provides the master username for the DB snapshot.
  10031. MasterUsername *string `type:"string"`
  10032. // Provides the option group name for the DB snapshot.
  10033. OptionGroupName *string `type:"string"`
  10034. // The percentage of the estimated data that has been transferred.
  10035. PercentProgress *int64 `type:"integer"`
  10036. // Specifies the port that the database engine was listening on at the time
  10037. // of the snapshot.
  10038. Port *int64 `type:"integer"`
  10039. // Provides the time when the snapshot was taken, in Universal Coordinated Time
  10040. // (UTC).
  10041. SnapshotCreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  10042. // Provides the type of the DB snapshot.
  10043. SnapshotType *string `type:"string"`
  10044. // The DB snapshot Arn that the DB snapshot was copied from. It only has value
  10045. // in case of cross customer or cross region copy.
  10046. SourceDBSnapshotIdentifier *string `type:"string"`
  10047. // The region that the DB snapshot was created in or copied from.
  10048. SourceRegion *string `type:"string"`
  10049. // Specifies the status of this DB snapshot.
  10050. Status *string `type:"string"`
  10051. // Specifies the storage type associated with DB snapshot.
  10052. StorageType *string `type:"string"`
  10053. // The ARN from the key store with which to associate the instance for TDE encryption.
  10054. TdeCredentialArn *string `type:"string"`
  10055. // The time zone of the DB snapshot. In most cases, the Timezone element is
  10056. // empty. Timezone content appears only for snapshots taken from Microsoft SQL
  10057. // Server DB instances that were created with a time zone specified.
  10058. Timezone *string `type:"string"`
  10059. // Provides the VPC ID associated with the DB snapshot.
  10060. VpcId *string `type:"string"`
  10061. }
  10062. // String returns the string representation
  10063. func (s DBSnapshot) String() string {
  10064. return awsutil.Prettify(s)
  10065. }
  10066. // GoString returns the string representation
  10067. func (s DBSnapshot) GoString() string {
  10068. return s.String()
  10069. }
  10070. // Contains the name and values of a manual DB snapshot attribute
  10071. //
  10072. // Manual DB snapshot attributes are used to authorize other AWS accounts to
  10073. // restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
  10074. // API.
  10075. type DBSnapshotAttribute struct {
  10076. _ struct{} `type:"structure"`
  10077. // The name of the manual DB snapshot attribute.
  10078. //
  10079. // The attribute named restore refers to the list of AWS accounts that have
  10080. // permission to copy or restore the manual DB cluster snapshot. For more information,
  10081. // see the ModifyDBSnapshotAttribute API action.
  10082. AttributeName *string `type:"string"`
  10083. // The value or values for the manual DB snapshot attribute.
  10084. //
  10085. // If the AttributeName field is set to restore, then this element returns a
  10086. // list of IDs of the AWS accounts that are authorized to copy or restore the
  10087. // manual DB snapshot. If a value of all is in the list, then the manual DB
  10088. // snapshot is public and available for any AWS account to copy or restore.
  10089. AttributeValues []*string `locationNameList:"AttributeValue" type:"list"`
  10090. }
  10091. // String returns the string representation
  10092. func (s DBSnapshotAttribute) String() string {
  10093. return awsutil.Prettify(s)
  10094. }
  10095. // GoString returns the string representation
  10096. func (s DBSnapshotAttribute) GoString() string {
  10097. return s.String()
  10098. }
  10099. // Contains the results of a successful call to the DescribeDBSnapshotAttributes
  10100. // API action.
  10101. //
  10102. // Manual DB snapshot attributes are used to authorize other AWS accounts to
  10103. // copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
  10104. // API action.
  10105. type DBSnapshotAttributesResult struct {
  10106. _ struct{} `type:"structure"`
  10107. // The list of attributes and values for the manual DB snapshot.
  10108. DBSnapshotAttributes []*DBSnapshotAttribute `locationNameList:"DBSnapshotAttribute" type:"list"`
  10109. // The identifier of the manual DB snapshot that the attributes apply to.
  10110. DBSnapshotIdentifier *string `type:"string"`
  10111. }
  10112. // String returns the string representation
  10113. func (s DBSnapshotAttributesResult) String() string {
  10114. return awsutil.Prettify(s)
  10115. }
  10116. // GoString returns the string representation
  10117. func (s DBSnapshotAttributesResult) GoString() string {
  10118. return s.String()
  10119. }
  10120. // Contains the result of a successful invocation of the following actions:
  10121. //
  10122. // * CreateDBSubnetGroup
  10123. //
  10124. // * ModifyDBSubnetGroup
  10125. //
  10126. // * DescribeDBSubnetGroups
  10127. //
  10128. // * DeleteDBSubnetGroup
  10129. //
  10130. // This data type is used as a response element in the DescribeDBSubnetGroups
  10131. // action.
  10132. type DBSubnetGroup struct {
  10133. _ struct{} `type:"structure"`
  10134. // The Amazon Resource Name (ARN) for the DB subnet group.
  10135. DBSubnetGroupArn *string `type:"string"`
  10136. // Provides the description of the DB subnet group.
  10137. DBSubnetGroupDescription *string `type:"string"`
  10138. // The name of the DB subnet group.
  10139. DBSubnetGroupName *string `type:"string"`
  10140. // Provides the status of the DB subnet group.
  10141. SubnetGroupStatus *string `type:"string"`
  10142. // Contains a list of Subnet elements.
  10143. Subnets []*Subnet `locationNameList:"Subnet" type:"list"`
  10144. // Provides the VpcId of the DB subnet group.
  10145. VpcId *string `type:"string"`
  10146. }
  10147. // String returns the string representation
  10148. func (s DBSubnetGroup) String() string {
  10149. return awsutil.Prettify(s)
  10150. }
  10151. // GoString returns the string representation
  10152. func (s DBSubnetGroup) GoString() string {
  10153. return s.String()
  10154. }
  10155. type DeleteDBClusterInput struct {
  10156. _ struct{} `type:"structure"`
  10157. // The DB cluster identifier for the DB cluster to be deleted. This parameter
  10158. // isn't case-sensitive.
  10159. //
  10160. // Constraints:
  10161. //
  10162. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  10163. //
  10164. // * First character must be a letter
  10165. //
  10166. // * Cannot end with a hyphen or contain two consecutive hyphens
  10167. //
  10168. // DBClusterIdentifier is a required field
  10169. DBClusterIdentifier *string `type:"string" required:"true"`
  10170. // The DB cluster snapshot identifier of the new DB cluster snapshot created
  10171. // when SkipFinalSnapshot is set to false.
  10172. //
  10173. // Specifying this parameter and also setting the SkipFinalShapshot parameter
  10174. // to true results in an error.
  10175. //
  10176. // Constraints:
  10177. //
  10178. // * Must be 1 to 255 alphanumeric characters
  10179. //
  10180. // * First character must be a letter
  10181. //
  10182. // * Cannot end with a hyphen or contain two consecutive hyphens
  10183. FinalDBSnapshotIdentifier *string `type:"string"`
  10184. // Determines whether a final DB cluster snapshot is created before the DB cluster
  10185. // is deleted. If true is specified, no DB cluster snapshot is created. If false
  10186. // is specified, a DB cluster snapshot is created before the DB cluster is deleted.
  10187. //
  10188. // You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot
  10189. // is false.
  10190. //
  10191. // Default: false
  10192. SkipFinalSnapshot *bool `type:"boolean"`
  10193. }
  10194. // String returns the string representation
  10195. func (s DeleteDBClusterInput) String() string {
  10196. return awsutil.Prettify(s)
  10197. }
  10198. // GoString returns the string representation
  10199. func (s DeleteDBClusterInput) GoString() string {
  10200. return s.String()
  10201. }
  10202. // Validate inspects the fields of the type to determine if they are valid.
  10203. func (s *DeleteDBClusterInput) Validate() error {
  10204. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterInput"}
  10205. if s.DBClusterIdentifier == nil {
  10206. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  10207. }
  10208. if invalidParams.Len() > 0 {
  10209. return invalidParams
  10210. }
  10211. return nil
  10212. }
  10213. type DeleteDBClusterOutput struct {
  10214. _ struct{} `type:"structure"`
  10215. // Contains the result of a successful invocation of the following actions:
  10216. //
  10217. // * CreateDBCluster
  10218. //
  10219. // * DeleteDBCluster
  10220. //
  10221. // * FailoverDBCluster
  10222. //
  10223. // * ModifyDBCluster
  10224. //
  10225. // * RestoreDBClusterFromSnapshot
  10226. //
  10227. // * RestoreDBClusterToPointInTime
  10228. //
  10229. // This data type is used as a response element in the DescribeDBClusters action.
  10230. DBCluster *DBCluster `type:"structure"`
  10231. }
  10232. // String returns the string representation
  10233. func (s DeleteDBClusterOutput) String() string {
  10234. return awsutil.Prettify(s)
  10235. }
  10236. // GoString returns the string representation
  10237. func (s DeleteDBClusterOutput) GoString() string {
  10238. return s.String()
  10239. }
  10240. type DeleteDBClusterParameterGroupInput struct {
  10241. _ struct{} `type:"structure"`
  10242. // The name of the DB cluster parameter group.
  10243. //
  10244. // Constraints:
  10245. //
  10246. // * Must be the name of an existing DB cluster parameter group.
  10247. //
  10248. // * You cannot delete a default DB cluster parameter group.
  10249. //
  10250. // * Cannot be associated with any DB clusters.
  10251. //
  10252. // DBClusterParameterGroupName is a required field
  10253. DBClusterParameterGroupName *string `type:"string" required:"true"`
  10254. }
  10255. // String returns the string representation
  10256. func (s DeleteDBClusterParameterGroupInput) String() string {
  10257. return awsutil.Prettify(s)
  10258. }
  10259. // GoString returns the string representation
  10260. func (s DeleteDBClusterParameterGroupInput) GoString() string {
  10261. return s.String()
  10262. }
  10263. // Validate inspects the fields of the type to determine if they are valid.
  10264. func (s *DeleteDBClusterParameterGroupInput) Validate() error {
  10265. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterParameterGroupInput"}
  10266. if s.DBClusterParameterGroupName == nil {
  10267. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  10268. }
  10269. if invalidParams.Len() > 0 {
  10270. return invalidParams
  10271. }
  10272. return nil
  10273. }
  10274. type DeleteDBClusterParameterGroupOutput struct {
  10275. _ struct{} `type:"structure"`
  10276. }
  10277. // String returns the string representation
  10278. func (s DeleteDBClusterParameterGroupOutput) String() string {
  10279. return awsutil.Prettify(s)
  10280. }
  10281. // GoString returns the string representation
  10282. func (s DeleteDBClusterParameterGroupOutput) GoString() string {
  10283. return s.String()
  10284. }
  10285. type DeleteDBClusterSnapshotInput struct {
  10286. _ struct{} `type:"structure"`
  10287. // The identifier of the DB cluster snapshot to delete.
  10288. //
  10289. // Constraints: Must be the name of an existing DB cluster snapshot in the available
  10290. // state.
  10291. //
  10292. // DBClusterSnapshotIdentifier is a required field
  10293. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  10294. }
  10295. // String returns the string representation
  10296. func (s DeleteDBClusterSnapshotInput) String() string {
  10297. return awsutil.Prettify(s)
  10298. }
  10299. // GoString returns the string representation
  10300. func (s DeleteDBClusterSnapshotInput) GoString() string {
  10301. return s.String()
  10302. }
  10303. // Validate inspects the fields of the type to determine if they are valid.
  10304. func (s *DeleteDBClusterSnapshotInput) Validate() error {
  10305. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterSnapshotInput"}
  10306. if s.DBClusterSnapshotIdentifier == nil {
  10307. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  10308. }
  10309. if invalidParams.Len() > 0 {
  10310. return invalidParams
  10311. }
  10312. return nil
  10313. }
  10314. type DeleteDBClusterSnapshotOutput struct {
  10315. _ struct{} `type:"structure"`
  10316. // Contains the result of a successful invocation of the following actions:
  10317. //
  10318. // * CreateDBClusterSnapshot
  10319. //
  10320. // * DeleteDBClusterSnapshot
  10321. //
  10322. // This data type is used as a response element in the DescribeDBClusterSnapshots
  10323. // action.
  10324. DBClusterSnapshot *DBClusterSnapshot `type:"structure"`
  10325. }
  10326. // String returns the string representation
  10327. func (s DeleteDBClusterSnapshotOutput) String() string {
  10328. return awsutil.Prettify(s)
  10329. }
  10330. // GoString returns the string representation
  10331. func (s DeleteDBClusterSnapshotOutput) GoString() string {
  10332. return s.String()
  10333. }
  10334. type DeleteDBInstanceInput struct {
  10335. _ struct{} `type:"structure"`
  10336. // The DB instance identifier for the DB instance to be deleted. This parameter
  10337. // isn't case-sensitive.
  10338. //
  10339. // Constraints:
  10340. //
  10341. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  10342. //
  10343. // * First character must be a letter
  10344. //
  10345. // * Cannot end with a hyphen or contain two consecutive hyphens
  10346. //
  10347. // DBInstanceIdentifier is a required field
  10348. DBInstanceIdentifier *string `type:"string" required:"true"`
  10349. // The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot
  10350. // is set to false.
  10351. //
  10352. // Specifying this parameter and also setting the SkipFinalShapshot parameter
  10353. // to true results in an error.
  10354. //
  10355. // Constraints:
  10356. //
  10357. // * Must be 1 to 255 alphanumeric characters
  10358. //
  10359. // * First character must be a letter
  10360. //
  10361. // * Cannot end with a hyphen or contain two consecutive hyphens
  10362. //
  10363. // * Cannot be specified when deleting a Read Replica.
  10364. FinalDBSnapshotIdentifier *string `type:"string"`
  10365. // Determines whether a final DB snapshot is created before the DB instance
  10366. // is deleted. If true is specified, no DBSnapshot is created. If false is specified,
  10367. // a DB snapshot is created before the DB instance is deleted.
  10368. //
  10369. // Note that when a DB instance is in a failure state and has a status of 'failed',
  10370. // 'incompatible-restore', or 'incompatible-network', it can only be deleted
  10371. // when the SkipFinalSnapshot parameter is set to "true".
  10372. //
  10373. // Specify true when deleting a Read Replica.
  10374. //
  10375. // The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot
  10376. // is false.
  10377. //
  10378. // Default: false
  10379. SkipFinalSnapshot *bool `type:"boolean"`
  10380. }
  10381. // String returns the string representation
  10382. func (s DeleteDBInstanceInput) String() string {
  10383. return awsutil.Prettify(s)
  10384. }
  10385. // GoString returns the string representation
  10386. func (s DeleteDBInstanceInput) GoString() string {
  10387. return s.String()
  10388. }
  10389. // Validate inspects the fields of the type to determine if they are valid.
  10390. func (s *DeleteDBInstanceInput) Validate() error {
  10391. invalidParams := request.ErrInvalidParams{Context: "DeleteDBInstanceInput"}
  10392. if s.DBInstanceIdentifier == nil {
  10393. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  10394. }
  10395. if invalidParams.Len() > 0 {
  10396. return invalidParams
  10397. }
  10398. return nil
  10399. }
  10400. type DeleteDBInstanceOutput struct {
  10401. _ struct{} `type:"structure"`
  10402. // Contains the result of a successful invocation of the following actions:
  10403. //
  10404. // * CreateDBInstance
  10405. //
  10406. // * DeleteDBInstance
  10407. //
  10408. // * ModifyDBInstance
  10409. //
  10410. // This data type is used as a response element in the DescribeDBInstances action.
  10411. DBInstance *DBInstance `type:"structure"`
  10412. }
  10413. // String returns the string representation
  10414. func (s DeleteDBInstanceOutput) String() string {
  10415. return awsutil.Prettify(s)
  10416. }
  10417. // GoString returns the string representation
  10418. func (s DeleteDBInstanceOutput) GoString() string {
  10419. return s.String()
  10420. }
  10421. type DeleteDBParameterGroupInput struct {
  10422. _ struct{} `type:"structure"`
  10423. // The name of the DB parameter group.
  10424. //
  10425. // Constraints:
  10426. //
  10427. // * Must be the name of an existing DB parameter group
  10428. //
  10429. // * You cannot delete a default DB parameter group
  10430. //
  10431. // * Cannot be associated with any DB instances
  10432. //
  10433. // DBParameterGroupName is a required field
  10434. DBParameterGroupName *string `type:"string" required:"true"`
  10435. }
  10436. // String returns the string representation
  10437. func (s DeleteDBParameterGroupInput) String() string {
  10438. return awsutil.Prettify(s)
  10439. }
  10440. // GoString returns the string representation
  10441. func (s DeleteDBParameterGroupInput) GoString() string {
  10442. return s.String()
  10443. }
  10444. // Validate inspects the fields of the type to determine if they are valid.
  10445. func (s *DeleteDBParameterGroupInput) Validate() error {
  10446. invalidParams := request.ErrInvalidParams{Context: "DeleteDBParameterGroupInput"}
  10447. if s.DBParameterGroupName == nil {
  10448. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  10449. }
  10450. if invalidParams.Len() > 0 {
  10451. return invalidParams
  10452. }
  10453. return nil
  10454. }
  10455. type DeleteDBParameterGroupOutput struct {
  10456. _ struct{} `type:"structure"`
  10457. }
  10458. // String returns the string representation
  10459. func (s DeleteDBParameterGroupOutput) String() string {
  10460. return awsutil.Prettify(s)
  10461. }
  10462. // GoString returns the string representation
  10463. func (s DeleteDBParameterGroupOutput) GoString() string {
  10464. return s.String()
  10465. }
  10466. type DeleteDBSecurityGroupInput struct {
  10467. _ struct{} `type:"structure"`
  10468. // The name of the DB security group to delete.
  10469. //
  10470. // You cannot delete the default DB security group.
  10471. //
  10472. // Constraints:
  10473. //
  10474. // * Must be 1 to 255 alphanumeric characters
  10475. //
  10476. // * First character must be a letter
  10477. //
  10478. // * Cannot end with a hyphen or contain two consecutive hyphens
  10479. //
  10480. // * Must not be "Default"
  10481. //
  10482. // DBSecurityGroupName is a required field
  10483. DBSecurityGroupName *string `type:"string" required:"true"`
  10484. }
  10485. // String returns the string representation
  10486. func (s DeleteDBSecurityGroupInput) String() string {
  10487. return awsutil.Prettify(s)
  10488. }
  10489. // GoString returns the string representation
  10490. func (s DeleteDBSecurityGroupInput) GoString() string {
  10491. return s.String()
  10492. }
  10493. // Validate inspects the fields of the type to determine if they are valid.
  10494. func (s *DeleteDBSecurityGroupInput) Validate() error {
  10495. invalidParams := request.ErrInvalidParams{Context: "DeleteDBSecurityGroupInput"}
  10496. if s.DBSecurityGroupName == nil {
  10497. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName"))
  10498. }
  10499. if invalidParams.Len() > 0 {
  10500. return invalidParams
  10501. }
  10502. return nil
  10503. }
  10504. type DeleteDBSecurityGroupOutput struct {
  10505. _ struct{} `type:"structure"`
  10506. }
  10507. // String returns the string representation
  10508. func (s DeleteDBSecurityGroupOutput) String() string {
  10509. return awsutil.Prettify(s)
  10510. }
  10511. // GoString returns the string representation
  10512. func (s DeleteDBSecurityGroupOutput) GoString() string {
  10513. return s.String()
  10514. }
  10515. type DeleteDBSnapshotInput struct {
  10516. _ struct{} `type:"structure"`
  10517. // The DBSnapshot identifier.
  10518. //
  10519. // Constraints: Must be the name of an existing DB snapshot in the available
  10520. // state.
  10521. //
  10522. // DBSnapshotIdentifier is a required field
  10523. DBSnapshotIdentifier *string `type:"string" required:"true"`
  10524. }
  10525. // String returns the string representation
  10526. func (s DeleteDBSnapshotInput) String() string {
  10527. return awsutil.Prettify(s)
  10528. }
  10529. // GoString returns the string representation
  10530. func (s DeleteDBSnapshotInput) GoString() string {
  10531. return s.String()
  10532. }
  10533. // Validate inspects the fields of the type to determine if they are valid.
  10534. func (s *DeleteDBSnapshotInput) Validate() error {
  10535. invalidParams := request.ErrInvalidParams{Context: "DeleteDBSnapshotInput"}
  10536. if s.DBSnapshotIdentifier == nil {
  10537. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  10538. }
  10539. if invalidParams.Len() > 0 {
  10540. return invalidParams
  10541. }
  10542. return nil
  10543. }
  10544. type DeleteDBSnapshotOutput struct {
  10545. _ struct{} `type:"structure"`
  10546. // Contains the result of a successful invocation of the following actions:
  10547. //
  10548. // * CreateDBSnapshot
  10549. //
  10550. // * DeleteDBSnapshot
  10551. //
  10552. // This data type is used as a response element in the DescribeDBSnapshots action.
  10553. DBSnapshot *DBSnapshot `type:"structure"`
  10554. }
  10555. // String returns the string representation
  10556. func (s DeleteDBSnapshotOutput) String() string {
  10557. return awsutil.Prettify(s)
  10558. }
  10559. // GoString returns the string representation
  10560. func (s DeleteDBSnapshotOutput) GoString() string {
  10561. return s.String()
  10562. }
  10563. type DeleteDBSubnetGroupInput struct {
  10564. _ struct{} `type:"structure"`
  10565. // The name of the database subnet group to delete.
  10566. //
  10567. // You cannot delete the default subnet group.
  10568. //
  10569. // Constraints:
  10570. //
  10571. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  10572. // underscores, spaces, or hyphens. Must not be default.
  10573. //
  10574. // Example: mySubnetgroup
  10575. //
  10576. // DBSubnetGroupName is a required field
  10577. DBSubnetGroupName *string `type:"string" required:"true"`
  10578. }
  10579. // String returns the string representation
  10580. func (s DeleteDBSubnetGroupInput) String() string {
  10581. return awsutil.Prettify(s)
  10582. }
  10583. // GoString returns the string representation
  10584. func (s DeleteDBSubnetGroupInput) GoString() string {
  10585. return s.String()
  10586. }
  10587. // Validate inspects the fields of the type to determine if they are valid.
  10588. func (s *DeleteDBSubnetGroupInput) Validate() error {
  10589. invalidParams := request.ErrInvalidParams{Context: "DeleteDBSubnetGroupInput"}
  10590. if s.DBSubnetGroupName == nil {
  10591. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName"))
  10592. }
  10593. if invalidParams.Len() > 0 {
  10594. return invalidParams
  10595. }
  10596. return nil
  10597. }
  10598. type DeleteDBSubnetGroupOutput struct {
  10599. _ struct{} `type:"structure"`
  10600. }
  10601. // String returns the string representation
  10602. func (s DeleteDBSubnetGroupOutput) String() string {
  10603. return awsutil.Prettify(s)
  10604. }
  10605. // GoString returns the string representation
  10606. func (s DeleteDBSubnetGroupOutput) GoString() string {
  10607. return s.String()
  10608. }
  10609. type DeleteEventSubscriptionInput struct {
  10610. _ struct{} `type:"structure"`
  10611. // The name of the RDS event notification subscription you want to delete.
  10612. //
  10613. // SubscriptionName is a required field
  10614. SubscriptionName *string `type:"string" required:"true"`
  10615. }
  10616. // String returns the string representation
  10617. func (s DeleteEventSubscriptionInput) String() string {
  10618. return awsutil.Prettify(s)
  10619. }
  10620. // GoString returns the string representation
  10621. func (s DeleteEventSubscriptionInput) GoString() string {
  10622. return s.String()
  10623. }
  10624. // Validate inspects the fields of the type to determine if they are valid.
  10625. func (s *DeleteEventSubscriptionInput) Validate() error {
  10626. invalidParams := request.ErrInvalidParams{Context: "DeleteEventSubscriptionInput"}
  10627. if s.SubscriptionName == nil {
  10628. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  10629. }
  10630. if invalidParams.Len() > 0 {
  10631. return invalidParams
  10632. }
  10633. return nil
  10634. }
  10635. type DeleteEventSubscriptionOutput struct {
  10636. _ struct{} `type:"structure"`
  10637. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  10638. // action.
  10639. EventSubscription *EventSubscription `type:"structure"`
  10640. }
  10641. // String returns the string representation
  10642. func (s DeleteEventSubscriptionOutput) String() string {
  10643. return awsutil.Prettify(s)
  10644. }
  10645. // GoString returns the string representation
  10646. func (s DeleteEventSubscriptionOutput) GoString() string {
  10647. return s.String()
  10648. }
  10649. type DeleteOptionGroupInput struct {
  10650. _ struct{} `type:"structure"`
  10651. // The name of the option group to be deleted.
  10652. //
  10653. // You cannot delete default option groups.
  10654. //
  10655. // OptionGroupName is a required field
  10656. OptionGroupName *string `type:"string" required:"true"`
  10657. }
  10658. // String returns the string representation
  10659. func (s DeleteOptionGroupInput) String() string {
  10660. return awsutil.Prettify(s)
  10661. }
  10662. // GoString returns the string representation
  10663. func (s DeleteOptionGroupInput) GoString() string {
  10664. return s.String()
  10665. }
  10666. // Validate inspects the fields of the type to determine if they are valid.
  10667. func (s *DeleteOptionGroupInput) Validate() error {
  10668. invalidParams := request.ErrInvalidParams{Context: "DeleteOptionGroupInput"}
  10669. if s.OptionGroupName == nil {
  10670. invalidParams.Add(request.NewErrParamRequired("OptionGroupName"))
  10671. }
  10672. if invalidParams.Len() > 0 {
  10673. return invalidParams
  10674. }
  10675. return nil
  10676. }
  10677. type DeleteOptionGroupOutput struct {
  10678. _ struct{} `type:"structure"`
  10679. }
  10680. // String returns the string representation
  10681. func (s DeleteOptionGroupOutput) String() string {
  10682. return awsutil.Prettify(s)
  10683. }
  10684. // GoString returns the string representation
  10685. func (s DeleteOptionGroupOutput) GoString() string {
  10686. return s.String()
  10687. }
  10688. type DescribeAccountAttributesInput struct {
  10689. _ struct{} `type:"structure"`
  10690. }
  10691. // String returns the string representation
  10692. func (s DescribeAccountAttributesInput) String() string {
  10693. return awsutil.Prettify(s)
  10694. }
  10695. // GoString returns the string representation
  10696. func (s DescribeAccountAttributesInput) GoString() string {
  10697. return s.String()
  10698. }
  10699. // Data returned by the DescribeAccountAttributes action.
  10700. type DescribeAccountAttributesOutput struct {
  10701. _ struct{} `type:"structure"`
  10702. // A list of AccountQuota objects. Within this list, each quota has a name,
  10703. // a count of usage toward the quota maximum, and a maximum value for the quota.
  10704. AccountQuotas []*AccountQuota `locationNameList:"AccountQuota" type:"list"`
  10705. }
  10706. // String returns the string representation
  10707. func (s DescribeAccountAttributesOutput) String() string {
  10708. return awsutil.Prettify(s)
  10709. }
  10710. // GoString returns the string representation
  10711. func (s DescribeAccountAttributesOutput) GoString() string {
  10712. return s.String()
  10713. }
  10714. type DescribeCertificatesInput struct {
  10715. _ struct{} `type:"structure"`
  10716. // The user-supplied certificate identifier. If this parameter is specified,
  10717. // information for only the identified certificate is returned. This parameter
  10718. // isn't case-sensitive.
  10719. //
  10720. // Constraints:
  10721. //
  10722. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  10723. //
  10724. // * First character must be a letter
  10725. //
  10726. // * Cannot end with a hyphen or contain two consecutive hyphens
  10727. CertificateIdentifier *string `type:"string"`
  10728. // This parameter is not currently supported.
  10729. Filters []*Filter `locationNameList:"Filter" type:"list"`
  10730. // An optional pagination token provided by a previous DescribeCertificates
  10731. // request. If this parameter is specified, the response includes only records
  10732. // beyond the marker, up to the value specified by MaxRecords.
  10733. Marker *string `type:"string"`
  10734. // The maximum number of records to include in the response. If more records
  10735. // exist than the specified MaxRecords value, a pagination token called a marker
  10736. // is included in the response so that the remaining results can be retrieved.
  10737. //
  10738. // Default: 100
  10739. //
  10740. // Constraints: Minimum 20, maximum 100.
  10741. MaxRecords *int64 `type:"integer"`
  10742. }
  10743. // String returns the string representation
  10744. func (s DescribeCertificatesInput) String() string {
  10745. return awsutil.Prettify(s)
  10746. }
  10747. // GoString returns the string representation
  10748. func (s DescribeCertificatesInput) GoString() string {
  10749. return s.String()
  10750. }
  10751. // Validate inspects the fields of the type to determine if they are valid.
  10752. func (s *DescribeCertificatesInput) Validate() error {
  10753. invalidParams := request.ErrInvalidParams{Context: "DescribeCertificatesInput"}
  10754. if s.Filters != nil {
  10755. for i, v := range s.Filters {
  10756. if v == nil {
  10757. continue
  10758. }
  10759. if err := v.Validate(); err != nil {
  10760. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  10761. }
  10762. }
  10763. }
  10764. if invalidParams.Len() > 0 {
  10765. return invalidParams
  10766. }
  10767. return nil
  10768. }
  10769. // Data returned by the DescribeCertificates action.
  10770. type DescribeCertificatesOutput struct {
  10771. _ struct{} `type:"structure"`
  10772. // The list of Certificate objects for the AWS account.
  10773. Certificates []*Certificate `locationNameList:"Certificate" type:"list"`
  10774. // An optional pagination token provided by a previous DescribeCertificates
  10775. // request. If this parameter is specified, the response includes only records
  10776. // beyond the marker, up to the value specified by MaxRecords .
  10777. Marker *string `type:"string"`
  10778. }
  10779. // String returns the string representation
  10780. func (s DescribeCertificatesOutput) String() string {
  10781. return awsutil.Prettify(s)
  10782. }
  10783. // GoString returns the string representation
  10784. func (s DescribeCertificatesOutput) GoString() string {
  10785. return s.String()
  10786. }
  10787. type DescribeDBClusterParameterGroupsInput struct {
  10788. _ struct{} `type:"structure"`
  10789. // The name of a specific DB cluster parameter group to return details for.
  10790. //
  10791. // Constraints:
  10792. //
  10793. // * Must be 1 to 255 alphanumeric characters
  10794. //
  10795. // * First character must be a letter
  10796. //
  10797. // * Cannot end with a hyphen or contain two consecutive hyphens
  10798. DBClusterParameterGroupName *string `type:"string"`
  10799. // This parameter is not currently supported.
  10800. Filters []*Filter `locationNameList:"Filter" type:"list"`
  10801. // An optional pagination token provided by a previous DescribeDBClusterParameterGroups
  10802. // request. If this parameter is specified, the response includes only records
  10803. // beyond the marker, up to the value specified by MaxRecords.
  10804. Marker *string `type:"string"`
  10805. // The maximum number of records to include in the response. If more records
  10806. // exist than the specified MaxRecords value, a pagination token called a marker
  10807. // is included in the response so that the remaining results can be retrieved.
  10808. //
  10809. // Default: 100
  10810. //
  10811. // Constraints: Minimum 20, maximum 100.
  10812. MaxRecords *int64 `type:"integer"`
  10813. }
  10814. // String returns the string representation
  10815. func (s DescribeDBClusterParameterGroupsInput) String() string {
  10816. return awsutil.Prettify(s)
  10817. }
  10818. // GoString returns the string representation
  10819. func (s DescribeDBClusterParameterGroupsInput) GoString() string {
  10820. return s.String()
  10821. }
  10822. // Validate inspects the fields of the type to determine if they are valid.
  10823. func (s *DescribeDBClusterParameterGroupsInput) Validate() error {
  10824. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterParameterGroupsInput"}
  10825. if s.Filters != nil {
  10826. for i, v := range s.Filters {
  10827. if v == nil {
  10828. continue
  10829. }
  10830. if err := v.Validate(); err != nil {
  10831. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  10832. }
  10833. }
  10834. }
  10835. if invalidParams.Len() > 0 {
  10836. return invalidParams
  10837. }
  10838. return nil
  10839. }
  10840. type DescribeDBClusterParameterGroupsOutput struct {
  10841. _ struct{} `type:"structure"`
  10842. // A list of DB cluster parameter groups.
  10843. DBClusterParameterGroups []*DBClusterParameterGroup `locationNameList:"DBClusterParameterGroup" type:"list"`
  10844. // An optional pagination token provided by a previous DescribeDBClusterParameterGroups
  10845. // request. If this parameter is specified, the response includes only records
  10846. // beyond the marker, up to the value specified by MaxRecords.
  10847. Marker *string `type:"string"`
  10848. }
  10849. // String returns the string representation
  10850. func (s DescribeDBClusterParameterGroupsOutput) String() string {
  10851. return awsutil.Prettify(s)
  10852. }
  10853. // GoString returns the string representation
  10854. func (s DescribeDBClusterParameterGroupsOutput) GoString() string {
  10855. return s.String()
  10856. }
  10857. type DescribeDBClusterParametersInput struct {
  10858. _ struct{} `type:"structure"`
  10859. // The name of a specific DB cluster parameter group to return parameter details
  10860. // for.
  10861. //
  10862. // Constraints:
  10863. //
  10864. // * Must be 1 to 255 alphanumeric characters
  10865. //
  10866. // * First character must be a letter
  10867. //
  10868. // * Cannot end with a hyphen or contain two consecutive hyphens
  10869. //
  10870. // DBClusterParameterGroupName is a required field
  10871. DBClusterParameterGroupName *string `type:"string" required:"true"`
  10872. // This parameter is not currently supported.
  10873. Filters []*Filter `locationNameList:"Filter" type:"list"`
  10874. // An optional pagination token provided by a previous DescribeDBClusterParameters
  10875. // request. If this parameter is specified, the response includes only records
  10876. // beyond the marker, up to the value specified by MaxRecords.
  10877. Marker *string `type:"string"`
  10878. // The maximum number of records to include in the response. If more records
  10879. // exist than the specified MaxRecords value, a pagination token called a marker
  10880. // is included in the response so that the remaining results can be retrieved.
  10881. //
  10882. // Default: 100
  10883. //
  10884. // Constraints: Minimum 20, maximum 100.
  10885. MaxRecords *int64 `type:"integer"`
  10886. // A value that indicates to return only parameters for a specific source. Parameter
  10887. // sources can be engine, service, or customer.
  10888. Source *string `type:"string"`
  10889. }
  10890. // String returns the string representation
  10891. func (s DescribeDBClusterParametersInput) String() string {
  10892. return awsutil.Prettify(s)
  10893. }
  10894. // GoString returns the string representation
  10895. func (s DescribeDBClusterParametersInput) GoString() string {
  10896. return s.String()
  10897. }
  10898. // Validate inspects the fields of the type to determine if they are valid.
  10899. func (s *DescribeDBClusterParametersInput) Validate() error {
  10900. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterParametersInput"}
  10901. if s.DBClusterParameterGroupName == nil {
  10902. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  10903. }
  10904. if s.Filters != nil {
  10905. for i, v := range s.Filters {
  10906. if v == nil {
  10907. continue
  10908. }
  10909. if err := v.Validate(); err != nil {
  10910. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  10911. }
  10912. }
  10913. }
  10914. if invalidParams.Len() > 0 {
  10915. return invalidParams
  10916. }
  10917. return nil
  10918. }
  10919. // Provides details about a DB cluster parameter group including the parameters
  10920. // in the DB cluster parameter group.
  10921. type DescribeDBClusterParametersOutput struct {
  10922. _ struct{} `type:"structure"`
  10923. // An optional pagination token provided by a previous DescribeDBClusterParameters
  10924. // request. If this parameter is specified, the response includes only records
  10925. // beyond the marker, up to the value specified by MaxRecords .
  10926. Marker *string `type:"string"`
  10927. // Provides a list of parameters for the DB cluster parameter group.
  10928. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  10929. }
  10930. // String returns the string representation
  10931. func (s DescribeDBClusterParametersOutput) String() string {
  10932. return awsutil.Prettify(s)
  10933. }
  10934. // GoString returns the string representation
  10935. func (s DescribeDBClusterParametersOutput) GoString() string {
  10936. return s.String()
  10937. }
  10938. type DescribeDBClusterSnapshotAttributesInput struct {
  10939. _ struct{} `type:"structure"`
  10940. // The identifier for the DB cluster snapshot to describe the attributes for.
  10941. //
  10942. // DBClusterSnapshotIdentifier is a required field
  10943. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  10944. }
  10945. // String returns the string representation
  10946. func (s DescribeDBClusterSnapshotAttributesInput) String() string {
  10947. return awsutil.Prettify(s)
  10948. }
  10949. // GoString returns the string representation
  10950. func (s DescribeDBClusterSnapshotAttributesInput) GoString() string {
  10951. return s.String()
  10952. }
  10953. // Validate inspects the fields of the type to determine if they are valid.
  10954. func (s *DescribeDBClusterSnapshotAttributesInput) Validate() error {
  10955. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterSnapshotAttributesInput"}
  10956. if s.DBClusterSnapshotIdentifier == nil {
  10957. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  10958. }
  10959. if invalidParams.Len() > 0 {
  10960. return invalidParams
  10961. }
  10962. return nil
  10963. }
  10964. type DescribeDBClusterSnapshotAttributesOutput struct {
  10965. _ struct{} `type:"structure"`
  10966. // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes
  10967. // API action.
  10968. //
  10969. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  10970. // to copy or restore a manual DB cluster snapshot. For more information, see
  10971. // the ModifyDBClusterSnapshotAttribute API action.
  10972. DBClusterSnapshotAttributesResult *DBClusterSnapshotAttributesResult `type:"structure"`
  10973. }
  10974. // String returns the string representation
  10975. func (s DescribeDBClusterSnapshotAttributesOutput) String() string {
  10976. return awsutil.Prettify(s)
  10977. }
  10978. // GoString returns the string representation
  10979. func (s DescribeDBClusterSnapshotAttributesOutput) GoString() string {
  10980. return s.String()
  10981. }
  10982. type DescribeDBClusterSnapshotsInput struct {
  10983. _ struct{} `type:"structure"`
  10984. // The ID of the DB cluster to retrieve the list of DB cluster snapshots for.
  10985. // This parameter cannot be used in conjunction with the DBClusterSnapshotIdentifier
  10986. // parameter. This parameter is not case-sensitive.
  10987. //
  10988. // Constraints:
  10989. //
  10990. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  10991. //
  10992. // * First character must be a letter
  10993. //
  10994. // * Cannot end with a hyphen or contain two consecutive hyphens
  10995. DBClusterIdentifier *string `type:"string"`
  10996. // A specific DB cluster snapshot identifier to describe. This parameter cannot
  10997. // be used in conjunction with the DBClusterIdentifier parameter. This value
  10998. // is stored as a lowercase string.
  10999. //
  11000. // Constraints:
  11001. //
  11002. // * Must be 1 to 255 alphanumeric characters
  11003. //
  11004. // * First character must be a letter
  11005. //
  11006. // * Cannot end with a hyphen or contain two consecutive hyphens
  11007. //
  11008. // * If this identifier is for an automated snapshot, the SnapshotType parameter
  11009. // must also be specified.
  11010. DBClusterSnapshotIdentifier *string `type:"string"`
  11011. // This parameter is not currently supported.
  11012. Filters []*Filter `locationNameList:"Filter" type:"list"`
  11013. // Set this value to true to include manual DB cluster snapshots that are public
  11014. // and can be copied or restored by any AWS account, otherwise set this value
  11015. // to false. The default is false. The default is false.
  11016. //
  11017. // You can share a manual DB cluster snapshot as public by using the ModifyDBClusterSnapshotAttribute
  11018. // API action.
  11019. IncludePublic *bool `type:"boolean"`
  11020. // Set this value to true to include shared manual DB cluster snapshots from
  11021. // other AWS accounts that this AWS account has been given permission to copy
  11022. // or restore, otherwise set this value to false. The default is false.
  11023. //
  11024. // You can give an AWS account permission to restore a manual DB cluster snapshot
  11025. // from another AWS account by the ModifyDBClusterSnapshotAttribute API action.
  11026. IncludeShared *bool `type:"boolean"`
  11027. // An optional pagination token provided by a previous DescribeDBClusterSnapshots
  11028. // request. If this parameter is specified, the response includes only records
  11029. // beyond the marker, up to the value specified by MaxRecords.
  11030. Marker *string `type:"string"`
  11031. // The maximum number of records to include in the response. If more records
  11032. // exist than the specified MaxRecords value, a pagination token called a marker
  11033. // is included in the response so that the remaining results can be retrieved.
  11034. //
  11035. // Default: 100
  11036. //
  11037. // Constraints: Minimum 20, maximum 100.
  11038. MaxRecords *int64 `type:"integer"`
  11039. // The type of DB cluster snapshots to be returned. You can specify one of the
  11040. // following values:
  11041. //
  11042. // * automated - Return all DB cluster snapshots that have been automatically
  11043. // taken by Amazon RDS for my AWS account.
  11044. //
  11045. // * manual - Return all DB cluster snapshots that have been taken by my
  11046. // AWS account.
  11047. //
  11048. // * shared - Return all manual DB cluster snapshots that have been shared
  11049. // to my AWS account.
  11050. //
  11051. // * public - Return all DB cluster snapshots that have been marked as public.
  11052. //
  11053. // If you don't specify a SnapshotType value, then both automated and manual
  11054. // DB cluster snapshots are returned. You can include shared DB cluster snapshots
  11055. // with these results by setting the IncludeShared parameter to true. You can
  11056. // include public DB cluster snapshots with these results by setting the IncludePublic
  11057. // parameter to true.
  11058. //
  11059. // The IncludeShared and IncludePublic parameters don't apply for SnapshotType
  11060. // values of manual or automated. The IncludePublic parameter doesn't apply
  11061. // when SnapshotType is set to shared. The IncludeShared parameter doesn't apply
  11062. // when SnapshotType is set to public.
  11063. SnapshotType *string `type:"string"`
  11064. }
  11065. // String returns the string representation
  11066. func (s DescribeDBClusterSnapshotsInput) String() string {
  11067. return awsutil.Prettify(s)
  11068. }
  11069. // GoString returns the string representation
  11070. func (s DescribeDBClusterSnapshotsInput) GoString() string {
  11071. return s.String()
  11072. }
  11073. // Validate inspects the fields of the type to determine if they are valid.
  11074. func (s *DescribeDBClusterSnapshotsInput) Validate() error {
  11075. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterSnapshotsInput"}
  11076. if s.Filters != nil {
  11077. for i, v := range s.Filters {
  11078. if v == nil {
  11079. continue
  11080. }
  11081. if err := v.Validate(); err != nil {
  11082. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  11083. }
  11084. }
  11085. }
  11086. if invalidParams.Len() > 0 {
  11087. return invalidParams
  11088. }
  11089. return nil
  11090. }
  11091. // Provides a list of DB cluster snapshots for the user as the result of a call
  11092. // to the DescribeDBClusterSnapshots action.
  11093. type DescribeDBClusterSnapshotsOutput struct {
  11094. _ struct{} `type:"structure"`
  11095. // Provides a list of DB cluster snapshots for the user.
  11096. DBClusterSnapshots []*DBClusterSnapshot `locationNameList:"DBClusterSnapshot" type:"list"`
  11097. // An optional pagination token provided by a previous DescribeDBClusterSnapshots
  11098. // request. If this parameter is specified, the response includes only records
  11099. // beyond the marker, up to the value specified by MaxRecords.
  11100. Marker *string `type:"string"`
  11101. }
  11102. // String returns the string representation
  11103. func (s DescribeDBClusterSnapshotsOutput) String() string {
  11104. return awsutil.Prettify(s)
  11105. }
  11106. // GoString returns the string representation
  11107. func (s DescribeDBClusterSnapshotsOutput) GoString() string {
  11108. return s.String()
  11109. }
  11110. type DescribeDBClustersInput struct {
  11111. _ struct{} `type:"structure"`
  11112. // The user-supplied DB cluster identifier. If this parameter is specified,
  11113. // information from only the specific DB cluster is returned. This parameter
  11114. // isn't case-sensitive.
  11115. //
  11116. // Constraints:
  11117. //
  11118. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  11119. //
  11120. // * First character must be a letter
  11121. //
  11122. // * Cannot end with a hyphen or contain two consecutive hyphens
  11123. DBClusterIdentifier *string `type:"string"`
  11124. // This parameter is not currently supported.
  11125. Filters []*Filter `locationNameList:"Filter" type:"list"`
  11126. // An optional pagination token provided by a previous DescribeDBClusters request.
  11127. // If this parameter is specified, the response includes only records beyond
  11128. // the marker, up to the value specified by MaxRecords.
  11129. Marker *string `type:"string"`
  11130. // The maximum number of records to include in the response. If more records
  11131. // exist than the specified MaxRecords value, a pagination token called a marker
  11132. // is included in the response so that the remaining results can be retrieved.
  11133. //
  11134. // Default: 100
  11135. //
  11136. // Constraints: Minimum 20, maximum 100.
  11137. MaxRecords *int64 `type:"integer"`
  11138. }
  11139. // String returns the string representation
  11140. func (s DescribeDBClustersInput) String() string {
  11141. return awsutil.Prettify(s)
  11142. }
  11143. // GoString returns the string representation
  11144. func (s DescribeDBClustersInput) GoString() string {
  11145. return s.String()
  11146. }
  11147. // Validate inspects the fields of the type to determine if they are valid.
  11148. func (s *DescribeDBClustersInput) Validate() error {
  11149. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClustersInput"}
  11150. if s.Filters != nil {
  11151. for i, v := range s.Filters {
  11152. if v == nil {
  11153. continue
  11154. }
  11155. if err := v.Validate(); err != nil {
  11156. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  11157. }
  11158. }
  11159. }
  11160. if invalidParams.Len() > 0 {
  11161. return invalidParams
  11162. }
  11163. return nil
  11164. }
  11165. // Contains the result of a successful invocation of the DescribeDBClusters
  11166. // action.
  11167. type DescribeDBClustersOutput struct {
  11168. _ struct{} `type:"structure"`
  11169. // Contains a list of DB clusters for the user.
  11170. DBClusters []*DBCluster `locationNameList:"DBCluster" type:"list"`
  11171. // A pagination token that can be used in a subsequent DescribeDBClusters request.
  11172. Marker *string `type:"string"`
  11173. }
  11174. // String returns the string representation
  11175. func (s DescribeDBClustersOutput) String() string {
  11176. return awsutil.Prettify(s)
  11177. }
  11178. // GoString returns the string representation
  11179. func (s DescribeDBClustersOutput) GoString() string {
  11180. return s.String()
  11181. }
  11182. type DescribeDBEngineVersionsInput struct {
  11183. _ struct{} `type:"structure"`
  11184. // The name of a specific DB parameter group family to return details for.
  11185. //
  11186. // Constraints:
  11187. //
  11188. // * Must be 1 to 255 alphanumeric characters
  11189. //
  11190. // * First character must be a letter
  11191. //
  11192. // * Cannot end with a hyphen or contain two consecutive hyphens
  11193. DBParameterGroupFamily *string `type:"string"`
  11194. // Indicates that only the default version of the specified engine or engine
  11195. // and major version combination is returned.
  11196. DefaultOnly *bool `type:"boolean"`
  11197. // The database engine to return.
  11198. Engine *string `type:"string"`
  11199. // The database engine version to return.
  11200. //
  11201. // Example: 5.1.49
  11202. EngineVersion *string `type:"string"`
  11203. // Not currently supported.
  11204. Filters []*Filter `locationNameList:"Filter" type:"list"`
  11205. // If this parameter is specified and the requested engine supports the CharacterSetName
  11206. // parameter for CreateDBInstance, the response includes a list of supported
  11207. // character sets for each engine version.
  11208. ListSupportedCharacterSets *bool `type:"boolean"`
  11209. // If this parameter is specified and the requested engine supports the TimeZone
  11210. // parameter for CreateDBInstance, the response includes a list of supported
  11211. // time zones for each engine version.
  11212. ListSupportedTimezones *bool `type:"boolean"`
  11213. // An optional pagination token provided by a previous request. If this parameter
  11214. // is specified, the response includes only records beyond the marker, up to
  11215. // the value specified by MaxRecords.
  11216. Marker *string `type:"string"`
  11217. // The maximum number of records to include in the response. If more than the
  11218. // MaxRecords value is available, a pagination token called a marker is included
  11219. // in the response so that the following results can be retrieved.
  11220. //
  11221. // Default: 100
  11222. //
  11223. // Constraints: Minimum 20, maximum 100.
  11224. MaxRecords *int64 `type:"integer"`
  11225. }
  11226. // String returns the string representation
  11227. func (s DescribeDBEngineVersionsInput) String() string {
  11228. return awsutil.Prettify(s)
  11229. }
  11230. // GoString returns the string representation
  11231. func (s DescribeDBEngineVersionsInput) GoString() string {
  11232. return s.String()
  11233. }
  11234. // Validate inspects the fields of the type to determine if they are valid.
  11235. func (s *DescribeDBEngineVersionsInput) Validate() error {
  11236. invalidParams := request.ErrInvalidParams{Context: "DescribeDBEngineVersionsInput"}
  11237. if s.Filters != nil {
  11238. for i, v := range s.Filters {
  11239. if v == nil {
  11240. continue
  11241. }
  11242. if err := v.Validate(); err != nil {
  11243. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  11244. }
  11245. }
  11246. }
  11247. if invalidParams.Len() > 0 {
  11248. return invalidParams
  11249. }
  11250. return nil
  11251. }
  11252. // Contains the result of a successful invocation of the DescribeDBEngineVersions
  11253. // action.
  11254. type DescribeDBEngineVersionsOutput struct {
  11255. _ struct{} `type:"structure"`
  11256. // A list of DBEngineVersion elements.
  11257. DBEngineVersions []*DBEngineVersion `locationNameList:"DBEngineVersion" type:"list"`
  11258. // An optional pagination token provided by a previous request. If this parameter
  11259. // is specified, the response includes only records beyond the marker, up to
  11260. // the value specified by MaxRecords.
  11261. Marker *string `type:"string"`
  11262. }
  11263. // String returns the string representation
  11264. func (s DescribeDBEngineVersionsOutput) String() string {
  11265. return awsutil.Prettify(s)
  11266. }
  11267. // GoString returns the string representation
  11268. func (s DescribeDBEngineVersionsOutput) GoString() string {
  11269. return s.String()
  11270. }
  11271. type DescribeDBInstancesInput struct {
  11272. _ struct{} `type:"structure"`
  11273. // The user-supplied instance identifier. If this parameter is specified, information
  11274. // from only the specific DB instance is returned. This parameter isn't case-sensitive.
  11275. //
  11276. // Constraints:
  11277. //
  11278. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  11279. //
  11280. // * First character must be a letter
  11281. //
  11282. // * Cannot end with a hyphen or contain two consecutive hyphens
  11283. DBInstanceIdentifier *string `type:"string"`
  11284. // This parameter is not currently supported.
  11285. Filters []*Filter `locationNameList:"Filter" type:"list"`
  11286. // An optional pagination token provided by a previous DescribeDBInstances request.
  11287. // If this parameter is specified, the response includes only records beyond
  11288. // the marker, up to the value specified by MaxRecords.
  11289. Marker *string `type:"string"`
  11290. // The maximum number of records to include in the response. If more records
  11291. // exist than the specified MaxRecords value, a pagination token called a marker
  11292. // is included in the response so that the remaining results can be retrieved.
  11293. //
  11294. // Default: 100
  11295. //
  11296. // Constraints: Minimum 20, maximum 100.
  11297. MaxRecords *int64 `type:"integer"`
  11298. }
  11299. // String returns the string representation
  11300. func (s DescribeDBInstancesInput) String() string {
  11301. return awsutil.Prettify(s)
  11302. }
  11303. // GoString returns the string representation
  11304. func (s DescribeDBInstancesInput) GoString() string {
  11305. return s.String()
  11306. }
  11307. // Validate inspects the fields of the type to determine if they are valid.
  11308. func (s *DescribeDBInstancesInput) Validate() error {
  11309. invalidParams := request.ErrInvalidParams{Context: "DescribeDBInstancesInput"}
  11310. if s.Filters != nil {
  11311. for i, v := range s.Filters {
  11312. if v == nil {
  11313. continue
  11314. }
  11315. if err := v.Validate(); err != nil {
  11316. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  11317. }
  11318. }
  11319. }
  11320. if invalidParams.Len() > 0 {
  11321. return invalidParams
  11322. }
  11323. return nil
  11324. }
  11325. // Contains the result of a successful invocation of the DescribeDBInstances
  11326. // action.
  11327. type DescribeDBInstancesOutput struct {
  11328. _ struct{} `type:"structure"`
  11329. // A list of DBInstance instances.
  11330. DBInstances []*DBInstance `locationNameList:"DBInstance" type:"list"`
  11331. // An optional pagination token provided by a previous request. If this parameter
  11332. // is specified, the response includes only records beyond the marker, up to
  11333. // the value specified by MaxRecords .
  11334. Marker *string `type:"string"`
  11335. }
  11336. // String returns the string representation
  11337. func (s DescribeDBInstancesOutput) String() string {
  11338. return awsutil.Prettify(s)
  11339. }
  11340. // GoString returns the string representation
  11341. func (s DescribeDBInstancesOutput) GoString() string {
  11342. return s.String()
  11343. }
  11344. // This data type is used as a response element to DescribeDBLogFiles.
  11345. type DescribeDBLogFilesDetails struct {
  11346. _ struct{} `type:"structure"`
  11347. // A POSIX timestamp when the last log entry was written.
  11348. LastWritten *int64 `type:"long"`
  11349. // The name of the log file for the specified DB instance.
  11350. LogFileName *string `type:"string"`
  11351. // The size, in bytes, of the log file for the specified DB instance.
  11352. Size *int64 `type:"long"`
  11353. }
  11354. // String returns the string representation
  11355. func (s DescribeDBLogFilesDetails) String() string {
  11356. return awsutil.Prettify(s)
  11357. }
  11358. // GoString returns the string representation
  11359. func (s DescribeDBLogFilesDetails) GoString() string {
  11360. return s.String()
  11361. }
  11362. type DescribeDBLogFilesInput struct {
  11363. _ struct{} `type:"structure"`
  11364. // The customer-assigned name of the DB instance that contains the log files
  11365. // you want to list.
  11366. //
  11367. // Constraints:
  11368. //
  11369. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  11370. //
  11371. // * First character must be a letter
  11372. //
  11373. // * Cannot end with a hyphen or contain two consecutive hyphens
  11374. //
  11375. // DBInstanceIdentifier is a required field
  11376. DBInstanceIdentifier *string `type:"string" required:"true"`
  11377. // Filters the available log files for files written since the specified date,
  11378. // in POSIX timestamp format with milliseconds.
  11379. FileLastWritten *int64 `type:"long"`
  11380. // Filters the available log files for files larger than the specified size.
  11381. FileSize *int64 `type:"long"`
  11382. // Filters the available log files for log file names that contain the specified
  11383. // string.
  11384. FilenameContains *string `type:"string"`
  11385. // This parameter is not currently supported.
  11386. Filters []*Filter `locationNameList:"Filter" type:"list"`
  11387. // The pagination token provided in the previous request. If this parameter
  11388. // is specified the response includes only records beyond the marker, up to
  11389. // MaxRecords.
  11390. Marker *string `type:"string"`
  11391. // The maximum number of records to include in the response. If more records
  11392. // exist than the specified MaxRecords value, a pagination token called a marker
  11393. // is included in the response so that the remaining results can be retrieved.
  11394. MaxRecords *int64 `type:"integer"`
  11395. }
  11396. // String returns the string representation
  11397. func (s DescribeDBLogFilesInput) String() string {
  11398. return awsutil.Prettify(s)
  11399. }
  11400. // GoString returns the string representation
  11401. func (s DescribeDBLogFilesInput) GoString() string {
  11402. return s.String()
  11403. }
  11404. // Validate inspects the fields of the type to determine if they are valid.
  11405. func (s *DescribeDBLogFilesInput) Validate() error {
  11406. invalidParams := request.ErrInvalidParams{Context: "DescribeDBLogFilesInput"}
  11407. if s.DBInstanceIdentifier == nil {
  11408. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  11409. }
  11410. if s.Filters != nil {
  11411. for i, v := range s.Filters {
  11412. if v == nil {
  11413. continue
  11414. }
  11415. if err := v.Validate(); err != nil {
  11416. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  11417. }
  11418. }
  11419. }
  11420. if invalidParams.Len() > 0 {
  11421. return invalidParams
  11422. }
  11423. return nil
  11424. }
  11425. // The response from a call to DescribeDBLogFiles.
  11426. type DescribeDBLogFilesOutput struct {
  11427. _ struct{} `type:"structure"`
  11428. // The DB log files returned.
  11429. DescribeDBLogFiles []*DescribeDBLogFilesDetails `locationNameList:"DescribeDBLogFilesDetails" type:"list"`
  11430. // A pagination token that can be used in a subsequent DescribeDBLogFiles request.
  11431. Marker *string `type:"string"`
  11432. }
  11433. // String returns the string representation
  11434. func (s DescribeDBLogFilesOutput) String() string {
  11435. return awsutil.Prettify(s)
  11436. }
  11437. // GoString returns the string representation
  11438. func (s DescribeDBLogFilesOutput) GoString() string {
  11439. return s.String()
  11440. }
  11441. type DescribeDBParameterGroupsInput struct {
  11442. _ struct{} `type:"structure"`
  11443. // The name of a specific DB parameter group to return details for.
  11444. //
  11445. // Constraints:
  11446. //
  11447. // * Must be 1 to 255 alphanumeric characters
  11448. //
  11449. // * First character must be a letter
  11450. //
  11451. // * Cannot end with a hyphen or contain two consecutive hyphens
  11452. DBParameterGroupName *string `type:"string"`
  11453. // This parameter is not currently supported.
  11454. Filters []*Filter `locationNameList:"Filter" type:"list"`
  11455. // An optional pagination token provided by a previous DescribeDBParameterGroups
  11456. // request. If this parameter is specified, the response includes only records
  11457. // beyond the marker, up to the value specified by MaxRecords.
  11458. Marker *string `type:"string"`
  11459. // The maximum number of records to include in the response. If more records
  11460. // exist than the specified MaxRecords value, a pagination token called a marker
  11461. // is included in the response so that the remaining results can be retrieved.
  11462. //
  11463. // Default: 100
  11464. //
  11465. // Constraints: Minimum 20, maximum 100.
  11466. MaxRecords *int64 `type:"integer"`
  11467. }
  11468. // String returns the string representation
  11469. func (s DescribeDBParameterGroupsInput) String() string {
  11470. return awsutil.Prettify(s)
  11471. }
  11472. // GoString returns the string representation
  11473. func (s DescribeDBParameterGroupsInput) GoString() string {
  11474. return s.String()
  11475. }
  11476. // Validate inspects the fields of the type to determine if they are valid.
  11477. func (s *DescribeDBParameterGroupsInput) Validate() error {
  11478. invalidParams := request.ErrInvalidParams{Context: "DescribeDBParameterGroupsInput"}
  11479. if s.Filters != nil {
  11480. for i, v := range s.Filters {
  11481. if v == nil {
  11482. continue
  11483. }
  11484. if err := v.Validate(); err != nil {
  11485. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  11486. }
  11487. }
  11488. }
  11489. if invalidParams.Len() > 0 {
  11490. return invalidParams
  11491. }
  11492. return nil
  11493. }
  11494. // Contains the result of a successful invocation of the DescribeDBParameterGroups
  11495. // action.
  11496. type DescribeDBParameterGroupsOutput struct {
  11497. _ struct{} `type:"structure"`
  11498. // A list of DBParameterGroup instances.
  11499. DBParameterGroups []*DBParameterGroup `locationNameList:"DBParameterGroup" type:"list"`
  11500. // An optional pagination token provided by a previous request. If this parameter
  11501. // is specified, the response includes only records beyond the marker, up to
  11502. // the value specified by MaxRecords.
  11503. Marker *string `type:"string"`
  11504. }
  11505. // String returns the string representation
  11506. func (s DescribeDBParameterGroupsOutput) String() string {
  11507. return awsutil.Prettify(s)
  11508. }
  11509. // GoString returns the string representation
  11510. func (s DescribeDBParameterGroupsOutput) GoString() string {
  11511. return s.String()
  11512. }
  11513. type DescribeDBParametersInput struct {
  11514. _ struct{} `type:"structure"`
  11515. // The name of a specific DB parameter group to return details for.
  11516. //
  11517. // Constraints:
  11518. //
  11519. // * Must be 1 to 255 alphanumeric characters
  11520. //
  11521. // * First character must be a letter
  11522. //
  11523. // * Cannot end with a hyphen or contain two consecutive hyphens
  11524. //
  11525. // DBParameterGroupName is a required field
  11526. DBParameterGroupName *string `type:"string" required:"true"`
  11527. // This parameter is not currently supported.
  11528. Filters []*Filter `locationNameList:"Filter" type:"list"`
  11529. // An optional pagination token provided by a previous DescribeDBParameters
  11530. // request. If this parameter is specified, the response includes only records
  11531. // beyond the marker, up to the value specified by MaxRecords.
  11532. Marker *string `type:"string"`
  11533. // The maximum number of records to include in the response. If more records
  11534. // exist than the specified MaxRecords value, a pagination token called a marker
  11535. // is included in the response so that the remaining results can be retrieved.
  11536. //
  11537. // Default: 100
  11538. //
  11539. // Constraints: Minimum 20, maximum 100.
  11540. MaxRecords *int64 `type:"integer"`
  11541. // The parameter types to return.
  11542. //
  11543. // Default: All parameter types returned
  11544. //
  11545. // Valid Values: user | system | engine-default
  11546. Source *string `type:"string"`
  11547. }
  11548. // String returns the string representation
  11549. func (s DescribeDBParametersInput) String() string {
  11550. return awsutil.Prettify(s)
  11551. }
  11552. // GoString returns the string representation
  11553. func (s DescribeDBParametersInput) GoString() string {
  11554. return s.String()
  11555. }
  11556. // Validate inspects the fields of the type to determine if they are valid.
  11557. func (s *DescribeDBParametersInput) Validate() error {
  11558. invalidParams := request.ErrInvalidParams{Context: "DescribeDBParametersInput"}
  11559. if s.DBParameterGroupName == nil {
  11560. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  11561. }
  11562. if s.Filters != nil {
  11563. for i, v := range s.Filters {
  11564. if v == nil {
  11565. continue
  11566. }
  11567. if err := v.Validate(); err != nil {
  11568. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  11569. }
  11570. }
  11571. }
  11572. if invalidParams.Len() > 0 {
  11573. return invalidParams
  11574. }
  11575. return nil
  11576. }
  11577. // Contains the result of a successful invocation of the DescribeDBParameters
  11578. // action.
  11579. type DescribeDBParametersOutput struct {
  11580. _ struct{} `type:"structure"`
  11581. // An optional pagination token provided by a previous request. If this parameter
  11582. // is specified, the response includes only records beyond the marker, up to
  11583. // the value specified by MaxRecords.
  11584. Marker *string `type:"string"`
  11585. // A list of Parameter values.
  11586. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  11587. }
  11588. // String returns the string representation
  11589. func (s DescribeDBParametersOutput) String() string {
  11590. return awsutil.Prettify(s)
  11591. }
  11592. // GoString returns the string representation
  11593. func (s DescribeDBParametersOutput) GoString() string {
  11594. return s.String()
  11595. }
  11596. type DescribeDBSecurityGroupsInput struct {
  11597. _ struct{} `type:"structure"`
  11598. // The name of the DB security group to return details for.
  11599. DBSecurityGroupName *string `type:"string"`
  11600. // This parameter is not currently supported.
  11601. Filters []*Filter `locationNameList:"Filter" type:"list"`
  11602. // An optional pagination token provided by a previous DescribeDBSecurityGroups
  11603. // request. If this parameter is specified, the response includes only records
  11604. // beyond the marker, up to the value specified by MaxRecords.
  11605. Marker *string `type:"string"`
  11606. // The maximum number of records to include in the response. If more records
  11607. // exist than the specified MaxRecords value, a pagination token called a marker
  11608. // is included in the response so that the remaining results can be retrieved.
  11609. //
  11610. // Default: 100
  11611. //
  11612. // Constraints: Minimum 20, maximum 100.
  11613. MaxRecords *int64 `type:"integer"`
  11614. }
  11615. // String returns the string representation
  11616. func (s DescribeDBSecurityGroupsInput) String() string {
  11617. return awsutil.Prettify(s)
  11618. }
  11619. // GoString returns the string representation
  11620. func (s DescribeDBSecurityGroupsInput) GoString() string {
  11621. return s.String()
  11622. }
  11623. // Validate inspects the fields of the type to determine if they are valid.
  11624. func (s *DescribeDBSecurityGroupsInput) Validate() error {
  11625. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSecurityGroupsInput"}
  11626. if s.Filters != nil {
  11627. for i, v := range s.Filters {
  11628. if v == nil {
  11629. continue
  11630. }
  11631. if err := v.Validate(); err != nil {
  11632. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  11633. }
  11634. }
  11635. }
  11636. if invalidParams.Len() > 0 {
  11637. return invalidParams
  11638. }
  11639. return nil
  11640. }
  11641. // Contains the result of a successful invocation of the DescribeDBSecurityGroups
  11642. // action.
  11643. type DescribeDBSecurityGroupsOutput struct {
  11644. _ struct{} `type:"structure"`
  11645. // A list of DBSecurityGroup instances.
  11646. DBSecurityGroups []*DBSecurityGroup `locationNameList:"DBSecurityGroup" type:"list"`
  11647. // An optional pagination token provided by a previous request. If this parameter
  11648. // is specified, the response includes only records beyond the marker, up to
  11649. // the value specified by MaxRecords.
  11650. Marker *string `type:"string"`
  11651. }
  11652. // String returns the string representation
  11653. func (s DescribeDBSecurityGroupsOutput) String() string {
  11654. return awsutil.Prettify(s)
  11655. }
  11656. // GoString returns the string representation
  11657. func (s DescribeDBSecurityGroupsOutput) GoString() string {
  11658. return s.String()
  11659. }
  11660. type DescribeDBSnapshotAttributesInput struct {
  11661. _ struct{} `type:"structure"`
  11662. // The identifier for the DB snapshot to describe the attributes for.
  11663. //
  11664. // DBSnapshotIdentifier is a required field
  11665. DBSnapshotIdentifier *string `type:"string" required:"true"`
  11666. }
  11667. // String returns the string representation
  11668. func (s DescribeDBSnapshotAttributesInput) String() string {
  11669. return awsutil.Prettify(s)
  11670. }
  11671. // GoString returns the string representation
  11672. func (s DescribeDBSnapshotAttributesInput) GoString() string {
  11673. return s.String()
  11674. }
  11675. // Validate inspects the fields of the type to determine if they are valid.
  11676. func (s *DescribeDBSnapshotAttributesInput) Validate() error {
  11677. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSnapshotAttributesInput"}
  11678. if s.DBSnapshotIdentifier == nil {
  11679. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  11680. }
  11681. if invalidParams.Len() > 0 {
  11682. return invalidParams
  11683. }
  11684. return nil
  11685. }
  11686. type DescribeDBSnapshotAttributesOutput struct {
  11687. _ struct{} `type:"structure"`
  11688. // Contains the results of a successful call to the DescribeDBSnapshotAttributes
  11689. // API action.
  11690. //
  11691. // Manual DB snapshot attributes are used to authorize other AWS accounts to
  11692. // copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
  11693. // API action.
  11694. DBSnapshotAttributesResult *DBSnapshotAttributesResult `type:"structure"`
  11695. }
  11696. // String returns the string representation
  11697. func (s DescribeDBSnapshotAttributesOutput) String() string {
  11698. return awsutil.Prettify(s)
  11699. }
  11700. // GoString returns the string representation
  11701. func (s DescribeDBSnapshotAttributesOutput) GoString() string {
  11702. return s.String()
  11703. }
  11704. type DescribeDBSnapshotsInput struct {
  11705. _ struct{} `type:"structure"`
  11706. // The ID of the DB instance to retrieve the list of DB snapshots for. This
  11707. // parameter cannot be used in conjunction with DBSnapshotIdentifier. This parameter
  11708. // is not case-sensitive.
  11709. //
  11710. // Constraints:
  11711. //
  11712. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  11713. //
  11714. // * First character must be a letter
  11715. //
  11716. // * Cannot end with a hyphen or contain two consecutive hyphens
  11717. DBInstanceIdentifier *string `type:"string"`
  11718. // A specific DB snapshot identifier to describe. This parameter cannot be used
  11719. // in conjunction with DBInstanceIdentifier. This value is stored as a lowercase
  11720. // string.
  11721. //
  11722. // Constraints:
  11723. //
  11724. // * Must be 1 to 255 alphanumeric characters.
  11725. //
  11726. // * First character must be a letter.
  11727. //
  11728. // * Cannot end with a hyphen or contain two consecutive hyphens.
  11729. //
  11730. // * If this identifier is for an automated snapshot, the SnapshotType parameter
  11731. // must also be specified.
  11732. DBSnapshotIdentifier *string `type:"string"`
  11733. // This parameter is not currently supported.
  11734. Filters []*Filter `locationNameList:"Filter" type:"list"`
  11735. // Set this value to true to include manual DB snapshots that are public and
  11736. // can be copied or restored by any AWS account, otherwise set this value to
  11737. // false. The default is false.
  11738. //
  11739. // You can share a manual DB snapshot as public by using the ModifyDBSnapshotAttribute
  11740. // API.
  11741. IncludePublic *bool `type:"boolean"`
  11742. // Set this value to true to include shared manual DB snapshots from other AWS
  11743. // accounts that this AWS account has been given permission to copy or restore,
  11744. // otherwise set this value to false. The default is false.
  11745. //
  11746. // You can give an AWS account permission to restore a manual DB snapshot from
  11747. // another AWS account by using the ModifyDBSnapshotAttribute API action.
  11748. IncludeShared *bool `type:"boolean"`
  11749. // An optional pagination token provided by a previous DescribeDBSnapshots request.
  11750. // If this parameter is specified, the response includes only records beyond
  11751. // the marker, up to the value specified by MaxRecords.
  11752. Marker *string `type:"string"`
  11753. // The maximum number of records to include in the response. If more records
  11754. // exist than the specified MaxRecords value, a pagination token called a marker
  11755. // is included in the response so that the remaining results can be retrieved.
  11756. //
  11757. // Default: 100
  11758. //
  11759. // Constraints: Minimum 20, maximum 100.
  11760. MaxRecords *int64 `type:"integer"`
  11761. // The type of snapshots to be returned. You can specify one of the following
  11762. // values:
  11763. //
  11764. // * automated - Return all DB snapshots that have been automatically taken
  11765. // by Amazon RDS for my AWS account.
  11766. //
  11767. // * manual - Return all DB snapshots that have been taken by my AWS account.
  11768. //
  11769. // * shared - Return all manual DB snapshots that have been shared to my
  11770. // AWS account.
  11771. //
  11772. // * public - Return all DB snapshots that have been marked as public.
  11773. //
  11774. // If you don't specify a SnapshotType value, then both automated and manual
  11775. // snapshots are returned. Shared and public DB snapshots are not included in
  11776. // the returned results by default. You can include shared snapshots with these
  11777. // results by setting the IncludeShared parameter to true. You can include public
  11778. // snapshots with these results by setting the IncludePublic parameter to true.
  11779. //
  11780. // The IncludeShared and IncludePublic parameters don't apply for SnapshotType
  11781. // values of manual or automated. The IncludePublic parameter doesn't apply
  11782. // when SnapshotType is set to shared. The IncludeShared parameter doesn't apply
  11783. // when SnapshotType is set to public.
  11784. SnapshotType *string `type:"string"`
  11785. }
  11786. // String returns the string representation
  11787. func (s DescribeDBSnapshotsInput) String() string {
  11788. return awsutil.Prettify(s)
  11789. }
  11790. // GoString returns the string representation
  11791. func (s DescribeDBSnapshotsInput) GoString() string {
  11792. return s.String()
  11793. }
  11794. // Validate inspects the fields of the type to determine if they are valid.
  11795. func (s *DescribeDBSnapshotsInput) Validate() error {
  11796. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSnapshotsInput"}
  11797. if s.Filters != nil {
  11798. for i, v := range s.Filters {
  11799. if v == nil {
  11800. continue
  11801. }
  11802. if err := v.Validate(); err != nil {
  11803. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  11804. }
  11805. }
  11806. }
  11807. if invalidParams.Len() > 0 {
  11808. return invalidParams
  11809. }
  11810. return nil
  11811. }
  11812. // Contains the result of a successful invocation of the DescribeDBSnapshots
  11813. // action.
  11814. type DescribeDBSnapshotsOutput struct {
  11815. _ struct{} `type:"structure"`
  11816. // A list of DBSnapshot instances.
  11817. DBSnapshots []*DBSnapshot `locationNameList:"DBSnapshot" type:"list"`
  11818. // An optional pagination token provided by a previous request. If this parameter
  11819. // is specified, the response includes only records beyond the marker, up to
  11820. // the value specified by MaxRecords.
  11821. Marker *string `type:"string"`
  11822. }
  11823. // String returns the string representation
  11824. func (s DescribeDBSnapshotsOutput) String() string {
  11825. return awsutil.Prettify(s)
  11826. }
  11827. // GoString returns the string representation
  11828. func (s DescribeDBSnapshotsOutput) GoString() string {
  11829. return s.String()
  11830. }
  11831. type DescribeDBSubnetGroupsInput struct {
  11832. _ struct{} `type:"structure"`
  11833. // The name of the DB subnet group to return details for.
  11834. DBSubnetGroupName *string `type:"string"`
  11835. // This parameter is not currently supported.
  11836. Filters []*Filter `locationNameList:"Filter" type:"list"`
  11837. // An optional pagination token provided by a previous DescribeDBSubnetGroups
  11838. // request. If this parameter is specified, the response includes only records
  11839. // beyond the marker, up to the value specified by MaxRecords.
  11840. Marker *string `type:"string"`
  11841. // The maximum number of records to include in the response. If more records
  11842. // exist than the specified MaxRecords value, a pagination token called a marker
  11843. // is included in the response so that the remaining results can be retrieved.
  11844. //
  11845. // Default: 100
  11846. //
  11847. // Constraints: Minimum 20, maximum 100.
  11848. MaxRecords *int64 `type:"integer"`
  11849. }
  11850. // String returns the string representation
  11851. func (s DescribeDBSubnetGroupsInput) String() string {
  11852. return awsutil.Prettify(s)
  11853. }
  11854. // GoString returns the string representation
  11855. func (s DescribeDBSubnetGroupsInput) GoString() string {
  11856. return s.String()
  11857. }
  11858. // Validate inspects the fields of the type to determine if they are valid.
  11859. func (s *DescribeDBSubnetGroupsInput) Validate() error {
  11860. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSubnetGroupsInput"}
  11861. if s.Filters != nil {
  11862. for i, v := range s.Filters {
  11863. if v == nil {
  11864. continue
  11865. }
  11866. if err := v.Validate(); err != nil {
  11867. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  11868. }
  11869. }
  11870. }
  11871. if invalidParams.Len() > 0 {
  11872. return invalidParams
  11873. }
  11874. return nil
  11875. }
  11876. // Contains the result of a successful invocation of the DescribeDBSubnetGroups
  11877. // action.
  11878. type DescribeDBSubnetGroupsOutput struct {
  11879. _ struct{} `type:"structure"`
  11880. // A list of DBSubnetGroup instances.
  11881. DBSubnetGroups []*DBSubnetGroup `locationNameList:"DBSubnetGroup" type:"list"`
  11882. // An optional pagination token provided by a previous request. If this parameter
  11883. // is specified, the response includes only records beyond the marker, up to
  11884. // the value specified by MaxRecords.
  11885. Marker *string `type:"string"`
  11886. }
  11887. // String returns the string representation
  11888. func (s DescribeDBSubnetGroupsOutput) String() string {
  11889. return awsutil.Prettify(s)
  11890. }
  11891. // GoString returns the string representation
  11892. func (s DescribeDBSubnetGroupsOutput) GoString() string {
  11893. return s.String()
  11894. }
  11895. type DescribeEngineDefaultClusterParametersInput struct {
  11896. _ struct{} `type:"structure"`
  11897. // The name of the DB cluster parameter group family to return engine parameter
  11898. // information for.
  11899. //
  11900. // DBParameterGroupFamily is a required field
  11901. DBParameterGroupFamily *string `type:"string" required:"true"`
  11902. // This parameter is not currently supported.
  11903. Filters []*Filter `locationNameList:"Filter" type:"list"`
  11904. // An optional pagination token provided by a previous DescribeEngineDefaultClusterParameters
  11905. // request. If this parameter is specified, the response includes only records
  11906. // beyond the marker, up to the value specified by MaxRecords.
  11907. Marker *string `type:"string"`
  11908. // The maximum number of records to include in the response. If more records
  11909. // exist than the specified MaxRecords value, a pagination token called a marker
  11910. // is included in the response so that the remaining results can be retrieved.
  11911. //
  11912. // Default: 100
  11913. //
  11914. // Constraints: Minimum 20, maximum 100.
  11915. MaxRecords *int64 `type:"integer"`
  11916. }
  11917. // String returns the string representation
  11918. func (s DescribeEngineDefaultClusterParametersInput) String() string {
  11919. return awsutil.Prettify(s)
  11920. }
  11921. // GoString returns the string representation
  11922. func (s DescribeEngineDefaultClusterParametersInput) GoString() string {
  11923. return s.String()
  11924. }
  11925. // Validate inspects the fields of the type to determine if they are valid.
  11926. func (s *DescribeEngineDefaultClusterParametersInput) Validate() error {
  11927. invalidParams := request.ErrInvalidParams{Context: "DescribeEngineDefaultClusterParametersInput"}
  11928. if s.DBParameterGroupFamily == nil {
  11929. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  11930. }
  11931. if s.Filters != nil {
  11932. for i, v := range s.Filters {
  11933. if v == nil {
  11934. continue
  11935. }
  11936. if err := v.Validate(); err != nil {
  11937. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  11938. }
  11939. }
  11940. }
  11941. if invalidParams.Len() > 0 {
  11942. return invalidParams
  11943. }
  11944. return nil
  11945. }
  11946. type DescribeEngineDefaultClusterParametersOutput struct {
  11947. _ struct{} `type:"structure"`
  11948. // Contains the result of a successful invocation of the DescribeEngineDefaultParameters
  11949. // action.
  11950. EngineDefaults *EngineDefaults `type:"structure"`
  11951. }
  11952. // String returns the string representation
  11953. func (s DescribeEngineDefaultClusterParametersOutput) String() string {
  11954. return awsutil.Prettify(s)
  11955. }
  11956. // GoString returns the string representation
  11957. func (s DescribeEngineDefaultClusterParametersOutput) GoString() string {
  11958. return s.String()
  11959. }
  11960. type DescribeEngineDefaultParametersInput struct {
  11961. _ struct{} `type:"structure"`
  11962. // The name of the DB parameter group family.
  11963. //
  11964. // DBParameterGroupFamily is a required field
  11965. DBParameterGroupFamily *string `type:"string" required:"true"`
  11966. // Not currently supported.
  11967. Filters []*Filter `locationNameList:"Filter" type:"list"`
  11968. // An optional pagination token provided by a previous DescribeEngineDefaultParameters
  11969. // request. If this parameter is specified, the response includes only records
  11970. // beyond the marker, up to the value specified by MaxRecords.
  11971. Marker *string `type:"string"`
  11972. // The maximum number of records to include in the response. If more records
  11973. // exist than the specified MaxRecords value, a pagination token called a marker
  11974. // is included in the response so that the remaining results can be retrieved.
  11975. //
  11976. // Default: 100
  11977. //
  11978. // Constraints: Minimum 20, maximum 100.
  11979. MaxRecords *int64 `type:"integer"`
  11980. }
  11981. // String returns the string representation
  11982. func (s DescribeEngineDefaultParametersInput) String() string {
  11983. return awsutil.Prettify(s)
  11984. }
  11985. // GoString returns the string representation
  11986. func (s DescribeEngineDefaultParametersInput) GoString() string {
  11987. return s.String()
  11988. }
  11989. // Validate inspects the fields of the type to determine if they are valid.
  11990. func (s *DescribeEngineDefaultParametersInput) Validate() error {
  11991. invalidParams := request.ErrInvalidParams{Context: "DescribeEngineDefaultParametersInput"}
  11992. if s.DBParameterGroupFamily == nil {
  11993. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  11994. }
  11995. if s.Filters != nil {
  11996. for i, v := range s.Filters {
  11997. if v == nil {
  11998. continue
  11999. }
  12000. if err := v.Validate(); err != nil {
  12001. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  12002. }
  12003. }
  12004. }
  12005. if invalidParams.Len() > 0 {
  12006. return invalidParams
  12007. }
  12008. return nil
  12009. }
  12010. type DescribeEngineDefaultParametersOutput struct {
  12011. _ struct{} `type:"structure"`
  12012. // Contains the result of a successful invocation of the DescribeEngineDefaultParameters
  12013. // action.
  12014. EngineDefaults *EngineDefaults `type:"structure"`
  12015. }
  12016. // String returns the string representation
  12017. func (s DescribeEngineDefaultParametersOutput) String() string {
  12018. return awsutil.Prettify(s)
  12019. }
  12020. // GoString returns the string representation
  12021. func (s DescribeEngineDefaultParametersOutput) GoString() string {
  12022. return s.String()
  12023. }
  12024. type DescribeEventCategoriesInput struct {
  12025. _ struct{} `type:"structure"`
  12026. // This parameter is not currently supported.
  12027. Filters []*Filter `locationNameList:"Filter" type:"list"`
  12028. // The type of source that will be generating the events.
  12029. //
  12030. // Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
  12031. SourceType *string `type:"string"`
  12032. }
  12033. // String returns the string representation
  12034. func (s DescribeEventCategoriesInput) String() string {
  12035. return awsutil.Prettify(s)
  12036. }
  12037. // GoString returns the string representation
  12038. func (s DescribeEventCategoriesInput) GoString() string {
  12039. return s.String()
  12040. }
  12041. // Validate inspects the fields of the type to determine if they are valid.
  12042. func (s *DescribeEventCategoriesInput) Validate() error {
  12043. invalidParams := request.ErrInvalidParams{Context: "DescribeEventCategoriesInput"}
  12044. if s.Filters != nil {
  12045. for i, v := range s.Filters {
  12046. if v == nil {
  12047. continue
  12048. }
  12049. if err := v.Validate(); err != nil {
  12050. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  12051. }
  12052. }
  12053. }
  12054. if invalidParams.Len() > 0 {
  12055. return invalidParams
  12056. }
  12057. return nil
  12058. }
  12059. // Data returned from the DescribeEventCategories action.
  12060. type DescribeEventCategoriesOutput struct {
  12061. _ struct{} `type:"structure"`
  12062. // A list of EventCategoriesMap data types.
  12063. EventCategoriesMapList []*EventCategoriesMap `locationNameList:"EventCategoriesMap" type:"list"`
  12064. }
  12065. // String returns the string representation
  12066. func (s DescribeEventCategoriesOutput) String() string {
  12067. return awsutil.Prettify(s)
  12068. }
  12069. // GoString returns the string representation
  12070. func (s DescribeEventCategoriesOutput) GoString() string {
  12071. return s.String()
  12072. }
  12073. type DescribeEventSubscriptionsInput struct {
  12074. _ struct{} `type:"structure"`
  12075. // This parameter is not currently supported.
  12076. Filters []*Filter `locationNameList:"Filter" type:"list"`
  12077. // An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions
  12078. // request. If this parameter is specified, the response includes only records
  12079. // beyond the marker, up to the value specified by MaxRecords .
  12080. Marker *string `type:"string"`
  12081. // The maximum number of records to include in the response. If more records
  12082. // exist than the specified MaxRecords value, a pagination token called a marker
  12083. // is included in the response so that the remaining results can be retrieved.
  12084. //
  12085. // Default: 100
  12086. //
  12087. // Constraints: Minimum 20, maximum 100.
  12088. MaxRecords *int64 `type:"integer"`
  12089. // The name of the RDS event notification subscription you want to describe.
  12090. SubscriptionName *string `type:"string"`
  12091. }
  12092. // String returns the string representation
  12093. func (s DescribeEventSubscriptionsInput) String() string {
  12094. return awsutil.Prettify(s)
  12095. }
  12096. // GoString returns the string representation
  12097. func (s DescribeEventSubscriptionsInput) GoString() string {
  12098. return s.String()
  12099. }
  12100. // Validate inspects the fields of the type to determine if they are valid.
  12101. func (s *DescribeEventSubscriptionsInput) Validate() error {
  12102. invalidParams := request.ErrInvalidParams{Context: "DescribeEventSubscriptionsInput"}
  12103. if s.Filters != nil {
  12104. for i, v := range s.Filters {
  12105. if v == nil {
  12106. continue
  12107. }
  12108. if err := v.Validate(); err != nil {
  12109. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  12110. }
  12111. }
  12112. }
  12113. if invalidParams.Len() > 0 {
  12114. return invalidParams
  12115. }
  12116. return nil
  12117. }
  12118. // Data returned by the DescribeEventSubscriptions action.
  12119. type DescribeEventSubscriptionsOutput struct {
  12120. _ struct{} `type:"structure"`
  12121. // A list of EventSubscriptions data types.
  12122. EventSubscriptionsList []*EventSubscription `locationNameList:"EventSubscription" type:"list"`
  12123. // An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions
  12124. // request. If this parameter is specified, the response includes only records
  12125. // beyond the marker, up to the value specified by MaxRecords.
  12126. Marker *string `type:"string"`
  12127. }
  12128. // String returns the string representation
  12129. func (s DescribeEventSubscriptionsOutput) String() string {
  12130. return awsutil.Prettify(s)
  12131. }
  12132. // GoString returns the string representation
  12133. func (s DescribeEventSubscriptionsOutput) GoString() string {
  12134. return s.String()
  12135. }
  12136. type DescribeEventsInput struct {
  12137. _ struct{} `type:"structure"`
  12138. // The number of minutes to retrieve events for.
  12139. //
  12140. // Default: 60
  12141. Duration *int64 `type:"integer"`
  12142. // The end of the time interval for which to retrieve events, specified in ISO
  12143. // 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia
  12144. // page. (http://en.wikipedia.org/wiki/ISO_8601)
  12145. //
  12146. // Example: 2009-07-08T18:00Z
  12147. EndTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  12148. // A list of event categories that trigger notifications for a event notification
  12149. // subscription.
  12150. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  12151. // This parameter is not currently supported.
  12152. Filters []*Filter `locationNameList:"Filter" type:"list"`
  12153. // An optional pagination token provided by a previous DescribeEvents request.
  12154. // If this parameter is specified, the response includes only records beyond
  12155. // the marker, up to the value specified by MaxRecords.
  12156. Marker *string `type:"string"`
  12157. // The maximum number of records to include in the response. If more records
  12158. // exist than the specified MaxRecords value, a pagination token called a marker
  12159. // is included in the response so that the remaining results can be retrieved.
  12160. //
  12161. // Default: 100
  12162. //
  12163. // Constraints: Minimum 20, maximum 100.
  12164. MaxRecords *int64 `type:"integer"`
  12165. // The identifier of the event source for which events will be returned. If
  12166. // not specified, then all sources are included in the response.
  12167. //
  12168. // Constraints:
  12169. //
  12170. // * If SourceIdentifier is supplied, SourceType must also be provided.
  12171. //
  12172. // * If the source type is DBInstance, then a DBInstanceIdentifier must be
  12173. // supplied.
  12174. //
  12175. // * If the source type is DBSecurityGroup, a DBSecurityGroupName must be
  12176. // supplied.
  12177. //
  12178. // * If the source type is DBParameterGroup, a DBParameterGroupName must
  12179. // be supplied.
  12180. //
  12181. // * If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied.
  12182. //
  12183. // * Cannot end with a hyphen or contain two consecutive hyphens.
  12184. SourceIdentifier *string `type:"string"`
  12185. // The event source to retrieve events for. If no value is specified, all events
  12186. // are returned.
  12187. SourceType *string `type:"string" enum:"SourceType"`
  12188. // The beginning of the time interval to retrieve events for, specified in ISO
  12189. // 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia
  12190. // page. (http://en.wikipedia.org/wiki/ISO_8601)
  12191. //
  12192. // Example: 2009-07-08T18:00Z
  12193. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  12194. }
  12195. // String returns the string representation
  12196. func (s DescribeEventsInput) String() string {
  12197. return awsutil.Prettify(s)
  12198. }
  12199. // GoString returns the string representation
  12200. func (s DescribeEventsInput) GoString() string {
  12201. return s.String()
  12202. }
  12203. // Validate inspects the fields of the type to determine if they are valid.
  12204. func (s *DescribeEventsInput) Validate() error {
  12205. invalidParams := request.ErrInvalidParams{Context: "DescribeEventsInput"}
  12206. if s.Filters != nil {
  12207. for i, v := range s.Filters {
  12208. if v == nil {
  12209. continue
  12210. }
  12211. if err := v.Validate(); err != nil {
  12212. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  12213. }
  12214. }
  12215. }
  12216. if invalidParams.Len() > 0 {
  12217. return invalidParams
  12218. }
  12219. return nil
  12220. }
  12221. // Contains the result of a successful invocation of the DescribeEvents action.
  12222. type DescribeEventsOutput struct {
  12223. _ struct{} `type:"structure"`
  12224. // A list of Event instances.
  12225. Events []*Event `locationNameList:"Event" type:"list"`
  12226. // An optional pagination token provided by a previous Events request. If this
  12227. // parameter is specified, the response includes only records beyond the marker,
  12228. // up to the value specified by MaxRecords .
  12229. Marker *string `type:"string"`
  12230. }
  12231. // String returns the string representation
  12232. func (s DescribeEventsOutput) String() string {
  12233. return awsutil.Prettify(s)
  12234. }
  12235. // GoString returns the string representation
  12236. func (s DescribeEventsOutput) GoString() string {
  12237. return s.String()
  12238. }
  12239. type DescribeOptionGroupOptionsInput struct {
  12240. _ struct{} `type:"structure"`
  12241. // A required parameter. Options available for the given engine name will be
  12242. // described.
  12243. //
  12244. // EngineName is a required field
  12245. EngineName *string `type:"string" required:"true"`
  12246. // This parameter is not currently supported.
  12247. Filters []*Filter `locationNameList:"Filter" type:"list"`
  12248. // If specified, filters the results to include only options for the specified
  12249. // major engine version.
  12250. MajorEngineVersion *string `type:"string"`
  12251. // An optional pagination token provided by a previous request. If this parameter
  12252. // is specified, the response includes only records beyond the marker, up to
  12253. // the value specified by MaxRecords.
  12254. Marker *string `type:"string"`
  12255. // The maximum number of records to include in the response. If more records
  12256. // exist than the specified MaxRecords value, a pagination token called a marker
  12257. // is included in the response so that the remaining results can be retrieved.
  12258. //
  12259. // Default: 100
  12260. //
  12261. // Constraints: Minimum 20, maximum 100.
  12262. MaxRecords *int64 `type:"integer"`
  12263. }
  12264. // String returns the string representation
  12265. func (s DescribeOptionGroupOptionsInput) String() string {
  12266. return awsutil.Prettify(s)
  12267. }
  12268. // GoString returns the string representation
  12269. func (s DescribeOptionGroupOptionsInput) GoString() string {
  12270. return s.String()
  12271. }
  12272. // Validate inspects the fields of the type to determine if they are valid.
  12273. func (s *DescribeOptionGroupOptionsInput) Validate() error {
  12274. invalidParams := request.ErrInvalidParams{Context: "DescribeOptionGroupOptionsInput"}
  12275. if s.EngineName == nil {
  12276. invalidParams.Add(request.NewErrParamRequired("EngineName"))
  12277. }
  12278. if s.Filters != nil {
  12279. for i, v := range s.Filters {
  12280. if v == nil {
  12281. continue
  12282. }
  12283. if err := v.Validate(); err != nil {
  12284. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  12285. }
  12286. }
  12287. }
  12288. if invalidParams.Len() > 0 {
  12289. return invalidParams
  12290. }
  12291. return nil
  12292. }
  12293. type DescribeOptionGroupOptionsOutput struct {
  12294. _ struct{} `type:"structure"`
  12295. // An optional pagination token provided by a previous request. If this parameter
  12296. // is specified, the response includes only records beyond the marker, up to
  12297. // the value specified by MaxRecords.
  12298. Marker *string `type:"string"`
  12299. // List of available option group options.
  12300. OptionGroupOptions []*OptionGroupOption `locationNameList:"OptionGroupOption" type:"list"`
  12301. }
  12302. // String returns the string representation
  12303. func (s DescribeOptionGroupOptionsOutput) String() string {
  12304. return awsutil.Prettify(s)
  12305. }
  12306. // GoString returns the string representation
  12307. func (s DescribeOptionGroupOptionsOutput) GoString() string {
  12308. return s.String()
  12309. }
  12310. type DescribeOptionGroupsInput struct {
  12311. _ struct{} `type:"structure"`
  12312. // Filters the list of option groups to only include groups associated with
  12313. // a specific database engine.
  12314. EngineName *string `type:"string"`
  12315. // This parameter is not currently supported.
  12316. Filters []*Filter `locationNameList:"Filter" type:"list"`
  12317. // Filters the list of option groups to only include groups associated with
  12318. // a specific database engine version. If specified, then EngineName must also
  12319. // be specified.
  12320. MajorEngineVersion *string `type:"string"`
  12321. // An optional pagination token provided by a previous DescribeOptionGroups
  12322. // request. If this parameter is specified, the response includes only records
  12323. // beyond the marker, up to the value specified by MaxRecords.
  12324. Marker *string `type:"string"`
  12325. // The maximum number of records to include in the response. If more records
  12326. // exist than the specified MaxRecords value, a pagination token called a marker
  12327. // is included in the response so that the remaining results can be retrieved.
  12328. //
  12329. // Default: 100
  12330. //
  12331. // Constraints: Minimum 20, maximum 100.
  12332. MaxRecords *int64 `type:"integer"`
  12333. // The name of the option group to describe. Cannot be supplied together with
  12334. // EngineName or MajorEngineVersion.
  12335. OptionGroupName *string `type:"string"`
  12336. }
  12337. // String returns the string representation
  12338. func (s DescribeOptionGroupsInput) String() string {
  12339. return awsutil.Prettify(s)
  12340. }
  12341. // GoString returns the string representation
  12342. func (s DescribeOptionGroupsInput) GoString() string {
  12343. return s.String()
  12344. }
  12345. // Validate inspects the fields of the type to determine if they are valid.
  12346. func (s *DescribeOptionGroupsInput) Validate() error {
  12347. invalidParams := request.ErrInvalidParams{Context: "DescribeOptionGroupsInput"}
  12348. if s.Filters != nil {
  12349. for i, v := range s.Filters {
  12350. if v == nil {
  12351. continue
  12352. }
  12353. if err := v.Validate(); err != nil {
  12354. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  12355. }
  12356. }
  12357. }
  12358. if invalidParams.Len() > 0 {
  12359. return invalidParams
  12360. }
  12361. return nil
  12362. }
  12363. // List of option groups.
  12364. type DescribeOptionGroupsOutput struct {
  12365. _ struct{} `type:"structure"`
  12366. // An optional pagination token provided by a previous request. If this parameter
  12367. // is specified, the response includes only records beyond the marker, up to
  12368. // the value specified by MaxRecords.
  12369. Marker *string `type:"string"`
  12370. // List of option groups.
  12371. OptionGroupsList []*OptionGroup `locationNameList:"OptionGroup" type:"list"`
  12372. }
  12373. // String returns the string representation
  12374. func (s DescribeOptionGroupsOutput) String() string {
  12375. return awsutil.Prettify(s)
  12376. }
  12377. // GoString returns the string representation
  12378. func (s DescribeOptionGroupsOutput) GoString() string {
  12379. return s.String()
  12380. }
  12381. type DescribeOrderableDBInstanceOptionsInput struct {
  12382. _ struct{} `type:"structure"`
  12383. // The DB instance class filter value. Specify this parameter to show only the
  12384. // available offerings matching the specified DB instance class.
  12385. DBInstanceClass *string `type:"string"`
  12386. // The name of the engine to retrieve DB instance options for.
  12387. //
  12388. // Engine is a required field
  12389. Engine *string `type:"string" required:"true"`
  12390. // The engine version filter value. Specify this parameter to show only the
  12391. // available offerings matching the specified engine version.
  12392. EngineVersion *string `type:"string"`
  12393. // This parameter is not currently supported.
  12394. Filters []*Filter `locationNameList:"Filter" type:"list"`
  12395. // The license model filter value. Specify this parameter to show only the available
  12396. // offerings matching the specified license model.
  12397. LicenseModel *string `type:"string"`
  12398. // An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions
  12399. // request. If this parameter is specified, the response includes only records
  12400. // beyond the marker, up to the value specified by MaxRecords .
  12401. Marker *string `type:"string"`
  12402. // The maximum number of records to include in the response. If more records
  12403. // exist than the specified MaxRecords value, a pagination token called a marker
  12404. // is included in the response so that the remaining results can be retrieved.
  12405. //
  12406. // Default: 100
  12407. //
  12408. // Constraints: Minimum 20, maximum 100.
  12409. MaxRecords *int64 `type:"integer"`
  12410. // The VPC filter value. Specify this parameter to show only the available VPC
  12411. // or non-VPC offerings.
  12412. Vpc *bool `type:"boolean"`
  12413. }
  12414. // String returns the string representation
  12415. func (s DescribeOrderableDBInstanceOptionsInput) String() string {
  12416. return awsutil.Prettify(s)
  12417. }
  12418. // GoString returns the string representation
  12419. func (s DescribeOrderableDBInstanceOptionsInput) GoString() string {
  12420. return s.String()
  12421. }
  12422. // Validate inspects the fields of the type to determine if they are valid.
  12423. func (s *DescribeOrderableDBInstanceOptionsInput) Validate() error {
  12424. invalidParams := request.ErrInvalidParams{Context: "DescribeOrderableDBInstanceOptionsInput"}
  12425. if s.Engine == nil {
  12426. invalidParams.Add(request.NewErrParamRequired("Engine"))
  12427. }
  12428. if s.Filters != nil {
  12429. for i, v := range s.Filters {
  12430. if v == nil {
  12431. continue
  12432. }
  12433. if err := v.Validate(); err != nil {
  12434. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  12435. }
  12436. }
  12437. }
  12438. if invalidParams.Len() > 0 {
  12439. return invalidParams
  12440. }
  12441. return nil
  12442. }
  12443. // Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions
  12444. // action.
  12445. type DescribeOrderableDBInstanceOptionsOutput struct {
  12446. _ struct{} `type:"structure"`
  12447. // An optional pagination token provided by a previous OrderableDBInstanceOptions
  12448. // request. If this parameter is specified, the response includes only records
  12449. // beyond the marker, up to the value specified by MaxRecords .
  12450. Marker *string `type:"string"`
  12451. // An OrderableDBInstanceOption structure containing information about orderable
  12452. // options for the DB instance.
  12453. OrderableDBInstanceOptions []*OrderableDBInstanceOption `locationNameList:"OrderableDBInstanceOption" type:"list"`
  12454. }
  12455. // String returns the string representation
  12456. func (s DescribeOrderableDBInstanceOptionsOutput) String() string {
  12457. return awsutil.Prettify(s)
  12458. }
  12459. // GoString returns the string representation
  12460. func (s DescribeOrderableDBInstanceOptionsOutput) GoString() string {
  12461. return s.String()
  12462. }
  12463. type DescribePendingMaintenanceActionsInput struct {
  12464. _ struct{} `type:"structure"`
  12465. // A filter that specifies one or more resources to return pending maintenance
  12466. // actions for.
  12467. //
  12468. // Supported filters:
  12469. //
  12470. // * db-instance-id - Accepts DB instance identifiers and DB instance Amazon
  12471. // Resource Names (ARNs). The results list will only include pending maintenance
  12472. // actions for the DB instances identified by these ARNs.
  12473. Filters []*Filter `locationNameList:"Filter" type:"list"`
  12474. // An optional pagination token provided by a previous DescribePendingMaintenanceActions
  12475. // request. If this parameter is specified, the response includes only records
  12476. // beyond the marker, up to a number of records specified by MaxRecords.
  12477. Marker *string `type:"string"`
  12478. // The maximum number of records to include in the response. If more records
  12479. // exist than the specified MaxRecords value, a pagination token called a marker
  12480. // is included in the response so that the remaining results can be retrieved.
  12481. //
  12482. // Default: 100
  12483. //
  12484. // Constraints: Minimum 20, maximum 100.
  12485. MaxRecords *int64 `type:"integer"`
  12486. // The ARN of a resource to return pending maintenance actions for.
  12487. ResourceIdentifier *string `type:"string"`
  12488. }
  12489. // String returns the string representation
  12490. func (s DescribePendingMaintenanceActionsInput) String() string {
  12491. return awsutil.Prettify(s)
  12492. }
  12493. // GoString returns the string representation
  12494. func (s DescribePendingMaintenanceActionsInput) GoString() string {
  12495. return s.String()
  12496. }
  12497. // Validate inspects the fields of the type to determine if they are valid.
  12498. func (s *DescribePendingMaintenanceActionsInput) Validate() error {
  12499. invalidParams := request.ErrInvalidParams{Context: "DescribePendingMaintenanceActionsInput"}
  12500. if s.Filters != nil {
  12501. for i, v := range s.Filters {
  12502. if v == nil {
  12503. continue
  12504. }
  12505. if err := v.Validate(); err != nil {
  12506. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  12507. }
  12508. }
  12509. }
  12510. if invalidParams.Len() > 0 {
  12511. return invalidParams
  12512. }
  12513. return nil
  12514. }
  12515. // Data returned from the DescribePendingMaintenanceActions action.
  12516. type DescribePendingMaintenanceActionsOutput struct {
  12517. _ struct{} `type:"structure"`
  12518. // An optional pagination token provided by a previous DescribePendingMaintenanceActions
  12519. // request. If this parameter is specified, the response includes only records
  12520. // beyond the marker, up to a number of records specified by MaxRecords.
  12521. Marker *string `type:"string"`
  12522. // A list of the pending maintenance actions for the resource.
  12523. PendingMaintenanceActions []*ResourcePendingMaintenanceActions `locationNameList:"ResourcePendingMaintenanceActions" type:"list"`
  12524. }
  12525. // String returns the string representation
  12526. func (s DescribePendingMaintenanceActionsOutput) String() string {
  12527. return awsutil.Prettify(s)
  12528. }
  12529. // GoString returns the string representation
  12530. func (s DescribePendingMaintenanceActionsOutput) GoString() string {
  12531. return s.String()
  12532. }
  12533. type DescribeReservedDBInstancesInput struct {
  12534. _ struct{} `type:"structure"`
  12535. // The DB instance class filter value. Specify this parameter to show only those
  12536. // reservations matching the specified DB instances class.
  12537. DBInstanceClass *string `type:"string"`
  12538. // The duration filter value, specified in years or seconds. Specify this parameter
  12539. // to show only reservations for this duration.
  12540. //
  12541. // Valid Values: 1 | 3 | 31536000 | 94608000
  12542. Duration *string `type:"string"`
  12543. // This parameter is not currently supported.
  12544. Filters []*Filter `locationNameList:"Filter" type:"list"`
  12545. // An optional pagination token provided by a previous request. If this parameter
  12546. // is specified, the response includes only records beyond the marker, up to
  12547. // the value specified by MaxRecords.
  12548. Marker *string `type:"string"`
  12549. // The maximum number of records to include in the response. If more than the
  12550. // MaxRecords value is available, a pagination token called a marker is included
  12551. // in the response so that the following results can be retrieved.
  12552. //
  12553. // Default: 100
  12554. //
  12555. // Constraints: Minimum 20, maximum 100.
  12556. MaxRecords *int64 `type:"integer"`
  12557. // The Multi-AZ filter value. Specify this parameter to show only those reservations
  12558. // matching the specified Multi-AZ parameter.
  12559. MultiAZ *bool `type:"boolean"`
  12560. // The offering type filter value. Specify this parameter to show only the available
  12561. // offerings matching the specified offering type.
  12562. //
  12563. // Valid Values: "Partial Upfront" | "All Upfront" | "No Upfront"
  12564. OfferingType *string `type:"string"`
  12565. // The product description filter value. Specify this parameter to show only
  12566. // those reservations matching the specified product description.
  12567. ProductDescription *string `type:"string"`
  12568. // The reserved DB instance identifier filter value. Specify this parameter
  12569. // to show only the reservation that matches the specified reservation ID.
  12570. ReservedDBInstanceId *string `type:"string"`
  12571. // The offering identifier filter value. Specify this parameter to show only
  12572. // purchased reservations matching the specified offering identifier.
  12573. ReservedDBInstancesOfferingId *string `type:"string"`
  12574. }
  12575. // String returns the string representation
  12576. func (s DescribeReservedDBInstancesInput) String() string {
  12577. return awsutil.Prettify(s)
  12578. }
  12579. // GoString returns the string representation
  12580. func (s DescribeReservedDBInstancesInput) GoString() string {
  12581. return s.String()
  12582. }
  12583. // Validate inspects the fields of the type to determine if they are valid.
  12584. func (s *DescribeReservedDBInstancesInput) Validate() error {
  12585. invalidParams := request.ErrInvalidParams{Context: "DescribeReservedDBInstancesInput"}
  12586. if s.Filters != nil {
  12587. for i, v := range s.Filters {
  12588. if v == nil {
  12589. continue
  12590. }
  12591. if err := v.Validate(); err != nil {
  12592. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  12593. }
  12594. }
  12595. }
  12596. if invalidParams.Len() > 0 {
  12597. return invalidParams
  12598. }
  12599. return nil
  12600. }
  12601. type DescribeReservedDBInstancesOfferingsInput struct {
  12602. _ struct{} `type:"structure"`
  12603. // The DB instance class filter value. Specify this parameter to show only the
  12604. // available offerings matching the specified DB instance class.
  12605. DBInstanceClass *string `type:"string"`
  12606. // Duration filter value, specified in years or seconds. Specify this parameter
  12607. // to show only reservations for this duration.
  12608. //
  12609. // Valid Values: 1 | 3 | 31536000 | 94608000
  12610. Duration *string `type:"string"`
  12611. // This parameter is not currently supported.
  12612. Filters []*Filter `locationNameList:"Filter" type:"list"`
  12613. // An optional pagination token provided by a previous request. If this parameter
  12614. // is specified, the response includes only records beyond the marker, up to
  12615. // the value specified by MaxRecords.
  12616. Marker *string `type:"string"`
  12617. // The maximum number of records to include in the response. If more than the
  12618. // MaxRecords value is available, a pagination token called a marker is included
  12619. // in the response so that the following results can be retrieved.
  12620. //
  12621. // Default: 100
  12622. //
  12623. // Constraints: Minimum 20, maximum 100.
  12624. MaxRecords *int64 `type:"integer"`
  12625. // The Multi-AZ filter value. Specify this parameter to show only the available
  12626. // offerings matching the specified Multi-AZ parameter.
  12627. MultiAZ *bool `type:"boolean"`
  12628. // The offering type filter value. Specify this parameter to show only the available
  12629. // offerings matching the specified offering type.
  12630. //
  12631. // Valid Values: "Partial Upfront" | "All Upfront" | "No Upfront"
  12632. OfferingType *string `type:"string"`
  12633. // Product description filter value. Specify this parameter to show only the
  12634. // available offerings matching the specified product description.
  12635. ProductDescription *string `type:"string"`
  12636. // The offering identifier filter value. Specify this parameter to show only
  12637. // the available offering that matches the specified reservation identifier.
  12638. //
  12639. // Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
  12640. ReservedDBInstancesOfferingId *string `type:"string"`
  12641. }
  12642. // String returns the string representation
  12643. func (s DescribeReservedDBInstancesOfferingsInput) String() string {
  12644. return awsutil.Prettify(s)
  12645. }
  12646. // GoString returns the string representation
  12647. func (s DescribeReservedDBInstancesOfferingsInput) GoString() string {
  12648. return s.String()
  12649. }
  12650. // Validate inspects the fields of the type to determine if they are valid.
  12651. func (s *DescribeReservedDBInstancesOfferingsInput) Validate() error {
  12652. invalidParams := request.ErrInvalidParams{Context: "DescribeReservedDBInstancesOfferingsInput"}
  12653. if s.Filters != nil {
  12654. for i, v := range s.Filters {
  12655. if v == nil {
  12656. continue
  12657. }
  12658. if err := v.Validate(); err != nil {
  12659. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  12660. }
  12661. }
  12662. }
  12663. if invalidParams.Len() > 0 {
  12664. return invalidParams
  12665. }
  12666. return nil
  12667. }
  12668. // Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings
  12669. // action.
  12670. type DescribeReservedDBInstancesOfferingsOutput struct {
  12671. _ struct{} `type:"structure"`
  12672. // An optional pagination token provided by a previous request. If this parameter
  12673. // is specified, the response includes only records beyond the marker, up to
  12674. // the value specified by MaxRecords.
  12675. Marker *string `type:"string"`
  12676. // A list of reserved DB instance offerings.
  12677. ReservedDBInstancesOfferings []*ReservedDBInstancesOffering `locationNameList:"ReservedDBInstancesOffering" type:"list"`
  12678. }
  12679. // String returns the string representation
  12680. func (s DescribeReservedDBInstancesOfferingsOutput) String() string {
  12681. return awsutil.Prettify(s)
  12682. }
  12683. // GoString returns the string representation
  12684. func (s DescribeReservedDBInstancesOfferingsOutput) GoString() string {
  12685. return s.String()
  12686. }
  12687. // Contains the result of a successful invocation of the DescribeReservedDBInstances
  12688. // action.
  12689. type DescribeReservedDBInstancesOutput struct {
  12690. _ struct{} `type:"structure"`
  12691. // An optional pagination token provided by a previous request. If this parameter
  12692. // is specified, the response includes only records beyond the marker, up to
  12693. // the value specified by MaxRecords.
  12694. Marker *string `type:"string"`
  12695. // A list of reserved DB instances.
  12696. ReservedDBInstances []*ReservedDBInstance `locationNameList:"ReservedDBInstance" type:"list"`
  12697. }
  12698. // String returns the string representation
  12699. func (s DescribeReservedDBInstancesOutput) String() string {
  12700. return awsutil.Prettify(s)
  12701. }
  12702. // GoString returns the string representation
  12703. func (s DescribeReservedDBInstancesOutput) GoString() string {
  12704. return s.String()
  12705. }
  12706. type DescribeSourceRegionsInput struct {
  12707. _ struct{} `type:"structure"`
  12708. // This parameter is not currently supported.
  12709. Filters []*Filter `locationNameList:"Filter" type:"list"`
  12710. // An optional pagination token provided by a previous DescribeSourceRegions
  12711. // request. If this parameter is specified, the response includes only records
  12712. // beyond the marker, up to the value specified by MaxRecords.
  12713. Marker *string `type:"string"`
  12714. // The maximum number of records to include in the response. If more records
  12715. // exist than the specified MaxRecords value, a pagination token called a marker
  12716. // is included in the response so that the remaining results can be retrieved.
  12717. //
  12718. // Default: 100
  12719. //
  12720. // Constraints: Minimum 20, maximum 100.
  12721. MaxRecords *int64 `type:"integer"`
  12722. // The source region name. For example, us-east-1.
  12723. //
  12724. // Constraints:
  12725. //
  12726. // * Must specify a valid AWS Region name.
  12727. RegionName *string `type:"string"`
  12728. }
  12729. // String returns the string representation
  12730. func (s DescribeSourceRegionsInput) String() string {
  12731. return awsutil.Prettify(s)
  12732. }
  12733. // GoString returns the string representation
  12734. func (s DescribeSourceRegionsInput) GoString() string {
  12735. return s.String()
  12736. }
  12737. // Validate inspects the fields of the type to determine if they are valid.
  12738. func (s *DescribeSourceRegionsInput) Validate() error {
  12739. invalidParams := request.ErrInvalidParams{Context: "DescribeSourceRegionsInput"}
  12740. if s.Filters != nil {
  12741. for i, v := range s.Filters {
  12742. if v == nil {
  12743. continue
  12744. }
  12745. if err := v.Validate(); err != nil {
  12746. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  12747. }
  12748. }
  12749. }
  12750. if invalidParams.Len() > 0 {
  12751. return invalidParams
  12752. }
  12753. return nil
  12754. }
  12755. // Contains the result of a successful invocation of the DescribeSourceRegions
  12756. // action.
  12757. type DescribeSourceRegionsOutput struct {
  12758. _ struct{} `type:"structure"`
  12759. // An optional pagination token provided by a previous request. If this parameter
  12760. // is specified, the response includes only records beyond the marker, up to
  12761. // the value specified by MaxRecords.
  12762. Marker *string `type:"string"`
  12763. // A list of SourceRegion instances that contains each source AWS Region that
  12764. // the current region can get a Read Replica or a DB snapshot from.
  12765. SourceRegions []*SourceRegion `locationNameList:"SourceRegion" type:"list"`
  12766. }
  12767. // String returns the string representation
  12768. func (s DescribeSourceRegionsOutput) String() string {
  12769. return awsutil.Prettify(s)
  12770. }
  12771. // GoString returns the string representation
  12772. func (s DescribeSourceRegionsOutput) GoString() string {
  12773. return s.String()
  12774. }
  12775. // An Active Directory Domain membership record associated with the DB instance.
  12776. type DomainMembership struct {
  12777. _ struct{} `type:"structure"`
  12778. // The identifier of the Active Directory Domain.
  12779. Domain *string `type:"string"`
  12780. // The fully qualified domain name of the Active Directory Domain.
  12781. FQDN *string `type:"string"`
  12782. // The name of the IAM role to be used when making API calls to the Directory
  12783. // Service.
  12784. IAMRoleName *string `type:"string"`
  12785. // The status of the DB instance's Active Directory Domain membership, such
  12786. // as joined, pending-join, failed etc).
  12787. Status *string `type:"string"`
  12788. }
  12789. // String returns the string representation
  12790. func (s DomainMembership) String() string {
  12791. return awsutil.Prettify(s)
  12792. }
  12793. // GoString returns the string representation
  12794. func (s DomainMembership) GoString() string {
  12795. return s.String()
  12796. }
  12797. type DownloadDBLogFilePortionInput struct {
  12798. _ struct{} `type:"structure"`
  12799. // The customer-assigned name of the DB instance that contains the log files
  12800. // you want to list.
  12801. //
  12802. // Constraints:
  12803. //
  12804. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  12805. //
  12806. // * First character must be a letter
  12807. //
  12808. // * Cannot end with a hyphen or contain two consecutive hyphens
  12809. //
  12810. // DBInstanceIdentifier is a required field
  12811. DBInstanceIdentifier *string `type:"string" required:"true"`
  12812. // The name of the log file to be downloaded.
  12813. //
  12814. // LogFileName is a required field
  12815. LogFileName *string `type:"string" required:"true"`
  12816. // The pagination token provided in the previous request or "0". If the Marker
  12817. // parameter is specified the response includes only records beyond the marker
  12818. // until the end of the file or up to NumberOfLines.
  12819. Marker *string `type:"string"`
  12820. // The number of lines to download. If the number of lines specified results
  12821. // in a file over 1 MB in size, the file will be truncated at 1 MB in size.
  12822. //
  12823. // If the NumberOfLines parameter is specified, then the block of lines returned
  12824. // can be from the beginning or the end of the log file, depending on the value
  12825. // of the Marker parameter.
  12826. //
  12827. // * If neither Marker or NumberOfLines are specified, the entire log file
  12828. // is returned up to a maximum of 10000 lines, starting with the most recent
  12829. // log entries first.
  12830. //
  12831. // * If NumberOfLines is specified and Marker is not specified, then the
  12832. // most recent lines from the end of the log file are returned.
  12833. //
  12834. // * If Marker is specified as "0", then the specified number of lines from
  12835. // the beginning of the log file are returned.
  12836. //
  12837. // * You can download the log file in blocks of lines by specifying the size
  12838. // of the block using the NumberOfLines parameter, and by specifying a value
  12839. // of "0" for the Marker parameter in your first request. Include the Marker
  12840. // value returned in the response as the Marker value for the next request,
  12841. // continuing until the AdditionalDataPending response element returns false.
  12842. NumberOfLines *int64 `type:"integer"`
  12843. }
  12844. // String returns the string representation
  12845. func (s DownloadDBLogFilePortionInput) String() string {
  12846. return awsutil.Prettify(s)
  12847. }
  12848. // GoString returns the string representation
  12849. func (s DownloadDBLogFilePortionInput) GoString() string {
  12850. return s.String()
  12851. }
  12852. // Validate inspects the fields of the type to determine if they are valid.
  12853. func (s *DownloadDBLogFilePortionInput) Validate() error {
  12854. invalidParams := request.ErrInvalidParams{Context: "DownloadDBLogFilePortionInput"}
  12855. if s.DBInstanceIdentifier == nil {
  12856. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  12857. }
  12858. if s.LogFileName == nil {
  12859. invalidParams.Add(request.NewErrParamRequired("LogFileName"))
  12860. }
  12861. if invalidParams.Len() > 0 {
  12862. return invalidParams
  12863. }
  12864. return nil
  12865. }
  12866. // This data type is used as a response element to DownloadDBLogFilePortion.
  12867. type DownloadDBLogFilePortionOutput struct {
  12868. _ struct{} `type:"structure"`
  12869. // Boolean value that if true, indicates there is more data to be downloaded.
  12870. AdditionalDataPending *bool `type:"boolean"`
  12871. // Entries from the specified log file.
  12872. LogFileData *string `type:"string"`
  12873. // A pagination token that can be used in a subsequent DownloadDBLogFilePortion
  12874. // request.
  12875. Marker *string `type:"string"`
  12876. }
  12877. // String returns the string representation
  12878. func (s DownloadDBLogFilePortionOutput) String() string {
  12879. return awsutil.Prettify(s)
  12880. }
  12881. // GoString returns the string representation
  12882. func (s DownloadDBLogFilePortionOutput) GoString() string {
  12883. return s.String()
  12884. }
  12885. // This data type is used as a response element in the following actions:
  12886. //
  12887. // * AuthorizeDBSecurityGroupIngress
  12888. //
  12889. // * DescribeDBSecurityGroups
  12890. //
  12891. // * RevokeDBSecurityGroupIngress
  12892. type EC2SecurityGroup struct {
  12893. _ struct{} `type:"structure"`
  12894. // Specifies the id of the EC2 security group.
  12895. EC2SecurityGroupId *string `type:"string"`
  12896. // Specifies the name of the EC2 security group.
  12897. EC2SecurityGroupName *string `type:"string"`
  12898. // Specifies the AWS ID of the owner of the EC2 security group specified in
  12899. // the EC2SecurityGroupName field.
  12900. EC2SecurityGroupOwnerId *string `type:"string"`
  12901. // Provides the status of the EC2 security group. Status can be "authorizing",
  12902. // "authorized", "revoking", and "revoked".
  12903. Status *string `type:"string"`
  12904. }
  12905. // String returns the string representation
  12906. func (s EC2SecurityGroup) String() string {
  12907. return awsutil.Prettify(s)
  12908. }
  12909. // GoString returns the string representation
  12910. func (s EC2SecurityGroup) GoString() string {
  12911. return s.String()
  12912. }
  12913. // This data type is used as a response element in the following actions:
  12914. //
  12915. // * CreateDBInstance
  12916. //
  12917. // * DescribeDBInstances
  12918. //
  12919. // * DeleteDBInstance
  12920. type Endpoint struct {
  12921. _ struct{} `type:"structure"`
  12922. // Specifies the DNS address of the DB instance.
  12923. Address *string `type:"string"`
  12924. // Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
  12925. HostedZoneId *string `type:"string"`
  12926. // Specifies the port that the database engine is listening on.
  12927. Port *int64 `type:"integer"`
  12928. }
  12929. // String returns the string representation
  12930. func (s Endpoint) String() string {
  12931. return awsutil.Prettify(s)
  12932. }
  12933. // GoString returns the string representation
  12934. func (s Endpoint) GoString() string {
  12935. return s.String()
  12936. }
  12937. // Contains the result of a successful invocation of the DescribeEngineDefaultParameters
  12938. // action.
  12939. type EngineDefaults struct {
  12940. _ struct{} `type:"structure"`
  12941. // Specifies the name of the DB parameter group family that the engine default
  12942. // parameters apply to.
  12943. DBParameterGroupFamily *string `type:"string"`
  12944. // An optional pagination token provided by a previous EngineDefaults request.
  12945. // If this parameter is specified, the response includes only records beyond
  12946. // the marker, up to the value specified by MaxRecords .
  12947. Marker *string `type:"string"`
  12948. // Contains a list of engine default parameters.
  12949. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  12950. }
  12951. // String returns the string representation
  12952. func (s EngineDefaults) String() string {
  12953. return awsutil.Prettify(s)
  12954. }
  12955. // GoString returns the string representation
  12956. func (s EngineDefaults) GoString() string {
  12957. return s.String()
  12958. }
  12959. // This data type is used as a response element in the DescribeEvents action.
  12960. type Event struct {
  12961. _ struct{} `type:"structure"`
  12962. // Specifies the date and time of the event.
  12963. Date *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  12964. // Specifies the category for the event.
  12965. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  12966. // Provides the text of this event.
  12967. Message *string `type:"string"`
  12968. // The Amazon Resource Name (ARN) for the event.
  12969. SourceArn *string `type:"string"`
  12970. // Provides the identifier for the source of the event.
  12971. SourceIdentifier *string `type:"string"`
  12972. // Specifies the source type for this event.
  12973. SourceType *string `type:"string" enum:"SourceType"`
  12974. }
  12975. // String returns the string representation
  12976. func (s Event) String() string {
  12977. return awsutil.Prettify(s)
  12978. }
  12979. // GoString returns the string representation
  12980. func (s Event) GoString() string {
  12981. return s.String()
  12982. }
  12983. // Contains the results of a successful invocation of the DescribeEventCategories
  12984. // action.
  12985. type EventCategoriesMap struct {
  12986. _ struct{} `type:"structure"`
  12987. // The event categories for the specified source type
  12988. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  12989. // The source type that the returned categories belong to
  12990. SourceType *string `type:"string"`
  12991. }
  12992. // String returns the string representation
  12993. func (s EventCategoriesMap) String() string {
  12994. return awsutil.Prettify(s)
  12995. }
  12996. // GoString returns the string representation
  12997. func (s EventCategoriesMap) GoString() string {
  12998. return s.String()
  12999. }
  13000. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  13001. // action.
  13002. type EventSubscription struct {
  13003. _ struct{} `type:"structure"`
  13004. // The RDS event notification subscription Id.
  13005. CustSubscriptionId *string `type:"string"`
  13006. // The AWS customer account associated with the RDS event notification subscription.
  13007. CustomerAwsId *string `type:"string"`
  13008. // A Boolean value indicating if the subscription is enabled. True indicates
  13009. // the subscription is enabled.
  13010. Enabled *bool `type:"boolean"`
  13011. // A list of event categories for the RDS event notification subscription.
  13012. EventCategoriesList []*string `locationNameList:"EventCategory" type:"list"`
  13013. // The Amazon Resource Name (ARN) for the event subscription.
  13014. EventSubscriptionArn *string `type:"string"`
  13015. // The topic ARN of the RDS event notification subscription.
  13016. SnsTopicArn *string `type:"string"`
  13017. // A list of source IDs for the RDS event notification subscription.
  13018. SourceIdsList []*string `locationNameList:"SourceId" type:"list"`
  13019. // The source type for the RDS event notification subscription.
  13020. SourceType *string `type:"string"`
  13021. // The status of the RDS event notification subscription.
  13022. //
  13023. // Constraints:
  13024. //
  13025. // Can be one of the following: creating | modifying | deleting | active | no-permission
  13026. // | topic-not-exist
  13027. //
  13028. // The status "no-permission" indicates that RDS no longer has permission to
  13029. // post to the SNS topic. The status "topic-not-exist" indicates that the topic
  13030. // was deleted after the subscription was created.
  13031. Status *string `type:"string"`
  13032. // The time the RDS event notification subscription was created.
  13033. SubscriptionCreationTime *string `type:"string"`
  13034. }
  13035. // String returns the string representation
  13036. func (s EventSubscription) String() string {
  13037. return awsutil.Prettify(s)
  13038. }
  13039. // GoString returns the string representation
  13040. func (s EventSubscription) GoString() string {
  13041. return s.String()
  13042. }
  13043. type FailoverDBClusterInput struct {
  13044. _ struct{} `type:"structure"`
  13045. // A DB cluster identifier to force a failover for. This parameter is not case-sensitive.
  13046. //
  13047. // Constraints:
  13048. //
  13049. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  13050. //
  13051. // * First character must be a letter
  13052. //
  13053. // * Cannot end with a hyphen or contain two consecutive hyphens
  13054. DBClusterIdentifier *string `type:"string"`
  13055. // The name of the instance to promote to the primary instance.
  13056. //
  13057. // You must specify the instance identifier for an Aurora Replica in the DB
  13058. // cluster. For example, mydbcluster-replica1.
  13059. TargetDBInstanceIdentifier *string `type:"string"`
  13060. }
  13061. // String returns the string representation
  13062. func (s FailoverDBClusterInput) String() string {
  13063. return awsutil.Prettify(s)
  13064. }
  13065. // GoString returns the string representation
  13066. func (s FailoverDBClusterInput) GoString() string {
  13067. return s.String()
  13068. }
  13069. type FailoverDBClusterOutput struct {
  13070. _ struct{} `type:"structure"`
  13071. // Contains the result of a successful invocation of the following actions:
  13072. //
  13073. // * CreateDBCluster
  13074. //
  13075. // * DeleteDBCluster
  13076. //
  13077. // * FailoverDBCluster
  13078. //
  13079. // * ModifyDBCluster
  13080. //
  13081. // * RestoreDBClusterFromSnapshot
  13082. //
  13083. // * RestoreDBClusterToPointInTime
  13084. //
  13085. // This data type is used as a response element in the DescribeDBClusters action.
  13086. DBCluster *DBCluster `type:"structure"`
  13087. }
  13088. // String returns the string representation
  13089. func (s FailoverDBClusterOutput) String() string {
  13090. return awsutil.Prettify(s)
  13091. }
  13092. // GoString returns the string representation
  13093. func (s FailoverDBClusterOutput) GoString() string {
  13094. return s.String()
  13095. }
  13096. // This type is not currently supported.
  13097. type Filter struct {
  13098. _ struct{} `type:"structure"`
  13099. // This parameter is not currently supported.
  13100. //
  13101. // Name is a required field
  13102. Name *string `type:"string" required:"true"`
  13103. // This parameter is not currently supported.
  13104. //
  13105. // Values is a required field
  13106. Values []*string `locationNameList:"Value" type:"list" required:"true"`
  13107. }
  13108. // String returns the string representation
  13109. func (s Filter) String() string {
  13110. return awsutil.Prettify(s)
  13111. }
  13112. // GoString returns the string representation
  13113. func (s Filter) GoString() string {
  13114. return s.String()
  13115. }
  13116. // Validate inspects the fields of the type to determine if they are valid.
  13117. func (s *Filter) Validate() error {
  13118. invalidParams := request.ErrInvalidParams{Context: "Filter"}
  13119. if s.Name == nil {
  13120. invalidParams.Add(request.NewErrParamRequired("Name"))
  13121. }
  13122. if s.Values == nil {
  13123. invalidParams.Add(request.NewErrParamRequired("Values"))
  13124. }
  13125. if invalidParams.Len() > 0 {
  13126. return invalidParams
  13127. }
  13128. return nil
  13129. }
  13130. // This data type is used as a response element in the DescribeDBSecurityGroups
  13131. // action.
  13132. type IPRange struct {
  13133. _ struct{} `type:"structure"`
  13134. // Specifies the IP range.
  13135. CIDRIP *string `type:"string"`
  13136. // Specifies the status of the IP range. Status can be "authorizing", "authorized",
  13137. // "revoking", and "revoked".
  13138. Status *string `type:"string"`
  13139. }
  13140. // String returns the string representation
  13141. func (s IPRange) String() string {
  13142. return awsutil.Prettify(s)
  13143. }
  13144. // GoString returns the string representation
  13145. func (s IPRange) GoString() string {
  13146. return s.String()
  13147. }
  13148. type ListTagsForResourceInput struct {
  13149. _ struct{} `type:"structure"`
  13150. // This parameter is not currently supported.
  13151. Filters []*Filter `locationNameList:"Filter" type:"list"`
  13152. // The Amazon RDS resource with tags to be listed. This value is an Amazon Resource
  13153. // Name (ARN). For information about creating an ARN, see Constructing an RDS
  13154. // Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing).
  13155. //
  13156. // ResourceName is a required field
  13157. ResourceName *string `type:"string" required:"true"`
  13158. }
  13159. // String returns the string representation
  13160. func (s ListTagsForResourceInput) String() string {
  13161. return awsutil.Prettify(s)
  13162. }
  13163. // GoString returns the string representation
  13164. func (s ListTagsForResourceInput) GoString() string {
  13165. return s.String()
  13166. }
  13167. // Validate inspects the fields of the type to determine if they are valid.
  13168. func (s *ListTagsForResourceInput) Validate() error {
  13169. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  13170. if s.ResourceName == nil {
  13171. invalidParams.Add(request.NewErrParamRequired("ResourceName"))
  13172. }
  13173. if s.Filters != nil {
  13174. for i, v := range s.Filters {
  13175. if v == nil {
  13176. continue
  13177. }
  13178. if err := v.Validate(); err != nil {
  13179. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  13180. }
  13181. }
  13182. }
  13183. if invalidParams.Len() > 0 {
  13184. return invalidParams
  13185. }
  13186. return nil
  13187. }
  13188. type ListTagsForResourceOutput struct {
  13189. _ struct{} `type:"structure"`
  13190. // List of tags returned by the ListTagsForResource operation.
  13191. TagList []*Tag `locationNameList:"Tag" type:"list"`
  13192. }
  13193. // String returns the string representation
  13194. func (s ListTagsForResourceOutput) String() string {
  13195. return awsutil.Prettify(s)
  13196. }
  13197. // GoString returns the string representation
  13198. func (s ListTagsForResourceOutput) GoString() string {
  13199. return s.String()
  13200. }
  13201. type ModifyDBClusterInput struct {
  13202. _ struct{} `type:"structure"`
  13203. // A value that specifies whether the modifications in this request and any
  13204. // pending modifications are asynchronously applied as soon as possible, regardless
  13205. // of the PreferredMaintenanceWindow setting for the DB cluster. If this parameter
  13206. // is set to false, changes to the DB cluster are applied during the next maintenance
  13207. // window.
  13208. //
  13209. // The ApplyImmediately parameter only affects the NewDBClusterIdentifier and
  13210. // MasterUserPassword values. If you set the ApplyImmediately parameter value
  13211. // to false, then changes to the NewDBClusterIdentifier and MasterUserPassword
  13212. // values are applied during the next maintenance window. All other changes
  13213. // are applied immediately, regardless of the value of the ApplyImmediately
  13214. // parameter.
  13215. //
  13216. // Default: false
  13217. ApplyImmediately *bool `type:"boolean"`
  13218. // The number of days for which automated backups are retained. You must specify
  13219. // a minimum value of 1.
  13220. //
  13221. // Default: 1
  13222. //
  13223. // Constraints:
  13224. //
  13225. // * Must be a value from 1 to 35
  13226. BackupRetentionPeriod *int64 `type:"integer"`
  13227. // The DB cluster identifier for the cluster being modified. This parameter
  13228. // is not case-sensitive.
  13229. //
  13230. // Constraints:
  13231. //
  13232. // * Must be the identifier for an existing DB cluster.
  13233. //
  13234. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  13235. //
  13236. // * First character must be a letter.
  13237. //
  13238. // * Cannot end with a hyphen or contain two consecutive hyphens.
  13239. //
  13240. // DBClusterIdentifier is a required field
  13241. DBClusterIdentifier *string `type:"string" required:"true"`
  13242. // The name of the DB cluster parameter group to use for the DB cluster.
  13243. DBClusterParameterGroupName *string `type:"string"`
  13244. // The new password for the master database user. This password can contain
  13245. // any printable ASCII character except "/", """, or "@".
  13246. //
  13247. // Constraints: Must contain from 8 to 41 characters.
  13248. MasterUserPassword *string `type:"string"`
  13249. // The new DB cluster identifier for the DB cluster when renaming a DB cluster.
  13250. // This value is stored as a lowercase string.
  13251. //
  13252. // Constraints:
  13253. //
  13254. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  13255. //
  13256. // * First character must be a letter
  13257. //
  13258. // * Cannot end with a hyphen or contain two consecutive hyphens
  13259. //
  13260. // Example: my-cluster2
  13261. NewDBClusterIdentifier *string `type:"string"`
  13262. // A value that indicates that the DB cluster should be associated with the
  13263. // specified option group. Changing this parameter does not result in an outage
  13264. // except in the following case, and the change is applied during the next maintenance
  13265. // window unless the ApplyImmediately parameter is set to true for this request.
  13266. // If the parameter change results in an option group that enables OEM, this
  13267. // change can cause a brief (sub-second) period during which new connections
  13268. // are rejected but existing connections are not interrupted.
  13269. //
  13270. // Permanent options cannot be removed from an option group. The option group
  13271. // cannot be removed from a DB cluster once it is associated with a DB cluster.
  13272. OptionGroupName *string `type:"string"`
  13273. // The port number on which the DB cluster accepts connections.
  13274. //
  13275. // Constraints: Value must be 1150-65535
  13276. //
  13277. // Default: The same port as the original DB cluster.
  13278. Port *int64 `type:"integer"`
  13279. // The daily time range during which automated backups are created if automated
  13280. // backups are enabled, using the BackupRetentionPeriod parameter.
  13281. //
  13282. // Default: A 30-minute window selected at random from an 8-hour block of time
  13283. // per region. To see the time blocks available, see Adjusting the Preferred
  13284. // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  13285. // in the Amazon RDS User Guide.
  13286. //
  13287. // Constraints:
  13288. //
  13289. // * Must be in the format hh24:mi-hh24:mi.
  13290. //
  13291. // * Times should be in Universal Coordinated Time (UTC).
  13292. //
  13293. // * Must not conflict with the preferred maintenance window.
  13294. //
  13295. // * Must be at least 30 minutes.
  13296. PreferredBackupWindow *string `type:"string"`
  13297. // The weekly time range during which system maintenance can occur, in Universal
  13298. // Coordinated Time (UTC).
  13299. //
  13300. // Format: ddd:hh24:mi-ddd:hh24:mi
  13301. //
  13302. // Default: A 30-minute window selected at random from an 8-hour block of time
  13303. // per region, occurring on a random day of the week. To see the time blocks
  13304. // available, see Adjusting the Preferred Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  13305. // in the Amazon RDS User Guide.
  13306. //
  13307. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  13308. //
  13309. // Constraints: Minimum 30-minute window.
  13310. PreferredMaintenanceWindow *string `type:"string"`
  13311. // A lst of VPC security groups that the DB cluster will belong to.
  13312. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  13313. }
  13314. // String returns the string representation
  13315. func (s ModifyDBClusterInput) String() string {
  13316. return awsutil.Prettify(s)
  13317. }
  13318. // GoString returns the string representation
  13319. func (s ModifyDBClusterInput) GoString() string {
  13320. return s.String()
  13321. }
  13322. // Validate inspects the fields of the type to determine if they are valid.
  13323. func (s *ModifyDBClusterInput) Validate() error {
  13324. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterInput"}
  13325. if s.DBClusterIdentifier == nil {
  13326. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  13327. }
  13328. if invalidParams.Len() > 0 {
  13329. return invalidParams
  13330. }
  13331. return nil
  13332. }
  13333. type ModifyDBClusterOutput struct {
  13334. _ struct{} `type:"structure"`
  13335. // Contains the result of a successful invocation of the following actions:
  13336. //
  13337. // * CreateDBCluster
  13338. //
  13339. // * DeleteDBCluster
  13340. //
  13341. // * FailoverDBCluster
  13342. //
  13343. // * ModifyDBCluster
  13344. //
  13345. // * RestoreDBClusterFromSnapshot
  13346. //
  13347. // * RestoreDBClusterToPointInTime
  13348. //
  13349. // This data type is used as a response element in the DescribeDBClusters action.
  13350. DBCluster *DBCluster `type:"structure"`
  13351. }
  13352. // String returns the string representation
  13353. func (s ModifyDBClusterOutput) String() string {
  13354. return awsutil.Prettify(s)
  13355. }
  13356. // GoString returns the string representation
  13357. func (s ModifyDBClusterOutput) GoString() string {
  13358. return s.String()
  13359. }
  13360. type ModifyDBClusterParameterGroupInput struct {
  13361. _ struct{} `type:"structure"`
  13362. // The name of the DB cluster parameter group to modify.
  13363. //
  13364. // DBClusterParameterGroupName is a required field
  13365. DBClusterParameterGroupName *string `type:"string" required:"true"`
  13366. // A list of parameters in the DB cluster parameter group to modify.
  13367. //
  13368. // Parameters is a required field
  13369. Parameters []*Parameter `locationNameList:"Parameter" type:"list" required:"true"`
  13370. }
  13371. // String returns the string representation
  13372. func (s ModifyDBClusterParameterGroupInput) String() string {
  13373. return awsutil.Prettify(s)
  13374. }
  13375. // GoString returns the string representation
  13376. func (s ModifyDBClusterParameterGroupInput) GoString() string {
  13377. return s.String()
  13378. }
  13379. // Validate inspects the fields of the type to determine if they are valid.
  13380. func (s *ModifyDBClusterParameterGroupInput) Validate() error {
  13381. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterParameterGroupInput"}
  13382. if s.DBClusterParameterGroupName == nil {
  13383. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  13384. }
  13385. if s.Parameters == nil {
  13386. invalidParams.Add(request.NewErrParamRequired("Parameters"))
  13387. }
  13388. if invalidParams.Len() > 0 {
  13389. return invalidParams
  13390. }
  13391. return nil
  13392. }
  13393. type ModifyDBClusterSnapshotAttributeInput struct {
  13394. _ struct{} `type:"structure"`
  13395. // The name of the DB cluster snapshot attribute to modify.
  13396. //
  13397. // To manage authorization for other AWS accounts to copy or restore a manual
  13398. // DB cluster snapshot, set this value to restore.
  13399. //
  13400. // AttributeName is a required field
  13401. AttributeName *string `type:"string" required:"true"`
  13402. // The identifier for the DB cluster snapshot to modify the attributes for.
  13403. //
  13404. // DBClusterSnapshotIdentifier is a required field
  13405. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  13406. // A list of DB cluster snapshot attributes to add to the attribute specified
  13407. // by AttributeName.
  13408. //
  13409. // To authorize other AWS accounts to copy or restore a manual DB cluster snapshot,
  13410. // set this list to include one or more AWS account IDs, or all to make the
  13411. // manual DB cluster snapshot restorable by any AWS account. Do not add the
  13412. // all value for any manual DB cluster snapshots that contain private information
  13413. // that you don't want available to all AWS accounts.
  13414. ValuesToAdd []*string `locationNameList:"AttributeValue" type:"list"`
  13415. // A list of DB cluster snapshot attributes to remove from the attribute specified
  13416. // by AttributeName.
  13417. //
  13418. // To remove authorization for other AWS accounts to copy or restore a manual
  13419. // DB cluster snapshot, set this list to include one or more AWS account identifiers,
  13420. // or all to remove authorization for any AWS account to copy or restore the
  13421. // DB cluster snapshot. If you specify all, an AWS account whose account ID
  13422. // is explicitly added to the restore attribute can still copy or restore a
  13423. // manual DB cluster snapshot.
  13424. ValuesToRemove []*string `locationNameList:"AttributeValue" type:"list"`
  13425. }
  13426. // String returns the string representation
  13427. func (s ModifyDBClusterSnapshotAttributeInput) String() string {
  13428. return awsutil.Prettify(s)
  13429. }
  13430. // GoString returns the string representation
  13431. func (s ModifyDBClusterSnapshotAttributeInput) GoString() string {
  13432. return s.String()
  13433. }
  13434. // Validate inspects the fields of the type to determine if they are valid.
  13435. func (s *ModifyDBClusterSnapshotAttributeInput) Validate() error {
  13436. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterSnapshotAttributeInput"}
  13437. if s.AttributeName == nil {
  13438. invalidParams.Add(request.NewErrParamRequired("AttributeName"))
  13439. }
  13440. if s.DBClusterSnapshotIdentifier == nil {
  13441. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  13442. }
  13443. if invalidParams.Len() > 0 {
  13444. return invalidParams
  13445. }
  13446. return nil
  13447. }
  13448. type ModifyDBClusterSnapshotAttributeOutput struct {
  13449. _ struct{} `type:"structure"`
  13450. // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes
  13451. // API action.
  13452. //
  13453. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  13454. // to copy or restore a manual DB cluster snapshot. For more information, see
  13455. // the ModifyDBClusterSnapshotAttribute API action.
  13456. DBClusterSnapshotAttributesResult *DBClusterSnapshotAttributesResult `type:"structure"`
  13457. }
  13458. // String returns the string representation
  13459. func (s ModifyDBClusterSnapshotAttributeOutput) String() string {
  13460. return awsutil.Prettify(s)
  13461. }
  13462. // GoString returns the string representation
  13463. func (s ModifyDBClusterSnapshotAttributeOutput) GoString() string {
  13464. return s.String()
  13465. }
  13466. type ModifyDBInstanceInput struct {
  13467. _ struct{} `type:"structure"`
  13468. // The new storage capacity of the RDS instance. Changing this setting does
  13469. // not result in an outage and the change is applied during the next maintenance
  13470. // window unless ApplyImmediately is set to true for this request.
  13471. //
  13472. // MySQL
  13473. //
  13474. // Default: Uses existing setting
  13475. //
  13476. // Valid Values: 5-6144
  13477. //
  13478. // Constraints: Value supplied must be at least 10% greater than the current
  13479. // value. Values that are not at least 10% greater than the existing value are
  13480. // rounded up so that they are 10% greater than the current value.
  13481. //
  13482. // Type: Integer
  13483. //
  13484. // MariaDB
  13485. //
  13486. // Default: Uses existing setting
  13487. //
  13488. // Valid Values: 5-6144
  13489. //
  13490. // Constraints: Value supplied must be at least 10% greater than the current
  13491. // value. Values that are not at least 10% greater than the existing value are
  13492. // rounded up so that they are 10% greater than the current value.
  13493. //
  13494. // Type: Integer
  13495. //
  13496. // PostgreSQL
  13497. //
  13498. // Default: Uses existing setting
  13499. //
  13500. // Valid Values: 5-6144
  13501. //
  13502. // Constraints: Value supplied must be at least 10% greater than the current
  13503. // value. Values that are not at least 10% greater than the existing value are
  13504. // rounded up so that they are 10% greater than the current value.
  13505. //
  13506. // Type: Integer
  13507. //
  13508. // Oracle
  13509. //
  13510. // Default: Uses existing setting
  13511. //
  13512. // Valid Values: 10-6144
  13513. //
  13514. // Constraints: Value supplied must be at least 10% greater than the current
  13515. // value. Values that are not at least 10% greater than the existing value are
  13516. // rounded up so that they are 10% greater than the current value.
  13517. //
  13518. // SQL Server
  13519. //
  13520. // Cannot be modified.
  13521. //
  13522. // If you choose to migrate your DB instance from using standard storage to
  13523. // using Provisioned IOPS, or from using Provisioned IOPS to using standard
  13524. // storage, the process can take time. The duration of the migration depends
  13525. // on several factors such as database load, storage size, storage type (standard
  13526. // or Provisioned IOPS), amount of IOPS provisioned (if any), and the number
  13527. // of prior scale storage operations. Typical migration times are under 24 hours,
  13528. // but the process can take up to several days in some cases. During the migration,
  13529. // the DB instance will be available for use, but might experience performance
  13530. // degradation. While the migration takes place, nightly backups for the instance
  13531. // will be suspended. No other Amazon RDS operations can take place for the
  13532. // instance, including modifying the instance, rebooting the instance, deleting
  13533. // the instance, creating a Read Replica for the instance, and creating a DB
  13534. // snapshot of the instance.
  13535. AllocatedStorage *int64 `type:"integer"`
  13536. // Indicates that major version upgrades are allowed. Changing this parameter
  13537. // does not result in an outage and the change is asynchronously applied as
  13538. // soon as possible.
  13539. //
  13540. // Constraints: This parameter must be set to true when specifying a value for
  13541. // the EngineVersion parameter that is a different major version than the DB
  13542. // instance's current version.
  13543. AllowMajorVersionUpgrade *bool `type:"boolean"`
  13544. // Specifies whether the modifications in this request and any pending modifications
  13545. // are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow
  13546. // setting for the DB instance.
  13547. //
  13548. // If this parameter is set to false, changes to the DB instance are applied
  13549. // during the next maintenance window. Some parameter changes can cause an outage
  13550. // and will be applied on the next call to RebootDBInstance, or the next failure
  13551. // reboot. Review the table of parameters in Modifying a DB Instance and Using
  13552. // the Apply Immediately Parameter (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html)
  13553. // to see the impact that setting ApplyImmediately to true or false has for
  13554. // each modified parameter and to determine when the changes will be applied.
  13555. //
  13556. // Default: false
  13557. ApplyImmediately *bool `type:"boolean"`
  13558. // Indicates that minor version upgrades will be applied automatically to the
  13559. // DB instance during the maintenance window. Changing this parameter does not
  13560. // result in an outage except in the following case and the change is asynchronously
  13561. // applied as soon as possible. An outage will result if this parameter is set
  13562. // to true during the maintenance window, and a newer minor version is available,
  13563. // and RDS has enabled auto patching for that engine version.
  13564. AutoMinorVersionUpgrade *bool `type:"boolean"`
  13565. // The number of days to retain automated backups. Setting this parameter to
  13566. // a positive number enables backups. Setting this parameter to 0 disables automated
  13567. // backups.
  13568. //
  13569. // Changing this parameter can result in an outage if you change from 0 to a
  13570. // non-zero value or from a non-zero value to 0. These changes are applied during
  13571. // the next maintenance window unless the ApplyImmediately parameter is set
  13572. // to true for this request. If you change the parameter from one non-zero value
  13573. // to another non-zero value, the change is asynchronously applied as soon as
  13574. // possible.
  13575. //
  13576. // Default: Uses existing setting
  13577. //
  13578. // Constraints:
  13579. //
  13580. // * Must be a value from 0 to 35
  13581. //
  13582. // * Can be specified for a MySQL Read Replica only if the source is running
  13583. // MySQL 5.6
  13584. //
  13585. // * Can be specified for a PostgreSQL Read Replica only if the source is
  13586. // running PostgreSQL 9.3.5
  13587. //
  13588. // * Cannot be set to 0 if the DB instance is a source to Read Replicas
  13589. BackupRetentionPeriod *int64 `type:"integer"`
  13590. // Indicates the certificate that needs to be associated with the instance.
  13591. CACertificateIdentifier *string `type:"string"`
  13592. // True to copy all tags from the DB instance to snapshots of the DB instance;
  13593. // otherwise false. The default is false.
  13594. CopyTagsToSnapshot *bool `type:"boolean"`
  13595. // The new compute and memory capacity of the DB instance. To determine the
  13596. // instance classes that are available for a particular DB engine, use the DescribeOrderableDBInstanceOptions
  13597. // action.
  13598. //
  13599. // Passing a value for this setting causes an outage during the change and is
  13600. // applied during the next maintenance window, unless ApplyImmediately is specified
  13601. // as true for this request.
  13602. //
  13603. // Default: Uses existing setting
  13604. //
  13605. // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge
  13606. // | db.m2.xlarge | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large
  13607. // | db.m3.xlarge | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge
  13608. // | db.m4.4xlarge | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge
  13609. // | db.r3.4xlarge | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium
  13610. // | db.t2.large
  13611. DBInstanceClass *string `type:"string"`
  13612. // The DB instance identifier. This value is stored as a lowercase string.
  13613. //
  13614. // Constraints:
  13615. //
  13616. // * Must be the identifier for an existing DB instance
  13617. //
  13618. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  13619. //
  13620. // * First character must be a letter
  13621. //
  13622. // * Cannot end with a hyphen or contain two consecutive hyphens
  13623. //
  13624. // DBInstanceIdentifier is a required field
  13625. DBInstanceIdentifier *string `type:"string" required:"true"`
  13626. // The name of the DB parameter group to apply to the DB instance. Changing
  13627. // this setting does not result in an outage. The parameter group name itself
  13628. // is changed immediately, but the actual parameter changes are not applied
  13629. // until you reboot the instance without failover. The db instance will NOT
  13630. // be rebooted automatically and the parameter changes will NOT be applied during
  13631. // the next maintenance window.
  13632. //
  13633. // Default: Uses existing setting
  13634. //
  13635. // Constraints: The DB parameter group must be in the same DB parameter group
  13636. // family as this DB instance.
  13637. DBParameterGroupName *string `type:"string"`
  13638. // The port number on which the database accepts connections.
  13639. //
  13640. // The value of the DBPortNumber parameter must not match any of the port values
  13641. // specified for options in the option group for the DB instance.
  13642. //
  13643. // Your database will restart when you change the DBPortNumber value regardless
  13644. // of the value of the ApplyImmediately parameter.
  13645. //
  13646. // MySQL
  13647. //
  13648. // Default: 3306
  13649. //
  13650. // Valid Values: 1150-65535
  13651. //
  13652. // MariaDB
  13653. //
  13654. // Default: 3306
  13655. //
  13656. // Valid Values: 1150-65535
  13657. //
  13658. // PostgreSQL
  13659. //
  13660. // Default: 5432
  13661. //
  13662. // Valid Values: 1150-65535
  13663. //
  13664. // Type: Integer
  13665. //
  13666. // Oracle
  13667. //
  13668. // Default: 1521
  13669. //
  13670. // Valid Values: 1150-65535
  13671. //
  13672. // SQL Server
  13673. //
  13674. // Default: 1433
  13675. //
  13676. // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through
  13677. // 49156.
  13678. //
  13679. // Amazon Aurora
  13680. //
  13681. // Default: 3306
  13682. //
  13683. // Valid Values: 1150-65535
  13684. DBPortNumber *int64 `type:"integer"`
  13685. // A list of DB security groups to authorize on this DB instance. Changing this
  13686. // setting does not result in an outage and the change is asynchronously applied
  13687. // as soon as possible.
  13688. //
  13689. // Constraints:
  13690. //
  13691. // * Must be 1 to 255 alphanumeric characters
  13692. //
  13693. // * First character must be a letter
  13694. //
  13695. // * Cannot end with a hyphen or contain two consecutive hyphens
  13696. DBSecurityGroups []*string `locationNameList:"DBSecurityGroupName" type:"list"`
  13697. // The new DB subnet group for the DB instance. You can use this parameter to
  13698. // move your DB instance to a different VPC. If your DB instance is not in a
  13699. // VPC, you can also use this parameter to move your DB instance into a VPC.
  13700. // For more information, see Updating the VPC for a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Non-VPC2VPC).
  13701. //
  13702. // Changing the subnet group causes an outage during the change. The change
  13703. // is applied during the next maintenance window, unless you specify true for
  13704. // the ApplyImmediately parameter.
  13705. //
  13706. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  13707. // underscores, spaces, or hyphens.
  13708. //
  13709. // Example: mySubnetGroup
  13710. DBSubnetGroupName *string `type:"string"`
  13711. // The Active Directory Domain to move the instance to. Specify none to remove
  13712. // the instance from its current domain. The domain must be created prior to
  13713. // this operation. Currently only a Microsoft SQL Server instance can be created
  13714. // in a Active Directory Domain.
  13715. Domain *string `type:"string"`
  13716. // The name of the IAM role to use when making API calls to the Directory Service.
  13717. DomainIAMRoleName *string `type:"string"`
  13718. // The version number of the database engine to upgrade to. Changing this parameter
  13719. // results in an outage and the change is applied during the next maintenance
  13720. // window unless the ApplyImmediately parameter is set to true for this request.
  13721. //
  13722. // For major version upgrades, if a non-default DB parameter group is currently
  13723. // in use, a new DB parameter group in the DB parameter group family for the
  13724. // new engine version must be specified. The new DB parameter group can be the
  13725. // default for that DB parameter group family.
  13726. //
  13727. // For a list of valid engine versions, see CreateDBInstance.
  13728. EngineVersion *string `type:"string"`
  13729. // The new Provisioned IOPS (I/O operations per second) value for the RDS instance.
  13730. // Changing this setting does not result in an outage and the change is applied
  13731. // during the next maintenance window unless the ApplyImmediately parameter
  13732. // is set to true for this request.
  13733. //
  13734. // Default: Uses existing setting
  13735. //
  13736. // Constraints: Value supplied must be at least 10% greater than the current
  13737. // value. Values that are not at least 10% greater than the existing value are
  13738. // rounded up so that they are 10% greater than the current value. If you are
  13739. // migrating from Provisioned IOPS to standard storage, set this value to 0.
  13740. // The DB instance will require a reboot for the change in storage type to take
  13741. // effect.
  13742. //
  13743. // SQL Server
  13744. //
  13745. // Setting the IOPS value for the SQL Server database engine is not supported.
  13746. //
  13747. // Type: Integer
  13748. //
  13749. // If you choose to migrate your DB instance from using standard storage to
  13750. // using Provisioned IOPS, or from using Provisioned IOPS to using standard
  13751. // storage, the process can take time. The duration of the migration depends
  13752. // on several factors such as database load, storage size, storage type (standard
  13753. // or Provisioned IOPS), amount of IOPS provisioned (if any), and the number
  13754. // of prior scale storage operations. Typical migration times are under 24 hours,
  13755. // but the process can take up to several days in some cases. During the migration,
  13756. // the DB instance will be available for use, but might experience performance
  13757. // degradation. While the migration takes place, nightly backups for the instance
  13758. // will be suspended. No other Amazon RDS operations can take place for the
  13759. // instance, including modifying the instance, rebooting the instance, deleting
  13760. // the instance, creating a Read Replica for the instance, and creating a DB
  13761. // snapshot of the instance.
  13762. Iops *int64 `type:"integer"`
  13763. // The license model for the DB instance.
  13764. //
  13765. // Valid values: license-included | bring-your-own-license | general-public-license
  13766. LicenseModel *string `type:"string"`
  13767. // The new password for the DB instance master user. Can be any printable ASCII
  13768. // character except "/", """, or "@".
  13769. //
  13770. // Changing this parameter does not result in an outage and the change is asynchronously
  13771. // applied as soon as possible. Between the time of the request and the completion
  13772. // of the request, the MasterUserPassword element exists in the PendingModifiedValues
  13773. // element of the operation response.
  13774. //
  13775. // Default: Uses existing setting
  13776. //
  13777. // Constraints: Must be 8 to 41 alphanumeric characters (MySQL, MariaDB, and
  13778. // Amazon Aurora), 8 to 30 alphanumeric characters (Oracle), or 8 to 128 alphanumeric
  13779. // characters (SQL Server).
  13780. //
  13781. // Amazon RDS API actions never return the password, so this action provides
  13782. // a way to regain access to a primary instance user if the password is lost.
  13783. // This includes restoring privileges that might have been accidentally revoked.
  13784. MasterUserPassword *string `type:"string"`
  13785. // The interval, in seconds, between points when Enhanced Monitoring metrics
  13786. // are collected for the DB instance. To disable collecting Enhanced Monitoring
  13787. // metrics, specify 0. The default is 0.
  13788. //
  13789. // If MonitoringRoleArn is specified, then you must also set MonitoringInterval
  13790. // to a value other than 0.
  13791. //
  13792. // Valid Values: 0, 1, 5, 10, 15, 30, 60
  13793. MonitoringInterval *int64 `type:"integer"`
  13794. // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics
  13795. // to CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess.
  13796. // For information on creating a monitoring role, go to To create an IAM role
  13797. // for Amazon RDS Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole).
  13798. //
  13799. // If MonitoringInterval is set to a value other than 0, then you must supply
  13800. // a MonitoringRoleArn value.
  13801. MonitoringRoleArn *string `type:"string"`
  13802. // Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter
  13803. // does not result in an outage and the change is applied during the next maintenance
  13804. // window unless the ApplyImmediately parameter is set to true for this request.
  13805. //
  13806. // Constraints: Cannot be specified if the DB instance is a Read Replica.
  13807. MultiAZ *bool `type:"boolean"`
  13808. // The new DB instance identifier for the DB instance when renaming a DB instance.
  13809. // When you change the DB instance identifier, an instance reboot will occur
  13810. // immediately if you set Apply Immediately to true, or will occur during the
  13811. // next maintenance window if Apply Immediately to false. This value is stored
  13812. // as a lowercase string.
  13813. //
  13814. // Constraints:
  13815. //
  13816. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  13817. //
  13818. // * First character must be a letter
  13819. //
  13820. // * Cannot end with a hyphen or contain two consecutive hyphens
  13821. NewDBInstanceIdentifier *string `type:"string"`
  13822. // Indicates that the DB instance should be associated with the specified option
  13823. // group. Changing this parameter does not result in an outage except in the
  13824. // following case and the change is applied during the next maintenance window
  13825. // unless the ApplyImmediately parameter is set to true for this request. If
  13826. // the parameter change results in an option group that enables OEM, this change
  13827. // can cause a brief (sub-second) period during which new connections are rejected
  13828. // but existing connections are not interrupted.
  13829. //
  13830. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  13831. // cannot be removed from an option group, and that option group cannot be removed
  13832. // from a DB instance once it is associated with a DB instance
  13833. OptionGroupName *string `type:"string"`
  13834. // The daily time range during which automated backups are created if automated
  13835. // backups are enabled, as determined by the BackupRetentionPeriod parameter.
  13836. // Changing this parameter does not result in an outage and the change is asynchronously
  13837. // applied as soon as possible.
  13838. //
  13839. // Constraints:
  13840. //
  13841. // * Must be in the format hh24:mi-hh24:mi
  13842. //
  13843. // * Times should be in Universal Time Coordinated (UTC)
  13844. //
  13845. // * Must not conflict with the preferred maintenance window
  13846. //
  13847. // * Must be at least 30 minutes
  13848. PreferredBackupWindow *string `type:"string"`
  13849. // The weekly time range (in UTC) during which system maintenance can occur,
  13850. // which might result in an outage. Changing this parameter does not result
  13851. // in an outage, except in the following situation, and the change is asynchronously
  13852. // applied as soon as possible. If there are pending actions that cause a reboot,
  13853. // and the maintenance window is changed to include the current time, then changing
  13854. // this parameter will cause a reboot of the DB instance. If moving this window
  13855. // to the current time, there must be at least 30 minutes between the current
  13856. // time and end of the window to ensure pending changes are applied.
  13857. //
  13858. // Default: Uses existing setting
  13859. //
  13860. // Format: ddd:hh24:mi-ddd:hh24:mi
  13861. //
  13862. // Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
  13863. //
  13864. // Constraints: Must be at least 30 minutes
  13865. PreferredMaintenanceWindow *string `type:"string"`
  13866. // A value that specifies the order in which an Aurora Replica is promoted to
  13867. // the primary instance after a failure of the existing primary instance. For
  13868. // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Aurora.Managing.html#Aurora.Managing.FaultTolerance).
  13869. //
  13870. // Default: 1
  13871. //
  13872. // Valid Values: 0 - 15
  13873. PromotionTier *int64 `type:"integer"`
  13874. // Boolean value that indicates if the DB instance has a publicly resolvable
  13875. // DNS name. Set to True to make the DB instance Internet-facing with a publicly
  13876. // resolvable DNS name, which resolves to a public IP address. Set to False
  13877. // to make the DB instance internal with a DNS name that resolves to a private
  13878. // IP address.
  13879. //
  13880. // PubliclyAccessible only applies to DB instances in a VPC. The DB instance
  13881. // must be part of a public subnet and PubliclyAccessible must be true in order
  13882. // for it to be publicly accessible.
  13883. //
  13884. // Changes to the PubliclyAccessible parameter are applied immediately regardless
  13885. // of the value of the ApplyImmediately parameter.
  13886. //
  13887. // Default: false
  13888. PubliclyAccessible *bool `type:"boolean"`
  13889. // Specifies the storage type to be associated with the DB instance.
  13890. //
  13891. // Valid values: standard | gp2 | io1
  13892. //
  13893. // If you specify io1, you must also include a value for the Iops parameter.
  13894. //
  13895. // Default: io1 if the Iops parameter is specified; otherwise standard
  13896. StorageType *string `type:"string"`
  13897. // The ARN from the Key Store with which to associate the instance for TDE encryption.
  13898. TdeCredentialArn *string `type:"string"`
  13899. // The password for the given ARN from the Key Store in order to access the
  13900. // device.
  13901. TdeCredentialPassword *string `type:"string"`
  13902. // A list of EC2 VPC security groups to authorize on this DB instance. This
  13903. // change is asynchronously applied as soon as possible.
  13904. //
  13905. // Constraints:
  13906. //
  13907. // * Must be 1 to 255 alphanumeric characters
  13908. //
  13909. // * First character must be a letter
  13910. //
  13911. // * Cannot end with a hyphen or contain two consecutive hyphens
  13912. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  13913. }
  13914. // String returns the string representation
  13915. func (s ModifyDBInstanceInput) String() string {
  13916. return awsutil.Prettify(s)
  13917. }
  13918. // GoString returns the string representation
  13919. func (s ModifyDBInstanceInput) GoString() string {
  13920. return s.String()
  13921. }
  13922. // Validate inspects the fields of the type to determine if they are valid.
  13923. func (s *ModifyDBInstanceInput) Validate() error {
  13924. invalidParams := request.ErrInvalidParams{Context: "ModifyDBInstanceInput"}
  13925. if s.DBInstanceIdentifier == nil {
  13926. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  13927. }
  13928. if invalidParams.Len() > 0 {
  13929. return invalidParams
  13930. }
  13931. return nil
  13932. }
  13933. type ModifyDBInstanceOutput struct {
  13934. _ struct{} `type:"structure"`
  13935. // Contains the result of a successful invocation of the following actions:
  13936. //
  13937. // * CreateDBInstance
  13938. //
  13939. // * DeleteDBInstance
  13940. //
  13941. // * ModifyDBInstance
  13942. //
  13943. // This data type is used as a response element in the DescribeDBInstances action.
  13944. DBInstance *DBInstance `type:"structure"`
  13945. }
  13946. // String returns the string representation
  13947. func (s ModifyDBInstanceOutput) String() string {
  13948. return awsutil.Prettify(s)
  13949. }
  13950. // GoString returns the string representation
  13951. func (s ModifyDBInstanceOutput) GoString() string {
  13952. return s.String()
  13953. }
  13954. type ModifyDBParameterGroupInput struct {
  13955. _ struct{} `type:"structure"`
  13956. // The name of the DB parameter group.
  13957. //
  13958. // Constraints:
  13959. //
  13960. // * Must be the name of an existing DB parameter group
  13961. //
  13962. // * Must be 1 to 255 alphanumeric characters
  13963. //
  13964. // * First character must be a letter
  13965. //
  13966. // * Cannot end with a hyphen or contain two consecutive hyphens
  13967. //
  13968. // DBParameterGroupName is a required field
  13969. DBParameterGroupName *string `type:"string" required:"true"`
  13970. // An array of parameter names, values, and the apply method for the parameter
  13971. // update. At least one parameter name, value, and apply method must be supplied;
  13972. // subsequent arguments are optional. A maximum of 20 parameters can be modified
  13973. // in a single request.
  13974. //
  13975. // Valid Values (for the application method): immediate | pending-reboot
  13976. //
  13977. // You can use the immediate value with dynamic parameters only. You can use
  13978. // the pending-reboot value for both dynamic and static parameters, and changes
  13979. // are applied when you reboot the DB instance without failover.
  13980. //
  13981. // Parameters is a required field
  13982. Parameters []*Parameter `locationNameList:"Parameter" type:"list" required:"true"`
  13983. }
  13984. // String returns the string representation
  13985. func (s ModifyDBParameterGroupInput) String() string {
  13986. return awsutil.Prettify(s)
  13987. }
  13988. // GoString returns the string representation
  13989. func (s ModifyDBParameterGroupInput) GoString() string {
  13990. return s.String()
  13991. }
  13992. // Validate inspects the fields of the type to determine if they are valid.
  13993. func (s *ModifyDBParameterGroupInput) Validate() error {
  13994. invalidParams := request.ErrInvalidParams{Context: "ModifyDBParameterGroupInput"}
  13995. if s.DBParameterGroupName == nil {
  13996. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  13997. }
  13998. if s.Parameters == nil {
  13999. invalidParams.Add(request.NewErrParamRequired("Parameters"))
  14000. }
  14001. if invalidParams.Len() > 0 {
  14002. return invalidParams
  14003. }
  14004. return nil
  14005. }
  14006. type ModifyDBSnapshotAttributeInput struct {
  14007. _ struct{} `type:"structure"`
  14008. // The name of the DB snapshot attribute to modify.
  14009. //
  14010. // To manage authorization for other AWS accounts to copy or restore a manual
  14011. // DB snapshot, set this value to restore.
  14012. //
  14013. // AttributeName is a required field
  14014. AttributeName *string `type:"string" required:"true"`
  14015. // The identifier for the DB snapshot to modify the attributes for.
  14016. //
  14017. // DBSnapshotIdentifier is a required field
  14018. DBSnapshotIdentifier *string `type:"string" required:"true"`
  14019. // A list of DB snapshot attributes to add to the attribute specified by AttributeName.
  14020. //
  14021. // To authorize other AWS accounts to copy or restore a manual snapshot, set
  14022. // this list to include one or more AWS account IDs, or all to make the manual
  14023. // DB snapshot restorable by any AWS account. Do not add the all value for any
  14024. // manual DB snapshots that contain private information that you don't want
  14025. // available to all AWS accounts.
  14026. ValuesToAdd []*string `locationNameList:"AttributeValue" type:"list"`
  14027. // A list of DB snapshot attributes to remove from the attribute specified by
  14028. // AttributeName.
  14029. //
  14030. // To remove authorization for other AWS accounts to copy or restore a manual
  14031. // snapshot, set this list to include one or more AWS account identifiers, or
  14032. // all to remove authorization for any AWS account to copy or restore the DB
  14033. // snapshot. If you specify all, an AWS account whose account ID is explicitly
  14034. // added to the restore attribute can still copy or restore the manual DB snapshot.
  14035. ValuesToRemove []*string `locationNameList:"AttributeValue" type:"list"`
  14036. }
  14037. // String returns the string representation
  14038. func (s ModifyDBSnapshotAttributeInput) String() string {
  14039. return awsutil.Prettify(s)
  14040. }
  14041. // GoString returns the string representation
  14042. func (s ModifyDBSnapshotAttributeInput) GoString() string {
  14043. return s.String()
  14044. }
  14045. // Validate inspects the fields of the type to determine if they are valid.
  14046. func (s *ModifyDBSnapshotAttributeInput) Validate() error {
  14047. invalidParams := request.ErrInvalidParams{Context: "ModifyDBSnapshotAttributeInput"}
  14048. if s.AttributeName == nil {
  14049. invalidParams.Add(request.NewErrParamRequired("AttributeName"))
  14050. }
  14051. if s.DBSnapshotIdentifier == nil {
  14052. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  14053. }
  14054. if invalidParams.Len() > 0 {
  14055. return invalidParams
  14056. }
  14057. return nil
  14058. }
  14059. type ModifyDBSnapshotAttributeOutput struct {
  14060. _ struct{} `type:"structure"`
  14061. // Contains the results of a successful call to the DescribeDBSnapshotAttributes
  14062. // API action.
  14063. //
  14064. // Manual DB snapshot attributes are used to authorize other AWS accounts to
  14065. // copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
  14066. // API action.
  14067. DBSnapshotAttributesResult *DBSnapshotAttributesResult `type:"structure"`
  14068. }
  14069. // String returns the string representation
  14070. func (s ModifyDBSnapshotAttributeOutput) String() string {
  14071. return awsutil.Prettify(s)
  14072. }
  14073. // GoString returns the string representation
  14074. func (s ModifyDBSnapshotAttributeOutput) GoString() string {
  14075. return s.String()
  14076. }
  14077. type ModifyDBSubnetGroupInput struct {
  14078. _ struct{} `type:"structure"`
  14079. // The description for the DB subnet group.
  14080. DBSubnetGroupDescription *string `type:"string"`
  14081. // The name for the DB subnet group. This value is stored as a lowercase string.
  14082. //
  14083. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  14084. // underscores, spaces, or hyphens. Must not be default.
  14085. //
  14086. // Example: mySubnetgroup
  14087. //
  14088. // DBSubnetGroupName is a required field
  14089. DBSubnetGroupName *string `type:"string" required:"true"`
  14090. // The EC2 subnet IDs for the DB subnet group.
  14091. //
  14092. // SubnetIds is a required field
  14093. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
  14094. }
  14095. // String returns the string representation
  14096. func (s ModifyDBSubnetGroupInput) String() string {
  14097. return awsutil.Prettify(s)
  14098. }
  14099. // GoString returns the string representation
  14100. func (s ModifyDBSubnetGroupInput) GoString() string {
  14101. return s.String()
  14102. }
  14103. // Validate inspects the fields of the type to determine if they are valid.
  14104. func (s *ModifyDBSubnetGroupInput) Validate() error {
  14105. invalidParams := request.ErrInvalidParams{Context: "ModifyDBSubnetGroupInput"}
  14106. if s.DBSubnetGroupName == nil {
  14107. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName"))
  14108. }
  14109. if s.SubnetIds == nil {
  14110. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  14111. }
  14112. if invalidParams.Len() > 0 {
  14113. return invalidParams
  14114. }
  14115. return nil
  14116. }
  14117. type ModifyDBSubnetGroupOutput struct {
  14118. _ struct{} `type:"structure"`
  14119. // Contains the result of a successful invocation of the following actions:
  14120. //
  14121. // * CreateDBSubnetGroup
  14122. //
  14123. // * ModifyDBSubnetGroup
  14124. //
  14125. // * DescribeDBSubnetGroups
  14126. //
  14127. // * DeleteDBSubnetGroup
  14128. //
  14129. // This data type is used as a response element in the DescribeDBSubnetGroups
  14130. // action.
  14131. DBSubnetGroup *DBSubnetGroup `type:"structure"`
  14132. }
  14133. // String returns the string representation
  14134. func (s ModifyDBSubnetGroupOutput) String() string {
  14135. return awsutil.Prettify(s)
  14136. }
  14137. // GoString returns the string representation
  14138. func (s ModifyDBSubnetGroupOutput) GoString() string {
  14139. return s.String()
  14140. }
  14141. type ModifyEventSubscriptionInput struct {
  14142. _ struct{} `type:"structure"`
  14143. // A Boolean value; set to true to activate the subscription.
  14144. Enabled *bool `type:"boolean"`
  14145. // A list of event categories for a SourceType that you want to subscribe to.
  14146. // You can see a list of the categories for a given SourceType in the Events
  14147. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html)
  14148. // topic in the Amazon RDS User Guide or by using the DescribeEventCategories
  14149. // action.
  14150. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  14151. // The Amazon Resource Name (ARN) of the SNS topic created for event notification.
  14152. // The ARN is created by Amazon SNS when you create a topic and subscribe to
  14153. // it.
  14154. SnsTopicArn *string `type:"string"`
  14155. // The type of source that will be generating the events. For example, if you
  14156. // want to be notified of events generated by a DB instance, you would set this
  14157. // parameter to db-instance. if this value is not specified, all events are
  14158. // returned.
  14159. //
  14160. // Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
  14161. SourceType *string `type:"string"`
  14162. // The name of the RDS event notification subscription.
  14163. //
  14164. // SubscriptionName is a required field
  14165. SubscriptionName *string `type:"string" required:"true"`
  14166. }
  14167. // String returns the string representation
  14168. func (s ModifyEventSubscriptionInput) String() string {
  14169. return awsutil.Prettify(s)
  14170. }
  14171. // GoString returns the string representation
  14172. func (s ModifyEventSubscriptionInput) GoString() string {
  14173. return s.String()
  14174. }
  14175. // Validate inspects the fields of the type to determine if they are valid.
  14176. func (s *ModifyEventSubscriptionInput) Validate() error {
  14177. invalidParams := request.ErrInvalidParams{Context: "ModifyEventSubscriptionInput"}
  14178. if s.SubscriptionName == nil {
  14179. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  14180. }
  14181. if invalidParams.Len() > 0 {
  14182. return invalidParams
  14183. }
  14184. return nil
  14185. }
  14186. type ModifyEventSubscriptionOutput struct {
  14187. _ struct{} `type:"structure"`
  14188. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  14189. // action.
  14190. EventSubscription *EventSubscription `type:"structure"`
  14191. }
  14192. // String returns the string representation
  14193. func (s ModifyEventSubscriptionOutput) String() string {
  14194. return awsutil.Prettify(s)
  14195. }
  14196. // GoString returns the string representation
  14197. func (s ModifyEventSubscriptionOutput) GoString() string {
  14198. return s.String()
  14199. }
  14200. type ModifyOptionGroupInput struct {
  14201. _ struct{} `type:"structure"`
  14202. // Indicates whether the changes should be applied immediately, or during the
  14203. // next maintenance window for each instance associated with the option group.
  14204. ApplyImmediately *bool `type:"boolean"`
  14205. // The name of the option group to be modified.
  14206. //
  14207. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  14208. // cannot be removed from an option group, and that option group cannot be removed
  14209. // from a DB instance once it is associated with a DB instance
  14210. //
  14211. // OptionGroupName is a required field
  14212. OptionGroupName *string `type:"string" required:"true"`
  14213. // Options in this list are added to the option group or, if already present,
  14214. // the specified configuration is used to update the existing configuration.
  14215. OptionsToInclude []*OptionConfiguration `locationNameList:"OptionConfiguration" type:"list"`
  14216. // Options in this list are removed from the option group.
  14217. OptionsToRemove []*string `type:"list"`
  14218. }
  14219. // String returns the string representation
  14220. func (s ModifyOptionGroupInput) String() string {
  14221. return awsutil.Prettify(s)
  14222. }
  14223. // GoString returns the string representation
  14224. func (s ModifyOptionGroupInput) GoString() string {
  14225. return s.String()
  14226. }
  14227. // Validate inspects the fields of the type to determine if they are valid.
  14228. func (s *ModifyOptionGroupInput) Validate() error {
  14229. invalidParams := request.ErrInvalidParams{Context: "ModifyOptionGroupInput"}
  14230. if s.OptionGroupName == nil {
  14231. invalidParams.Add(request.NewErrParamRequired("OptionGroupName"))
  14232. }
  14233. if s.OptionsToInclude != nil {
  14234. for i, v := range s.OptionsToInclude {
  14235. if v == nil {
  14236. continue
  14237. }
  14238. if err := v.Validate(); err != nil {
  14239. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionsToInclude", i), err.(request.ErrInvalidParams))
  14240. }
  14241. }
  14242. }
  14243. if invalidParams.Len() > 0 {
  14244. return invalidParams
  14245. }
  14246. return nil
  14247. }
  14248. type ModifyOptionGroupOutput struct {
  14249. _ struct{} `type:"structure"`
  14250. OptionGroup *OptionGroup `type:"structure"`
  14251. }
  14252. // String returns the string representation
  14253. func (s ModifyOptionGroupOutput) String() string {
  14254. return awsutil.Prettify(s)
  14255. }
  14256. // GoString returns the string representation
  14257. func (s ModifyOptionGroupOutput) GoString() string {
  14258. return s.String()
  14259. }
  14260. // Option details.
  14261. type Option struct {
  14262. _ struct{} `type:"structure"`
  14263. // If the option requires access to a port, then this DB security group allows
  14264. // access to the port.
  14265. DBSecurityGroupMemberships []*DBSecurityGroupMembership `locationNameList:"DBSecurityGroup" type:"list"`
  14266. // The description of the option.
  14267. OptionDescription *string `type:"string"`
  14268. // The name of the option.
  14269. OptionName *string `type:"string"`
  14270. // The option settings for this option.
  14271. OptionSettings []*OptionSetting `locationNameList:"OptionSetting" type:"list"`
  14272. // The version of the option.
  14273. OptionVersion *string `type:"string"`
  14274. // Indicate if this option is permanent.
  14275. Permanent *bool `type:"boolean"`
  14276. // Indicate if this option is persistent.
  14277. Persistent *bool `type:"boolean"`
  14278. // If required, the port configured for this option to use.
  14279. Port *int64 `type:"integer"`
  14280. // If the option requires access to a port, then this VPC security group allows
  14281. // access to the port.
  14282. VpcSecurityGroupMemberships []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"`
  14283. }
  14284. // String returns the string representation
  14285. func (s Option) String() string {
  14286. return awsutil.Prettify(s)
  14287. }
  14288. // GoString returns the string representation
  14289. func (s Option) GoString() string {
  14290. return s.String()
  14291. }
  14292. // A list of all available options
  14293. type OptionConfiguration struct {
  14294. _ struct{} `type:"structure"`
  14295. // A list of DBSecurityGroupMemebrship name strings used for this option.
  14296. DBSecurityGroupMemberships []*string `locationNameList:"DBSecurityGroupName" type:"list"`
  14297. // The configuration of options to include in a group.
  14298. //
  14299. // OptionName is a required field
  14300. OptionName *string `type:"string" required:"true"`
  14301. // The option settings to include in an option group.
  14302. OptionSettings []*OptionSetting `locationNameList:"OptionSetting" type:"list"`
  14303. // The version for the option.
  14304. OptionVersion *string `type:"string"`
  14305. // The optional port for the option.
  14306. Port *int64 `type:"integer"`
  14307. // A list of VpcSecurityGroupMemebrship name strings used for this option.
  14308. VpcSecurityGroupMemberships []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  14309. }
  14310. // String returns the string representation
  14311. func (s OptionConfiguration) String() string {
  14312. return awsutil.Prettify(s)
  14313. }
  14314. // GoString returns the string representation
  14315. func (s OptionConfiguration) GoString() string {
  14316. return s.String()
  14317. }
  14318. // Validate inspects the fields of the type to determine if they are valid.
  14319. func (s *OptionConfiguration) Validate() error {
  14320. invalidParams := request.ErrInvalidParams{Context: "OptionConfiguration"}
  14321. if s.OptionName == nil {
  14322. invalidParams.Add(request.NewErrParamRequired("OptionName"))
  14323. }
  14324. if invalidParams.Len() > 0 {
  14325. return invalidParams
  14326. }
  14327. return nil
  14328. }
  14329. type OptionGroup struct {
  14330. _ struct{} `type:"structure"`
  14331. // Indicates whether this option group can be applied to both VPC and non-VPC
  14332. // instances. The value true indicates the option group can be applied to both
  14333. // VPC and non-VPC instances.
  14334. AllowsVpcAndNonVpcInstanceMemberships *bool `type:"boolean"`
  14335. // Indicates the name of the engine that this option group can be applied to.
  14336. EngineName *string `type:"string"`
  14337. // Indicates the major engine version associated with this option group.
  14338. MajorEngineVersion *string `type:"string"`
  14339. // The Amazon Resource Name (ARN) for the option group.
  14340. OptionGroupArn *string `type:"string"`
  14341. // Provides a description of the option group.
  14342. OptionGroupDescription *string `type:"string"`
  14343. // Specifies the name of the option group.
  14344. OptionGroupName *string `type:"string"`
  14345. // Indicates what options are available in the option group.
  14346. Options []*Option `locationNameList:"Option" type:"list"`
  14347. // If AllowsVpcAndNonVpcInstanceMemberships is false, this field is blank. If
  14348. // AllowsVpcAndNonVpcInstanceMemberships is true and this field is blank, then
  14349. // this option group can be applied to both VPC and non-VPC instances. If this
  14350. // field contains a value, then this option group can only be applied to instances
  14351. // that are in the VPC indicated by this field.
  14352. VpcId *string `type:"string"`
  14353. }
  14354. // String returns the string representation
  14355. func (s OptionGroup) String() string {
  14356. return awsutil.Prettify(s)
  14357. }
  14358. // GoString returns the string representation
  14359. func (s OptionGroup) GoString() string {
  14360. return s.String()
  14361. }
  14362. // Provides information on the option groups the DB instance is a member of.
  14363. type OptionGroupMembership struct {
  14364. _ struct{} `type:"structure"`
  14365. // The name of the option group that the instance belongs to.
  14366. OptionGroupName *string `type:"string"`
  14367. // The status of the DB instance's option group membership. Valid values are:
  14368. // in-sync, pending-apply, pending-removal, pending-maintenance-apply, pending-maintenance-removal,
  14369. // applying, removing, and failed.
  14370. Status *string `type:"string"`
  14371. }
  14372. // String returns the string representation
  14373. func (s OptionGroupMembership) String() string {
  14374. return awsutil.Prettify(s)
  14375. }
  14376. // GoString returns the string representation
  14377. func (s OptionGroupMembership) GoString() string {
  14378. return s.String()
  14379. }
  14380. // Available option.
  14381. type OptionGroupOption struct {
  14382. _ struct{} `type:"structure"`
  14383. // If the option requires a port, specifies the default port for the option.
  14384. DefaultPort *int64 `type:"integer"`
  14385. // The description of the option.
  14386. Description *string `type:"string"`
  14387. // The name of the engine that this option can be applied to.
  14388. EngineName *string `type:"string"`
  14389. // Indicates the major engine version that the option is available for.
  14390. MajorEngineVersion *string `type:"string"`
  14391. // The minimum required engine version for the option to be applied.
  14392. MinimumRequiredMinorEngineVersion *string `type:"string"`
  14393. // The name of the option.
  14394. Name *string `type:"string"`
  14395. // The option settings that are available (and the default value) for each option
  14396. // in an option group.
  14397. OptionGroupOptionSettings []*OptionGroupOptionSetting `locationNameList:"OptionGroupOptionSetting" type:"list"`
  14398. // The versions that are available for the option.
  14399. OptionGroupOptionVersions []*OptionVersion `locationNameList:"OptionVersion" type:"list"`
  14400. // The options that conflict with this option.
  14401. OptionsConflictsWith []*string `locationNameList:"OptionConflictName" type:"list"`
  14402. // The options that are prerequisites for this option.
  14403. OptionsDependedOn []*string `locationNameList:"OptionName" type:"list"`
  14404. // Permanent options can never be removed from an option group. An option group
  14405. // containing a permanent option can't be removed from a DB instance.
  14406. Permanent *bool `type:"boolean"`
  14407. // Persistent options can't be removed from an option group while DB instances
  14408. // are associated with the option group. If you disassociate all DB instances
  14409. // from the option group, your can remove the persistent option from the option
  14410. // group.
  14411. Persistent *bool `type:"boolean"`
  14412. // Specifies whether the option requires a port.
  14413. PortRequired *bool `type:"boolean"`
  14414. }
  14415. // String returns the string representation
  14416. func (s OptionGroupOption) String() string {
  14417. return awsutil.Prettify(s)
  14418. }
  14419. // GoString returns the string representation
  14420. func (s OptionGroupOption) GoString() string {
  14421. return s.String()
  14422. }
  14423. // Option group option settings are used to display settings available for each
  14424. // option with their default values and other information. These values are
  14425. // used with the DescribeOptionGroupOptions action.
  14426. type OptionGroupOptionSetting struct {
  14427. _ struct{} `type:"structure"`
  14428. // Indicates the acceptable values for the option group option.
  14429. AllowedValues *string `type:"string"`
  14430. // The DB engine specific parameter type for the option group option.
  14431. ApplyType *string `type:"string"`
  14432. // The default value for the option group option.
  14433. DefaultValue *string `type:"string"`
  14434. // Boolean value where true indicates that this option group option can be changed
  14435. // from the default value.
  14436. IsModifiable *bool `type:"boolean"`
  14437. // The description of the option group option.
  14438. SettingDescription *string `type:"string"`
  14439. // The name of the option group option.
  14440. SettingName *string `type:"string"`
  14441. }
  14442. // String returns the string representation
  14443. func (s OptionGroupOptionSetting) String() string {
  14444. return awsutil.Prettify(s)
  14445. }
  14446. // GoString returns the string representation
  14447. func (s OptionGroupOptionSetting) GoString() string {
  14448. return s.String()
  14449. }
  14450. // Option settings are the actual settings being applied or configured for that
  14451. // option. It is used when you modify an option group or describe option groups.
  14452. // For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER
  14453. // that can have several different values.
  14454. type OptionSetting struct {
  14455. _ struct{} `type:"structure"`
  14456. // The allowed values of the option setting.
  14457. AllowedValues *string `type:"string"`
  14458. // The DB engine specific parameter type.
  14459. ApplyType *string `type:"string"`
  14460. // The data type of the option setting.
  14461. DataType *string `type:"string"`
  14462. // The default value of the option setting.
  14463. DefaultValue *string `type:"string"`
  14464. // The description of the option setting.
  14465. Description *string `type:"string"`
  14466. // Indicates if the option setting is part of a collection.
  14467. IsCollection *bool `type:"boolean"`
  14468. // A Boolean value that, when true, indicates the option setting can be modified
  14469. // from the default.
  14470. IsModifiable *bool `type:"boolean"`
  14471. // The name of the option that has settings that you can set.
  14472. Name *string `type:"string"`
  14473. // The current value of the option setting.
  14474. Value *string `type:"string"`
  14475. }
  14476. // String returns the string representation
  14477. func (s OptionSetting) String() string {
  14478. return awsutil.Prettify(s)
  14479. }
  14480. // GoString returns the string representation
  14481. func (s OptionSetting) GoString() string {
  14482. return s.String()
  14483. }
  14484. // The version for an option. Option group option versions are returned by the
  14485. // DescribeOptionGroupOptions action.
  14486. type OptionVersion struct {
  14487. _ struct{} `type:"structure"`
  14488. // True if the version is the default version of the option; otherwise, false.
  14489. IsDefault *bool `type:"boolean"`
  14490. // The version of the option.
  14491. Version *string `type:"string"`
  14492. }
  14493. // String returns the string representation
  14494. func (s OptionVersion) String() string {
  14495. return awsutil.Prettify(s)
  14496. }
  14497. // GoString returns the string representation
  14498. func (s OptionVersion) GoString() string {
  14499. return s.String()
  14500. }
  14501. // Contains a list of available options for a DB instance
  14502. //
  14503. // This data type is used as a response element in the DescribeOrderableDBInstanceOptions
  14504. // action.
  14505. type OrderableDBInstanceOption struct {
  14506. _ struct{} `type:"structure"`
  14507. // A list of Availability Zones for the orderable DB instance.
  14508. AvailabilityZones []*AvailabilityZone `locationNameList:"AvailabilityZone" type:"list"`
  14509. // The DB instance class for the orderable DB instance.
  14510. DBInstanceClass *string `type:"string"`
  14511. // The engine type of the orderable DB instance.
  14512. Engine *string `type:"string"`
  14513. // The engine version of the orderable DB instance.
  14514. EngineVersion *string `type:"string"`
  14515. // The license model for the orderable DB instance.
  14516. LicenseModel *string `type:"string"`
  14517. // Indicates whether this orderable DB instance is multi-AZ capable.
  14518. MultiAZCapable *bool `type:"boolean"`
  14519. // Indicates whether this orderable DB instance can have a Read Replica.
  14520. ReadReplicaCapable *bool `type:"boolean"`
  14521. // Indicates the storage type for this orderable DB instance.
  14522. StorageType *string `type:"string"`
  14523. // Indicates whether the DB instance supports enhanced monitoring at intervals
  14524. // from 1 to 60 seconds.
  14525. SupportsEnhancedMonitoring *bool `type:"boolean"`
  14526. // Indicates whether this orderable DB instance supports provisioned IOPS.
  14527. SupportsIops *bool `type:"boolean"`
  14528. // Indicates whether this orderable DB instance supports encrypted storage.
  14529. SupportsStorageEncryption *bool `type:"boolean"`
  14530. // Indicates whether this is a VPC orderable DB instance.
  14531. Vpc *bool `type:"boolean"`
  14532. }
  14533. // String returns the string representation
  14534. func (s OrderableDBInstanceOption) String() string {
  14535. return awsutil.Prettify(s)
  14536. }
  14537. // GoString returns the string representation
  14538. func (s OrderableDBInstanceOption) GoString() string {
  14539. return s.String()
  14540. }
  14541. // This data type is used as a request parameter in the ModifyDBParameterGroup
  14542. // and ResetDBParameterGroup actions.
  14543. //
  14544. // This data type is used as a response element in the DescribeEngineDefaultParameters
  14545. // and DescribeDBParameters actions.
  14546. type Parameter struct {
  14547. _ struct{} `type:"structure"`
  14548. // Specifies the valid range of values for the parameter.
  14549. AllowedValues *string `type:"string"`
  14550. // Indicates when to apply parameter updates.
  14551. ApplyMethod *string `type:"string" enum:"ApplyMethod"`
  14552. // Specifies the engine specific parameters type.
  14553. ApplyType *string `type:"string"`
  14554. // Specifies the valid data type for the parameter.
  14555. DataType *string `type:"string"`
  14556. // Provides a description of the parameter.
  14557. Description *string `type:"string"`
  14558. // Indicates whether (true) or not (false) the parameter can be modified. Some
  14559. // parameters have security or operational implications that prevent them from
  14560. // being changed.
  14561. IsModifiable *bool `type:"boolean"`
  14562. // The earliest engine version to which the parameter can apply.
  14563. MinimumEngineVersion *string `type:"string"`
  14564. // Specifies the name of the parameter.
  14565. ParameterName *string `type:"string"`
  14566. // Specifies the value of the parameter.
  14567. ParameterValue *string `type:"string"`
  14568. // Indicates the source of the parameter value.
  14569. Source *string `type:"string"`
  14570. }
  14571. // String returns the string representation
  14572. func (s Parameter) String() string {
  14573. return awsutil.Prettify(s)
  14574. }
  14575. // GoString returns the string representation
  14576. func (s Parameter) GoString() string {
  14577. return s.String()
  14578. }
  14579. // Provides information about a pending maintenance action for a resource.
  14580. type PendingMaintenanceAction struct {
  14581. _ struct{} `type:"structure"`
  14582. // The type of pending maintenance action that is available for the resource.
  14583. Action *string `type:"string"`
  14584. // The date of the maintenance window when the action will be applied. The maintenance
  14585. // action will be applied to the resource during its first maintenance window
  14586. // after this date. If this date is specified, any next-maintenance opt-in requests
  14587. // are ignored.
  14588. AutoAppliedAfterDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  14589. // The effective date when the pending maintenance action will be applied to
  14590. // the resource. This date takes into account opt-in requests received from
  14591. // the ApplyPendingMaintenanceAction API, the AutoAppliedAfterDate, and the
  14592. // ForcedApplyDate. This value is blank if an opt-in request has not been received
  14593. // and nothing has been specified as AutoAppliedAfterDate or ForcedApplyDate.
  14594. CurrentApplyDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  14595. // A description providing more detail about the maintenance action.
  14596. Description *string `type:"string"`
  14597. // The date when the maintenance action will be automatically applied. The maintenance
  14598. // action will be applied to the resource on this date regardless of the maintenance
  14599. // window for the resource. If this date is specified, any immediate opt-in
  14600. // requests are ignored.
  14601. ForcedApplyDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  14602. // Indicates the type of opt-in request that has been received for the resource.
  14603. OptInStatus *string `type:"string"`
  14604. }
  14605. // String returns the string representation
  14606. func (s PendingMaintenanceAction) String() string {
  14607. return awsutil.Prettify(s)
  14608. }
  14609. // GoString returns the string representation
  14610. func (s PendingMaintenanceAction) GoString() string {
  14611. return s.String()
  14612. }
  14613. // This data type is used as a response element in the ModifyDBInstance action.
  14614. type PendingModifiedValues struct {
  14615. _ struct{} `type:"structure"`
  14616. // Contains the new AllocatedStorage size for the DB instance that will be applied
  14617. // or is in progress.
  14618. AllocatedStorage *int64 `type:"integer"`
  14619. // Specifies the pending number of days for which automated backups are retained.
  14620. BackupRetentionPeriod *int64 `type:"integer"`
  14621. // Specifies the identifier of the CA certificate for the DB instance.
  14622. CACertificateIdentifier *string `type:"string"`
  14623. // Contains the new DBInstanceClass for the DB instance that will be applied
  14624. // or is in progress.
  14625. DBInstanceClass *string `type:"string"`
  14626. // Contains the new DBInstanceIdentifier for the DB instance that will be applied
  14627. // or is in progress.
  14628. DBInstanceIdentifier *string `type:"string"`
  14629. // The new DB subnet group for the DB instance.
  14630. DBSubnetGroupName *string `type:"string"`
  14631. // Indicates the database engine version.
  14632. EngineVersion *string `type:"string"`
  14633. // Specifies the new Provisioned IOPS value for the DB instance that will be
  14634. // applied or is being applied.
  14635. Iops *int64 `type:"integer"`
  14636. // The license model for the DB instance.
  14637. //
  14638. // Valid values: license-included | bring-your-own-license | general-public-license
  14639. LicenseModel *string `type:"string"`
  14640. // Contains the pending or in-progress change of the master credentials for
  14641. // the DB instance.
  14642. MasterUserPassword *string `type:"string"`
  14643. // Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.
  14644. MultiAZ *bool `type:"boolean"`
  14645. // Specifies the pending port for the DB instance.
  14646. Port *int64 `type:"integer"`
  14647. // Specifies the storage type to be associated with the DB instance.
  14648. StorageType *string `type:"string"`
  14649. }
  14650. // String returns the string representation
  14651. func (s PendingModifiedValues) String() string {
  14652. return awsutil.Prettify(s)
  14653. }
  14654. // GoString returns the string representation
  14655. func (s PendingModifiedValues) GoString() string {
  14656. return s.String()
  14657. }
  14658. type PromoteReadReplicaDBClusterInput struct {
  14659. _ struct{} `type:"structure"`
  14660. // The identifier of the DB cluster Read Replica to promote. This parameter
  14661. // is not case-sensitive.
  14662. //
  14663. // Constraints:
  14664. //
  14665. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  14666. //
  14667. // * First character must be a letter.
  14668. //
  14669. // * Cannot end with a hyphen or contain two consecutive hyphens.
  14670. //
  14671. // Example: my-cluster-replica1
  14672. //
  14673. // DBClusterIdentifier is a required field
  14674. DBClusterIdentifier *string `type:"string" required:"true"`
  14675. }
  14676. // String returns the string representation
  14677. func (s PromoteReadReplicaDBClusterInput) String() string {
  14678. return awsutil.Prettify(s)
  14679. }
  14680. // GoString returns the string representation
  14681. func (s PromoteReadReplicaDBClusterInput) GoString() string {
  14682. return s.String()
  14683. }
  14684. // Validate inspects the fields of the type to determine if they are valid.
  14685. func (s *PromoteReadReplicaDBClusterInput) Validate() error {
  14686. invalidParams := request.ErrInvalidParams{Context: "PromoteReadReplicaDBClusterInput"}
  14687. if s.DBClusterIdentifier == nil {
  14688. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  14689. }
  14690. if invalidParams.Len() > 0 {
  14691. return invalidParams
  14692. }
  14693. return nil
  14694. }
  14695. type PromoteReadReplicaDBClusterOutput struct {
  14696. _ struct{} `type:"structure"`
  14697. // Contains the result of a successful invocation of the following actions:
  14698. //
  14699. // * CreateDBCluster
  14700. //
  14701. // * DeleteDBCluster
  14702. //
  14703. // * FailoverDBCluster
  14704. //
  14705. // * ModifyDBCluster
  14706. //
  14707. // * RestoreDBClusterFromSnapshot
  14708. //
  14709. // * RestoreDBClusterToPointInTime
  14710. //
  14711. // This data type is used as a response element in the DescribeDBClusters action.
  14712. DBCluster *DBCluster `type:"structure"`
  14713. }
  14714. // String returns the string representation
  14715. func (s PromoteReadReplicaDBClusterOutput) String() string {
  14716. return awsutil.Prettify(s)
  14717. }
  14718. // GoString returns the string representation
  14719. func (s PromoteReadReplicaDBClusterOutput) GoString() string {
  14720. return s.String()
  14721. }
  14722. type PromoteReadReplicaInput struct {
  14723. _ struct{} `type:"structure"`
  14724. // The number of days to retain automated backups. Setting this parameter to
  14725. // a positive number enables backups. Setting this parameter to 0 disables automated
  14726. // backups.
  14727. //
  14728. // Default: 1
  14729. //
  14730. // Constraints:
  14731. //
  14732. // * Must be a value from 0 to 8
  14733. BackupRetentionPeriod *int64 `type:"integer"`
  14734. // The DB instance identifier. This value is stored as a lowercase string.
  14735. //
  14736. // Constraints:
  14737. //
  14738. // * Must be the identifier for an existing Read Replica DB instance
  14739. //
  14740. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  14741. //
  14742. // * First character must be a letter
  14743. //
  14744. // * Cannot end with a hyphen or contain two consecutive hyphens
  14745. //
  14746. // Example: mydbinstance
  14747. //
  14748. // DBInstanceIdentifier is a required field
  14749. DBInstanceIdentifier *string `type:"string" required:"true"`
  14750. // The daily time range during which automated backups are created if automated
  14751. // backups are enabled, using the BackupRetentionPeriod parameter.
  14752. //
  14753. // Default: A 30-minute window selected at random from an 8-hour block of time
  14754. // per region. To see the time blocks available, see Adjusting the Preferred
  14755. // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  14756. // in the Amazon RDS User Guide.
  14757. //
  14758. // Constraints:
  14759. //
  14760. // * Must be in the format hh24:mi-hh24:mi.
  14761. //
  14762. // * Times should be in Universal Coordinated Time (UTC).
  14763. //
  14764. // * Must not conflict with the preferred maintenance window.
  14765. //
  14766. // * Must be at least 30 minutes.
  14767. PreferredBackupWindow *string `type:"string"`
  14768. }
  14769. // String returns the string representation
  14770. func (s PromoteReadReplicaInput) String() string {
  14771. return awsutil.Prettify(s)
  14772. }
  14773. // GoString returns the string representation
  14774. func (s PromoteReadReplicaInput) GoString() string {
  14775. return s.String()
  14776. }
  14777. // Validate inspects the fields of the type to determine if they are valid.
  14778. func (s *PromoteReadReplicaInput) Validate() error {
  14779. invalidParams := request.ErrInvalidParams{Context: "PromoteReadReplicaInput"}
  14780. if s.DBInstanceIdentifier == nil {
  14781. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  14782. }
  14783. if invalidParams.Len() > 0 {
  14784. return invalidParams
  14785. }
  14786. return nil
  14787. }
  14788. type PromoteReadReplicaOutput struct {
  14789. _ struct{} `type:"structure"`
  14790. // Contains the result of a successful invocation of the following actions:
  14791. //
  14792. // * CreateDBInstance
  14793. //
  14794. // * DeleteDBInstance
  14795. //
  14796. // * ModifyDBInstance
  14797. //
  14798. // This data type is used as a response element in the DescribeDBInstances action.
  14799. DBInstance *DBInstance `type:"structure"`
  14800. }
  14801. // String returns the string representation
  14802. func (s PromoteReadReplicaOutput) String() string {
  14803. return awsutil.Prettify(s)
  14804. }
  14805. // GoString returns the string representation
  14806. func (s PromoteReadReplicaOutput) GoString() string {
  14807. return s.String()
  14808. }
  14809. type PurchaseReservedDBInstancesOfferingInput struct {
  14810. _ struct{} `type:"structure"`
  14811. // The number of instances to reserve.
  14812. //
  14813. // Default: 1
  14814. DBInstanceCount *int64 `type:"integer"`
  14815. // Customer-specified identifier to track this reservation.
  14816. //
  14817. // Example: myreservationID
  14818. ReservedDBInstanceId *string `type:"string"`
  14819. // The ID of the Reserved DB instance offering to purchase.
  14820. //
  14821. // Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
  14822. //
  14823. // ReservedDBInstancesOfferingId is a required field
  14824. ReservedDBInstancesOfferingId *string `type:"string" required:"true"`
  14825. // A list of tags.
  14826. Tags []*Tag `locationNameList:"Tag" type:"list"`
  14827. }
  14828. // String returns the string representation
  14829. func (s PurchaseReservedDBInstancesOfferingInput) String() string {
  14830. return awsutil.Prettify(s)
  14831. }
  14832. // GoString returns the string representation
  14833. func (s PurchaseReservedDBInstancesOfferingInput) GoString() string {
  14834. return s.String()
  14835. }
  14836. // Validate inspects the fields of the type to determine if they are valid.
  14837. func (s *PurchaseReservedDBInstancesOfferingInput) Validate() error {
  14838. invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedDBInstancesOfferingInput"}
  14839. if s.ReservedDBInstancesOfferingId == nil {
  14840. invalidParams.Add(request.NewErrParamRequired("ReservedDBInstancesOfferingId"))
  14841. }
  14842. if invalidParams.Len() > 0 {
  14843. return invalidParams
  14844. }
  14845. return nil
  14846. }
  14847. type PurchaseReservedDBInstancesOfferingOutput struct {
  14848. _ struct{} `type:"structure"`
  14849. // This data type is used as a response element in the DescribeReservedDBInstances
  14850. // and PurchaseReservedDBInstancesOffering actions.
  14851. ReservedDBInstance *ReservedDBInstance `type:"structure"`
  14852. }
  14853. // String returns the string representation
  14854. func (s PurchaseReservedDBInstancesOfferingOutput) String() string {
  14855. return awsutil.Prettify(s)
  14856. }
  14857. // GoString returns the string representation
  14858. func (s PurchaseReservedDBInstancesOfferingOutput) GoString() string {
  14859. return s.String()
  14860. }
  14861. type RebootDBInstanceInput struct {
  14862. _ struct{} `type:"structure"`
  14863. // The DB instance identifier. This parameter is stored as a lowercase string.
  14864. //
  14865. // Constraints:
  14866. //
  14867. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  14868. //
  14869. // * First character must be a letter
  14870. //
  14871. // * Cannot end with a hyphen or contain two consecutive hyphens
  14872. //
  14873. // DBInstanceIdentifier is a required field
  14874. DBInstanceIdentifier *string `type:"string" required:"true"`
  14875. // When true, the reboot will be conducted through a MultiAZ failover.
  14876. //
  14877. // Constraint: You cannot specify true if the instance is not configured for
  14878. // MultiAZ.
  14879. ForceFailover *bool `type:"boolean"`
  14880. }
  14881. // String returns the string representation
  14882. func (s RebootDBInstanceInput) String() string {
  14883. return awsutil.Prettify(s)
  14884. }
  14885. // GoString returns the string representation
  14886. func (s RebootDBInstanceInput) GoString() string {
  14887. return s.String()
  14888. }
  14889. // Validate inspects the fields of the type to determine if they are valid.
  14890. func (s *RebootDBInstanceInput) Validate() error {
  14891. invalidParams := request.ErrInvalidParams{Context: "RebootDBInstanceInput"}
  14892. if s.DBInstanceIdentifier == nil {
  14893. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  14894. }
  14895. if invalidParams.Len() > 0 {
  14896. return invalidParams
  14897. }
  14898. return nil
  14899. }
  14900. type RebootDBInstanceOutput struct {
  14901. _ struct{} `type:"structure"`
  14902. // Contains the result of a successful invocation of the following actions:
  14903. //
  14904. // * CreateDBInstance
  14905. //
  14906. // * DeleteDBInstance
  14907. //
  14908. // * ModifyDBInstance
  14909. //
  14910. // This data type is used as a response element in the DescribeDBInstances action.
  14911. DBInstance *DBInstance `type:"structure"`
  14912. }
  14913. // String returns the string representation
  14914. func (s RebootDBInstanceOutput) String() string {
  14915. return awsutil.Prettify(s)
  14916. }
  14917. // GoString returns the string representation
  14918. func (s RebootDBInstanceOutput) GoString() string {
  14919. return s.String()
  14920. }
  14921. // This data type is used as a response element in the DescribeReservedDBInstances
  14922. // and DescribeReservedDBInstancesOfferings actions.
  14923. type RecurringCharge struct {
  14924. _ struct{} `type:"structure"`
  14925. // The amount of the recurring charge.
  14926. RecurringChargeAmount *float64 `type:"double"`
  14927. // The frequency of the recurring charge.
  14928. RecurringChargeFrequency *string `type:"string"`
  14929. }
  14930. // String returns the string representation
  14931. func (s RecurringCharge) String() string {
  14932. return awsutil.Prettify(s)
  14933. }
  14934. // GoString returns the string representation
  14935. func (s RecurringCharge) GoString() string {
  14936. return s.String()
  14937. }
  14938. type RemoveRoleFromDBClusterInput struct {
  14939. _ struct{} `type:"structure"`
  14940. // The name of the DB cluster to disassociate the IAM role rom.
  14941. //
  14942. // DBClusterIdentifier is a required field
  14943. DBClusterIdentifier *string `type:"string" required:"true"`
  14944. // The Amazon Resource Name (ARN) of the IAM role to disassociate from the Aurora
  14945. // DB cluster, for example arn:aws:iam::123456789012:role/AuroraAccessRole.
  14946. //
  14947. // RoleArn is a required field
  14948. RoleArn *string `type:"string" required:"true"`
  14949. }
  14950. // String returns the string representation
  14951. func (s RemoveRoleFromDBClusterInput) String() string {
  14952. return awsutil.Prettify(s)
  14953. }
  14954. // GoString returns the string representation
  14955. func (s RemoveRoleFromDBClusterInput) GoString() string {
  14956. return s.String()
  14957. }
  14958. // Validate inspects the fields of the type to determine if they are valid.
  14959. func (s *RemoveRoleFromDBClusterInput) Validate() error {
  14960. invalidParams := request.ErrInvalidParams{Context: "RemoveRoleFromDBClusterInput"}
  14961. if s.DBClusterIdentifier == nil {
  14962. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  14963. }
  14964. if s.RoleArn == nil {
  14965. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  14966. }
  14967. if invalidParams.Len() > 0 {
  14968. return invalidParams
  14969. }
  14970. return nil
  14971. }
  14972. type RemoveRoleFromDBClusterOutput struct {
  14973. _ struct{} `type:"structure"`
  14974. }
  14975. // String returns the string representation
  14976. func (s RemoveRoleFromDBClusterOutput) String() string {
  14977. return awsutil.Prettify(s)
  14978. }
  14979. // GoString returns the string representation
  14980. func (s RemoveRoleFromDBClusterOutput) GoString() string {
  14981. return s.String()
  14982. }
  14983. type RemoveSourceIdentifierFromSubscriptionInput struct {
  14984. _ struct{} `type:"structure"`
  14985. // The source identifier to be removed from the subscription, such as the DB
  14986. // instance identifier for a DB instance or the name of a security group.
  14987. //
  14988. // SourceIdentifier is a required field
  14989. SourceIdentifier *string `type:"string" required:"true"`
  14990. // The name of the RDS event notification subscription you want to remove a
  14991. // source identifier from.
  14992. //
  14993. // SubscriptionName is a required field
  14994. SubscriptionName *string `type:"string" required:"true"`
  14995. }
  14996. // String returns the string representation
  14997. func (s RemoveSourceIdentifierFromSubscriptionInput) String() string {
  14998. return awsutil.Prettify(s)
  14999. }
  15000. // GoString returns the string representation
  15001. func (s RemoveSourceIdentifierFromSubscriptionInput) GoString() string {
  15002. return s.String()
  15003. }
  15004. // Validate inspects the fields of the type to determine if they are valid.
  15005. func (s *RemoveSourceIdentifierFromSubscriptionInput) Validate() error {
  15006. invalidParams := request.ErrInvalidParams{Context: "RemoveSourceIdentifierFromSubscriptionInput"}
  15007. if s.SourceIdentifier == nil {
  15008. invalidParams.Add(request.NewErrParamRequired("SourceIdentifier"))
  15009. }
  15010. if s.SubscriptionName == nil {
  15011. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  15012. }
  15013. if invalidParams.Len() > 0 {
  15014. return invalidParams
  15015. }
  15016. return nil
  15017. }
  15018. type RemoveSourceIdentifierFromSubscriptionOutput struct {
  15019. _ struct{} `type:"structure"`
  15020. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  15021. // action.
  15022. EventSubscription *EventSubscription `type:"structure"`
  15023. }
  15024. // String returns the string representation
  15025. func (s RemoveSourceIdentifierFromSubscriptionOutput) String() string {
  15026. return awsutil.Prettify(s)
  15027. }
  15028. // GoString returns the string representation
  15029. func (s RemoveSourceIdentifierFromSubscriptionOutput) GoString() string {
  15030. return s.String()
  15031. }
  15032. type RemoveTagsFromResourceInput struct {
  15033. _ struct{} `type:"structure"`
  15034. // The Amazon RDS resource the tags will be removed from. This value is an Amazon
  15035. // Resource Name (ARN). For information about creating an ARN, see Constructing
  15036. // an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing).
  15037. //
  15038. // ResourceName is a required field
  15039. ResourceName *string `type:"string" required:"true"`
  15040. // The tag key (name) of the tag to be removed.
  15041. //
  15042. // TagKeys is a required field
  15043. TagKeys []*string `type:"list" required:"true"`
  15044. }
  15045. // String returns the string representation
  15046. func (s RemoveTagsFromResourceInput) String() string {
  15047. return awsutil.Prettify(s)
  15048. }
  15049. // GoString returns the string representation
  15050. func (s RemoveTagsFromResourceInput) GoString() string {
  15051. return s.String()
  15052. }
  15053. // Validate inspects the fields of the type to determine if they are valid.
  15054. func (s *RemoveTagsFromResourceInput) Validate() error {
  15055. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
  15056. if s.ResourceName == nil {
  15057. invalidParams.Add(request.NewErrParamRequired("ResourceName"))
  15058. }
  15059. if s.TagKeys == nil {
  15060. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  15061. }
  15062. if invalidParams.Len() > 0 {
  15063. return invalidParams
  15064. }
  15065. return nil
  15066. }
  15067. type RemoveTagsFromResourceOutput struct {
  15068. _ struct{} `type:"structure"`
  15069. }
  15070. // String returns the string representation
  15071. func (s RemoveTagsFromResourceOutput) String() string {
  15072. return awsutil.Prettify(s)
  15073. }
  15074. // GoString returns the string representation
  15075. func (s RemoveTagsFromResourceOutput) GoString() string {
  15076. return s.String()
  15077. }
  15078. // This data type is used as a response element in the DescribeReservedDBInstances
  15079. // and PurchaseReservedDBInstancesOffering actions.
  15080. type ReservedDBInstance struct {
  15081. _ struct{} `type:"structure"`
  15082. // The currency code for the reserved DB instance.
  15083. CurrencyCode *string `type:"string"`
  15084. // The DB instance class for the reserved DB instance.
  15085. DBInstanceClass *string `type:"string"`
  15086. // The number of reserved DB instances.
  15087. DBInstanceCount *int64 `type:"integer"`
  15088. // The duration of the reservation in seconds.
  15089. Duration *int64 `type:"integer"`
  15090. // The fixed price charged for this reserved DB instance.
  15091. FixedPrice *float64 `type:"double"`
  15092. // Indicates if the reservation applies to Multi-AZ deployments.
  15093. MultiAZ *bool `type:"boolean"`
  15094. // The offering type of this reserved DB instance.
  15095. OfferingType *string `type:"string"`
  15096. // The description of the reserved DB instance.
  15097. ProductDescription *string `type:"string"`
  15098. // The recurring price charged to run this reserved DB instance.
  15099. RecurringCharges []*RecurringCharge `locationNameList:"RecurringCharge" type:"list"`
  15100. // The Amazon Resource Name (ARN) for the reserved DB instance.
  15101. ReservedDBInstanceArn *string `type:"string"`
  15102. // The unique identifier for the reservation.
  15103. ReservedDBInstanceId *string `type:"string"`
  15104. // The offering identifier.
  15105. ReservedDBInstancesOfferingId *string `type:"string"`
  15106. // The time the reservation started.
  15107. StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  15108. // The state of the reserved DB instance.
  15109. State *string `type:"string"`
  15110. // The hourly price charged for this reserved DB instance.
  15111. UsagePrice *float64 `type:"double"`
  15112. }
  15113. // String returns the string representation
  15114. func (s ReservedDBInstance) String() string {
  15115. return awsutil.Prettify(s)
  15116. }
  15117. // GoString returns the string representation
  15118. func (s ReservedDBInstance) GoString() string {
  15119. return s.String()
  15120. }
  15121. // This data type is used as a response element in the DescribeReservedDBInstancesOfferings
  15122. // action.
  15123. type ReservedDBInstancesOffering struct {
  15124. _ struct{} `type:"structure"`
  15125. // The currency code for the reserved DB instance offering.
  15126. CurrencyCode *string `type:"string"`
  15127. // The DB instance class for the reserved DB instance.
  15128. DBInstanceClass *string `type:"string"`
  15129. // The duration of the offering in seconds.
  15130. Duration *int64 `type:"integer"`
  15131. // The fixed price charged for this offering.
  15132. FixedPrice *float64 `type:"double"`
  15133. // Indicates if the offering applies to Multi-AZ deployments.
  15134. MultiAZ *bool `type:"boolean"`
  15135. // The offering type.
  15136. OfferingType *string `type:"string"`
  15137. // The database engine used by the offering.
  15138. ProductDescription *string `type:"string"`
  15139. // The recurring price charged to run this reserved DB instance.
  15140. RecurringCharges []*RecurringCharge `locationNameList:"RecurringCharge" type:"list"`
  15141. // The offering identifier.
  15142. ReservedDBInstancesOfferingId *string `type:"string"`
  15143. // The hourly price charged for this offering.
  15144. UsagePrice *float64 `type:"double"`
  15145. }
  15146. // String returns the string representation
  15147. func (s ReservedDBInstancesOffering) String() string {
  15148. return awsutil.Prettify(s)
  15149. }
  15150. // GoString returns the string representation
  15151. func (s ReservedDBInstancesOffering) GoString() string {
  15152. return s.String()
  15153. }
  15154. type ResetDBClusterParameterGroupInput struct {
  15155. _ struct{} `type:"structure"`
  15156. // The name of the DB cluster parameter group to reset.
  15157. //
  15158. // DBClusterParameterGroupName is a required field
  15159. DBClusterParameterGroupName *string `type:"string" required:"true"`
  15160. // A list of parameter names in the DB cluster parameter group to reset to the
  15161. // default values. You cannot use this parameter if the ResetAllParameters parameter
  15162. // is set to true.
  15163. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  15164. // A value that is set to true to reset all parameters in the DB cluster parameter
  15165. // group to their default values, and false otherwise. You cannot use this parameter
  15166. // if there is a list of parameter names specified for the Parameters parameter.
  15167. ResetAllParameters *bool `type:"boolean"`
  15168. }
  15169. // String returns the string representation
  15170. func (s ResetDBClusterParameterGroupInput) String() string {
  15171. return awsutil.Prettify(s)
  15172. }
  15173. // GoString returns the string representation
  15174. func (s ResetDBClusterParameterGroupInput) GoString() string {
  15175. return s.String()
  15176. }
  15177. // Validate inspects the fields of the type to determine if they are valid.
  15178. func (s *ResetDBClusterParameterGroupInput) Validate() error {
  15179. invalidParams := request.ErrInvalidParams{Context: "ResetDBClusterParameterGroupInput"}
  15180. if s.DBClusterParameterGroupName == nil {
  15181. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  15182. }
  15183. if invalidParams.Len() > 0 {
  15184. return invalidParams
  15185. }
  15186. return nil
  15187. }
  15188. type ResetDBParameterGroupInput struct {
  15189. _ struct{} `type:"structure"`
  15190. // The name of the DB parameter group.
  15191. //
  15192. // Constraints:
  15193. //
  15194. // * Must be 1 to 255 alphanumeric characters
  15195. //
  15196. // * First character must be a letter
  15197. //
  15198. // * Cannot end with a hyphen or contain two consecutive hyphens
  15199. //
  15200. // DBParameterGroupName is a required field
  15201. DBParameterGroupName *string `type:"string" required:"true"`
  15202. // An array of parameter names, values, and the apply method for the parameter
  15203. // update. At least one parameter name, value, and apply method must be supplied;
  15204. // subsequent arguments are optional. A maximum of 20 parameters can be modified
  15205. // in a single request.
  15206. //
  15207. // MySQL
  15208. //
  15209. // Valid Values (for Apply method): immediate | pending-reboot
  15210. //
  15211. // You can use the immediate value with dynamic parameters only. You can use
  15212. // the pending-reboot value for both dynamic and static parameters, and changes
  15213. // are applied when DB instance reboots.
  15214. //
  15215. // MariaDB
  15216. //
  15217. // Valid Values (for Apply method): immediate | pending-reboot
  15218. //
  15219. // You can use the immediate value with dynamic parameters only. You can use
  15220. // the pending-reboot value for both dynamic and static parameters, and changes
  15221. // are applied when DB instance reboots.
  15222. //
  15223. // Oracle
  15224. //
  15225. // Valid Values (for Apply method): pending-reboot
  15226. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  15227. // Specifies whether (true) or not (false) to reset all parameters in the DB
  15228. // parameter group to default values.
  15229. //
  15230. // Default: true
  15231. ResetAllParameters *bool `type:"boolean"`
  15232. }
  15233. // String returns the string representation
  15234. func (s ResetDBParameterGroupInput) String() string {
  15235. return awsutil.Prettify(s)
  15236. }
  15237. // GoString returns the string representation
  15238. func (s ResetDBParameterGroupInput) GoString() string {
  15239. return s.String()
  15240. }
  15241. // Validate inspects the fields of the type to determine if they are valid.
  15242. func (s *ResetDBParameterGroupInput) Validate() error {
  15243. invalidParams := request.ErrInvalidParams{Context: "ResetDBParameterGroupInput"}
  15244. if s.DBParameterGroupName == nil {
  15245. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  15246. }
  15247. if invalidParams.Len() > 0 {
  15248. return invalidParams
  15249. }
  15250. return nil
  15251. }
  15252. // Describes the pending maintenance actions for a resource.
  15253. type ResourcePendingMaintenanceActions struct {
  15254. _ struct{} `type:"structure"`
  15255. // A list that provides details about the pending maintenance actions for the
  15256. // resource.
  15257. PendingMaintenanceActionDetails []*PendingMaintenanceAction `locationNameList:"PendingMaintenanceAction" type:"list"`
  15258. // The ARN of the resource that has pending maintenance actions.
  15259. ResourceIdentifier *string `type:"string"`
  15260. }
  15261. // String returns the string representation
  15262. func (s ResourcePendingMaintenanceActions) String() string {
  15263. return awsutil.Prettify(s)
  15264. }
  15265. // GoString returns the string representation
  15266. func (s ResourcePendingMaintenanceActions) GoString() string {
  15267. return s.String()
  15268. }
  15269. type RestoreDBClusterFromS3Input struct {
  15270. _ struct{} `type:"structure"`
  15271. // A list of EC2 Availability Zones that instances in the restored DB cluster
  15272. // can be created in.
  15273. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  15274. // The number of days for which automated backups of the restored DB cluster
  15275. // are retained. You must specify a minimum value of 1.
  15276. //
  15277. // Default: 1
  15278. //
  15279. // Constraints:
  15280. //
  15281. // * Must be a value from 1 to 35
  15282. BackupRetentionPeriod *int64 `type:"integer"`
  15283. // A value that indicates that the restored DB cluster should be associated
  15284. // with the specified CharacterSet.
  15285. CharacterSetName *string `type:"string"`
  15286. // The name of the DB cluster to create from the source data in the S3 bucket.
  15287. // This parameter is isn't case-sensitive.
  15288. //
  15289. // Constraints:
  15290. //
  15291. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  15292. //
  15293. // * First character must be a letter.
  15294. //
  15295. // * Cannot end with a hyphen or contain two consecutive hyphens.
  15296. //
  15297. // Example: my-cluster1
  15298. //
  15299. // DBClusterIdentifier is a required field
  15300. DBClusterIdentifier *string `type:"string" required:"true"`
  15301. // The name of the DB cluster parameter group to associate with the restored
  15302. // DB cluster. If this argument is omitted, default.aurora5.6 will be used.
  15303. //
  15304. // Constraints:
  15305. //
  15306. // * Must be 1 to 255 alphanumeric characters
  15307. //
  15308. // * First character must be a letter
  15309. //
  15310. // * Cannot end with a hyphen or contain two consecutive hyphens
  15311. DBClusterParameterGroupName *string `type:"string"`
  15312. // A DB subnet group to associate with the restored DB cluster.
  15313. //
  15314. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  15315. // underscores, spaces, or hyphens. Must not be default.
  15316. //
  15317. // Example: mySubnetgroup
  15318. DBSubnetGroupName *string `type:"string"`
  15319. // The database name for the restored DB cluster.
  15320. DatabaseName *string `type:"string"`
  15321. // The name of the database engine to be used for the restored DB cluster.
  15322. //
  15323. // Valid Values: aurora
  15324. //
  15325. // Engine is a required field
  15326. Engine *string `type:"string" required:"true"`
  15327. // The version number of the database engine to use.
  15328. //
  15329. // Aurora
  15330. //
  15331. // Example: 5.6.10a
  15332. EngineVersion *string `type:"string"`
  15333. // The KMS key identifier for an encrypted DB cluster.
  15334. //
  15335. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  15336. // key. If you are creating a DB cluster with the same AWS account that owns
  15337. // the KMS encryption key used to encrypt the new DB cluster, then you can use
  15338. // the KMS key alias instead of the ARN for the KM encryption key.
  15339. //
  15340. // If the StorageEncrypted parameter is true, and you do not specify a value
  15341. // for the KmsKeyId parameter, then Amazon RDS will use your default encryption
  15342. // key. AWS KMS creates the default encryption key for your AWS account. Your
  15343. // AWS account has a different default encryption key for each AWS region.
  15344. KmsKeyId *string `type:"string"`
  15345. // The password for the master database user. This password can contain any
  15346. // printable ASCII character except "/", """, or "@".
  15347. //
  15348. // Constraints: Must contain from 8 to 41 characters.
  15349. //
  15350. // MasterUserPassword is a required field
  15351. MasterUserPassword *string `type:"string" required:"true"`
  15352. // The name of the master user for the restored DB cluster.
  15353. //
  15354. // Constraints:
  15355. //
  15356. // * Must be 1 to 16 alphanumeric characters.
  15357. //
  15358. // * First character must be a letter.
  15359. //
  15360. // * Cannot be a reserved word for the chosen database engine.
  15361. //
  15362. // MasterUsername is a required field
  15363. MasterUsername *string `type:"string" required:"true"`
  15364. // A value that indicates that the restored DB cluster should be associated
  15365. // with the specified option group.
  15366. //
  15367. // Permanent options cannot be removed from an option group. An option group
  15368. // cannot be removed from a DB cluster once it is associated with a DB cluster.
  15369. OptionGroupName *string `type:"string"`
  15370. // The port number on which the instances in the restored DB cluster accept
  15371. // connections.
  15372. //
  15373. // Default: 3306
  15374. Port *int64 `type:"integer"`
  15375. // The daily time range during which automated backups are created if automated
  15376. // backups are enabled using the BackupRetentionPeriod parameter.
  15377. //
  15378. // Default: A 30-minute window selected at random from an 8-hour block of time
  15379. // per region. To see the time blocks available, see Adjusting the Preferred
  15380. // Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  15381. // in the Amazon RDS User Guide.
  15382. //
  15383. // Constraints:
  15384. //
  15385. // * Must be in the format hh24:mi-hh24:mi.
  15386. //
  15387. // * Times should be in Universal Coordinated Time (UTC).
  15388. //
  15389. // * Must not conflict with the preferred maintenance window.
  15390. //
  15391. // * Must be at least 30 minutes.
  15392. PreferredBackupWindow *string `type:"string"`
  15393. // The weekly time range during which system maintenance can occur, in Universal
  15394. // Coordinated Time (UTC).
  15395. //
  15396. // Format: ddd:hh24:mi-ddd:hh24:mi
  15397. //
  15398. // Default: A 30-minute window selected at random from an 8-hour block of time
  15399. // per region, occurring on a random day of the week. To see the time blocks
  15400. // available, see Adjusting the Preferred Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  15401. // in the Amazon RDS User Guide.
  15402. //
  15403. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  15404. //
  15405. // Constraints: Minimum 30-minute window.
  15406. PreferredMaintenanceWindow *string `type:"string"`
  15407. // The name of the Amazon S3 bucket that contains the data used to create the
  15408. // Amazon Aurora DB cluster.
  15409. //
  15410. // S3BucketName is a required field
  15411. S3BucketName *string `type:"string" required:"true"`
  15412. // The Amazon Resource Name (ARN) of the AWS Identity and Access Management
  15413. // (IAM) role that authorizes Amazon RDS to access the Amazon S3 bucket on your
  15414. // behalf.
  15415. //
  15416. // S3IngestionRoleArn is a required field
  15417. S3IngestionRoleArn *string `type:"string" required:"true"`
  15418. // The prefix for all of the file names that contain the data used to create
  15419. // the Amazon Aurora DB cluster. If you do not specify a SourceS3Prefix value,
  15420. // then the Amazon Aurora DB cluster is created by using all of the files in
  15421. // the Amazon S3 bucket.
  15422. S3Prefix *string `type:"string"`
  15423. // The identifier for the database engine that was backed up to create the files
  15424. // stored in the Amazon S3 bucket.
  15425. //
  15426. // Valid values: mysql
  15427. //
  15428. // SourceEngine is a required field
  15429. SourceEngine *string `type:"string" required:"true"`
  15430. // The version of the database that the backup files were created from.
  15431. //
  15432. // MySQL version 5.5 and 5.6 are supported.
  15433. //
  15434. // Example: 5.6.22
  15435. //
  15436. // SourceEngineVersion is a required field
  15437. SourceEngineVersion *string `type:"string" required:"true"`
  15438. // Specifies whether the restored DB cluster is encrypted.
  15439. StorageEncrypted *bool `type:"boolean"`
  15440. // A list of tags.
  15441. Tags []*Tag `locationNameList:"Tag" type:"list"`
  15442. // A list of EC2 VPC security groups to associate with the restored DB cluster.
  15443. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  15444. }
  15445. // String returns the string representation
  15446. func (s RestoreDBClusterFromS3Input) String() string {
  15447. return awsutil.Prettify(s)
  15448. }
  15449. // GoString returns the string representation
  15450. func (s RestoreDBClusterFromS3Input) GoString() string {
  15451. return s.String()
  15452. }
  15453. // Validate inspects the fields of the type to determine if they are valid.
  15454. func (s *RestoreDBClusterFromS3Input) Validate() error {
  15455. invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterFromS3Input"}
  15456. if s.DBClusterIdentifier == nil {
  15457. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  15458. }
  15459. if s.Engine == nil {
  15460. invalidParams.Add(request.NewErrParamRequired("Engine"))
  15461. }
  15462. if s.MasterUserPassword == nil {
  15463. invalidParams.Add(request.NewErrParamRequired("MasterUserPassword"))
  15464. }
  15465. if s.MasterUsername == nil {
  15466. invalidParams.Add(request.NewErrParamRequired("MasterUsername"))
  15467. }
  15468. if s.S3BucketName == nil {
  15469. invalidParams.Add(request.NewErrParamRequired("S3BucketName"))
  15470. }
  15471. if s.S3IngestionRoleArn == nil {
  15472. invalidParams.Add(request.NewErrParamRequired("S3IngestionRoleArn"))
  15473. }
  15474. if s.SourceEngine == nil {
  15475. invalidParams.Add(request.NewErrParamRequired("SourceEngine"))
  15476. }
  15477. if s.SourceEngineVersion == nil {
  15478. invalidParams.Add(request.NewErrParamRequired("SourceEngineVersion"))
  15479. }
  15480. if invalidParams.Len() > 0 {
  15481. return invalidParams
  15482. }
  15483. return nil
  15484. }
  15485. type RestoreDBClusterFromS3Output struct {
  15486. _ struct{} `type:"structure"`
  15487. // Contains the result of a successful invocation of the following actions:
  15488. //
  15489. // * CreateDBCluster
  15490. //
  15491. // * DeleteDBCluster
  15492. //
  15493. // * FailoverDBCluster
  15494. //
  15495. // * ModifyDBCluster
  15496. //
  15497. // * RestoreDBClusterFromSnapshot
  15498. //
  15499. // * RestoreDBClusterToPointInTime
  15500. //
  15501. // This data type is used as a response element in the DescribeDBClusters action.
  15502. DBCluster *DBCluster `type:"structure"`
  15503. }
  15504. // String returns the string representation
  15505. func (s RestoreDBClusterFromS3Output) String() string {
  15506. return awsutil.Prettify(s)
  15507. }
  15508. // GoString returns the string representation
  15509. func (s RestoreDBClusterFromS3Output) GoString() string {
  15510. return s.String()
  15511. }
  15512. type RestoreDBClusterFromSnapshotInput struct {
  15513. _ struct{} `type:"structure"`
  15514. // Provides the list of EC2 Availability Zones that instances in the restored
  15515. // DB cluster can be created in.
  15516. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  15517. // The name of the DB cluster to create from the DB cluster snapshot. This parameter
  15518. // isn't case-sensitive.
  15519. //
  15520. // Constraints:
  15521. //
  15522. // * Must contain from 1 to 255 alphanumeric characters or hyphens
  15523. //
  15524. // * First character must be a letter
  15525. //
  15526. // * Cannot end with a hyphen or contain two consecutive hyphens
  15527. //
  15528. // Example: my-snapshot-id
  15529. //
  15530. // DBClusterIdentifier is a required field
  15531. DBClusterIdentifier *string `type:"string" required:"true"`
  15532. // The name of the DB subnet group to use for the new DB cluster.
  15533. //
  15534. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  15535. // underscores, spaces, or hyphens. Must not be default.
  15536. //
  15537. // Example: mySubnetgroup
  15538. DBSubnetGroupName *string `type:"string"`
  15539. // The database name for the restored DB cluster.
  15540. DatabaseName *string `type:"string"`
  15541. // The database engine to use for the new DB cluster.
  15542. //
  15543. // Default: The same as source
  15544. //
  15545. // Constraint: Must be compatible with the engine of the source
  15546. //
  15547. // Engine is a required field
  15548. Engine *string `type:"string" required:"true"`
  15549. // The version of the database engine to use for the new DB cluster.
  15550. EngineVersion *string `type:"string"`
  15551. // The KMS key identifier to use when restoring an encrypted DB cluster from
  15552. // a DB cluster snapshot.
  15553. //
  15554. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  15555. // key. If you are restoring a DB cluster with the same AWS account that owns
  15556. // the KMS encryption key used to encrypt the new DB cluster, then you can use
  15557. // the KMS key alias instead of the ARN for the KMS encryption key.
  15558. //
  15559. // If you do not specify a value for the KmsKeyId parameter, then the following
  15560. // will occur:
  15561. //
  15562. // * If the DB cluster snapshot is encrypted, then the restored DB cluster
  15563. // is encrypted using the KMS key that was used to encrypt the DB cluster
  15564. // snapshot.
  15565. //
  15566. // * If the DB cluster snapshot is not encrypted, then the restored DB cluster
  15567. // is encrypted using the specified encryption key.
  15568. KmsKeyId *string `type:"string"`
  15569. // The name of the option group to use for the restored DB cluster.
  15570. OptionGroupName *string `type:"string"`
  15571. // The port number on which the new DB cluster accepts connections.
  15572. //
  15573. // Constraints: Value must be 1150-65535
  15574. //
  15575. // Default: The same port as the original DB cluster.
  15576. Port *int64 `type:"integer"`
  15577. // The identifier for the DB cluster snapshot to restore from.
  15578. //
  15579. // Constraints:
  15580. //
  15581. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  15582. //
  15583. // * First character must be a letter
  15584. //
  15585. // * Cannot end with a hyphen or contain two consecutive hyphens
  15586. //
  15587. // SnapshotIdentifier is a required field
  15588. SnapshotIdentifier *string `type:"string" required:"true"`
  15589. // The tags to be assigned to the restored DB cluster.
  15590. Tags []*Tag `locationNameList:"Tag" type:"list"`
  15591. // A list of VPC security groups that the new DB cluster will belong to.
  15592. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  15593. }
  15594. // String returns the string representation
  15595. func (s RestoreDBClusterFromSnapshotInput) String() string {
  15596. return awsutil.Prettify(s)
  15597. }
  15598. // GoString returns the string representation
  15599. func (s RestoreDBClusterFromSnapshotInput) GoString() string {
  15600. return s.String()
  15601. }
  15602. // Validate inspects the fields of the type to determine if they are valid.
  15603. func (s *RestoreDBClusterFromSnapshotInput) Validate() error {
  15604. invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterFromSnapshotInput"}
  15605. if s.DBClusterIdentifier == nil {
  15606. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  15607. }
  15608. if s.Engine == nil {
  15609. invalidParams.Add(request.NewErrParamRequired("Engine"))
  15610. }
  15611. if s.SnapshotIdentifier == nil {
  15612. invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier"))
  15613. }
  15614. if invalidParams.Len() > 0 {
  15615. return invalidParams
  15616. }
  15617. return nil
  15618. }
  15619. type RestoreDBClusterFromSnapshotOutput struct {
  15620. _ struct{} `type:"structure"`
  15621. // Contains the result of a successful invocation of the following actions:
  15622. //
  15623. // * CreateDBCluster
  15624. //
  15625. // * DeleteDBCluster
  15626. //
  15627. // * FailoverDBCluster
  15628. //
  15629. // * ModifyDBCluster
  15630. //
  15631. // * RestoreDBClusterFromSnapshot
  15632. //
  15633. // * RestoreDBClusterToPointInTime
  15634. //
  15635. // This data type is used as a response element in the DescribeDBClusters action.
  15636. DBCluster *DBCluster `type:"structure"`
  15637. }
  15638. // String returns the string representation
  15639. func (s RestoreDBClusterFromSnapshotOutput) String() string {
  15640. return awsutil.Prettify(s)
  15641. }
  15642. // GoString returns the string representation
  15643. func (s RestoreDBClusterFromSnapshotOutput) GoString() string {
  15644. return s.String()
  15645. }
  15646. type RestoreDBClusterToPointInTimeInput struct {
  15647. _ struct{} `type:"structure"`
  15648. // The name of the new DB cluster to be created.
  15649. //
  15650. // Constraints:
  15651. //
  15652. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  15653. //
  15654. // * First character must be a letter
  15655. //
  15656. // * Cannot end with a hyphen or contain two consecutive hyphens
  15657. //
  15658. // DBClusterIdentifier is a required field
  15659. DBClusterIdentifier *string `type:"string" required:"true"`
  15660. // The DB subnet group name to use for the new DB cluster.
  15661. //
  15662. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  15663. // underscores, spaces, or hyphens. Must not be default.
  15664. //
  15665. // Example: mySubnetgroup
  15666. DBSubnetGroupName *string `type:"string"`
  15667. // The KMS key identifier to use when restoring an encrypted DB cluster from
  15668. // an encrypted DB cluster.
  15669. //
  15670. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  15671. // key. If you are restoring a DB cluster with the same AWS account that owns
  15672. // the KMS encryption key used to encrypt the new DB cluster, then you can use
  15673. // the KMS key alias instead of the ARN for the KMS encryption key.
  15674. //
  15675. // You can restore to a new DB cluster and encrypt the new DB cluster with a
  15676. // KMS key that is different than the KMS key used to encrypt the source DB
  15677. // cluster. The new DB cluster will be encrypted with the KMS key identified
  15678. // by the KmsKeyId parameter.
  15679. //
  15680. // If you do not specify a value for the KmsKeyId parameter, then the following
  15681. // will occur:
  15682. //
  15683. // * If the DB cluster is encrypted, then the restored DB cluster is encrypted
  15684. // using the KMS key that was used to encrypt the source DB cluster.
  15685. //
  15686. // * If the DB cluster is not encrypted, then the restored DB cluster is
  15687. // not encrypted.
  15688. //
  15689. // If DBClusterIdentifier refers to a DB cluster that is note encrypted, then
  15690. // the restore request is rejected.
  15691. KmsKeyId *string `type:"string"`
  15692. // The name of the option group for the new DB cluster.
  15693. OptionGroupName *string `type:"string"`
  15694. // The port number on which the new DB cluster accepts connections.
  15695. //
  15696. // Constraints: Value must be 1150-65535
  15697. //
  15698. // Default: The same port as the original DB cluster.
  15699. Port *int64 `type:"integer"`
  15700. // The date and time to restore the DB cluster to.
  15701. //
  15702. // Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
  15703. //
  15704. // Constraints:
  15705. //
  15706. // * Must be before the latest restorable time for the DB instance
  15707. //
  15708. // * Cannot be specified if UseLatestRestorableTime parameter is true
  15709. //
  15710. // Example: 2015-03-07T23:45:00Z
  15711. RestoreToTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  15712. // The identifier of the source DB cluster from which to restore.
  15713. //
  15714. // Constraints:
  15715. //
  15716. // * Must be the identifier of an existing database instance
  15717. //
  15718. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  15719. //
  15720. // * First character must be a letter
  15721. //
  15722. // * Cannot end with a hyphen or contain two consecutive hyphens
  15723. //
  15724. // SourceDBClusterIdentifier is a required field
  15725. SourceDBClusterIdentifier *string `type:"string" required:"true"`
  15726. // A list of tags.
  15727. Tags []*Tag `locationNameList:"Tag" type:"list"`
  15728. // A value that is set to true to restore the DB cluster to the latest restorable
  15729. // backup time, and false otherwise.
  15730. //
  15731. // Default: false
  15732. //
  15733. // Constraints: Cannot be specified if RestoreToTime parameter is provided.
  15734. UseLatestRestorableTime *bool `type:"boolean"`
  15735. // A lst of VPC security groups that the new DB cluster belongs to.
  15736. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  15737. }
  15738. // String returns the string representation
  15739. func (s RestoreDBClusterToPointInTimeInput) String() string {
  15740. return awsutil.Prettify(s)
  15741. }
  15742. // GoString returns the string representation
  15743. func (s RestoreDBClusterToPointInTimeInput) GoString() string {
  15744. return s.String()
  15745. }
  15746. // Validate inspects the fields of the type to determine if they are valid.
  15747. func (s *RestoreDBClusterToPointInTimeInput) Validate() error {
  15748. invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterToPointInTimeInput"}
  15749. if s.DBClusterIdentifier == nil {
  15750. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  15751. }
  15752. if s.SourceDBClusterIdentifier == nil {
  15753. invalidParams.Add(request.NewErrParamRequired("SourceDBClusterIdentifier"))
  15754. }
  15755. if invalidParams.Len() > 0 {
  15756. return invalidParams
  15757. }
  15758. return nil
  15759. }
  15760. type RestoreDBClusterToPointInTimeOutput struct {
  15761. _ struct{} `type:"structure"`
  15762. // Contains the result of a successful invocation of the following actions:
  15763. //
  15764. // * CreateDBCluster
  15765. //
  15766. // * DeleteDBCluster
  15767. //
  15768. // * FailoverDBCluster
  15769. //
  15770. // * ModifyDBCluster
  15771. //
  15772. // * RestoreDBClusterFromSnapshot
  15773. //
  15774. // * RestoreDBClusterToPointInTime
  15775. //
  15776. // This data type is used as a response element in the DescribeDBClusters action.
  15777. DBCluster *DBCluster `type:"structure"`
  15778. }
  15779. // String returns the string representation
  15780. func (s RestoreDBClusterToPointInTimeOutput) String() string {
  15781. return awsutil.Prettify(s)
  15782. }
  15783. // GoString returns the string representation
  15784. func (s RestoreDBClusterToPointInTimeOutput) GoString() string {
  15785. return s.String()
  15786. }
  15787. type RestoreDBInstanceFromDBSnapshotInput struct {
  15788. _ struct{} `type:"structure"`
  15789. // Indicates that minor version upgrades will be applied automatically to the
  15790. // DB instance during the maintenance window.
  15791. AutoMinorVersionUpgrade *bool `type:"boolean"`
  15792. // The EC2 Availability Zone that the database instance will be created in.
  15793. //
  15794. // Default: A random, system-chosen Availability Zone.
  15795. //
  15796. // Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ
  15797. // parameter is set to true.
  15798. //
  15799. // Example: us-east-1a
  15800. AvailabilityZone *string `type:"string"`
  15801. // True to copy all tags from the restored DB instance to snapshots of the DB
  15802. // instance; otherwise false. The default is false.
  15803. CopyTagsToSnapshot *bool `type:"boolean"`
  15804. // The compute and memory capacity of the Amazon RDS DB instance.
  15805. //
  15806. // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge
  15807. // | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge
  15808. // | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge
  15809. // | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge
  15810. // | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large
  15811. DBInstanceClass *string `type:"string"`
  15812. // Name of the DB instance to create from the DB snapshot. This parameter isn't
  15813. // case-sensitive.
  15814. //
  15815. // Constraints:
  15816. //
  15817. // * Must contain from 1 to 63 alphanumeric characters or hyphens (1 to 15
  15818. // for SQL Server)
  15819. //
  15820. // * First character must be a letter
  15821. //
  15822. // * Cannot end with a hyphen or contain two consecutive hyphens
  15823. //
  15824. // Example: my-snapshot-id
  15825. //
  15826. // DBInstanceIdentifier is a required field
  15827. DBInstanceIdentifier *string `type:"string" required:"true"`
  15828. // The database name for the restored DB instance.
  15829. //
  15830. // This parameter doesn't apply to the MySQL, PostgreSQL, or MariaDB engines.
  15831. DBName *string `type:"string"`
  15832. // The identifier for the DB snapshot to restore from.
  15833. //
  15834. // Constraints:
  15835. //
  15836. // * Must contain from 1 to 255 alphanumeric characters or hyphens
  15837. //
  15838. // * First character must be a letter
  15839. //
  15840. // * Cannot end with a hyphen or contain two consecutive hyphens
  15841. //
  15842. // If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier
  15843. // must be the ARN of the shared DB snapshot.
  15844. //
  15845. // DBSnapshotIdentifier is a required field
  15846. DBSnapshotIdentifier *string `type:"string" required:"true"`
  15847. // The DB subnet group name to use for the new instance.
  15848. //
  15849. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  15850. // underscores, spaces, or hyphens. Must not be default.
  15851. //
  15852. // Example: mySubnetgroup
  15853. DBSubnetGroupName *string `type:"string"`
  15854. // Specify the Active Directory Domain to restore the instance in.
  15855. Domain *string `type:"string"`
  15856. // Specify the name of the IAM role to be used when making API calls to the
  15857. // Directory Service.
  15858. DomainIAMRoleName *string `type:"string"`
  15859. // The database engine to use for the new instance.
  15860. //
  15861. // Default: The same as source
  15862. //
  15863. // Constraint: Must be compatible with the engine of the source
  15864. //
  15865. // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee
  15866. // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora
  15867. Engine *string `type:"string"`
  15868. // Specifies the amount of provisioned IOPS for the DB instance, expressed in
  15869. // I/O operations per second. If this parameter is not specified, the IOPS value
  15870. // will be taken from the backup. If this parameter is set to 0, the new instance
  15871. // will be converted to a non-PIOPS instance, which will take additional time,
  15872. // though your DB instance will be available for connections before the conversion
  15873. // starts.
  15874. //
  15875. // Constraints: Must be an integer greater than 1000.
  15876. //
  15877. // SQL Server
  15878. //
  15879. // Setting the IOPS value for the SQL Server database engine is not supported.
  15880. Iops *int64 `type:"integer"`
  15881. // License model information for the restored DB instance.
  15882. //
  15883. // Default: Same as source.
  15884. //
  15885. // Valid values: license-included | bring-your-own-license | general-public-license
  15886. LicenseModel *string `type:"string"`
  15887. // Specifies if the DB instance is a Multi-AZ deployment.
  15888. //
  15889. // Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ
  15890. // parameter is set to true.
  15891. MultiAZ *bool `type:"boolean"`
  15892. // The name of the option group to be used for the restored DB instance.
  15893. //
  15894. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  15895. // cannot be removed from an option group, and that option group cannot be removed
  15896. // from a DB instance once it is associated with a DB instance
  15897. OptionGroupName *string `type:"string"`
  15898. // The port number on which the database accepts connections.
  15899. //
  15900. // Default: The same port as the original DB instance
  15901. //
  15902. // Constraints: Value must be 1150-65535
  15903. Port *int64 `type:"integer"`
  15904. // Specifies the accessibility options for the DB instance. A value of true
  15905. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  15906. // which resolves to a public IP address. A value of false specifies an internal
  15907. // instance with a DNS name that resolves to a private IP address.
  15908. //
  15909. // Default: The default behavior varies depending on whether a VPC has been
  15910. // requested or not. The following list shows the default behavior in each case.
  15911. //
  15912. // * Default VPC: true
  15913. //
  15914. // * VPC: false
  15915. //
  15916. // If no DB subnet group has been specified as part of the request and the PubliclyAccessible
  15917. // value has not been set, the DB instance will be publicly accessible. If a
  15918. // specific DB subnet group has been specified as part of the request and the
  15919. // PubliclyAccessible value has not been set, the DB instance will be private.
  15920. PubliclyAccessible *bool `type:"boolean"`
  15921. // Specifies the storage type to be associated with the DB instance.
  15922. //
  15923. // Valid values: standard | gp2 | io1
  15924. //
  15925. // If you specify io1, you must also include a value for the Iops parameter.
  15926. //
  15927. // Default: io1 if the Iops parameter is specified; otherwise standard
  15928. StorageType *string `type:"string"`
  15929. // A list of tags.
  15930. Tags []*Tag `locationNameList:"Tag" type:"list"`
  15931. // The ARN from the Key Store with which to associate the instance for TDE encryption.
  15932. TdeCredentialArn *string `type:"string"`
  15933. // The password for the given ARN from the Key Store in order to access the
  15934. // device.
  15935. TdeCredentialPassword *string `type:"string"`
  15936. }
  15937. // String returns the string representation
  15938. func (s RestoreDBInstanceFromDBSnapshotInput) String() string {
  15939. return awsutil.Prettify(s)
  15940. }
  15941. // GoString returns the string representation
  15942. func (s RestoreDBInstanceFromDBSnapshotInput) GoString() string {
  15943. return s.String()
  15944. }
  15945. // Validate inspects the fields of the type to determine if they are valid.
  15946. func (s *RestoreDBInstanceFromDBSnapshotInput) Validate() error {
  15947. invalidParams := request.ErrInvalidParams{Context: "RestoreDBInstanceFromDBSnapshotInput"}
  15948. if s.DBInstanceIdentifier == nil {
  15949. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  15950. }
  15951. if s.DBSnapshotIdentifier == nil {
  15952. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  15953. }
  15954. if invalidParams.Len() > 0 {
  15955. return invalidParams
  15956. }
  15957. return nil
  15958. }
  15959. type RestoreDBInstanceFromDBSnapshotOutput struct {
  15960. _ struct{} `type:"structure"`
  15961. // Contains the result of a successful invocation of the following actions:
  15962. //
  15963. // * CreateDBInstance
  15964. //
  15965. // * DeleteDBInstance
  15966. //
  15967. // * ModifyDBInstance
  15968. //
  15969. // This data type is used as a response element in the DescribeDBInstances action.
  15970. DBInstance *DBInstance `type:"structure"`
  15971. }
  15972. // String returns the string representation
  15973. func (s RestoreDBInstanceFromDBSnapshotOutput) String() string {
  15974. return awsutil.Prettify(s)
  15975. }
  15976. // GoString returns the string representation
  15977. func (s RestoreDBInstanceFromDBSnapshotOutput) GoString() string {
  15978. return s.String()
  15979. }
  15980. type RestoreDBInstanceToPointInTimeInput struct {
  15981. _ struct{} `type:"structure"`
  15982. // Indicates that minor version upgrades will be applied automatically to the
  15983. // DB instance during the maintenance window.
  15984. AutoMinorVersionUpgrade *bool `type:"boolean"`
  15985. // The EC2 Availability Zone that the database instance will be created in.
  15986. //
  15987. // Default: A random, system-chosen Availability Zone.
  15988. //
  15989. // Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ
  15990. // parameter is set to true.
  15991. //
  15992. // Example: us-east-1a
  15993. AvailabilityZone *string `type:"string"`
  15994. // True to copy all tags from the restored DB instance to snapshots of the DB
  15995. // instance; otherwise false. The default is false.
  15996. CopyTagsToSnapshot *bool `type:"boolean"`
  15997. // The compute and memory capacity of the Amazon RDS DB instance.
  15998. //
  15999. // Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge
  16000. // | db.m2.2xlarge | db.m2.4xlarge | db.m3.medium | db.m3.large | db.m3.xlarge
  16001. // | db.m3.2xlarge | db.m4.large | db.m4.xlarge | db.m4.2xlarge | db.m4.4xlarge
  16002. // | db.m4.10xlarge | db.r3.large | db.r3.xlarge | db.r3.2xlarge | db.r3.4xlarge
  16003. // | db.r3.8xlarge | db.t2.micro | db.t2.small | db.t2.medium | db.t2.large
  16004. //
  16005. // Default: The same DBInstanceClass as the original DB instance.
  16006. DBInstanceClass *string `type:"string"`
  16007. // The database name for the restored DB instance.
  16008. //
  16009. // This parameter is not used for the MySQL or MariaDB engines.
  16010. DBName *string `type:"string"`
  16011. // The DB subnet group name to use for the new instance.
  16012. //
  16013. // Constraints: Must contain no more than 255 alphanumeric characters, periods,
  16014. // underscores, spaces, or hyphens. Must not be default.
  16015. //
  16016. // Example: mySubnetgroup
  16017. DBSubnetGroupName *string `type:"string"`
  16018. // Specify the Active Directory Domain to restore the instance in.
  16019. Domain *string `type:"string"`
  16020. // Specify the name of the IAM role to be used when making API calls to the
  16021. // Directory Service.
  16022. DomainIAMRoleName *string `type:"string"`
  16023. // The database engine to use for the new instance.
  16024. //
  16025. // Default: The same as source
  16026. //
  16027. // Constraint: Must be compatible with the engine of the source
  16028. //
  16029. // Valid Values: MySQL | mariadb | oracle-se1 | oracle-se | oracle-ee | sqlserver-ee
  16030. // | sqlserver-se | sqlserver-ex | sqlserver-web | postgres | aurora
  16031. Engine *string `type:"string"`
  16032. // The amount of Provisioned IOPS (input/output operations per second) to be
  16033. // initially allocated for the DB instance.
  16034. //
  16035. // Constraints: Must be an integer greater than 1000.
  16036. //
  16037. // SQL Server
  16038. //
  16039. // Setting the IOPS value for the SQL Server database engine is not supported.
  16040. Iops *int64 `type:"integer"`
  16041. // License model information for the restored DB instance.
  16042. //
  16043. // Default: Same as source.
  16044. //
  16045. // Valid values: license-included | bring-your-own-license | general-public-license
  16046. LicenseModel *string `type:"string"`
  16047. // Specifies if the DB instance is a Multi-AZ deployment.
  16048. //
  16049. // Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ
  16050. // parameter is set to true.
  16051. MultiAZ *bool `type:"boolean"`
  16052. // The name of the option group to be used for the restored DB instance.
  16053. //
  16054. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  16055. // cannot be removed from an option group, and that option group cannot be removed
  16056. // from a DB instance once it is associated with a DB instance
  16057. OptionGroupName *string `type:"string"`
  16058. // The port number on which the database accepts connections.
  16059. //
  16060. // Constraints: Value must be 1150-65535
  16061. //
  16062. // Default: The same port as the original DB instance.
  16063. Port *int64 `type:"integer"`
  16064. // Specifies the accessibility options for the DB instance. A value of true
  16065. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  16066. // which resolves to a public IP address. A value of false specifies an internal
  16067. // instance with a DNS name that resolves to a private IP address.
  16068. //
  16069. // Default: The default behavior varies depending on whether a VPC has been
  16070. // requested or not. The following list shows the default behavior in each case.
  16071. //
  16072. // * Default VPC:true
  16073. //
  16074. // * VPC:false
  16075. //
  16076. // If no DB subnet group has been specified as part of the request and the PubliclyAccessible
  16077. // value has not been set, the DB instance will be publicly accessible. If a
  16078. // specific DB subnet group has been specified as part of the request and the
  16079. // PubliclyAccessible value has not been set, the DB instance will be private.
  16080. PubliclyAccessible *bool `type:"boolean"`
  16081. // The date and time to restore from.
  16082. //
  16083. // Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
  16084. //
  16085. // Constraints:
  16086. //
  16087. // * Must be before the latest restorable time for the DB instance
  16088. //
  16089. // * Cannot be specified if UseLatestRestorableTime parameter is true
  16090. //
  16091. // Example: 2009-09-07T23:45:00Z
  16092. RestoreTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  16093. // The identifier of the source DB instance from which to restore.
  16094. //
  16095. // Constraints:
  16096. //
  16097. // * Must be the identifier of an existing database instance
  16098. //
  16099. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  16100. //
  16101. // * First character must be a letter
  16102. //
  16103. // * Cannot end with a hyphen or contain two consecutive hyphens
  16104. //
  16105. // SourceDBInstanceIdentifier is a required field
  16106. SourceDBInstanceIdentifier *string `type:"string" required:"true"`
  16107. // Specifies the storage type to be associated with the DB instance.
  16108. //
  16109. // Valid values: standard | gp2 | io1
  16110. //
  16111. // If you specify io1, you must also include a value for the Iops parameter.
  16112. //
  16113. // Default: io1 if the Iops parameter is specified; otherwise standard
  16114. StorageType *string `type:"string"`
  16115. // A list of tags.
  16116. Tags []*Tag `locationNameList:"Tag" type:"list"`
  16117. // The name of the new database instance to be created.
  16118. //
  16119. // Constraints:
  16120. //
  16121. // * Must contain from 1 to 63 alphanumeric characters or hyphens
  16122. //
  16123. // * First character must be a letter
  16124. //
  16125. // * Cannot end with a hyphen or contain two consecutive hyphens
  16126. //
  16127. // TargetDBInstanceIdentifier is a required field
  16128. TargetDBInstanceIdentifier *string `type:"string" required:"true"`
  16129. // The ARN from the Key Store with which to associate the instance for TDE encryption.
  16130. TdeCredentialArn *string `type:"string"`
  16131. // The password for the given ARN from the Key Store in order to access the
  16132. // device.
  16133. TdeCredentialPassword *string `type:"string"`
  16134. // Specifies whether (true) or not (false) the DB instance is restored from
  16135. // the latest backup time.
  16136. //
  16137. // Default: false
  16138. //
  16139. // Constraints: Cannot be specified if RestoreTime parameter is provided.
  16140. UseLatestRestorableTime *bool `type:"boolean"`
  16141. }
  16142. // String returns the string representation
  16143. func (s RestoreDBInstanceToPointInTimeInput) String() string {
  16144. return awsutil.Prettify(s)
  16145. }
  16146. // GoString returns the string representation
  16147. func (s RestoreDBInstanceToPointInTimeInput) GoString() string {
  16148. return s.String()
  16149. }
  16150. // Validate inspects the fields of the type to determine if they are valid.
  16151. func (s *RestoreDBInstanceToPointInTimeInput) Validate() error {
  16152. invalidParams := request.ErrInvalidParams{Context: "RestoreDBInstanceToPointInTimeInput"}
  16153. if s.SourceDBInstanceIdentifier == nil {
  16154. invalidParams.Add(request.NewErrParamRequired("SourceDBInstanceIdentifier"))
  16155. }
  16156. if s.TargetDBInstanceIdentifier == nil {
  16157. invalidParams.Add(request.NewErrParamRequired("TargetDBInstanceIdentifier"))
  16158. }
  16159. if invalidParams.Len() > 0 {
  16160. return invalidParams
  16161. }
  16162. return nil
  16163. }
  16164. type RestoreDBInstanceToPointInTimeOutput struct {
  16165. _ struct{} `type:"structure"`
  16166. // Contains the result of a successful invocation of the following actions:
  16167. //
  16168. // * CreateDBInstance
  16169. //
  16170. // * DeleteDBInstance
  16171. //
  16172. // * ModifyDBInstance
  16173. //
  16174. // This data type is used as a response element in the DescribeDBInstances action.
  16175. DBInstance *DBInstance `type:"structure"`
  16176. }
  16177. // String returns the string representation
  16178. func (s RestoreDBInstanceToPointInTimeOutput) String() string {
  16179. return awsutil.Prettify(s)
  16180. }
  16181. // GoString returns the string representation
  16182. func (s RestoreDBInstanceToPointInTimeOutput) GoString() string {
  16183. return s.String()
  16184. }
  16185. type RevokeDBSecurityGroupIngressInput struct {
  16186. _ struct{} `type:"structure"`
  16187. // The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP
  16188. // is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId
  16189. // cannot be provided.
  16190. CIDRIP *string `type:"string"`
  16191. // The name of the DB security group to revoke ingress from.
  16192. //
  16193. // DBSecurityGroupName is a required field
  16194. DBSecurityGroupName *string `type:"string" required:"true"`
  16195. // The id of the EC2 security group to revoke access from. For VPC DB security
  16196. // groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId
  16197. // and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
  16198. EC2SecurityGroupId *string `type:"string"`
  16199. // The name of the EC2 security group to revoke access from. For VPC DB security
  16200. // groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId
  16201. // and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
  16202. EC2SecurityGroupName *string `type:"string"`
  16203. // The AWS Account Number of the owner of the EC2 security group specified in
  16204. // the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable
  16205. // value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise,
  16206. // EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId
  16207. // must be provided.
  16208. EC2SecurityGroupOwnerId *string `type:"string"`
  16209. }
  16210. // String returns the string representation
  16211. func (s RevokeDBSecurityGroupIngressInput) String() string {
  16212. return awsutil.Prettify(s)
  16213. }
  16214. // GoString returns the string representation
  16215. func (s RevokeDBSecurityGroupIngressInput) GoString() string {
  16216. return s.String()
  16217. }
  16218. // Validate inspects the fields of the type to determine if they are valid.
  16219. func (s *RevokeDBSecurityGroupIngressInput) Validate() error {
  16220. invalidParams := request.ErrInvalidParams{Context: "RevokeDBSecurityGroupIngressInput"}
  16221. if s.DBSecurityGroupName == nil {
  16222. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName"))
  16223. }
  16224. if invalidParams.Len() > 0 {
  16225. return invalidParams
  16226. }
  16227. return nil
  16228. }
  16229. type RevokeDBSecurityGroupIngressOutput struct {
  16230. _ struct{} `type:"structure"`
  16231. // Contains the result of a successful invocation of the following actions:
  16232. //
  16233. // * DescribeDBSecurityGroups
  16234. //
  16235. // * AuthorizeDBSecurityGroupIngress
  16236. //
  16237. // * CreateDBSecurityGroup
  16238. //
  16239. // * RevokeDBSecurityGroupIngress
  16240. //
  16241. // This data type is used as a response element in the DescribeDBSecurityGroups
  16242. // action.
  16243. DBSecurityGroup *DBSecurityGroup `type:"structure"`
  16244. }
  16245. // String returns the string representation
  16246. func (s RevokeDBSecurityGroupIngressOutput) String() string {
  16247. return awsutil.Prettify(s)
  16248. }
  16249. // GoString returns the string representation
  16250. func (s RevokeDBSecurityGroupIngressOutput) GoString() string {
  16251. return s.String()
  16252. }
  16253. // Contains an AWS Region name as the result of a successful call to the DescribeSourceRegions
  16254. // action.
  16255. type SourceRegion struct {
  16256. _ struct{} `type:"structure"`
  16257. // The source region endpoint.
  16258. Endpoint *string `type:"string"`
  16259. // The source region name.
  16260. RegionName *string `type:"string"`
  16261. // The status of the source region.
  16262. Status *string `type:"string"`
  16263. }
  16264. // String returns the string representation
  16265. func (s SourceRegion) String() string {
  16266. return awsutil.Prettify(s)
  16267. }
  16268. // GoString returns the string representation
  16269. func (s SourceRegion) GoString() string {
  16270. return s.String()
  16271. }
  16272. // This data type is used as a response element in the DescribeDBSubnetGroups
  16273. // action.
  16274. type Subnet struct {
  16275. _ struct{} `type:"structure"`
  16276. // Contains Availability Zone information.
  16277. //
  16278. // This data type is used as an element in the following data type:
  16279. //
  16280. // * OrderableDBInstanceOption
  16281. SubnetAvailabilityZone *AvailabilityZone `type:"structure"`
  16282. // Specifies the identifier of the subnet.
  16283. SubnetIdentifier *string `type:"string"`
  16284. // Specifies the status of the subnet.
  16285. SubnetStatus *string `type:"string"`
  16286. }
  16287. // String returns the string representation
  16288. func (s Subnet) String() string {
  16289. return awsutil.Prettify(s)
  16290. }
  16291. // GoString returns the string representation
  16292. func (s Subnet) GoString() string {
  16293. return s.String()
  16294. }
  16295. // Metadata assigned to an Amazon RDS resource consisting of a key-value pair.
  16296. type Tag struct {
  16297. _ struct{} `type:"structure"`
  16298. // A key is the required name of the tag. The string value can be from 1 to
  16299. // 128 Unicode characters in length and cannot be prefixed with "aws:" or "rds:".
  16300. // The string can only contain only the set of Unicode letters, digits, white-space,
  16301. // '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
  16302. Key *string `type:"string"`
  16303. // A value is the optional value of the tag. The string value can be from 1
  16304. // to 256 Unicode characters in length and cannot be prefixed with "aws:" or
  16305. // "rds:". The string can only contain only the set of Unicode letters, digits,
  16306. // white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
  16307. Value *string `type:"string"`
  16308. }
  16309. // String returns the string representation
  16310. func (s Tag) String() string {
  16311. return awsutil.Prettify(s)
  16312. }
  16313. // GoString returns the string representation
  16314. func (s Tag) GoString() string {
  16315. return s.String()
  16316. }
  16317. // A time zone associated with a DBInstance or a DBSnapshot. This data type
  16318. // is an element in the response to the DescribeDBInstances, the DescribeDBSnapshots,
  16319. // and the DescribeDBEngineVersions actions.
  16320. type Timezone struct {
  16321. _ struct{} `type:"structure"`
  16322. // The name of the time zone.
  16323. TimezoneName *string `type:"string"`
  16324. }
  16325. // String returns the string representation
  16326. func (s Timezone) String() string {
  16327. return awsutil.Prettify(s)
  16328. }
  16329. // GoString returns the string representation
  16330. func (s Timezone) GoString() string {
  16331. return s.String()
  16332. }
  16333. // The version of the database engine that a DB instance can be upgraded to.
  16334. type UpgradeTarget struct {
  16335. _ struct{} `type:"structure"`
  16336. // A value that indicates whether the target version will be applied to any
  16337. // source DB instances that have AutoMinorVersionUpgrade set to true.
  16338. AutoUpgrade *bool `type:"boolean"`
  16339. // The version of the database engine that a DB instance can be upgraded to.
  16340. Description *string `type:"string"`
  16341. // The name of the upgrade target database engine.
  16342. Engine *string `type:"string"`
  16343. // The version number of the upgrade target database engine.
  16344. EngineVersion *string `type:"string"`
  16345. // A value that indicates whether a database engine will be upgraded to a major
  16346. // version.
  16347. IsMajorVersionUpgrade *bool `type:"boolean"`
  16348. }
  16349. // String returns the string representation
  16350. func (s UpgradeTarget) String() string {
  16351. return awsutil.Prettify(s)
  16352. }
  16353. // GoString returns the string representation
  16354. func (s UpgradeTarget) GoString() string {
  16355. return s.String()
  16356. }
  16357. // This data type is used as a response element for queries on VPC security
  16358. // group membership.
  16359. type VpcSecurityGroupMembership struct {
  16360. _ struct{} `type:"structure"`
  16361. // The status of the VPC security group.
  16362. Status *string `type:"string"`
  16363. // The name of the VPC security group.
  16364. VpcSecurityGroupId *string `type:"string"`
  16365. }
  16366. // String returns the string representation
  16367. func (s VpcSecurityGroupMembership) String() string {
  16368. return awsutil.Prettify(s)
  16369. }
  16370. // GoString returns the string representation
  16371. func (s VpcSecurityGroupMembership) GoString() string {
  16372. return s.String()
  16373. }
  16374. const (
  16375. // ApplyMethodImmediate is a ApplyMethod enum value
  16376. ApplyMethodImmediate = "immediate"
  16377. // ApplyMethodPendingReboot is a ApplyMethod enum value
  16378. ApplyMethodPendingReboot = "pending-reboot"
  16379. )
  16380. const (
  16381. // SourceTypeDbInstance is a SourceType enum value
  16382. SourceTypeDbInstance = "db-instance"
  16383. // SourceTypeDbParameterGroup is a SourceType enum value
  16384. SourceTypeDbParameterGroup = "db-parameter-group"
  16385. // SourceTypeDbSecurityGroup is a SourceType enum value
  16386. SourceTypeDbSecurityGroup = "db-security-group"
  16387. // SourceTypeDbSnapshot is a SourceType enum value
  16388. SourceTypeDbSnapshot = "db-snapshot"
  16389. // SourceTypeDbCluster is a SourceType enum value
  16390. SourceTypeDbCluster = "db-cluster"
  16391. // SourceTypeDbClusterSnapshot is a SourceType enum value
  16392. SourceTypeDbClusterSnapshot = "db-cluster-snapshot"
  16393. )