api.go 1.2 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package rds
  3. import (
  4. "fmt"
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws"
  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 will be populated with the request's response once the request completes
  16. // successfully.
  17. //
  18. // Use "Send" method on the returned Request to send the API call to the service.
  19. // the "output" return value is not valid until after Send returns without error.
  20. //
  21. // See AddRoleToDBCluster for more information on using the AddRoleToDBCluster
  22. // API call, and error handling.
  23. //
  24. // This method is useful when you want to inject custom logic or configuration
  25. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  26. //
  27. //
  28. // // Example sending a request using the AddRoleToDBClusterRequest method.
  29. // req, resp := client.AddRoleToDBClusterRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddRoleToDBCluster
  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. output = &AddRoleToDBClusterOutput{}
  47. req = c.newRequest(op, input, output)
  48. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  49. return
  50. }
  51. // AddRoleToDBCluster API operation for Amazon Relational Database Service.
  52. //
  53. // Associates an Identity and Access Management (IAM) role from an Aurora DB
  54. // cluster. For more information, see Authorizing Amazon Aurora MySQL to Access
  55. // Other AWS Services on Your Behalf (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Integrating.Authorizing.html)
  56. // in the Amazon Aurora User Guide.
  57. //
  58. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  59. // with awserr.Error's Code and Message methods to get detailed information about
  60. // the error.
  61. //
  62. // See the AWS API reference guide for Amazon Relational Database Service's
  63. // API operation AddRoleToDBCluster for usage and error information.
  64. //
  65. // Returned Error Codes:
  66. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  67. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  68. //
  69. // * ErrCodeDBClusterRoleAlreadyExistsFault "DBClusterRoleAlreadyExists"
  70. // The specified IAM role Amazon Resource Name (ARN) is already associated with
  71. // the specified DB cluster.
  72. //
  73. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  74. // The requested operation can't be performed while the cluster is in this state.
  75. //
  76. // * ErrCodeDBClusterRoleQuotaExceededFault "DBClusterRoleQuotaExceeded"
  77. // You have exceeded the maximum number of IAM roles that can be associated
  78. // with the specified DB cluster.
  79. //
  80. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddRoleToDBCluster
  81. func (c *RDS) AddRoleToDBCluster(input *AddRoleToDBClusterInput) (*AddRoleToDBClusterOutput, error) {
  82. req, out := c.AddRoleToDBClusterRequest(input)
  83. return out, req.Send()
  84. }
  85. // AddRoleToDBClusterWithContext is the same as AddRoleToDBCluster with the addition of
  86. // the ability to pass a context and additional request options.
  87. //
  88. // See AddRoleToDBCluster for details on how to use this API operation.
  89. //
  90. // The context must be non-nil and will be used for request cancellation. If
  91. // the context is nil a panic will occur. In the future the SDK may create
  92. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  93. // for more information on using Contexts.
  94. func (c *RDS) AddRoleToDBClusterWithContext(ctx aws.Context, input *AddRoleToDBClusterInput, opts ...request.Option) (*AddRoleToDBClusterOutput, error) {
  95. req, out := c.AddRoleToDBClusterRequest(input)
  96. req.SetContext(ctx)
  97. req.ApplyOptions(opts...)
  98. return out, req.Send()
  99. }
  100. const opAddSourceIdentifierToSubscription = "AddSourceIdentifierToSubscription"
  101. // AddSourceIdentifierToSubscriptionRequest generates a "aws/request.Request" representing the
  102. // client's request for the AddSourceIdentifierToSubscription operation. The "output" return
  103. // value will be populated with the request's response once the request completes
  104. // successfully.
  105. //
  106. // Use "Send" method on the returned Request to send the API call to the service.
  107. // the "output" return value is not valid until after Send returns without error.
  108. //
  109. // See AddSourceIdentifierToSubscription for more information on using the AddSourceIdentifierToSubscription
  110. // API call, and error handling.
  111. //
  112. // This method is useful when you want to inject custom logic or configuration
  113. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  114. //
  115. //
  116. // // Example sending a request using the AddSourceIdentifierToSubscriptionRequest method.
  117. // req, resp := client.AddSourceIdentifierToSubscriptionRequest(params)
  118. //
  119. // err := req.Send()
  120. // if err == nil { // resp is now filled
  121. // fmt.Println(resp)
  122. // }
  123. //
  124. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddSourceIdentifierToSubscription
  125. func (c *RDS) AddSourceIdentifierToSubscriptionRequest(input *AddSourceIdentifierToSubscriptionInput) (req *request.Request, output *AddSourceIdentifierToSubscriptionOutput) {
  126. op := &request.Operation{
  127. Name: opAddSourceIdentifierToSubscription,
  128. HTTPMethod: "POST",
  129. HTTPPath: "/",
  130. }
  131. if input == nil {
  132. input = &AddSourceIdentifierToSubscriptionInput{}
  133. }
  134. output = &AddSourceIdentifierToSubscriptionOutput{}
  135. req = c.newRequest(op, input, output)
  136. return
  137. }
  138. // AddSourceIdentifierToSubscription API operation for Amazon Relational Database Service.
  139. //
  140. // Adds a source identifier to an existing RDS event notification subscription.
  141. //
  142. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  143. // with awserr.Error's Code and Message methods to get detailed information about
  144. // the error.
  145. //
  146. // See the AWS API reference guide for Amazon Relational Database Service's
  147. // API operation AddSourceIdentifierToSubscription for usage and error information.
  148. //
  149. // Returned Error Codes:
  150. // * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound"
  151. // The subscription name does not exist.
  152. //
  153. // * ErrCodeSourceNotFoundFault "SourceNotFound"
  154. // The requested source could not be found.
  155. //
  156. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddSourceIdentifierToSubscription
  157. func (c *RDS) AddSourceIdentifierToSubscription(input *AddSourceIdentifierToSubscriptionInput) (*AddSourceIdentifierToSubscriptionOutput, error) {
  158. req, out := c.AddSourceIdentifierToSubscriptionRequest(input)
  159. return out, req.Send()
  160. }
  161. // AddSourceIdentifierToSubscriptionWithContext is the same as AddSourceIdentifierToSubscription with the addition of
  162. // the ability to pass a context and additional request options.
  163. //
  164. // See AddSourceIdentifierToSubscription for details on how to use this API operation.
  165. //
  166. // The context must be non-nil and will be used for request cancellation. If
  167. // the context is nil a panic will occur. In the future the SDK may create
  168. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  169. // for more information on using Contexts.
  170. func (c *RDS) AddSourceIdentifierToSubscriptionWithContext(ctx aws.Context, input *AddSourceIdentifierToSubscriptionInput, opts ...request.Option) (*AddSourceIdentifierToSubscriptionOutput, error) {
  171. req, out := c.AddSourceIdentifierToSubscriptionRequest(input)
  172. req.SetContext(ctx)
  173. req.ApplyOptions(opts...)
  174. return out, req.Send()
  175. }
  176. const opAddTagsToResource = "AddTagsToResource"
  177. // AddTagsToResourceRequest generates a "aws/request.Request" representing the
  178. // client's request for the AddTagsToResource operation. The "output" return
  179. // value will be populated with the request's response once the request completes
  180. // successfully.
  181. //
  182. // Use "Send" method on the returned Request to send the API call to the service.
  183. // the "output" return value is not valid until after Send returns without error.
  184. //
  185. // See AddTagsToResource for more information on using the AddTagsToResource
  186. // API call, and error handling.
  187. //
  188. // This method is useful when you want to inject custom logic or configuration
  189. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  190. //
  191. //
  192. // // Example sending a request using the AddTagsToResourceRequest method.
  193. // req, resp := client.AddTagsToResourceRequest(params)
  194. //
  195. // err := req.Send()
  196. // if err == nil { // resp is now filled
  197. // fmt.Println(resp)
  198. // }
  199. //
  200. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddTagsToResource
  201. func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) {
  202. op := &request.Operation{
  203. Name: opAddTagsToResource,
  204. HTTPMethod: "POST",
  205. HTTPPath: "/",
  206. }
  207. if input == nil {
  208. input = &AddTagsToResourceInput{}
  209. }
  210. output = &AddTagsToResourceOutput{}
  211. req = c.newRequest(op, input, output)
  212. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  213. return
  214. }
  215. // AddTagsToResource API operation for Amazon Relational Database Service.
  216. //
  217. // Adds metadata tags to an Amazon RDS resource. These tags can also be used
  218. // with cost allocation reporting to track cost associated with Amazon RDS resources,
  219. // or used in a Condition statement in an IAM policy for Amazon RDS.
  220. //
  221. // For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS Resources
  222. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html).
  223. //
  224. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  225. // with awserr.Error's Code and Message methods to get detailed information about
  226. // the error.
  227. //
  228. // See the AWS API reference guide for Amazon Relational Database Service's
  229. // API operation AddTagsToResource for usage and error information.
  230. //
  231. // Returned Error Codes:
  232. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  233. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  234. //
  235. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  236. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  237. //
  238. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  239. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  240. //
  241. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AddTagsToResource
  242. func (c *RDS) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
  243. req, out := c.AddTagsToResourceRequest(input)
  244. return out, req.Send()
  245. }
  246. // AddTagsToResourceWithContext is the same as AddTagsToResource with the addition of
  247. // the ability to pass a context and additional request options.
  248. //
  249. // See AddTagsToResource for details on how to use this API operation.
  250. //
  251. // The context must be non-nil and will be used for request cancellation. If
  252. // the context is nil a panic will occur. In the future the SDK may create
  253. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  254. // for more information on using Contexts.
  255. func (c *RDS) AddTagsToResourceWithContext(ctx aws.Context, input *AddTagsToResourceInput, opts ...request.Option) (*AddTagsToResourceOutput, error) {
  256. req, out := c.AddTagsToResourceRequest(input)
  257. req.SetContext(ctx)
  258. req.ApplyOptions(opts...)
  259. return out, req.Send()
  260. }
  261. const opApplyPendingMaintenanceAction = "ApplyPendingMaintenanceAction"
  262. // ApplyPendingMaintenanceActionRequest generates a "aws/request.Request" representing the
  263. // client's request for the ApplyPendingMaintenanceAction operation. The "output" return
  264. // value will be populated with the request's response once the request completes
  265. // successfully.
  266. //
  267. // Use "Send" method on the returned Request to send the API call to the service.
  268. // the "output" return value is not valid until after Send returns without error.
  269. //
  270. // See ApplyPendingMaintenanceAction for more information on using the ApplyPendingMaintenanceAction
  271. // API call, and error handling.
  272. //
  273. // This method is useful when you want to inject custom logic or configuration
  274. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  275. //
  276. //
  277. // // Example sending a request using the ApplyPendingMaintenanceActionRequest method.
  278. // req, resp := client.ApplyPendingMaintenanceActionRequest(params)
  279. //
  280. // err := req.Send()
  281. // if err == nil { // resp is now filled
  282. // fmt.Println(resp)
  283. // }
  284. //
  285. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ApplyPendingMaintenanceAction
  286. func (c *RDS) ApplyPendingMaintenanceActionRequest(input *ApplyPendingMaintenanceActionInput) (req *request.Request, output *ApplyPendingMaintenanceActionOutput) {
  287. op := &request.Operation{
  288. Name: opApplyPendingMaintenanceAction,
  289. HTTPMethod: "POST",
  290. HTTPPath: "/",
  291. }
  292. if input == nil {
  293. input = &ApplyPendingMaintenanceActionInput{}
  294. }
  295. output = &ApplyPendingMaintenanceActionOutput{}
  296. req = c.newRequest(op, input, output)
  297. return
  298. }
  299. // ApplyPendingMaintenanceAction API operation for Amazon Relational Database Service.
  300. //
  301. // Applies a pending maintenance action to a resource (for example, to a DB
  302. // instance).
  303. //
  304. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  305. // with awserr.Error's Code and Message methods to get detailed information about
  306. // the error.
  307. //
  308. // See the AWS API reference guide for Amazon Relational Database Service's
  309. // API operation ApplyPendingMaintenanceAction for usage and error information.
  310. //
  311. // Returned Error Codes:
  312. // * ErrCodeResourceNotFoundFault "ResourceNotFoundFault"
  313. // The specified resource ID was not found.
  314. //
  315. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  316. // The requested operation can't be performed while the cluster is in this state.
  317. //
  318. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  319. // The DB instance isn't in a valid state.
  320. //
  321. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ApplyPendingMaintenanceAction
  322. func (c *RDS) ApplyPendingMaintenanceAction(input *ApplyPendingMaintenanceActionInput) (*ApplyPendingMaintenanceActionOutput, error) {
  323. req, out := c.ApplyPendingMaintenanceActionRequest(input)
  324. return out, req.Send()
  325. }
  326. // ApplyPendingMaintenanceActionWithContext is the same as ApplyPendingMaintenanceAction with the addition of
  327. // the ability to pass a context and additional request options.
  328. //
  329. // See ApplyPendingMaintenanceAction for details on how to use this API operation.
  330. //
  331. // The context must be non-nil and will be used for request cancellation. If
  332. // the context is nil a panic will occur. In the future the SDK may create
  333. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  334. // for more information on using Contexts.
  335. func (c *RDS) ApplyPendingMaintenanceActionWithContext(ctx aws.Context, input *ApplyPendingMaintenanceActionInput, opts ...request.Option) (*ApplyPendingMaintenanceActionOutput, error) {
  336. req, out := c.ApplyPendingMaintenanceActionRequest(input)
  337. req.SetContext(ctx)
  338. req.ApplyOptions(opts...)
  339. return out, req.Send()
  340. }
  341. const opAuthorizeDBSecurityGroupIngress = "AuthorizeDBSecurityGroupIngress"
  342. // AuthorizeDBSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  343. // client's request for the AuthorizeDBSecurityGroupIngress operation. The "output" return
  344. // value will be populated with the request's response once the request completes
  345. // successfully.
  346. //
  347. // Use "Send" method on the returned Request to send the API call to the service.
  348. // the "output" return value is not valid until after Send returns without error.
  349. //
  350. // See AuthorizeDBSecurityGroupIngress for more information on using the AuthorizeDBSecurityGroupIngress
  351. // API call, and error handling.
  352. //
  353. // This method is useful when you want to inject custom logic or configuration
  354. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  355. //
  356. //
  357. // // Example sending a request using the AuthorizeDBSecurityGroupIngressRequest method.
  358. // req, resp := client.AuthorizeDBSecurityGroupIngressRequest(params)
  359. //
  360. // err := req.Send()
  361. // if err == nil { // resp is now filled
  362. // fmt.Println(resp)
  363. // }
  364. //
  365. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AuthorizeDBSecurityGroupIngress
  366. func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityGroupIngressInput) (req *request.Request, output *AuthorizeDBSecurityGroupIngressOutput) {
  367. op := &request.Operation{
  368. Name: opAuthorizeDBSecurityGroupIngress,
  369. HTTPMethod: "POST",
  370. HTTPPath: "/",
  371. }
  372. if input == nil {
  373. input = &AuthorizeDBSecurityGroupIngressInput{}
  374. }
  375. output = &AuthorizeDBSecurityGroupIngressOutput{}
  376. req = c.newRequest(op, input, output)
  377. return
  378. }
  379. // AuthorizeDBSecurityGroupIngress API operation for Amazon Relational Database Service.
  380. //
  381. // Enables ingress to a DBSecurityGroup using one of two forms of authorization.
  382. // First, EC2 or VPC security groups can be added to the DBSecurityGroup if
  383. // the application using the database is running on EC2 or VPC instances. Second,
  384. // IP ranges are available if the application accessing your database is running
  385. // on the Internet. Required parameters for this API are one of CIDR range,
  386. // EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName
  387. // or EC2SecurityGroupId for non-VPC).
  388. //
  389. // You can't authorize ingress from an EC2 security group in one AWS Region
  390. // to an Amazon RDS DB instance in another. You can't authorize ingress from
  391. // a VPC security group in one VPC to an Amazon RDS DB instance in another.
  392. //
  393. // For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing).
  394. //
  395. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  396. // with awserr.Error's Code and Message methods to get detailed information about
  397. // the error.
  398. //
  399. // See the AWS API reference guide for Amazon Relational Database Service's
  400. // API operation AuthorizeDBSecurityGroupIngress for usage and error information.
  401. //
  402. // Returned Error Codes:
  403. // * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound"
  404. // DBSecurityGroupName doesn't refer to an existing DB security group.
  405. //
  406. // * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState"
  407. // The state of the DB security group doesn't allow deletion.
  408. //
  409. // * ErrCodeAuthorizationAlreadyExistsFault "AuthorizationAlreadyExists"
  410. // The specified CIDRIP or Amazon EC2 security group is already authorized for
  411. // the specified DB security group.
  412. //
  413. // * ErrCodeAuthorizationQuotaExceededFault "AuthorizationQuotaExceeded"
  414. // The DB security group authorization quota has been reached.
  415. //
  416. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/AuthorizeDBSecurityGroupIngress
  417. func (c *RDS) AuthorizeDBSecurityGroupIngress(input *AuthorizeDBSecurityGroupIngressInput) (*AuthorizeDBSecurityGroupIngressOutput, error) {
  418. req, out := c.AuthorizeDBSecurityGroupIngressRequest(input)
  419. return out, req.Send()
  420. }
  421. // AuthorizeDBSecurityGroupIngressWithContext is the same as AuthorizeDBSecurityGroupIngress with the addition of
  422. // the ability to pass a context and additional request options.
  423. //
  424. // See AuthorizeDBSecurityGroupIngress for details on how to use this API operation.
  425. //
  426. // The context must be non-nil and will be used for request cancellation. If
  427. // the context is nil a panic will occur. In the future the SDK may create
  428. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  429. // for more information on using Contexts.
  430. func (c *RDS) AuthorizeDBSecurityGroupIngressWithContext(ctx aws.Context, input *AuthorizeDBSecurityGroupIngressInput, opts ...request.Option) (*AuthorizeDBSecurityGroupIngressOutput, error) {
  431. req, out := c.AuthorizeDBSecurityGroupIngressRequest(input)
  432. req.SetContext(ctx)
  433. req.ApplyOptions(opts...)
  434. return out, req.Send()
  435. }
  436. const opBacktrackDBCluster = "BacktrackDBCluster"
  437. // BacktrackDBClusterRequest generates a "aws/request.Request" representing the
  438. // client's request for the BacktrackDBCluster operation. The "output" return
  439. // value will be populated with the request's response once the request completes
  440. // successfully.
  441. //
  442. // Use "Send" method on the returned Request to send the API call to the service.
  443. // the "output" return value is not valid until after Send returns without error.
  444. //
  445. // See BacktrackDBCluster for more information on using the BacktrackDBCluster
  446. // API call, and error handling.
  447. //
  448. // This method is useful when you want to inject custom logic or configuration
  449. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  450. //
  451. //
  452. // // Example sending a request using the BacktrackDBClusterRequest method.
  453. // req, resp := client.BacktrackDBClusterRequest(params)
  454. //
  455. // err := req.Send()
  456. // if err == nil { // resp is now filled
  457. // fmt.Println(resp)
  458. // }
  459. //
  460. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/BacktrackDBCluster
  461. func (c *RDS) BacktrackDBClusterRequest(input *BacktrackDBClusterInput) (req *request.Request, output *BacktrackDBClusterOutput) {
  462. op := &request.Operation{
  463. Name: opBacktrackDBCluster,
  464. HTTPMethod: "POST",
  465. HTTPPath: "/",
  466. }
  467. if input == nil {
  468. input = &BacktrackDBClusterInput{}
  469. }
  470. output = &BacktrackDBClusterOutput{}
  471. req = c.newRequest(op, input, output)
  472. return
  473. }
  474. // BacktrackDBCluster API operation for Amazon Relational Database Service.
  475. //
  476. // Backtracks a DB cluster to a specific time, without creating a new DB cluster.
  477. //
  478. // For more information on backtracking, see Backtracking an Aurora DB Cluster
  479. // (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Managing.Backtrack.html)
  480. // in the Amazon Aurora User Guide.
  481. //
  482. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  483. // with awserr.Error's Code and Message methods to get detailed information about
  484. // the error.
  485. //
  486. // See the AWS API reference guide for Amazon Relational Database Service's
  487. // API operation BacktrackDBCluster for usage and error information.
  488. //
  489. // Returned Error Codes:
  490. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  491. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  492. //
  493. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  494. // The requested operation can't be performed while the cluster is in this state.
  495. //
  496. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/BacktrackDBCluster
  497. func (c *RDS) BacktrackDBCluster(input *BacktrackDBClusterInput) (*BacktrackDBClusterOutput, error) {
  498. req, out := c.BacktrackDBClusterRequest(input)
  499. return out, req.Send()
  500. }
  501. // BacktrackDBClusterWithContext is the same as BacktrackDBCluster with the addition of
  502. // the ability to pass a context and additional request options.
  503. //
  504. // See BacktrackDBCluster for details on how to use this API operation.
  505. //
  506. // The context must be non-nil and will be used for request cancellation. If
  507. // the context is nil a panic will occur. In the future the SDK may create
  508. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  509. // for more information on using Contexts.
  510. func (c *RDS) BacktrackDBClusterWithContext(ctx aws.Context, input *BacktrackDBClusterInput, opts ...request.Option) (*BacktrackDBClusterOutput, error) {
  511. req, out := c.BacktrackDBClusterRequest(input)
  512. req.SetContext(ctx)
  513. req.ApplyOptions(opts...)
  514. return out, req.Send()
  515. }
  516. const opCopyDBClusterParameterGroup = "CopyDBClusterParameterGroup"
  517. // CopyDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  518. // client's request for the CopyDBClusterParameterGroup operation. The "output" return
  519. // value will be populated with the request's response once the request completes
  520. // successfully.
  521. //
  522. // Use "Send" method on the returned Request to send the API call to the service.
  523. // the "output" return value is not valid until after Send returns without error.
  524. //
  525. // See CopyDBClusterParameterGroup for more information on using the CopyDBClusterParameterGroup
  526. // API call, and error handling.
  527. //
  528. // This method is useful when you want to inject custom logic or configuration
  529. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  530. //
  531. //
  532. // // Example sending a request using the CopyDBClusterParameterGroupRequest method.
  533. // req, resp := client.CopyDBClusterParameterGroupRequest(params)
  534. //
  535. // err := req.Send()
  536. // if err == nil { // resp is now filled
  537. // fmt.Println(resp)
  538. // }
  539. //
  540. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterParameterGroup
  541. func (c *RDS) CopyDBClusterParameterGroupRequest(input *CopyDBClusterParameterGroupInput) (req *request.Request, output *CopyDBClusterParameterGroupOutput) {
  542. op := &request.Operation{
  543. Name: opCopyDBClusterParameterGroup,
  544. HTTPMethod: "POST",
  545. HTTPPath: "/",
  546. }
  547. if input == nil {
  548. input = &CopyDBClusterParameterGroupInput{}
  549. }
  550. output = &CopyDBClusterParameterGroupOutput{}
  551. req = c.newRequest(op, input, output)
  552. return
  553. }
  554. // CopyDBClusterParameterGroup API operation for Amazon Relational Database Service.
  555. //
  556. // Copies the specified DB cluster parameter group.
  557. //
  558. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  559. // with awserr.Error's Code and Message methods to get detailed information about
  560. // the error.
  561. //
  562. // See the AWS API reference guide for Amazon Relational Database Service's
  563. // API operation CopyDBClusterParameterGroup for usage and error information.
  564. //
  565. // Returned Error Codes:
  566. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  567. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  568. //
  569. // * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded"
  570. // The request would result in the user exceeding the allowed number of DB parameter
  571. // groups.
  572. //
  573. // * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists"
  574. // A DB parameter group with the same name exists.
  575. //
  576. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterParameterGroup
  577. func (c *RDS) CopyDBClusterParameterGroup(input *CopyDBClusterParameterGroupInput) (*CopyDBClusterParameterGroupOutput, error) {
  578. req, out := c.CopyDBClusterParameterGroupRequest(input)
  579. return out, req.Send()
  580. }
  581. // CopyDBClusterParameterGroupWithContext is the same as CopyDBClusterParameterGroup with the addition of
  582. // the ability to pass a context and additional request options.
  583. //
  584. // See CopyDBClusterParameterGroup for details on how to use this API operation.
  585. //
  586. // The context must be non-nil and will be used for request cancellation. If
  587. // the context is nil a panic will occur. In the future the SDK may create
  588. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  589. // for more information on using Contexts.
  590. func (c *RDS) CopyDBClusterParameterGroupWithContext(ctx aws.Context, input *CopyDBClusterParameterGroupInput, opts ...request.Option) (*CopyDBClusterParameterGroupOutput, error) {
  591. req, out := c.CopyDBClusterParameterGroupRequest(input)
  592. req.SetContext(ctx)
  593. req.ApplyOptions(opts...)
  594. return out, req.Send()
  595. }
  596. const opCopyDBClusterSnapshot = "CopyDBClusterSnapshot"
  597. // CopyDBClusterSnapshotRequest generates a "aws/request.Request" representing the
  598. // client's request for the CopyDBClusterSnapshot operation. The "output" return
  599. // value will be populated with the request's response once the request completes
  600. // successfully.
  601. //
  602. // Use "Send" method on the returned Request to send the API call to the service.
  603. // the "output" return value is not valid until after Send returns without error.
  604. //
  605. // See CopyDBClusterSnapshot for more information on using the CopyDBClusterSnapshot
  606. // API call, and error handling.
  607. //
  608. // This method is useful when you want to inject custom logic or configuration
  609. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  610. //
  611. //
  612. // // Example sending a request using the CopyDBClusterSnapshotRequest method.
  613. // req, resp := client.CopyDBClusterSnapshotRequest(params)
  614. //
  615. // err := req.Send()
  616. // if err == nil { // resp is now filled
  617. // fmt.Println(resp)
  618. // }
  619. //
  620. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterSnapshot
  621. func (c *RDS) CopyDBClusterSnapshotRequest(input *CopyDBClusterSnapshotInput) (req *request.Request, output *CopyDBClusterSnapshotOutput) {
  622. op := &request.Operation{
  623. Name: opCopyDBClusterSnapshot,
  624. HTTPMethod: "POST",
  625. HTTPPath: "/",
  626. }
  627. if input == nil {
  628. input = &CopyDBClusterSnapshotInput{}
  629. }
  630. output = &CopyDBClusterSnapshotOutput{}
  631. req = c.newRequest(op, input, output)
  632. return
  633. }
  634. // CopyDBClusterSnapshot API operation for Amazon Relational Database Service.
  635. //
  636. // Copies a snapshot of a DB cluster.
  637. //
  638. // To copy a DB cluster snapshot from a shared manual DB cluster snapshot, SourceDBClusterSnapshotIdentifier
  639. // must be the Amazon Resource Name (ARN) of the shared DB cluster snapshot.
  640. //
  641. // You can copy an encrypted DB cluster snapshot from another AWS Region. In
  642. // that case, the AWS Region where you call the CopyDBClusterSnapshot action
  643. // is the destination AWS Region for the encrypted DB cluster snapshot to be
  644. // copied to. To copy an encrypted DB cluster snapshot from another AWS Region,
  645. // you must provide the following values:
  646. //
  647. // * KmsKeyId - The AWS Key Management System (AWS KMS) key identifier for
  648. // the key to use to encrypt the copy of the DB cluster snapshot in the destination
  649. // AWS Region.
  650. //
  651. // * PreSignedUrl - A URL that contains a Signature Version 4 signed request
  652. // for the CopyDBClusterSnapshot action to be called in the source AWS Region
  653. // where the DB cluster snapshot is copied from. The pre-signed URL must
  654. // be a valid request for the CopyDBClusterSnapshot API action that can be
  655. // executed in the source AWS Region that contains the encrypted DB cluster
  656. // snapshot to be copied.
  657. //
  658. // The pre-signed URL request must contain the following parameter values:
  659. //
  660. // KmsKeyId - The KMS key identifier for the key to use to encrypt the copy
  661. // of the DB cluster snapshot in the destination AWS Region. This is the
  662. // same identifier for both the CopyDBClusterSnapshot action that is called
  663. // in the destination AWS Region, and the action contained in the pre-signed
  664. // URL.
  665. //
  666. // DestinationRegion - The name of the AWS Region that the DB cluster snapshot
  667. // will be created in.
  668. //
  669. // SourceDBClusterSnapshotIdentifier - The DB cluster snapshot identifier for
  670. // the encrypted DB cluster snapshot to be copied. This identifier must be
  671. // in the Amazon Resource Name (ARN) format for the source AWS Region. For
  672. // example, if you are copying an encrypted DB cluster snapshot from the
  673. // us-west-2 AWS Region, then your SourceDBClusterSnapshotIdentifier looks
  674. // like the following example: arn:aws:rds:us-west-2:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20161115.
  675. //
  676. // To learn how to generate a Signature Version 4 signed request, see Authenticating
  677. // Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
  678. // and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
  679. //
  680. // * TargetDBClusterSnapshotIdentifier - The identifier for the new copy
  681. // of the DB cluster snapshot in the destination AWS Region.
  682. //
  683. // * SourceDBClusterSnapshotIdentifier - The DB cluster snapshot identifier
  684. // for the encrypted DB cluster snapshot to be copied. This identifier must
  685. // be in the ARN format for the source AWS Region and is the same value as
  686. // the SourceDBClusterSnapshotIdentifier in the pre-signed URL.
  687. //
  688. // To cancel the copy operation once it is in progress, delete the target DB
  689. // cluster snapshot identified by TargetDBClusterSnapshotIdentifier while that
  690. // DB cluster snapshot is in "copying" status.
  691. //
  692. // For more information on copying encrypted DB cluster snapshots from one AWS
  693. // Region to another, see Copying a Snapshot (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_CopySnapshot.html)
  694. // in the Amazon Aurora User Guide.
  695. //
  696. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  697. // in the Amazon Aurora User Guide.
  698. //
  699. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  700. // with awserr.Error's Code and Message methods to get detailed information about
  701. // the error.
  702. //
  703. // See the AWS API reference guide for Amazon Relational Database Service's
  704. // API operation CopyDBClusterSnapshot for usage and error information.
  705. //
  706. // Returned Error Codes:
  707. // * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault"
  708. // The user already has a DB cluster snapshot with the given identifier.
  709. //
  710. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  711. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  712. //
  713. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  714. // The requested operation can't be performed while the cluster is in this state.
  715. //
  716. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  717. // The supplied value isn't a valid DB cluster snapshot state.
  718. //
  719. // * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded"
  720. // The request would result in the user exceeding the allowed number of DB snapshots.
  721. //
  722. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  723. // An error occurred accessing an AWS KMS key.
  724. //
  725. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBClusterSnapshot
  726. func (c *RDS) CopyDBClusterSnapshot(input *CopyDBClusterSnapshotInput) (*CopyDBClusterSnapshotOutput, error) {
  727. req, out := c.CopyDBClusterSnapshotRequest(input)
  728. return out, req.Send()
  729. }
  730. // CopyDBClusterSnapshotWithContext is the same as CopyDBClusterSnapshot with the addition of
  731. // the ability to pass a context and additional request options.
  732. //
  733. // See CopyDBClusterSnapshot for details on how to use this API operation.
  734. //
  735. // The context must be non-nil and will be used for request cancellation. If
  736. // the context is nil a panic will occur. In the future the SDK may create
  737. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  738. // for more information on using Contexts.
  739. func (c *RDS) CopyDBClusterSnapshotWithContext(ctx aws.Context, input *CopyDBClusterSnapshotInput, opts ...request.Option) (*CopyDBClusterSnapshotOutput, error) {
  740. req, out := c.CopyDBClusterSnapshotRequest(input)
  741. req.SetContext(ctx)
  742. req.ApplyOptions(opts...)
  743. return out, req.Send()
  744. }
  745. const opCopyDBParameterGroup = "CopyDBParameterGroup"
  746. // CopyDBParameterGroupRequest generates a "aws/request.Request" representing the
  747. // client's request for the CopyDBParameterGroup operation. The "output" return
  748. // value will be populated with the request's response once the request completes
  749. // successfully.
  750. //
  751. // Use "Send" method on the returned Request to send the API call to the service.
  752. // the "output" return value is not valid until after Send returns without error.
  753. //
  754. // See CopyDBParameterGroup for more information on using the CopyDBParameterGroup
  755. // API call, and error handling.
  756. //
  757. // This method is useful when you want to inject custom logic or configuration
  758. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  759. //
  760. //
  761. // // Example sending a request using the CopyDBParameterGroupRequest method.
  762. // req, resp := client.CopyDBParameterGroupRequest(params)
  763. //
  764. // err := req.Send()
  765. // if err == nil { // resp is now filled
  766. // fmt.Println(resp)
  767. // }
  768. //
  769. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBParameterGroup
  770. func (c *RDS) CopyDBParameterGroupRequest(input *CopyDBParameterGroupInput) (req *request.Request, output *CopyDBParameterGroupOutput) {
  771. op := &request.Operation{
  772. Name: opCopyDBParameterGroup,
  773. HTTPMethod: "POST",
  774. HTTPPath: "/",
  775. }
  776. if input == nil {
  777. input = &CopyDBParameterGroupInput{}
  778. }
  779. output = &CopyDBParameterGroupOutput{}
  780. req = c.newRequest(op, input, output)
  781. return
  782. }
  783. // CopyDBParameterGroup API operation for Amazon Relational Database Service.
  784. //
  785. // Copies the specified DB parameter group.
  786. //
  787. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  788. // with awserr.Error's Code and Message methods to get detailed information about
  789. // the error.
  790. //
  791. // See the AWS API reference guide for Amazon Relational Database Service's
  792. // API operation CopyDBParameterGroup for usage and error information.
  793. //
  794. // Returned Error Codes:
  795. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  796. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  797. //
  798. // * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists"
  799. // A DB parameter group with the same name exists.
  800. //
  801. // * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded"
  802. // The request would result in the user exceeding the allowed number of DB parameter
  803. // groups.
  804. //
  805. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBParameterGroup
  806. func (c *RDS) CopyDBParameterGroup(input *CopyDBParameterGroupInput) (*CopyDBParameterGroupOutput, error) {
  807. req, out := c.CopyDBParameterGroupRequest(input)
  808. return out, req.Send()
  809. }
  810. // CopyDBParameterGroupWithContext is the same as CopyDBParameterGroup with the addition of
  811. // the ability to pass a context and additional request options.
  812. //
  813. // See CopyDBParameterGroup for details on how to use this API operation.
  814. //
  815. // The context must be non-nil and will be used for request cancellation. If
  816. // the context is nil a panic will occur. In the future the SDK may create
  817. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  818. // for more information on using Contexts.
  819. func (c *RDS) CopyDBParameterGroupWithContext(ctx aws.Context, input *CopyDBParameterGroupInput, opts ...request.Option) (*CopyDBParameterGroupOutput, error) {
  820. req, out := c.CopyDBParameterGroupRequest(input)
  821. req.SetContext(ctx)
  822. req.ApplyOptions(opts...)
  823. return out, req.Send()
  824. }
  825. const opCopyDBSnapshot = "CopyDBSnapshot"
  826. // CopyDBSnapshotRequest generates a "aws/request.Request" representing the
  827. // client's request for the CopyDBSnapshot operation. The "output" return
  828. // value will be populated with the request's response once the request completes
  829. // successfully.
  830. //
  831. // Use "Send" method on the returned Request to send the API call to the service.
  832. // the "output" return value is not valid until after Send returns without error.
  833. //
  834. // See CopyDBSnapshot for more information on using the CopyDBSnapshot
  835. // API call, and error handling.
  836. //
  837. // This method is useful when you want to inject custom logic or configuration
  838. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  839. //
  840. //
  841. // // Example sending a request using the CopyDBSnapshotRequest method.
  842. // req, resp := client.CopyDBSnapshotRequest(params)
  843. //
  844. // err := req.Send()
  845. // if err == nil { // resp is now filled
  846. // fmt.Println(resp)
  847. // }
  848. //
  849. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBSnapshot
  850. func (c *RDS) CopyDBSnapshotRequest(input *CopyDBSnapshotInput) (req *request.Request, output *CopyDBSnapshotOutput) {
  851. op := &request.Operation{
  852. Name: opCopyDBSnapshot,
  853. HTTPMethod: "POST",
  854. HTTPPath: "/",
  855. }
  856. if input == nil {
  857. input = &CopyDBSnapshotInput{}
  858. }
  859. output = &CopyDBSnapshotOutput{}
  860. req = c.newRequest(op, input, output)
  861. return
  862. }
  863. // CopyDBSnapshot API operation for Amazon Relational Database Service.
  864. //
  865. // Copies the specified DB snapshot. The source DB snapshot must be in the "available"
  866. // state.
  867. //
  868. // You can copy a snapshot from one AWS Region to another. In that case, the
  869. // AWS Region where you call the CopyDBSnapshot action is the destination AWS
  870. // Region for the DB snapshot copy.
  871. //
  872. // For more information about copying snapshots, see Copying a DB Snapshot (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopyDBSnapshot.html)
  873. // in the Amazon RDS User Guide.
  874. //
  875. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  876. // with awserr.Error's Code and Message methods to get detailed information about
  877. // the error.
  878. //
  879. // See the AWS API reference guide for Amazon Relational Database Service's
  880. // API operation CopyDBSnapshot for usage and error information.
  881. //
  882. // Returned Error Codes:
  883. // * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists"
  884. // DBSnapshotIdentifier is already used by an existing snapshot.
  885. //
  886. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  887. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  888. //
  889. // * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState"
  890. // The state of the DB snapshot doesn't allow deletion.
  891. //
  892. // * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded"
  893. // The request would result in the user exceeding the allowed number of DB snapshots.
  894. //
  895. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  896. // An error occurred accessing an AWS KMS key.
  897. //
  898. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyDBSnapshot
  899. func (c *RDS) CopyDBSnapshot(input *CopyDBSnapshotInput) (*CopyDBSnapshotOutput, error) {
  900. req, out := c.CopyDBSnapshotRequest(input)
  901. return out, req.Send()
  902. }
  903. // CopyDBSnapshotWithContext is the same as CopyDBSnapshot with the addition of
  904. // the ability to pass a context and additional request options.
  905. //
  906. // See CopyDBSnapshot for details on how to use this API operation.
  907. //
  908. // The context must be non-nil and will be used for request cancellation. If
  909. // the context is nil a panic will occur. In the future the SDK may create
  910. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  911. // for more information on using Contexts.
  912. func (c *RDS) CopyDBSnapshotWithContext(ctx aws.Context, input *CopyDBSnapshotInput, opts ...request.Option) (*CopyDBSnapshotOutput, error) {
  913. req, out := c.CopyDBSnapshotRequest(input)
  914. req.SetContext(ctx)
  915. req.ApplyOptions(opts...)
  916. return out, req.Send()
  917. }
  918. const opCopyOptionGroup = "CopyOptionGroup"
  919. // CopyOptionGroupRequest generates a "aws/request.Request" representing the
  920. // client's request for the CopyOptionGroup operation. The "output" return
  921. // value will be populated with the request's response once the request completes
  922. // successfully.
  923. //
  924. // Use "Send" method on the returned Request to send the API call to the service.
  925. // the "output" return value is not valid until after Send returns without error.
  926. //
  927. // See CopyOptionGroup for more information on using the CopyOptionGroup
  928. // API call, and error handling.
  929. //
  930. // This method is useful when you want to inject custom logic or configuration
  931. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  932. //
  933. //
  934. // // Example sending a request using the CopyOptionGroupRequest method.
  935. // req, resp := client.CopyOptionGroupRequest(params)
  936. //
  937. // err := req.Send()
  938. // if err == nil { // resp is now filled
  939. // fmt.Println(resp)
  940. // }
  941. //
  942. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyOptionGroup
  943. func (c *RDS) CopyOptionGroupRequest(input *CopyOptionGroupInput) (req *request.Request, output *CopyOptionGroupOutput) {
  944. op := &request.Operation{
  945. Name: opCopyOptionGroup,
  946. HTTPMethod: "POST",
  947. HTTPPath: "/",
  948. }
  949. if input == nil {
  950. input = &CopyOptionGroupInput{}
  951. }
  952. output = &CopyOptionGroupOutput{}
  953. req = c.newRequest(op, input, output)
  954. return
  955. }
  956. // CopyOptionGroup API operation for Amazon Relational Database Service.
  957. //
  958. // Copies the specified option group.
  959. //
  960. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  961. // with awserr.Error's Code and Message methods to get detailed information about
  962. // the error.
  963. //
  964. // See the AWS API reference guide for Amazon Relational Database Service's
  965. // API operation CopyOptionGroup for usage and error information.
  966. //
  967. // Returned Error Codes:
  968. // * ErrCodeOptionGroupAlreadyExistsFault "OptionGroupAlreadyExistsFault"
  969. // The option group you are trying to create already exists.
  970. //
  971. // * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault"
  972. // The specified option group could not be found.
  973. //
  974. // * ErrCodeOptionGroupQuotaExceededFault "OptionGroupQuotaExceededFault"
  975. // The quota of 20 option groups was exceeded for this AWS account.
  976. //
  977. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CopyOptionGroup
  978. func (c *RDS) CopyOptionGroup(input *CopyOptionGroupInput) (*CopyOptionGroupOutput, error) {
  979. req, out := c.CopyOptionGroupRequest(input)
  980. return out, req.Send()
  981. }
  982. // CopyOptionGroupWithContext is the same as CopyOptionGroup with the addition of
  983. // the ability to pass a context and additional request options.
  984. //
  985. // See CopyOptionGroup for details on how to use this API operation.
  986. //
  987. // The context must be non-nil and will be used for request cancellation. If
  988. // the context is nil a panic will occur. In the future the SDK may create
  989. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  990. // for more information on using Contexts.
  991. func (c *RDS) CopyOptionGroupWithContext(ctx aws.Context, input *CopyOptionGroupInput, opts ...request.Option) (*CopyOptionGroupOutput, error) {
  992. req, out := c.CopyOptionGroupRequest(input)
  993. req.SetContext(ctx)
  994. req.ApplyOptions(opts...)
  995. return out, req.Send()
  996. }
  997. const opCreateDBCluster = "CreateDBCluster"
  998. // CreateDBClusterRequest generates a "aws/request.Request" representing the
  999. // client's request for the CreateDBCluster operation. The "output" return
  1000. // value will be populated with the request's response once the request completes
  1001. // successfully.
  1002. //
  1003. // Use "Send" method on the returned Request to send the API call to the service.
  1004. // the "output" return value is not valid until after Send returns without error.
  1005. //
  1006. // See CreateDBCluster for more information on using the CreateDBCluster
  1007. // API call, and error handling.
  1008. //
  1009. // This method is useful when you want to inject custom logic or configuration
  1010. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1011. //
  1012. //
  1013. // // Example sending a request using the CreateDBClusterRequest method.
  1014. // req, resp := client.CreateDBClusterRequest(params)
  1015. //
  1016. // err := req.Send()
  1017. // if err == nil { // resp is now filled
  1018. // fmt.Println(resp)
  1019. // }
  1020. //
  1021. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBCluster
  1022. func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request.Request, output *CreateDBClusterOutput) {
  1023. op := &request.Operation{
  1024. Name: opCreateDBCluster,
  1025. HTTPMethod: "POST",
  1026. HTTPPath: "/",
  1027. }
  1028. if input == nil {
  1029. input = &CreateDBClusterInput{}
  1030. }
  1031. output = &CreateDBClusterOutput{}
  1032. req = c.newRequest(op, input, output)
  1033. return
  1034. }
  1035. // CreateDBCluster API operation for Amazon Relational Database Service.
  1036. //
  1037. // Creates a new Amazon Aurora DB cluster.
  1038. //
  1039. // You can use the ReplicationSourceIdentifier parameter to create the DB cluster
  1040. // as a Read Replica of another DB cluster or Amazon RDS MySQL DB instance.
  1041. // For cross-region replication where the DB cluster identified by ReplicationSourceIdentifier
  1042. // is encrypted, you must also specify the PreSignedUrl parameter.
  1043. //
  1044. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  1045. // in the Amazon Aurora User Guide.
  1046. //
  1047. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1048. // with awserr.Error's Code and Message methods to get detailed information about
  1049. // the error.
  1050. //
  1051. // See the AWS API reference guide for Amazon Relational Database Service's
  1052. // API operation CreateDBCluster for usage and error information.
  1053. //
  1054. // Returned Error Codes:
  1055. // * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault"
  1056. // The user already has a DB cluster with the given identifier.
  1057. //
  1058. // * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity"
  1059. // There is insufficient storage available for the current action. You might
  1060. // be able to resolve this error by updating your subnet group to use different
  1061. // Availability Zones that have more storage available.
  1062. //
  1063. // * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault"
  1064. // The user attempted to create a new DB cluster and the user has already reached
  1065. // the maximum allowed DB cluster quota.
  1066. //
  1067. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  1068. // The request would result in the user exceeding the allowed amount of storage
  1069. // available across all DB instances.
  1070. //
  1071. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  1072. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  1073. //
  1074. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  1075. // The DB subnet group doesn't cover all Availability Zones after it's created
  1076. // because of users' change.
  1077. //
  1078. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  1079. // The requested operation can't be performed while the cluster is in this state.
  1080. //
  1081. // * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault"
  1082. // The DB subnet group cannot be deleted because it's in use.
  1083. //
  1084. // * ErrCodeInvalidSubnet "InvalidSubnet"
  1085. // The requested subnet is invalid, or multiple subnets were requested that
  1086. // are not all in a common VPC.
  1087. //
  1088. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  1089. // The DB instance isn't in a valid state.
  1090. //
  1091. // * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound"
  1092. // DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter
  1093. // group.
  1094. //
  1095. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  1096. // An error occurred accessing an AWS KMS key.
  1097. //
  1098. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  1099. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  1100. //
  1101. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  1102. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  1103. //
  1104. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  1105. // Subnets in the DB subnet group should cover at least two Availability Zones
  1106. // unless there is only one Availability Zone.
  1107. //
  1108. // * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault"
  1109. //
  1110. // * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault"
  1111. //
  1112. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBCluster
  1113. func (c *RDS) CreateDBCluster(input *CreateDBClusterInput) (*CreateDBClusterOutput, error) {
  1114. req, out := c.CreateDBClusterRequest(input)
  1115. return out, req.Send()
  1116. }
  1117. // CreateDBClusterWithContext is the same as CreateDBCluster with the addition of
  1118. // the ability to pass a context and additional request options.
  1119. //
  1120. // See CreateDBCluster for details on how to use this API operation.
  1121. //
  1122. // The context must be non-nil and will be used for request cancellation. If
  1123. // the context is nil a panic will occur. In the future the SDK may create
  1124. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1125. // for more information on using Contexts.
  1126. func (c *RDS) CreateDBClusterWithContext(ctx aws.Context, input *CreateDBClusterInput, opts ...request.Option) (*CreateDBClusterOutput, error) {
  1127. req, out := c.CreateDBClusterRequest(input)
  1128. req.SetContext(ctx)
  1129. req.ApplyOptions(opts...)
  1130. return out, req.Send()
  1131. }
  1132. const opCreateDBClusterEndpoint = "CreateDBClusterEndpoint"
  1133. // CreateDBClusterEndpointRequest generates a "aws/request.Request" representing the
  1134. // client's request for the CreateDBClusterEndpoint operation. The "output" return
  1135. // value will be populated with the request's response once the request completes
  1136. // successfully.
  1137. //
  1138. // Use "Send" method on the returned Request to send the API call to the service.
  1139. // the "output" return value is not valid until after Send returns without error.
  1140. //
  1141. // See CreateDBClusterEndpoint for more information on using the CreateDBClusterEndpoint
  1142. // API call, and error handling.
  1143. //
  1144. // This method is useful when you want to inject custom logic or configuration
  1145. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1146. //
  1147. //
  1148. // // Example sending a request using the CreateDBClusterEndpointRequest method.
  1149. // req, resp := client.CreateDBClusterEndpointRequest(params)
  1150. //
  1151. // err := req.Send()
  1152. // if err == nil { // resp is now filled
  1153. // fmt.Println(resp)
  1154. // }
  1155. //
  1156. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterEndpoint
  1157. func (c *RDS) CreateDBClusterEndpointRequest(input *CreateDBClusterEndpointInput) (req *request.Request, output *CreateDBClusterEndpointOutput) {
  1158. op := &request.Operation{
  1159. Name: opCreateDBClusterEndpoint,
  1160. HTTPMethod: "POST",
  1161. HTTPPath: "/",
  1162. }
  1163. if input == nil {
  1164. input = &CreateDBClusterEndpointInput{}
  1165. }
  1166. output = &CreateDBClusterEndpointOutput{}
  1167. req = c.newRequest(op, input, output)
  1168. return
  1169. }
  1170. // CreateDBClusterEndpoint API operation for Amazon Relational Database Service.
  1171. //
  1172. // Creates a new custom endpoint and associates it with an Amazon Aurora DB
  1173. // cluster.
  1174. //
  1175. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1176. // with awserr.Error's Code and Message methods to get detailed information about
  1177. // the error.
  1178. //
  1179. // See the AWS API reference guide for Amazon Relational Database Service's
  1180. // API operation CreateDBClusterEndpoint for usage and error information.
  1181. //
  1182. // Returned Error Codes:
  1183. // * ErrCodeDBClusterEndpointQuotaExceededFault "DBClusterEndpointQuotaExceededFault"
  1184. // The cluster already has the maximum number of custom endpoints.
  1185. //
  1186. // * ErrCodeDBClusterEndpointAlreadyExistsFault "DBClusterEndpointAlreadyExistsFault"
  1187. // The specified custom endpoint can't be created because it already exists.
  1188. //
  1189. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  1190. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  1191. //
  1192. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  1193. // The requested operation can't be performed while the cluster is in this state.
  1194. //
  1195. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  1196. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  1197. //
  1198. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  1199. // The DB instance isn't in a valid state.
  1200. //
  1201. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterEndpoint
  1202. func (c *RDS) CreateDBClusterEndpoint(input *CreateDBClusterEndpointInput) (*CreateDBClusterEndpointOutput, error) {
  1203. req, out := c.CreateDBClusterEndpointRequest(input)
  1204. return out, req.Send()
  1205. }
  1206. // CreateDBClusterEndpointWithContext is the same as CreateDBClusterEndpoint with the addition of
  1207. // the ability to pass a context and additional request options.
  1208. //
  1209. // See CreateDBClusterEndpoint for details on how to use this API operation.
  1210. //
  1211. // The context must be non-nil and will be used for request cancellation. If
  1212. // the context is nil a panic will occur. In the future the SDK may create
  1213. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1214. // for more information on using Contexts.
  1215. func (c *RDS) CreateDBClusterEndpointWithContext(ctx aws.Context, input *CreateDBClusterEndpointInput, opts ...request.Option) (*CreateDBClusterEndpointOutput, error) {
  1216. req, out := c.CreateDBClusterEndpointRequest(input)
  1217. req.SetContext(ctx)
  1218. req.ApplyOptions(opts...)
  1219. return out, req.Send()
  1220. }
  1221. const opCreateDBClusterParameterGroup = "CreateDBClusterParameterGroup"
  1222. // CreateDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  1223. // client's request for the CreateDBClusterParameterGroup operation. The "output" return
  1224. // value will be populated with the request's response once the request completes
  1225. // successfully.
  1226. //
  1227. // Use "Send" method on the returned Request to send the API call to the service.
  1228. // the "output" return value is not valid until after Send returns without error.
  1229. //
  1230. // See CreateDBClusterParameterGroup for more information on using the CreateDBClusterParameterGroup
  1231. // API call, and error handling.
  1232. //
  1233. // This method is useful when you want to inject custom logic or configuration
  1234. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1235. //
  1236. //
  1237. // // Example sending a request using the CreateDBClusterParameterGroupRequest method.
  1238. // req, resp := client.CreateDBClusterParameterGroupRequest(params)
  1239. //
  1240. // err := req.Send()
  1241. // if err == nil { // resp is now filled
  1242. // fmt.Println(resp)
  1243. // }
  1244. //
  1245. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterParameterGroup
  1246. func (c *RDS) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParameterGroupInput) (req *request.Request, output *CreateDBClusterParameterGroupOutput) {
  1247. op := &request.Operation{
  1248. Name: opCreateDBClusterParameterGroup,
  1249. HTTPMethod: "POST",
  1250. HTTPPath: "/",
  1251. }
  1252. if input == nil {
  1253. input = &CreateDBClusterParameterGroupInput{}
  1254. }
  1255. output = &CreateDBClusterParameterGroupOutput{}
  1256. req = c.newRequest(op, input, output)
  1257. return
  1258. }
  1259. // CreateDBClusterParameterGroup API operation for Amazon Relational Database Service.
  1260. //
  1261. // Creates a new DB cluster parameter group.
  1262. //
  1263. // Parameters in a DB cluster parameter group apply to all of the instances
  1264. // in a DB cluster.
  1265. //
  1266. // A DB cluster parameter group is initially created with the default parameters
  1267. // for the database engine used by instances in the DB cluster. To provide custom
  1268. // values for any of the parameters, you must modify the group after creating
  1269. // it using ModifyDBClusterParameterGroup. Once you've created a DB cluster
  1270. // parameter group, you need to associate it with your DB cluster using ModifyDBCluster.
  1271. // When you associate a new DB cluster parameter group with a running DB cluster,
  1272. // you need to reboot the DB instances in the DB cluster without failover for
  1273. // the new DB cluster parameter group and associated settings to take effect.
  1274. //
  1275. // After you create a DB cluster parameter group, you should wait at least 5
  1276. // minutes before creating your first DB cluster that uses that DB cluster parameter
  1277. // group as the default parameter group. This allows Amazon RDS to fully complete
  1278. // the create action before the DB cluster parameter group is used as the default
  1279. // for a new DB cluster. This is especially important for parameters that are
  1280. // critical when creating the default database for a DB cluster, such as the
  1281. // character set for the default database defined by the character_set_database
  1282. // parameter. You can use the Parameter Groups option of the Amazon RDS console
  1283. // (https://console.aws.amazon.com/rds/) or the DescribeDBClusterParameters
  1284. // command to verify that your DB cluster parameter group has been created or
  1285. // modified.
  1286. //
  1287. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  1288. // in the Amazon Aurora User Guide.
  1289. //
  1290. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1291. // with awserr.Error's Code and Message methods to get detailed information about
  1292. // the error.
  1293. //
  1294. // See the AWS API reference guide for Amazon Relational Database Service's
  1295. // API operation CreateDBClusterParameterGroup for usage and error information.
  1296. //
  1297. // Returned Error Codes:
  1298. // * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded"
  1299. // The request would result in the user exceeding the allowed number of DB parameter
  1300. // groups.
  1301. //
  1302. // * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists"
  1303. // A DB parameter group with the same name exists.
  1304. //
  1305. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterParameterGroup
  1306. func (c *RDS) CreateDBClusterParameterGroup(input *CreateDBClusterParameterGroupInput) (*CreateDBClusterParameterGroupOutput, error) {
  1307. req, out := c.CreateDBClusterParameterGroupRequest(input)
  1308. return out, req.Send()
  1309. }
  1310. // CreateDBClusterParameterGroupWithContext is the same as CreateDBClusterParameterGroup with the addition of
  1311. // the ability to pass a context and additional request options.
  1312. //
  1313. // See CreateDBClusterParameterGroup for details on how to use this API operation.
  1314. //
  1315. // The context must be non-nil and will be used for request cancellation. If
  1316. // the context is nil a panic will occur. In the future the SDK may create
  1317. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1318. // for more information on using Contexts.
  1319. func (c *RDS) CreateDBClusterParameterGroupWithContext(ctx aws.Context, input *CreateDBClusterParameterGroupInput, opts ...request.Option) (*CreateDBClusterParameterGroupOutput, error) {
  1320. req, out := c.CreateDBClusterParameterGroupRequest(input)
  1321. req.SetContext(ctx)
  1322. req.ApplyOptions(opts...)
  1323. return out, req.Send()
  1324. }
  1325. const opCreateDBClusterSnapshot = "CreateDBClusterSnapshot"
  1326. // CreateDBClusterSnapshotRequest generates a "aws/request.Request" representing the
  1327. // client's request for the CreateDBClusterSnapshot operation. The "output" return
  1328. // value will be populated with the request's response once the request completes
  1329. // successfully.
  1330. //
  1331. // Use "Send" method on the returned Request to send the API call to the service.
  1332. // the "output" return value is not valid until after Send returns without error.
  1333. //
  1334. // See CreateDBClusterSnapshot for more information on using the CreateDBClusterSnapshot
  1335. // API call, and error handling.
  1336. //
  1337. // This method is useful when you want to inject custom logic or configuration
  1338. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1339. //
  1340. //
  1341. // // Example sending a request using the CreateDBClusterSnapshotRequest method.
  1342. // req, resp := client.CreateDBClusterSnapshotRequest(params)
  1343. //
  1344. // err := req.Send()
  1345. // if err == nil { // resp is now filled
  1346. // fmt.Println(resp)
  1347. // }
  1348. //
  1349. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterSnapshot
  1350. func (c *RDS) CreateDBClusterSnapshotRequest(input *CreateDBClusterSnapshotInput) (req *request.Request, output *CreateDBClusterSnapshotOutput) {
  1351. op := &request.Operation{
  1352. Name: opCreateDBClusterSnapshot,
  1353. HTTPMethod: "POST",
  1354. HTTPPath: "/",
  1355. }
  1356. if input == nil {
  1357. input = &CreateDBClusterSnapshotInput{}
  1358. }
  1359. output = &CreateDBClusterSnapshotOutput{}
  1360. req = c.newRequest(op, input, output)
  1361. return
  1362. }
  1363. // CreateDBClusterSnapshot API operation for Amazon Relational Database Service.
  1364. //
  1365. // Creates a snapshot of a DB cluster. For more information on Amazon Aurora,
  1366. // see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  1367. // in the Amazon Aurora User Guide.
  1368. //
  1369. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1370. // with awserr.Error's Code and Message methods to get detailed information about
  1371. // the error.
  1372. //
  1373. // See the AWS API reference guide for Amazon Relational Database Service's
  1374. // API operation CreateDBClusterSnapshot for usage and error information.
  1375. //
  1376. // Returned Error Codes:
  1377. // * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault"
  1378. // The user already has a DB cluster snapshot with the given identifier.
  1379. //
  1380. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  1381. // The requested operation can't be performed while the cluster is in this state.
  1382. //
  1383. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  1384. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  1385. //
  1386. // * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded"
  1387. // The request would result in the user exceeding the allowed number of DB snapshots.
  1388. //
  1389. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  1390. // The supplied value isn't a valid DB cluster snapshot state.
  1391. //
  1392. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterSnapshot
  1393. func (c *RDS) CreateDBClusterSnapshot(input *CreateDBClusterSnapshotInput) (*CreateDBClusterSnapshotOutput, error) {
  1394. req, out := c.CreateDBClusterSnapshotRequest(input)
  1395. return out, req.Send()
  1396. }
  1397. // CreateDBClusterSnapshotWithContext is the same as CreateDBClusterSnapshot with the addition of
  1398. // the ability to pass a context and additional request options.
  1399. //
  1400. // See CreateDBClusterSnapshot for details on how to use this API operation.
  1401. //
  1402. // The context must be non-nil and will be used for request cancellation. If
  1403. // the context is nil a panic will occur. In the future the SDK may create
  1404. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1405. // for more information on using Contexts.
  1406. func (c *RDS) CreateDBClusterSnapshotWithContext(ctx aws.Context, input *CreateDBClusterSnapshotInput, opts ...request.Option) (*CreateDBClusterSnapshotOutput, error) {
  1407. req, out := c.CreateDBClusterSnapshotRequest(input)
  1408. req.SetContext(ctx)
  1409. req.ApplyOptions(opts...)
  1410. return out, req.Send()
  1411. }
  1412. const opCreateDBInstance = "CreateDBInstance"
  1413. // CreateDBInstanceRequest generates a "aws/request.Request" representing the
  1414. // client's request for the CreateDBInstance operation. The "output" return
  1415. // value will be populated with the request's response once the request completes
  1416. // successfully.
  1417. //
  1418. // Use "Send" method on the returned Request to send the API call to the service.
  1419. // the "output" return value is not valid until after Send returns without error.
  1420. //
  1421. // See CreateDBInstance for more information on using the CreateDBInstance
  1422. // API call, and error handling.
  1423. //
  1424. // This method is useful when you want to inject custom logic or configuration
  1425. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1426. //
  1427. //
  1428. // // Example sending a request using the CreateDBInstanceRequest method.
  1429. // req, resp := client.CreateDBInstanceRequest(params)
  1430. //
  1431. // err := req.Send()
  1432. // if err == nil { // resp is now filled
  1433. // fmt.Println(resp)
  1434. // }
  1435. //
  1436. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstance
  1437. func (c *RDS) CreateDBInstanceRequest(input *CreateDBInstanceInput) (req *request.Request, output *CreateDBInstanceOutput) {
  1438. op := &request.Operation{
  1439. Name: opCreateDBInstance,
  1440. HTTPMethod: "POST",
  1441. HTTPPath: "/",
  1442. }
  1443. if input == nil {
  1444. input = &CreateDBInstanceInput{}
  1445. }
  1446. output = &CreateDBInstanceOutput{}
  1447. req = c.newRequest(op, input, output)
  1448. return
  1449. }
  1450. // CreateDBInstance API operation for Amazon Relational Database Service.
  1451. //
  1452. // Creates a new DB instance.
  1453. //
  1454. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1455. // with awserr.Error's Code and Message methods to get detailed information about
  1456. // the error.
  1457. //
  1458. // See the AWS API reference guide for Amazon Relational Database Service's
  1459. // API operation CreateDBInstance for usage and error information.
  1460. //
  1461. // Returned Error Codes:
  1462. // * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists"
  1463. // The user already has a DB instance with the given identifier.
  1464. //
  1465. // * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity"
  1466. // The specified DB instance class isn't available in the specified Availability
  1467. // Zone.
  1468. //
  1469. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  1470. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  1471. //
  1472. // * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound"
  1473. // DBSecurityGroupName doesn't refer to an existing DB security group.
  1474. //
  1475. // * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded"
  1476. // The request would result in the user exceeding the allowed number of DB instances.
  1477. //
  1478. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  1479. // The request would result in the user exceeding the allowed amount of storage
  1480. // available across all DB instances.
  1481. //
  1482. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  1483. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  1484. //
  1485. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  1486. // Subnets in the DB subnet group should cover at least two Availability Zones
  1487. // unless there is only one Availability Zone.
  1488. //
  1489. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  1490. // The requested operation can't be performed while the cluster is in this state.
  1491. //
  1492. // * ErrCodeInvalidSubnet "InvalidSubnet"
  1493. // The requested subnet is invalid, or multiple subnets were requested that
  1494. // are not all in a common VPC.
  1495. //
  1496. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  1497. // The DB subnet group doesn't cover all Availability Zones after it's created
  1498. // because of users' change.
  1499. //
  1500. // * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault"
  1501. // Provisioned IOPS not available in the specified Availability Zone.
  1502. //
  1503. // * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault"
  1504. // The specified option group could not be found.
  1505. //
  1506. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  1507. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  1508. //
  1509. // * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported"
  1510. // Storage of the StorageType specified can't be associated with the DB instance.
  1511. //
  1512. // * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
  1513. // The specified CIDRIP or Amazon EC2 security group isn't authorized for the
  1514. // specified DB security group.
  1515. //
  1516. // RDS also may not be authorized by using IAM to perform necessary actions
  1517. // on your behalf.
  1518. //
  1519. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  1520. // An error occurred accessing an AWS KMS key.
  1521. //
  1522. // * ErrCodeDomainNotFoundFault "DomainNotFoundFault"
  1523. // Domain doesn't refer to an existing Active Directory domain.
  1524. //
  1525. // * ErrCodeBackupPolicyNotFoundFault "BackupPolicyNotFoundFault"
  1526. //
  1527. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstance
  1528. func (c *RDS) CreateDBInstance(input *CreateDBInstanceInput) (*CreateDBInstanceOutput, error) {
  1529. req, out := c.CreateDBInstanceRequest(input)
  1530. return out, req.Send()
  1531. }
  1532. // CreateDBInstanceWithContext is the same as CreateDBInstance with the addition of
  1533. // the ability to pass a context and additional request options.
  1534. //
  1535. // See CreateDBInstance for details on how to use this API operation.
  1536. //
  1537. // The context must be non-nil and will be used for request cancellation. If
  1538. // the context is nil a panic will occur. In the future the SDK may create
  1539. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1540. // for more information on using Contexts.
  1541. func (c *RDS) CreateDBInstanceWithContext(ctx aws.Context, input *CreateDBInstanceInput, opts ...request.Option) (*CreateDBInstanceOutput, error) {
  1542. req, out := c.CreateDBInstanceRequest(input)
  1543. req.SetContext(ctx)
  1544. req.ApplyOptions(opts...)
  1545. return out, req.Send()
  1546. }
  1547. const opCreateDBInstanceReadReplica = "CreateDBInstanceReadReplica"
  1548. // CreateDBInstanceReadReplicaRequest generates a "aws/request.Request" representing the
  1549. // client's request for the CreateDBInstanceReadReplica operation. The "output" return
  1550. // value will be populated with the request's response once the request completes
  1551. // successfully.
  1552. //
  1553. // Use "Send" method on the returned Request to send the API call to the service.
  1554. // the "output" return value is not valid until after Send returns without error.
  1555. //
  1556. // See CreateDBInstanceReadReplica for more information on using the CreateDBInstanceReadReplica
  1557. // API call, and error handling.
  1558. //
  1559. // This method is useful when you want to inject custom logic or configuration
  1560. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1561. //
  1562. //
  1563. // // Example sending a request using the CreateDBInstanceReadReplicaRequest method.
  1564. // req, resp := client.CreateDBInstanceReadReplicaRequest(params)
  1565. //
  1566. // err := req.Send()
  1567. // if err == nil { // resp is now filled
  1568. // fmt.Println(resp)
  1569. // }
  1570. //
  1571. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstanceReadReplica
  1572. func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadReplicaInput) (req *request.Request, output *CreateDBInstanceReadReplicaOutput) {
  1573. op := &request.Operation{
  1574. Name: opCreateDBInstanceReadReplica,
  1575. HTTPMethod: "POST",
  1576. HTTPPath: "/",
  1577. }
  1578. if input == nil {
  1579. input = &CreateDBInstanceReadReplicaInput{}
  1580. }
  1581. output = &CreateDBInstanceReadReplicaOutput{}
  1582. req = c.newRequest(op, input, output)
  1583. return
  1584. }
  1585. // CreateDBInstanceReadReplica API operation for Amazon Relational Database Service.
  1586. //
  1587. // Creates a new DB instance that acts as a Read Replica for an existing source
  1588. // DB instance. You can create a Read Replica for a DB instance running MySQL,
  1589. // MariaDB, or PostgreSQL. For more information, see Working with PostgreSQL,
  1590. // MySQL, and MariaDB Read Replicas (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html)
  1591. // in the Amazon RDS User Guide.
  1592. //
  1593. // Amazon Aurora doesn't support this action. You must call the CreateDBInstance
  1594. // action to create a DB instance for an Aurora DB cluster.
  1595. //
  1596. // All Read Replica DB instances are created with backups disabled. All other
  1597. // DB instance attributes (including DB security groups and DB parameter groups)
  1598. // are inherited from the source DB instance, except as specified following.
  1599. //
  1600. // Your source DB instance must have backup retention enabled.
  1601. //
  1602. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1603. // with awserr.Error's Code and Message methods to get detailed information about
  1604. // the error.
  1605. //
  1606. // See the AWS API reference guide for Amazon Relational Database Service's
  1607. // API operation CreateDBInstanceReadReplica for usage and error information.
  1608. //
  1609. // Returned Error Codes:
  1610. // * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists"
  1611. // The user already has a DB instance with the given identifier.
  1612. //
  1613. // * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity"
  1614. // The specified DB instance class isn't available in the specified Availability
  1615. // Zone.
  1616. //
  1617. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  1618. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  1619. //
  1620. // * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound"
  1621. // DBSecurityGroupName doesn't refer to an existing DB security group.
  1622. //
  1623. // * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded"
  1624. // The request would result in the user exceeding the allowed number of DB instances.
  1625. //
  1626. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  1627. // The request would result in the user exceeding the allowed amount of storage
  1628. // available across all DB instances.
  1629. //
  1630. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  1631. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  1632. //
  1633. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  1634. // The DB instance isn't in a valid state.
  1635. //
  1636. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  1637. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  1638. //
  1639. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  1640. // Subnets in the DB subnet group should cover at least two Availability Zones
  1641. // unless there is only one Availability Zone.
  1642. //
  1643. // * ErrCodeInvalidSubnet "InvalidSubnet"
  1644. // The requested subnet is invalid, or multiple subnets were requested that
  1645. // are not all in a common VPC.
  1646. //
  1647. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  1648. // The DB subnet group doesn't cover all Availability Zones after it's created
  1649. // because of users' change.
  1650. //
  1651. // * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault"
  1652. // Provisioned IOPS not available in the specified Availability Zone.
  1653. //
  1654. // * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault"
  1655. // The specified option group could not be found.
  1656. //
  1657. // * ErrCodeDBSubnetGroupNotAllowedFault "DBSubnetGroupNotAllowedFault"
  1658. // The DBSubnetGroup shouldn't be specified while creating read replicas that
  1659. // lie in the same region as the source instance.
  1660. //
  1661. // * ErrCodeInvalidDBSubnetGroupFault "InvalidDBSubnetGroupFault"
  1662. // The DBSubnetGroup doesn't belong to the same VPC as that of an existing cross-region
  1663. // read replica of the same source instance.
  1664. //
  1665. // * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported"
  1666. // Storage of the StorageType specified can't be associated with the DB instance.
  1667. //
  1668. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  1669. // An error occurred accessing an AWS KMS key.
  1670. //
  1671. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBInstanceReadReplica
  1672. func (c *RDS) CreateDBInstanceReadReplica(input *CreateDBInstanceReadReplicaInput) (*CreateDBInstanceReadReplicaOutput, error) {
  1673. req, out := c.CreateDBInstanceReadReplicaRequest(input)
  1674. return out, req.Send()
  1675. }
  1676. // CreateDBInstanceReadReplicaWithContext is the same as CreateDBInstanceReadReplica with the addition of
  1677. // the ability to pass a context and additional request options.
  1678. //
  1679. // See CreateDBInstanceReadReplica for details on how to use this API operation.
  1680. //
  1681. // The context must be non-nil and will be used for request cancellation. If
  1682. // the context is nil a panic will occur. In the future the SDK may create
  1683. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1684. // for more information on using Contexts.
  1685. func (c *RDS) CreateDBInstanceReadReplicaWithContext(ctx aws.Context, input *CreateDBInstanceReadReplicaInput, opts ...request.Option) (*CreateDBInstanceReadReplicaOutput, error) {
  1686. req, out := c.CreateDBInstanceReadReplicaRequest(input)
  1687. req.SetContext(ctx)
  1688. req.ApplyOptions(opts...)
  1689. return out, req.Send()
  1690. }
  1691. const opCreateDBParameterGroup = "CreateDBParameterGroup"
  1692. // CreateDBParameterGroupRequest generates a "aws/request.Request" representing the
  1693. // client's request for the CreateDBParameterGroup operation. The "output" return
  1694. // value will be populated with the request's response once the request completes
  1695. // successfully.
  1696. //
  1697. // Use "Send" method on the returned Request to send the API call to the service.
  1698. // the "output" return value is not valid until after Send returns without error.
  1699. //
  1700. // See CreateDBParameterGroup for more information on using the CreateDBParameterGroup
  1701. // API call, and error handling.
  1702. //
  1703. // This method is useful when you want to inject custom logic or configuration
  1704. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1705. //
  1706. //
  1707. // // Example sending a request using the CreateDBParameterGroupRequest method.
  1708. // req, resp := client.CreateDBParameterGroupRequest(params)
  1709. //
  1710. // err := req.Send()
  1711. // if err == nil { // resp is now filled
  1712. // fmt.Println(resp)
  1713. // }
  1714. //
  1715. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBParameterGroup
  1716. func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) (req *request.Request, output *CreateDBParameterGroupOutput) {
  1717. op := &request.Operation{
  1718. Name: opCreateDBParameterGroup,
  1719. HTTPMethod: "POST",
  1720. HTTPPath: "/",
  1721. }
  1722. if input == nil {
  1723. input = &CreateDBParameterGroupInput{}
  1724. }
  1725. output = &CreateDBParameterGroupOutput{}
  1726. req = c.newRequest(op, input, output)
  1727. return
  1728. }
  1729. // CreateDBParameterGroup API operation for Amazon Relational Database Service.
  1730. //
  1731. // Creates a new DB parameter group.
  1732. //
  1733. // A DB parameter group is initially created with the default parameters for
  1734. // the database engine used by the DB instance. To provide custom values for
  1735. // any of the parameters, you must modify the group after creating it using
  1736. // ModifyDBParameterGroup. Once you've created a DB parameter group, you need
  1737. // to associate it with your DB instance using ModifyDBInstance. When you associate
  1738. // a new DB parameter group with a running DB instance, you need to reboot the
  1739. // DB instance without failover for the new DB parameter group and associated
  1740. // settings to take effect.
  1741. //
  1742. // After you create a DB parameter group, you should wait at least 5 minutes
  1743. // before creating your first DB instance that uses that DB parameter group
  1744. // as the default parameter group. This allows Amazon RDS to fully complete
  1745. // the create action before the parameter group is used as the default for a
  1746. // new DB instance. This is especially important for parameters that are critical
  1747. // when creating the default database for a DB instance, such as the character
  1748. // set for the default database defined by the character_set_database parameter.
  1749. // You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/)
  1750. // or the DescribeDBParameters command to verify that your DB parameter group
  1751. // has been created or modified.
  1752. //
  1753. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1754. // with awserr.Error's Code and Message methods to get detailed information about
  1755. // the error.
  1756. //
  1757. // See the AWS API reference guide for Amazon Relational Database Service's
  1758. // API operation CreateDBParameterGroup for usage and error information.
  1759. //
  1760. // Returned Error Codes:
  1761. // * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded"
  1762. // The request would result in the user exceeding the allowed number of DB parameter
  1763. // groups.
  1764. //
  1765. // * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists"
  1766. // A DB parameter group with the same name exists.
  1767. //
  1768. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBParameterGroup
  1769. func (c *RDS) CreateDBParameterGroup(input *CreateDBParameterGroupInput) (*CreateDBParameterGroupOutput, error) {
  1770. req, out := c.CreateDBParameterGroupRequest(input)
  1771. return out, req.Send()
  1772. }
  1773. // CreateDBParameterGroupWithContext is the same as CreateDBParameterGroup with the addition of
  1774. // the ability to pass a context and additional request options.
  1775. //
  1776. // See CreateDBParameterGroup for details on how to use this API operation.
  1777. //
  1778. // The context must be non-nil and will be used for request cancellation. If
  1779. // the context is nil a panic will occur. In the future the SDK may create
  1780. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1781. // for more information on using Contexts.
  1782. func (c *RDS) CreateDBParameterGroupWithContext(ctx aws.Context, input *CreateDBParameterGroupInput, opts ...request.Option) (*CreateDBParameterGroupOutput, error) {
  1783. req, out := c.CreateDBParameterGroupRequest(input)
  1784. req.SetContext(ctx)
  1785. req.ApplyOptions(opts...)
  1786. return out, req.Send()
  1787. }
  1788. const opCreateDBSecurityGroup = "CreateDBSecurityGroup"
  1789. // CreateDBSecurityGroupRequest generates a "aws/request.Request" representing the
  1790. // client's request for the CreateDBSecurityGroup operation. The "output" return
  1791. // value will be populated with the request's response once the request completes
  1792. // successfully.
  1793. //
  1794. // Use "Send" method on the returned Request to send the API call to the service.
  1795. // the "output" return value is not valid until after Send returns without error.
  1796. //
  1797. // See CreateDBSecurityGroup for more information on using the CreateDBSecurityGroup
  1798. // API call, and error handling.
  1799. //
  1800. // This method is useful when you want to inject custom logic or configuration
  1801. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1802. //
  1803. //
  1804. // // Example sending a request using the CreateDBSecurityGroupRequest method.
  1805. // req, resp := client.CreateDBSecurityGroupRequest(params)
  1806. //
  1807. // err := req.Send()
  1808. // if err == nil { // resp is now filled
  1809. // fmt.Println(resp)
  1810. // }
  1811. //
  1812. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSecurityGroup
  1813. func (c *RDS) CreateDBSecurityGroupRequest(input *CreateDBSecurityGroupInput) (req *request.Request, output *CreateDBSecurityGroupOutput) {
  1814. op := &request.Operation{
  1815. Name: opCreateDBSecurityGroup,
  1816. HTTPMethod: "POST",
  1817. HTTPPath: "/",
  1818. }
  1819. if input == nil {
  1820. input = &CreateDBSecurityGroupInput{}
  1821. }
  1822. output = &CreateDBSecurityGroupOutput{}
  1823. req = c.newRequest(op, input, output)
  1824. return
  1825. }
  1826. // CreateDBSecurityGroup API operation for Amazon Relational Database Service.
  1827. //
  1828. // Creates a new DB security group. DB security groups control access to a DB
  1829. // instance.
  1830. //
  1831. // A DB security group controls access to EC2-Classic DB instances that are
  1832. // not in a VPC.
  1833. //
  1834. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1835. // with awserr.Error's Code and Message methods to get detailed information about
  1836. // the error.
  1837. //
  1838. // See the AWS API reference guide for Amazon Relational Database Service's
  1839. // API operation CreateDBSecurityGroup for usage and error information.
  1840. //
  1841. // Returned Error Codes:
  1842. // * ErrCodeDBSecurityGroupAlreadyExistsFault "DBSecurityGroupAlreadyExists"
  1843. // A DB security group with the name specified in DBSecurityGroupName already
  1844. // exists.
  1845. //
  1846. // * ErrCodeDBSecurityGroupQuotaExceededFault "QuotaExceeded.DBSecurityGroup"
  1847. // The request would result in the user exceeding the allowed number of DB security
  1848. // groups.
  1849. //
  1850. // * ErrCodeDBSecurityGroupNotSupportedFault "DBSecurityGroupNotSupported"
  1851. // A DB security group isn't allowed for this action.
  1852. //
  1853. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSecurityGroup
  1854. func (c *RDS) CreateDBSecurityGroup(input *CreateDBSecurityGroupInput) (*CreateDBSecurityGroupOutput, error) {
  1855. req, out := c.CreateDBSecurityGroupRequest(input)
  1856. return out, req.Send()
  1857. }
  1858. // CreateDBSecurityGroupWithContext is the same as CreateDBSecurityGroup with the addition of
  1859. // the ability to pass a context and additional request options.
  1860. //
  1861. // See CreateDBSecurityGroup for details on how to use this API operation.
  1862. //
  1863. // The context must be non-nil and will be used for request cancellation. If
  1864. // the context is nil a panic will occur. In the future the SDK may create
  1865. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1866. // for more information on using Contexts.
  1867. func (c *RDS) CreateDBSecurityGroupWithContext(ctx aws.Context, input *CreateDBSecurityGroupInput, opts ...request.Option) (*CreateDBSecurityGroupOutput, error) {
  1868. req, out := c.CreateDBSecurityGroupRequest(input)
  1869. req.SetContext(ctx)
  1870. req.ApplyOptions(opts...)
  1871. return out, req.Send()
  1872. }
  1873. const opCreateDBSnapshot = "CreateDBSnapshot"
  1874. // CreateDBSnapshotRequest generates a "aws/request.Request" representing the
  1875. // client's request for the CreateDBSnapshot operation. The "output" return
  1876. // value will be populated with the request's response once the request completes
  1877. // successfully.
  1878. //
  1879. // Use "Send" method on the returned Request to send the API call to the service.
  1880. // the "output" return value is not valid until after Send returns without error.
  1881. //
  1882. // See CreateDBSnapshot for more information on using the CreateDBSnapshot
  1883. // API call, and error handling.
  1884. //
  1885. // This method is useful when you want to inject custom logic or configuration
  1886. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1887. //
  1888. //
  1889. // // Example sending a request using the CreateDBSnapshotRequest method.
  1890. // req, resp := client.CreateDBSnapshotRequest(params)
  1891. //
  1892. // err := req.Send()
  1893. // if err == nil { // resp is now filled
  1894. // fmt.Println(resp)
  1895. // }
  1896. //
  1897. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSnapshot
  1898. func (c *RDS) CreateDBSnapshotRequest(input *CreateDBSnapshotInput) (req *request.Request, output *CreateDBSnapshotOutput) {
  1899. op := &request.Operation{
  1900. Name: opCreateDBSnapshot,
  1901. HTTPMethod: "POST",
  1902. HTTPPath: "/",
  1903. }
  1904. if input == nil {
  1905. input = &CreateDBSnapshotInput{}
  1906. }
  1907. output = &CreateDBSnapshotOutput{}
  1908. req = c.newRequest(op, input, output)
  1909. return
  1910. }
  1911. // CreateDBSnapshot API operation for Amazon Relational Database Service.
  1912. //
  1913. // Creates a DBSnapshot. The source DBInstance must be in "available" state.
  1914. //
  1915. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1916. // with awserr.Error's Code and Message methods to get detailed information about
  1917. // the error.
  1918. //
  1919. // See the AWS API reference guide for Amazon Relational Database Service's
  1920. // API operation CreateDBSnapshot for usage and error information.
  1921. //
  1922. // Returned Error Codes:
  1923. // * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists"
  1924. // DBSnapshotIdentifier is already used by an existing snapshot.
  1925. //
  1926. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  1927. // The DB instance isn't in a valid state.
  1928. //
  1929. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  1930. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  1931. //
  1932. // * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded"
  1933. // The request would result in the user exceeding the allowed number of DB snapshots.
  1934. //
  1935. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSnapshot
  1936. func (c *RDS) CreateDBSnapshot(input *CreateDBSnapshotInput) (*CreateDBSnapshotOutput, error) {
  1937. req, out := c.CreateDBSnapshotRequest(input)
  1938. return out, req.Send()
  1939. }
  1940. // CreateDBSnapshotWithContext is the same as CreateDBSnapshot with the addition of
  1941. // the ability to pass a context and additional request options.
  1942. //
  1943. // See CreateDBSnapshot for details on how to use this API operation.
  1944. //
  1945. // The context must be non-nil and will be used for request cancellation. If
  1946. // the context is nil a panic will occur. In the future the SDK may create
  1947. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1948. // for more information on using Contexts.
  1949. func (c *RDS) CreateDBSnapshotWithContext(ctx aws.Context, input *CreateDBSnapshotInput, opts ...request.Option) (*CreateDBSnapshotOutput, error) {
  1950. req, out := c.CreateDBSnapshotRequest(input)
  1951. req.SetContext(ctx)
  1952. req.ApplyOptions(opts...)
  1953. return out, req.Send()
  1954. }
  1955. const opCreateDBSubnetGroup = "CreateDBSubnetGroup"
  1956. // CreateDBSubnetGroupRequest generates a "aws/request.Request" representing the
  1957. // client's request for the CreateDBSubnetGroup operation. The "output" return
  1958. // value will be populated with the request's response once the request completes
  1959. // successfully.
  1960. //
  1961. // Use "Send" method on the returned Request to send the API call to the service.
  1962. // the "output" return value is not valid until after Send returns without error.
  1963. //
  1964. // See CreateDBSubnetGroup for more information on using the CreateDBSubnetGroup
  1965. // API call, and error handling.
  1966. //
  1967. // This method is useful when you want to inject custom logic or configuration
  1968. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1969. //
  1970. //
  1971. // // Example sending a request using the CreateDBSubnetGroupRequest method.
  1972. // req, resp := client.CreateDBSubnetGroupRequest(params)
  1973. //
  1974. // err := req.Send()
  1975. // if err == nil { // resp is now filled
  1976. // fmt.Println(resp)
  1977. // }
  1978. //
  1979. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSubnetGroup
  1980. func (c *RDS) CreateDBSubnetGroupRequest(input *CreateDBSubnetGroupInput) (req *request.Request, output *CreateDBSubnetGroupOutput) {
  1981. op := &request.Operation{
  1982. Name: opCreateDBSubnetGroup,
  1983. HTTPMethod: "POST",
  1984. HTTPPath: "/",
  1985. }
  1986. if input == nil {
  1987. input = &CreateDBSubnetGroupInput{}
  1988. }
  1989. output = &CreateDBSubnetGroupOutput{}
  1990. req = c.newRequest(op, input, output)
  1991. return
  1992. }
  1993. // CreateDBSubnetGroup API operation for Amazon Relational Database Service.
  1994. //
  1995. // Creates a new DB subnet group. DB subnet groups must contain at least one
  1996. // subnet in at least two AZs in the AWS Region.
  1997. //
  1998. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1999. // with awserr.Error's Code and Message methods to get detailed information about
  2000. // the error.
  2001. //
  2002. // See the AWS API reference guide for Amazon Relational Database Service's
  2003. // API operation CreateDBSubnetGroup for usage and error information.
  2004. //
  2005. // Returned Error Codes:
  2006. // * ErrCodeDBSubnetGroupAlreadyExistsFault "DBSubnetGroupAlreadyExists"
  2007. // DBSubnetGroupName is already used by an existing DB subnet group.
  2008. //
  2009. // * ErrCodeDBSubnetGroupQuotaExceededFault "DBSubnetGroupQuotaExceeded"
  2010. // The request would result in the user exceeding the allowed number of DB subnet
  2011. // groups.
  2012. //
  2013. // * ErrCodeDBSubnetQuotaExceededFault "DBSubnetQuotaExceededFault"
  2014. // The request would result in the user exceeding the allowed number of subnets
  2015. // in a DB subnet groups.
  2016. //
  2017. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  2018. // Subnets in the DB subnet group should cover at least two Availability Zones
  2019. // unless there is only one Availability Zone.
  2020. //
  2021. // * ErrCodeInvalidSubnet "InvalidSubnet"
  2022. // The requested subnet is invalid, or multiple subnets were requested that
  2023. // are not all in a common VPC.
  2024. //
  2025. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBSubnetGroup
  2026. func (c *RDS) CreateDBSubnetGroup(input *CreateDBSubnetGroupInput) (*CreateDBSubnetGroupOutput, error) {
  2027. req, out := c.CreateDBSubnetGroupRequest(input)
  2028. return out, req.Send()
  2029. }
  2030. // CreateDBSubnetGroupWithContext is the same as CreateDBSubnetGroup with the addition of
  2031. // the ability to pass a context and additional request options.
  2032. //
  2033. // See CreateDBSubnetGroup for details on how to use this API operation.
  2034. //
  2035. // The context must be non-nil and will be used for request cancellation. If
  2036. // the context is nil a panic will occur. In the future the SDK may create
  2037. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2038. // for more information on using Contexts.
  2039. func (c *RDS) CreateDBSubnetGroupWithContext(ctx aws.Context, input *CreateDBSubnetGroupInput, opts ...request.Option) (*CreateDBSubnetGroupOutput, error) {
  2040. req, out := c.CreateDBSubnetGroupRequest(input)
  2041. req.SetContext(ctx)
  2042. req.ApplyOptions(opts...)
  2043. return out, req.Send()
  2044. }
  2045. const opCreateEventSubscription = "CreateEventSubscription"
  2046. // CreateEventSubscriptionRequest generates a "aws/request.Request" representing the
  2047. // client's request for the CreateEventSubscription operation. The "output" return
  2048. // value will be populated with the request's response once the request completes
  2049. // successfully.
  2050. //
  2051. // Use "Send" method on the returned Request to send the API call to the service.
  2052. // the "output" return value is not valid until after Send returns without error.
  2053. //
  2054. // See CreateEventSubscription for more information on using the CreateEventSubscription
  2055. // API call, and error handling.
  2056. //
  2057. // This method is useful when you want to inject custom logic or configuration
  2058. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2059. //
  2060. //
  2061. // // Example sending a request using the CreateEventSubscriptionRequest method.
  2062. // req, resp := client.CreateEventSubscriptionRequest(params)
  2063. //
  2064. // err := req.Send()
  2065. // if err == nil { // resp is now filled
  2066. // fmt.Println(resp)
  2067. // }
  2068. //
  2069. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateEventSubscription
  2070. func (c *RDS) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput) (req *request.Request, output *CreateEventSubscriptionOutput) {
  2071. op := &request.Operation{
  2072. Name: opCreateEventSubscription,
  2073. HTTPMethod: "POST",
  2074. HTTPPath: "/",
  2075. }
  2076. if input == nil {
  2077. input = &CreateEventSubscriptionInput{}
  2078. }
  2079. output = &CreateEventSubscriptionOutput{}
  2080. req = c.newRequest(op, input, output)
  2081. return
  2082. }
  2083. // CreateEventSubscription API operation for Amazon Relational Database Service.
  2084. //
  2085. // Creates an RDS event notification subscription. This action requires a topic
  2086. // ARN (Amazon Resource Name) created by either the RDS console, the SNS console,
  2087. // or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon
  2088. // SNS and subscribe to the topic. The ARN is displayed in the SNS console.
  2089. //
  2090. // You can specify the type of source (SourceType) you want to be notified of,
  2091. // provide a list of RDS sources (SourceIds) that triggers the events, and provide
  2092. // a list of event categories (EventCategories) for events you want to be notified
  2093. // of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1,
  2094. // mydbinstance2 and EventCategories = Availability, Backup.
  2095. //
  2096. // If you specify both the SourceType and SourceIds, such as SourceType = db-instance
  2097. // and SourceIdentifier = myDBInstance1, you are notified of all the db-instance
  2098. // events for the specified source. If you specify a SourceType but do not specify
  2099. // a SourceIdentifier, you receive notice of the events for that source type
  2100. // for all your RDS sources. If you do not specify either the SourceType nor
  2101. // the SourceIdentifier, you are notified of events generated from all RDS sources
  2102. // belonging to your customer account.
  2103. //
  2104. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2105. // with awserr.Error's Code and Message methods to get detailed information about
  2106. // the error.
  2107. //
  2108. // See the AWS API reference guide for Amazon Relational Database Service's
  2109. // API operation CreateEventSubscription for usage and error information.
  2110. //
  2111. // Returned Error Codes:
  2112. // * ErrCodeEventSubscriptionQuotaExceededFault "EventSubscriptionQuotaExceeded"
  2113. // You have reached the maximum number of event subscriptions.
  2114. //
  2115. // * ErrCodeSubscriptionAlreadyExistFault "SubscriptionAlreadyExist"
  2116. // The supplied subscription name already exists.
  2117. //
  2118. // * ErrCodeSNSInvalidTopicFault "SNSInvalidTopic"
  2119. // SNS has responded that there is a problem with the SND topic specified.
  2120. //
  2121. // * ErrCodeSNSNoAuthorizationFault "SNSNoAuthorization"
  2122. // You do not have permission to publish to the SNS topic ARN.
  2123. //
  2124. // * ErrCodeSNSTopicArnNotFoundFault "SNSTopicArnNotFound"
  2125. // The SNS topic ARN does not exist.
  2126. //
  2127. // * ErrCodeSubscriptionCategoryNotFoundFault "SubscriptionCategoryNotFound"
  2128. // The supplied category does not exist.
  2129. //
  2130. // * ErrCodeSourceNotFoundFault "SourceNotFound"
  2131. // The requested source could not be found.
  2132. //
  2133. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateEventSubscription
  2134. func (c *RDS) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error) {
  2135. req, out := c.CreateEventSubscriptionRequest(input)
  2136. return out, req.Send()
  2137. }
  2138. // CreateEventSubscriptionWithContext is the same as CreateEventSubscription with the addition of
  2139. // the ability to pass a context and additional request options.
  2140. //
  2141. // See CreateEventSubscription for details on how to use this API operation.
  2142. //
  2143. // The context must be non-nil and will be used for request cancellation. If
  2144. // the context is nil a panic will occur. In the future the SDK may create
  2145. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2146. // for more information on using Contexts.
  2147. func (c *RDS) CreateEventSubscriptionWithContext(ctx aws.Context, input *CreateEventSubscriptionInput, opts ...request.Option) (*CreateEventSubscriptionOutput, error) {
  2148. req, out := c.CreateEventSubscriptionRequest(input)
  2149. req.SetContext(ctx)
  2150. req.ApplyOptions(opts...)
  2151. return out, req.Send()
  2152. }
  2153. const opCreateGlobalCluster = "CreateGlobalCluster"
  2154. // CreateGlobalClusterRequest generates a "aws/request.Request" representing the
  2155. // client's request for the CreateGlobalCluster operation. The "output" return
  2156. // value will be populated with the request's response once the request completes
  2157. // successfully.
  2158. //
  2159. // Use "Send" method on the returned Request to send the API call to the service.
  2160. // the "output" return value is not valid until after Send returns without error.
  2161. //
  2162. // See CreateGlobalCluster for more information on using the CreateGlobalCluster
  2163. // API call, and error handling.
  2164. //
  2165. // This method is useful when you want to inject custom logic or configuration
  2166. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2167. //
  2168. //
  2169. // // Example sending a request using the CreateGlobalClusterRequest method.
  2170. // req, resp := client.CreateGlobalClusterRequest(params)
  2171. //
  2172. // err := req.Send()
  2173. // if err == nil { // resp is now filled
  2174. // fmt.Println(resp)
  2175. // }
  2176. //
  2177. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateGlobalCluster
  2178. func (c *RDS) CreateGlobalClusterRequest(input *CreateGlobalClusterInput) (req *request.Request, output *CreateGlobalClusterOutput) {
  2179. op := &request.Operation{
  2180. Name: opCreateGlobalCluster,
  2181. HTTPMethod: "POST",
  2182. HTTPPath: "/",
  2183. }
  2184. if input == nil {
  2185. input = &CreateGlobalClusterInput{}
  2186. }
  2187. output = &CreateGlobalClusterOutput{}
  2188. req = c.newRequest(op, input, output)
  2189. return
  2190. }
  2191. // CreateGlobalCluster API operation for Amazon Relational Database Service.
  2192. //
  2193. // Creates an Aurora global database spread across multiple regions. The global
  2194. // database contains a single primary cluster with read-write capability, and
  2195. // a read-only secondary cluster that receives data from the primary cluster
  2196. // through high-speed replication performed by the Aurora storage subsystem.
  2197. //
  2198. // You can create a global database that is initially empty, and then add a
  2199. // primary cluster and a secondary cluster to it. Or you can specify an existing
  2200. // Aurora cluster during the create operation, and this cluster becomes the
  2201. // primary cluster of the global database.
  2202. //
  2203. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2204. // with awserr.Error's Code and Message methods to get detailed information about
  2205. // the error.
  2206. //
  2207. // See the AWS API reference guide for Amazon Relational Database Service's
  2208. // API operation CreateGlobalCluster for usage and error information.
  2209. //
  2210. // Returned Error Codes:
  2211. // * ErrCodeGlobalClusterAlreadyExistsFault "GlobalClusterAlreadyExistsFault"
  2212. //
  2213. // * ErrCodeGlobalClusterQuotaExceededFault "GlobalClusterQuotaExceededFault"
  2214. //
  2215. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  2216. // The requested operation can't be performed while the cluster is in this state.
  2217. //
  2218. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  2219. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  2220. //
  2221. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateGlobalCluster
  2222. func (c *RDS) CreateGlobalCluster(input *CreateGlobalClusterInput) (*CreateGlobalClusterOutput, error) {
  2223. req, out := c.CreateGlobalClusterRequest(input)
  2224. return out, req.Send()
  2225. }
  2226. // CreateGlobalClusterWithContext is the same as CreateGlobalCluster with the addition of
  2227. // the ability to pass a context and additional request options.
  2228. //
  2229. // See CreateGlobalCluster for details on how to use this API operation.
  2230. //
  2231. // The context must be non-nil and will be used for request cancellation. If
  2232. // the context is nil a panic will occur. In the future the SDK may create
  2233. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2234. // for more information on using Contexts.
  2235. func (c *RDS) CreateGlobalClusterWithContext(ctx aws.Context, input *CreateGlobalClusterInput, opts ...request.Option) (*CreateGlobalClusterOutput, error) {
  2236. req, out := c.CreateGlobalClusterRequest(input)
  2237. req.SetContext(ctx)
  2238. req.ApplyOptions(opts...)
  2239. return out, req.Send()
  2240. }
  2241. const opCreateOptionGroup = "CreateOptionGroup"
  2242. // CreateOptionGroupRequest generates a "aws/request.Request" representing the
  2243. // client's request for the CreateOptionGroup operation. The "output" return
  2244. // value will be populated with the request's response once the request completes
  2245. // successfully.
  2246. //
  2247. // Use "Send" method on the returned Request to send the API call to the service.
  2248. // the "output" return value is not valid until after Send returns without error.
  2249. //
  2250. // See CreateOptionGroup for more information on using the CreateOptionGroup
  2251. // API call, and error handling.
  2252. //
  2253. // This method is useful when you want to inject custom logic or configuration
  2254. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2255. //
  2256. //
  2257. // // Example sending a request using the CreateOptionGroupRequest method.
  2258. // req, resp := client.CreateOptionGroupRequest(params)
  2259. //
  2260. // err := req.Send()
  2261. // if err == nil { // resp is now filled
  2262. // fmt.Println(resp)
  2263. // }
  2264. //
  2265. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateOptionGroup
  2266. func (c *RDS) CreateOptionGroupRequest(input *CreateOptionGroupInput) (req *request.Request, output *CreateOptionGroupOutput) {
  2267. op := &request.Operation{
  2268. Name: opCreateOptionGroup,
  2269. HTTPMethod: "POST",
  2270. HTTPPath: "/",
  2271. }
  2272. if input == nil {
  2273. input = &CreateOptionGroupInput{}
  2274. }
  2275. output = &CreateOptionGroupOutput{}
  2276. req = c.newRequest(op, input, output)
  2277. return
  2278. }
  2279. // CreateOptionGroup API operation for Amazon Relational Database Service.
  2280. //
  2281. // Creates a new option group. You can create up to 20 option groups.
  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 CreateOptionGroup for usage and error information.
  2289. //
  2290. // Returned Error Codes:
  2291. // * ErrCodeOptionGroupAlreadyExistsFault "OptionGroupAlreadyExistsFault"
  2292. // The option group you are trying to create already exists.
  2293. //
  2294. // * ErrCodeOptionGroupQuotaExceededFault "OptionGroupQuotaExceededFault"
  2295. // The quota of 20 option groups was exceeded for this AWS account.
  2296. //
  2297. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateOptionGroup
  2298. func (c *RDS) CreateOptionGroup(input *CreateOptionGroupInput) (*CreateOptionGroupOutput, error) {
  2299. req, out := c.CreateOptionGroupRequest(input)
  2300. return out, req.Send()
  2301. }
  2302. // CreateOptionGroupWithContext is the same as CreateOptionGroup with the addition of
  2303. // the ability to pass a context and additional request options.
  2304. //
  2305. // See CreateOptionGroup for details on how to use this API operation.
  2306. //
  2307. // The context must be non-nil and will be used for request cancellation. If
  2308. // the context is nil a panic will occur. In the future the SDK may create
  2309. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2310. // for more information on using Contexts.
  2311. func (c *RDS) CreateOptionGroupWithContext(ctx aws.Context, input *CreateOptionGroupInput, opts ...request.Option) (*CreateOptionGroupOutput, error) {
  2312. req, out := c.CreateOptionGroupRequest(input)
  2313. req.SetContext(ctx)
  2314. req.ApplyOptions(opts...)
  2315. return out, req.Send()
  2316. }
  2317. const opDeleteDBCluster = "DeleteDBCluster"
  2318. // DeleteDBClusterRequest generates a "aws/request.Request" representing the
  2319. // client's request for the DeleteDBCluster operation. The "output" return
  2320. // value will be populated with the request's response once the request completes
  2321. // successfully.
  2322. //
  2323. // Use "Send" method on the returned Request to send the API call to the service.
  2324. // the "output" return value is not valid until after Send returns without error.
  2325. //
  2326. // See DeleteDBCluster for more information on using the DeleteDBCluster
  2327. // API call, and error handling.
  2328. //
  2329. // This method is useful when you want to inject custom logic or configuration
  2330. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2331. //
  2332. //
  2333. // // Example sending a request using the DeleteDBClusterRequest method.
  2334. // req, resp := client.DeleteDBClusterRequest(params)
  2335. //
  2336. // err := req.Send()
  2337. // if err == nil { // resp is now filled
  2338. // fmt.Println(resp)
  2339. // }
  2340. //
  2341. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBCluster
  2342. func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request.Request, output *DeleteDBClusterOutput) {
  2343. op := &request.Operation{
  2344. Name: opDeleteDBCluster,
  2345. HTTPMethod: "POST",
  2346. HTTPPath: "/",
  2347. }
  2348. if input == nil {
  2349. input = &DeleteDBClusterInput{}
  2350. }
  2351. output = &DeleteDBClusterOutput{}
  2352. req = c.newRequest(op, input, output)
  2353. return
  2354. }
  2355. // DeleteDBCluster API operation for Amazon Relational Database Service.
  2356. //
  2357. // The DeleteDBCluster action deletes a previously provisioned DB cluster. When
  2358. // you delete a DB cluster, all automated backups for that DB cluster are deleted
  2359. // and can't be recovered. Manual DB cluster snapshots of the specified DB cluster
  2360. // are not deleted.
  2361. //
  2362. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)in the Amazon Aurora User Guide.
  2363. //
  2364. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2365. // with awserr.Error's Code and Message methods to get detailed information about
  2366. // the error.
  2367. //
  2368. // See the AWS API reference guide for Amazon Relational Database Service's
  2369. // API operation DeleteDBCluster for usage and error information.
  2370. //
  2371. // Returned Error Codes:
  2372. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  2373. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  2374. //
  2375. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  2376. // The requested operation can't be performed while the cluster is in this state.
  2377. //
  2378. // * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault"
  2379. // The user already has a DB cluster snapshot with the given identifier.
  2380. //
  2381. // * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded"
  2382. // The request would result in the user exceeding the allowed number of DB snapshots.
  2383. //
  2384. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  2385. // The supplied value isn't a valid DB cluster snapshot state.
  2386. //
  2387. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBCluster
  2388. func (c *RDS) DeleteDBCluster(input *DeleteDBClusterInput) (*DeleteDBClusterOutput, error) {
  2389. req, out := c.DeleteDBClusterRequest(input)
  2390. return out, req.Send()
  2391. }
  2392. // DeleteDBClusterWithContext is the same as DeleteDBCluster with the addition of
  2393. // the ability to pass a context and additional request options.
  2394. //
  2395. // See DeleteDBCluster for details on how to use this API operation.
  2396. //
  2397. // The context must be non-nil and will be used for request cancellation. If
  2398. // the context is nil a panic will occur. In the future the SDK may create
  2399. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2400. // for more information on using Contexts.
  2401. func (c *RDS) DeleteDBClusterWithContext(ctx aws.Context, input *DeleteDBClusterInput, opts ...request.Option) (*DeleteDBClusterOutput, error) {
  2402. req, out := c.DeleteDBClusterRequest(input)
  2403. req.SetContext(ctx)
  2404. req.ApplyOptions(opts...)
  2405. return out, req.Send()
  2406. }
  2407. const opDeleteDBClusterEndpoint = "DeleteDBClusterEndpoint"
  2408. // DeleteDBClusterEndpointRequest generates a "aws/request.Request" representing the
  2409. // client's request for the DeleteDBClusterEndpoint operation. The "output" return
  2410. // value will be populated with the request's response once the request completes
  2411. // successfully.
  2412. //
  2413. // Use "Send" method on the returned Request to send the API call to the service.
  2414. // the "output" return value is not valid until after Send returns without error.
  2415. //
  2416. // See DeleteDBClusterEndpoint for more information on using the DeleteDBClusterEndpoint
  2417. // API call, and error handling.
  2418. //
  2419. // This method is useful when you want to inject custom logic or configuration
  2420. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2421. //
  2422. //
  2423. // // Example sending a request using the DeleteDBClusterEndpointRequest method.
  2424. // req, resp := client.DeleteDBClusterEndpointRequest(params)
  2425. //
  2426. // err := req.Send()
  2427. // if err == nil { // resp is now filled
  2428. // fmt.Println(resp)
  2429. // }
  2430. //
  2431. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterEndpoint
  2432. func (c *RDS) DeleteDBClusterEndpointRequest(input *DeleteDBClusterEndpointInput) (req *request.Request, output *DeleteDBClusterEndpointOutput) {
  2433. op := &request.Operation{
  2434. Name: opDeleteDBClusterEndpoint,
  2435. HTTPMethod: "POST",
  2436. HTTPPath: "/",
  2437. }
  2438. if input == nil {
  2439. input = &DeleteDBClusterEndpointInput{}
  2440. }
  2441. output = &DeleteDBClusterEndpointOutput{}
  2442. req = c.newRequest(op, input, output)
  2443. return
  2444. }
  2445. // DeleteDBClusterEndpoint API operation for Amazon Relational Database Service.
  2446. //
  2447. // Deletes a custom endpoint and removes it from an Amazon Aurora DB cluster.
  2448. //
  2449. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2450. // with awserr.Error's Code and Message methods to get detailed information about
  2451. // the error.
  2452. //
  2453. // See the AWS API reference guide for Amazon Relational Database Service's
  2454. // API operation DeleteDBClusterEndpoint for usage and error information.
  2455. //
  2456. // Returned Error Codes:
  2457. // * ErrCodeInvalidDBClusterEndpointStateFault "InvalidDBClusterEndpointStateFault"
  2458. // The requested operation can't be performed on the endpoint while the endpoint
  2459. // is in this state.
  2460. //
  2461. // * ErrCodeDBClusterEndpointNotFoundFault "DBClusterEndpointNotFoundFault"
  2462. // The specified custom endpoint doesn't exist.
  2463. //
  2464. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  2465. // The requested operation can't be performed while the cluster is in this state.
  2466. //
  2467. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterEndpoint
  2468. func (c *RDS) DeleteDBClusterEndpoint(input *DeleteDBClusterEndpointInput) (*DeleteDBClusterEndpointOutput, error) {
  2469. req, out := c.DeleteDBClusterEndpointRequest(input)
  2470. return out, req.Send()
  2471. }
  2472. // DeleteDBClusterEndpointWithContext is the same as DeleteDBClusterEndpoint with the addition of
  2473. // the ability to pass a context and additional request options.
  2474. //
  2475. // See DeleteDBClusterEndpoint for details on how to use this API operation.
  2476. //
  2477. // The context must be non-nil and will be used for request cancellation. If
  2478. // the context is nil a panic will occur. In the future the SDK may create
  2479. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2480. // for more information on using Contexts.
  2481. func (c *RDS) DeleteDBClusterEndpointWithContext(ctx aws.Context, input *DeleteDBClusterEndpointInput, opts ...request.Option) (*DeleteDBClusterEndpointOutput, error) {
  2482. req, out := c.DeleteDBClusterEndpointRequest(input)
  2483. req.SetContext(ctx)
  2484. req.ApplyOptions(opts...)
  2485. return out, req.Send()
  2486. }
  2487. const opDeleteDBClusterParameterGroup = "DeleteDBClusterParameterGroup"
  2488. // DeleteDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  2489. // client's request for the DeleteDBClusterParameterGroup operation. The "output" return
  2490. // value will be populated with the request's response once the request completes
  2491. // successfully.
  2492. //
  2493. // Use "Send" method on the returned Request to send the API call to the service.
  2494. // the "output" return value is not valid until after Send returns without error.
  2495. //
  2496. // See DeleteDBClusterParameterGroup for more information on using the DeleteDBClusterParameterGroup
  2497. // API call, and error handling.
  2498. //
  2499. // This method is useful when you want to inject custom logic or configuration
  2500. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2501. //
  2502. //
  2503. // // Example sending a request using the DeleteDBClusterParameterGroupRequest method.
  2504. // req, resp := client.DeleteDBClusterParameterGroupRequest(params)
  2505. //
  2506. // err := req.Send()
  2507. // if err == nil { // resp is now filled
  2508. // fmt.Println(resp)
  2509. // }
  2510. //
  2511. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterParameterGroup
  2512. func (c *RDS) DeleteDBClusterParameterGroupRequest(input *DeleteDBClusterParameterGroupInput) (req *request.Request, output *DeleteDBClusterParameterGroupOutput) {
  2513. op := &request.Operation{
  2514. Name: opDeleteDBClusterParameterGroup,
  2515. HTTPMethod: "POST",
  2516. HTTPPath: "/",
  2517. }
  2518. if input == nil {
  2519. input = &DeleteDBClusterParameterGroupInput{}
  2520. }
  2521. output = &DeleteDBClusterParameterGroupOutput{}
  2522. req = c.newRequest(op, input, output)
  2523. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2524. return
  2525. }
  2526. // DeleteDBClusterParameterGroup API operation for Amazon Relational Database Service.
  2527. //
  2528. // Deletes a specified DB cluster parameter group. The DB cluster parameter
  2529. // group to be deleted can't be associated with any DB clusters.
  2530. //
  2531. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  2532. // in the Amazon Aurora User Guide.
  2533. //
  2534. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2535. // with awserr.Error's Code and Message methods to get detailed information about
  2536. // the error.
  2537. //
  2538. // See the AWS API reference guide for Amazon Relational Database Service's
  2539. // API operation DeleteDBClusterParameterGroup for usage and error information.
  2540. //
  2541. // Returned Error Codes:
  2542. // * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState"
  2543. // The DB parameter group is in use or is in an invalid state. If you are attempting
  2544. // to delete the parameter group, you can't delete it when the parameter group
  2545. // is in this state.
  2546. //
  2547. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  2548. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  2549. //
  2550. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterParameterGroup
  2551. func (c *RDS) DeleteDBClusterParameterGroup(input *DeleteDBClusterParameterGroupInput) (*DeleteDBClusterParameterGroupOutput, error) {
  2552. req, out := c.DeleteDBClusterParameterGroupRequest(input)
  2553. return out, req.Send()
  2554. }
  2555. // DeleteDBClusterParameterGroupWithContext is the same as DeleteDBClusterParameterGroup with the addition of
  2556. // the ability to pass a context and additional request options.
  2557. //
  2558. // See DeleteDBClusterParameterGroup for details on how to use this API operation.
  2559. //
  2560. // The context must be non-nil and will be used for request cancellation. If
  2561. // the context is nil a panic will occur. In the future the SDK may create
  2562. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2563. // for more information on using Contexts.
  2564. func (c *RDS) DeleteDBClusterParameterGroupWithContext(ctx aws.Context, input *DeleteDBClusterParameterGroupInput, opts ...request.Option) (*DeleteDBClusterParameterGroupOutput, error) {
  2565. req, out := c.DeleteDBClusterParameterGroupRequest(input)
  2566. req.SetContext(ctx)
  2567. req.ApplyOptions(opts...)
  2568. return out, req.Send()
  2569. }
  2570. const opDeleteDBClusterSnapshot = "DeleteDBClusterSnapshot"
  2571. // DeleteDBClusterSnapshotRequest generates a "aws/request.Request" representing the
  2572. // client's request for the DeleteDBClusterSnapshot operation. The "output" return
  2573. // value will be populated with the request's response once the request completes
  2574. // successfully.
  2575. //
  2576. // Use "Send" method on the returned Request to send the API call to the service.
  2577. // the "output" return value is not valid until after Send returns without error.
  2578. //
  2579. // See DeleteDBClusterSnapshot for more information on using the DeleteDBClusterSnapshot
  2580. // API call, and error handling.
  2581. //
  2582. // This method is useful when you want to inject custom logic or configuration
  2583. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2584. //
  2585. //
  2586. // // Example sending a request using the DeleteDBClusterSnapshotRequest method.
  2587. // req, resp := client.DeleteDBClusterSnapshotRequest(params)
  2588. //
  2589. // err := req.Send()
  2590. // if err == nil { // resp is now filled
  2591. // fmt.Println(resp)
  2592. // }
  2593. //
  2594. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterSnapshot
  2595. func (c *RDS) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput) (req *request.Request, output *DeleteDBClusterSnapshotOutput) {
  2596. op := &request.Operation{
  2597. Name: opDeleteDBClusterSnapshot,
  2598. HTTPMethod: "POST",
  2599. HTTPPath: "/",
  2600. }
  2601. if input == nil {
  2602. input = &DeleteDBClusterSnapshotInput{}
  2603. }
  2604. output = &DeleteDBClusterSnapshotOutput{}
  2605. req = c.newRequest(op, input, output)
  2606. return
  2607. }
  2608. // DeleteDBClusterSnapshot API operation for Amazon Relational Database Service.
  2609. //
  2610. // Deletes a DB cluster snapshot. If the snapshot is being copied, the copy
  2611. // operation is terminated.
  2612. //
  2613. // The DB cluster snapshot must be in the available state to be deleted.
  2614. //
  2615. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  2616. // in the Amazon Aurora User Guide.
  2617. //
  2618. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2619. // with awserr.Error's Code and Message methods to get detailed information about
  2620. // the error.
  2621. //
  2622. // See the AWS API reference guide for Amazon Relational Database Service's
  2623. // API operation DeleteDBClusterSnapshot for usage and error information.
  2624. //
  2625. // Returned Error Codes:
  2626. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  2627. // The supplied value isn't a valid DB cluster snapshot state.
  2628. //
  2629. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  2630. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  2631. //
  2632. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterSnapshot
  2633. func (c *RDS) DeleteDBClusterSnapshot(input *DeleteDBClusterSnapshotInput) (*DeleteDBClusterSnapshotOutput, error) {
  2634. req, out := c.DeleteDBClusterSnapshotRequest(input)
  2635. return out, req.Send()
  2636. }
  2637. // DeleteDBClusterSnapshotWithContext is the same as DeleteDBClusterSnapshot with the addition of
  2638. // the ability to pass a context and additional request options.
  2639. //
  2640. // See DeleteDBClusterSnapshot for details on how to use this API operation.
  2641. //
  2642. // The context must be non-nil and will be used for request cancellation. If
  2643. // the context is nil a panic will occur. In the future the SDK may create
  2644. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2645. // for more information on using Contexts.
  2646. func (c *RDS) DeleteDBClusterSnapshotWithContext(ctx aws.Context, input *DeleteDBClusterSnapshotInput, opts ...request.Option) (*DeleteDBClusterSnapshotOutput, error) {
  2647. req, out := c.DeleteDBClusterSnapshotRequest(input)
  2648. req.SetContext(ctx)
  2649. req.ApplyOptions(opts...)
  2650. return out, req.Send()
  2651. }
  2652. const opDeleteDBInstance = "DeleteDBInstance"
  2653. // DeleteDBInstanceRequest generates a "aws/request.Request" representing the
  2654. // client's request for the DeleteDBInstance operation. The "output" return
  2655. // value will be populated with the request's response once the request completes
  2656. // successfully.
  2657. //
  2658. // Use "Send" method on the returned Request to send the API call to the service.
  2659. // the "output" return value is not valid until after Send returns without error.
  2660. //
  2661. // See DeleteDBInstance for more information on using the DeleteDBInstance
  2662. // API call, and error handling.
  2663. //
  2664. // This method is useful when you want to inject custom logic or configuration
  2665. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2666. //
  2667. //
  2668. // // Example sending a request using the DeleteDBInstanceRequest method.
  2669. // req, resp := client.DeleteDBInstanceRequest(params)
  2670. //
  2671. // err := req.Send()
  2672. // if err == nil { // resp is now filled
  2673. // fmt.Println(resp)
  2674. // }
  2675. //
  2676. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBInstance
  2677. func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *request.Request, output *DeleteDBInstanceOutput) {
  2678. op := &request.Operation{
  2679. Name: opDeleteDBInstance,
  2680. HTTPMethod: "POST",
  2681. HTTPPath: "/",
  2682. }
  2683. if input == nil {
  2684. input = &DeleteDBInstanceInput{}
  2685. }
  2686. output = &DeleteDBInstanceOutput{}
  2687. req = c.newRequest(op, input, output)
  2688. return
  2689. }
  2690. // DeleteDBInstance API operation for Amazon Relational Database Service.
  2691. //
  2692. // The DeleteDBInstance action deletes a previously provisioned DB instance.
  2693. // When you delete a DB instance, all automated backups for that instance are
  2694. // deleted and can't be recovered. Manual DB snapshots of the DB instance to
  2695. // be deleted by DeleteDBInstance are not deleted.
  2696. //
  2697. // If you request a final DB snapshot the status of the Amazon RDS DB instance
  2698. // is deleting until the DB snapshot is created. The API action DescribeDBInstance
  2699. // is used to monitor the status of this operation. The action can't be canceled
  2700. // or reverted once submitted.
  2701. //
  2702. // Note that when a DB instance is in a failure state and has a status of failed,
  2703. // incompatible-restore, or incompatible-network, you can only delete it when
  2704. // the SkipFinalSnapshot parameter is set to true.
  2705. //
  2706. // If the specified DB instance is part of an Amazon Aurora DB cluster, you
  2707. // can't delete the DB instance if both of the following conditions are true:
  2708. //
  2709. // * The DB cluster is a Read Replica of another Amazon Aurora DB cluster.
  2710. //
  2711. // * The DB instance is the only instance in the DB cluster.
  2712. //
  2713. // To delete a DB instance in this case, first call the PromoteReadReplicaDBCluster
  2714. // API action to promote the DB cluster so it's no longer a Read Replica. After
  2715. // the promotion completes, then call the DeleteDBInstance API action to delete
  2716. // the final instance in the DB cluster.
  2717. //
  2718. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2719. // with awserr.Error's Code and Message methods to get detailed information about
  2720. // the error.
  2721. //
  2722. // See the AWS API reference guide for Amazon Relational Database Service's
  2723. // API operation DeleteDBInstance for usage and error information.
  2724. //
  2725. // Returned Error Codes:
  2726. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  2727. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  2728. //
  2729. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  2730. // The DB instance isn't in a valid state.
  2731. //
  2732. // * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists"
  2733. // DBSnapshotIdentifier is already used by an existing snapshot.
  2734. //
  2735. // * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded"
  2736. // The request would result in the user exceeding the allowed number of DB snapshots.
  2737. //
  2738. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  2739. // The requested operation can't be performed while the cluster is in this state.
  2740. //
  2741. // * ErrCodeDBInstanceAutomatedBackupQuotaExceededFault "DBInstanceAutomatedBackupQuotaExceeded"
  2742. // The quota for retained automated backups was exceeded. This prevents you
  2743. // from retaining any additional automated backups. The retained automated backups
  2744. // quota is the same as your DB Instance quota.
  2745. //
  2746. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBInstance
  2747. func (c *RDS) DeleteDBInstance(input *DeleteDBInstanceInput) (*DeleteDBInstanceOutput, error) {
  2748. req, out := c.DeleteDBInstanceRequest(input)
  2749. return out, req.Send()
  2750. }
  2751. // DeleteDBInstanceWithContext is the same as DeleteDBInstance with the addition of
  2752. // the ability to pass a context and additional request options.
  2753. //
  2754. // See DeleteDBInstance for details on how to use this API operation.
  2755. //
  2756. // The context must be non-nil and will be used for request cancellation. If
  2757. // the context is nil a panic will occur. In the future the SDK may create
  2758. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2759. // for more information on using Contexts.
  2760. func (c *RDS) DeleteDBInstanceWithContext(ctx aws.Context, input *DeleteDBInstanceInput, opts ...request.Option) (*DeleteDBInstanceOutput, error) {
  2761. req, out := c.DeleteDBInstanceRequest(input)
  2762. req.SetContext(ctx)
  2763. req.ApplyOptions(opts...)
  2764. return out, req.Send()
  2765. }
  2766. const opDeleteDBInstanceAutomatedBackup = "DeleteDBInstanceAutomatedBackup"
  2767. // DeleteDBInstanceAutomatedBackupRequest generates a "aws/request.Request" representing the
  2768. // client's request for the DeleteDBInstanceAutomatedBackup operation. The "output" return
  2769. // value will be populated with the request's response once the request completes
  2770. // successfully.
  2771. //
  2772. // Use "Send" method on the returned Request to send the API call to the service.
  2773. // the "output" return value is not valid until after Send returns without error.
  2774. //
  2775. // See DeleteDBInstanceAutomatedBackup for more information on using the DeleteDBInstanceAutomatedBackup
  2776. // API call, and error handling.
  2777. //
  2778. // This method is useful when you want to inject custom logic or configuration
  2779. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2780. //
  2781. //
  2782. // // Example sending a request using the DeleteDBInstanceAutomatedBackupRequest method.
  2783. // req, resp := client.DeleteDBInstanceAutomatedBackupRequest(params)
  2784. //
  2785. // err := req.Send()
  2786. // if err == nil { // resp is now filled
  2787. // fmt.Println(resp)
  2788. // }
  2789. //
  2790. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBInstanceAutomatedBackup
  2791. func (c *RDS) DeleteDBInstanceAutomatedBackupRequest(input *DeleteDBInstanceAutomatedBackupInput) (req *request.Request, output *DeleteDBInstanceAutomatedBackupOutput) {
  2792. op := &request.Operation{
  2793. Name: opDeleteDBInstanceAutomatedBackup,
  2794. HTTPMethod: "POST",
  2795. HTTPPath: "/",
  2796. }
  2797. if input == nil {
  2798. input = &DeleteDBInstanceAutomatedBackupInput{}
  2799. }
  2800. output = &DeleteDBInstanceAutomatedBackupOutput{}
  2801. req = c.newRequest(op, input, output)
  2802. return
  2803. }
  2804. // DeleteDBInstanceAutomatedBackup API operation for Amazon Relational Database Service.
  2805. //
  2806. // Deletes automated backups based on the source instance's DbiResourceId value
  2807. // or the restorable instance's resource ID.
  2808. //
  2809. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2810. // with awserr.Error's Code and Message methods to get detailed information about
  2811. // the error.
  2812. //
  2813. // See the AWS API reference guide for Amazon Relational Database Service's
  2814. // API operation DeleteDBInstanceAutomatedBackup for usage and error information.
  2815. //
  2816. // Returned Error Codes:
  2817. // * ErrCodeInvalidDBInstanceAutomatedBackupStateFault "InvalidDBInstanceAutomatedBackupState"
  2818. // The automated backup is in an invalid state. For example, this automated
  2819. // backup is associated with an active instance.
  2820. //
  2821. // * ErrCodeDBInstanceAutomatedBackupNotFoundFault "DBInstanceAutomatedBackupNotFound"
  2822. // No automated backup for this DB instance was found.
  2823. //
  2824. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBInstanceAutomatedBackup
  2825. func (c *RDS) DeleteDBInstanceAutomatedBackup(input *DeleteDBInstanceAutomatedBackupInput) (*DeleteDBInstanceAutomatedBackupOutput, error) {
  2826. req, out := c.DeleteDBInstanceAutomatedBackupRequest(input)
  2827. return out, req.Send()
  2828. }
  2829. // DeleteDBInstanceAutomatedBackupWithContext is the same as DeleteDBInstanceAutomatedBackup with the addition of
  2830. // the ability to pass a context and additional request options.
  2831. //
  2832. // See DeleteDBInstanceAutomatedBackup for details on how to use this API operation.
  2833. //
  2834. // The context must be non-nil and will be used for request cancellation. If
  2835. // the context is nil a panic will occur. In the future the SDK may create
  2836. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2837. // for more information on using Contexts.
  2838. func (c *RDS) DeleteDBInstanceAutomatedBackupWithContext(ctx aws.Context, input *DeleteDBInstanceAutomatedBackupInput, opts ...request.Option) (*DeleteDBInstanceAutomatedBackupOutput, error) {
  2839. req, out := c.DeleteDBInstanceAutomatedBackupRequest(input)
  2840. req.SetContext(ctx)
  2841. req.ApplyOptions(opts...)
  2842. return out, req.Send()
  2843. }
  2844. const opDeleteDBParameterGroup = "DeleteDBParameterGroup"
  2845. // DeleteDBParameterGroupRequest generates a "aws/request.Request" representing the
  2846. // client's request for the DeleteDBParameterGroup operation. The "output" return
  2847. // value will be populated with the request's response once the request completes
  2848. // successfully.
  2849. //
  2850. // Use "Send" method on the returned Request to send the API call to the service.
  2851. // the "output" return value is not valid until after Send returns without error.
  2852. //
  2853. // See DeleteDBParameterGroup for more information on using the DeleteDBParameterGroup
  2854. // API call, and error handling.
  2855. //
  2856. // This method is useful when you want to inject custom logic or configuration
  2857. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2858. //
  2859. //
  2860. // // Example sending a request using the DeleteDBParameterGroupRequest method.
  2861. // req, resp := client.DeleteDBParameterGroupRequest(params)
  2862. //
  2863. // err := req.Send()
  2864. // if err == nil { // resp is now filled
  2865. // fmt.Println(resp)
  2866. // }
  2867. //
  2868. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBParameterGroup
  2869. func (c *RDS) DeleteDBParameterGroupRequest(input *DeleteDBParameterGroupInput) (req *request.Request, output *DeleteDBParameterGroupOutput) {
  2870. op := &request.Operation{
  2871. Name: opDeleteDBParameterGroup,
  2872. HTTPMethod: "POST",
  2873. HTTPPath: "/",
  2874. }
  2875. if input == nil {
  2876. input = &DeleteDBParameterGroupInput{}
  2877. }
  2878. output = &DeleteDBParameterGroupOutput{}
  2879. req = c.newRequest(op, input, output)
  2880. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2881. return
  2882. }
  2883. // DeleteDBParameterGroup API operation for Amazon Relational Database Service.
  2884. //
  2885. // Deletes a specified DB parameter group. The DB parameter group to be deleted
  2886. // can't be associated with any DB instances.
  2887. //
  2888. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2889. // with awserr.Error's Code and Message methods to get detailed information about
  2890. // the error.
  2891. //
  2892. // See the AWS API reference guide for Amazon Relational Database Service's
  2893. // API operation DeleteDBParameterGroup for usage and error information.
  2894. //
  2895. // Returned Error Codes:
  2896. // * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState"
  2897. // The DB parameter group is in use or is in an invalid state. If you are attempting
  2898. // to delete the parameter group, you can't delete it when the parameter group
  2899. // is in this state.
  2900. //
  2901. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  2902. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  2903. //
  2904. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBParameterGroup
  2905. func (c *RDS) DeleteDBParameterGroup(input *DeleteDBParameterGroupInput) (*DeleteDBParameterGroupOutput, error) {
  2906. req, out := c.DeleteDBParameterGroupRequest(input)
  2907. return out, req.Send()
  2908. }
  2909. // DeleteDBParameterGroupWithContext is the same as DeleteDBParameterGroup with the addition of
  2910. // the ability to pass a context and additional request options.
  2911. //
  2912. // See DeleteDBParameterGroup for details on how to use this API operation.
  2913. //
  2914. // The context must be non-nil and will be used for request cancellation. If
  2915. // the context is nil a panic will occur. In the future the SDK may create
  2916. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2917. // for more information on using Contexts.
  2918. func (c *RDS) DeleteDBParameterGroupWithContext(ctx aws.Context, input *DeleteDBParameterGroupInput, opts ...request.Option) (*DeleteDBParameterGroupOutput, error) {
  2919. req, out := c.DeleteDBParameterGroupRequest(input)
  2920. req.SetContext(ctx)
  2921. req.ApplyOptions(opts...)
  2922. return out, req.Send()
  2923. }
  2924. const opDeleteDBSecurityGroup = "DeleteDBSecurityGroup"
  2925. // DeleteDBSecurityGroupRequest generates a "aws/request.Request" representing the
  2926. // client's request for the DeleteDBSecurityGroup operation. The "output" return
  2927. // value will be populated with the request's response once the request completes
  2928. // successfully.
  2929. //
  2930. // Use "Send" method on the returned Request to send the API call to the service.
  2931. // the "output" return value is not valid until after Send returns without error.
  2932. //
  2933. // See DeleteDBSecurityGroup for more information on using the DeleteDBSecurityGroup
  2934. // API call, and error handling.
  2935. //
  2936. // This method is useful when you want to inject custom logic or configuration
  2937. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2938. //
  2939. //
  2940. // // Example sending a request using the DeleteDBSecurityGroupRequest method.
  2941. // req, resp := client.DeleteDBSecurityGroupRequest(params)
  2942. //
  2943. // err := req.Send()
  2944. // if err == nil { // resp is now filled
  2945. // fmt.Println(resp)
  2946. // }
  2947. //
  2948. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSecurityGroup
  2949. func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (req *request.Request, output *DeleteDBSecurityGroupOutput) {
  2950. op := &request.Operation{
  2951. Name: opDeleteDBSecurityGroup,
  2952. HTTPMethod: "POST",
  2953. HTTPPath: "/",
  2954. }
  2955. if input == nil {
  2956. input = &DeleteDBSecurityGroupInput{}
  2957. }
  2958. output = &DeleteDBSecurityGroupOutput{}
  2959. req = c.newRequest(op, input, output)
  2960. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2961. return
  2962. }
  2963. // DeleteDBSecurityGroup API operation for Amazon Relational Database Service.
  2964. //
  2965. // Deletes a DB security group.
  2966. //
  2967. // The specified DB security group must not be associated with any DB instances.
  2968. //
  2969. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2970. // with awserr.Error's Code and Message methods to get detailed information about
  2971. // the error.
  2972. //
  2973. // See the AWS API reference guide for Amazon Relational Database Service's
  2974. // API operation DeleteDBSecurityGroup for usage and error information.
  2975. //
  2976. // Returned Error Codes:
  2977. // * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState"
  2978. // The state of the DB security group doesn't allow deletion.
  2979. //
  2980. // * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound"
  2981. // DBSecurityGroupName doesn't refer to an existing DB security group.
  2982. //
  2983. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSecurityGroup
  2984. func (c *RDS) DeleteDBSecurityGroup(input *DeleteDBSecurityGroupInput) (*DeleteDBSecurityGroupOutput, error) {
  2985. req, out := c.DeleteDBSecurityGroupRequest(input)
  2986. return out, req.Send()
  2987. }
  2988. // DeleteDBSecurityGroupWithContext is the same as DeleteDBSecurityGroup with the addition of
  2989. // the ability to pass a context and additional request options.
  2990. //
  2991. // See DeleteDBSecurityGroup for details on how to use this API operation.
  2992. //
  2993. // The context must be non-nil and will be used for request cancellation. If
  2994. // the context is nil a panic will occur. In the future the SDK may create
  2995. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2996. // for more information on using Contexts.
  2997. func (c *RDS) DeleteDBSecurityGroupWithContext(ctx aws.Context, input *DeleteDBSecurityGroupInput, opts ...request.Option) (*DeleteDBSecurityGroupOutput, error) {
  2998. req, out := c.DeleteDBSecurityGroupRequest(input)
  2999. req.SetContext(ctx)
  3000. req.ApplyOptions(opts...)
  3001. return out, req.Send()
  3002. }
  3003. const opDeleteDBSnapshot = "DeleteDBSnapshot"
  3004. // DeleteDBSnapshotRequest generates a "aws/request.Request" representing the
  3005. // client's request for the DeleteDBSnapshot operation. The "output" return
  3006. // value will be populated with the request's response once the request completes
  3007. // successfully.
  3008. //
  3009. // Use "Send" method on the returned Request to send the API call to the service.
  3010. // the "output" return value is not valid until after Send returns without error.
  3011. //
  3012. // See DeleteDBSnapshot for more information on using the DeleteDBSnapshot
  3013. // API call, and error handling.
  3014. //
  3015. // This method is useful when you want to inject custom logic or configuration
  3016. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3017. //
  3018. //
  3019. // // Example sending a request using the DeleteDBSnapshotRequest method.
  3020. // req, resp := client.DeleteDBSnapshotRequest(params)
  3021. //
  3022. // err := req.Send()
  3023. // if err == nil { // resp is now filled
  3024. // fmt.Println(resp)
  3025. // }
  3026. //
  3027. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSnapshot
  3028. func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *request.Request, output *DeleteDBSnapshotOutput) {
  3029. op := &request.Operation{
  3030. Name: opDeleteDBSnapshot,
  3031. HTTPMethod: "POST",
  3032. HTTPPath: "/",
  3033. }
  3034. if input == nil {
  3035. input = &DeleteDBSnapshotInput{}
  3036. }
  3037. output = &DeleteDBSnapshotOutput{}
  3038. req = c.newRequest(op, input, output)
  3039. return
  3040. }
  3041. // DeleteDBSnapshot API operation for Amazon Relational Database Service.
  3042. //
  3043. // Deletes a DB snapshot. If the snapshot is being copied, the copy operation
  3044. // is terminated.
  3045. //
  3046. // The DB snapshot must be in the available state to be deleted.
  3047. //
  3048. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3049. // with awserr.Error's Code and Message methods to get detailed information about
  3050. // the error.
  3051. //
  3052. // See the AWS API reference guide for Amazon Relational Database Service's
  3053. // API operation DeleteDBSnapshot for usage and error information.
  3054. //
  3055. // Returned Error Codes:
  3056. // * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState"
  3057. // The state of the DB snapshot doesn't allow deletion.
  3058. //
  3059. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  3060. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  3061. //
  3062. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSnapshot
  3063. func (c *RDS) DeleteDBSnapshot(input *DeleteDBSnapshotInput) (*DeleteDBSnapshotOutput, error) {
  3064. req, out := c.DeleteDBSnapshotRequest(input)
  3065. return out, req.Send()
  3066. }
  3067. // DeleteDBSnapshotWithContext is the same as DeleteDBSnapshot with the addition of
  3068. // the ability to pass a context and additional request options.
  3069. //
  3070. // See DeleteDBSnapshot for details on how to use this API operation.
  3071. //
  3072. // The context must be non-nil and will be used for request cancellation. If
  3073. // the context is nil a panic will occur. In the future the SDK may create
  3074. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3075. // for more information on using Contexts.
  3076. func (c *RDS) DeleteDBSnapshotWithContext(ctx aws.Context, input *DeleteDBSnapshotInput, opts ...request.Option) (*DeleteDBSnapshotOutput, error) {
  3077. req, out := c.DeleteDBSnapshotRequest(input)
  3078. req.SetContext(ctx)
  3079. req.ApplyOptions(opts...)
  3080. return out, req.Send()
  3081. }
  3082. const opDeleteDBSubnetGroup = "DeleteDBSubnetGroup"
  3083. // DeleteDBSubnetGroupRequest generates a "aws/request.Request" representing the
  3084. // client's request for the DeleteDBSubnetGroup operation. The "output" return
  3085. // value will be populated with the request's response once the request completes
  3086. // successfully.
  3087. //
  3088. // Use "Send" method on the returned Request to send the API call to the service.
  3089. // the "output" return value is not valid until after Send returns without error.
  3090. //
  3091. // See DeleteDBSubnetGroup for more information on using the DeleteDBSubnetGroup
  3092. // API call, and error handling.
  3093. //
  3094. // This method is useful when you want to inject custom logic or configuration
  3095. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3096. //
  3097. //
  3098. // // Example sending a request using the DeleteDBSubnetGroupRequest method.
  3099. // req, resp := client.DeleteDBSubnetGroupRequest(params)
  3100. //
  3101. // err := req.Send()
  3102. // if err == nil { // resp is now filled
  3103. // fmt.Println(resp)
  3104. // }
  3105. //
  3106. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSubnetGroup
  3107. func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req *request.Request, output *DeleteDBSubnetGroupOutput) {
  3108. op := &request.Operation{
  3109. Name: opDeleteDBSubnetGroup,
  3110. HTTPMethod: "POST",
  3111. HTTPPath: "/",
  3112. }
  3113. if input == nil {
  3114. input = &DeleteDBSubnetGroupInput{}
  3115. }
  3116. output = &DeleteDBSubnetGroupOutput{}
  3117. req = c.newRequest(op, input, output)
  3118. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3119. return
  3120. }
  3121. // DeleteDBSubnetGroup API operation for Amazon Relational Database Service.
  3122. //
  3123. // Deletes a DB subnet group.
  3124. //
  3125. // The specified database subnet group must not be associated with any DB instances.
  3126. //
  3127. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3128. // with awserr.Error's Code and Message methods to get detailed information about
  3129. // the error.
  3130. //
  3131. // See the AWS API reference guide for Amazon Relational Database Service's
  3132. // API operation DeleteDBSubnetGroup for usage and error information.
  3133. //
  3134. // Returned Error Codes:
  3135. // * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault"
  3136. // The DB subnet group cannot be deleted because it's in use.
  3137. //
  3138. // * ErrCodeInvalidDBSubnetStateFault "InvalidDBSubnetStateFault"
  3139. // The DB subnet isn't in the available state.
  3140. //
  3141. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  3142. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  3143. //
  3144. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBSubnetGroup
  3145. func (c *RDS) DeleteDBSubnetGroup(input *DeleteDBSubnetGroupInput) (*DeleteDBSubnetGroupOutput, error) {
  3146. req, out := c.DeleteDBSubnetGroupRequest(input)
  3147. return out, req.Send()
  3148. }
  3149. // DeleteDBSubnetGroupWithContext is the same as DeleteDBSubnetGroup with the addition of
  3150. // the ability to pass a context and additional request options.
  3151. //
  3152. // See DeleteDBSubnetGroup for details on how to use this API operation.
  3153. //
  3154. // The context must be non-nil and will be used for request cancellation. If
  3155. // the context is nil a panic will occur. In the future the SDK may create
  3156. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3157. // for more information on using Contexts.
  3158. func (c *RDS) DeleteDBSubnetGroupWithContext(ctx aws.Context, input *DeleteDBSubnetGroupInput, opts ...request.Option) (*DeleteDBSubnetGroupOutput, error) {
  3159. req, out := c.DeleteDBSubnetGroupRequest(input)
  3160. req.SetContext(ctx)
  3161. req.ApplyOptions(opts...)
  3162. return out, req.Send()
  3163. }
  3164. const opDeleteEventSubscription = "DeleteEventSubscription"
  3165. // DeleteEventSubscriptionRequest generates a "aws/request.Request" representing the
  3166. // client's request for the DeleteEventSubscription operation. The "output" return
  3167. // value will be populated with the request's response once the request completes
  3168. // successfully.
  3169. //
  3170. // Use "Send" method on the returned Request to send the API call to the service.
  3171. // the "output" return value is not valid until after Send returns without error.
  3172. //
  3173. // See DeleteEventSubscription for more information on using the DeleteEventSubscription
  3174. // API call, and error handling.
  3175. //
  3176. // This method is useful when you want to inject custom logic or configuration
  3177. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3178. //
  3179. //
  3180. // // Example sending a request using the DeleteEventSubscriptionRequest method.
  3181. // req, resp := client.DeleteEventSubscriptionRequest(params)
  3182. //
  3183. // err := req.Send()
  3184. // if err == nil { // resp is now filled
  3185. // fmt.Println(resp)
  3186. // }
  3187. //
  3188. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteEventSubscription
  3189. func (c *RDS) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput) (req *request.Request, output *DeleteEventSubscriptionOutput) {
  3190. op := &request.Operation{
  3191. Name: opDeleteEventSubscription,
  3192. HTTPMethod: "POST",
  3193. HTTPPath: "/",
  3194. }
  3195. if input == nil {
  3196. input = &DeleteEventSubscriptionInput{}
  3197. }
  3198. output = &DeleteEventSubscriptionOutput{}
  3199. req = c.newRequest(op, input, output)
  3200. return
  3201. }
  3202. // DeleteEventSubscription API operation for Amazon Relational Database Service.
  3203. //
  3204. // Deletes an RDS event notification subscription.
  3205. //
  3206. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3207. // with awserr.Error's Code and Message methods to get detailed information about
  3208. // the error.
  3209. //
  3210. // See the AWS API reference guide for Amazon Relational Database Service's
  3211. // API operation DeleteEventSubscription for usage and error information.
  3212. //
  3213. // Returned Error Codes:
  3214. // * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound"
  3215. // The subscription name does not exist.
  3216. //
  3217. // * ErrCodeInvalidEventSubscriptionStateFault "InvalidEventSubscriptionState"
  3218. // This error can occur if someone else is modifying a subscription. You should
  3219. // retry the action.
  3220. //
  3221. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteEventSubscription
  3222. func (c *RDS) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error) {
  3223. req, out := c.DeleteEventSubscriptionRequest(input)
  3224. return out, req.Send()
  3225. }
  3226. // DeleteEventSubscriptionWithContext is the same as DeleteEventSubscription with the addition of
  3227. // the ability to pass a context and additional request options.
  3228. //
  3229. // See DeleteEventSubscription for details on how to use this API operation.
  3230. //
  3231. // The context must be non-nil and will be used for request cancellation. If
  3232. // the context is nil a panic will occur. In the future the SDK may create
  3233. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3234. // for more information on using Contexts.
  3235. func (c *RDS) DeleteEventSubscriptionWithContext(ctx aws.Context, input *DeleteEventSubscriptionInput, opts ...request.Option) (*DeleteEventSubscriptionOutput, error) {
  3236. req, out := c.DeleteEventSubscriptionRequest(input)
  3237. req.SetContext(ctx)
  3238. req.ApplyOptions(opts...)
  3239. return out, req.Send()
  3240. }
  3241. const opDeleteGlobalCluster = "DeleteGlobalCluster"
  3242. // DeleteGlobalClusterRequest generates a "aws/request.Request" representing the
  3243. // client's request for the DeleteGlobalCluster operation. The "output" return
  3244. // value will be populated with the request's response once the request completes
  3245. // successfully.
  3246. //
  3247. // Use "Send" method on the returned Request to send the API call to the service.
  3248. // the "output" return value is not valid until after Send returns without error.
  3249. //
  3250. // See DeleteGlobalCluster for more information on using the DeleteGlobalCluster
  3251. // API call, and error handling.
  3252. //
  3253. // This method is useful when you want to inject custom logic or configuration
  3254. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3255. //
  3256. //
  3257. // // Example sending a request using the DeleteGlobalClusterRequest method.
  3258. // req, resp := client.DeleteGlobalClusterRequest(params)
  3259. //
  3260. // err := req.Send()
  3261. // if err == nil { // resp is now filled
  3262. // fmt.Println(resp)
  3263. // }
  3264. //
  3265. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteGlobalCluster
  3266. func (c *RDS) DeleteGlobalClusterRequest(input *DeleteGlobalClusterInput) (req *request.Request, output *DeleteGlobalClusterOutput) {
  3267. op := &request.Operation{
  3268. Name: opDeleteGlobalCluster,
  3269. HTTPMethod: "POST",
  3270. HTTPPath: "/",
  3271. }
  3272. if input == nil {
  3273. input = &DeleteGlobalClusterInput{}
  3274. }
  3275. output = &DeleteGlobalClusterOutput{}
  3276. req = c.newRequest(op, input, output)
  3277. return
  3278. }
  3279. // DeleteGlobalCluster API operation for Amazon Relational Database Service.
  3280. //
  3281. // Deletes a global database cluster. The primary and secondary clusters must
  3282. // already be detached or destroyed first.
  3283. //
  3284. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3285. // with awserr.Error's Code and Message methods to get detailed information about
  3286. // the error.
  3287. //
  3288. // See the AWS API reference guide for Amazon Relational Database Service's
  3289. // API operation DeleteGlobalCluster for usage and error information.
  3290. //
  3291. // Returned Error Codes:
  3292. // * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault"
  3293. //
  3294. // * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault"
  3295. //
  3296. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteGlobalCluster
  3297. func (c *RDS) DeleteGlobalCluster(input *DeleteGlobalClusterInput) (*DeleteGlobalClusterOutput, error) {
  3298. req, out := c.DeleteGlobalClusterRequest(input)
  3299. return out, req.Send()
  3300. }
  3301. // DeleteGlobalClusterWithContext is the same as DeleteGlobalCluster with the addition of
  3302. // the ability to pass a context and additional request options.
  3303. //
  3304. // See DeleteGlobalCluster for details on how to use this API operation.
  3305. //
  3306. // The context must be non-nil and will be used for request cancellation. If
  3307. // the context is nil a panic will occur. In the future the SDK may create
  3308. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3309. // for more information on using Contexts.
  3310. func (c *RDS) DeleteGlobalClusterWithContext(ctx aws.Context, input *DeleteGlobalClusterInput, opts ...request.Option) (*DeleteGlobalClusterOutput, error) {
  3311. req, out := c.DeleteGlobalClusterRequest(input)
  3312. req.SetContext(ctx)
  3313. req.ApplyOptions(opts...)
  3314. return out, req.Send()
  3315. }
  3316. const opDeleteOptionGroup = "DeleteOptionGroup"
  3317. // DeleteOptionGroupRequest generates a "aws/request.Request" representing the
  3318. // client's request for the DeleteOptionGroup operation. The "output" return
  3319. // value will be populated with the request's response once the request completes
  3320. // successfully.
  3321. //
  3322. // Use "Send" method on the returned Request to send the API call to the service.
  3323. // the "output" return value is not valid until after Send returns without error.
  3324. //
  3325. // See DeleteOptionGroup for more information on using the DeleteOptionGroup
  3326. // API call, and error handling.
  3327. //
  3328. // This method is useful when you want to inject custom logic or configuration
  3329. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3330. //
  3331. //
  3332. // // Example sending a request using the DeleteOptionGroupRequest method.
  3333. // req, resp := client.DeleteOptionGroupRequest(params)
  3334. //
  3335. // err := req.Send()
  3336. // if err == nil { // resp is now filled
  3337. // fmt.Println(resp)
  3338. // }
  3339. //
  3340. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteOptionGroup
  3341. func (c *RDS) DeleteOptionGroupRequest(input *DeleteOptionGroupInput) (req *request.Request, output *DeleteOptionGroupOutput) {
  3342. op := &request.Operation{
  3343. Name: opDeleteOptionGroup,
  3344. HTTPMethod: "POST",
  3345. HTTPPath: "/",
  3346. }
  3347. if input == nil {
  3348. input = &DeleteOptionGroupInput{}
  3349. }
  3350. output = &DeleteOptionGroupOutput{}
  3351. req = c.newRequest(op, input, output)
  3352. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3353. return
  3354. }
  3355. // DeleteOptionGroup API operation for Amazon Relational Database Service.
  3356. //
  3357. // Deletes an existing option group.
  3358. //
  3359. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3360. // with awserr.Error's Code and Message methods to get detailed information about
  3361. // the error.
  3362. //
  3363. // See the AWS API reference guide for Amazon Relational Database Service's
  3364. // API operation DeleteOptionGroup for usage and error information.
  3365. //
  3366. // Returned Error Codes:
  3367. // * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault"
  3368. // The specified option group could not be found.
  3369. //
  3370. // * ErrCodeInvalidOptionGroupStateFault "InvalidOptionGroupStateFault"
  3371. // The option group isn't in the available state.
  3372. //
  3373. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteOptionGroup
  3374. func (c *RDS) DeleteOptionGroup(input *DeleteOptionGroupInput) (*DeleteOptionGroupOutput, error) {
  3375. req, out := c.DeleteOptionGroupRequest(input)
  3376. return out, req.Send()
  3377. }
  3378. // DeleteOptionGroupWithContext is the same as DeleteOptionGroup with the addition of
  3379. // the ability to pass a context and additional request options.
  3380. //
  3381. // See DeleteOptionGroup for details on how to use this API operation.
  3382. //
  3383. // The context must be non-nil and will be used for request cancellation. If
  3384. // the context is nil a panic will occur. In the future the SDK may create
  3385. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3386. // for more information on using Contexts.
  3387. func (c *RDS) DeleteOptionGroupWithContext(ctx aws.Context, input *DeleteOptionGroupInput, opts ...request.Option) (*DeleteOptionGroupOutput, error) {
  3388. req, out := c.DeleteOptionGroupRequest(input)
  3389. req.SetContext(ctx)
  3390. req.ApplyOptions(opts...)
  3391. return out, req.Send()
  3392. }
  3393. const opDescribeAccountAttributes = "DescribeAccountAttributes"
  3394. // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
  3395. // client's request for the DescribeAccountAttributes operation. The "output" return
  3396. // value will be populated with the request's response once the request completes
  3397. // successfully.
  3398. //
  3399. // Use "Send" method on the returned Request to send the API call to the service.
  3400. // the "output" return value is not valid until after Send returns without error.
  3401. //
  3402. // See DescribeAccountAttributes for more information on using the DescribeAccountAttributes
  3403. // API call, and error handling.
  3404. //
  3405. // This method is useful when you want to inject custom logic or configuration
  3406. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3407. //
  3408. //
  3409. // // Example sending a request using the DescribeAccountAttributesRequest method.
  3410. // req, resp := client.DescribeAccountAttributesRequest(params)
  3411. //
  3412. // err := req.Send()
  3413. // if err == nil { // resp is now filled
  3414. // fmt.Println(resp)
  3415. // }
  3416. //
  3417. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeAccountAttributes
  3418. func (c *RDS) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) {
  3419. op := &request.Operation{
  3420. Name: opDescribeAccountAttributes,
  3421. HTTPMethod: "POST",
  3422. HTTPPath: "/",
  3423. }
  3424. if input == nil {
  3425. input = &DescribeAccountAttributesInput{}
  3426. }
  3427. output = &DescribeAccountAttributesOutput{}
  3428. req = c.newRequest(op, input, output)
  3429. return
  3430. }
  3431. // DescribeAccountAttributes API operation for Amazon Relational Database Service.
  3432. //
  3433. // Lists all of the attributes for a customer account. The attributes include
  3434. // Amazon RDS quotas for the account, such as the number of DB instances allowed.
  3435. // The description for a quota includes the quota name, current usage toward
  3436. // that quota, and the quota's maximum value.
  3437. //
  3438. // This command doesn't take any parameters.
  3439. //
  3440. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3441. // with awserr.Error's Code and Message methods to get detailed information about
  3442. // the error.
  3443. //
  3444. // See the AWS API reference guide for Amazon Relational Database Service's
  3445. // API operation DescribeAccountAttributes for usage and error information.
  3446. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeAccountAttributes
  3447. func (c *RDS) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) {
  3448. req, out := c.DescribeAccountAttributesRequest(input)
  3449. return out, req.Send()
  3450. }
  3451. // DescribeAccountAttributesWithContext is the same as DescribeAccountAttributes with the addition of
  3452. // the ability to pass a context and additional request options.
  3453. //
  3454. // See DescribeAccountAttributes for details on how to use this API operation.
  3455. //
  3456. // The context must be non-nil and will be used for request cancellation. If
  3457. // the context is nil a panic will occur. In the future the SDK may create
  3458. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3459. // for more information on using Contexts.
  3460. func (c *RDS) DescribeAccountAttributesWithContext(ctx aws.Context, input *DescribeAccountAttributesInput, opts ...request.Option) (*DescribeAccountAttributesOutput, error) {
  3461. req, out := c.DescribeAccountAttributesRequest(input)
  3462. req.SetContext(ctx)
  3463. req.ApplyOptions(opts...)
  3464. return out, req.Send()
  3465. }
  3466. const opDescribeCertificates = "DescribeCertificates"
  3467. // DescribeCertificatesRequest generates a "aws/request.Request" representing the
  3468. // client's request for the DescribeCertificates operation. The "output" return
  3469. // value will be populated with the request's response once the request completes
  3470. // successfully.
  3471. //
  3472. // Use "Send" method on the returned Request to send the API call to the service.
  3473. // the "output" return value is not valid until after Send returns without error.
  3474. //
  3475. // See DescribeCertificates for more information on using the DescribeCertificates
  3476. // API call, and error handling.
  3477. //
  3478. // This method is useful when you want to inject custom logic or configuration
  3479. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3480. //
  3481. //
  3482. // // Example sending a request using the DescribeCertificatesRequest method.
  3483. // req, resp := client.DescribeCertificatesRequest(params)
  3484. //
  3485. // err := req.Send()
  3486. // if err == nil { // resp is now filled
  3487. // fmt.Println(resp)
  3488. // }
  3489. //
  3490. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeCertificates
  3491. func (c *RDS) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req *request.Request, output *DescribeCertificatesOutput) {
  3492. op := &request.Operation{
  3493. Name: opDescribeCertificates,
  3494. HTTPMethod: "POST",
  3495. HTTPPath: "/",
  3496. }
  3497. if input == nil {
  3498. input = &DescribeCertificatesInput{}
  3499. }
  3500. output = &DescribeCertificatesOutput{}
  3501. req = c.newRequest(op, input, output)
  3502. return
  3503. }
  3504. // DescribeCertificates API operation for Amazon Relational Database Service.
  3505. //
  3506. // Lists the set of CA certificates provided by Amazon RDS for this AWS account.
  3507. //
  3508. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3509. // with awserr.Error's Code and Message methods to get detailed information about
  3510. // the error.
  3511. //
  3512. // See the AWS API reference guide for Amazon Relational Database Service's
  3513. // API operation DescribeCertificates for usage and error information.
  3514. //
  3515. // Returned Error Codes:
  3516. // * ErrCodeCertificateNotFoundFault "CertificateNotFound"
  3517. // CertificateIdentifier doesn't refer to an existing certificate.
  3518. //
  3519. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeCertificates
  3520. func (c *RDS) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error) {
  3521. req, out := c.DescribeCertificatesRequest(input)
  3522. return out, req.Send()
  3523. }
  3524. // DescribeCertificatesWithContext is the same as DescribeCertificates with the addition of
  3525. // the ability to pass a context and additional request options.
  3526. //
  3527. // See DescribeCertificates for details on how to use this API operation.
  3528. //
  3529. // The context must be non-nil and will be used for request cancellation. If
  3530. // the context is nil a panic will occur. In the future the SDK may create
  3531. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3532. // for more information on using Contexts.
  3533. func (c *RDS) DescribeCertificatesWithContext(ctx aws.Context, input *DescribeCertificatesInput, opts ...request.Option) (*DescribeCertificatesOutput, error) {
  3534. req, out := c.DescribeCertificatesRequest(input)
  3535. req.SetContext(ctx)
  3536. req.ApplyOptions(opts...)
  3537. return out, req.Send()
  3538. }
  3539. const opDescribeDBClusterBacktracks = "DescribeDBClusterBacktracks"
  3540. // DescribeDBClusterBacktracksRequest generates a "aws/request.Request" representing the
  3541. // client's request for the DescribeDBClusterBacktracks operation. The "output" return
  3542. // value will be populated with the request's response once the request completes
  3543. // successfully.
  3544. //
  3545. // Use "Send" method on the returned Request to send the API call to the service.
  3546. // the "output" return value is not valid until after Send returns without error.
  3547. //
  3548. // See DescribeDBClusterBacktracks for more information on using the DescribeDBClusterBacktracks
  3549. // API call, and error handling.
  3550. //
  3551. // This method is useful when you want to inject custom logic or configuration
  3552. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3553. //
  3554. //
  3555. // // Example sending a request using the DescribeDBClusterBacktracksRequest method.
  3556. // req, resp := client.DescribeDBClusterBacktracksRequest(params)
  3557. //
  3558. // err := req.Send()
  3559. // if err == nil { // resp is now filled
  3560. // fmt.Println(resp)
  3561. // }
  3562. //
  3563. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterBacktracks
  3564. func (c *RDS) DescribeDBClusterBacktracksRequest(input *DescribeDBClusterBacktracksInput) (req *request.Request, output *DescribeDBClusterBacktracksOutput) {
  3565. op := &request.Operation{
  3566. Name: opDescribeDBClusterBacktracks,
  3567. HTTPMethod: "POST",
  3568. HTTPPath: "/",
  3569. }
  3570. if input == nil {
  3571. input = &DescribeDBClusterBacktracksInput{}
  3572. }
  3573. output = &DescribeDBClusterBacktracksOutput{}
  3574. req = c.newRequest(op, input, output)
  3575. return
  3576. }
  3577. // DescribeDBClusterBacktracks API operation for Amazon Relational Database Service.
  3578. //
  3579. // Returns information about backtracks for a DB cluster.
  3580. //
  3581. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  3582. // in the Amazon Aurora User Guide.
  3583. //
  3584. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3585. // with awserr.Error's Code and Message methods to get detailed information about
  3586. // the error.
  3587. //
  3588. // See the AWS API reference guide for Amazon Relational Database Service's
  3589. // API operation DescribeDBClusterBacktracks for usage and error information.
  3590. //
  3591. // Returned Error Codes:
  3592. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  3593. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  3594. //
  3595. // * ErrCodeDBClusterBacktrackNotFoundFault "DBClusterBacktrackNotFoundFault"
  3596. // BacktrackIdentifier doesn't refer to an existing backtrack.
  3597. //
  3598. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterBacktracks
  3599. func (c *RDS) DescribeDBClusterBacktracks(input *DescribeDBClusterBacktracksInput) (*DescribeDBClusterBacktracksOutput, error) {
  3600. req, out := c.DescribeDBClusterBacktracksRequest(input)
  3601. return out, req.Send()
  3602. }
  3603. // DescribeDBClusterBacktracksWithContext is the same as DescribeDBClusterBacktracks with the addition of
  3604. // the ability to pass a context and additional request options.
  3605. //
  3606. // See DescribeDBClusterBacktracks for details on how to use this API operation.
  3607. //
  3608. // The context must be non-nil and will be used for request cancellation. If
  3609. // the context is nil a panic will occur. In the future the SDK may create
  3610. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3611. // for more information on using Contexts.
  3612. func (c *RDS) DescribeDBClusterBacktracksWithContext(ctx aws.Context, input *DescribeDBClusterBacktracksInput, opts ...request.Option) (*DescribeDBClusterBacktracksOutput, error) {
  3613. req, out := c.DescribeDBClusterBacktracksRequest(input)
  3614. req.SetContext(ctx)
  3615. req.ApplyOptions(opts...)
  3616. return out, req.Send()
  3617. }
  3618. const opDescribeDBClusterEndpoints = "DescribeDBClusterEndpoints"
  3619. // DescribeDBClusterEndpointsRequest generates a "aws/request.Request" representing the
  3620. // client's request for the DescribeDBClusterEndpoints operation. The "output" return
  3621. // value will be populated with the request's response once the request completes
  3622. // successfully.
  3623. //
  3624. // Use "Send" method on the returned Request to send the API call to the service.
  3625. // the "output" return value is not valid until after Send returns without error.
  3626. //
  3627. // See DescribeDBClusterEndpoints for more information on using the DescribeDBClusterEndpoints
  3628. // API call, and error handling.
  3629. //
  3630. // This method is useful when you want to inject custom logic or configuration
  3631. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3632. //
  3633. //
  3634. // // Example sending a request using the DescribeDBClusterEndpointsRequest method.
  3635. // req, resp := client.DescribeDBClusterEndpointsRequest(params)
  3636. //
  3637. // err := req.Send()
  3638. // if err == nil { // resp is now filled
  3639. // fmt.Println(resp)
  3640. // }
  3641. //
  3642. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterEndpoints
  3643. func (c *RDS) DescribeDBClusterEndpointsRequest(input *DescribeDBClusterEndpointsInput) (req *request.Request, output *DescribeDBClusterEndpointsOutput) {
  3644. op := &request.Operation{
  3645. Name: opDescribeDBClusterEndpoints,
  3646. HTTPMethod: "POST",
  3647. HTTPPath: "/",
  3648. }
  3649. if input == nil {
  3650. input = &DescribeDBClusterEndpointsInput{}
  3651. }
  3652. output = &DescribeDBClusterEndpointsOutput{}
  3653. req = c.newRequest(op, input, output)
  3654. return
  3655. }
  3656. // DescribeDBClusterEndpoints API operation for Amazon Relational Database Service.
  3657. //
  3658. // Returns information about endpoints for an Amazon Aurora DB cluster.
  3659. //
  3660. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3661. // with awserr.Error's Code and Message methods to get detailed information about
  3662. // the error.
  3663. //
  3664. // See the AWS API reference guide for Amazon Relational Database Service's
  3665. // API operation DescribeDBClusterEndpoints for usage and error information.
  3666. //
  3667. // Returned Error Codes:
  3668. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  3669. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  3670. //
  3671. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterEndpoints
  3672. func (c *RDS) DescribeDBClusterEndpoints(input *DescribeDBClusterEndpointsInput) (*DescribeDBClusterEndpointsOutput, error) {
  3673. req, out := c.DescribeDBClusterEndpointsRequest(input)
  3674. return out, req.Send()
  3675. }
  3676. // DescribeDBClusterEndpointsWithContext is the same as DescribeDBClusterEndpoints with the addition of
  3677. // the ability to pass a context and additional request options.
  3678. //
  3679. // See DescribeDBClusterEndpoints for details on how to use this API operation.
  3680. //
  3681. // The context must be non-nil and will be used for request cancellation. If
  3682. // the context is nil a panic will occur. In the future the SDK may create
  3683. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3684. // for more information on using Contexts.
  3685. func (c *RDS) DescribeDBClusterEndpointsWithContext(ctx aws.Context, input *DescribeDBClusterEndpointsInput, opts ...request.Option) (*DescribeDBClusterEndpointsOutput, error) {
  3686. req, out := c.DescribeDBClusterEndpointsRequest(input)
  3687. req.SetContext(ctx)
  3688. req.ApplyOptions(opts...)
  3689. return out, req.Send()
  3690. }
  3691. const opDescribeDBClusterParameterGroups = "DescribeDBClusterParameterGroups"
  3692. // DescribeDBClusterParameterGroupsRequest generates a "aws/request.Request" representing the
  3693. // client's request for the DescribeDBClusterParameterGroups operation. The "output" return
  3694. // value will be populated with the request's response once the request completes
  3695. // successfully.
  3696. //
  3697. // Use "Send" method on the returned Request to send the API call to the service.
  3698. // the "output" return value is not valid until after Send returns without error.
  3699. //
  3700. // See DescribeDBClusterParameterGroups for more information on using the DescribeDBClusterParameterGroups
  3701. // API call, and error handling.
  3702. //
  3703. // This method is useful when you want to inject custom logic or configuration
  3704. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3705. //
  3706. //
  3707. // // Example sending a request using the DescribeDBClusterParameterGroupsRequest method.
  3708. // req, resp := client.DescribeDBClusterParameterGroupsRequest(params)
  3709. //
  3710. // err := req.Send()
  3711. // if err == nil { // resp is now filled
  3712. // fmt.Println(resp)
  3713. // }
  3714. //
  3715. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterParameterGroups
  3716. func (c *RDS) DescribeDBClusterParameterGroupsRequest(input *DescribeDBClusterParameterGroupsInput) (req *request.Request, output *DescribeDBClusterParameterGroupsOutput) {
  3717. op := &request.Operation{
  3718. Name: opDescribeDBClusterParameterGroups,
  3719. HTTPMethod: "POST",
  3720. HTTPPath: "/",
  3721. }
  3722. if input == nil {
  3723. input = &DescribeDBClusterParameterGroupsInput{}
  3724. }
  3725. output = &DescribeDBClusterParameterGroupsOutput{}
  3726. req = c.newRequest(op, input, output)
  3727. return
  3728. }
  3729. // DescribeDBClusterParameterGroups API operation for Amazon Relational Database Service.
  3730. //
  3731. // Returns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName
  3732. // parameter is specified, the list will contain only the description of the
  3733. // specified DB cluster parameter group.
  3734. //
  3735. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  3736. // in the Amazon Aurora User Guide.
  3737. //
  3738. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3739. // with awserr.Error's Code and Message methods to get detailed information about
  3740. // the error.
  3741. //
  3742. // See the AWS API reference guide for Amazon Relational Database Service's
  3743. // API operation DescribeDBClusterParameterGroups for usage and error information.
  3744. //
  3745. // Returned Error Codes:
  3746. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  3747. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  3748. //
  3749. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterParameterGroups
  3750. func (c *RDS) DescribeDBClusterParameterGroups(input *DescribeDBClusterParameterGroupsInput) (*DescribeDBClusterParameterGroupsOutput, error) {
  3751. req, out := c.DescribeDBClusterParameterGroupsRequest(input)
  3752. return out, req.Send()
  3753. }
  3754. // DescribeDBClusterParameterGroupsWithContext is the same as DescribeDBClusterParameterGroups with the addition of
  3755. // the ability to pass a context and additional request options.
  3756. //
  3757. // See DescribeDBClusterParameterGroups for details on how to use this API operation.
  3758. //
  3759. // The context must be non-nil and will be used for request cancellation. If
  3760. // the context is nil a panic will occur. In the future the SDK may create
  3761. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3762. // for more information on using Contexts.
  3763. func (c *RDS) DescribeDBClusterParameterGroupsWithContext(ctx aws.Context, input *DescribeDBClusterParameterGroupsInput, opts ...request.Option) (*DescribeDBClusterParameterGroupsOutput, error) {
  3764. req, out := c.DescribeDBClusterParameterGroupsRequest(input)
  3765. req.SetContext(ctx)
  3766. req.ApplyOptions(opts...)
  3767. return out, req.Send()
  3768. }
  3769. const opDescribeDBClusterParameters = "DescribeDBClusterParameters"
  3770. // DescribeDBClusterParametersRequest generates a "aws/request.Request" representing the
  3771. // client's request for the DescribeDBClusterParameters operation. The "output" return
  3772. // value will be populated with the request's response once the request completes
  3773. // successfully.
  3774. //
  3775. // Use "Send" method on the returned Request to send the API call to the service.
  3776. // the "output" return value is not valid until after Send returns without error.
  3777. //
  3778. // See DescribeDBClusterParameters for more information on using the DescribeDBClusterParameters
  3779. // API call, and error handling.
  3780. //
  3781. // This method is useful when you want to inject custom logic or configuration
  3782. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3783. //
  3784. //
  3785. // // Example sending a request using the DescribeDBClusterParametersRequest method.
  3786. // req, resp := client.DescribeDBClusterParametersRequest(params)
  3787. //
  3788. // err := req.Send()
  3789. // if err == nil { // resp is now filled
  3790. // fmt.Println(resp)
  3791. // }
  3792. //
  3793. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterParameters
  3794. func (c *RDS) DescribeDBClusterParametersRequest(input *DescribeDBClusterParametersInput) (req *request.Request, output *DescribeDBClusterParametersOutput) {
  3795. op := &request.Operation{
  3796. Name: opDescribeDBClusterParameters,
  3797. HTTPMethod: "POST",
  3798. HTTPPath: "/",
  3799. }
  3800. if input == nil {
  3801. input = &DescribeDBClusterParametersInput{}
  3802. }
  3803. output = &DescribeDBClusterParametersOutput{}
  3804. req = c.newRequest(op, input, output)
  3805. return
  3806. }
  3807. // DescribeDBClusterParameters API operation for Amazon Relational Database Service.
  3808. //
  3809. // Returns the detailed parameter list for a particular DB cluster parameter
  3810. // group.
  3811. //
  3812. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  3813. // in the Amazon Aurora User Guide.
  3814. //
  3815. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3816. // with awserr.Error's Code and Message methods to get detailed information about
  3817. // the error.
  3818. //
  3819. // See the AWS API reference guide for Amazon Relational Database Service's
  3820. // API operation DescribeDBClusterParameters for usage and error information.
  3821. //
  3822. // Returned Error Codes:
  3823. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  3824. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  3825. //
  3826. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterParameters
  3827. func (c *RDS) DescribeDBClusterParameters(input *DescribeDBClusterParametersInput) (*DescribeDBClusterParametersOutput, error) {
  3828. req, out := c.DescribeDBClusterParametersRequest(input)
  3829. return out, req.Send()
  3830. }
  3831. // DescribeDBClusterParametersWithContext is the same as DescribeDBClusterParameters with the addition of
  3832. // the ability to pass a context and additional request options.
  3833. //
  3834. // See DescribeDBClusterParameters for details on how to use this API operation.
  3835. //
  3836. // The context must be non-nil and will be used for request cancellation. If
  3837. // the context is nil a panic will occur. In the future the SDK may create
  3838. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3839. // for more information on using Contexts.
  3840. func (c *RDS) DescribeDBClusterParametersWithContext(ctx aws.Context, input *DescribeDBClusterParametersInput, opts ...request.Option) (*DescribeDBClusterParametersOutput, error) {
  3841. req, out := c.DescribeDBClusterParametersRequest(input)
  3842. req.SetContext(ctx)
  3843. req.ApplyOptions(opts...)
  3844. return out, req.Send()
  3845. }
  3846. const opDescribeDBClusterSnapshotAttributes = "DescribeDBClusterSnapshotAttributes"
  3847. // DescribeDBClusterSnapshotAttributesRequest generates a "aws/request.Request" representing the
  3848. // client's request for the DescribeDBClusterSnapshotAttributes operation. The "output" return
  3849. // value will be populated with the request's response once the request completes
  3850. // successfully.
  3851. //
  3852. // Use "Send" method on the returned Request to send the API call to the service.
  3853. // the "output" return value is not valid until after Send returns without error.
  3854. //
  3855. // See DescribeDBClusterSnapshotAttributes for more information on using the DescribeDBClusterSnapshotAttributes
  3856. // API call, and error handling.
  3857. //
  3858. // This method is useful when you want to inject custom logic or configuration
  3859. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3860. //
  3861. //
  3862. // // Example sending a request using the DescribeDBClusterSnapshotAttributesRequest method.
  3863. // req, resp := client.DescribeDBClusterSnapshotAttributesRequest(params)
  3864. //
  3865. // err := req.Send()
  3866. // if err == nil { // resp is now filled
  3867. // fmt.Println(resp)
  3868. // }
  3869. //
  3870. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshotAttributes
  3871. func (c *RDS) DescribeDBClusterSnapshotAttributesRequest(input *DescribeDBClusterSnapshotAttributesInput) (req *request.Request, output *DescribeDBClusterSnapshotAttributesOutput) {
  3872. op := &request.Operation{
  3873. Name: opDescribeDBClusterSnapshotAttributes,
  3874. HTTPMethod: "POST",
  3875. HTTPPath: "/",
  3876. }
  3877. if input == nil {
  3878. input = &DescribeDBClusterSnapshotAttributesInput{}
  3879. }
  3880. output = &DescribeDBClusterSnapshotAttributesOutput{}
  3881. req = c.newRequest(op, input, output)
  3882. return
  3883. }
  3884. // DescribeDBClusterSnapshotAttributes API operation for Amazon Relational Database Service.
  3885. //
  3886. // Returns a list of DB cluster snapshot attribute names and values for a manual
  3887. // DB cluster snapshot.
  3888. //
  3889. // When sharing snapshots with other AWS accounts, DescribeDBClusterSnapshotAttributes
  3890. // returns the restore attribute and a list of IDs for the AWS accounts that
  3891. // are authorized to copy or restore the manual DB cluster snapshot. If all
  3892. // is included in the list of values for the restore attribute, then the manual
  3893. // DB cluster snapshot is public and can be copied or restored by all AWS accounts.
  3894. //
  3895. // To add or remove access for an AWS account to copy or restore a manual DB
  3896. // cluster snapshot, or to make the manual DB cluster snapshot public or private,
  3897. // use the ModifyDBClusterSnapshotAttribute API action.
  3898. //
  3899. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3900. // with awserr.Error's Code and Message methods to get detailed information about
  3901. // the error.
  3902. //
  3903. // See the AWS API reference guide for Amazon Relational Database Service's
  3904. // API operation DescribeDBClusterSnapshotAttributes for usage and error information.
  3905. //
  3906. // Returned Error Codes:
  3907. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  3908. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  3909. //
  3910. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshotAttributes
  3911. func (c *RDS) DescribeDBClusterSnapshotAttributes(input *DescribeDBClusterSnapshotAttributesInput) (*DescribeDBClusterSnapshotAttributesOutput, error) {
  3912. req, out := c.DescribeDBClusterSnapshotAttributesRequest(input)
  3913. return out, req.Send()
  3914. }
  3915. // DescribeDBClusterSnapshotAttributesWithContext is the same as DescribeDBClusterSnapshotAttributes with the addition of
  3916. // the ability to pass a context and additional request options.
  3917. //
  3918. // See DescribeDBClusterSnapshotAttributes for details on how to use this API operation.
  3919. //
  3920. // The context must be non-nil and will be used for request cancellation. If
  3921. // the context is nil a panic will occur. In the future the SDK may create
  3922. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3923. // for more information on using Contexts.
  3924. func (c *RDS) DescribeDBClusterSnapshotAttributesWithContext(ctx aws.Context, input *DescribeDBClusterSnapshotAttributesInput, opts ...request.Option) (*DescribeDBClusterSnapshotAttributesOutput, error) {
  3925. req, out := c.DescribeDBClusterSnapshotAttributesRequest(input)
  3926. req.SetContext(ctx)
  3927. req.ApplyOptions(opts...)
  3928. return out, req.Send()
  3929. }
  3930. const opDescribeDBClusterSnapshots = "DescribeDBClusterSnapshots"
  3931. // DescribeDBClusterSnapshotsRequest generates a "aws/request.Request" representing the
  3932. // client's request for the DescribeDBClusterSnapshots operation. The "output" return
  3933. // value will be populated with the request's response once the request completes
  3934. // successfully.
  3935. //
  3936. // Use "Send" method on the returned Request to send the API call to the service.
  3937. // the "output" return value is not valid until after Send returns without error.
  3938. //
  3939. // See DescribeDBClusterSnapshots for more information on using the DescribeDBClusterSnapshots
  3940. // API call, and error handling.
  3941. //
  3942. // This method is useful when you want to inject custom logic or configuration
  3943. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3944. //
  3945. //
  3946. // // Example sending a request using the DescribeDBClusterSnapshotsRequest method.
  3947. // req, resp := client.DescribeDBClusterSnapshotsRequest(params)
  3948. //
  3949. // err := req.Send()
  3950. // if err == nil { // resp is now filled
  3951. // fmt.Println(resp)
  3952. // }
  3953. //
  3954. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshots
  3955. func (c *RDS) DescribeDBClusterSnapshotsRequest(input *DescribeDBClusterSnapshotsInput) (req *request.Request, output *DescribeDBClusterSnapshotsOutput) {
  3956. op := &request.Operation{
  3957. Name: opDescribeDBClusterSnapshots,
  3958. HTTPMethod: "POST",
  3959. HTTPPath: "/",
  3960. }
  3961. if input == nil {
  3962. input = &DescribeDBClusterSnapshotsInput{}
  3963. }
  3964. output = &DescribeDBClusterSnapshotsOutput{}
  3965. req = c.newRequest(op, input, output)
  3966. return
  3967. }
  3968. // DescribeDBClusterSnapshots API operation for Amazon Relational Database Service.
  3969. //
  3970. // Returns information about DB cluster snapshots. This API action supports
  3971. // pagination.
  3972. //
  3973. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  3974. // in the Amazon Aurora User Guide.
  3975. //
  3976. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3977. // with awserr.Error's Code and Message methods to get detailed information about
  3978. // the error.
  3979. //
  3980. // See the AWS API reference guide for Amazon Relational Database Service's
  3981. // API operation DescribeDBClusterSnapshots for usage and error information.
  3982. //
  3983. // Returned Error Codes:
  3984. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  3985. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  3986. //
  3987. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterSnapshots
  3988. func (c *RDS) DescribeDBClusterSnapshots(input *DescribeDBClusterSnapshotsInput) (*DescribeDBClusterSnapshotsOutput, error) {
  3989. req, out := c.DescribeDBClusterSnapshotsRequest(input)
  3990. return out, req.Send()
  3991. }
  3992. // DescribeDBClusterSnapshotsWithContext is the same as DescribeDBClusterSnapshots with the addition of
  3993. // the ability to pass a context and additional request options.
  3994. //
  3995. // See DescribeDBClusterSnapshots for details on how to use this API operation.
  3996. //
  3997. // The context must be non-nil and will be used for request cancellation. If
  3998. // the context is nil a panic will occur. In the future the SDK may create
  3999. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4000. // for more information on using Contexts.
  4001. func (c *RDS) DescribeDBClusterSnapshotsWithContext(ctx aws.Context, input *DescribeDBClusterSnapshotsInput, opts ...request.Option) (*DescribeDBClusterSnapshotsOutput, error) {
  4002. req, out := c.DescribeDBClusterSnapshotsRequest(input)
  4003. req.SetContext(ctx)
  4004. req.ApplyOptions(opts...)
  4005. return out, req.Send()
  4006. }
  4007. const opDescribeDBClusters = "DescribeDBClusters"
  4008. // DescribeDBClustersRequest generates a "aws/request.Request" representing the
  4009. // client's request for the DescribeDBClusters operation. The "output" return
  4010. // value will be populated with the request's response once the request completes
  4011. // successfully.
  4012. //
  4013. // Use "Send" method on the returned Request to send the API call to the service.
  4014. // the "output" return value is not valid until after Send returns without error.
  4015. //
  4016. // See DescribeDBClusters for more information on using the DescribeDBClusters
  4017. // API call, and error handling.
  4018. //
  4019. // This method is useful when you want to inject custom logic or configuration
  4020. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4021. //
  4022. //
  4023. // // Example sending a request using the DescribeDBClustersRequest method.
  4024. // req, resp := client.DescribeDBClustersRequest(params)
  4025. //
  4026. // err := req.Send()
  4027. // if err == nil { // resp is now filled
  4028. // fmt.Println(resp)
  4029. // }
  4030. //
  4031. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusters
  4032. func (c *RDS) DescribeDBClustersRequest(input *DescribeDBClustersInput) (req *request.Request, output *DescribeDBClustersOutput) {
  4033. op := &request.Operation{
  4034. Name: opDescribeDBClusters,
  4035. HTTPMethod: "POST",
  4036. HTTPPath: "/",
  4037. Paginator: &request.Paginator{
  4038. InputTokens: []string{"Marker"},
  4039. OutputTokens: []string{"Marker"},
  4040. LimitToken: "MaxRecords",
  4041. TruncationToken: "",
  4042. },
  4043. }
  4044. if input == nil {
  4045. input = &DescribeDBClustersInput{}
  4046. }
  4047. output = &DescribeDBClustersOutput{}
  4048. req = c.newRequest(op, input, output)
  4049. return
  4050. }
  4051. // DescribeDBClusters API operation for Amazon Relational Database Service.
  4052. //
  4053. // Returns information about provisioned Aurora DB clusters. This API supports
  4054. // pagination.
  4055. //
  4056. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  4057. // in the Amazon Aurora User Guide.
  4058. //
  4059. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4060. // with awserr.Error's Code and Message methods to get detailed information about
  4061. // the error.
  4062. //
  4063. // See the AWS API reference guide for Amazon Relational Database Service's
  4064. // API operation DescribeDBClusters for usage and error information.
  4065. //
  4066. // Returned Error Codes:
  4067. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  4068. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  4069. //
  4070. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusters
  4071. func (c *RDS) DescribeDBClusters(input *DescribeDBClustersInput) (*DescribeDBClustersOutput, error) {
  4072. req, out := c.DescribeDBClustersRequest(input)
  4073. return out, req.Send()
  4074. }
  4075. // DescribeDBClustersWithContext is the same as DescribeDBClusters with the addition of
  4076. // the ability to pass a context and additional request options.
  4077. //
  4078. // See DescribeDBClusters for details on how to use this API operation.
  4079. //
  4080. // The context must be non-nil and will be used for request cancellation. If
  4081. // the context is nil a panic will occur. In the future the SDK may create
  4082. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4083. // for more information on using Contexts.
  4084. func (c *RDS) DescribeDBClustersWithContext(ctx aws.Context, input *DescribeDBClustersInput, opts ...request.Option) (*DescribeDBClustersOutput, error) {
  4085. req, out := c.DescribeDBClustersRequest(input)
  4086. req.SetContext(ctx)
  4087. req.ApplyOptions(opts...)
  4088. return out, req.Send()
  4089. }
  4090. // DescribeDBClustersPages iterates over the pages of a DescribeDBClusters operation,
  4091. // calling the "fn" function with the response data for each page. To stop
  4092. // iterating, return false from the fn function.
  4093. //
  4094. // See DescribeDBClusters method for more information on how to use this operation.
  4095. //
  4096. // Note: This operation can generate multiple requests to a service.
  4097. //
  4098. // // Example iterating over at most 3 pages of a DescribeDBClusters operation.
  4099. // pageNum := 0
  4100. // err := client.DescribeDBClustersPages(params,
  4101. // func(page *DescribeDBClustersOutput, lastPage bool) bool {
  4102. // pageNum++
  4103. // fmt.Println(page)
  4104. // return pageNum <= 3
  4105. // })
  4106. //
  4107. func (c *RDS) DescribeDBClustersPages(input *DescribeDBClustersInput, fn func(*DescribeDBClustersOutput, bool) bool) error {
  4108. return c.DescribeDBClustersPagesWithContext(aws.BackgroundContext(), input, fn)
  4109. }
  4110. // DescribeDBClustersPagesWithContext same as DescribeDBClustersPages except
  4111. // it takes a Context and allows setting request options on the pages.
  4112. //
  4113. // The context must be non-nil and will be used for request cancellation. If
  4114. // the context is nil a panic will occur. In the future the SDK may create
  4115. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4116. // for more information on using Contexts.
  4117. func (c *RDS) DescribeDBClustersPagesWithContext(ctx aws.Context, input *DescribeDBClustersInput, fn func(*DescribeDBClustersOutput, bool) bool, opts ...request.Option) error {
  4118. p := request.Pagination{
  4119. NewRequest: func() (*request.Request, error) {
  4120. var inCpy *DescribeDBClustersInput
  4121. if input != nil {
  4122. tmp := *input
  4123. inCpy = &tmp
  4124. }
  4125. req, _ := c.DescribeDBClustersRequest(inCpy)
  4126. req.SetContext(ctx)
  4127. req.ApplyOptions(opts...)
  4128. return req, nil
  4129. },
  4130. }
  4131. cont := true
  4132. for p.Next() && cont {
  4133. cont = fn(p.Page().(*DescribeDBClustersOutput), !p.HasNextPage())
  4134. }
  4135. return p.Err()
  4136. }
  4137. const opDescribeDBEngineVersions = "DescribeDBEngineVersions"
  4138. // DescribeDBEngineVersionsRequest generates a "aws/request.Request" representing the
  4139. // client's request for the DescribeDBEngineVersions operation. The "output" return
  4140. // value will be populated with the request's response once the request completes
  4141. // successfully.
  4142. //
  4143. // Use "Send" method on the returned Request to send the API call to the service.
  4144. // the "output" return value is not valid until after Send returns without error.
  4145. //
  4146. // See DescribeDBEngineVersions for more information on using the DescribeDBEngineVersions
  4147. // API call, and error handling.
  4148. //
  4149. // This method is useful when you want to inject custom logic or configuration
  4150. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4151. //
  4152. //
  4153. // // Example sending a request using the DescribeDBEngineVersionsRequest method.
  4154. // req, resp := client.DescribeDBEngineVersionsRequest(params)
  4155. //
  4156. // err := req.Send()
  4157. // if err == nil { // resp is now filled
  4158. // fmt.Println(resp)
  4159. // }
  4160. //
  4161. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBEngineVersions
  4162. func (c *RDS) DescribeDBEngineVersionsRequest(input *DescribeDBEngineVersionsInput) (req *request.Request, output *DescribeDBEngineVersionsOutput) {
  4163. op := &request.Operation{
  4164. Name: opDescribeDBEngineVersions,
  4165. HTTPMethod: "POST",
  4166. HTTPPath: "/",
  4167. Paginator: &request.Paginator{
  4168. InputTokens: []string{"Marker"},
  4169. OutputTokens: []string{"Marker"},
  4170. LimitToken: "MaxRecords",
  4171. TruncationToken: "",
  4172. },
  4173. }
  4174. if input == nil {
  4175. input = &DescribeDBEngineVersionsInput{}
  4176. }
  4177. output = &DescribeDBEngineVersionsOutput{}
  4178. req = c.newRequest(op, input, output)
  4179. return
  4180. }
  4181. // DescribeDBEngineVersions API operation for Amazon Relational Database Service.
  4182. //
  4183. // Returns a list of the available DB engines.
  4184. //
  4185. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4186. // with awserr.Error's Code and Message methods to get detailed information about
  4187. // the error.
  4188. //
  4189. // See the AWS API reference guide for Amazon Relational Database Service's
  4190. // API operation DescribeDBEngineVersions for usage and error information.
  4191. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBEngineVersions
  4192. func (c *RDS) DescribeDBEngineVersions(input *DescribeDBEngineVersionsInput) (*DescribeDBEngineVersionsOutput, error) {
  4193. req, out := c.DescribeDBEngineVersionsRequest(input)
  4194. return out, req.Send()
  4195. }
  4196. // DescribeDBEngineVersionsWithContext is the same as DescribeDBEngineVersions with the addition of
  4197. // the ability to pass a context and additional request options.
  4198. //
  4199. // See DescribeDBEngineVersions for details on how to use this API operation.
  4200. //
  4201. // The context must be non-nil and will be used for request cancellation. If
  4202. // the context is nil a panic will occur. In the future the SDK may create
  4203. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4204. // for more information on using Contexts.
  4205. func (c *RDS) DescribeDBEngineVersionsWithContext(ctx aws.Context, input *DescribeDBEngineVersionsInput, opts ...request.Option) (*DescribeDBEngineVersionsOutput, error) {
  4206. req, out := c.DescribeDBEngineVersionsRequest(input)
  4207. req.SetContext(ctx)
  4208. req.ApplyOptions(opts...)
  4209. return out, req.Send()
  4210. }
  4211. // DescribeDBEngineVersionsPages iterates over the pages of a DescribeDBEngineVersions operation,
  4212. // calling the "fn" function with the response data for each page. To stop
  4213. // iterating, return false from the fn function.
  4214. //
  4215. // See DescribeDBEngineVersions method for more information on how to use this operation.
  4216. //
  4217. // Note: This operation can generate multiple requests to a service.
  4218. //
  4219. // // Example iterating over at most 3 pages of a DescribeDBEngineVersions operation.
  4220. // pageNum := 0
  4221. // err := client.DescribeDBEngineVersionsPages(params,
  4222. // func(page *DescribeDBEngineVersionsOutput, lastPage bool) bool {
  4223. // pageNum++
  4224. // fmt.Println(page)
  4225. // return pageNum <= 3
  4226. // })
  4227. //
  4228. func (c *RDS) DescribeDBEngineVersionsPages(input *DescribeDBEngineVersionsInput, fn func(*DescribeDBEngineVersionsOutput, bool) bool) error {
  4229. return c.DescribeDBEngineVersionsPagesWithContext(aws.BackgroundContext(), input, fn)
  4230. }
  4231. // DescribeDBEngineVersionsPagesWithContext same as DescribeDBEngineVersionsPages except
  4232. // it takes a Context and allows setting request options on the pages.
  4233. //
  4234. // The context must be non-nil and will be used for request cancellation. If
  4235. // the context is nil a panic will occur. In the future the SDK may create
  4236. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4237. // for more information on using Contexts.
  4238. func (c *RDS) DescribeDBEngineVersionsPagesWithContext(ctx aws.Context, input *DescribeDBEngineVersionsInput, fn func(*DescribeDBEngineVersionsOutput, bool) bool, opts ...request.Option) error {
  4239. p := request.Pagination{
  4240. NewRequest: func() (*request.Request, error) {
  4241. var inCpy *DescribeDBEngineVersionsInput
  4242. if input != nil {
  4243. tmp := *input
  4244. inCpy = &tmp
  4245. }
  4246. req, _ := c.DescribeDBEngineVersionsRequest(inCpy)
  4247. req.SetContext(ctx)
  4248. req.ApplyOptions(opts...)
  4249. return req, nil
  4250. },
  4251. }
  4252. cont := true
  4253. for p.Next() && cont {
  4254. cont = fn(p.Page().(*DescribeDBEngineVersionsOutput), !p.HasNextPage())
  4255. }
  4256. return p.Err()
  4257. }
  4258. const opDescribeDBInstanceAutomatedBackups = "DescribeDBInstanceAutomatedBackups"
  4259. // DescribeDBInstanceAutomatedBackupsRequest generates a "aws/request.Request" representing the
  4260. // client's request for the DescribeDBInstanceAutomatedBackups operation. The "output" return
  4261. // value will be populated with the request's response once the request completes
  4262. // successfully.
  4263. //
  4264. // Use "Send" method on the returned Request to send the API call to the service.
  4265. // the "output" return value is not valid until after Send returns without error.
  4266. //
  4267. // See DescribeDBInstanceAutomatedBackups for more information on using the DescribeDBInstanceAutomatedBackups
  4268. // API call, and error handling.
  4269. //
  4270. // This method is useful when you want to inject custom logic or configuration
  4271. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4272. //
  4273. //
  4274. // // Example sending a request using the DescribeDBInstanceAutomatedBackupsRequest method.
  4275. // req, resp := client.DescribeDBInstanceAutomatedBackupsRequest(params)
  4276. //
  4277. // err := req.Send()
  4278. // if err == nil { // resp is now filled
  4279. // fmt.Println(resp)
  4280. // }
  4281. //
  4282. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBInstanceAutomatedBackups
  4283. func (c *RDS) DescribeDBInstanceAutomatedBackupsRequest(input *DescribeDBInstanceAutomatedBackupsInput) (req *request.Request, output *DescribeDBInstanceAutomatedBackupsOutput) {
  4284. op := &request.Operation{
  4285. Name: opDescribeDBInstanceAutomatedBackups,
  4286. HTTPMethod: "POST",
  4287. HTTPPath: "/",
  4288. Paginator: &request.Paginator{
  4289. InputTokens: []string{"Marker"},
  4290. OutputTokens: []string{"Marker"},
  4291. LimitToken: "MaxRecords",
  4292. TruncationToken: "",
  4293. },
  4294. }
  4295. if input == nil {
  4296. input = &DescribeDBInstanceAutomatedBackupsInput{}
  4297. }
  4298. output = &DescribeDBInstanceAutomatedBackupsOutput{}
  4299. req = c.newRequest(op, input, output)
  4300. return
  4301. }
  4302. // DescribeDBInstanceAutomatedBackups API operation for Amazon Relational Database Service.
  4303. //
  4304. // Displays backups for both current and deleted instances. For example, use
  4305. // this operation to find details about automated backups for previously deleted
  4306. // instances. Current instances with retention periods greater than zero (0)
  4307. // are returned for both the DescribeDBInstanceAutomatedBackups and DescribeDBInstances
  4308. // operations.
  4309. //
  4310. // All parameters are optional.
  4311. //
  4312. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4313. // with awserr.Error's Code and Message methods to get detailed information about
  4314. // the error.
  4315. //
  4316. // See the AWS API reference guide for Amazon Relational Database Service's
  4317. // API operation DescribeDBInstanceAutomatedBackups for usage and error information.
  4318. //
  4319. // Returned Error Codes:
  4320. // * ErrCodeDBInstanceAutomatedBackupNotFoundFault "DBInstanceAutomatedBackupNotFound"
  4321. // No automated backup for this DB instance was found.
  4322. //
  4323. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBInstanceAutomatedBackups
  4324. func (c *RDS) DescribeDBInstanceAutomatedBackups(input *DescribeDBInstanceAutomatedBackupsInput) (*DescribeDBInstanceAutomatedBackupsOutput, error) {
  4325. req, out := c.DescribeDBInstanceAutomatedBackupsRequest(input)
  4326. return out, req.Send()
  4327. }
  4328. // DescribeDBInstanceAutomatedBackupsWithContext is the same as DescribeDBInstanceAutomatedBackups with the addition of
  4329. // the ability to pass a context and additional request options.
  4330. //
  4331. // See DescribeDBInstanceAutomatedBackups for details on how to use this API operation.
  4332. //
  4333. // The context must be non-nil and will be used for request cancellation. If
  4334. // the context is nil a panic will occur. In the future the SDK may create
  4335. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4336. // for more information on using Contexts.
  4337. func (c *RDS) DescribeDBInstanceAutomatedBackupsWithContext(ctx aws.Context, input *DescribeDBInstanceAutomatedBackupsInput, opts ...request.Option) (*DescribeDBInstanceAutomatedBackupsOutput, error) {
  4338. req, out := c.DescribeDBInstanceAutomatedBackupsRequest(input)
  4339. req.SetContext(ctx)
  4340. req.ApplyOptions(opts...)
  4341. return out, req.Send()
  4342. }
  4343. // DescribeDBInstanceAutomatedBackupsPages iterates over the pages of a DescribeDBInstanceAutomatedBackups operation,
  4344. // calling the "fn" function with the response data for each page. To stop
  4345. // iterating, return false from the fn function.
  4346. //
  4347. // See DescribeDBInstanceAutomatedBackups method for more information on how to use this operation.
  4348. //
  4349. // Note: This operation can generate multiple requests to a service.
  4350. //
  4351. // // Example iterating over at most 3 pages of a DescribeDBInstanceAutomatedBackups operation.
  4352. // pageNum := 0
  4353. // err := client.DescribeDBInstanceAutomatedBackupsPages(params,
  4354. // func(page *DescribeDBInstanceAutomatedBackupsOutput, lastPage bool) bool {
  4355. // pageNum++
  4356. // fmt.Println(page)
  4357. // return pageNum <= 3
  4358. // })
  4359. //
  4360. func (c *RDS) DescribeDBInstanceAutomatedBackupsPages(input *DescribeDBInstanceAutomatedBackupsInput, fn func(*DescribeDBInstanceAutomatedBackupsOutput, bool) bool) error {
  4361. return c.DescribeDBInstanceAutomatedBackupsPagesWithContext(aws.BackgroundContext(), input, fn)
  4362. }
  4363. // DescribeDBInstanceAutomatedBackupsPagesWithContext same as DescribeDBInstanceAutomatedBackupsPages except
  4364. // it takes a Context and allows setting request options on the pages.
  4365. //
  4366. // The context must be non-nil and will be used for request cancellation. If
  4367. // the context is nil a panic will occur. In the future the SDK may create
  4368. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4369. // for more information on using Contexts.
  4370. func (c *RDS) DescribeDBInstanceAutomatedBackupsPagesWithContext(ctx aws.Context, input *DescribeDBInstanceAutomatedBackupsInput, fn func(*DescribeDBInstanceAutomatedBackupsOutput, bool) bool, opts ...request.Option) error {
  4371. p := request.Pagination{
  4372. NewRequest: func() (*request.Request, error) {
  4373. var inCpy *DescribeDBInstanceAutomatedBackupsInput
  4374. if input != nil {
  4375. tmp := *input
  4376. inCpy = &tmp
  4377. }
  4378. req, _ := c.DescribeDBInstanceAutomatedBackupsRequest(inCpy)
  4379. req.SetContext(ctx)
  4380. req.ApplyOptions(opts...)
  4381. return req, nil
  4382. },
  4383. }
  4384. cont := true
  4385. for p.Next() && cont {
  4386. cont = fn(p.Page().(*DescribeDBInstanceAutomatedBackupsOutput), !p.HasNextPage())
  4387. }
  4388. return p.Err()
  4389. }
  4390. const opDescribeDBInstances = "DescribeDBInstances"
  4391. // DescribeDBInstancesRequest generates a "aws/request.Request" representing the
  4392. // client's request for the DescribeDBInstances operation. The "output" return
  4393. // value will be populated with the request's response once the request completes
  4394. // successfully.
  4395. //
  4396. // Use "Send" method on the returned Request to send the API call to the service.
  4397. // the "output" return value is not valid until after Send returns without error.
  4398. //
  4399. // See DescribeDBInstances for more information on using the DescribeDBInstances
  4400. // API call, and error handling.
  4401. //
  4402. // This method is useful when you want to inject custom logic or configuration
  4403. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4404. //
  4405. //
  4406. // // Example sending a request using the DescribeDBInstancesRequest method.
  4407. // req, resp := client.DescribeDBInstancesRequest(params)
  4408. //
  4409. // err := req.Send()
  4410. // if err == nil { // resp is now filled
  4411. // fmt.Println(resp)
  4412. // }
  4413. //
  4414. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBInstances
  4415. func (c *RDS) DescribeDBInstancesRequest(input *DescribeDBInstancesInput) (req *request.Request, output *DescribeDBInstancesOutput) {
  4416. op := &request.Operation{
  4417. Name: opDescribeDBInstances,
  4418. HTTPMethod: "POST",
  4419. HTTPPath: "/",
  4420. Paginator: &request.Paginator{
  4421. InputTokens: []string{"Marker"},
  4422. OutputTokens: []string{"Marker"},
  4423. LimitToken: "MaxRecords",
  4424. TruncationToken: "",
  4425. },
  4426. }
  4427. if input == nil {
  4428. input = &DescribeDBInstancesInput{}
  4429. }
  4430. output = &DescribeDBInstancesOutput{}
  4431. req = c.newRequest(op, input, output)
  4432. return
  4433. }
  4434. // DescribeDBInstances API operation for Amazon Relational Database Service.
  4435. //
  4436. // Returns information about provisioned RDS instances. This API supports pagination.
  4437. //
  4438. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4439. // with awserr.Error's Code and Message methods to get detailed information about
  4440. // the error.
  4441. //
  4442. // See the AWS API reference guide for Amazon Relational Database Service's
  4443. // API operation DescribeDBInstances for usage and error information.
  4444. //
  4445. // Returned Error Codes:
  4446. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  4447. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  4448. //
  4449. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBInstances
  4450. func (c *RDS) DescribeDBInstances(input *DescribeDBInstancesInput) (*DescribeDBInstancesOutput, error) {
  4451. req, out := c.DescribeDBInstancesRequest(input)
  4452. return out, req.Send()
  4453. }
  4454. // DescribeDBInstancesWithContext is the same as DescribeDBInstances with the addition of
  4455. // the ability to pass a context and additional request options.
  4456. //
  4457. // See DescribeDBInstances for details on how to use this API operation.
  4458. //
  4459. // The context must be non-nil and will be used for request cancellation. If
  4460. // the context is nil a panic will occur. In the future the SDK may create
  4461. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4462. // for more information on using Contexts.
  4463. func (c *RDS) DescribeDBInstancesWithContext(ctx aws.Context, input *DescribeDBInstancesInput, opts ...request.Option) (*DescribeDBInstancesOutput, error) {
  4464. req, out := c.DescribeDBInstancesRequest(input)
  4465. req.SetContext(ctx)
  4466. req.ApplyOptions(opts...)
  4467. return out, req.Send()
  4468. }
  4469. // DescribeDBInstancesPages iterates over the pages of a DescribeDBInstances operation,
  4470. // calling the "fn" function with the response data for each page. To stop
  4471. // iterating, return false from the fn function.
  4472. //
  4473. // See DescribeDBInstances method for more information on how to use this operation.
  4474. //
  4475. // Note: This operation can generate multiple requests to a service.
  4476. //
  4477. // // Example iterating over at most 3 pages of a DescribeDBInstances operation.
  4478. // pageNum := 0
  4479. // err := client.DescribeDBInstancesPages(params,
  4480. // func(page *DescribeDBInstancesOutput, lastPage bool) bool {
  4481. // pageNum++
  4482. // fmt.Println(page)
  4483. // return pageNum <= 3
  4484. // })
  4485. //
  4486. func (c *RDS) DescribeDBInstancesPages(input *DescribeDBInstancesInput, fn func(*DescribeDBInstancesOutput, bool) bool) error {
  4487. return c.DescribeDBInstancesPagesWithContext(aws.BackgroundContext(), input, fn)
  4488. }
  4489. // DescribeDBInstancesPagesWithContext same as DescribeDBInstancesPages except
  4490. // it takes a Context and allows setting request options on the pages.
  4491. //
  4492. // The context must be non-nil and will be used for request cancellation. If
  4493. // the context is nil a panic will occur. In the future the SDK may create
  4494. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4495. // for more information on using Contexts.
  4496. func (c *RDS) DescribeDBInstancesPagesWithContext(ctx aws.Context, input *DescribeDBInstancesInput, fn func(*DescribeDBInstancesOutput, bool) bool, opts ...request.Option) error {
  4497. p := request.Pagination{
  4498. NewRequest: func() (*request.Request, error) {
  4499. var inCpy *DescribeDBInstancesInput
  4500. if input != nil {
  4501. tmp := *input
  4502. inCpy = &tmp
  4503. }
  4504. req, _ := c.DescribeDBInstancesRequest(inCpy)
  4505. req.SetContext(ctx)
  4506. req.ApplyOptions(opts...)
  4507. return req, nil
  4508. },
  4509. }
  4510. cont := true
  4511. for p.Next() && cont {
  4512. cont = fn(p.Page().(*DescribeDBInstancesOutput), !p.HasNextPage())
  4513. }
  4514. return p.Err()
  4515. }
  4516. const opDescribeDBLogFiles = "DescribeDBLogFiles"
  4517. // DescribeDBLogFilesRequest generates a "aws/request.Request" representing the
  4518. // client's request for the DescribeDBLogFiles operation. The "output" return
  4519. // value will be populated with the request's response once the request completes
  4520. // successfully.
  4521. //
  4522. // Use "Send" method on the returned Request to send the API call to the service.
  4523. // the "output" return value is not valid until after Send returns without error.
  4524. //
  4525. // See DescribeDBLogFiles for more information on using the DescribeDBLogFiles
  4526. // API call, and error handling.
  4527. //
  4528. // This method is useful when you want to inject custom logic or configuration
  4529. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4530. //
  4531. //
  4532. // // Example sending a request using the DescribeDBLogFilesRequest method.
  4533. // req, resp := client.DescribeDBLogFilesRequest(params)
  4534. //
  4535. // err := req.Send()
  4536. // if err == nil { // resp is now filled
  4537. // fmt.Println(resp)
  4538. // }
  4539. //
  4540. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBLogFiles
  4541. func (c *RDS) DescribeDBLogFilesRequest(input *DescribeDBLogFilesInput) (req *request.Request, output *DescribeDBLogFilesOutput) {
  4542. op := &request.Operation{
  4543. Name: opDescribeDBLogFiles,
  4544. HTTPMethod: "POST",
  4545. HTTPPath: "/",
  4546. Paginator: &request.Paginator{
  4547. InputTokens: []string{"Marker"},
  4548. OutputTokens: []string{"Marker"},
  4549. LimitToken: "MaxRecords",
  4550. TruncationToken: "",
  4551. },
  4552. }
  4553. if input == nil {
  4554. input = &DescribeDBLogFilesInput{}
  4555. }
  4556. output = &DescribeDBLogFilesOutput{}
  4557. req = c.newRequest(op, input, output)
  4558. return
  4559. }
  4560. // DescribeDBLogFiles API operation for Amazon Relational Database Service.
  4561. //
  4562. // Returns a list of DB log files for the DB instance.
  4563. //
  4564. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4565. // with awserr.Error's Code and Message methods to get detailed information about
  4566. // the error.
  4567. //
  4568. // See the AWS API reference guide for Amazon Relational Database Service's
  4569. // API operation DescribeDBLogFiles for usage and error information.
  4570. //
  4571. // Returned Error Codes:
  4572. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  4573. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  4574. //
  4575. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBLogFiles
  4576. func (c *RDS) DescribeDBLogFiles(input *DescribeDBLogFilesInput) (*DescribeDBLogFilesOutput, error) {
  4577. req, out := c.DescribeDBLogFilesRequest(input)
  4578. return out, req.Send()
  4579. }
  4580. // DescribeDBLogFilesWithContext is the same as DescribeDBLogFiles with the addition of
  4581. // the ability to pass a context and additional request options.
  4582. //
  4583. // See DescribeDBLogFiles for details on how to use this API operation.
  4584. //
  4585. // The context must be non-nil and will be used for request cancellation. If
  4586. // the context is nil a panic will occur. In the future the SDK may create
  4587. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4588. // for more information on using Contexts.
  4589. func (c *RDS) DescribeDBLogFilesWithContext(ctx aws.Context, input *DescribeDBLogFilesInput, opts ...request.Option) (*DescribeDBLogFilesOutput, error) {
  4590. req, out := c.DescribeDBLogFilesRequest(input)
  4591. req.SetContext(ctx)
  4592. req.ApplyOptions(opts...)
  4593. return out, req.Send()
  4594. }
  4595. // DescribeDBLogFilesPages iterates over the pages of a DescribeDBLogFiles operation,
  4596. // calling the "fn" function with the response data for each page. To stop
  4597. // iterating, return false from the fn function.
  4598. //
  4599. // See DescribeDBLogFiles method for more information on how to use this operation.
  4600. //
  4601. // Note: This operation can generate multiple requests to a service.
  4602. //
  4603. // // Example iterating over at most 3 pages of a DescribeDBLogFiles operation.
  4604. // pageNum := 0
  4605. // err := client.DescribeDBLogFilesPages(params,
  4606. // func(page *DescribeDBLogFilesOutput, lastPage bool) bool {
  4607. // pageNum++
  4608. // fmt.Println(page)
  4609. // return pageNum <= 3
  4610. // })
  4611. //
  4612. func (c *RDS) DescribeDBLogFilesPages(input *DescribeDBLogFilesInput, fn func(*DescribeDBLogFilesOutput, bool) bool) error {
  4613. return c.DescribeDBLogFilesPagesWithContext(aws.BackgroundContext(), input, fn)
  4614. }
  4615. // DescribeDBLogFilesPagesWithContext same as DescribeDBLogFilesPages except
  4616. // it takes a Context and allows setting request options on the pages.
  4617. //
  4618. // The context must be non-nil and will be used for request cancellation. If
  4619. // the context is nil a panic will occur. In the future the SDK may create
  4620. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4621. // for more information on using Contexts.
  4622. func (c *RDS) DescribeDBLogFilesPagesWithContext(ctx aws.Context, input *DescribeDBLogFilesInput, fn func(*DescribeDBLogFilesOutput, bool) bool, opts ...request.Option) error {
  4623. p := request.Pagination{
  4624. NewRequest: func() (*request.Request, error) {
  4625. var inCpy *DescribeDBLogFilesInput
  4626. if input != nil {
  4627. tmp := *input
  4628. inCpy = &tmp
  4629. }
  4630. req, _ := c.DescribeDBLogFilesRequest(inCpy)
  4631. req.SetContext(ctx)
  4632. req.ApplyOptions(opts...)
  4633. return req, nil
  4634. },
  4635. }
  4636. cont := true
  4637. for p.Next() && cont {
  4638. cont = fn(p.Page().(*DescribeDBLogFilesOutput), !p.HasNextPage())
  4639. }
  4640. return p.Err()
  4641. }
  4642. const opDescribeDBParameterGroups = "DescribeDBParameterGroups"
  4643. // DescribeDBParameterGroupsRequest generates a "aws/request.Request" representing the
  4644. // client's request for the DescribeDBParameterGroups operation. The "output" return
  4645. // value will be populated with the request's response once the request completes
  4646. // successfully.
  4647. //
  4648. // Use "Send" method on the returned Request to send the API call to the service.
  4649. // the "output" return value is not valid until after Send returns without error.
  4650. //
  4651. // See DescribeDBParameterGroups for more information on using the DescribeDBParameterGroups
  4652. // API call, and error handling.
  4653. //
  4654. // This method is useful when you want to inject custom logic or configuration
  4655. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4656. //
  4657. //
  4658. // // Example sending a request using the DescribeDBParameterGroupsRequest method.
  4659. // req, resp := client.DescribeDBParameterGroupsRequest(params)
  4660. //
  4661. // err := req.Send()
  4662. // if err == nil { // resp is now filled
  4663. // fmt.Println(resp)
  4664. // }
  4665. //
  4666. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBParameterGroups
  4667. func (c *RDS) DescribeDBParameterGroupsRequest(input *DescribeDBParameterGroupsInput) (req *request.Request, output *DescribeDBParameterGroupsOutput) {
  4668. op := &request.Operation{
  4669. Name: opDescribeDBParameterGroups,
  4670. HTTPMethod: "POST",
  4671. HTTPPath: "/",
  4672. Paginator: &request.Paginator{
  4673. InputTokens: []string{"Marker"},
  4674. OutputTokens: []string{"Marker"},
  4675. LimitToken: "MaxRecords",
  4676. TruncationToken: "",
  4677. },
  4678. }
  4679. if input == nil {
  4680. input = &DescribeDBParameterGroupsInput{}
  4681. }
  4682. output = &DescribeDBParameterGroupsOutput{}
  4683. req = c.newRequest(op, input, output)
  4684. return
  4685. }
  4686. // DescribeDBParameterGroups API operation for Amazon Relational Database Service.
  4687. //
  4688. // Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName
  4689. // is specified, the list will contain only the description of the specified
  4690. // DB parameter group.
  4691. //
  4692. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4693. // with awserr.Error's Code and Message methods to get detailed information about
  4694. // the error.
  4695. //
  4696. // See the AWS API reference guide for Amazon Relational Database Service's
  4697. // API operation DescribeDBParameterGroups for usage and error information.
  4698. //
  4699. // Returned Error Codes:
  4700. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  4701. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  4702. //
  4703. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBParameterGroups
  4704. func (c *RDS) DescribeDBParameterGroups(input *DescribeDBParameterGroupsInput) (*DescribeDBParameterGroupsOutput, error) {
  4705. req, out := c.DescribeDBParameterGroupsRequest(input)
  4706. return out, req.Send()
  4707. }
  4708. // DescribeDBParameterGroupsWithContext is the same as DescribeDBParameterGroups with the addition of
  4709. // the ability to pass a context and additional request options.
  4710. //
  4711. // See DescribeDBParameterGroups for details on how to use this API operation.
  4712. //
  4713. // The context must be non-nil and will be used for request cancellation. If
  4714. // the context is nil a panic will occur. In the future the SDK may create
  4715. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4716. // for more information on using Contexts.
  4717. func (c *RDS) DescribeDBParameterGroupsWithContext(ctx aws.Context, input *DescribeDBParameterGroupsInput, opts ...request.Option) (*DescribeDBParameterGroupsOutput, error) {
  4718. req, out := c.DescribeDBParameterGroupsRequest(input)
  4719. req.SetContext(ctx)
  4720. req.ApplyOptions(opts...)
  4721. return out, req.Send()
  4722. }
  4723. // DescribeDBParameterGroupsPages iterates over the pages of a DescribeDBParameterGroups operation,
  4724. // calling the "fn" function with the response data for each page. To stop
  4725. // iterating, return false from the fn function.
  4726. //
  4727. // See DescribeDBParameterGroups method for more information on how to use this operation.
  4728. //
  4729. // Note: This operation can generate multiple requests to a service.
  4730. //
  4731. // // Example iterating over at most 3 pages of a DescribeDBParameterGroups operation.
  4732. // pageNum := 0
  4733. // err := client.DescribeDBParameterGroupsPages(params,
  4734. // func(page *DescribeDBParameterGroupsOutput, lastPage bool) bool {
  4735. // pageNum++
  4736. // fmt.Println(page)
  4737. // return pageNum <= 3
  4738. // })
  4739. //
  4740. func (c *RDS) DescribeDBParameterGroupsPages(input *DescribeDBParameterGroupsInput, fn func(*DescribeDBParameterGroupsOutput, bool) bool) error {
  4741. return c.DescribeDBParameterGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
  4742. }
  4743. // DescribeDBParameterGroupsPagesWithContext same as DescribeDBParameterGroupsPages except
  4744. // it takes a Context and allows setting request options on the pages.
  4745. //
  4746. // The context must be non-nil and will be used for request cancellation. If
  4747. // the context is nil a panic will occur. In the future the SDK may create
  4748. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4749. // for more information on using Contexts.
  4750. func (c *RDS) DescribeDBParameterGroupsPagesWithContext(ctx aws.Context, input *DescribeDBParameterGroupsInput, fn func(*DescribeDBParameterGroupsOutput, bool) bool, opts ...request.Option) error {
  4751. p := request.Pagination{
  4752. NewRequest: func() (*request.Request, error) {
  4753. var inCpy *DescribeDBParameterGroupsInput
  4754. if input != nil {
  4755. tmp := *input
  4756. inCpy = &tmp
  4757. }
  4758. req, _ := c.DescribeDBParameterGroupsRequest(inCpy)
  4759. req.SetContext(ctx)
  4760. req.ApplyOptions(opts...)
  4761. return req, nil
  4762. },
  4763. }
  4764. cont := true
  4765. for p.Next() && cont {
  4766. cont = fn(p.Page().(*DescribeDBParameterGroupsOutput), !p.HasNextPage())
  4767. }
  4768. return p.Err()
  4769. }
  4770. const opDescribeDBParameters = "DescribeDBParameters"
  4771. // DescribeDBParametersRequest generates a "aws/request.Request" representing the
  4772. // client's request for the DescribeDBParameters operation. The "output" return
  4773. // value will be populated with the request's response once the request completes
  4774. // successfully.
  4775. //
  4776. // Use "Send" method on the returned Request to send the API call to the service.
  4777. // the "output" return value is not valid until after Send returns without error.
  4778. //
  4779. // See DescribeDBParameters for more information on using the DescribeDBParameters
  4780. // API call, and error handling.
  4781. //
  4782. // This method is useful when you want to inject custom logic or configuration
  4783. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4784. //
  4785. //
  4786. // // Example sending a request using the DescribeDBParametersRequest method.
  4787. // req, resp := client.DescribeDBParametersRequest(params)
  4788. //
  4789. // err := req.Send()
  4790. // if err == nil { // resp is now filled
  4791. // fmt.Println(resp)
  4792. // }
  4793. //
  4794. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBParameters
  4795. func (c *RDS) DescribeDBParametersRequest(input *DescribeDBParametersInput) (req *request.Request, output *DescribeDBParametersOutput) {
  4796. op := &request.Operation{
  4797. Name: opDescribeDBParameters,
  4798. HTTPMethod: "POST",
  4799. HTTPPath: "/",
  4800. Paginator: &request.Paginator{
  4801. InputTokens: []string{"Marker"},
  4802. OutputTokens: []string{"Marker"},
  4803. LimitToken: "MaxRecords",
  4804. TruncationToken: "",
  4805. },
  4806. }
  4807. if input == nil {
  4808. input = &DescribeDBParametersInput{}
  4809. }
  4810. output = &DescribeDBParametersOutput{}
  4811. req = c.newRequest(op, input, output)
  4812. return
  4813. }
  4814. // DescribeDBParameters API operation for Amazon Relational Database Service.
  4815. //
  4816. // Returns the detailed parameter list for a particular DB parameter group.
  4817. //
  4818. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4819. // with awserr.Error's Code and Message methods to get detailed information about
  4820. // the error.
  4821. //
  4822. // See the AWS API reference guide for Amazon Relational Database Service's
  4823. // API operation DescribeDBParameters for usage and error information.
  4824. //
  4825. // Returned Error Codes:
  4826. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  4827. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  4828. //
  4829. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBParameters
  4830. func (c *RDS) DescribeDBParameters(input *DescribeDBParametersInput) (*DescribeDBParametersOutput, error) {
  4831. req, out := c.DescribeDBParametersRequest(input)
  4832. return out, req.Send()
  4833. }
  4834. // DescribeDBParametersWithContext is the same as DescribeDBParameters with the addition of
  4835. // the ability to pass a context and additional request options.
  4836. //
  4837. // See DescribeDBParameters for details on how to use this API operation.
  4838. //
  4839. // The context must be non-nil and will be used for request cancellation. If
  4840. // the context is nil a panic will occur. In the future the SDK may create
  4841. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4842. // for more information on using Contexts.
  4843. func (c *RDS) DescribeDBParametersWithContext(ctx aws.Context, input *DescribeDBParametersInput, opts ...request.Option) (*DescribeDBParametersOutput, error) {
  4844. req, out := c.DescribeDBParametersRequest(input)
  4845. req.SetContext(ctx)
  4846. req.ApplyOptions(opts...)
  4847. return out, req.Send()
  4848. }
  4849. // DescribeDBParametersPages iterates over the pages of a DescribeDBParameters operation,
  4850. // calling the "fn" function with the response data for each page. To stop
  4851. // iterating, return false from the fn function.
  4852. //
  4853. // See DescribeDBParameters method for more information on how to use this operation.
  4854. //
  4855. // Note: This operation can generate multiple requests to a service.
  4856. //
  4857. // // Example iterating over at most 3 pages of a DescribeDBParameters operation.
  4858. // pageNum := 0
  4859. // err := client.DescribeDBParametersPages(params,
  4860. // func(page *DescribeDBParametersOutput, lastPage bool) bool {
  4861. // pageNum++
  4862. // fmt.Println(page)
  4863. // return pageNum <= 3
  4864. // })
  4865. //
  4866. func (c *RDS) DescribeDBParametersPages(input *DescribeDBParametersInput, fn func(*DescribeDBParametersOutput, bool) bool) error {
  4867. return c.DescribeDBParametersPagesWithContext(aws.BackgroundContext(), input, fn)
  4868. }
  4869. // DescribeDBParametersPagesWithContext same as DescribeDBParametersPages except
  4870. // it takes a Context and allows setting request options on the pages.
  4871. //
  4872. // The context must be non-nil and will be used for request cancellation. If
  4873. // the context is nil a panic will occur. In the future the SDK may create
  4874. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4875. // for more information on using Contexts.
  4876. func (c *RDS) DescribeDBParametersPagesWithContext(ctx aws.Context, input *DescribeDBParametersInput, fn func(*DescribeDBParametersOutput, bool) bool, opts ...request.Option) error {
  4877. p := request.Pagination{
  4878. NewRequest: func() (*request.Request, error) {
  4879. var inCpy *DescribeDBParametersInput
  4880. if input != nil {
  4881. tmp := *input
  4882. inCpy = &tmp
  4883. }
  4884. req, _ := c.DescribeDBParametersRequest(inCpy)
  4885. req.SetContext(ctx)
  4886. req.ApplyOptions(opts...)
  4887. return req, nil
  4888. },
  4889. }
  4890. cont := true
  4891. for p.Next() && cont {
  4892. cont = fn(p.Page().(*DescribeDBParametersOutput), !p.HasNextPage())
  4893. }
  4894. return p.Err()
  4895. }
  4896. const opDescribeDBSecurityGroups = "DescribeDBSecurityGroups"
  4897. // DescribeDBSecurityGroupsRequest generates a "aws/request.Request" representing the
  4898. // client's request for the DescribeDBSecurityGroups operation. The "output" return
  4899. // value will be populated with the request's response once the request completes
  4900. // successfully.
  4901. //
  4902. // Use "Send" method on the returned Request to send the API call to the service.
  4903. // the "output" return value is not valid until after Send returns without error.
  4904. //
  4905. // See DescribeDBSecurityGroups for more information on using the DescribeDBSecurityGroups
  4906. // API call, and error handling.
  4907. //
  4908. // This method is useful when you want to inject custom logic or configuration
  4909. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  4910. //
  4911. //
  4912. // // Example sending a request using the DescribeDBSecurityGroupsRequest method.
  4913. // req, resp := client.DescribeDBSecurityGroupsRequest(params)
  4914. //
  4915. // err := req.Send()
  4916. // if err == nil { // resp is now filled
  4917. // fmt.Println(resp)
  4918. // }
  4919. //
  4920. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSecurityGroups
  4921. func (c *RDS) DescribeDBSecurityGroupsRequest(input *DescribeDBSecurityGroupsInput) (req *request.Request, output *DescribeDBSecurityGroupsOutput) {
  4922. op := &request.Operation{
  4923. Name: opDescribeDBSecurityGroups,
  4924. HTTPMethod: "POST",
  4925. HTTPPath: "/",
  4926. Paginator: &request.Paginator{
  4927. InputTokens: []string{"Marker"},
  4928. OutputTokens: []string{"Marker"},
  4929. LimitToken: "MaxRecords",
  4930. TruncationToken: "",
  4931. },
  4932. }
  4933. if input == nil {
  4934. input = &DescribeDBSecurityGroupsInput{}
  4935. }
  4936. output = &DescribeDBSecurityGroupsOutput{}
  4937. req = c.newRequest(op, input, output)
  4938. return
  4939. }
  4940. // DescribeDBSecurityGroups API operation for Amazon Relational Database Service.
  4941. //
  4942. // Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName
  4943. // is specified, the list will contain only the descriptions of the specified
  4944. // DB security group.
  4945. //
  4946. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  4947. // with awserr.Error's Code and Message methods to get detailed information about
  4948. // the error.
  4949. //
  4950. // See the AWS API reference guide for Amazon Relational Database Service's
  4951. // API operation DescribeDBSecurityGroups for usage and error information.
  4952. //
  4953. // Returned Error Codes:
  4954. // * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound"
  4955. // DBSecurityGroupName doesn't refer to an existing DB security group.
  4956. //
  4957. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSecurityGroups
  4958. func (c *RDS) DescribeDBSecurityGroups(input *DescribeDBSecurityGroupsInput) (*DescribeDBSecurityGroupsOutput, error) {
  4959. req, out := c.DescribeDBSecurityGroupsRequest(input)
  4960. return out, req.Send()
  4961. }
  4962. // DescribeDBSecurityGroupsWithContext is the same as DescribeDBSecurityGroups with the addition of
  4963. // the ability to pass a context and additional request options.
  4964. //
  4965. // See DescribeDBSecurityGroups for details on how to use this API operation.
  4966. //
  4967. // The context must be non-nil and will be used for request cancellation. If
  4968. // the context is nil a panic will occur. In the future the SDK may create
  4969. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  4970. // for more information on using Contexts.
  4971. func (c *RDS) DescribeDBSecurityGroupsWithContext(ctx aws.Context, input *DescribeDBSecurityGroupsInput, opts ...request.Option) (*DescribeDBSecurityGroupsOutput, error) {
  4972. req, out := c.DescribeDBSecurityGroupsRequest(input)
  4973. req.SetContext(ctx)
  4974. req.ApplyOptions(opts...)
  4975. return out, req.Send()
  4976. }
  4977. // DescribeDBSecurityGroupsPages iterates over the pages of a DescribeDBSecurityGroups operation,
  4978. // calling the "fn" function with the response data for each page. To stop
  4979. // iterating, return false from the fn function.
  4980. //
  4981. // See DescribeDBSecurityGroups method for more information on how to use this operation.
  4982. //
  4983. // Note: This operation can generate multiple requests to a service.
  4984. //
  4985. // // Example iterating over at most 3 pages of a DescribeDBSecurityGroups operation.
  4986. // pageNum := 0
  4987. // err := client.DescribeDBSecurityGroupsPages(params,
  4988. // func(page *DescribeDBSecurityGroupsOutput, lastPage bool) bool {
  4989. // pageNum++
  4990. // fmt.Println(page)
  4991. // return pageNum <= 3
  4992. // })
  4993. //
  4994. func (c *RDS) DescribeDBSecurityGroupsPages(input *DescribeDBSecurityGroupsInput, fn func(*DescribeDBSecurityGroupsOutput, bool) bool) error {
  4995. return c.DescribeDBSecurityGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
  4996. }
  4997. // DescribeDBSecurityGroupsPagesWithContext same as DescribeDBSecurityGroupsPages except
  4998. // it takes a Context and allows setting request options on the pages.
  4999. //
  5000. // The context must be non-nil and will be used for request cancellation. If
  5001. // the context is nil a panic will occur. In the future the SDK may create
  5002. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5003. // for more information on using Contexts.
  5004. func (c *RDS) DescribeDBSecurityGroupsPagesWithContext(ctx aws.Context, input *DescribeDBSecurityGroupsInput, fn func(*DescribeDBSecurityGroupsOutput, bool) bool, opts ...request.Option) error {
  5005. p := request.Pagination{
  5006. NewRequest: func() (*request.Request, error) {
  5007. var inCpy *DescribeDBSecurityGroupsInput
  5008. if input != nil {
  5009. tmp := *input
  5010. inCpy = &tmp
  5011. }
  5012. req, _ := c.DescribeDBSecurityGroupsRequest(inCpy)
  5013. req.SetContext(ctx)
  5014. req.ApplyOptions(opts...)
  5015. return req, nil
  5016. },
  5017. }
  5018. cont := true
  5019. for p.Next() && cont {
  5020. cont = fn(p.Page().(*DescribeDBSecurityGroupsOutput), !p.HasNextPage())
  5021. }
  5022. return p.Err()
  5023. }
  5024. const opDescribeDBSnapshotAttributes = "DescribeDBSnapshotAttributes"
  5025. // DescribeDBSnapshotAttributesRequest generates a "aws/request.Request" representing the
  5026. // client's request for the DescribeDBSnapshotAttributes operation. The "output" return
  5027. // value will be populated with the request's response once the request completes
  5028. // successfully.
  5029. //
  5030. // Use "Send" method on the returned Request to send the API call to the service.
  5031. // the "output" return value is not valid until after Send returns without error.
  5032. //
  5033. // See DescribeDBSnapshotAttributes for more information on using the DescribeDBSnapshotAttributes
  5034. // API call, and error handling.
  5035. //
  5036. // This method is useful when you want to inject custom logic or configuration
  5037. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5038. //
  5039. //
  5040. // // Example sending a request using the DescribeDBSnapshotAttributesRequest method.
  5041. // req, resp := client.DescribeDBSnapshotAttributesRequest(params)
  5042. //
  5043. // err := req.Send()
  5044. // if err == nil { // resp is now filled
  5045. // fmt.Println(resp)
  5046. // }
  5047. //
  5048. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshotAttributes
  5049. func (c *RDS) DescribeDBSnapshotAttributesRequest(input *DescribeDBSnapshotAttributesInput) (req *request.Request, output *DescribeDBSnapshotAttributesOutput) {
  5050. op := &request.Operation{
  5051. Name: opDescribeDBSnapshotAttributes,
  5052. HTTPMethod: "POST",
  5053. HTTPPath: "/",
  5054. }
  5055. if input == nil {
  5056. input = &DescribeDBSnapshotAttributesInput{}
  5057. }
  5058. output = &DescribeDBSnapshotAttributesOutput{}
  5059. req = c.newRequest(op, input, output)
  5060. return
  5061. }
  5062. // DescribeDBSnapshotAttributes API operation for Amazon Relational Database Service.
  5063. //
  5064. // Returns a list of DB snapshot attribute names and values for a manual DB
  5065. // snapshot.
  5066. //
  5067. // When sharing snapshots with other AWS accounts, DescribeDBSnapshotAttributes
  5068. // returns the restore attribute and a list of IDs for the AWS accounts that
  5069. // are authorized to copy or restore the manual DB snapshot. If all is included
  5070. // in the list of values for the restore attribute, then the manual DB snapshot
  5071. // is public and can be copied or restored by all AWS accounts.
  5072. //
  5073. // To add or remove access for an AWS account to copy or restore a manual DB
  5074. // snapshot, or to make the manual DB snapshot public or private, use the ModifyDBSnapshotAttribute
  5075. // API action.
  5076. //
  5077. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5078. // with awserr.Error's Code and Message methods to get detailed information about
  5079. // the error.
  5080. //
  5081. // See the AWS API reference guide for Amazon Relational Database Service's
  5082. // API operation DescribeDBSnapshotAttributes for usage and error information.
  5083. //
  5084. // Returned Error Codes:
  5085. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  5086. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  5087. //
  5088. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshotAttributes
  5089. func (c *RDS) DescribeDBSnapshotAttributes(input *DescribeDBSnapshotAttributesInput) (*DescribeDBSnapshotAttributesOutput, error) {
  5090. req, out := c.DescribeDBSnapshotAttributesRequest(input)
  5091. return out, req.Send()
  5092. }
  5093. // DescribeDBSnapshotAttributesWithContext is the same as DescribeDBSnapshotAttributes with the addition of
  5094. // the ability to pass a context and additional request options.
  5095. //
  5096. // See DescribeDBSnapshotAttributes for details on how to use this API operation.
  5097. //
  5098. // The context must be non-nil and will be used for request cancellation. If
  5099. // the context is nil a panic will occur. In the future the SDK may create
  5100. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5101. // for more information on using Contexts.
  5102. func (c *RDS) DescribeDBSnapshotAttributesWithContext(ctx aws.Context, input *DescribeDBSnapshotAttributesInput, opts ...request.Option) (*DescribeDBSnapshotAttributesOutput, error) {
  5103. req, out := c.DescribeDBSnapshotAttributesRequest(input)
  5104. req.SetContext(ctx)
  5105. req.ApplyOptions(opts...)
  5106. return out, req.Send()
  5107. }
  5108. const opDescribeDBSnapshots = "DescribeDBSnapshots"
  5109. // DescribeDBSnapshotsRequest generates a "aws/request.Request" representing the
  5110. // client's request for the DescribeDBSnapshots operation. The "output" return
  5111. // value will be populated with the request's response once the request completes
  5112. // successfully.
  5113. //
  5114. // Use "Send" method on the returned Request to send the API call to the service.
  5115. // the "output" return value is not valid until after Send returns without error.
  5116. //
  5117. // See DescribeDBSnapshots for more information on using the DescribeDBSnapshots
  5118. // API call, and error handling.
  5119. //
  5120. // This method is useful when you want to inject custom logic or configuration
  5121. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5122. //
  5123. //
  5124. // // Example sending a request using the DescribeDBSnapshotsRequest method.
  5125. // req, resp := client.DescribeDBSnapshotsRequest(params)
  5126. //
  5127. // err := req.Send()
  5128. // if err == nil { // resp is now filled
  5129. // fmt.Println(resp)
  5130. // }
  5131. //
  5132. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshots
  5133. func (c *RDS) DescribeDBSnapshotsRequest(input *DescribeDBSnapshotsInput) (req *request.Request, output *DescribeDBSnapshotsOutput) {
  5134. op := &request.Operation{
  5135. Name: opDescribeDBSnapshots,
  5136. HTTPMethod: "POST",
  5137. HTTPPath: "/",
  5138. Paginator: &request.Paginator{
  5139. InputTokens: []string{"Marker"},
  5140. OutputTokens: []string{"Marker"},
  5141. LimitToken: "MaxRecords",
  5142. TruncationToken: "",
  5143. },
  5144. }
  5145. if input == nil {
  5146. input = &DescribeDBSnapshotsInput{}
  5147. }
  5148. output = &DescribeDBSnapshotsOutput{}
  5149. req = c.newRequest(op, input, output)
  5150. return
  5151. }
  5152. // DescribeDBSnapshots API operation for Amazon Relational Database Service.
  5153. //
  5154. // Returns information about DB snapshots. This API action supports pagination.
  5155. //
  5156. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5157. // with awserr.Error's Code and Message methods to get detailed information about
  5158. // the error.
  5159. //
  5160. // See the AWS API reference guide for Amazon Relational Database Service's
  5161. // API operation DescribeDBSnapshots for usage and error information.
  5162. //
  5163. // Returned Error Codes:
  5164. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  5165. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  5166. //
  5167. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSnapshots
  5168. func (c *RDS) DescribeDBSnapshots(input *DescribeDBSnapshotsInput) (*DescribeDBSnapshotsOutput, error) {
  5169. req, out := c.DescribeDBSnapshotsRequest(input)
  5170. return out, req.Send()
  5171. }
  5172. // DescribeDBSnapshotsWithContext is the same as DescribeDBSnapshots with the addition of
  5173. // the ability to pass a context and additional request options.
  5174. //
  5175. // See DescribeDBSnapshots for details on how to use this API operation.
  5176. //
  5177. // The context must be non-nil and will be used for request cancellation. If
  5178. // the context is nil a panic will occur. In the future the SDK may create
  5179. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5180. // for more information on using Contexts.
  5181. func (c *RDS) DescribeDBSnapshotsWithContext(ctx aws.Context, input *DescribeDBSnapshotsInput, opts ...request.Option) (*DescribeDBSnapshotsOutput, error) {
  5182. req, out := c.DescribeDBSnapshotsRequest(input)
  5183. req.SetContext(ctx)
  5184. req.ApplyOptions(opts...)
  5185. return out, req.Send()
  5186. }
  5187. // DescribeDBSnapshotsPages iterates over the pages of a DescribeDBSnapshots operation,
  5188. // calling the "fn" function with the response data for each page. To stop
  5189. // iterating, return false from the fn function.
  5190. //
  5191. // See DescribeDBSnapshots method for more information on how to use this operation.
  5192. //
  5193. // Note: This operation can generate multiple requests to a service.
  5194. //
  5195. // // Example iterating over at most 3 pages of a DescribeDBSnapshots operation.
  5196. // pageNum := 0
  5197. // err := client.DescribeDBSnapshotsPages(params,
  5198. // func(page *DescribeDBSnapshotsOutput, lastPage bool) bool {
  5199. // pageNum++
  5200. // fmt.Println(page)
  5201. // return pageNum <= 3
  5202. // })
  5203. //
  5204. func (c *RDS) DescribeDBSnapshotsPages(input *DescribeDBSnapshotsInput, fn func(*DescribeDBSnapshotsOutput, bool) bool) error {
  5205. return c.DescribeDBSnapshotsPagesWithContext(aws.BackgroundContext(), input, fn)
  5206. }
  5207. // DescribeDBSnapshotsPagesWithContext same as DescribeDBSnapshotsPages except
  5208. // it takes a Context and allows setting request options on the pages.
  5209. //
  5210. // The context must be non-nil and will be used for request cancellation. If
  5211. // the context is nil a panic will occur. In the future the SDK may create
  5212. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5213. // for more information on using Contexts.
  5214. func (c *RDS) DescribeDBSnapshotsPagesWithContext(ctx aws.Context, input *DescribeDBSnapshotsInput, fn func(*DescribeDBSnapshotsOutput, bool) bool, opts ...request.Option) error {
  5215. p := request.Pagination{
  5216. NewRequest: func() (*request.Request, error) {
  5217. var inCpy *DescribeDBSnapshotsInput
  5218. if input != nil {
  5219. tmp := *input
  5220. inCpy = &tmp
  5221. }
  5222. req, _ := c.DescribeDBSnapshotsRequest(inCpy)
  5223. req.SetContext(ctx)
  5224. req.ApplyOptions(opts...)
  5225. return req, nil
  5226. },
  5227. }
  5228. cont := true
  5229. for p.Next() && cont {
  5230. cont = fn(p.Page().(*DescribeDBSnapshotsOutput), !p.HasNextPage())
  5231. }
  5232. return p.Err()
  5233. }
  5234. const opDescribeDBSubnetGroups = "DescribeDBSubnetGroups"
  5235. // DescribeDBSubnetGroupsRequest generates a "aws/request.Request" representing the
  5236. // client's request for the DescribeDBSubnetGroups operation. The "output" return
  5237. // value will be populated with the request's response once the request completes
  5238. // successfully.
  5239. //
  5240. // Use "Send" method on the returned Request to send the API call to the service.
  5241. // the "output" return value is not valid until after Send returns without error.
  5242. //
  5243. // See DescribeDBSubnetGroups for more information on using the DescribeDBSubnetGroups
  5244. // API call, and error handling.
  5245. //
  5246. // This method is useful when you want to inject custom logic or configuration
  5247. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5248. //
  5249. //
  5250. // // Example sending a request using the DescribeDBSubnetGroupsRequest method.
  5251. // req, resp := client.DescribeDBSubnetGroupsRequest(params)
  5252. //
  5253. // err := req.Send()
  5254. // if err == nil { // resp is now filled
  5255. // fmt.Println(resp)
  5256. // }
  5257. //
  5258. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSubnetGroups
  5259. func (c *RDS) DescribeDBSubnetGroupsRequest(input *DescribeDBSubnetGroupsInput) (req *request.Request, output *DescribeDBSubnetGroupsOutput) {
  5260. op := &request.Operation{
  5261. Name: opDescribeDBSubnetGroups,
  5262. HTTPMethod: "POST",
  5263. HTTPPath: "/",
  5264. Paginator: &request.Paginator{
  5265. InputTokens: []string{"Marker"},
  5266. OutputTokens: []string{"Marker"},
  5267. LimitToken: "MaxRecords",
  5268. TruncationToken: "",
  5269. },
  5270. }
  5271. if input == nil {
  5272. input = &DescribeDBSubnetGroupsInput{}
  5273. }
  5274. output = &DescribeDBSubnetGroupsOutput{}
  5275. req = c.newRequest(op, input, output)
  5276. return
  5277. }
  5278. // DescribeDBSubnetGroups API operation for Amazon Relational Database Service.
  5279. //
  5280. // Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified,
  5281. // the list will contain only the descriptions of the specified DBSubnetGroup.
  5282. //
  5283. // For an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing).
  5284. //
  5285. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5286. // with awserr.Error's Code and Message methods to get detailed information about
  5287. // the error.
  5288. //
  5289. // See the AWS API reference guide for Amazon Relational Database Service's
  5290. // API operation DescribeDBSubnetGroups for usage and error information.
  5291. //
  5292. // Returned Error Codes:
  5293. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  5294. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  5295. //
  5296. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBSubnetGroups
  5297. func (c *RDS) DescribeDBSubnetGroups(input *DescribeDBSubnetGroupsInput) (*DescribeDBSubnetGroupsOutput, error) {
  5298. req, out := c.DescribeDBSubnetGroupsRequest(input)
  5299. return out, req.Send()
  5300. }
  5301. // DescribeDBSubnetGroupsWithContext is the same as DescribeDBSubnetGroups with the addition of
  5302. // the ability to pass a context and additional request options.
  5303. //
  5304. // See DescribeDBSubnetGroups for details on how to use this API operation.
  5305. //
  5306. // The context must be non-nil and will be used for request cancellation. If
  5307. // the context is nil a panic will occur. In the future the SDK may create
  5308. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5309. // for more information on using Contexts.
  5310. func (c *RDS) DescribeDBSubnetGroupsWithContext(ctx aws.Context, input *DescribeDBSubnetGroupsInput, opts ...request.Option) (*DescribeDBSubnetGroupsOutput, error) {
  5311. req, out := c.DescribeDBSubnetGroupsRequest(input)
  5312. req.SetContext(ctx)
  5313. req.ApplyOptions(opts...)
  5314. return out, req.Send()
  5315. }
  5316. // DescribeDBSubnetGroupsPages iterates over the pages of a DescribeDBSubnetGroups operation,
  5317. // calling the "fn" function with the response data for each page. To stop
  5318. // iterating, return false from the fn function.
  5319. //
  5320. // See DescribeDBSubnetGroups method for more information on how to use this operation.
  5321. //
  5322. // Note: This operation can generate multiple requests to a service.
  5323. //
  5324. // // Example iterating over at most 3 pages of a DescribeDBSubnetGroups operation.
  5325. // pageNum := 0
  5326. // err := client.DescribeDBSubnetGroupsPages(params,
  5327. // func(page *DescribeDBSubnetGroupsOutput, lastPage bool) bool {
  5328. // pageNum++
  5329. // fmt.Println(page)
  5330. // return pageNum <= 3
  5331. // })
  5332. //
  5333. func (c *RDS) DescribeDBSubnetGroupsPages(input *DescribeDBSubnetGroupsInput, fn func(*DescribeDBSubnetGroupsOutput, bool) bool) error {
  5334. return c.DescribeDBSubnetGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
  5335. }
  5336. // DescribeDBSubnetGroupsPagesWithContext same as DescribeDBSubnetGroupsPages except
  5337. // it takes a Context and allows setting request options on the pages.
  5338. //
  5339. // The context must be non-nil and will be used for request cancellation. If
  5340. // the context is nil a panic will occur. In the future the SDK may create
  5341. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5342. // for more information on using Contexts.
  5343. func (c *RDS) DescribeDBSubnetGroupsPagesWithContext(ctx aws.Context, input *DescribeDBSubnetGroupsInput, fn func(*DescribeDBSubnetGroupsOutput, bool) bool, opts ...request.Option) error {
  5344. p := request.Pagination{
  5345. NewRequest: func() (*request.Request, error) {
  5346. var inCpy *DescribeDBSubnetGroupsInput
  5347. if input != nil {
  5348. tmp := *input
  5349. inCpy = &tmp
  5350. }
  5351. req, _ := c.DescribeDBSubnetGroupsRequest(inCpy)
  5352. req.SetContext(ctx)
  5353. req.ApplyOptions(opts...)
  5354. return req, nil
  5355. },
  5356. }
  5357. cont := true
  5358. for p.Next() && cont {
  5359. cont = fn(p.Page().(*DescribeDBSubnetGroupsOutput), !p.HasNextPage())
  5360. }
  5361. return p.Err()
  5362. }
  5363. const opDescribeEngineDefaultClusterParameters = "DescribeEngineDefaultClusterParameters"
  5364. // DescribeEngineDefaultClusterParametersRequest generates a "aws/request.Request" representing the
  5365. // client's request for the DescribeEngineDefaultClusterParameters operation. The "output" return
  5366. // value will be populated with the request's response once the request completes
  5367. // successfully.
  5368. //
  5369. // Use "Send" method on the returned Request to send the API call to the service.
  5370. // the "output" return value is not valid until after Send returns without error.
  5371. //
  5372. // See DescribeEngineDefaultClusterParameters for more information on using the DescribeEngineDefaultClusterParameters
  5373. // API call, and error handling.
  5374. //
  5375. // This method is useful when you want to inject custom logic or configuration
  5376. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5377. //
  5378. //
  5379. // // Example sending a request using the DescribeEngineDefaultClusterParametersRequest method.
  5380. // req, resp := client.DescribeEngineDefaultClusterParametersRequest(params)
  5381. //
  5382. // err := req.Send()
  5383. // if err == nil { // resp is now filled
  5384. // fmt.Println(resp)
  5385. // }
  5386. //
  5387. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEngineDefaultClusterParameters
  5388. func (c *RDS) DescribeEngineDefaultClusterParametersRequest(input *DescribeEngineDefaultClusterParametersInput) (req *request.Request, output *DescribeEngineDefaultClusterParametersOutput) {
  5389. op := &request.Operation{
  5390. Name: opDescribeEngineDefaultClusterParameters,
  5391. HTTPMethod: "POST",
  5392. HTTPPath: "/",
  5393. }
  5394. if input == nil {
  5395. input = &DescribeEngineDefaultClusterParametersInput{}
  5396. }
  5397. output = &DescribeEngineDefaultClusterParametersOutput{}
  5398. req = c.newRequest(op, input, output)
  5399. return
  5400. }
  5401. // DescribeEngineDefaultClusterParameters API operation for Amazon Relational Database Service.
  5402. //
  5403. // Returns the default engine and system parameter information for the cluster
  5404. // database engine.
  5405. //
  5406. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  5407. // in the Amazon Aurora User Guide.
  5408. //
  5409. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5410. // with awserr.Error's Code and Message methods to get detailed information about
  5411. // the error.
  5412. //
  5413. // See the AWS API reference guide for Amazon Relational Database Service's
  5414. // API operation DescribeEngineDefaultClusterParameters for usage and error information.
  5415. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEngineDefaultClusterParameters
  5416. func (c *RDS) DescribeEngineDefaultClusterParameters(input *DescribeEngineDefaultClusterParametersInput) (*DescribeEngineDefaultClusterParametersOutput, error) {
  5417. req, out := c.DescribeEngineDefaultClusterParametersRequest(input)
  5418. return out, req.Send()
  5419. }
  5420. // DescribeEngineDefaultClusterParametersWithContext is the same as DescribeEngineDefaultClusterParameters with the addition of
  5421. // the ability to pass a context and additional request options.
  5422. //
  5423. // See DescribeEngineDefaultClusterParameters for details on how to use this API operation.
  5424. //
  5425. // The context must be non-nil and will be used for request cancellation. If
  5426. // the context is nil a panic will occur. In the future the SDK may create
  5427. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5428. // for more information on using Contexts.
  5429. func (c *RDS) DescribeEngineDefaultClusterParametersWithContext(ctx aws.Context, input *DescribeEngineDefaultClusterParametersInput, opts ...request.Option) (*DescribeEngineDefaultClusterParametersOutput, error) {
  5430. req, out := c.DescribeEngineDefaultClusterParametersRequest(input)
  5431. req.SetContext(ctx)
  5432. req.ApplyOptions(opts...)
  5433. return out, req.Send()
  5434. }
  5435. const opDescribeEngineDefaultParameters = "DescribeEngineDefaultParameters"
  5436. // DescribeEngineDefaultParametersRequest generates a "aws/request.Request" representing the
  5437. // client's request for the DescribeEngineDefaultParameters operation. The "output" return
  5438. // value will be populated with the request's response once the request completes
  5439. // successfully.
  5440. //
  5441. // Use "Send" method on the returned Request to send the API call to the service.
  5442. // the "output" return value is not valid until after Send returns without error.
  5443. //
  5444. // See DescribeEngineDefaultParameters for more information on using the DescribeEngineDefaultParameters
  5445. // API call, and error handling.
  5446. //
  5447. // This method is useful when you want to inject custom logic or configuration
  5448. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5449. //
  5450. //
  5451. // // Example sending a request using the DescribeEngineDefaultParametersRequest method.
  5452. // req, resp := client.DescribeEngineDefaultParametersRequest(params)
  5453. //
  5454. // err := req.Send()
  5455. // if err == nil { // resp is now filled
  5456. // fmt.Println(resp)
  5457. // }
  5458. //
  5459. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEngineDefaultParameters
  5460. func (c *RDS) DescribeEngineDefaultParametersRequest(input *DescribeEngineDefaultParametersInput) (req *request.Request, output *DescribeEngineDefaultParametersOutput) {
  5461. op := &request.Operation{
  5462. Name: opDescribeEngineDefaultParameters,
  5463. HTTPMethod: "POST",
  5464. HTTPPath: "/",
  5465. Paginator: &request.Paginator{
  5466. InputTokens: []string{"Marker"},
  5467. OutputTokens: []string{"EngineDefaults.Marker"},
  5468. LimitToken: "MaxRecords",
  5469. TruncationToken: "",
  5470. },
  5471. }
  5472. if input == nil {
  5473. input = &DescribeEngineDefaultParametersInput{}
  5474. }
  5475. output = &DescribeEngineDefaultParametersOutput{}
  5476. req = c.newRequest(op, input, output)
  5477. return
  5478. }
  5479. // DescribeEngineDefaultParameters API operation for Amazon Relational Database Service.
  5480. //
  5481. // Returns the default engine and system parameter information for the specified
  5482. // database engine.
  5483. //
  5484. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5485. // with awserr.Error's Code and Message methods to get detailed information about
  5486. // the error.
  5487. //
  5488. // See the AWS API reference guide for Amazon Relational Database Service's
  5489. // API operation DescribeEngineDefaultParameters for usage and error information.
  5490. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEngineDefaultParameters
  5491. func (c *RDS) DescribeEngineDefaultParameters(input *DescribeEngineDefaultParametersInput) (*DescribeEngineDefaultParametersOutput, error) {
  5492. req, out := c.DescribeEngineDefaultParametersRequest(input)
  5493. return out, req.Send()
  5494. }
  5495. // DescribeEngineDefaultParametersWithContext is the same as DescribeEngineDefaultParameters with the addition of
  5496. // the ability to pass a context and additional request options.
  5497. //
  5498. // See DescribeEngineDefaultParameters for details on how to use this API operation.
  5499. //
  5500. // The context must be non-nil and will be used for request cancellation. If
  5501. // the context is nil a panic will occur. In the future the SDK may create
  5502. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5503. // for more information on using Contexts.
  5504. func (c *RDS) DescribeEngineDefaultParametersWithContext(ctx aws.Context, input *DescribeEngineDefaultParametersInput, opts ...request.Option) (*DescribeEngineDefaultParametersOutput, error) {
  5505. req, out := c.DescribeEngineDefaultParametersRequest(input)
  5506. req.SetContext(ctx)
  5507. req.ApplyOptions(opts...)
  5508. return out, req.Send()
  5509. }
  5510. // DescribeEngineDefaultParametersPages iterates over the pages of a DescribeEngineDefaultParameters operation,
  5511. // calling the "fn" function with the response data for each page. To stop
  5512. // iterating, return false from the fn function.
  5513. //
  5514. // See DescribeEngineDefaultParameters method for more information on how to use this operation.
  5515. //
  5516. // Note: This operation can generate multiple requests to a service.
  5517. //
  5518. // // Example iterating over at most 3 pages of a DescribeEngineDefaultParameters operation.
  5519. // pageNum := 0
  5520. // err := client.DescribeEngineDefaultParametersPages(params,
  5521. // func(page *DescribeEngineDefaultParametersOutput, lastPage bool) bool {
  5522. // pageNum++
  5523. // fmt.Println(page)
  5524. // return pageNum <= 3
  5525. // })
  5526. //
  5527. func (c *RDS) DescribeEngineDefaultParametersPages(input *DescribeEngineDefaultParametersInput, fn func(*DescribeEngineDefaultParametersOutput, bool) bool) error {
  5528. return c.DescribeEngineDefaultParametersPagesWithContext(aws.BackgroundContext(), input, fn)
  5529. }
  5530. // DescribeEngineDefaultParametersPagesWithContext same as DescribeEngineDefaultParametersPages except
  5531. // it takes a Context and allows setting request options on the pages.
  5532. //
  5533. // The context must be non-nil and will be used for request cancellation. If
  5534. // the context is nil a panic will occur. In the future the SDK may create
  5535. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5536. // for more information on using Contexts.
  5537. func (c *RDS) DescribeEngineDefaultParametersPagesWithContext(ctx aws.Context, input *DescribeEngineDefaultParametersInput, fn func(*DescribeEngineDefaultParametersOutput, bool) bool, opts ...request.Option) error {
  5538. p := request.Pagination{
  5539. NewRequest: func() (*request.Request, error) {
  5540. var inCpy *DescribeEngineDefaultParametersInput
  5541. if input != nil {
  5542. tmp := *input
  5543. inCpy = &tmp
  5544. }
  5545. req, _ := c.DescribeEngineDefaultParametersRequest(inCpy)
  5546. req.SetContext(ctx)
  5547. req.ApplyOptions(opts...)
  5548. return req, nil
  5549. },
  5550. }
  5551. cont := true
  5552. for p.Next() && cont {
  5553. cont = fn(p.Page().(*DescribeEngineDefaultParametersOutput), !p.HasNextPage())
  5554. }
  5555. return p.Err()
  5556. }
  5557. const opDescribeEventCategories = "DescribeEventCategories"
  5558. // DescribeEventCategoriesRequest generates a "aws/request.Request" representing the
  5559. // client's request for the DescribeEventCategories operation. The "output" return
  5560. // value will be populated with the request's response once the request completes
  5561. // successfully.
  5562. //
  5563. // Use "Send" method on the returned Request to send the API call to the service.
  5564. // the "output" return value is not valid until after Send returns without error.
  5565. //
  5566. // See DescribeEventCategories for more information on using the DescribeEventCategories
  5567. // API call, and error handling.
  5568. //
  5569. // This method is useful when you want to inject custom logic or configuration
  5570. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5571. //
  5572. //
  5573. // // Example sending a request using the DescribeEventCategoriesRequest method.
  5574. // req, resp := client.DescribeEventCategoriesRequest(params)
  5575. //
  5576. // err := req.Send()
  5577. // if err == nil { // resp is now filled
  5578. // fmt.Println(resp)
  5579. // }
  5580. //
  5581. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEventCategories
  5582. func (c *RDS) DescribeEventCategoriesRequest(input *DescribeEventCategoriesInput) (req *request.Request, output *DescribeEventCategoriesOutput) {
  5583. op := &request.Operation{
  5584. Name: opDescribeEventCategories,
  5585. HTTPMethod: "POST",
  5586. HTTPPath: "/",
  5587. }
  5588. if input == nil {
  5589. input = &DescribeEventCategoriesInput{}
  5590. }
  5591. output = &DescribeEventCategoriesOutput{}
  5592. req = c.newRequest(op, input, output)
  5593. return
  5594. }
  5595. // DescribeEventCategories API operation for Amazon Relational Database Service.
  5596. //
  5597. // Displays a list of categories for all event source types, or, if specified,
  5598. // for a specified source type. You can see a list of the event categories and
  5599. // source types in the Events (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html)
  5600. // topic in the Amazon RDS User Guide.
  5601. //
  5602. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5603. // with awserr.Error's Code and Message methods to get detailed information about
  5604. // the error.
  5605. //
  5606. // See the AWS API reference guide for Amazon Relational Database Service's
  5607. // API operation DescribeEventCategories for usage and error information.
  5608. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEventCategories
  5609. func (c *RDS) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error) {
  5610. req, out := c.DescribeEventCategoriesRequest(input)
  5611. return out, req.Send()
  5612. }
  5613. // DescribeEventCategoriesWithContext is the same as DescribeEventCategories with the addition of
  5614. // the ability to pass a context and additional request options.
  5615. //
  5616. // See DescribeEventCategories for details on how to use this API operation.
  5617. //
  5618. // The context must be non-nil and will be used for request cancellation. If
  5619. // the context is nil a panic will occur. In the future the SDK may create
  5620. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5621. // for more information on using Contexts.
  5622. func (c *RDS) DescribeEventCategoriesWithContext(ctx aws.Context, input *DescribeEventCategoriesInput, opts ...request.Option) (*DescribeEventCategoriesOutput, error) {
  5623. req, out := c.DescribeEventCategoriesRequest(input)
  5624. req.SetContext(ctx)
  5625. req.ApplyOptions(opts...)
  5626. return out, req.Send()
  5627. }
  5628. const opDescribeEventSubscriptions = "DescribeEventSubscriptions"
  5629. // DescribeEventSubscriptionsRequest generates a "aws/request.Request" representing the
  5630. // client's request for the DescribeEventSubscriptions operation. The "output" return
  5631. // value will be populated with the request's response once the request completes
  5632. // successfully.
  5633. //
  5634. // Use "Send" method on the returned Request to send the API call to the service.
  5635. // the "output" return value is not valid until after Send returns without error.
  5636. //
  5637. // See DescribeEventSubscriptions for more information on using the DescribeEventSubscriptions
  5638. // API call, and error handling.
  5639. //
  5640. // This method is useful when you want to inject custom logic or configuration
  5641. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5642. //
  5643. //
  5644. // // Example sending a request using the DescribeEventSubscriptionsRequest method.
  5645. // req, resp := client.DescribeEventSubscriptionsRequest(params)
  5646. //
  5647. // err := req.Send()
  5648. // if err == nil { // resp is now filled
  5649. // fmt.Println(resp)
  5650. // }
  5651. //
  5652. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEventSubscriptions
  5653. func (c *RDS) DescribeEventSubscriptionsRequest(input *DescribeEventSubscriptionsInput) (req *request.Request, output *DescribeEventSubscriptionsOutput) {
  5654. op := &request.Operation{
  5655. Name: opDescribeEventSubscriptions,
  5656. HTTPMethod: "POST",
  5657. HTTPPath: "/",
  5658. Paginator: &request.Paginator{
  5659. InputTokens: []string{"Marker"},
  5660. OutputTokens: []string{"Marker"},
  5661. LimitToken: "MaxRecords",
  5662. TruncationToken: "",
  5663. },
  5664. }
  5665. if input == nil {
  5666. input = &DescribeEventSubscriptionsInput{}
  5667. }
  5668. output = &DescribeEventSubscriptionsOutput{}
  5669. req = c.newRequest(op, input, output)
  5670. return
  5671. }
  5672. // DescribeEventSubscriptions API operation for Amazon Relational Database Service.
  5673. //
  5674. // Lists all the subscription descriptions for a customer account. The description
  5675. // for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType,
  5676. // SourceID, CreationTime, and Status.
  5677. //
  5678. // If you specify a SubscriptionName, lists the description for that subscription.
  5679. //
  5680. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5681. // with awserr.Error's Code and Message methods to get detailed information about
  5682. // the error.
  5683. //
  5684. // See the AWS API reference guide for Amazon Relational Database Service's
  5685. // API operation DescribeEventSubscriptions for usage and error information.
  5686. //
  5687. // Returned Error Codes:
  5688. // * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound"
  5689. // The subscription name does not exist.
  5690. //
  5691. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEventSubscriptions
  5692. func (c *RDS) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) (*DescribeEventSubscriptionsOutput, error) {
  5693. req, out := c.DescribeEventSubscriptionsRequest(input)
  5694. return out, req.Send()
  5695. }
  5696. // DescribeEventSubscriptionsWithContext is the same as DescribeEventSubscriptions with the addition of
  5697. // the ability to pass a context and additional request options.
  5698. //
  5699. // See DescribeEventSubscriptions for details on how to use this API operation.
  5700. //
  5701. // The context must be non-nil and will be used for request cancellation. If
  5702. // the context is nil a panic will occur. In the future the SDK may create
  5703. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5704. // for more information on using Contexts.
  5705. func (c *RDS) DescribeEventSubscriptionsWithContext(ctx aws.Context, input *DescribeEventSubscriptionsInput, opts ...request.Option) (*DescribeEventSubscriptionsOutput, error) {
  5706. req, out := c.DescribeEventSubscriptionsRequest(input)
  5707. req.SetContext(ctx)
  5708. req.ApplyOptions(opts...)
  5709. return out, req.Send()
  5710. }
  5711. // DescribeEventSubscriptionsPages iterates over the pages of a DescribeEventSubscriptions operation,
  5712. // calling the "fn" function with the response data for each page. To stop
  5713. // iterating, return false from the fn function.
  5714. //
  5715. // See DescribeEventSubscriptions method for more information on how to use this operation.
  5716. //
  5717. // Note: This operation can generate multiple requests to a service.
  5718. //
  5719. // // Example iterating over at most 3 pages of a DescribeEventSubscriptions operation.
  5720. // pageNum := 0
  5721. // err := client.DescribeEventSubscriptionsPages(params,
  5722. // func(page *DescribeEventSubscriptionsOutput, lastPage bool) bool {
  5723. // pageNum++
  5724. // fmt.Println(page)
  5725. // return pageNum <= 3
  5726. // })
  5727. //
  5728. func (c *RDS) DescribeEventSubscriptionsPages(input *DescribeEventSubscriptionsInput, fn func(*DescribeEventSubscriptionsOutput, bool) bool) error {
  5729. return c.DescribeEventSubscriptionsPagesWithContext(aws.BackgroundContext(), input, fn)
  5730. }
  5731. // DescribeEventSubscriptionsPagesWithContext same as DescribeEventSubscriptionsPages except
  5732. // it takes a Context and allows setting request options on the pages.
  5733. //
  5734. // The context must be non-nil and will be used for request cancellation. If
  5735. // the context is nil a panic will occur. In the future the SDK may create
  5736. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5737. // for more information on using Contexts.
  5738. func (c *RDS) DescribeEventSubscriptionsPagesWithContext(ctx aws.Context, input *DescribeEventSubscriptionsInput, fn func(*DescribeEventSubscriptionsOutput, bool) bool, opts ...request.Option) error {
  5739. p := request.Pagination{
  5740. NewRequest: func() (*request.Request, error) {
  5741. var inCpy *DescribeEventSubscriptionsInput
  5742. if input != nil {
  5743. tmp := *input
  5744. inCpy = &tmp
  5745. }
  5746. req, _ := c.DescribeEventSubscriptionsRequest(inCpy)
  5747. req.SetContext(ctx)
  5748. req.ApplyOptions(opts...)
  5749. return req, nil
  5750. },
  5751. }
  5752. cont := true
  5753. for p.Next() && cont {
  5754. cont = fn(p.Page().(*DescribeEventSubscriptionsOutput), !p.HasNextPage())
  5755. }
  5756. return p.Err()
  5757. }
  5758. const opDescribeEvents = "DescribeEvents"
  5759. // DescribeEventsRequest generates a "aws/request.Request" representing the
  5760. // client's request for the DescribeEvents operation. The "output" return
  5761. // value will be populated with the request's response once the request completes
  5762. // successfully.
  5763. //
  5764. // Use "Send" method on the returned Request to send the API call to the service.
  5765. // the "output" return value is not valid until after Send returns without error.
  5766. //
  5767. // See DescribeEvents for more information on using the DescribeEvents
  5768. // API call, and error handling.
  5769. //
  5770. // This method is useful when you want to inject custom logic or configuration
  5771. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5772. //
  5773. //
  5774. // // Example sending a request using the DescribeEventsRequest method.
  5775. // req, resp := client.DescribeEventsRequest(params)
  5776. //
  5777. // err := req.Send()
  5778. // if err == nil { // resp is now filled
  5779. // fmt.Println(resp)
  5780. // }
  5781. //
  5782. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEvents
  5783. func (c *RDS) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) {
  5784. op := &request.Operation{
  5785. Name: opDescribeEvents,
  5786. HTTPMethod: "POST",
  5787. HTTPPath: "/",
  5788. Paginator: &request.Paginator{
  5789. InputTokens: []string{"Marker"},
  5790. OutputTokens: []string{"Marker"},
  5791. LimitToken: "MaxRecords",
  5792. TruncationToken: "",
  5793. },
  5794. }
  5795. if input == nil {
  5796. input = &DescribeEventsInput{}
  5797. }
  5798. output = &DescribeEventsOutput{}
  5799. req = c.newRequest(op, input, output)
  5800. return
  5801. }
  5802. // DescribeEvents API operation for Amazon Relational Database Service.
  5803. //
  5804. // Returns events related to DB instances, DB security groups, DB snapshots,
  5805. // and DB parameter groups for the past 14 days. Events specific to a particular
  5806. // DB instance, DB security group, database snapshot, or DB parameter group
  5807. // can be obtained by providing the name as a parameter. By default, the past
  5808. // hour of events are returned.
  5809. //
  5810. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5811. // with awserr.Error's Code and Message methods to get detailed information about
  5812. // the error.
  5813. //
  5814. // See the AWS API reference guide for Amazon Relational Database Service's
  5815. // API operation DescribeEvents for usage and error information.
  5816. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeEvents
  5817. func (c *RDS) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) {
  5818. req, out := c.DescribeEventsRequest(input)
  5819. return out, req.Send()
  5820. }
  5821. // DescribeEventsWithContext is the same as DescribeEvents with the addition of
  5822. // the ability to pass a context and additional request options.
  5823. //
  5824. // See DescribeEvents for details on how to use this API operation.
  5825. //
  5826. // The context must be non-nil and will be used for request cancellation. If
  5827. // the context is nil a panic will occur. In the future the SDK may create
  5828. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5829. // for more information on using Contexts.
  5830. func (c *RDS) DescribeEventsWithContext(ctx aws.Context, input *DescribeEventsInput, opts ...request.Option) (*DescribeEventsOutput, error) {
  5831. req, out := c.DescribeEventsRequest(input)
  5832. req.SetContext(ctx)
  5833. req.ApplyOptions(opts...)
  5834. return out, req.Send()
  5835. }
  5836. // DescribeEventsPages iterates over the pages of a DescribeEvents operation,
  5837. // calling the "fn" function with the response data for each page. To stop
  5838. // iterating, return false from the fn function.
  5839. //
  5840. // See DescribeEvents method for more information on how to use this operation.
  5841. //
  5842. // Note: This operation can generate multiple requests to a service.
  5843. //
  5844. // // Example iterating over at most 3 pages of a DescribeEvents operation.
  5845. // pageNum := 0
  5846. // err := client.DescribeEventsPages(params,
  5847. // func(page *DescribeEventsOutput, lastPage bool) bool {
  5848. // pageNum++
  5849. // fmt.Println(page)
  5850. // return pageNum <= 3
  5851. // })
  5852. //
  5853. func (c *RDS) DescribeEventsPages(input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool) error {
  5854. return c.DescribeEventsPagesWithContext(aws.BackgroundContext(), input, fn)
  5855. }
  5856. // DescribeEventsPagesWithContext same as DescribeEventsPages except
  5857. // it takes a Context and allows setting request options on the pages.
  5858. //
  5859. // The context must be non-nil and will be used for request cancellation. If
  5860. // the context is nil a panic will occur. In the future the SDK may create
  5861. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5862. // for more information on using Contexts.
  5863. func (c *RDS) DescribeEventsPagesWithContext(ctx aws.Context, input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool, opts ...request.Option) error {
  5864. p := request.Pagination{
  5865. NewRequest: func() (*request.Request, error) {
  5866. var inCpy *DescribeEventsInput
  5867. if input != nil {
  5868. tmp := *input
  5869. inCpy = &tmp
  5870. }
  5871. req, _ := c.DescribeEventsRequest(inCpy)
  5872. req.SetContext(ctx)
  5873. req.ApplyOptions(opts...)
  5874. return req, nil
  5875. },
  5876. }
  5877. cont := true
  5878. for p.Next() && cont {
  5879. cont = fn(p.Page().(*DescribeEventsOutput), !p.HasNextPage())
  5880. }
  5881. return p.Err()
  5882. }
  5883. const opDescribeGlobalClusters = "DescribeGlobalClusters"
  5884. // DescribeGlobalClustersRequest generates a "aws/request.Request" representing the
  5885. // client's request for the DescribeGlobalClusters operation. The "output" return
  5886. // value will be populated with the request's response once the request completes
  5887. // successfully.
  5888. //
  5889. // Use "Send" method on the returned Request to send the API call to the service.
  5890. // the "output" return value is not valid until after Send returns without error.
  5891. //
  5892. // See DescribeGlobalClusters for more information on using the DescribeGlobalClusters
  5893. // API call, and error handling.
  5894. //
  5895. // This method is useful when you want to inject custom logic or configuration
  5896. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  5897. //
  5898. //
  5899. // // Example sending a request using the DescribeGlobalClustersRequest method.
  5900. // req, resp := client.DescribeGlobalClustersRequest(params)
  5901. //
  5902. // err := req.Send()
  5903. // if err == nil { // resp is now filled
  5904. // fmt.Println(resp)
  5905. // }
  5906. //
  5907. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeGlobalClusters
  5908. func (c *RDS) DescribeGlobalClustersRequest(input *DescribeGlobalClustersInput) (req *request.Request, output *DescribeGlobalClustersOutput) {
  5909. op := &request.Operation{
  5910. Name: opDescribeGlobalClusters,
  5911. HTTPMethod: "POST",
  5912. HTTPPath: "/",
  5913. Paginator: &request.Paginator{
  5914. InputTokens: []string{"Marker"},
  5915. OutputTokens: []string{"Marker"},
  5916. LimitToken: "MaxRecords",
  5917. TruncationToken: "",
  5918. },
  5919. }
  5920. if input == nil {
  5921. input = &DescribeGlobalClustersInput{}
  5922. }
  5923. output = &DescribeGlobalClustersOutput{}
  5924. req = c.newRequest(op, input, output)
  5925. return
  5926. }
  5927. // DescribeGlobalClusters API operation for Amazon Relational Database Service.
  5928. //
  5929. // Returns information about Aurora global database clusters. This API supports
  5930. // pagination.
  5931. //
  5932. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  5933. // in the Amazon Aurora User Guide.
  5934. //
  5935. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  5936. // with awserr.Error's Code and Message methods to get detailed information about
  5937. // the error.
  5938. //
  5939. // See the AWS API reference guide for Amazon Relational Database Service's
  5940. // API operation DescribeGlobalClusters for usage and error information.
  5941. //
  5942. // Returned Error Codes:
  5943. // * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault"
  5944. //
  5945. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeGlobalClusters
  5946. func (c *RDS) DescribeGlobalClusters(input *DescribeGlobalClustersInput) (*DescribeGlobalClustersOutput, error) {
  5947. req, out := c.DescribeGlobalClustersRequest(input)
  5948. return out, req.Send()
  5949. }
  5950. // DescribeGlobalClustersWithContext is the same as DescribeGlobalClusters with the addition of
  5951. // the ability to pass a context and additional request options.
  5952. //
  5953. // See DescribeGlobalClusters for details on how to use this API operation.
  5954. //
  5955. // The context must be non-nil and will be used for request cancellation. If
  5956. // the context is nil a panic will occur. In the future the SDK may create
  5957. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5958. // for more information on using Contexts.
  5959. func (c *RDS) DescribeGlobalClustersWithContext(ctx aws.Context, input *DescribeGlobalClustersInput, opts ...request.Option) (*DescribeGlobalClustersOutput, error) {
  5960. req, out := c.DescribeGlobalClustersRequest(input)
  5961. req.SetContext(ctx)
  5962. req.ApplyOptions(opts...)
  5963. return out, req.Send()
  5964. }
  5965. // DescribeGlobalClustersPages iterates over the pages of a DescribeGlobalClusters operation,
  5966. // calling the "fn" function with the response data for each page. To stop
  5967. // iterating, return false from the fn function.
  5968. //
  5969. // See DescribeGlobalClusters method for more information on how to use this operation.
  5970. //
  5971. // Note: This operation can generate multiple requests to a service.
  5972. //
  5973. // // Example iterating over at most 3 pages of a DescribeGlobalClusters operation.
  5974. // pageNum := 0
  5975. // err := client.DescribeGlobalClustersPages(params,
  5976. // func(page *DescribeGlobalClustersOutput, lastPage bool) bool {
  5977. // pageNum++
  5978. // fmt.Println(page)
  5979. // return pageNum <= 3
  5980. // })
  5981. //
  5982. func (c *RDS) DescribeGlobalClustersPages(input *DescribeGlobalClustersInput, fn func(*DescribeGlobalClustersOutput, bool) bool) error {
  5983. return c.DescribeGlobalClustersPagesWithContext(aws.BackgroundContext(), input, fn)
  5984. }
  5985. // DescribeGlobalClustersPagesWithContext same as DescribeGlobalClustersPages except
  5986. // it takes a Context and allows setting request options on the pages.
  5987. //
  5988. // The context must be non-nil and will be used for request cancellation. If
  5989. // the context is nil a panic will occur. In the future the SDK may create
  5990. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  5991. // for more information on using Contexts.
  5992. func (c *RDS) DescribeGlobalClustersPagesWithContext(ctx aws.Context, input *DescribeGlobalClustersInput, fn func(*DescribeGlobalClustersOutput, bool) bool, opts ...request.Option) error {
  5993. p := request.Pagination{
  5994. NewRequest: func() (*request.Request, error) {
  5995. var inCpy *DescribeGlobalClustersInput
  5996. if input != nil {
  5997. tmp := *input
  5998. inCpy = &tmp
  5999. }
  6000. req, _ := c.DescribeGlobalClustersRequest(inCpy)
  6001. req.SetContext(ctx)
  6002. req.ApplyOptions(opts...)
  6003. return req, nil
  6004. },
  6005. }
  6006. cont := true
  6007. for p.Next() && cont {
  6008. cont = fn(p.Page().(*DescribeGlobalClustersOutput), !p.HasNextPage())
  6009. }
  6010. return p.Err()
  6011. }
  6012. const opDescribeOptionGroupOptions = "DescribeOptionGroupOptions"
  6013. // DescribeOptionGroupOptionsRequest generates a "aws/request.Request" representing the
  6014. // client's request for the DescribeOptionGroupOptions operation. The "output" return
  6015. // value will be populated with the request's response once the request completes
  6016. // successfully.
  6017. //
  6018. // Use "Send" method on the returned Request to send the API call to the service.
  6019. // the "output" return value is not valid until after Send returns without error.
  6020. //
  6021. // See DescribeOptionGroupOptions for more information on using the DescribeOptionGroupOptions
  6022. // API call, and error handling.
  6023. //
  6024. // This method is useful when you want to inject custom logic or configuration
  6025. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6026. //
  6027. //
  6028. // // Example sending a request using the DescribeOptionGroupOptionsRequest method.
  6029. // req, resp := client.DescribeOptionGroupOptionsRequest(params)
  6030. //
  6031. // err := req.Send()
  6032. // if err == nil { // resp is now filled
  6033. // fmt.Println(resp)
  6034. // }
  6035. //
  6036. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOptionGroupOptions
  6037. func (c *RDS) DescribeOptionGroupOptionsRequest(input *DescribeOptionGroupOptionsInput) (req *request.Request, output *DescribeOptionGroupOptionsOutput) {
  6038. op := &request.Operation{
  6039. Name: opDescribeOptionGroupOptions,
  6040. HTTPMethod: "POST",
  6041. HTTPPath: "/",
  6042. Paginator: &request.Paginator{
  6043. InputTokens: []string{"Marker"},
  6044. OutputTokens: []string{"Marker"},
  6045. LimitToken: "MaxRecords",
  6046. TruncationToken: "",
  6047. },
  6048. }
  6049. if input == nil {
  6050. input = &DescribeOptionGroupOptionsInput{}
  6051. }
  6052. output = &DescribeOptionGroupOptionsOutput{}
  6053. req = c.newRequest(op, input, output)
  6054. return
  6055. }
  6056. // DescribeOptionGroupOptions API operation for Amazon Relational Database Service.
  6057. //
  6058. // Describes all available options.
  6059. //
  6060. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6061. // with awserr.Error's Code and Message methods to get detailed information about
  6062. // the error.
  6063. //
  6064. // See the AWS API reference guide for Amazon Relational Database Service's
  6065. // API operation DescribeOptionGroupOptions for usage and error information.
  6066. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOptionGroupOptions
  6067. func (c *RDS) DescribeOptionGroupOptions(input *DescribeOptionGroupOptionsInput) (*DescribeOptionGroupOptionsOutput, error) {
  6068. req, out := c.DescribeOptionGroupOptionsRequest(input)
  6069. return out, req.Send()
  6070. }
  6071. // DescribeOptionGroupOptionsWithContext is the same as DescribeOptionGroupOptions with the addition of
  6072. // the ability to pass a context and additional request options.
  6073. //
  6074. // See DescribeOptionGroupOptions for details on how to use this API operation.
  6075. //
  6076. // The context must be non-nil and will be used for request cancellation. If
  6077. // the context is nil a panic will occur. In the future the SDK may create
  6078. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6079. // for more information on using Contexts.
  6080. func (c *RDS) DescribeOptionGroupOptionsWithContext(ctx aws.Context, input *DescribeOptionGroupOptionsInput, opts ...request.Option) (*DescribeOptionGroupOptionsOutput, error) {
  6081. req, out := c.DescribeOptionGroupOptionsRequest(input)
  6082. req.SetContext(ctx)
  6083. req.ApplyOptions(opts...)
  6084. return out, req.Send()
  6085. }
  6086. // DescribeOptionGroupOptionsPages iterates over the pages of a DescribeOptionGroupOptions operation,
  6087. // calling the "fn" function with the response data for each page. To stop
  6088. // iterating, return false from the fn function.
  6089. //
  6090. // See DescribeOptionGroupOptions method for more information on how to use this operation.
  6091. //
  6092. // Note: This operation can generate multiple requests to a service.
  6093. //
  6094. // // Example iterating over at most 3 pages of a DescribeOptionGroupOptions operation.
  6095. // pageNum := 0
  6096. // err := client.DescribeOptionGroupOptionsPages(params,
  6097. // func(page *DescribeOptionGroupOptionsOutput, lastPage bool) bool {
  6098. // pageNum++
  6099. // fmt.Println(page)
  6100. // return pageNum <= 3
  6101. // })
  6102. //
  6103. func (c *RDS) DescribeOptionGroupOptionsPages(input *DescribeOptionGroupOptionsInput, fn func(*DescribeOptionGroupOptionsOutput, bool) bool) error {
  6104. return c.DescribeOptionGroupOptionsPagesWithContext(aws.BackgroundContext(), input, fn)
  6105. }
  6106. // DescribeOptionGroupOptionsPagesWithContext same as DescribeOptionGroupOptionsPages except
  6107. // it takes a Context and allows setting request options on the pages.
  6108. //
  6109. // The context must be non-nil and will be used for request cancellation. If
  6110. // the context is nil a panic will occur. In the future the SDK may create
  6111. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6112. // for more information on using Contexts.
  6113. func (c *RDS) DescribeOptionGroupOptionsPagesWithContext(ctx aws.Context, input *DescribeOptionGroupOptionsInput, fn func(*DescribeOptionGroupOptionsOutput, bool) bool, opts ...request.Option) error {
  6114. p := request.Pagination{
  6115. NewRequest: func() (*request.Request, error) {
  6116. var inCpy *DescribeOptionGroupOptionsInput
  6117. if input != nil {
  6118. tmp := *input
  6119. inCpy = &tmp
  6120. }
  6121. req, _ := c.DescribeOptionGroupOptionsRequest(inCpy)
  6122. req.SetContext(ctx)
  6123. req.ApplyOptions(opts...)
  6124. return req, nil
  6125. },
  6126. }
  6127. cont := true
  6128. for p.Next() && cont {
  6129. cont = fn(p.Page().(*DescribeOptionGroupOptionsOutput), !p.HasNextPage())
  6130. }
  6131. return p.Err()
  6132. }
  6133. const opDescribeOptionGroups = "DescribeOptionGroups"
  6134. // DescribeOptionGroupsRequest generates a "aws/request.Request" representing the
  6135. // client's request for the DescribeOptionGroups operation. The "output" return
  6136. // value will be populated with the request's response once the request completes
  6137. // successfully.
  6138. //
  6139. // Use "Send" method on the returned Request to send the API call to the service.
  6140. // the "output" return value is not valid until after Send returns without error.
  6141. //
  6142. // See DescribeOptionGroups for more information on using the DescribeOptionGroups
  6143. // API call, and error handling.
  6144. //
  6145. // This method is useful when you want to inject custom logic or configuration
  6146. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6147. //
  6148. //
  6149. // // Example sending a request using the DescribeOptionGroupsRequest method.
  6150. // req, resp := client.DescribeOptionGroupsRequest(params)
  6151. //
  6152. // err := req.Send()
  6153. // if err == nil { // resp is now filled
  6154. // fmt.Println(resp)
  6155. // }
  6156. //
  6157. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOptionGroups
  6158. func (c *RDS) DescribeOptionGroupsRequest(input *DescribeOptionGroupsInput) (req *request.Request, output *DescribeOptionGroupsOutput) {
  6159. op := &request.Operation{
  6160. Name: opDescribeOptionGroups,
  6161. HTTPMethod: "POST",
  6162. HTTPPath: "/",
  6163. Paginator: &request.Paginator{
  6164. InputTokens: []string{"Marker"},
  6165. OutputTokens: []string{"Marker"},
  6166. LimitToken: "MaxRecords",
  6167. TruncationToken: "",
  6168. },
  6169. }
  6170. if input == nil {
  6171. input = &DescribeOptionGroupsInput{}
  6172. }
  6173. output = &DescribeOptionGroupsOutput{}
  6174. req = c.newRequest(op, input, output)
  6175. return
  6176. }
  6177. // DescribeOptionGroups API operation for Amazon Relational Database Service.
  6178. //
  6179. // Describes the available option groups.
  6180. //
  6181. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6182. // with awserr.Error's Code and Message methods to get detailed information about
  6183. // the error.
  6184. //
  6185. // See the AWS API reference guide for Amazon Relational Database Service's
  6186. // API operation DescribeOptionGroups for usage and error information.
  6187. //
  6188. // Returned Error Codes:
  6189. // * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault"
  6190. // The specified option group could not be found.
  6191. //
  6192. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOptionGroups
  6193. func (c *RDS) DescribeOptionGroups(input *DescribeOptionGroupsInput) (*DescribeOptionGroupsOutput, error) {
  6194. req, out := c.DescribeOptionGroupsRequest(input)
  6195. return out, req.Send()
  6196. }
  6197. // DescribeOptionGroupsWithContext is the same as DescribeOptionGroups with the addition of
  6198. // the ability to pass a context and additional request options.
  6199. //
  6200. // See DescribeOptionGroups for details on how to use this API operation.
  6201. //
  6202. // The context must be non-nil and will be used for request cancellation. If
  6203. // the context is nil a panic will occur. In the future the SDK may create
  6204. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6205. // for more information on using Contexts.
  6206. func (c *RDS) DescribeOptionGroupsWithContext(ctx aws.Context, input *DescribeOptionGroupsInput, opts ...request.Option) (*DescribeOptionGroupsOutput, error) {
  6207. req, out := c.DescribeOptionGroupsRequest(input)
  6208. req.SetContext(ctx)
  6209. req.ApplyOptions(opts...)
  6210. return out, req.Send()
  6211. }
  6212. // DescribeOptionGroupsPages iterates over the pages of a DescribeOptionGroups operation,
  6213. // calling the "fn" function with the response data for each page. To stop
  6214. // iterating, return false from the fn function.
  6215. //
  6216. // See DescribeOptionGroups method for more information on how to use this operation.
  6217. //
  6218. // Note: This operation can generate multiple requests to a service.
  6219. //
  6220. // // Example iterating over at most 3 pages of a DescribeOptionGroups operation.
  6221. // pageNum := 0
  6222. // err := client.DescribeOptionGroupsPages(params,
  6223. // func(page *DescribeOptionGroupsOutput, lastPage bool) bool {
  6224. // pageNum++
  6225. // fmt.Println(page)
  6226. // return pageNum <= 3
  6227. // })
  6228. //
  6229. func (c *RDS) DescribeOptionGroupsPages(input *DescribeOptionGroupsInput, fn func(*DescribeOptionGroupsOutput, bool) bool) error {
  6230. return c.DescribeOptionGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
  6231. }
  6232. // DescribeOptionGroupsPagesWithContext same as DescribeOptionGroupsPages except
  6233. // it takes a Context and allows setting request options on the pages.
  6234. //
  6235. // The context must be non-nil and will be used for request cancellation. If
  6236. // the context is nil a panic will occur. In the future the SDK may create
  6237. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6238. // for more information on using Contexts.
  6239. func (c *RDS) DescribeOptionGroupsPagesWithContext(ctx aws.Context, input *DescribeOptionGroupsInput, fn func(*DescribeOptionGroupsOutput, bool) bool, opts ...request.Option) error {
  6240. p := request.Pagination{
  6241. NewRequest: func() (*request.Request, error) {
  6242. var inCpy *DescribeOptionGroupsInput
  6243. if input != nil {
  6244. tmp := *input
  6245. inCpy = &tmp
  6246. }
  6247. req, _ := c.DescribeOptionGroupsRequest(inCpy)
  6248. req.SetContext(ctx)
  6249. req.ApplyOptions(opts...)
  6250. return req, nil
  6251. },
  6252. }
  6253. cont := true
  6254. for p.Next() && cont {
  6255. cont = fn(p.Page().(*DescribeOptionGroupsOutput), !p.HasNextPage())
  6256. }
  6257. return p.Err()
  6258. }
  6259. const opDescribeOrderableDBInstanceOptions = "DescribeOrderableDBInstanceOptions"
  6260. // DescribeOrderableDBInstanceOptionsRequest generates a "aws/request.Request" representing the
  6261. // client's request for the DescribeOrderableDBInstanceOptions operation. The "output" return
  6262. // value will be populated with the request's response once the request completes
  6263. // successfully.
  6264. //
  6265. // Use "Send" method on the returned Request to send the API call to the service.
  6266. // the "output" return value is not valid until after Send returns without error.
  6267. //
  6268. // See DescribeOrderableDBInstanceOptions for more information on using the DescribeOrderableDBInstanceOptions
  6269. // API call, and error handling.
  6270. //
  6271. // This method is useful when you want to inject custom logic or configuration
  6272. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6273. //
  6274. //
  6275. // // Example sending a request using the DescribeOrderableDBInstanceOptionsRequest method.
  6276. // req, resp := client.DescribeOrderableDBInstanceOptionsRequest(params)
  6277. //
  6278. // err := req.Send()
  6279. // if err == nil { // resp is now filled
  6280. // fmt.Println(resp)
  6281. // }
  6282. //
  6283. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOrderableDBInstanceOptions
  6284. func (c *RDS) DescribeOrderableDBInstanceOptionsRequest(input *DescribeOrderableDBInstanceOptionsInput) (req *request.Request, output *DescribeOrderableDBInstanceOptionsOutput) {
  6285. op := &request.Operation{
  6286. Name: opDescribeOrderableDBInstanceOptions,
  6287. HTTPMethod: "POST",
  6288. HTTPPath: "/",
  6289. Paginator: &request.Paginator{
  6290. InputTokens: []string{"Marker"},
  6291. OutputTokens: []string{"Marker"},
  6292. LimitToken: "MaxRecords",
  6293. TruncationToken: "",
  6294. },
  6295. }
  6296. if input == nil {
  6297. input = &DescribeOrderableDBInstanceOptionsInput{}
  6298. }
  6299. output = &DescribeOrderableDBInstanceOptionsOutput{}
  6300. req = c.newRequest(op, input, output)
  6301. return
  6302. }
  6303. // DescribeOrderableDBInstanceOptions API operation for Amazon Relational Database Service.
  6304. //
  6305. // Returns a list of orderable DB instance options for the specified engine.
  6306. //
  6307. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6308. // with awserr.Error's Code and Message methods to get detailed information about
  6309. // the error.
  6310. //
  6311. // See the AWS API reference guide for Amazon Relational Database Service's
  6312. // API operation DescribeOrderableDBInstanceOptions for usage and error information.
  6313. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOrderableDBInstanceOptions
  6314. func (c *RDS) DescribeOrderableDBInstanceOptions(input *DescribeOrderableDBInstanceOptionsInput) (*DescribeOrderableDBInstanceOptionsOutput, error) {
  6315. req, out := c.DescribeOrderableDBInstanceOptionsRequest(input)
  6316. return out, req.Send()
  6317. }
  6318. // DescribeOrderableDBInstanceOptionsWithContext is the same as DescribeOrderableDBInstanceOptions with the addition of
  6319. // the ability to pass a context and additional request options.
  6320. //
  6321. // See DescribeOrderableDBInstanceOptions for details on how to use this API operation.
  6322. //
  6323. // The context must be non-nil and will be used for request cancellation. If
  6324. // the context is nil a panic will occur. In the future the SDK may create
  6325. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6326. // for more information on using Contexts.
  6327. func (c *RDS) DescribeOrderableDBInstanceOptionsWithContext(ctx aws.Context, input *DescribeOrderableDBInstanceOptionsInput, opts ...request.Option) (*DescribeOrderableDBInstanceOptionsOutput, error) {
  6328. req, out := c.DescribeOrderableDBInstanceOptionsRequest(input)
  6329. req.SetContext(ctx)
  6330. req.ApplyOptions(opts...)
  6331. return out, req.Send()
  6332. }
  6333. // DescribeOrderableDBInstanceOptionsPages iterates over the pages of a DescribeOrderableDBInstanceOptions operation,
  6334. // calling the "fn" function with the response data for each page. To stop
  6335. // iterating, return false from the fn function.
  6336. //
  6337. // See DescribeOrderableDBInstanceOptions method for more information on how to use this operation.
  6338. //
  6339. // Note: This operation can generate multiple requests to a service.
  6340. //
  6341. // // Example iterating over at most 3 pages of a DescribeOrderableDBInstanceOptions operation.
  6342. // pageNum := 0
  6343. // err := client.DescribeOrderableDBInstanceOptionsPages(params,
  6344. // func(page *DescribeOrderableDBInstanceOptionsOutput, lastPage bool) bool {
  6345. // pageNum++
  6346. // fmt.Println(page)
  6347. // return pageNum <= 3
  6348. // })
  6349. //
  6350. func (c *RDS) DescribeOrderableDBInstanceOptionsPages(input *DescribeOrderableDBInstanceOptionsInput, fn func(*DescribeOrderableDBInstanceOptionsOutput, bool) bool) error {
  6351. return c.DescribeOrderableDBInstanceOptionsPagesWithContext(aws.BackgroundContext(), input, fn)
  6352. }
  6353. // DescribeOrderableDBInstanceOptionsPagesWithContext same as DescribeOrderableDBInstanceOptionsPages except
  6354. // it takes a Context and allows setting request options on the pages.
  6355. //
  6356. // The context must be non-nil and will be used for request cancellation. If
  6357. // the context is nil a panic will occur. In the future the SDK may create
  6358. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6359. // for more information on using Contexts.
  6360. func (c *RDS) DescribeOrderableDBInstanceOptionsPagesWithContext(ctx aws.Context, input *DescribeOrderableDBInstanceOptionsInput, fn func(*DescribeOrderableDBInstanceOptionsOutput, bool) bool, opts ...request.Option) error {
  6361. p := request.Pagination{
  6362. NewRequest: func() (*request.Request, error) {
  6363. var inCpy *DescribeOrderableDBInstanceOptionsInput
  6364. if input != nil {
  6365. tmp := *input
  6366. inCpy = &tmp
  6367. }
  6368. req, _ := c.DescribeOrderableDBInstanceOptionsRequest(inCpy)
  6369. req.SetContext(ctx)
  6370. req.ApplyOptions(opts...)
  6371. return req, nil
  6372. },
  6373. }
  6374. cont := true
  6375. for p.Next() && cont {
  6376. cont = fn(p.Page().(*DescribeOrderableDBInstanceOptionsOutput), !p.HasNextPage())
  6377. }
  6378. return p.Err()
  6379. }
  6380. const opDescribePendingMaintenanceActions = "DescribePendingMaintenanceActions"
  6381. // DescribePendingMaintenanceActionsRequest generates a "aws/request.Request" representing the
  6382. // client's request for the DescribePendingMaintenanceActions operation. The "output" return
  6383. // value will be populated with the request's response once the request completes
  6384. // successfully.
  6385. //
  6386. // Use "Send" method on the returned Request to send the API call to the service.
  6387. // the "output" return value is not valid until after Send returns without error.
  6388. //
  6389. // See DescribePendingMaintenanceActions for more information on using the DescribePendingMaintenanceActions
  6390. // API call, and error handling.
  6391. //
  6392. // This method is useful when you want to inject custom logic or configuration
  6393. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6394. //
  6395. //
  6396. // // Example sending a request using the DescribePendingMaintenanceActionsRequest method.
  6397. // req, resp := client.DescribePendingMaintenanceActionsRequest(params)
  6398. //
  6399. // err := req.Send()
  6400. // if err == nil { // resp is now filled
  6401. // fmt.Println(resp)
  6402. // }
  6403. //
  6404. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribePendingMaintenanceActions
  6405. func (c *RDS) DescribePendingMaintenanceActionsRequest(input *DescribePendingMaintenanceActionsInput) (req *request.Request, output *DescribePendingMaintenanceActionsOutput) {
  6406. op := &request.Operation{
  6407. Name: opDescribePendingMaintenanceActions,
  6408. HTTPMethod: "POST",
  6409. HTTPPath: "/",
  6410. }
  6411. if input == nil {
  6412. input = &DescribePendingMaintenanceActionsInput{}
  6413. }
  6414. output = &DescribePendingMaintenanceActionsOutput{}
  6415. req = c.newRequest(op, input, output)
  6416. return
  6417. }
  6418. // DescribePendingMaintenanceActions API operation for Amazon Relational Database Service.
  6419. //
  6420. // Returns a list of resources (for example, DB instances) that have at least
  6421. // one pending maintenance action.
  6422. //
  6423. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6424. // with awserr.Error's Code and Message methods to get detailed information about
  6425. // the error.
  6426. //
  6427. // See the AWS API reference guide for Amazon Relational Database Service's
  6428. // API operation DescribePendingMaintenanceActions for usage and error information.
  6429. //
  6430. // Returned Error Codes:
  6431. // * ErrCodeResourceNotFoundFault "ResourceNotFoundFault"
  6432. // The specified resource ID was not found.
  6433. //
  6434. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribePendingMaintenanceActions
  6435. func (c *RDS) DescribePendingMaintenanceActions(input *DescribePendingMaintenanceActionsInput) (*DescribePendingMaintenanceActionsOutput, error) {
  6436. req, out := c.DescribePendingMaintenanceActionsRequest(input)
  6437. return out, req.Send()
  6438. }
  6439. // DescribePendingMaintenanceActionsWithContext is the same as DescribePendingMaintenanceActions with the addition of
  6440. // the ability to pass a context and additional request options.
  6441. //
  6442. // See DescribePendingMaintenanceActions for details on how to use this API operation.
  6443. //
  6444. // The context must be non-nil and will be used for request cancellation. If
  6445. // the context is nil a panic will occur. In the future the SDK may create
  6446. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6447. // for more information on using Contexts.
  6448. func (c *RDS) DescribePendingMaintenanceActionsWithContext(ctx aws.Context, input *DescribePendingMaintenanceActionsInput, opts ...request.Option) (*DescribePendingMaintenanceActionsOutput, error) {
  6449. req, out := c.DescribePendingMaintenanceActionsRequest(input)
  6450. req.SetContext(ctx)
  6451. req.ApplyOptions(opts...)
  6452. return out, req.Send()
  6453. }
  6454. const opDescribeReservedDBInstances = "DescribeReservedDBInstances"
  6455. // DescribeReservedDBInstancesRequest generates a "aws/request.Request" representing the
  6456. // client's request for the DescribeReservedDBInstances operation. The "output" return
  6457. // value will be populated with the request's response once the request completes
  6458. // successfully.
  6459. //
  6460. // Use "Send" method on the returned Request to send the API call to the service.
  6461. // the "output" return value is not valid until after Send returns without error.
  6462. //
  6463. // See DescribeReservedDBInstances for more information on using the DescribeReservedDBInstances
  6464. // API call, and error handling.
  6465. //
  6466. // This method is useful when you want to inject custom logic or configuration
  6467. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6468. //
  6469. //
  6470. // // Example sending a request using the DescribeReservedDBInstancesRequest method.
  6471. // req, resp := client.DescribeReservedDBInstancesRequest(params)
  6472. //
  6473. // err := req.Send()
  6474. // if err == nil { // resp is now filled
  6475. // fmt.Println(resp)
  6476. // }
  6477. //
  6478. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstances
  6479. func (c *RDS) DescribeReservedDBInstancesRequest(input *DescribeReservedDBInstancesInput) (req *request.Request, output *DescribeReservedDBInstancesOutput) {
  6480. op := &request.Operation{
  6481. Name: opDescribeReservedDBInstances,
  6482. HTTPMethod: "POST",
  6483. HTTPPath: "/",
  6484. Paginator: &request.Paginator{
  6485. InputTokens: []string{"Marker"},
  6486. OutputTokens: []string{"Marker"},
  6487. LimitToken: "MaxRecords",
  6488. TruncationToken: "",
  6489. },
  6490. }
  6491. if input == nil {
  6492. input = &DescribeReservedDBInstancesInput{}
  6493. }
  6494. output = &DescribeReservedDBInstancesOutput{}
  6495. req = c.newRequest(op, input, output)
  6496. return
  6497. }
  6498. // DescribeReservedDBInstances API operation for Amazon Relational Database Service.
  6499. //
  6500. // Returns information about reserved DB instances for this account, or about
  6501. // a specified reserved DB instance.
  6502. //
  6503. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6504. // with awserr.Error's Code and Message methods to get detailed information about
  6505. // the error.
  6506. //
  6507. // See the AWS API reference guide for Amazon Relational Database Service's
  6508. // API operation DescribeReservedDBInstances for usage and error information.
  6509. //
  6510. // Returned Error Codes:
  6511. // * ErrCodeReservedDBInstanceNotFoundFault "ReservedDBInstanceNotFound"
  6512. // The specified reserved DB Instance not found.
  6513. //
  6514. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstances
  6515. func (c *RDS) DescribeReservedDBInstances(input *DescribeReservedDBInstancesInput) (*DescribeReservedDBInstancesOutput, error) {
  6516. req, out := c.DescribeReservedDBInstancesRequest(input)
  6517. return out, req.Send()
  6518. }
  6519. // DescribeReservedDBInstancesWithContext is the same as DescribeReservedDBInstances with the addition of
  6520. // the ability to pass a context and additional request options.
  6521. //
  6522. // See DescribeReservedDBInstances for details on how to use this API operation.
  6523. //
  6524. // The context must be non-nil and will be used for request cancellation. If
  6525. // the context is nil a panic will occur. In the future the SDK may create
  6526. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6527. // for more information on using Contexts.
  6528. func (c *RDS) DescribeReservedDBInstancesWithContext(ctx aws.Context, input *DescribeReservedDBInstancesInput, opts ...request.Option) (*DescribeReservedDBInstancesOutput, error) {
  6529. req, out := c.DescribeReservedDBInstancesRequest(input)
  6530. req.SetContext(ctx)
  6531. req.ApplyOptions(opts...)
  6532. return out, req.Send()
  6533. }
  6534. // DescribeReservedDBInstancesPages iterates over the pages of a DescribeReservedDBInstances operation,
  6535. // calling the "fn" function with the response data for each page. To stop
  6536. // iterating, return false from the fn function.
  6537. //
  6538. // See DescribeReservedDBInstances method for more information on how to use this operation.
  6539. //
  6540. // Note: This operation can generate multiple requests to a service.
  6541. //
  6542. // // Example iterating over at most 3 pages of a DescribeReservedDBInstances operation.
  6543. // pageNum := 0
  6544. // err := client.DescribeReservedDBInstancesPages(params,
  6545. // func(page *DescribeReservedDBInstancesOutput, lastPage bool) bool {
  6546. // pageNum++
  6547. // fmt.Println(page)
  6548. // return pageNum <= 3
  6549. // })
  6550. //
  6551. func (c *RDS) DescribeReservedDBInstancesPages(input *DescribeReservedDBInstancesInput, fn func(*DescribeReservedDBInstancesOutput, bool) bool) error {
  6552. return c.DescribeReservedDBInstancesPagesWithContext(aws.BackgroundContext(), input, fn)
  6553. }
  6554. // DescribeReservedDBInstancesPagesWithContext same as DescribeReservedDBInstancesPages except
  6555. // it takes a Context and allows setting request options on the pages.
  6556. //
  6557. // The context must be non-nil and will be used for request cancellation. If
  6558. // the context is nil a panic will occur. In the future the SDK may create
  6559. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6560. // for more information on using Contexts.
  6561. func (c *RDS) DescribeReservedDBInstancesPagesWithContext(ctx aws.Context, input *DescribeReservedDBInstancesInput, fn func(*DescribeReservedDBInstancesOutput, bool) bool, opts ...request.Option) error {
  6562. p := request.Pagination{
  6563. NewRequest: func() (*request.Request, error) {
  6564. var inCpy *DescribeReservedDBInstancesInput
  6565. if input != nil {
  6566. tmp := *input
  6567. inCpy = &tmp
  6568. }
  6569. req, _ := c.DescribeReservedDBInstancesRequest(inCpy)
  6570. req.SetContext(ctx)
  6571. req.ApplyOptions(opts...)
  6572. return req, nil
  6573. },
  6574. }
  6575. cont := true
  6576. for p.Next() && cont {
  6577. cont = fn(p.Page().(*DescribeReservedDBInstancesOutput), !p.HasNextPage())
  6578. }
  6579. return p.Err()
  6580. }
  6581. const opDescribeReservedDBInstancesOfferings = "DescribeReservedDBInstancesOfferings"
  6582. // DescribeReservedDBInstancesOfferingsRequest generates a "aws/request.Request" representing the
  6583. // client's request for the DescribeReservedDBInstancesOfferings operation. The "output" return
  6584. // value will be populated with the request's response once the request completes
  6585. // successfully.
  6586. //
  6587. // Use "Send" method on the returned Request to send the API call to the service.
  6588. // the "output" return value is not valid until after Send returns without error.
  6589. //
  6590. // See DescribeReservedDBInstancesOfferings for more information on using the DescribeReservedDBInstancesOfferings
  6591. // API call, and error handling.
  6592. //
  6593. // This method is useful when you want to inject custom logic or configuration
  6594. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6595. //
  6596. //
  6597. // // Example sending a request using the DescribeReservedDBInstancesOfferingsRequest method.
  6598. // req, resp := client.DescribeReservedDBInstancesOfferingsRequest(params)
  6599. //
  6600. // err := req.Send()
  6601. // if err == nil { // resp is now filled
  6602. // fmt.Println(resp)
  6603. // }
  6604. //
  6605. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstancesOfferings
  6606. func (c *RDS) DescribeReservedDBInstancesOfferingsRequest(input *DescribeReservedDBInstancesOfferingsInput) (req *request.Request, output *DescribeReservedDBInstancesOfferingsOutput) {
  6607. op := &request.Operation{
  6608. Name: opDescribeReservedDBInstancesOfferings,
  6609. HTTPMethod: "POST",
  6610. HTTPPath: "/",
  6611. Paginator: &request.Paginator{
  6612. InputTokens: []string{"Marker"},
  6613. OutputTokens: []string{"Marker"},
  6614. LimitToken: "MaxRecords",
  6615. TruncationToken: "",
  6616. },
  6617. }
  6618. if input == nil {
  6619. input = &DescribeReservedDBInstancesOfferingsInput{}
  6620. }
  6621. output = &DescribeReservedDBInstancesOfferingsOutput{}
  6622. req = c.newRequest(op, input, output)
  6623. return
  6624. }
  6625. // DescribeReservedDBInstancesOfferings API operation for Amazon Relational Database Service.
  6626. //
  6627. // Lists available reserved DB instance offerings.
  6628. //
  6629. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6630. // with awserr.Error's Code and Message methods to get detailed information about
  6631. // the error.
  6632. //
  6633. // See the AWS API reference guide for Amazon Relational Database Service's
  6634. // API operation DescribeReservedDBInstancesOfferings for usage and error information.
  6635. //
  6636. // Returned Error Codes:
  6637. // * ErrCodeReservedDBInstancesOfferingNotFoundFault "ReservedDBInstancesOfferingNotFound"
  6638. // Specified offering does not exist.
  6639. //
  6640. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstancesOfferings
  6641. func (c *RDS) DescribeReservedDBInstancesOfferings(input *DescribeReservedDBInstancesOfferingsInput) (*DescribeReservedDBInstancesOfferingsOutput, error) {
  6642. req, out := c.DescribeReservedDBInstancesOfferingsRequest(input)
  6643. return out, req.Send()
  6644. }
  6645. // DescribeReservedDBInstancesOfferingsWithContext is the same as DescribeReservedDBInstancesOfferings with the addition of
  6646. // the ability to pass a context and additional request options.
  6647. //
  6648. // See DescribeReservedDBInstancesOfferings for details on how to use this API operation.
  6649. //
  6650. // The context must be non-nil and will be used for request cancellation. If
  6651. // the context is nil a panic will occur. In the future the SDK may create
  6652. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6653. // for more information on using Contexts.
  6654. func (c *RDS) DescribeReservedDBInstancesOfferingsWithContext(ctx aws.Context, input *DescribeReservedDBInstancesOfferingsInput, opts ...request.Option) (*DescribeReservedDBInstancesOfferingsOutput, error) {
  6655. req, out := c.DescribeReservedDBInstancesOfferingsRequest(input)
  6656. req.SetContext(ctx)
  6657. req.ApplyOptions(opts...)
  6658. return out, req.Send()
  6659. }
  6660. // DescribeReservedDBInstancesOfferingsPages iterates over the pages of a DescribeReservedDBInstancesOfferings operation,
  6661. // calling the "fn" function with the response data for each page. To stop
  6662. // iterating, return false from the fn function.
  6663. //
  6664. // See DescribeReservedDBInstancesOfferings method for more information on how to use this operation.
  6665. //
  6666. // Note: This operation can generate multiple requests to a service.
  6667. //
  6668. // // Example iterating over at most 3 pages of a DescribeReservedDBInstancesOfferings operation.
  6669. // pageNum := 0
  6670. // err := client.DescribeReservedDBInstancesOfferingsPages(params,
  6671. // func(page *DescribeReservedDBInstancesOfferingsOutput, lastPage bool) bool {
  6672. // pageNum++
  6673. // fmt.Println(page)
  6674. // return pageNum <= 3
  6675. // })
  6676. //
  6677. func (c *RDS) DescribeReservedDBInstancesOfferingsPages(input *DescribeReservedDBInstancesOfferingsInput, fn func(*DescribeReservedDBInstancesOfferingsOutput, bool) bool) error {
  6678. return c.DescribeReservedDBInstancesOfferingsPagesWithContext(aws.BackgroundContext(), input, fn)
  6679. }
  6680. // DescribeReservedDBInstancesOfferingsPagesWithContext same as DescribeReservedDBInstancesOfferingsPages except
  6681. // it takes a Context and allows setting request options on the pages.
  6682. //
  6683. // The context must be non-nil and will be used for request cancellation. If
  6684. // the context is nil a panic will occur. In the future the SDK may create
  6685. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6686. // for more information on using Contexts.
  6687. func (c *RDS) DescribeReservedDBInstancesOfferingsPagesWithContext(ctx aws.Context, input *DescribeReservedDBInstancesOfferingsInput, fn func(*DescribeReservedDBInstancesOfferingsOutput, bool) bool, opts ...request.Option) error {
  6688. p := request.Pagination{
  6689. NewRequest: func() (*request.Request, error) {
  6690. var inCpy *DescribeReservedDBInstancesOfferingsInput
  6691. if input != nil {
  6692. tmp := *input
  6693. inCpy = &tmp
  6694. }
  6695. req, _ := c.DescribeReservedDBInstancesOfferingsRequest(inCpy)
  6696. req.SetContext(ctx)
  6697. req.ApplyOptions(opts...)
  6698. return req, nil
  6699. },
  6700. }
  6701. cont := true
  6702. for p.Next() && cont {
  6703. cont = fn(p.Page().(*DescribeReservedDBInstancesOfferingsOutput), !p.HasNextPage())
  6704. }
  6705. return p.Err()
  6706. }
  6707. const opDescribeSourceRegions = "DescribeSourceRegions"
  6708. // DescribeSourceRegionsRequest generates a "aws/request.Request" representing the
  6709. // client's request for the DescribeSourceRegions operation. The "output" return
  6710. // value will be populated with the request's response once the request completes
  6711. // successfully.
  6712. //
  6713. // Use "Send" method on the returned Request to send the API call to the service.
  6714. // the "output" return value is not valid until after Send returns without error.
  6715. //
  6716. // See DescribeSourceRegions for more information on using the DescribeSourceRegions
  6717. // API call, and error handling.
  6718. //
  6719. // This method is useful when you want to inject custom logic or configuration
  6720. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6721. //
  6722. //
  6723. // // Example sending a request using the DescribeSourceRegionsRequest method.
  6724. // req, resp := client.DescribeSourceRegionsRequest(params)
  6725. //
  6726. // err := req.Send()
  6727. // if err == nil { // resp is now filled
  6728. // fmt.Println(resp)
  6729. // }
  6730. //
  6731. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeSourceRegions
  6732. func (c *RDS) DescribeSourceRegionsRequest(input *DescribeSourceRegionsInput) (req *request.Request, output *DescribeSourceRegionsOutput) {
  6733. op := &request.Operation{
  6734. Name: opDescribeSourceRegions,
  6735. HTTPMethod: "POST",
  6736. HTTPPath: "/",
  6737. }
  6738. if input == nil {
  6739. input = &DescribeSourceRegionsInput{}
  6740. }
  6741. output = &DescribeSourceRegionsOutput{}
  6742. req = c.newRequest(op, input, output)
  6743. return
  6744. }
  6745. // DescribeSourceRegions API operation for Amazon Relational Database Service.
  6746. //
  6747. // Returns a list of the source AWS Regions where the current AWS Region can
  6748. // create a Read Replica or copy a DB snapshot from. This API action supports
  6749. // pagination.
  6750. //
  6751. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6752. // with awserr.Error's Code and Message methods to get detailed information about
  6753. // the error.
  6754. //
  6755. // See the AWS API reference guide for Amazon Relational Database Service's
  6756. // API operation DescribeSourceRegions for usage and error information.
  6757. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeSourceRegions
  6758. func (c *RDS) DescribeSourceRegions(input *DescribeSourceRegionsInput) (*DescribeSourceRegionsOutput, error) {
  6759. req, out := c.DescribeSourceRegionsRequest(input)
  6760. return out, req.Send()
  6761. }
  6762. // DescribeSourceRegionsWithContext is the same as DescribeSourceRegions with the addition of
  6763. // the ability to pass a context and additional request options.
  6764. //
  6765. // See DescribeSourceRegions for details on how to use this API operation.
  6766. //
  6767. // The context must be non-nil and will be used for request cancellation. If
  6768. // the context is nil a panic will occur. In the future the SDK may create
  6769. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6770. // for more information on using Contexts.
  6771. func (c *RDS) DescribeSourceRegionsWithContext(ctx aws.Context, input *DescribeSourceRegionsInput, opts ...request.Option) (*DescribeSourceRegionsOutput, error) {
  6772. req, out := c.DescribeSourceRegionsRequest(input)
  6773. req.SetContext(ctx)
  6774. req.ApplyOptions(opts...)
  6775. return out, req.Send()
  6776. }
  6777. const opDescribeValidDBInstanceModifications = "DescribeValidDBInstanceModifications"
  6778. // DescribeValidDBInstanceModificationsRequest generates a "aws/request.Request" representing the
  6779. // client's request for the DescribeValidDBInstanceModifications operation. The "output" return
  6780. // value will be populated with the request's response once the request completes
  6781. // successfully.
  6782. //
  6783. // Use "Send" method on the returned Request to send the API call to the service.
  6784. // the "output" return value is not valid until after Send returns without error.
  6785. //
  6786. // See DescribeValidDBInstanceModifications for more information on using the DescribeValidDBInstanceModifications
  6787. // API call, and error handling.
  6788. //
  6789. // This method is useful when you want to inject custom logic or configuration
  6790. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6791. //
  6792. //
  6793. // // Example sending a request using the DescribeValidDBInstanceModificationsRequest method.
  6794. // req, resp := client.DescribeValidDBInstanceModificationsRequest(params)
  6795. //
  6796. // err := req.Send()
  6797. // if err == nil { // resp is now filled
  6798. // fmt.Println(resp)
  6799. // }
  6800. //
  6801. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeValidDBInstanceModifications
  6802. func (c *RDS) DescribeValidDBInstanceModificationsRequest(input *DescribeValidDBInstanceModificationsInput) (req *request.Request, output *DescribeValidDBInstanceModificationsOutput) {
  6803. op := &request.Operation{
  6804. Name: opDescribeValidDBInstanceModifications,
  6805. HTTPMethod: "POST",
  6806. HTTPPath: "/",
  6807. }
  6808. if input == nil {
  6809. input = &DescribeValidDBInstanceModificationsInput{}
  6810. }
  6811. output = &DescribeValidDBInstanceModificationsOutput{}
  6812. req = c.newRequest(op, input, output)
  6813. return
  6814. }
  6815. // DescribeValidDBInstanceModifications API operation for Amazon Relational Database Service.
  6816. //
  6817. // You can call DescribeValidDBInstanceModifications to learn what modifications
  6818. // you can make to your DB instance. You can use this information when you call
  6819. // ModifyDBInstance.
  6820. //
  6821. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6822. // with awserr.Error's Code and Message methods to get detailed information about
  6823. // the error.
  6824. //
  6825. // See the AWS API reference guide for Amazon Relational Database Service's
  6826. // API operation DescribeValidDBInstanceModifications for usage and error information.
  6827. //
  6828. // Returned Error Codes:
  6829. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  6830. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  6831. //
  6832. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  6833. // The DB instance isn't in a valid state.
  6834. //
  6835. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeValidDBInstanceModifications
  6836. func (c *RDS) DescribeValidDBInstanceModifications(input *DescribeValidDBInstanceModificationsInput) (*DescribeValidDBInstanceModificationsOutput, error) {
  6837. req, out := c.DescribeValidDBInstanceModificationsRequest(input)
  6838. return out, req.Send()
  6839. }
  6840. // DescribeValidDBInstanceModificationsWithContext is the same as DescribeValidDBInstanceModifications with the addition of
  6841. // the ability to pass a context and additional request options.
  6842. //
  6843. // See DescribeValidDBInstanceModifications for details on how to use this API operation.
  6844. //
  6845. // The context must be non-nil and will be used for request cancellation. If
  6846. // the context is nil a panic will occur. In the future the SDK may create
  6847. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6848. // for more information on using Contexts.
  6849. func (c *RDS) DescribeValidDBInstanceModificationsWithContext(ctx aws.Context, input *DescribeValidDBInstanceModificationsInput, opts ...request.Option) (*DescribeValidDBInstanceModificationsOutput, error) {
  6850. req, out := c.DescribeValidDBInstanceModificationsRequest(input)
  6851. req.SetContext(ctx)
  6852. req.ApplyOptions(opts...)
  6853. return out, req.Send()
  6854. }
  6855. const opDownloadDBLogFilePortion = "DownloadDBLogFilePortion"
  6856. // DownloadDBLogFilePortionRequest generates a "aws/request.Request" representing the
  6857. // client's request for the DownloadDBLogFilePortion operation. The "output" return
  6858. // value will be populated with the request's response once the request completes
  6859. // successfully.
  6860. //
  6861. // Use "Send" method on the returned Request to send the API call to the service.
  6862. // the "output" return value is not valid until after Send returns without error.
  6863. //
  6864. // See DownloadDBLogFilePortion for more information on using the DownloadDBLogFilePortion
  6865. // API call, and error handling.
  6866. //
  6867. // This method is useful when you want to inject custom logic or configuration
  6868. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6869. //
  6870. //
  6871. // // Example sending a request using the DownloadDBLogFilePortionRequest method.
  6872. // req, resp := client.DownloadDBLogFilePortionRequest(params)
  6873. //
  6874. // err := req.Send()
  6875. // if err == nil { // resp is now filled
  6876. // fmt.Println(resp)
  6877. // }
  6878. //
  6879. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DownloadDBLogFilePortion
  6880. func (c *RDS) DownloadDBLogFilePortionRequest(input *DownloadDBLogFilePortionInput) (req *request.Request, output *DownloadDBLogFilePortionOutput) {
  6881. op := &request.Operation{
  6882. Name: opDownloadDBLogFilePortion,
  6883. HTTPMethod: "POST",
  6884. HTTPPath: "/",
  6885. Paginator: &request.Paginator{
  6886. InputTokens: []string{"Marker"},
  6887. OutputTokens: []string{"Marker"},
  6888. LimitToken: "NumberOfLines",
  6889. TruncationToken: "AdditionalDataPending",
  6890. },
  6891. }
  6892. if input == nil {
  6893. input = &DownloadDBLogFilePortionInput{}
  6894. }
  6895. output = &DownloadDBLogFilePortionOutput{}
  6896. req = c.newRequest(op, input, output)
  6897. return
  6898. }
  6899. // DownloadDBLogFilePortion API operation for Amazon Relational Database Service.
  6900. //
  6901. // Downloads all or a portion of the specified log file, up to 1 MB in size.
  6902. //
  6903. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  6904. // with awserr.Error's Code and Message methods to get detailed information about
  6905. // the error.
  6906. //
  6907. // See the AWS API reference guide for Amazon Relational Database Service's
  6908. // API operation DownloadDBLogFilePortion for usage and error information.
  6909. //
  6910. // Returned Error Codes:
  6911. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  6912. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  6913. //
  6914. // * ErrCodeDBLogFileNotFoundFault "DBLogFileNotFoundFault"
  6915. // LogFileName doesn't refer to an existing DB log file.
  6916. //
  6917. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DownloadDBLogFilePortion
  6918. func (c *RDS) DownloadDBLogFilePortion(input *DownloadDBLogFilePortionInput) (*DownloadDBLogFilePortionOutput, error) {
  6919. req, out := c.DownloadDBLogFilePortionRequest(input)
  6920. return out, req.Send()
  6921. }
  6922. // DownloadDBLogFilePortionWithContext is the same as DownloadDBLogFilePortion with the addition of
  6923. // the ability to pass a context and additional request options.
  6924. //
  6925. // See DownloadDBLogFilePortion for details on how to use this API operation.
  6926. //
  6927. // The context must be non-nil and will be used for request cancellation. If
  6928. // the context is nil a panic will occur. In the future the SDK may create
  6929. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6930. // for more information on using Contexts.
  6931. func (c *RDS) DownloadDBLogFilePortionWithContext(ctx aws.Context, input *DownloadDBLogFilePortionInput, opts ...request.Option) (*DownloadDBLogFilePortionOutput, error) {
  6932. req, out := c.DownloadDBLogFilePortionRequest(input)
  6933. req.SetContext(ctx)
  6934. req.ApplyOptions(opts...)
  6935. return out, req.Send()
  6936. }
  6937. // DownloadDBLogFilePortionPages iterates over the pages of a DownloadDBLogFilePortion operation,
  6938. // calling the "fn" function with the response data for each page. To stop
  6939. // iterating, return false from the fn function.
  6940. //
  6941. // See DownloadDBLogFilePortion method for more information on how to use this operation.
  6942. //
  6943. // Note: This operation can generate multiple requests to a service.
  6944. //
  6945. // // Example iterating over at most 3 pages of a DownloadDBLogFilePortion operation.
  6946. // pageNum := 0
  6947. // err := client.DownloadDBLogFilePortionPages(params,
  6948. // func(page *DownloadDBLogFilePortionOutput, lastPage bool) bool {
  6949. // pageNum++
  6950. // fmt.Println(page)
  6951. // return pageNum <= 3
  6952. // })
  6953. //
  6954. func (c *RDS) DownloadDBLogFilePortionPages(input *DownloadDBLogFilePortionInput, fn func(*DownloadDBLogFilePortionOutput, bool) bool) error {
  6955. return c.DownloadDBLogFilePortionPagesWithContext(aws.BackgroundContext(), input, fn)
  6956. }
  6957. // DownloadDBLogFilePortionPagesWithContext same as DownloadDBLogFilePortionPages except
  6958. // it takes a Context and allows setting request options on the pages.
  6959. //
  6960. // The context must be non-nil and will be used for request cancellation. If
  6961. // the context is nil a panic will occur. In the future the SDK may create
  6962. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  6963. // for more information on using Contexts.
  6964. func (c *RDS) DownloadDBLogFilePortionPagesWithContext(ctx aws.Context, input *DownloadDBLogFilePortionInput, fn func(*DownloadDBLogFilePortionOutput, bool) bool, opts ...request.Option) error {
  6965. p := request.Pagination{
  6966. NewRequest: func() (*request.Request, error) {
  6967. var inCpy *DownloadDBLogFilePortionInput
  6968. if input != nil {
  6969. tmp := *input
  6970. inCpy = &tmp
  6971. }
  6972. req, _ := c.DownloadDBLogFilePortionRequest(inCpy)
  6973. req.SetContext(ctx)
  6974. req.ApplyOptions(opts...)
  6975. return req, nil
  6976. },
  6977. }
  6978. cont := true
  6979. for p.Next() && cont {
  6980. cont = fn(p.Page().(*DownloadDBLogFilePortionOutput), !p.HasNextPage())
  6981. }
  6982. return p.Err()
  6983. }
  6984. const opFailoverDBCluster = "FailoverDBCluster"
  6985. // FailoverDBClusterRequest generates a "aws/request.Request" representing the
  6986. // client's request for the FailoverDBCluster operation. The "output" return
  6987. // value will be populated with the request's response once the request completes
  6988. // successfully.
  6989. //
  6990. // Use "Send" method on the returned Request to send the API call to the service.
  6991. // the "output" return value is not valid until after Send returns without error.
  6992. //
  6993. // See FailoverDBCluster for more information on using the FailoverDBCluster
  6994. // API call, and error handling.
  6995. //
  6996. // This method is useful when you want to inject custom logic or configuration
  6997. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  6998. //
  6999. //
  7000. // // Example sending a request using the FailoverDBClusterRequest method.
  7001. // req, resp := client.FailoverDBClusterRequest(params)
  7002. //
  7003. // err := req.Send()
  7004. // if err == nil { // resp is now filled
  7005. // fmt.Println(resp)
  7006. // }
  7007. //
  7008. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/FailoverDBCluster
  7009. func (c *RDS) FailoverDBClusterRequest(input *FailoverDBClusterInput) (req *request.Request, output *FailoverDBClusterOutput) {
  7010. op := &request.Operation{
  7011. Name: opFailoverDBCluster,
  7012. HTTPMethod: "POST",
  7013. HTTPPath: "/",
  7014. }
  7015. if input == nil {
  7016. input = &FailoverDBClusterInput{}
  7017. }
  7018. output = &FailoverDBClusterOutput{}
  7019. req = c.newRequest(op, input, output)
  7020. return
  7021. }
  7022. // FailoverDBCluster API operation for Amazon Relational Database Service.
  7023. //
  7024. // Forces a failover for a DB cluster.
  7025. //
  7026. // A failover for a DB cluster promotes one of the Aurora Replicas (read-only
  7027. // instances) in the DB cluster to be the primary instance (the cluster writer).
  7028. //
  7029. // Amazon Aurora will automatically fail over to an Aurora Replica, if one exists,
  7030. // when the primary instance fails. You can force a failover when you want to
  7031. // simulate a failure of a primary instance for testing. Because each instance
  7032. // in a DB cluster has its own endpoint address, you will need to clean up and
  7033. // re-establish any existing connections that use those endpoint addresses when
  7034. // the failover is complete.
  7035. //
  7036. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  7037. // in the Amazon Aurora User Guide.
  7038. //
  7039. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7040. // with awserr.Error's Code and Message methods to get detailed information about
  7041. // the error.
  7042. //
  7043. // See the AWS API reference guide for Amazon Relational Database Service's
  7044. // API operation FailoverDBCluster for usage and error information.
  7045. //
  7046. // Returned Error Codes:
  7047. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  7048. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  7049. //
  7050. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  7051. // The requested operation can't be performed while the cluster is in this state.
  7052. //
  7053. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  7054. // The DB instance isn't in a valid state.
  7055. //
  7056. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/FailoverDBCluster
  7057. func (c *RDS) FailoverDBCluster(input *FailoverDBClusterInput) (*FailoverDBClusterOutput, error) {
  7058. req, out := c.FailoverDBClusterRequest(input)
  7059. return out, req.Send()
  7060. }
  7061. // FailoverDBClusterWithContext is the same as FailoverDBCluster with the addition of
  7062. // the ability to pass a context and additional request options.
  7063. //
  7064. // See FailoverDBCluster for details on how to use this API operation.
  7065. //
  7066. // The context must be non-nil and will be used for request cancellation. If
  7067. // the context is nil a panic will occur. In the future the SDK may create
  7068. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7069. // for more information on using Contexts.
  7070. func (c *RDS) FailoverDBClusterWithContext(ctx aws.Context, input *FailoverDBClusterInput, opts ...request.Option) (*FailoverDBClusterOutput, error) {
  7071. req, out := c.FailoverDBClusterRequest(input)
  7072. req.SetContext(ctx)
  7073. req.ApplyOptions(opts...)
  7074. return out, req.Send()
  7075. }
  7076. const opListTagsForResource = "ListTagsForResource"
  7077. // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  7078. // client's request for the ListTagsForResource operation. The "output" return
  7079. // value will be populated with the request's response once the request completes
  7080. // successfully.
  7081. //
  7082. // Use "Send" method on the returned Request to send the API call to the service.
  7083. // the "output" return value is not valid until after Send returns without error.
  7084. //
  7085. // See ListTagsForResource for more information on using the ListTagsForResource
  7086. // API call, and error handling.
  7087. //
  7088. // This method is useful when you want to inject custom logic or configuration
  7089. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7090. //
  7091. //
  7092. // // Example sending a request using the ListTagsForResourceRequest method.
  7093. // req, resp := client.ListTagsForResourceRequest(params)
  7094. //
  7095. // err := req.Send()
  7096. // if err == nil { // resp is now filled
  7097. // fmt.Println(resp)
  7098. // }
  7099. //
  7100. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ListTagsForResource
  7101. func (c *RDS) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  7102. op := &request.Operation{
  7103. Name: opListTagsForResource,
  7104. HTTPMethod: "POST",
  7105. HTTPPath: "/",
  7106. }
  7107. if input == nil {
  7108. input = &ListTagsForResourceInput{}
  7109. }
  7110. output = &ListTagsForResourceOutput{}
  7111. req = c.newRequest(op, input, output)
  7112. return
  7113. }
  7114. // ListTagsForResource API operation for Amazon Relational Database Service.
  7115. //
  7116. // Lists all tags on an Amazon RDS resource.
  7117. //
  7118. // For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS
  7119. // Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html)
  7120. // in the Amazon RDS User Guide.
  7121. //
  7122. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7123. // with awserr.Error's Code and Message methods to get detailed information about
  7124. // the error.
  7125. //
  7126. // See the AWS API reference guide for Amazon Relational Database Service's
  7127. // API operation ListTagsForResource for usage and error information.
  7128. //
  7129. // Returned Error Codes:
  7130. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  7131. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  7132. //
  7133. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  7134. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  7135. //
  7136. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  7137. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  7138. //
  7139. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ListTagsForResource
  7140. func (c *RDS) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  7141. req, out := c.ListTagsForResourceRequest(input)
  7142. return out, req.Send()
  7143. }
  7144. // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
  7145. // the ability to pass a context and additional request options.
  7146. //
  7147. // See ListTagsForResource for details on how to use this API operation.
  7148. //
  7149. // The context must be non-nil and will be used for request cancellation. If
  7150. // the context is nil a panic will occur. In the future the SDK may create
  7151. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7152. // for more information on using Contexts.
  7153. func (c *RDS) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
  7154. req, out := c.ListTagsForResourceRequest(input)
  7155. req.SetContext(ctx)
  7156. req.ApplyOptions(opts...)
  7157. return out, req.Send()
  7158. }
  7159. const opModifyCurrentDBClusterCapacity = "ModifyCurrentDBClusterCapacity"
  7160. // ModifyCurrentDBClusterCapacityRequest generates a "aws/request.Request" representing the
  7161. // client's request for the ModifyCurrentDBClusterCapacity operation. The "output" return
  7162. // value will be populated with the request's response once the request completes
  7163. // successfully.
  7164. //
  7165. // Use "Send" method on the returned Request to send the API call to the service.
  7166. // the "output" return value is not valid until after Send returns without error.
  7167. //
  7168. // See ModifyCurrentDBClusterCapacity for more information on using the ModifyCurrentDBClusterCapacity
  7169. // API call, and error handling.
  7170. //
  7171. // This method is useful when you want to inject custom logic or configuration
  7172. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7173. //
  7174. //
  7175. // // Example sending a request using the ModifyCurrentDBClusterCapacityRequest method.
  7176. // req, resp := client.ModifyCurrentDBClusterCapacityRequest(params)
  7177. //
  7178. // err := req.Send()
  7179. // if err == nil { // resp is now filled
  7180. // fmt.Println(resp)
  7181. // }
  7182. //
  7183. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyCurrentDBClusterCapacity
  7184. func (c *RDS) ModifyCurrentDBClusterCapacityRequest(input *ModifyCurrentDBClusterCapacityInput) (req *request.Request, output *ModifyCurrentDBClusterCapacityOutput) {
  7185. op := &request.Operation{
  7186. Name: opModifyCurrentDBClusterCapacity,
  7187. HTTPMethod: "POST",
  7188. HTTPPath: "/",
  7189. }
  7190. if input == nil {
  7191. input = &ModifyCurrentDBClusterCapacityInput{}
  7192. }
  7193. output = &ModifyCurrentDBClusterCapacityOutput{}
  7194. req = c.newRequest(op, input, output)
  7195. return
  7196. }
  7197. // ModifyCurrentDBClusterCapacity API operation for Amazon Relational Database Service.
  7198. //
  7199. // Set the capacity of an Aurora Serverless DB cluster to a specific value.
  7200. //
  7201. // Aurora Serverless scales seamlessly based on the workload on the DB cluster.
  7202. // In some cases, the capacity might not scale fast enough to meet a sudden
  7203. // change in workload, such as a large number of new transactions. Call ModifyCurrentDBClusterCapacity
  7204. // to set the capacity explicitly.
  7205. //
  7206. // After this call sets the DB cluster capacity, Aurora Serverless can automatically
  7207. // scale the DB cluster based on the cooldown period for scaling up and the
  7208. // cooldown period for scaling down.
  7209. //
  7210. // For more information about Aurora Serverless, see Using Amazon Aurora Serverless
  7211. // (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html)
  7212. // in the Amazon Aurora User Guide.
  7213. //
  7214. // If you call ModifyCurrentDBClusterCapacity with the default TimeoutAction,
  7215. // connections that prevent Aurora Serverless from finding a scaling point might
  7216. // be dropped. For more information about scaling points, see Autoscaling for
  7217. // Aurora Serverless (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.how-it-works.html#aurora-serverless.how-it-works.auto-scaling)
  7218. // in the Amazon Aurora User Guide.
  7219. //
  7220. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7221. // with awserr.Error's Code and Message methods to get detailed information about
  7222. // the error.
  7223. //
  7224. // See the AWS API reference guide for Amazon Relational Database Service's
  7225. // API operation ModifyCurrentDBClusterCapacity for usage and error information.
  7226. //
  7227. // Returned Error Codes:
  7228. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  7229. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  7230. //
  7231. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  7232. // The requested operation can't be performed while the cluster is in this state.
  7233. //
  7234. // * ErrCodeInvalidDBClusterCapacityFault "InvalidDBClusterCapacityFault"
  7235. // Capacity isn't a valid Aurora Serverless DB cluster capacity. Valid capacity
  7236. // values are 2, 4, 8, 16, 32, 64, 128, and 256.
  7237. //
  7238. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyCurrentDBClusterCapacity
  7239. func (c *RDS) ModifyCurrentDBClusterCapacity(input *ModifyCurrentDBClusterCapacityInput) (*ModifyCurrentDBClusterCapacityOutput, error) {
  7240. req, out := c.ModifyCurrentDBClusterCapacityRequest(input)
  7241. return out, req.Send()
  7242. }
  7243. // ModifyCurrentDBClusterCapacityWithContext is the same as ModifyCurrentDBClusterCapacity with the addition of
  7244. // the ability to pass a context and additional request options.
  7245. //
  7246. // See ModifyCurrentDBClusterCapacity for details on how to use this API operation.
  7247. //
  7248. // The context must be non-nil and will be used for request cancellation. If
  7249. // the context is nil a panic will occur. In the future the SDK may create
  7250. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7251. // for more information on using Contexts.
  7252. func (c *RDS) ModifyCurrentDBClusterCapacityWithContext(ctx aws.Context, input *ModifyCurrentDBClusterCapacityInput, opts ...request.Option) (*ModifyCurrentDBClusterCapacityOutput, error) {
  7253. req, out := c.ModifyCurrentDBClusterCapacityRequest(input)
  7254. req.SetContext(ctx)
  7255. req.ApplyOptions(opts...)
  7256. return out, req.Send()
  7257. }
  7258. const opModifyDBCluster = "ModifyDBCluster"
  7259. // ModifyDBClusterRequest generates a "aws/request.Request" representing the
  7260. // client's request for the ModifyDBCluster operation. The "output" return
  7261. // value will be populated with the request's response once the request completes
  7262. // successfully.
  7263. //
  7264. // Use "Send" method on the returned Request to send the API call to the service.
  7265. // the "output" return value is not valid until after Send returns without error.
  7266. //
  7267. // See ModifyDBCluster for more information on using the ModifyDBCluster
  7268. // API call, and error handling.
  7269. //
  7270. // This method is useful when you want to inject custom logic or configuration
  7271. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7272. //
  7273. //
  7274. // // Example sending a request using the ModifyDBClusterRequest method.
  7275. // req, resp := client.ModifyDBClusterRequest(params)
  7276. //
  7277. // err := req.Send()
  7278. // if err == nil { // resp is now filled
  7279. // fmt.Println(resp)
  7280. // }
  7281. //
  7282. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBCluster
  7283. func (c *RDS) ModifyDBClusterRequest(input *ModifyDBClusterInput) (req *request.Request, output *ModifyDBClusterOutput) {
  7284. op := &request.Operation{
  7285. Name: opModifyDBCluster,
  7286. HTTPMethod: "POST",
  7287. HTTPPath: "/",
  7288. }
  7289. if input == nil {
  7290. input = &ModifyDBClusterInput{}
  7291. }
  7292. output = &ModifyDBClusterOutput{}
  7293. req = c.newRequest(op, input, output)
  7294. return
  7295. }
  7296. // ModifyDBCluster API operation for Amazon Relational Database Service.
  7297. //
  7298. // Modify a setting for an Amazon Aurora DB cluster. You can change one or more
  7299. // database configuration parameters by specifying these parameters and the
  7300. // new values in the request. For more information on Amazon Aurora, see What
  7301. // Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  7302. // in the Amazon Aurora User Guide.
  7303. //
  7304. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7305. // with awserr.Error's Code and Message methods to get detailed information about
  7306. // the error.
  7307. //
  7308. // See the AWS API reference guide for Amazon Relational Database Service's
  7309. // API operation ModifyDBCluster for usage and error information.
  7310. //
  7311. // Returned Error Codes:
  7312. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  7313. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  7314. //
  7315. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  7316. // The requested operation can't be performed while the cluster is in this state.
  7317. //
  7318. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  7319. // The request would result in the user exceeding the allowed amount of storage
  7320. // available across all DB instances.
  7321. //
  7322. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  7323. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  7324. //
  7325. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  7326. // The DB subnet group doesn't cover all Availability Zones after it's created
  7327. // because of users' change.
  7328. //
  7329. // * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault"
  7330. // The DB subnet group cannot be deleted because it's in use.
  7331. //
  7332. // * ErrCodeInvalidSubnet "InvalidSubnet"
  7333. // The requested subnet is invalid, or multiple subnets were requested that
  7334. // are not all in a common VPC.
  7335. //
  7336. // * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound"
  7337. // DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter
  7338. // group.
  7339. //
  7340. // * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState"
  7341. // The state of the DB security group doesn't allow deletion.
  7342. //
  7343. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  7344. // The DB instance isn't in a valid state.
  7345. //
  7346. // * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault"
  7347. // The user already has a DB cluster with the given identifier.
  7348. //
  7349. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBCluster
  7350. func (c *RDS) ModifyDBCluster(input *ModifyDBClusterInput) (*ModifyDBClusterOutput, error) {
  7351. req, out := c.ModifyDBClusterRequest(input)
  7352. return out, req.Send()
  7353. }
  7354. // ModifyDBClusterWithContext is the same as ModifyDBCluster with the addition of
  7355. // the ability to pass a context and additional request options.
  7356. //
  7357. // See ModifyDBCluster for details on how to use this API operation.
  7358. //
  7359. // The context must be non-nil and will be used for request cancellation. If
  7360. // the context is nil a panic will occur. In the future the SDK may create
  7361. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7362. // for more information on using Contexts.
  7363. func (c *RDS) ModifyDBClusterWithContext(ctx aws.Context, input *ModifyDBClusterInput, opts ...request.Option) (*ModifyDBClusterOutput, error) {
  7364. req, out := c.ModifyDBClusterRequest(input)
  7365. req.SetContext(ctx)
  7366. req.ApplyOptions(opts...)
  7367. return out, req.Send()
  7368. }
  7369. const opModifyDBClusterEndpoint = "ModifyDBClusterEndpoint"
  7370. // ModifyDBClusterEndpointRequest generates a "aws/request.Request" representing the
  7371. // client's request for the ModifyDBClusterEndpoint operation. The "output" return
  7372. // value will be populated with the request's response once the request completes
  7373. // successfully.
  7374. //
  7375. // Use "Send" method on the returned Request to send the API call to the service.
  7376. // the "output" return value is not valid until after Send returns without error.
  7377. //
  7378. // See ModifyDBClusterEndpoint for more information on using the ModifyDBClusterEndpoint
  7379. // API call, and error handling.
  7380. //
  7381. // This method is useful when you want to inject custom logic or configuration
  7382. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7383. //
  7384. //
  7385. // // Example sending a request using the ModifyDBClusterEndpointRequest method.
  7386. // req, resp := client.ModifyDBClusterEndpointRequest(params)
  7387. //
  7388. // err := req.Send()
  7389. // if err == nil { // resp is now filled
  7390. // fmt.Println(resp)
  7391. // }
  7392. //
  7393. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterEndpoint
  7394. func (c *RDS) ModifyDBClusterEndpointRequest(input *ModifyDBClusterEndpointInput) (req *request.Request, output *ModifyDBClusterEndpointOutput) {
  7395. op := &request.Operation{
  7396. Name: opModifyDBClusterEndpoint,
  7397. HTTPMethod: "POST",
  7398. HTTPPath: "/",
  7399. }
  7400. if input == nil {
  7401. input = &ModifyDBClusterEndpointInput{}
  7402. }
  7403. output = &ModifyDBClusterEndpointOutput{}
  7404. req = c.newRequest(op, input, output)
  7405. return
  7406. }
  7407. // ModifyDBClusterEndpoint API operation for Amazon Relational Database Service.
  7408. //
  7409. // Modifies the properties of an endpoint in an Amazon Aurora DB cluster.
  7410. //
  7411. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7412. // with awserr.Error's Code and Message methods to get detailed information about
  7413. // the error.
  7414. //
  7415. // See the AWS API reference guide for Amazon Relational Database Service's
  7416. // API operation ModifyDBClusterEndpoint for usage and error information.
  7417. //
  7418. // Returned Error Codes:
  7419. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  7420. // The requested operation can't be performed while the cluster is in this state.
  7421. //
  7422. // * ErrCodeInvalidDBClusterEndpointStateFault "InvalidDBClusterEndpointStateFault"
  7423. // The requested operation can't be performed on the endpoint while the endpoint
  7424. // is in this state.
  7425. //
  7426. // * ErrCodeDBClusterEndpointNotFoundFault "DBClusterEndpointNotFoundFault"
  7427. // The specified custom endpoint doesn't exist.
  7428. //
  7429. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  7430. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  7431. //
  7432. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  7433. // The DB instance isn't in a valid state.
  7434. //
  7435. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterEndpoint
  7436. func (c *RDS) ModifyDBClusterEndpoint(input *ModifyDBClusterEndpointInput) (*ModifyDBClusterEndpointOutput, error) {
  7437. req, out := c.ModifyDBClusterEndpointRequest(input)
  7438. return out, req.Send()
  7439. }
  7440. // ModifyDBClusterEndpointWithContext is the same as ModifyDBClusterEndpoint with the addition of
  7441. // the ability to pass a context and additional request options.
  7442. //
  7443. // See ModifyDBClusterEndpoint for details on how to use this API operation.
  7444. //
  7445. // The context must be non-nil and will be used for request cancellation. If
  7446. // the context is nil a panic will occur. In the future the SDK may create
  7447. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7448. // for more information on using Contexts.
  7449. func (c *RDS) ModifyDBClusterEndpointWithContext(ctx aws.Context, input *ModifyDBClusterEndpointInput, opts ...request.Option) (*ModifyDBClusterEndpointOutput, error) {
  7450. req, out := c.ModifyDBClusterEndpointRequest(input)
  7451. req.SetContext(ctx)
  7452. req.ApplyOptions(opts...)
  7453. return out, req.Send()
  7454. }
  7455. const opModifyDBClusterParameterGroup = "ModifyDBClusterParameterGroup"
  7456. // ModifyDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  7457. // client's request for the ModifyDBClusterParameterGroup operation. The "output" return
  7458. // value will be populated with the request's response once the request completes
  7459. // successfully.
  7460. //
  7461. // Use "Send" method on the returned Request to send the API call to the service.
  7462. // the "output" return value is not valid until after Send returns without error.
  7463. //
  7464. // See ModifyDBClusterParameterGroup for more information on using the ModifyDBClusterParameterGroup
  7465. // API call, and error handling.
  7466. //
  7467. // This method is useful when you want to inject custom logic or configuration
  7468. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7469. //
  7470. //
  7471. // // Example sending a request using the ModifyDBClusterParameterGroupRequest method.
  7472. // req, resp := client.ModifyDBClusterParameterGroupRequest(params)
  7473. //
  7474. // err := req.Send()
  7475. // if err == nil { // resp is now filled
  7476. // fmt.Println(resp)
  7477. // }
  7478. //
  7479. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterParameterGroup
  7480. func (c *RDS) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParameterGroupInput) (req *request.Request, output *DBClusterParameterGroupNameMessage) {
  7481. op := &request.Operation{
  7482. Name: opModifyDBClusterParameterGroup,
  7483. HTTPMethod: "POST",
  7484. HTTPPath: "/",
  7485. }
  7486. if input == nil {
  7487. input = &ModifyDBClusterParameterGroupInput{}
  7488. }
  7489. output = &DBClusterParameterGroupNameMessage{}
  7490. req = c.newRequest(op, input, output)
  7491. return
  7492. }
  7493. // ModifyDBClusterParameterGroup API operation for Amazon Relational Database Service.
  7494. //
  7495. // Modifies the parameters of a DB cluster parameter group. To modify more than
  7496. // one parameter, submit a list of the following: ParameterName, ParameterValue,
  7497. // and ApplyMethod. A maximum of 20 parameters can be modified in a single request.
  7498. //
  7499. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  7500. // in the Amazon Aurora User Guide.
  7501. //
  7502. // Changes to dynamic parameters are applied immediately. Changes to static
  7503. // parameters require a reboot without failover to the DB cluster associated
  7504. // with the parameter group before the change can take effect.
  7505. //
  7506. // After you create a DB cluster parameter group, you should wait at least 5
  7507. // minutes before creating your first DB cluster that uses that DB cluster parameter
  7508. // group as the default parameter group. This allows Amazon RDS to fully complete
  7509. // the create action before the parameter group is used as the default for a
  7510. // new DB cluster. This is especially important for parameters that are critical
  7511. // when creating the default database for a DB cluster, such as the character
  7512. // set for the default database defined by the character_set_database parameter.
  7513. // You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/)
  7514. // or the DescribeDBClusterParameters command to verify that your DB cluster
  7515. // parameter group has been created or modified.
  7516. //
  7517. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7518. // with awserr.Error's Code and Message methods to get detailed information about
  7519. // the error.
  7520. //
  7521. // See the AWS API reference guide for Amazon Relational Database Service's
  7522. // API operation ModifyDBClusterParameterGroup for usage and error information.
  7523. //
  7524. // Returned Error Codes:
  7525. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  7526. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  7527. //
  7528. // * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState"
  7529. // The DB parameter group is in use or is in an invalid state. If you are attempting
  7530. // to delete the parameter group, you can't delete it when the parameter group
  7531. // is in this state.
  7532. //
  7533. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterParameterGroup
  7534. func (c *RDS) ModifyDBClusterParameterGroup(input *ModifyDBClusterParameterGroupInput) (*DBClusterParameterGroupNameMessage, error) {
  7535. req, out := c.ModifyDBClusterParameterGroupRequest(input)
  7536. return out, req.Send()
  7537. }
  7538. // ModifyDBClusterParameterGroupWithContext is the same as ModifyDBClusterParameterGroup with the addition of
  7539. // the ability to pass a context and additional request options.
  7540. //
  7541. // See ModifyDBClusterParameterGroup for details on how to use this API operation.
  7542. //
  7543. // The context must be non-nil and will be used for request cancellation. If
  7544. // the context is nil a panic will occur. In the future the SDK may create
  7545. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7546. // for more information on using Contexts.
  7547. func (c *RDS) ModifyDBClusterParameterGroupWithContext(ctx aws.Context, input *ModifyDBClusterParameterGroupInput, opts ...request.Option) (*DBClusterParameterGroupNameMessage, error) {
  7548. req, out := c.ModifyDBClusterParameterGroupRequest(input)
  7549. req.SetContext(ctx)
  7550. req.ApplyOptions(opts...)
  7551. return out, req.Send()
  7552. }
  7553. const opModifyDBClusterSnapshotAttribute = "ModifyDBClusterSnapshotAttribute"
  7554. // ModifyDBClusterSnapshotAttributeRequest generates a "aws/request.Request" representing the
  7555. // client's request for the ModifyDBClusterSnapshotAttribute operation. The "output" return
  7556. // value will be populated with the request's response once the request completes
  7557. // successfully.
  7558. //
  7559. // Use "Send" method on the returned Request to send the API call to the service.
  7560. // the "output" return value is not valid until after Send returns without error.
  7561. //
  7562. // See ModifyDBClusterSnapshotAttribute for more information on using the ModifyDBClusterSnapshotAttribute
  7563. // API call, and error handling.
  7564. //
  7565. // This method is useful when you want to inject custom logic or configuration
  7566. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7567. //
  7568. //
  7569. // // Example sending a request using the ModifyDBClusterSnapshotAttributeRequest method.
  7570. // req, resp := client.ModifyDBClusterSnapshotAttributeRequest(params)
  7571. //
  7572. // err := req.Send()
  7573. // if err == nil { // resp is now filled
  7574. // fmt.Println(resp)
  7575. // }
  7576. //
  7577. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterSnapshotAttribute
  7578. func (c *RDS) ModifyDBClusterSnapshotAttributeRequest(input *ModifyDBClusterSnapshotAttributeInput) (req *request.Request, output *ModifyDBClusterSnapshotAttributeOutput) {
  7579. op := &request.Operation{
  7580. Name: opModifyDBClusterSnapshotAttribute,
  7581. HTTPMethod: "POST",
  7582. HTTPPath: "/",
  7583. }
  7584. if input == nil {
  7585. input = &ModifyDBClusterSnapshotAttributeInput{}
  7586. }
  7587. output = &ModifyDBClusterSnapshotAttributeOutput{}
  7588. req = c.newRequest(op, input, output)
  7589. return
  7590. }
  7591. // ModifyDBClusterSnapshotAttribute API operation for Amazon Relational Database Service.
  7592. //
  7593. // Adds an attribute and values to, or removes an attribute and values from,
  7594. // a manual DB cluster snapshot.
  7595. //
  7596. // To share a manual DB cluster snapshot with other AWS accounts, specify restore
  7597. // as the AttributeName and use the ValuesToAdd parameter to add a list of IDs
  7598. // of the AWS accounts that are authorized to restore the manual DB cluster
  7599. // snapshot. Use the value all to make the manual DB cluster snapshot public,
  7600. // which means that it can be copied or restored by all AWS accounts. Do not
  7601. // add the all value for any manual DB cluster snapshots that contain private
  7602. // information that you don't want available to all AWS accounts. If a manual
  7603. // DB cluster snapshot is encrypted, it can be shared, but only by specifying
  7604. // a list of authorized AWS account IDs for the ValuesToAdd parameter. You can't
  7605. // use all as a value for that parameter in this case.
  7606. //
  7607. // To view which AWS accounts have access to copy or restore a manual DB cluster
  7608. // snapshot, or whether a manual DB cluster snapshot public or private, use
  7609. // the DescribeDBClusterSnapshotAttributes API action.
  7610. //
  7611. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7612. // with awserr.Error's Code and Message methods to get detailed information about
  7613. // the error.
  7614. //
  7615. // See the AWS API reference guide for Amazon Relational Database Service's
  7616. // API operation ModifyDBClusterSnapshotAttribute for usage and error information.
  7617. //
  7618. // Returned Error Codes:
  7619. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  7620. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  7621. //
  7622. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  7623. // The supplied value isn't a valid DB cluster snapshot state.
  7624. //
  7625. // * ErrCodeSharedSnapshotQuotaExceededFault "SharedSnapshotQuotaExceeded"
  7626. // You have exceeded the maximum number of accounts that you can share a manual
  7627. // DB snapshot with.
  7628. //
  7629. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterSnapshotAttribute
  7630. func (c *RDS) ModifyDBClusterSnapshotAttribute(input *ModifyDBClusterSnapshotAttributeInput) (*ModifyDBClusterSnapshotAttributeOutput, error) {
  7631. req, out := c.ModifyDBClusterSnapshotAttributeRequest(input)
  7632. return out, req.Send()
  7633. }
  7634. // ModifyDBClusterSnapshotAttributeWithContext is the same as ModifyDBClusterSnapshotAttribute with the addition of
  7635. // the ability to pass a context and additional request options.
  7636. //
  7637. // See ModifyDBClusterSnapshotAttribute for details on how to use this API operation.
  7638. //
  7639. // The context must be non-nil and will be used for request cancellation. If
  7640. // the context is nil a panic will occur. In the future the SDK may create
  7641. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7642. // for more information on using Contexts.
  7643. func (c *RDS) ModifyDBClusterSnapshotAttributeWithContext(ctx aws.Context, input *ModifyDBClusterSnapshotAttributeInput, opts ...request.Option) (*ModifyDBClusterSnapshotAttributeOutput, error) {
  7644. req, out := c.ModifyDBClusterSnapshotAttributeRequest(input)
  7645. req.SetContext(ctx)
  7646. req.ApplyOptions(opts...)
  7647. return out, req.Send()
  7648. }
  7649. const opModifyDBInstance = "ModifyDBInstance"
  7650. // ModifyDBInstanceRequest generates a "aws/request.Request" representing the
  7651. // client's request for the ModifyDBInstance operation. The "output" return
  7652. // value will be populated with the request's response once the request completes
  7653. // successfully.
  7654. //
  7655. // Use "Send" method on the returned Request to send the API call to the service.
  7656. // the "output" return value is not valid until after Send returns without error.
  7657. //
  7658. // See ModifyDBInstance for more information on using the ModifyDBInstance
  7659. // API call, and error handling.
  7660. //
  7661. // This method is useful when you want to inject custom logic or configuration
  7662. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7663. //
  7664. //
  7665. // // Example sending a request using the ModifyDBInstanceRequest method.
  7666. // req, resp := client.ModifyDBInstanceRequest(params)
  7667. //
  7668. // err := req.Send()
  7669. // if err == nil { // resp is now filled
  7670. // fmt.Println(resp)
  7671. // }
  7672. //
  7673. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBInstance
  7674. func (c *RDS) ModifyDBInstanceRequest(input *ModifyDBInstanceInput) (req *request.Request, output *ModifyDBInstanceOutput) {
  7675. op := &request.Operation{
  7676. Name: opModifyDBInstance,
  7677. HTTPMethod: "POST",
  7678. HTTPPath: "/",
  7679. }
  7680. if input == nil {
  7681. input = &ModifyDBInstanceInput{}
  7682. }
  7683. output = &ModifyDBInstanceOutput{}
  7684. req = c.newRequest(op, input, output)
  7685. return
  7686. }
  7687. // ModifyDBInstance API operation for Amazon Relational Database Service.
  7688. //
  7689. // Modifies settings for a DB instance. You can change one or more database
  7690. // configuration parameters by specifying these parameters and the new values
  7691. // in the request. To learn what modifications you can make to your DB instance,
  7692. // call DescribeValidDBInstanceModifications before you call ModifyDBInstance.
  7693. //
  7694. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7695. // with awserr.Error's Code and Message methods to get detailed information about
  7696. // the error.
  7697. //
  7698. // See the AWS API reference guide for Amazon Relational Database Service's
  7699. // API operation ModifyDBInstance for usage and error information.
  7700. //
  7701. // Returned Error Codes:
  7702. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  7703. // The DB instance isn't in a valid state.
  7704. //
  7705. // * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState"
  7706. // The state of the DB security group doesn't allow deletion.
  7707. //
  7708. // * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists"
  7709. // The user already has a DB instance with the given identifier.
  7710. //
  7711. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  7712. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  7713. //
  7714. // * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound"
  7715. // DBSecurityGroupName doesn't refer to an existing DB security group.
  7716. //
  7717. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  7718. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  7719. //
  7720. // * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity"
  7721. // The specified DB instance class isn't available in the specified Availability
  7722. // Zone.
  7723. //
  7724. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  7725. // The request would result in the user exceeding the allowed amount of storage
  7726. // available across all DB instances.
  7727. //
  7728. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  7729. // The DB subnet group doesn't cover all Availability Zones after it's created
  7730. // because of users' change.
  7731. //
  7732. // * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault"
  7733. // Provisioned IOPS not available in the specified Availability Zone.
  7734. //
  7735. // * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault"
  7736. // The specified option group could not be found.
  7737. //
  7738. // * ErrCodeDBUpgradeDependencyFailureFault "DBUpgradeDependencyFailure"
  7739. // The DB upgrade failed because a resource the DB depends on can't be modified.
  7740. //
  7741. // * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported"
  7742. // Storage of the StorageType specified can't be associated with the DB instance.
  7743. //
  7744. // * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
  7745. // The specified CIDRIP or Amazon EC2 security group isn't authorized for the
  7746. // specified DB security group.
  7747. //
  7748. // RDS also may not be authorized by using IAM to perform necessary actions
  7749. // on your behalf.
  7750. //
  7751. // * ErrCodeCertificateNotFoundFault "CertificateNotFound"
  7752. // CertificateIdentifier doesn't refer to an existing certificate.
  7753. //
  7754. // * ErrCodeDomainNotFoundFault "DomainNotFoundFault"
  7755. // Domain doesn't refer to an existing Active Directory domain.
  7756. //
  7757. // * ErrCodeBackupPolicyNotFoundFault "BackupPolicyNotFoundFault"
  7758. //
  7759. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBInstance
  7760. func (c *RDS) ModifyDBInstance(input *ModifyDBInstanceInput) (*ModifyDBInstanceOutput, error) {
  7761. req, out := c.ModifyDBInstanceRequest(input)
  7762. return out, req.Send()
  7763. }
  7764. // ModifyDBInstanceWithContext is the same as ModifyDBInstance with the addition of
  7765. // the ability to pass a context and additional request options.
  7766. //
  7767. // See ModifyDBInstance for details on how to use this API operation.
  7768. //
  7769. // The context must be non-nil and will be used for request cancellation. If
  7770. // the context is nil a panic will occur. In the future the SDK may create
  7771. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7772. // for more information on using Contexts.
  7773. func (c *RDS) ModifyDBInstanceWithContext(ctx aws.Context, input *ModifyDBInstanceInput, opts ...request.Option) (*ModifyDBInstanceOutput, error) {
  7774. req, out := c.ModifyDBInstanceRequest(input)
  7775. req.SetContext(ctx)
  7776. req.ApplyOptions(opts...)
  7777. return out, req.Send()
  7778. }
  7779. const opModifyDBParameterGroup = "ModifyDBParameterGroup"
  7780. // ModifyDBParameterGroupRequest generates a "aws/request.Request" representing the
  7781. // client's request for the ModifyDBParameterGroup operation. The "output" return
  7782. // value will be populated with the request's response once the request completes
  7783. // successfully.
  7784. //
  7785. // Use "Send" method on the returned Request to send the API call to the service.
  7786. // the "output" return value is not valid until after Send returns without error.
  7787. //
  7788. // See ModifyDBParameterGroup for more information on using the ModifyDBParameterGroup
  7789. // API call, and error handling.
  7790. //
  7791. // This method is useful when you want to inject custom logic or configuration
  7792. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7793. //
  7794. //
  7795. // // Example sending a request using the ModifyDBParameterGroupRequest method.
  7796. // req, resp := client.ModifyDBParameterGroupRequest(params)
  7797. //
  7798. // err := req.Send()
  7799. // if err == nil { // resp is now filled
  7800. // fmt.Println(resp)
  7801. // }
  7802. //
  7803. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBParameterGroup
  7804. func (c *RDS) ModifyDBParameterGroupRequest(input *ModifyDBParameterGroupInput) (req *request.Request, output *DBParameterGroupNameMessage) {
  7805. op := &request.Operation{
  7806. Name: opModifyDBParameterGroup,
  7807. HTTPMethod: "POST",
  7808. HTTPPath: "/",
  7809. }
  7810. if input == nil {
  7811. input = &ModifyDBParameterGroupInput{}
  7812. }
  7813. output = &DBParameterGroupNameMessage{}
  7814. req = c.newRequest(op, input, output)
  7815. return
  7816. }
  7817. // ModifyDBParameterGroup API operation for Amazon Relational Database Service.
  7818. //
  7819. // Modifies the parameters of a DB parameter group. To modify more than one
  7820. // parameter, submit a list of the following: ParameterName, ParameterValue,
  7821. // and ApplyMethod. A maximum of 20 parameters can be modified in a single request.
  7822. //
  7823. // Changes to dynamic parameters are applied immediately. Changes to static
  7824. // parameters require a reboot without failover to the DB instance associated
  7825. // with the parameter group before the change can take effect.
  7826. //
  7827. // After you modify a DB parameter group, you should wait at least 5 minutes
  7828. // before creating your first DB instance that uses that DB parameter group
  7829. // as the default parameter group. This allows Amazon RDS to fully complete
  7830. // the modify action before the parameter group is used as the default for a
  7831. // new DB instance. This is especially important for parameters that are critical
  7832. // when creating the default database for a DB instance, such as the character
  7833. // set for the default database defined by the character_set_database parameter.
  7834. // You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/)
  7835. // or the DescribeDBParameters command to verify that your DB parameter group
  7836. // has been created or modified.
  7837. //
  7838. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7839. // with awserr.Error's Code and Message methods to get detailed information about
  7840. // the error.
  7841. //
  7842. // See the AWS API reference guide for Amazon Relational Database Service's
  7843. // API operation ModifyDBParameterGroup for usage and error information.
  7844. //
  7845. // Returned Error Codes:
  7846. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  7847. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  7848. //
  7849. // * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState"
  7850. // The DB parameter group is in use or is in an invalid state. If you are attempting
  7851. // to delete the parameter group, you can't delete it when the parameter group
  7852. // is in this state.
  7853. //
  7854. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBParameterGroup
  7855. func (c *RDS) ModifyDBParameterGroup(input *ModifyDBParameterGroupInput) (*DBParameterGroupNameMessage, error) {
  7856. req, out := c.ModifyDBParameterGroupRequest(input)
  7857. return out, req.Send()
  7858. }
  7859. // ModifyDBParameterGroupWithContext is the same as ModifyDBParameterGroup with the addition of
  7860. // the ability to pass a context and additional request options.
  7861. //
  7862. // See ModifyDBParameterGroup for details on how to use this API operation.
  7863. //
  7864. // The context must be non-nil and will be used for request cancellation. If
  7865. // the context is nil a panic will occur. In the future the SDK may create
  7866. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7867. // for more information on using Contexts.
  7868. func (c *RDS) ModifyDBParameterGroupWithContext(ctx aws.Context, input *ModifyDBParameterGroupInput, opts ...request.Option) (*DBParameterGroupNameMessage, error) {
  7869. req, out := c.ModifyDBParameterGroupRequest(input)
  7870. req.SetContext(ctx)
  7871. req.ApplyOptions(opts...)
  7872. return out, req.Send()
  7873. }
  7874. const opModifyDBSnapshot = "ModifyDBSnapshot"
  7875. // ModifyDBSnapshotRequest generates a "aws/request.Request" representing the
  7876. // client's request for the ModifyDBSnapshot operation. The "output" return
  7877. // value will be populated with the request's response once the request completes
  7878. // successfully.
  7879. //
  7880. // Use "Send" method on the returned Request to send the API call to the service.
  7881. // the "output" return value is not valid until after Send returns without error.
  7882. //
  7883. // See ModifyDBSnapshot for more information on using the ModifyDBSnapshot
  7884. // API call, and error handling.
  7885. //
  7886. // This method is useful when you want to inject custom logic or configuration
  7887. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7888. //
  7889. //
  7890. // // Example sending a request using the ModifyDBSnapshotRequest method.
  7891. // req, resp := client.ModifyDBSnapshotRequest(params)
  7892. //
  7893. // err := req.Send()
  7894. // if err == nil { // resp is now filled
  7895. // fmt.Println(resp)
  7896. // }
  7897. //
  7898. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshot
  7899. func (c *RDS) ModifyDBSnapshotRequest(input *ModifyDBSnapshotInput) (req *request.Request, output *ModifyDBSnapshotOutput) {
  7900. op := &request.Operation{
  7901. Name: opModifyDBSnapshot,
  7902. HTTPMethod: "POST",
  7903. HTTPPath: "/",
  7904. }
  7905. if input == nil {
  7906. input = &ModifyDBSnapshotInput{}
  7907. }
  7908. output = &ModifyDBSnapshotOutput{}
  7909. req = c.newRequest(op, input, output)
  7910. return
  7911. }
  7912. // ModifyDBSnapshot API operation for Amazon Relational Database Service.
  7913. //
  7914. // Updates a manual DB snapshot, which can be encrypted or not encrypted, with
  7915. // a new engine version.
  7916. //
  7917. // Amazon RDS supports upgrading DB snapshots for MySQL and Oracle.
  7918. //
  7919. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  7920. // with awserr.Error's Code and Message methods to get detailed information about
  7921. // the error.
  7922. //
  7923. // See the AWS API reference guide for Amazon Relational Database Service's
  7924. // API operation ModifyDBSnapshot for usage and error information.
  7925. //
  7926. // Returned Error Codes:
  7927. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  7928. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  7929. //
  7930. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshot
  7931. func (c *RDS) ModifyDBSnapshot(input *ModifyDBSnapshotInput) (*ModifyDBSnapshotOutput, error) {
  7932. req, out := c.ModifyDBSnapshotRequest(input)
  7933. return out, req.Send()
  7934. }
  7935. // ModifyDBSnapshotWithContext is the same as ModifyDBSnapshot with the addition of
  7936. // the ability to pass a context and additional request options.
  7937. //
  7938. // See ModifyDBSnapshot for details on how to use this API operation.
  7939. //
  7940. // The context must be non-nil and will be used for request cancellation. If
  7941. // the context is nil a panic will occur. In the future the SDK may create
  7942. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  7943. // for more information on using Contexts.
  7944. func (c *RDS) ModifyDBSnapshotWithContext(ctx aws.Context, input *ModifyDBSnapshotInput, opts ...request.Option) (*ModifyDBSnapshotOutput, error) {
  7945. req, out := c.ModifyDBSnapshotRequest(input)
  7946. req.SetContext(ctx)
  7947. req.ApplyOptions(opts...)
  7948. return out, req.Send()
  7949. }
  7950. const opModifyDBSnapshotAttribute = "ModifyDBSnapshotAttribute"
  7951. // ModifyDBSnapshotAttributeRequest generates a "aws/request.Request" representing the
  7952. // client's request for the ModifyDBSnapshotAttribute operation. The "output" return
  7953. // value will be populated with the request's response once the request completes
  7954. // successfully.
  7955. //
  7956. // Use "Send" method on the returned Request to send the API call to the service.
  7957. // the "output" return value is not valid until after Send returns without error.
  7958. //
  7959. // See ModifyDBSnapshotAttribute for more information on using the ModifyDBSnapshotAttribute
  7960. // API call, and error handling.
  7961. //
  7962. // This method is useful when you want to inject custom logic or configuration
  7963. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  7964. //
  7965. //
  7966. // // Example sending a request using the ModifyDBSnapshotAttributeRequest method.
  7967. // req, resp := client.ModifyDBSnapshotAttributeRequest(params)
  7968. //
  7969. // err := req.Send()
  7970. // if err == nil { // resp is now filled
  7971. // fmt.Println(resp)
  7972. // }
  7973. //
  7974. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshotAttribute
  7975. func (c *RDS) ModifyDBSnapshotAttributeRequest(input *ModifyDBSnapshotAttributeInput) (req *request.Request, output *ModifyDBSnapshotAttributeOutput) {
  7976. op := &request.Operation{
  7977. Name: opModifyDBSnapshotAttribute,
  7978. HTTPMethod: "POST",
  7979. HTTPPath: "/",
  7980. }
  7981. if input == nil {
  7982. input = &ModifyDBSnapshotAttributeInput{}
  7983. }
  7984. output = &ModifyDBSnapshotAttributeOutput{}
  7985. req = c.newRequest(op, input, output)
  7986. return
  7987. }
  7988. // ModifyDBSnapshotAttribute API operation for Amazon Relational Database Service.
  7989. //
  7990. // Adds an attribute and values to, or removes an attribute and values from,
  7991. // a manual DB snapshot.
  7992. //
  7993. // To share a manual DB snapshot with other AWS accounts, specify restore as
  7994. // the AttributeName and use the ValuesToAdd parameter to add a list of IDs
  7995. // of the AWS accounts that are authorized to restore the manual DB snapshot.
  7996. // Uses the value all to make the manual DB snapshot public, which means it
  7997. // can be copied or restored by all AWS accounts. Do not add the all value for
  7998. // any manual DB snapshots that contain private information that you don't want
  7999. // available to all AWS accounts. If the manual DB snapshot is encrypted, it
  8000. // can be shared, but only by specifying a list of authorized AWS account IDs
  8001. // for the ValuesToAdd parameter. You can't use all as a value for that parameter
  8002. // in this case.
  8003. //
  8004. // To view which AWS accounts have access to copy or restore a manual DB snapshot,
  8005. // or whether a manual DB snapshot public or private, use the DescribeDBSnapshotAttributes
  8006. // API action.
  8007. //
  8008. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8009. // with awserr.Error's Code and Message methods to get detailed information about
  8010. // the error.
  8011. //
  8012. // See the AWS API reference guide for Amazon Relational Database Service's
  8013. // API operation ModifyDBSnapshotAttribute for usage and error information.
  8014. //
  8015. // Returned Error Codes:
  8016. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  8017. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  8018. //
  8019. // * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState"
  8020. // The state of the DB snapshot doesn't allow deletion.
  8021. //
  8022. // * ErrCodeSharedSnapshotQuotaExceededFault "SharedSnapshotQuotaExceeded"
  8023. // You have exceeded the maximum number of accounts that you can share a manual
  8024. // DB snapshot with.
  8025. //
  8026. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSnapshotAttribute
  8027. func (c *RDS) ModifyDBSnapshotAttribute(input *ModifyDBSnapshotAttributeInput) (*ModifyDBSnapshotAttributeOutput, error) {
  8028. req, out := c.ModifyDBSnapshotAttributeRequest(input)
  8029. return out, req.Send()
  8030. }
  8031. // ModifyDBSnapshotAttributeWithContext is the same as ModifyDBSnapshotAttribute with the addition of
  8032. // the ability to pass a context and additional request options.
  8033. //
  8034. // See ModifyDBSnapshotAttribute for details on how to use this API operation.
  8035. //
  8036. // The context must be non-nil and will be used for request cancellation. If
  8037. // the context is nil a panic will occur. In the future the SDK may create
  8038. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8039. // for more information on using Contexts.
  8040. func (c *RDS) ModifyDBSnapshotAttributeWithContext(ctx aws.Context, input *ModifyDBSnapshotAttributeInput, opts ...request.Option) (*ModifyDBSnapshotAttributeOutput, error) {
  8041. req, out := c.ModifyDBSnapshotAttributeRequest(input)
  8042. req.SetContext(ctx)
  8043. req.ApplyOptions(opts...)
  8044. return out, req.Send()
  8045. }
  8046. const opModifyDBSubnetGroup = "ModifyDBSubnetGroup"
  8047. // ModifyDBSubnetGroupRequest generates a "aws/request.Request" representing the
  8048. // client's request for the ModifyDBSubnetGroup operation. The "output" return
  8049. // value will be populated with the request's response once the request completes
  8050. // successfully.
  8051. //
  8052. // Use "Send" method on the returned Request to send the API call to the service.
  8053. // the "output" return value is not valid until after Send returns without error.
  8054. //
  8055. // See ModifyDBSubnetGroup for more information on using the ModifyDBSubnetGroup
  8056. // API call, and error handling.
  8057. //
  8058. // This method is useful when you want to inject custom logic or configuration
  8059. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8060. //
  8061. //
  8062. // // Example sending a request using the ModifyDBSubnetGroupRequest method.
  8063. // req, resp := client.ModifyDBSubnetGroupRequest(params)
  8064. //
  8065. // err := req.Send()
  8066. // if err == nil { // resp is now filled
  8067. // fmt.Println(resp)
  8068. // }
  8069. //
  8070. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSubnetGroup
  8071. func (c *RDS) ModifyDBSubnetGroupRequest(input *ModifyDBSubnetGroupInput) (req *request.Request, output *ModifyDBSubnetGroupOutput) {
  8072. op := &request.Operation{
  8073. Name: opModifyDBSubnetGroup,
  8074. HTTPMethod: "POST",
  8075. HTTPPath: "/",
  8076. }
  8077. if input == nil {
  8078. input = &ModifyDBSubnetGroupInput{}
  8079. }
  8080. output = &ModifyDBSubnetGroupOutput{}
  8081. req = c.newRequest(op, input, output)
  8082. return
  8083. }
  8084. // ModifyDBSubnetGroup API operation for Amazon Relational Database Service.
  8085. //
  8086. // Modifies an existing DB subnet group. DB subnet groups must contain at least
  8087. // one subnet in at least two AZs in the AWS Region.
  8088. //
  8089. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8090. // with awserr.Error's Code and Message methods to get detailed information about
  8091. // the error.
  8092. //
  8093. // See the AWS API reference guide for Amazon Relational Database Service's
  8094. // API operation ModifyDBSubnetGroup for usage and error information.
  8095. //
  8096. // Returned Error Codes:
  8097. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  8098. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  8099. //
  8100. // * ErrCodeDBSubnetQuotaExceededFault "DBSubnetQuotaExceededFault"
  8101. // The request would result in the user exceeding the allowed number of subnets
  8102. // in a DB subnet groups.
  8103. //
  8104. // * ErrCodeSubnetAlreadyInUse "SubnetAlreadyInUse"
  8105. // The DB subnet is already in use in the Availability Zone.
  8106. //
  8107. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  8108. // Subnets in the DB subnet group should cover at least two Availability Zones
  8109. // unless there is only one Availability Zone.
  8110. //
  8111. // * ErrCodeInvalidSubnet "InvalidSubnet"
  8112. // The requested subnet is invalid, or multiple subnets were requested that
  8113. // are not all in a common VPC.
  8114. //
  8115. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBSubnetGroup
  8116. func (c *RDS) ModifyDBSubnetGroup(input *ModifyDBSubnetGroupInput) (*ModifyDBSubnetGroupOutput, error) {
  8117. req, out := c.ModifyDBSubnetGroupRequest(input)
  8118. return out, req.Send()
  8119. }
  8120. // ModifyDBSubnetGroupWithContext is the same as ModifyDBSubnetGroup with the addition of
  8121. // the ability to pass a context and additional request options.
  8122. //
  8123. // See ModifyDBSubnetGroup for details on how to use this API operation.
  8124. //
  8125. // The context must be non-nil and will be used for request cancellation. If
  8126. // the context is nil a panic will occur. In the future the SDK may create
  8127. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8128. // for more information on using Contexts.
  8129. func (c *RDS) ModifyDBSubnetGroupWithContext(ctx aws.Context, input *ModifyDBSubnetGroupInput, opts ...request.Option) (*ModifyDBSubnetGroupOutput, error) {
  8130. req, out := c.ModifyDBSubnetGroupRequest(input)
  8131. req.SetContext(ctx)
  8132. req.ApplyOptions(opts...)
  8133. return out, req.Send()
  8134. }
  8135. const opModifyEventSubscription = "ModifyEventSubscription"
  8136. // ModifyEventSubscriptionRequest generates a "aws/request.Request" representing the
  8137. // client's request for the ModifyEventSubscription operation. The "output" return
  8138. // value will be populated with the request's response once the request completes
  8139. // successfully.
  8140. //
  8141. // Use "Send" method on the returned Request to send the API call to the service.
  8142. // the "output" return value is not valid until after Send returns without error.
  8143. //
  8144. // See ModifyEventSubscription for more information on using the ModifyEventSubscription
  8145. // API call, and error handling.
  8146. //
  8147. // This method is useful when you want to inject custom logic or configuration
  8148. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8149. //
  8150. //
  8151. // // Example sending a request using the ModifyEventSubscriptionRequest method.
  8152. // req, resp := client.ModifyEventSubscriptionRequest(params)
  8153. //
  8154. // err := req.Send()
  8155. // if err == nil { // resp is now filled
  8156. // fmt.Println(resp)
  8157. // }
  8158. //
  8159. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyEventSubscription
  8160. func (c *RDS) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput) (req *request.Request, output *ModifyEventSubscriptionOutput) {
  8161. op := &request.Operation{
  8162. Name: opModifyEventSubscription,
  8163. HTTPMethod: "POST",
  8164. HTTPPath: "/",
  8165. }
  8166. if input == nil {
  8167. input = &ModifyEventSubscriptionInput{}
  8168. }
  8169. output = &ModifyEventSubscriptionOutput{}
  8170. req = c.newRequest(op, input, output)
  8171. return
  8172. }
  8173. // ModifyEventSubscription API operation for Amazon Relational Database Service.
  8174. //
  8175. // Modifies an existing RDS event notification subscription. Note that you can't
  8176. // modify the source identifiers using this call; to change source identifiers
  8177. // for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription
  8178. // calls.
  8179. //
  8180. // You can see a list of the event categories for a given SourceType in the
  8181. // Events (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html)
  8182. // topic in the Amazon RDS User Guide or by using the DescribeEventCategories
  8183. // action.
  8184. //
  8185. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8186. // with awserr.Error's Code and Message methods to get detailed information about
  8187. // the error.
  8188. //
  8189. // See the AWS API reference guide for Amazon Relational Database Service's
  8190. // API operation ModifyEventSubscription for usage and error information.
  8191. //
  8192. // Returned Error Codes:
  8193. // * ErrCodeEventSubscriptionQuotaExceededFault "EventSubscriptionQuotaExceeded"
  8194. // You have reached the maximum number of event subscriptions.
  8195. //
  8196. // * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound"
  8197. // The subscription name does not exist.
  8198. //
  8199. // * ErrCodeSNSInvalidTopicFault "SNSInvalidTopic"
  8200. // SNS has responded that there is a problem with the SND topic specified.
  8201. //
  8202. // * ErrCodeSNSNoAuthorizationFault "SNSNoAuthorization"
  8203. // You do not have permission to publish to the SNS topic ARN.
  8204. //
  8205. // * ErrCodeSNSTopicArnNotFoundFault "SNSTopicArnNotFound"
  8206. // The SNS topic ARN does not exist.
  8207. //
  8208. // * ErrCodeSubscriptionCategoryNotFoundFault "SubscriptionCategoryNotFound"
  8209. // The supplied category does not exist.
  8210. //
  8211. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyEventSubscription
  8212. func (c *RDS) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error) {
  8213. req, out := c.ModifyEventSubscriptionRequest(input)
  8214. return out, req.Send()
  8215. }
  8216. // ModifyEventSubscriptionWithContext is the same as ModifyEventSubscription with the addition of
  8217. // the ability to pass a context and additional request options.
  8218. //
  8219. // See ModifyEventSubscription for details on how to use this API operation.
  8220. //
  8221. // The context must be non-nil and will be used for request cancellation. If
  8222. // the context is nil a panic will occur. In the future the SDK may create
  8223. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8224. // for more information on using Contexts.
  8225. func (c *RDS) ModifyEventSubscriptionWithContext(ctx aws.Context, input *ModifyEventSubscriptionInput, opts ...request.Option) (*ModifyEventSubscriptionOutput, error) {
  8226. req, out := c.ModifyEventSubscriptionRequest(input)
  8227. req.SetContext(ctx)
  8228. req.ApplyOptions(opts...)
  8229. return out, req.Send()
  8230. }
  8231. const opModifyGlobalCluster = "ModifyGlobalCluster"
  8232. // ModifyGlobalClusterRequest generates a "aws/request.Request" representing the
  8233. // client's request for the ModifyGlobalCluster operation. The "output" return
  8234. // value will be populated with the request's response once the request completes
  8235. // successfully.
  8236. //
  8237. // Use "Send" method on the returned Request to send the API call to the service.
  8238. // the "output" return value is not valid until after Send returns without error.
  8239. //
  8240. // See ModifyGlobalCluster for more information on using the ModifyGlobalCluster
  8241. // API call, and error handling.
  8242. //
  8243. // This method is useful when you want to inject custom logic or configuration
  8244. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8245. //
  8246. //
  8247. // // Example sending a request using the ModifyGlobalClusterRequest method.
  8248. // req, resp := client.ModifyGlobalClusterRequest(params)
  8249. //
  8250. // err := req.Send()
  8251. // if err == nil { // resp is now filled
  8252. // fmt.Println(resp)
  8253. // }
  8254. //
  8255. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyGlobalCluster
  8256. func (c *RDS) ModifyGlobalClusterRequest(input *ModifyGlobalClusterInput) (req *request.Request, output *ModifyGlobalClusterOutput) {
  8257. op := &request.Operation{
  8258. Name: opModifyGlobalCluster,
  8259. HTTPMethod: "POST",
  8260. HTTPPath: "/",
  8261. }
  8262. if input == nil {
  8263. input = &ModifyGlobalClusterInput{}
  8264. }
  8265. output = &ModifyGlobalClusterOutput{}
  8266. req = c.newRequest(op, input, output)
  8267. return
  8268. }
  8269. // ModifyGlobalCluster API operation for Amazon Relational Database Service.
  8270. //
  8271. // Modify a setting for an Amazon Aurora global cluster. You can change one
  8272. // or more database configuration parameters by specifying these parameters
  8273. // and the new values in the request. For more information on Amazon Aurora,
  8274. // see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  8275. // in the Amazon Aurora User Guide.
  8276. //
  8277. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8278. // with awserr.Error's Code and Message methods to get detailed information about
  8279. // the error.
  8280. //
  8281. // See the AWS API reference guide for Amazon Relational Database Service's
  8282. // API operation ModifyGlobalCluster for usage and error information.
  8283. //
  8284. // Returned Error Codes:
  8285. // * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault"
  8286. //
  8287. // * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault"
  8288. //
  8289. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyGlobalCluster
  8290. func (c *RDS) ModifyGlobalCluster(input *ModifyGlobalClusterInput) (*ModifyGlobalClusterOutput, error) {
  8291. req, out := c.ModifyGlobalClusterRequest(input)
  8292. return out, req.Send()
  8293. }
  8294. // ModifyGlobalClusterWithContext is the same as ModifyGlobalCluster with the addition of
  8295. // the ability to pass a context and additional request options.
  8296. //
  8297. // See ModifyGlobalCluster for details on how to use this API operation.
  8298. //
  8299. // The context must be non-nil and will be used for request cancellation. If
  8300. // the context is nil a panic will occur. In the future the SDK may create
  8301. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8302. // for more information on using Contexts.
  8303. func (c *RDS) ModifyGlobalClusterWithContext(ctx aws.Context, input *ModifyGlobalClusterInput, opts ...request.Option) (*ModifyGlobalClusterOutput, error) {
  8304. req, out := c.ModifyGlobalClusterRequest(input)
  8305. req.SetContext(ctx)
  8306. req.ApplyOptions(opts...)
  8307. return out, req.Send()
  8308. }
  8309. const opModifyOptionGroup = "ModifyOptionGroup"
  8310. // ModifyOptionGroupRequest generates a "aws/request.Request" representing the
  8311. // client's request for the ModifyOptionGroup operation. The "output" return
  8312. // value will be populated with the request's response once the request completes
  8313. // successfully.
  8314. //
  8315. // Use "Send" method on the returned Request to send the API call to the service.
  8316. // the "output" return value is not valid until after Send returns without error.
  8317. //
  8318. // See ModifyOptionGroup for more information on using the ModifyOptionGroup
  8319. // API call, and error handling.
  8320. //
  8321. // This method is useful when you want to inject custom logic or configuration
  8322. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8323. //
  8324. //
  8325. // // Example sending a request using the ModifyOptionGroupRequest method.
  8326. // req, resp := client.ModifyOptionGroupRequest(params)
  8327. //
  8328. // err := req.Send()
  8329. // if err == nil { // resp is now filled
  8330. // fmt.Println(resp)
  8331. // }
  8332. //
  8333. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyOptionGroup
  8334. func (c *RDS) ModifyOptionGroupRequest(input *ModifyOptionGroupInput) (req *request.Request, output *ModifyOptionGroupOutput) {
  8335. op := &request.Operation{
  8336. Name: opModifyOptionGroup,
  8337. HTTPMethod: "POST",
  8338. HTTPPath: "/",
  8339. }
  8340. if input == nil {
  8341. input = &ModifyOptionGroupInput{}
  8342. }
  8343. output = &ModifyOptionGroupOutput{}
  8344. req = c.newRequest(op, input, output)
  8345. return
  8346. }
  8347. // ModifyOptionGroup API operation for Amazon Relational Database Service.
  8348. //
  8349. // Modifies an existing option group.
  8350. //
  8351. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8352. // with awserr.Error's Code and Message methods to get detailed information about
  8353. // the error.
  8354. //
  8355. // See the AWS API reference guide for Amazon Relational Database Service's
  8356. // API operation ModifyOptionGroup for usage and error information.
  8357. //
  8358. // Returned Error Codes:
  8359. // * ErrCodeInvalidOptionGroupStateFault "InvalidOptionGroupStateFault"
  8360. // The option group isn't in the available state.
  8361. //
  8362. // * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault"
  8363. // The specified option group could not be found.
  8364. //
  8365. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyOptionGroup
  8366. func (c *RDS) ModifyOptionGroup(input *ModifyOptionGroupInput) (*ModifyOptionGroupOutput, error) {
  8367. req, out := c.ModifyOptionGroupRequest(input)
  8368. return out, req.Send()
  8369. }
  8370. // ModifyOptionGroupWithContext is the same as ModifyOptionGroup with the addition of
  8371. // the ability to pass a context and additional request options.
  8372. //
  8373. // See ModifyOptionGroup for details on how to use this API operation.
  8374. //
  8375. // The context must be non-nil and will be used for request cancellation. If
  8376. // the context is nil a panic will occur. In the future the SDK may create
  8377. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8378. // for more information on using Contexts.
  8379. func (c *RDS) ModifyOptionGroupWithContext(ctx aws.Context, input *ModifyOptionGroupInput, opts ...request.Option) (*ModifyOptionGroupOutput, error) {
  8380. req, out := c.ModifyOptionGroupRequest(input)
  8381. req.SetContext(ctx)
  8382. req.ApplyOptions(opts...)
  8383. return out, req.Send()
  8384. }
  8385. const opPromoteReadReplica = "PromoteReadReplica"
  8386. // PromoteReadReplicaRequest generates a "aws/request.Request" representing the
  8387. // client's request for the PromoteReadReplica operation. The "output" return
  8388. // value will be populated with the request's response once the request completes
  8389. // successfully.
  8390. //
  8391. // Use "Send" method on the returned Request to send the API call to the service.
  8392. // the "output" return value is not valid until after Send returns without error.
  8393. //
  8394. // See PromoteReadReplica for more information on using the PromoteReadReplica
  8395. // API call, and error handling.
  8396. //
  8397. // This method is useful when you want to inject custom logic or configuration
  8398. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8399. //
  8400. //
  8401. // // Example sending a request using the PromoteReadReplicaRequest method.
  8402. // req, resp := client.PromoteReadReplicaRequest(params)
  8403. //
  8404. // err := req.Send()
  8405. // if err == nil { // resp is now filled
  8406. // fmt.Println(resp)
  8407. // }
  8408. //
  8409. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplica
  8410. func (c *RDS) PromoteReadReplicaRequest(input *PromoteReadReplicaInput) (req *request.Request, output *PromoteReadReplicaOutput) {
  8411. op := &request.Operation{
  8412. Name: opPromoteReadReplica,
  8413. HTTPMethod: "POST",
  8414. HTTPPath: "/",
  8415. }
  8416. if input == nil {
  8417. input = &PromoteReadReplicaInput{}
  8418. }
  8419. output = &PromoteReadReplicaOutput{}
  8420. req = c.newRequest(op, input, output)
  8421. return
  8422. }
  8423. // PromoteReadReplica API operation for Amazon Relational Database Service.
  8424. //
  8425. // Promotes a Read Replica DB instance to a standalone DB instance.
  8426. //
  8427. // Backup duration is a function of the amount of changes to the database since
  8428. // the previous backup. If you plan to promote a Read Replica to a standalone
  8429. // instance, we recommend that you enable backups and complete at least one
  8430. // backup prior to promotion. In addition, a Read Replica cannot be promoted
  8431. // to a standalone instance when it is in the backing-up status. If you have
  8432. // enabled backups on your Read Replica, configure the automated backup window
  8433. // so that daily backups do not interfere with Read Replica promotion.
  8434. //
  8435. // This command doesn't apply to Aurora MySQL and Aurora PostgreSQL.
  8436. //
  8437. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8438. // with awserr.Error's Code and Message methods to get detailed information about
  8439. // the error.
  8440. //
  8441. // See the AWS API reference guide for Amazon Relational Database Service's
  8442. // API operation PromoteReadReplica for usage and error information.
  8443. //
  8444. // Returned Error Codes:
  8445. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  8446. // The DB instance isn't in a valid state.
  8447. //
  8448. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  8449. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  8450. //
  8451. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplica
  8452. func (c *RDS) PromoteReadReplica(input *PromoteReadReplicaInput) (*PromoteReadReplicaOutput, error) {
  8453. req, out := c.PromoteReadReplicaRequest(input)
  8454. return out, req.Send()
  8455. }
  8456. // PromoteReadReplicaWithContext is the same as PromoteReadReplica with the addition of
  8457. // the ability to pass a context and additional request options.
  8458. //
  8459. // See PromoteReadReplica for details on how to use this API operation.
  8460. //
  8461. // The context must be non-nil and will be used for request cancellation. If
  8462. // the context is nil a panic will occur. In the future the SDK may create
  8463. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8464. // for more information on using Contexts.
  8465. func (c *RDS) PromoteReadReplicaWithContext(ctx aws.Context, input *PromoteReadReplicaInput, opts ...request.Option) (*PromoteReadReplicaOutput, error) {
  8466. req, out := c.PromoteReadReplicaRequest(input)
  8467. req.SetContext(ctx)
  8468. req.ApplyOptions(opts...)
  8469. return out, req.Send()
  8470. }
  8471. const opPromoteReadReplicaDBCluster = "PromoteReadReplicaDBCluster"
  8472. // PromoteReadReplicaDBClusterRequest generates a "aws/request.Request" representing the
  8473. // client's request for the PromoteReadReplicaDBCluster operation. The "output" return
  8474. // value will be populated with the request's response once the request completes
  8475. // successfully.
  8476. //
  8477. // Use "Send" method on the returned Request to send the API call to the service.
  8478. // the "output" return value is not valid until after Send returns without error.
  8479. //
  8480. // See PromoteReadReplicaDBCluster for more information on using the PromoteReadReplicaDBCluster
  8481. // API call, and error handling.
  8482. //
  8483. // This method is useful when you want to inject custom logic or configuration
  8484. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8485. //
  8486. //
  8487. // // Example sending a request using the PromoteReadReplicaDBClusterRequest method.
  8488. // req, resp := client.PromoteReadReplicaDBClusterRequest(params)
  8489. //
  8490. // err := req.Send()
  8491. // if err == nil { // resp is now filled
  8492. // fmt.Println(resp)
  8493. // }
  8494. //
  8495. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplicaDBCluster
  8496. func (c *RDS) PromoteReadReplicaDBClusterRequest(input *PromoteReadReplicaDBClusterInput) (req *request.Request, output *PromoteReadReplicaDBClusterOutput) {
  8497. op := &request.Operation{
  8498. Name: opPromoteReadReplicaDBCluster,
  8499. HTTPMethod: "POST",
  8500. HTTPPath: "/",
  8501. }
  8502. if input == nil {
  8503. input = &PromoteReadReplicaDBClusterInput{}
  8504. }
  8505. output = &PromoteReadReplicaDBClusterOutput{}
  8506. req = c.newRequest(op, input, output)
  8507. return
  8508. }
  8509. // PromoteReadReplicaDBCluster API operation for Amazon Relational Database Service.
  8510. //
  8511. // Promotes a Read Replica DB cluster to a standalone DB cluster.
  8512. //
  8513. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8514. // with awserr.Error's Code and Message methods to get detailed information about
  8515. // the error.
  8516. //
  8517. // See the AWS API reference guide for Amazon Relational Database Service's
  8518. // API operation PromoteReadReplicaDBCluster for usage and error information.
  8519. //
  8520. // Returned Error Codes:
  8521. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  8522. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  8523. //
  8524. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  8525. // The requested operation can't be performed while the cluster is in this state.
  8526. //
  8527. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplicaDBCluster
  8528. func (c *RDS) PromoteReadReplicaDBCluster(input *PromoteReadReplicaDBClusterInput) (*PromoteReadReplicaDBClusterOutput, error) {
  8529. req, out := c.PromoteReadReplicaDBClusterRequest(input)
  8530. return out, req.Send()
  8531. }
  8532. // PromoteReadReplicaDBClusterWithContext is the same as PromoteReadReplicaDBCluster with the addition of
  8533. // the ability to pass a context and additional request options.
  8534. //
  8535. // See PromoteReadReplicaDBCluster for details on how to use this API operation.
  8536. //
  8537. // The context must be non-nil and will be used for request cancellation. If
  8538. // the context is nil a panic will occur. In the future the SDK may create
  8539. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8540. // for more information on using Contexts.
  8541. func (c *RDS) PromoteReadReplicaDBClusterWithContext(ctx aws.Context, input *PromoteReadReplicaDBClusterInput, opts ...request.Option) (*PromoteReadReplicaDBClusterOutput, error) {
  8542. req, out := c.PromoteReadReplicaDBClusterRequest(input)
  8543. req.SetContext(ctx)
  8544. req.ApplyOptions(opts...)
  8545. return out, req.Send()
  8546. }
  8547. const opPurchaseReservedDBInstancesOffering = "PurchaseReservedDBInstancesOffering"
  8548. // PurchaseReservedDBInstancesOfferingRequest generates a "aws/request.Request" representing the
  8549. // client's request for the PurchaseReservedDBInstancesOffering operation. The "output" return
  8550. // value will be populated with the request's response once the request completes
  8551. // successfully.
  8552. //
  8553. // Use "Send" method on the returned Request to send the API call to the service.
  8554. // the "output" return value is not valid until after Send returns without error.
  8555. //
  8556. // See PurchaseReservedDBInstancesOffering for more information on using the PurchaseReservedDBInstancesOffering
  8557. // API call, and error handling.
  8558. //
  8559. // This method is useful when you want to inject custom logic or configuration
  8560. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8561. //
  8562. //
  8563. // // Example sending a request using the PurchaseReservedDBInstancesOfferingRequest method.
  8564. // req, resp := client.PurchaseReservedDBInstancesOfferingRequest(params)
  8565. //
  8566. // err := req.Send()
  8567. // if err == nil { // resp is now filled
  8568. // fmt.Println(resp)
  8569. // }
  8570. //
  8571. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PurchaseReservedDBInstancesOffering
  8572. func (c *RDS) PurchaseReservedDBInstancesOfferingRequest(input *PurchaseReservedDBInstancesOfferingInput) (req *request.Request, output *PurchaseReservedDBInstancesOfferingOutput) {
  8573. op := &request.Operation{
  8574. Name: opPurchaseReservedDBInstancesOffering,
  8575. HTTPMethod: "POST",
  8576. HTTPPath: "/",
  8577. }
  8578. if input == nil {
  8579. input = &PurchaseReservedDBInstancesOfferingInput{}
  8580. }
  8581. output = &PurchaseReservedDBInstancesOfferingOutput{}
  8582. req = c.newRequest(op, input, output)
  8583. return
  8584. }
  8585. // PurchaseReservedDBInstancesOffering API operation for Amazon Relational Database Service.
  8586. //
  8587. // Purchases a reserved DB instance offering.
  8588. //
  8589. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8590. // with awserr.Error's Code and Message methods to get detailed information about
  8591. // the error.
  8592. //
  8593. // See the AWS API reference guide for Amazon Relational Database Service's
  8594. // API operation PurchaseReservedDBInstancesOffering for usage and error information.
  8595. //
  8596. // Returned Error Codes:
  8597. // * ErrCodeReservedDBInstancesOfferingNotFoundFault "ReservedDBInstancesOfferingNotFound"
  8598. // Specified offering does not exist.
  8599. //
  8600. // * ErrCodeReservedDBInstanceAlreadyExistsFault "ReservedDBInstanceAlreadyExists"
  8601. // User already has a reservation with the given identifier.
  8602. //
  8603. // * ErrCodeReservedDBInstanceQuotaExceededFault "ReservedDBInstanceQuotaExceeded"
  8604. // Request would exceed the user's DB Instance quota.
  8605. //
  8606. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PurchaseReservedDBInstancesOffering
  8607. func (c *RDS) PurchaseReservedDBInstancesOffering(input *PurchaseReservedDBInstancesOfferingInput) (*PurchaseReservedDBInstancesOfferingOutput, error) {
  8608. req, out := c.PurchaseReservedDBInstancesOfferingRequest(input)
  8609. return out, req.Send()
  8610. }
  8611. // PurchaseReservedDBInstancesOfferingWithContext is the same as PurchaseReservedDBInstancesOffering with the addition of
  8612. // the ability to pass a context and additional request options.
  8613. //
  8614. // See PurchaseReservedDBInstancesOffering for details on how to use this API operation.
  8615. //
  8616. // The context must be non-nil and will be used for request cancellation. If
  8617. // the context is nil a panic will occur. In the future the SDK may create
  8618. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8619. // for more information on using Contexts.
  8620. func (c *RDS) PurchaseReservedDBInstancesOfferingWithContext(ctx aws.Context, input *PurchaseReservedDBInstancesOfferingInput, opts ...request.Option) (*PurchaseReservedDBInstancesOfferingOutput, error) {
  8621. req, out := c.PurchaseReservedDBInstancesOfferingRequest(input)
  8622. req.SetContext(ctx)
  8623. req.ApplyOptions(opts...)
  8624. return out, req.Send()
  8625. }
  8626. const opRebootDBInstance = "RebootDBInstance"
  8627. // RebootDBInstanceRequest generates a "aws/request.Request" representing the
  8628. // client's request for the RebootDBInstance operation. The "output" return
  8629. // value will be populated with the request's response once the request completes
  8630. // successfully.
  8631. //
  8632. // Use "Send" method on the returned Request to send the API call to the service.
  8633. // the "output" return value is not valid until after Send returns without error.
  8634. //
  8635. // See RebootDBInstance for more information on using the RebootDBInstance
  8636. // API call, and error handling.
  8637. //
  8638. // This method is useful when you want to inject custom logic or configuration
  8639. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8640. //
  8641. //
  8642. // // Example sending a request using the RebootDBInstanceRequest method.
  8643. // req, resp := client.RebootDBInstanceRequest(params)
  8644. //
  8645. // err := req.Send()
  8646. // if err == nil { // resp is now filled
  8647. // fmt.Println(resp)
  8648. // }
  8649. //
  8650. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RebootDBInstance
  8651. func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *request.Request, output *RebootDBInstanceOutput) {
  8652. op := &request.Operation{
  8653. Name: opRebootDBInstance,
  8654. HTTPMethod: "POST",
  8655. HTTPPath: "/",
  8656. }
  8657. if input == nil {
  8658. input = &RebootDBInstanceInput{}
  8659. }
  8660. output = &RebootDBInstanceOutput{}
  8661. req = c.newRequest(op, input, output)
  8662. return
  8663. }
  8664. // RebootDBInstance API operation for Amazon Relational Database Service.
  8665. //
  8666. // You might need to reboot your DB instance, usually for maintenance reasons.
  8667. // For example, if you make certain modifications, or if you change the DB parameter
  8668. // group associated with the DB instance, you must reboot the instance for the
  8669. // changes to take effect.
  8670. //
  8671. // Rebooting a DB instance restarts the database engine service. Rebooting a
  8672. // DB instance results in a momentary outage, during which the DB instance status
  8673. // is set to rebooting.
  8674. //
  8675. // For more information about rebooting, see Rebooting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_RebootInstance.html)
  8676. // in the Amazon RDS User Guide.
  8677. //
  8678. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8679. // with awserr.Error's Code and Message methods to get detailed information about
  8680. // the error.
  8681. //
  8682. // See the AWS API reference guide for Amazon Relational Database Service's
  8683. // API operation RebootDBInstance for usage and error information.
  8684. //
  8685. // Returned Error Codes:
  8686. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  8687. // The DB instance isn't in a valid state.
  8688. //
  8689. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  8690. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  8691. //
  8692. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RebootDBInstance
  8693. func (c *RDS) RebootDBInstance(input *RebootDBInstanceInput) (*RebootDBInstanceOutput, error) {
  8694. req, out := c.RebootDBInstanceRequest(input)
  8695. return out, req.Send()
  8696. }
  8697. // RebootDBInstanceWithContext is the same as RebootDBInstance with the addition of
  8698. // the ability to pass a context and additional request options.
  8699. //
  8700. // See RebootDBInstance for details on how to use this API operation.
  8701. //
  8702. // The context must be non-nil and will be used for request cancellation. If
  8703. // the context is nil a panic will occur. In the future the SDK may create
  8704. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8705. // for more information on using Contexts.
  8706. func (c *RDS) RebootDBInstanceWithContext(ctx aws.Context, input *RebootDBInstanceInput, opts ...request.Option) (*RebootDBInstanceOutput, error) {
  8707. req, out := c.RebootDBInstanceRequest(input)
  8708. req.SetContext(ctx)
  8709. req.ApplyOptions(opts...)
  8710. return out, req.Send()
  8711. }
  8712. const opRemoveFromGlobalCluster = "RemoveFromGlobalCluster"
  8713. // RemoveFromGlobalClusterRequest generates a "aws/request.Request" representing the
  8714. // client's request for the RemoveFromGlobalCluster operation. The "output" return
  8715. // value will be populated with the request's response once the request completes
  8716. // successfully.
  8717. //
  8718. // Use "Send" method on the returned Request to send the API call to the service.
  8719. // the "output" return value is not valid until after Send returns without error.
  8720. //
  8721. // See RemoveFromGlobalCluster for more information on using the RemoveFromGlobalCluster
  8722. // API call, and error handling.
  8723. //
  8724. // This method is useful when you want to inject custom logic or configuration
  8725. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8726. //
  8727. //
  8728. // // Example sending a request using the RemoveFromGlobalClusterRequest method.
  8729. // req, resp := client.RemoveFromGlobalClusterRequest(params)
  8730. //
  8731. // err := req.Send()
  8732. // if err == nil { // resp is now filled
  8733. // fmt.Println(resp)
  8734. // }
  8735. //
  8736. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveFromGlobalCluster
  8737. func (c *RDS) RemoveFromGlobalClusterRequest(input *RemoveFromGlobalClusterInput) (req *request.Request, output *RemoveFromGlobalClusterOutput) {
  8738. op := &request.Operation{
  8739. Name: opRemoveFromGlobalCluster,
  8740. HTTPMethod: "POST",
  8741. HTTPPath: "/",
  8742. }
  8743. if input == nil {
  8744. input = &RemoveFromGlobalClusterInput{}
  8745. }
  8746. output = &RemoveFromGlobalClusterOutput{}
  8747. req = c.newRequest(op, input, output)
  8748. return
  8749. }
  8750. // RemoveFromGlobalCluster API operation for Amazon Relational Database Service.
  8751. //
  8752. // Detaches an Aurora secondary cluster from an Aurora global database cluster.
  8753. // The cluster becomes a standalone cluster with read-write capability instead
  8754. // of being read-only and receiving data from a primary cluster in a different
  8755. // region.
  8756. //
  8757. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8758. // with awserr.Error's Code and Message methods to get detailed information about
  8759. // the error.
  8760. //
  8761. // See the AWS API reference guide for Amazon Relational Database Service's
  8762. // API operation RemoveFromGlobalCluster for usage and error information.
  8763. //
  8764. // Returned Error Codes:
  8765. // * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault"
  8766. //
  8767. // * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault"
  8768. //
  8769. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  8770. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  8771. //
  8772. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveFromGlobalCluster
  8773. func (c *RDS) RemoveFromGlobalCluster(input *RemoveFromGlobalClusterInput) (*RemoveFromGlobalClusterOutput, error) {
  8774. req, out := c.RemoveFromGlobalClusterRequest(input)
  8775. return out, req.Send()
  8776. }
  8777. // RemoveFromGlobalClusterWithContext is the same as RemoveFromGlobalCluster with the addition of
  8778. // the ability to pass a context and additional request options.
  8779. //
  8780. // See RemoveFromGlobalCluster for details on how to use this API operation.
  8781. //
  8782. // The context must be non-nil and will be used for request cancellation. If
  8783. // the context is nil a panic will occur. In the future the SDK may create
  8784. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8785. // for more information on using Contexts.
  8786. func (c *RDS) RemoveFromGlobalClusterWithContext(ctx aws.Context, input *RemoveFromGlobalClusterInput, opts ...request.Option) (*RemoveFromGlobalClusterOutput, error) {
  8787. req, out := c.RemoveFromGlobalClusterRequest(input)
  8788. req.SetContext(ctx)
  8789. req.ApplyOptions(opts...)
  8790. return out, req.Send()
  8791. }
  8792. const opRemoveRoleFromDBCluster = "RemoveRoleFromDBCluster"
  8793. // RemoveRoleFromDBClusterRequest generates a "aws/request.Request" representing the
  8794. // client's request for the RemoveRoleFromDBCluster operation. The "output" return
  8795. // value will be populated with the request's response once the request completes
  8796. // successfully.
  8797. //
  8798. // Use "Send" method on the returned Request to send the API call to the service.
  8799. // the "output" return value is not valid until after Send returns without error.
  8800. //
  8801. // See RemoveRoleFromDBCluster for more information on using the RemoveRoleFromDBCluster
  8802. // API call, and error handling.
  8803. //
  8804. // This method is useful when you want to inject custom logic or configuration
  8805. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8806. //
  8807. //
  8808. // // Example sending a request using the RemoveRoleFromDBClusterRequest method.
  8809. // req, resp := client.RemoveRoleFromDBClusterRequest(params)
  8810. //
  8811. // err := req.Send()
  8812. // if err == nil { // resp is now filled
  8813. // fmt.Println(resp)
  8814. // }
  8815. //
  8816. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveRoleFromDBCluster
  8817. func (c *RDS) RemoveRoleFromDBClusterRequest(input *RemoveRoleFromDBClusterInput) (req *request.Request, output *RemoveRoleFromDBClusterOutput) {
  8818. op := &request.Operation{
  8819. Name: opRemoveRoleFromDBCluster,
  8820. HTTPMethod: "POST",
  8821. HTTPPath: "/",
  8822. }
  8823. if input == nil {
  8824. input = &RemoveRoleFromDBClusterInput{}
  8825. }
  8826. output = &RemoveRoleFromDBClusterOutput{}
  8827. req = c.newRequest(op, input, output)
  8828. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  8829. return
  8830. }
  8831. // RemoveRoleFromDBCluster API operation for Amazon Relational Database Service.
  8832. //
  8833. // Disassociates an Identity and Access Management (IAM) role from an Aurora
  8834. // DB cluster. For more information, see Authorizing Amazon Aurora MySQL to
  8835. // Access Other AWS Services on Your Behalf (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Integrating.Authorizing.html)
  8836. // in the Amazon Aurora User Guide.
  8837. //
  8838. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8839. // with awserr.Error's Code and Message methods to get detailed information about
  8840. // the error.
  8841. //
  8842. // See the AWS API reference guide for Amazon Relational Database Service's
  8843. // API operation RemoveRoleFromDBCluster for usage and error information.
  8844. //
  8845. // Returned Error Codes:
  8846. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  8847. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  8848. //
  8849. // * ErrCodeDBClusterRoleNotFoundFault "DBClusterRoleNotFound"
  8850. // The specified IAM role Amazon Resource Name (ARN) isn't associated with the
  8851. // specified DB cluster.
  8852. //
  8853. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  8854. // The requested operation can't be performed while the cluster is in this state.
  8855. //
  8856. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveRoleFromDBCluster
  8857. func (c *RDS) RemoveRoleFromDBCluster(input *RemoveRoleFromDBClusterInput) (*RemoveRoleFromDBClusterOutput, error) {
  8858. req, out := c.RemoveRoleFromDBClusterRequest(input)
  8859. return out, req.Send()
  8860. }
  8861. // RemoveRoleFromDBClusterWithContext is the same as RemoveRoleFromDBCluster with the addition of
  8862. // the ability to pass a context and additional request options.
  8863. //
  8864. // See RemoveRoleFromDBCluster for details on how to use this API operation.
  8865. //
  8866. // The context must be non-nil and will be used for request cancellation. If
  8867. // the context is nil a panic will occur. In the future the SDK may create
  8868. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8869. // for more information on using Contexts.
  8870. func (c *RDS) RemoveRoleFromDBClusterWithContext(ctx aws.Context, input *RemoveRoleFromDBClusterInput, opts ...request.Option) (*RemoveRoleFromDBClusterOutput, error) {
  8871. req, out := c.RemoveRoleFromDBClusterRequest(input)
  8872. req.SetContext(ctx)
  8873. req.ApplyOptions(opts...)
  8874. return out, req.Send()
  8875. }
  8876. const opRemoveSourceIdentifierFromSubscription = "RemoveSourceIdentifierFromSubscription"
  8877. // RemoveSourceIdentifierFromSubscriptionRequest generates a "aws/request.Request" representing the
  8878. // client's request for the RemoveSourceIdentifierFromSubscription operation. The "output" return
  8879. // value will be populated with the request's response once the request completes
  8880. // successfully.
  8881. //
  8882. // Use "Send" method on the returned Request to send the API call to the service.
  8883. // the "output" return value is not valid until after Send returns without error.
  8884. //
  8885. // See RemoveSourceIdentifierFromSubscription for more information on using the RemoveSourceIdentifierFromSubscription
  8886. // API call, and error handling.
  8887. //
  8888. // This method is useful when you want to inject custom logic or configuration
  8889. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8890. //
  8891. //
  8892. // // Example sending a request using the RemoveSourceIdentifierFromSubscriptionRequest method.
  8893. // req, resp := client.RemoveSourceIdentifierFromSubscriptionRequest(params)
  8894. //
  8895. // err := req.Send()
  8896. // if err == nil { // resp is now filled
  8897. // fmt.Println(resp)
  8898. // }
  8899. //
  8900. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveSourceIdentifierFromSubscription
  8901. func (c *RDS) RemoveSourceIdentifierFromSubscriptionRequest(input *RemoveSourceIdentifierFromSubscriptionInput) (req *request.Request, output *RemoveSourceIdentifierFromSubscriptionOutput) {
  8902. op := &request.Operation{
  8903. Name: opRemoveSourceIdentifierFromSubscription,
  8904. HTTPMethod: "POST",
  8905. HTTPPath: "/",
  8906. }
  8907. if input == nil {
  8908. input = &RemoveSourceIdentifierFromSubscriptionInput{}
  8909. }
  8910. output = &RemoveSourceIdentifierFromSubscriptionOutput{}
  8911. req = c.newRequest(op, input, output)
  8912. return
  8913. }
  8914. // RemoveSourceIdentifierFromSubscription API operation for Amazon Relational Database Service.
  8915. //
  8916. // Removes a source identifier from an existing RDS event notification subscription.
  8917. //
  8918. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  8919. // with awserr.Error's Code and Message methods to get detailed information about
  8920. // the error.
  8921. //
  8922. // See the AWS API reference guide for Amazon Relational Database Service's
  8923. // API operation RemoveSourceIdentifierFromSubscription for usage and error information.
  8924. //
  8925. // Returned Error Codes:
  8926. // * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound"
  8927. // The subscription name does not exist.
  8928. //
  8929. // * ErrCodeSourceNotFoundFault "SourceNotFound"
  8930. // The requested source could not be found.
  8931. //
  8932. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveSourceIdentifierFromSubscription
  8933. func (c *RDS) RemoveSourceIdentifierFromSubscription(input *RemoveSourceIdentifierFromSubscriptionInput) (*RemoveSourceIdentifierFromSubscriptionOutput, error) {
  8934. req, out := c.RemoveSourceIdentifierFromSubscriptionRequest(input)
  8935. return out, req.Send()
  8936. }
  8937. // RemoveSourceIdentifierFromSubscriptionWithContext is the same as RemoveSourceIdentifierFromSubscription with the addition of
  8938. // the ability to pass a context and additional request options.
  8939. //
  8940. // See RemoveSourceIdentifierFromSubscription for details on how to use this API operation.
  8941. //
  8942. // The context must be non-nil and will be used for request cancellation. If
  8943. // the context is nil a panic will occur. In the future the SDK may create
  8944. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  8945. // for more information on using Contexts.
  8946. func (c *RDS) RemoveSourceIdentifierFromSubscriptionWithContext(ctx aws.Context, input *RemoveSourceIdentifierFromSubscriptionInput, opts ...request.Option) (*RemoveSourceIdentifierFromSubscriptionOutput, error) {
  8947. req, out := c.RemoveSourceIdentifierFromSubscriptionRequest(input)
  8948. req.SetContext(ctx)
  8949. req.ApplyOptions(opts...)
  8950. return out, req.Send()
  8951. }
  8952. const opRemoveTagsFromResource = "RemoveTagsFromResource"
  8953. // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
  8954. // client's request for the RemoveTagsFromResource operation. The "output" return
  8955. // value will be populated with the request's response once the request completes
  8956. // successfully.
  8957. //
  8958. // Use "Send" method on the returned Request to send the API call to the service.
  8959. // the "output" return value is not valid until after Send returns without error.
  8960. //
  8961. // See RemoveTagsFromResource for more information on using the RemoveTagsFromResource
  8962. // API call, and error handling.
  8963. //
  8964. // This method is useful when you want to inject custom logic or configuration
  8965. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  8966. //
  8967. //
  8968. // // Example sending a request using the RemoveTagsFromResourceRequest method.
  8969. // req, resp := client.RemoveTagsFromResourceRequest(params)
  8970. //
  8971. // err := req.Send()
  8972. // if err == nil { // resp is now filled
  8973. // fmt.Println(resp)
  8974. // }
  8975. //
  8976. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveTagsFromResource
  8977. func (c *RDS) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
  8978. op := &request.Operation{
  8979. Name: opRemoveTagsFromResource,
  8980. HTTPMethod: "POST",
  8981. HTTPPath: "/",
  8982. }
  8983. if input == nil {
  8984. input = &RemoveTagsFromResourceInput{}
  8985. }
  8986. output = &RemoveTagsFromResourceOutput{}
  8987. req = c.newRequest(op, input, output)
  8988. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  8989. return
  8990. }
  8991. // RemoveTagsFromResource API operation for Amazon Relational Database Service.
  8992. //
  8993. // Removes metadata tags from an Amazon RDS resource.
  8994. //
  8995. // For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS
  8996. // Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html)
  8997. // in the Amazon RDS User Guide.
  8998. //
  8999. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9000. // with awserr.Error's Code and Message methods to get detailed information about
  9001. // the error.
  9002. //
  9003. // See the AWS API reference guide for Amazon Relational Database Service's
  9004. // API operation RemoveTagsFromResource for usage and error information.
  9005. //
  9006. // Returned Error Codes:
  9007. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  9008. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  9009. //
  9010. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  9011. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  9012. //
  9013. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  9014. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  9015. //
  9016. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveTagsFromResource
  9017. func (c *RDS) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
  9018. req, out := c.RemoveTagsFromResourceRequest(input)
  9019. return out, req.Send()
  9020. }
  9021. // RemoveTagsFromResourceWithContext is the same as RemoveTagsFromResource with the addition of
  9022. // the ability to pass a context and additional request options.
  9023. //
  9024. // See RemoveTagsFromResource for details on how to use this API operation.
  9025. //
  9026. // The context must be non-nil and will be used for request cancellation. If
  9027. // the context is nil a panic will occur. In the future the SDK may create
  9028. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9029. // for more information on using Contexts.
  9030. func (c *RDS) RemoveTagsFromResourceWithContext(ctx aws.Context, input *RemoveTagsFromResourceInput, opts ...request.Option) (*RemoveTagsFromResourceOutput, error) {
  9031. req, out := c.RemoveTagsFromResourceRequest(input)
  9032. req.SetContext(ctx)
  9033. req.ApplyOptions(opts...)
  9034. return out, req.Send()
  9035. }
  9036. const opResetDBClusterParameterGroup = "ResetDBClusterParameterGroup"
  9037. // ResetDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  9038. // client's request for the ResetDBClusterParameterGroup operation. The "output" return
  9039. // value will be populated with the request's response once the request completes
  9040. // successfully.
  9041. //
  9042. // Use "Send" method on the returned Request to send the API call to the service.
  9043. // the "output" return value is not valid until after Send returns without error.
  9044. //
  9045. // See ResetDBClusterParameterGroup for more information on using the ResetDBClusterParameterGroup
  9046. // API call, and error handling.
  9047. //
  9048. // This method is useful when you want to inject custom logic or configuration
  9049. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9050. //
  9051. //
  9052. // // Example sending a request using the ResetDBClusterParameterGroupRequest method.
  9053. // req, resp := client.ResetDBClusterParameterGroupRequest(params)
  9054. //
  9055. // err := req.Send()
  9056. // if err == nil { // resp is now filled
  9057. // fmt.Println(resp)
  9058. // }
  9059. //
  9060. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResetDBClusterParameterGroup
  9061. func (c *RDS) ResetDBClusterParameterGroupRequest(input *ResetDBClusterParameterGroupInput) (req *request.Request, output *DBClusterParameterGroupNameMessage) {
  9062. op := &request.Operation{
  9063. Name: opResetDBClusterParameterGroup,
  9064. HTTPMethod: "POST",
  9065. HTTPPath: "/",
  9066. }
  9067. if input == nil {
  9068. input = &ResetDBClusterParameterGroupInput{}
  9069. }
  9070. output = &DBClusterParameterGroupNameMessage{}
  9071. req = c.newRequest(op, input, output)
  9072. return
  9073. }
  9074. // ResetDBClusterParameterGroup API operation for Amazon Relational Database Service.
  9075. //
  9076. // Modifies the parameters of a DB cluster parameter group to the default value.
  9077. // To reset specific parameters submit a list of the following: ParameterName
  9078. // and ApplyMethod. To reset the entire DB cluster parameter group, specify
  9079. // the DBClusterParameterGroupName and ResetAllParameters parameters.
  9080. //
  9081. // When resetting the entire group, dynamic parameters are updated immediately
  9082. // and static parameters are set to pending-reboot to take effect on the next
  9083. // DB instance restart or RebootDBInstance request. You must call RebootDBInstance
  9084. // for every DB instance in your DB cluster that you want the updated static
  9085. // parameter to apply to.
  9086. //
  9087. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  9088. // in the Amazon Aurora User Guide.
  9089. //
  9090. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9091. // with awserr.Error's Code and Message methods to get detailed information about
  9092. // the error.
  9093. //
  9094. // See the AWS API reference guide for Amazon Relational Database Service's
  9095. // API operation ResetDBClusterParameterGroup for usage and error information.
  9096. //
  9097. // Returned Error Codes:
  9098. // * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState"
  9099. // The DB parameter group is in use or is in an invalid state. If you are attempting
  9100. // to delete the parameter group, you can't delete it when the parameter group
  9101. // is in this state.
  9102. //
  9103. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  9104. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  9105. //
  9106. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResetDBClusterParameterGroup
  9107. func (c *RDS) ResetDBClusterParameterGroup(input *ResetDBClusterParameterGroupInput) (*DBClusterParameterGroupNameMessage, error) {
  9108. req, out := c.ResetDBClusterParameterGroupRequest(input)
  9109. return out, req.Send()
  9110. }
  9111. // ResetDBClusterParameterGroupWithContext is the same as ResetDBClusterParameterGroup with the addition of
  9112. // the ability to pass a context and additional request options.
  9113. //
  9114. // See ResetDBClusterParameterGroup for details on how to use this API operation.
  9115. //
  9116. // The context must be non-nil and will be used for request cancellation. If
  9117. // the context is nil a panic will occur. In the future the SDK may create
  9118. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9119. // for more information on using Contexts.
  9120. func (c *RDS) ResetDBClusterParameterGroupWithContext(ctx aws.Context, input *ResetDBClusterParameterGroupInput, opts ...request.Option) (*DBClusterParameterGroupNameMessage, error) {
  9121. req, out := c.ResetDBClusterParameterGroupRequest(input)
  9122. req.SetContext(ctx)
  9123. req.ApplyOptions(opts...)
  9124. return out, req.Send()
  9125. }
  9126. const opResetDBParameterGroup = "ResetDBParameterGroup"
  9127. // ResetDBParameterGroupRequest generates a "aws/request.Request" representing the
  9128. // client's request for the ResetDBParameterGroup operation. The "output" return
  9129. // value will be populated with the request's response once the request completes
  9130. // successfully.
  9131. //
  9132. // Use "Send" method on the returned Request to send the API call to the service.
  9133. // the "output" return value is not valid until after Send returns without error.
  9134. //
  9135. // See ResetDBParameterGroup for more information on using the ResetDBParameterGroup
  9136. // API call, and error handling.
  9137. //
  9138. // This method is useful when you want to inject custom logic or configuration
  9139. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9140. //
  9141. //
  9142. // // Example sending a request using the ResetDBParameterGroupRequest method.
  9143. // req, resp := client.ResetDBParameterGroupRequest(params)
  9144. //
  9145. // err := req.Send()
  9146. // if err == nil { // resp is now filled
  9147. // fmt.Println(resp)
  9148. // }
  9149. //
  9150. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResetDBParameterGroup
  9151. func (c *RDS) ResetDBParameterGroupRequest(input *ResetDBParameterGroupInput) (req *request.Request, output *DBParameterGroupNameMessage) {
  9152. op := &request.Operation{
  9153. Name: opResetDBParameterGroup,
  9154. HTTPMethod: "POST",
  9155. HTTPPath: "/",
  9156. }
  9157. if input == nil {
  9158. input = &ResetDBParameterGroupInput{}
  9159. }
  9160. output = &DBParameterGroupNameMessage{}
  9161. req = c.newRequest(op, input, output)
  9162. return
  9163. }
  9164. // ResetDBParameterGroup API operation for Amazon Relational Database Service.
  9165. //
  9166. // Modifies the parameters of a DB parameter group to the engine/system default
  9167. // value. To reset specific parameters, provide a list of the following: ParameterName
  9168. // and ApplyMethod. To reset the entire DB parameter group, specify the DBParameterGroup
  9169. // name and ResetAllParameters parameters. When resetting the entire group,
  9170. // dynamic parameters are updated immediately and static parameters are set
  9171. // to pending-reboot to take effect on the next DB instance restart or RebootDBInstance
  9172. // request.
  9173. //
  9174. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9175. // with awserr.Error's Code and Message methods to get detailed information about
  9176. // the error.
  9177. //
  9178. // See the AWS API reference guide for Amazon Relational Database Service's
  9179. // API operation ResetDBParameterGroup for usage and error information.
  9180. //
  9181. // Returned Error Codes:
  9182. // * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState"
  9183. // The DB parameter group is in use or is in an invalid state. If you are attempting
  9184. // to delete the parameter group, you can't delete it when the parameter group
  9185. // is in this state.
  9186. //
  9187. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  9188. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  9189. //
  9190. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ResetDBParameterGroup
  9191. func (c *RDS) ResetDBParameterGroup(input *ResetDBParameterGroupInput) (*DBParameterGroupNameMessage, error) {
  9192. req, out := c.ResetDBParameterGroupRequest(input)
  9193. return out, req.Send()
  9194. }
  9195. // ResetDBParameterGroupWithContext is the same as ResetDBParameterGroup with the addition of
  9196. // the ability to pass a context and additional request options.
  9197. //
  9198. // See ResetDBParameterGroup for details on how to use this API operation.
  9199. //
  9200. // The context must be non-nil and will be used for request cancellation. If
  9201. // the context is nil a panic will occur. In the future the SDK may create
  9202. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9203. // for more information on using Contexts.
  9204. func (c *RDS) ResetDBParameterGroupWithContext(ctx aws.Context, input *ResetDBParameterGroupInput, opts ...request.Option) (*DBParameterGroupNameMessage, error) {
  9205. req, out := c.ResetDBParameterGroupRequest(input)
  9206. req.SetContext(ctx)
  9207. req.ApplyOptions(opts...)
  9208. return out, req.Send()
  9209. }
  9210. const opRestoreDBClusterFromS3 = "RestoreDBClusterFromS3"
  9211. // RestoreDBClusterFromS3Request generates a "aws/request.Request" representing the
  9212. // client's request for the RestoreDBClusterFromS3 operation. The "output" return
  9213. // value will be populated with the request's response once the request completes
  9214. // successfully.
  9215. //
  9216. // Use "Send" method on the returned Request to send the API call to the service.
  9217. // the "output" return value is not valid until after Send returns without error.
  9218. //
  9219. // See RestoreDBClusterFromS3 for more information on using the RestoreDBClusterFromS3
  9220. // API call, and error handling.
  9221. //
  9222. // This method is useful when you want to inject custom logic or configuration
  9223. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9224. //
  9225. //
  9226. // // Example sending a request using the RestoreDBClusterFromS3Request method.
  9227. // req, resp := client.RestoreDBClusterFromS3Request(params)
  9228. //
  9229. // err := req.Send()
  9230. // if err == nil { // resp is now filled
  9231. // fmt.Println(resp)
  9232. // }
  9233. //
  9234. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromS3
  9235. func (c *RDS) RestoreDBClusterFromS3Request(input *RestoreDBClusterFromS3Input) (req *request.Request, output *RestoreDBClusterFromS3Output) {
  9236. op := &request.Operation{
  9237. Name: opRestoreDBClusterFromS3,
  9238. HTTPMethod: "POST",
  9239. HTTPPath: "/",
  9240. }
  9241. if input == nil {
  9242. input = &RestoreDBClusterFromS3Input{}
  9243. }
  9244. output = &RestoreDBClusterFromS3Output{}
  9245. req = c.newRequest(op, input, output)
  9246. return
  9247. }
  9248. // RestoreDBClusterFromS3 API operation for Amazon Relational Database Service.
  9249. //
  9250. // Creates an Amazon Aurora DB cluster from data stored in an Amazon S3 bucket.
  9251. // Amazon RDS must be authorized to access the Amazon S3 bucket and the data
  9252. // must be created using the Percona XtraBackup utility as described in Migrating
  9253. // Data to an Amazon Aurora MySQL DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Migrating.html)
  9254. // in the Amazon Aurora User Guide.
  9255. //
  9256. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9257. // with awserr.Error's Code and Message methods to get detailed information about
  9258. // the error.
  9259. //
  9260. // See the AWS API reference guide for Amazon Relational Database Service's
  9261. // API operation RestoreDBClusterFromS3 for usage and error information.
  9262. //
  9263. // Returned Error Codes:
  9264. // * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault"
  9265. // The user already has a DB cluster with the given identifier.
  9266. //
  9267. // * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault"
  9268. // The user attempted to create a new DB cluster and the user has already reached
  9269. // the maximum allowed DB cluster quota.
  9270. //
  9271. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  9272. // The request would result in the user exceeding the allowed amount of storage
  9273. // available across all DB instances.
  9274. //
  9275. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  9276. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  9277. //
  9278. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  9279. // The DB subnet group doesn't cover all Availability Zones after it's created
  9280. // because of users' change.
  9281. //
  9282. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  9283. // The requested operation can't be performed while the cluster is in this state.
  9284. //
  9285. // * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault"
  9286. // The DB subnet group cannot be deleted because it's in use.
  9287. //
  9288. // * ErrCodeInvalidSubnet "InvalidSubnet"
  9289. // The requested subnet is invalid, or multiple subnets were requested that
  9290. // are not all in a common VPC.
  9291. //
  9292. // * ErrCodeInvalidS3BucketFault "InvalidS3BucketFault"
  9293. // The specified Amazon S3 bucket name can't be found or Amazon RDS isn't authorized
  9294. // to access the specified Amazon S3 bucket. Verify the SourceS3BucketName and
  9295. // S3IngestionRoleArn values and try again.
  9296. //
  9297. // * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound"
  9298. // DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter
  9299. // group.
  9300. //
  9301. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  9302. // An error occurred accessing an AWS KMS key.
  9303. //
  9304. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  9305. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  9306. //
  9307. // * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity"
  9308. // There is insufficient storage available for the current action. You might
  9309. // be able to resolve this error by updating your subnet group to use different
  9310. // Availability Zones that have more storage available.
  9311. //
  9312. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromS3
  9313. func (c *RDS) RestoreDBClusterFromS3(input *RestoreDBClusterFromS3Input) (*RestoreDBClusterFromS3Output, error) {
  9314. req, out := c.RestoreDBClusterFromS3Request(input)
  9315. return out, req.Send()
  9316. }
  9317. // RestoreDBClusterFromS3WithContext is the same as RestoreDBClusterFromS3 with the addition of
  9318. // the ability to pass a context and additional request options.
  9319. //
  9320. // See RestoreDBClusterFromS3 for details on how to use this API operation.
  9321. //
  9322. // The context must be non-nil and will be used for request cancellation. If
  9323. // the context is nil a panic will occur. In the future the SDK may create
  9324. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9325. // for more information on using Contexts.
  9326. func (c *RDS) RestoreDBClusterFromS3WithContext(ctx aws.Context, input *RestoreDBClusterFromS3Input, opts ...request.Option) (*RestoreDBClusterFromS3Output, error) {
  9327. req, out := c.RestoreDBClusterFromS3Request(input)
  9328. req.SetContext(ctx)
  9329. req.ApplyOptions(opts...)
  9330. return out, req.Send()
  9331. }
  9332. const opRestoreDBClusterFromSnapshot = "RestoreDBClusterFromSnapshot"
  9333. // RestoreDBClusterFromSnapshotRequest generates a "aws/request.Request" representing the
  9334. // client's request for the RestoreDBClusterFromSnapshot operation. The "output" return
  9335. // value will be populated with the request's response once the request completes
  9336. // successfully.
  9337. //
  9338. // Use "Send" method on the returned Request to send the API call to the service.
  9339. // the "output" return value is not valid until after Send returns without error.
  9340. //
  9341. // See RestoreDBClusterFromSnapshot for more information on using the RestoreDBClusterFromSnapshot
  9342. // API call, and error handling.
  9343. //
  9344. // This method is useful when you want to inject custom logic or configuration
  9345. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9346. //
  9347. //
  9348. // // Example sending a request using the RestoreDBClusterFromSnapshotRequest method.
  9349. // req, resp := client.RestoreDBClusterFromSnapshotRequest(params)
  9350. //
  9351. // err := req.Send()
  9352. // if err == nil { // resp is now filled
  9353. // fmt.Println(resp)
  9354. // }
  9355. //
  9356. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromSnapshot
  9357. func (c *RDS) RestoreDBClusterFromSnapshotRequest(input *RestoreDBClusterFromSnapshotInput) (req *request.Request, output *RestoreDBClusterFromSnapshotOutput) {
  9358. op := &request.Operation{
  9359. Name: opRestoreDBClusterFromSnapshot,
  9360. HTTPMethod: "POST",
  9361. HTTPPath: "/",
  9362. }
  9363. if input == nil {
  9364. input = &RestoreDBClusterFromSnapshotInput{}
  9365. }
  9366. output = &RestoreDBClusterFromSnapshotOutput{}
  9367. req = c.newRequest(op, input, output)
  9368. return
  9369. }
  9370. // RestoreDBClusterFromSnapshot API operation for Amazon Relational Database Service.
  9371. //
  9372. // Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
  9373. //
  9374. // If a DB snapshot is specified, the target DB cluster is created from the
  9375. // source DB snapshot with a default configuration and default security group.
  9376. //
  9377. // If a DB cluster snapshot is specified, the target DB cluster is created from
  9378. // the source DB cluster restore point with the same configuration as the original
  9379. // source DB cluster, except that the new DB cluster is created with the default
  9380. // security group.
  9381. //
  9382. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  9383. // in the Amazon Aurora User Guide.
  9384. //
  9385. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9386. // with awserr.Error's Code and Message methods to get detailed information about
  9387. // the error.
  9388. //
  9389. // See the AWS API reference guide for Amazon Relational Database Service's
  9390. // API operation RestoreDBClusterFromSnapshot for usage and error information.
  9391. //
  9392. // Returned Error Codes:
  9393. // * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault"
  9394. // The user already has a DB cluster with the given identifier.
  9395. //
  9396. // * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault"
  9397. // The user attempted to create a new DB cluster and the user has already reached
  9398. // the maximum allowed DB cluster quota.
  9399. //
  9400. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  9401. // The request would result in the user exceeding the allowed amount of storage
  9402. // available across all DB instances.
  9403. //
  9404. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  9405. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  9406. //
  9407. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  9408. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  9409. //
  9410. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  9411. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  9412. //
  9413. // * ErrCodeInsufficientDBClusterCapacityFault "InsufficientDBClusterCapacityFault"
  9414. // The DB cluster doesn't have enough capacity for the current operation.
  9415. //
  9416. // * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity"
  9417. // There is insufficient storage available for the current action. You might
  9418. // be able to resolve this error by updating your subnet group to use different
  9419. // Availability Zones that have more storage available.
  9420. //
  9421. // * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState"
  9422. // The state of the DB snapshot doesn't allow deletion.
  9423. //
  9424. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  9425. // The supplied value isn't a valid DB cluster snapshot state.
  9426. //
  9427. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  9428. // The request would result in the user exceeding the allowed amount of storage
  9429. // available across all DB instances.
  9430. //
  9431. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  9432. // The DB subnet group doesn't cover all Availability Zones after it's created
  9433. // because of users' change.
  9434. //
  9435. // * ErrCodeInvalidRestoreFault "InvalidRestoreFault"
  9436. // Cannot restore from VPC backup to non-VPC DB instance.
  9437. //
  9438. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  9439. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  9440. //
  9441. // * ErrCodeInvalidSubnet "InvalidSubnet"
  9442. // The requested subnet is invalid, or multiple subnets were requested that
  9443. // are not all in a common VPC.
  9444. //
  9445. // * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault"
  9446. // The specified option group could not be found.
  9447. //
  9448. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  9449. // An error occurred accessing an AWS KMS key.
  9450. //
  9451. // * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound"
  9452. // DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter
  9453. // group.
  9454. //
  9455. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterFromSnapshot
  9456. func (c *RDS) RestoreDBClusterFromSnapshot(input *RestoreDBClusterFromSnapshotInput) (*RestoreDBClusterFromSnapshotOutput, error) {
  9457. req, out := c.RestoreDBClusterFromSnapshotRequest(input)
  9458. return out, req.Send()
  9459. }
  9460. // RestoreDBClusterFromSnapshotWithContext is the same as RestoreDBClusterFromSnapshot with the addition of
  9461. // the ability to pass a context and additional request options.
  9462. //
  9463. // See RestoreDBClusterFromSnapshot for details on how to use this API operation.
  9464. //
  9465. // The context must be non-nil and will be used for request cancellation. If
  9466. // the context is nil a panic will occur. In the future the SDK may create
  9467. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9468. // for more information on using Contexts.
  9469. func (c *RDS) RestoreDBClusterFromSnapshotWithContext(ctx aws.Context, input *RestoreDBClusterFromSnapshotInput, opts ...request.Option) (*RestoreDBClusterFromSnapshotOutput, error) {
  9470. req, out := c.RestoreDBClusterFromSnapshotRequest(input)
  9471. req.SetContext(ctx)
  9472. req.ApplyOptions(opts...)
  9473. return out, req.Send()
  9474. }
  9475. const opRestoreDBClusterToPointInTime = "RestoreDBClusterToPointInTime"
  9476. // RestoreDBClusterToPointInTimeRequest generates a "aws/request.Request" representing the
  9477. // client's request for the RestoreDBClusterToPointInTime operation. The "output" return
  9478. // value will be populated with the request's response once the request completes
  9479. // successfully.
  9480. //
  9481. // Use "Send" method on the returned Request to send the API call to the service.
  9482. // the "output" return value is not valid until after Send returns without error.
  9483. //
  9484. // See RestoreDBClusterToPointInTime for more information on using the RestoreDBClusterToPointInTime
  9485. // API call, and error handling.
  9486. //
  9487. // This method is useful when you want to inject custom logic or configuration
  9488. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9489. //
  9490. //
  9491. // // Example sending a request using the RestoreDBClusterToPointInTimeRequest method.
  9492. // req, resp := client.RestoreDBClusterToPointInTimeRequest(params)
  9493. //
  9494. // err := req.Send()
  9495. // if err == nil { // resp is now filled
  9496. // fmt.Println(resp)
  9497. // }
  9498. //
  9499. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterToPointInTime
  9500. func (c *RDS) RestoreDBClusterToPointInTimeRequest(input *RestoreDBClusterToPointInTimeInput) (req *request.Request, output *RestoreDBClusterToPointInTimeOutput) {
  9501. op := &request.Operation{
  9502. Name: opRestoreDBClusterToPointInTime,
  9503. HTTPMethod: "POST",
  9504. HTTPPath: "/",
  9505. }
  9506. if input == nil {
  9507. input = &RestoreDBClusterToPointInTimeInput{}
  9508. }
  9509. output = &RestoreDBClusterToPointInTimeOutput{}
  9510. req = c.newRequest(op, input, output)
  9511. return
  9512. }
  9513. // RestoreDBClusterToPointInTime API operation for Amazon Relational Database Service.
  9514. //
  9515. // Restores a DB cluster to an arbitrary point in time. Users can restore to
  9516. // any point in time before LatestRestorableTime for up to BackupRetentionPeriod
  9517. // days. The target DB cluster is created from the source DB cluster with the
  9518. // same configuration as the original DB cluster, except that the new DB cluster
  9519. // is created with the default DB security group.
  9520. //
  9521. // This action only restores the DB cluster, not the DB instances for that DB
  9522. // cluster. You must invoke the CreateDBInstance action to create DB instances
  9523. // for the restored DB cluster, specifying the identifier of the restored DB
  9524. // cluster in DBClusterIdentifier. You can create DB instances only after the
  9525. // RestoreDBClusterToPointInTime action has completed and the DB cluster is
  9526. // available.
  9527. //
  9528. // For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html)
  9529. // in the Amazon Aurora User Guide.
  9530. //
  9531. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9532. // with awserr.Error's Code and Message methods to get detailed information about
  9533. // the error.
  9534. //
  9535. // See the AWS API reference guide for Amazon Relational Database Service's
  9536. // API operation RestoreDBClusterToPointInTime for usage and error information.
  9537. //
  9538. // Returned Error Codes:
  9539. // * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault"
  9540. // The user already has a DB cluster with the given identifier.
  9541. //
  9542. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  9543. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  9544. //
  9545. // * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault"
  9546. // The user attempted to create a new DB cluster and the user has already reached
  9547. // the maximum allowed DB cluster quota.
  9548. //
  9549. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  9550. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  9551. //
  9552. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  9553. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  9554. //
  9555. // * ErrCodeInsufficientDBClusterCapacityFault "InsufficientDBClusterCapacityFault"
  9556. // The DB cluster doesn't have enough capacity for the current operation.
  9557. //
  9558. // * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity"
  9559. // There is insufficient storage available for the current action. You might
  9560. // be able to resolve this error by updating your subnet group to use different
  9561. // Availability Zones that have more storage available.
  9562. //
  9563. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  9564. // The supplied value isn't a valid DB cluster snapshot state.
  9565. //
  9566. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  9567. // The requested operation can't be performed while the cluster is in this state.
  9568. //
  9569. // * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState"
  9570. // The state of the DB snapshot doesn't allow deletion.
  9571. //
  9572. // * ErrCodeInvalidRestoreFault "InvalidRestoreFault"
  9573. // Cannot restore from VPC backup to non-VPC DB instance.
  9574. //
  9575. // * ErrCodeInvalidSubnet "InvalidSubnet"
  9576. // The requested subnet is invalid, or multiple subnets were requested that
  9577. // are not all in a common VPC.
  9578. //
  9579. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  9580. // The DB subnet group doesn't cover all Availability Zones after it's created
  9581. // because of users' change.
  9582. //
  9583. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  9584. // An error occurred accessing an AWS KMS key.
  9585. //
  9586. // * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault"
  9587. // The specified option group could not be found.
  9588. //
  9589. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  9590. // The request would result in the user exceeding the allowed amount of storage
  9591. // available across all DB instances.
  9592. //
  9593. // * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound"
  9594. // DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter
  9595. // group.
  9596. //
  9597. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBClusterToPointInTime
  9598. func (c *RDS) RestoreDBClusterToPointInTime(input *RestoreDBClusterToPointInTimeInput) (*RestoreDBClusterToPointInTimeOutput, error) {
  9599. req, out := c.RestoreDBClusterToPointInTimeRequest(input)
  9600. return out, req.Send()
  9601. }
  9602. // RestoreDBClusterToPointInTimeWithContext is the same as RestoreDBClusterToPointInTime with the addition of
  9603. // the ability to pass a context and additional request options.
  9604. //
  9605. // See RestoreDBClusterToPointInTime for details on how to use this API operation.
  9606. //
  9607. // The context must be non-nil and will be used for request cancellation. If
  9608. // the context is nil a panic will occur. In the future the SDK may create
  9609. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9610. // for more information on using Contexts.
  9611. func (c *RDS) RestoreDBClusterToPointInTimeWithContext(ctx aws.Context, input *RestoreDBClusterToPointInTimeInput, opts ...request.Option) (*RestoreDBClusterToPointInTimeOutput, error) {
  9612. req, out := c.RestoreDBClusterToPointInTimeRequest(input)
  9613. req.SetContext(ctx)
  9614. req.ApplyOptions(opts...)
  9615. return out, req.Send()
  9616. }
  9617. const opRestoreDBInstanceFromDBSnapshot = "RestoreDBInstanceFromDBSnapshot"
  9618. // RestoreDBInstanceFromDBSnapshotRequest generates a "aws/request.Request" representing the
  9619. // client's request for the RestoreDBInstanceFromDBSnapshot operation. The "output" return
  9620. // value will be populated with the request's response once the request completes
  9621. // successfully.
  9622. //
  9623. // Use "Send" method on the returned Request to send the API call to the service.
  9624. // the "output" return value is not valid until after Send returns without error.
  9625. //
  9626. // See RestoreDBInstanceFromDBSnapshot for more information on using the RestoreDBInstanceFromDBSnapshot
  9627. // API call, and error handling.
  9628. //
  9629. // This method is useful when you want to inject custom logic or configuration
  9630. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9631. //
  9632. //
  9633. // // Example sending a request using the RestoreDBInstanceFromDBSnapshotRequest method.
  9634. // req, resp := client.RestoreDBInstanceFromDBSnapshotRequest(params)
  9635. //
  9636. // err := req.Send()
  9637. // if err == nil { // resp is now filled
  9638. // fmt.Println(resp)
  9639. // }
  9640. //
  9641. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceFromDBSnapshot
  9642. func (c *RDS) RestoreDBInstanceFromDBSnapshotRequest(input *RestoreDBInstanceFromDBSnapshotInput) (req *request.Request, output *RestoreDBInstanceFromDBSnapshotOutput) {
  9643. op := &request.Operation{
  9644. Name: opRestoreDBInstanceFromDBSnapshot,
  9645. HTTPMethod: "POST",
  9646. HTTPPath: "/",
  9647. }
  9648. if input == nil {
  9649. input = &RestoreDBInstanceFromDBSnapshotInput{}
  9650. }
  9651. output = &RestoreDBInstanceFromDBSnapshotOutput{}
  9652. req = c.newRequest(op, input, output)
  9653. return
  9654. }
  9655. // RestoreDBInstanceFromDBSnapshot API operation for Amazon Relational Database Service.
  9656. //
  9657. // Creates a new DB instance from a DB snapshot. The target database is created
  9658. // from the source database restore point with the most of original configuration
  9659. // with the default security group and the default DB parameter group. By default,
  9660. // the new DB instance is created as a single-AZ deployment except when the
  9661. // instance is a SQL Server instance that has an option group that is associated
  9662. // with mirroring; in this case, the instance becomes a mirrored AZ deployment
  9663. // and not a single-AZ deployment.
  9664. //
  9665. // If your intent is to replace your original DB instance with the new, restored
  9666. // DB instance, then rename your original DB instance before you call the RestoreDBInstanceFromDBSnapshot
  9667. // action. RDS doesn't allow two DB instances with the same name. Once you have
  9668. // renamed your original DB instance with a different identifier, then you can
  9669. // pass the original name of the DB instance as the DBInstanceIdentifier in
  9670. // the call to the RestoreDBInstanceFromDBSnapshot action. The result is that
  9671. // you will replace the original DB instance with the DB instance created from
  9672. // the snapshot.
  9673. //
  9674. // If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier
  9675. // must be the ARN of the shared DB snapshot.
  9676. //
  9677. // This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora,
  9678. // use RestoreDBClusterFromSnapshot.
  9679. //
  9680. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9681. // with awserr.Error's Code and Message methods to get detailed information about
  9682. // the error.
  9683. //
  9684. // See the AWS API reference guide for Amazon Relational Database Service's
  9685. // API operation RestoreDBInstanceFromDBSnapshot for usage and error information.
  9686. //
  9687. // Returned Error Codes:
  9688. // * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists"
  9689. // The user already has a DB instance with the given identifier.
  9690. //
  9691. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  9692. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  9693. //
  9694. // * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded"
  9695. // The request would result in the user exceeding the allowed number of DB instances.
  9696. //
  9697. // * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity"
  9698. // The specified DB instance class isn't available in the specified Availability
  9699. // Zone.
  9700. //
  9701. // * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState"
  9702. // The state of the DB snapshot doesn't allow deletion.
  9703. //
  9704. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  9705. // The request would result in the user exceeding the allowed amount of storage
  9706. // available across all DB instances.
  9707. //
  9708. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  9709. // The DB subnet group doesn't cover all Availability Zones after it's created
  9710. // because of users' change.
  9711. //
  9712. // * ErrCodeInvalidRestoreFault "InvalidRestoreFault"
  9713. // Cannot restore from VPC backup to non-VPC DB instance.
  9714. //
  9715. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  9716. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  9717. //
  9718. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  9719. // Subnets in the DB subnet group should cover at least two Availability Zones
  9720. // unless there is only one Availability Zone.
  9721. //
  9722. // * ErrCodeInvalidSubnet "InvalidSubnet"
  9723. // The requested subnet is invalid, or multiple subnets were requested that
  9724. // are not all in a common VPC.
  9725. //
  9726. // * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault"
  9727. // Provisioned IOPS not available in the specified Availability Zone.
  9728. //
  9729. // * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault"
  9730. // The specified option group could not be found.
  9731. //
  9732. // * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported"
  9733. // Storage of the StorageType specified can't be associated with the DB instance.
  9734. //
  9735. // * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
  9736. // The specified CIDRIP or Amazon EC2 security group isn't authorized for the
  9737. // specified DB security group.
  9738. //
  9739. // RDS also may not be authorized by using IAM to perform necessary actions
  9740. // on your behalf.
  9741. //
  9742. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  9743. // An error occurred accessing an AWS KMS key.
  9744. //
  9745. // * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound"
  9746. // DBSecurityGroupName doesn't refer to an existing DB security group.
  9747. //
  9748. // * ErrCodeDomainNotFoundFault "DomainNotFoundFault"
  9749. // Domain doesn't refer to an existing Active Directory domain.
  9750. //
  9751. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  9752. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  9753. //
  9754. // * ErrCodeBackupPolicyNotFoundFault "BackupPolicyNotFoundFault"
  9755. //
  9756. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceFromDBSnapshot
  9757. func (c *RDS) RestoreDBInstanceFromDBSnapshot(input *RestoreDBInstanceFromDBSnapshotInput) (*RestoreDBInstanceFromDBSnapshotOutput, error) {
  9758. req, out := c.RestoreDBInstanceFromDBSnapshotRequest(input)
  9759. return out, req.Send()
  9760. }
  9761. // RestoreDBInstanceFromDBSnapshotWithContext is the same as RestoreDBInstanceFromDBSnapshot with the addition of
  9762. // the ability to pass a context and additional request options.
  9763. //
  9764. // See RestoreDBInstanceFromDBSnapshot for details on how to use this API operation.
  9765. //
  9766. // The context must be non-nil and will be used for request cancellation. If
  9767. // the context is nil a panic will occur. In the future the SDK may create
  9768. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9769. // for more information on using Contexts.
  9770. func (c *RDS) RestoreDBInstanceFromDBSnapshotWithContext(ctx aws.Context, input *RestoreDBInstanceFromDBSnapshotInput, opts ...request.Option) (*RestoreDBInstanceFromDBSnapshotOutput, error) {
  9771. req, out := c.RestoreDBInstanceFromDBSnapshotRequest(input)
  9772. req.SetContext(ctx)
  9773. req.ApplyOptions(opts...)
  9774. return out, req.Send()
  9775. }
  9776. const opRestoreDBInstanceFromS3 = "RestoreDBInstanceFromS3"
  9777. // RestoreDBInstanceFromS3Request generates a "aws/request.Request" representing the
  9778. // client's request for the RestoreDBInstanceFromS3 operation. The "output" return
  9779. // value will be populated with the request's response once the request completes
  9780. // successfully.
  9781. //
  9782. // Use "Send" method on the returned Request to send the API call to the service.
  9783. // the "output" return value is not valid until after Send returns without error.
  9784. //
  9785. // See RestoreDBInstanceFromS3 for more information on using the RestoreDBInstanceFromS3
  9786. // API call, and error handling.
  9787. //
  9788. // This method is useful when you want to inject custom logic or configuration
  9789. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9790. //
  9791. //
  9792. // // Example sending a request using the RestoreDBInstanceFromS3Request method.
  9793. // req, resp := client.RestoreDBInstanceFromS3Request(params)
  9794. //
  9795. // err := req.Send()
  9796. // if err == nil { // resp is now filled
  9797. // fmt.Println(resp)
  9798. // }
  9799. //
  9800. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceFromS3
  9801. func (c *RDS) RestoreDBInstanceFromS3Request(input *RestoreDBInstanceFromS3Input) (req *request.Request, output *RestoreDBInstanceFromS3Output) {
  9802. op := &request.Operation{
  9803. Name: opRestoreDBInstanceFromS3,
  9804. HTTPMethod: "POST",
  9805. HTTPPath: "/",
  9806. }
  9807. if input == nil {
  9808. input = &RestoreDBInstanceFromS3Input{}
  9809. }
  9810. output = &RestoreDBInstanceFromS3Output{}
  9811. req = c.newRequest(op, input, output)
  9812. return
  9813. }
  9814. // RestoreDBInstanceFromS3 API operation for Amazon Relational Database Service.
  9815. //
  9816. // Amazon Relational Database Service (Amazon RDS) supports importing MySQL
  9817. // databases by using backup files. You can create a backup of your on-premises
  9818. // database, store it on Amazon Simple Storage Service (Amazon S3), and then
  9819. // restore the backup file onto a new Amazon RDS DB instance running MySQL.
  9820. // For more information, see Importing Data into an Amazon RDS MySQL DB Instance
  9821. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Procedural.Importing.html)
  9822. // in the Amazon RDS User Guide.
  9823. //
  9824. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9825. // with awserr.Error's Code and Message methods to get detailed information about
  9826. // the error.
  9827. //
  9828. // See the AWS API reference guide for Amazon Relational Database Service's
  9829. // API operation RestoreDBInstanceFromS3 for usage and error information.
  9830. //
  9831. // Returned Error Codes:
  9832. // * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists"
  9833. // The user already has a DB instance with the given identifier.
  9834. //
  9835. // * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity"
  9836. // The specified DB instance class isn't available in the specified Availability
  9837. // Zone.
  9838. //
  9839. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  9840. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  9841. //
  9842. // * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound"
  9843. // DBSecurityGroupName doesn't refer to an existing DB security group.
  9844. //
  9845. // * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded"
  9846. // The request would result in the user exceeding the allowed number of DB instances.
  9847. //
  9848. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  9849. // The request would result in the user exceeding the allowed amount of storage
  9850. // available across all DB instances.
  9851. //
  9852. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  9853. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  9854. //
  9855. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  9856. // Subnets in the DB subnet group should cover at least two Availability Zones
  9857. // unless there is only one Availability Zone.
  9858. //
  9859. // * ErrCodeInvalidSubnet "InvalidSubnet"
  9860. // The requested subnet is invalid, or multiple subnets were requested that
  9861. // are not all in a common VPC.
  9862. //
  9863. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  9864. // The DB subnet group doesn't cover all Availability Zones after it's created
  9865. // because of users' change.
  9866. //
  9867. // * ErrCodeInvalidS3BucketFault "InvalidS3BucketFault"
  9868. // The specified Amazon S3 bucket name can't be found or Amazon RDS isn't authorized
  9869. // to access the specified Amazon S3 bucket. Verify the SourceS3BucketName and
  9870. // S3IngestionRoleArn values and try again.
  9871. //
  9872. // * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault"
  9873. // Provisioned IOPS not available in the specified Availability Zone.
  9874. //
  9875. // * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault"
  9876. // The specified option group could not be found.
  9877. //
  9878. // * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported"
  9879. // Storage of the StorageType specified can't be associated with the DB instance.
  9880. //
  9881. // * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
  9882. // The specified CIDRIP or Amazon EC2 security group isn't authorized for the
  9883. // specified DB security group.
  9884. //
  9885. // RDS also may not be authorized by using IAM to perform necessary actions
  9886. // on your behalf.
  9887. //
  9888. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  9889. // An error occurred accessing an AWS KMS key.
  9890. //
  9891. // * ErrCodeBackupPolicyNotFoundFault "BackupPolicyNotFoundFault"
  9892. //
  9893. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceFromS3
  9894. func (c *RDS) RestoreDBInstanceFromS3(input *RestoreDBInstanceFromS3Input) (*RestoreDBInstanceFromS3Output, error) {
  9895. req, out := c.RestoreDBInstanceFromS3Request(input)
  9896. return out, req.Send()
  9897. }
  9898. // RestoreDBInstanceFromS3WithContext is the same as RestoreDBInstanceFromS3 with the addition of
  9899. // the ability to pass a context and additional request options.
  9900. //
  9901. // See RestoreDBInstanceFromS3 for details on how to use this API operation.
  9902. //
  9903. // The context must be non-nil and will be used for request cancellation. If
  9904. // the context is nil a panic will occur. In the future the SDK may create
  9905. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  9906. // for more information on using Contexts.
  9907. func (c *RDS) RestoreDBInstanceFromS3WithContext(ctx aws.Context, input *RestoreDBInstanceFromS3Input, opts ...request.Option) (*RestoreDBInstanceFromS3Output, error) {
  9908. req, out := c.RestoreDBInstanceFromS3Request(input)
  9909. req.SetContext(ctx)
  9910. req.ApplyOptions(opts...)
  9911. return out, req.Send()
  9912. }
  9913. const opRestoreDBInstanceToPointInTime = "RestoreDBInstanceToPointInTime"
  9914. // RestoreDBInstanceToPointInTimeRequest generates a "aws/request.Request" representing the
  9915. // client's request for the RestoreDBInstanceToPointInTime operation. The "output" return
  9916. // value will be populated with the request's response once the request completes
  9917. // successfully.
  9918. //
  9919. // Use "Send" method on the returned Request to send the API call to the service.
  9920. // the "output" return value is not valid until after Send returns without error.
  9921. //
  9922. // See RestoreDBInstanceToPointInTime for more information on using the RestoreDBInstanceToPointInTime
  9923. // API call, and error handling.
  9924. //
  9925. // This method is useful when you want to inject custom logic or configuration
  9926. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  9927. //
  9928. //
  9929. // // Example sending a request using the RestoreDBInstanceToPointInTimeRequest method.
  9930. // req, resp := client.RestoreDBInstanceToPointInTimeRequest(params)
  9931. //
  9932. // err := req.Send()
  9933. // if err == nil { // resp is now filled
  9934. // fmt.Println(resp)
  9935. // }
  9936. //
  9937. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceToPointInTime
  9938. func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPointInTimeInput) (req *request.Request, output *RestoreDBInstanceToPointInTimeOutput) {
  9939. op := &request.Operation{
  9940. Name: opRestoreDBInstanceToPointInTime,
  9941. HTTPMethod: "POST",
  9942. HTTPPath: "/",
  9943. }
  9944. if input == nil {
  9945. input = &RestoreDBInstanceToPointInTimeInput{}
  9946. }
  9947. output = &RestoreDBInstanceToPointInTimeOutput{}
  9948. req = c.newRequest(op, input, output)
  9949. return
  9950. }
  9951. // RestoreDBInstanceToPointInTime API operation for Amazon Relational Database Service.
  9952. //
  9953. // Restores a DB instance to an arbitrary point in time. You can restore to
  9954. // any point in time before the time identified by the LatestRestorableTime
  9955. // property. You can restore to a point up to the number of days specified by
  9956. // the BackupRetentionPeriod property.
  9957. //
  9958. // The target database is created with most of the original configuration, but
  9959. // in a system-selected Availability Zone, with the default security group,
  9960. // the default subnet group, and the default DB parameter group. By default,
  9961. // the new DB instance is created as a single-AZ deployment except when the
  9962. // instance is a SQL Server instance that has an option group that is associated
  9963. // with mirroring; in this case, the instance becomes a mirrored deployment
  9964. // and not a single-AZ deployment.
  9965. //
  9966. // This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora,
  9967. // use RestoreDBClusterToPointInTime.
  9968. //
  9969. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  9970. // with awserr.Error's Code and Message methods to get detailed information about
  9971. // the error.
  9972. //
  9973. // See the AWS API reference guide for Amazon Relational Database Service's
  9974. // API operation RestoreDBInstanceToPointInTime for usage and error information.
  9975. //
  9976. // Returned Error Codes:
  9977. // * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists"
  9978. // The user already has a DB instance with the given identifier.
  9979. //
  9980. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  9981. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  9982. //
  9983. // * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded"
  9984. // The request would result in the user exceeding the allowed number of DB instances.
  9985. //
  9986. // * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity"
  9987. // The specified DB instance class isn't available in the specified Availability
  9988. // Zone.
  9989. //
  9990. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  9991. // The DB instance isn't in a valid state.
  9992. //
  9993. // * ErrCodePointInTimeRestoreNotEnabledFault "PointInTimeRestoreNotEnabled"
  9994. // SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod
  9995. // equal to 0.
  9996. //
  9997. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  9998. // The request would result in the user exceeding the allowed amount of storage
  9999. // available across all DB instances.
  10000. //
  10001. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  10002. // The DB subnet group doesn't cover all Availability Zones after it's created
  10003. // because of users' change.
  10004. //
  10005. // * ErrCodeInvalidRestoreFault "InvalidRestoreFault"
  10006. // Cannot restore from VPC backup to non-VPC DB instance.
  10007. //
  10008. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  10009. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  10010. //
  10011. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  10012. // Subnets in the DB subnet group should cover at least two Availability Zones
  10013. // unless there is only one Availability Zone.
  10014. //
  10015. // * ErrCodeInvalidSubnet "InvalidSubnet"
  10016. // The requested subnet is invalid, or multiple subnets were requested that
  10017. // are not all in a common VPC.
  10018. //
  10019. // * ErrCodeProvisionedIopsNotAvailableInAZFault "ProvisionedIopsNotAvailableInAZFault"
  10020. // Provisioned IOPS not available in the specified Availability Zone.
  10021. //
  10022. // * ErrCodeOptionGroupNotFoundFault "OptionGroupNotFoundFault"
  10023. // The specified option group could not be found.
  10024. //
  10025. // * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported"
  10026. // Storage of the StorageType specified can't be associated with the DB instance.
  10027. //
  10028. // * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
  10029. // The specified CIDRIP or Amazon EC2 security group isn't authorized for the
  10030. // specified DB security group.
  10031. //
  10032. // RDS also may not be authorized by using IAM to perform necessary actions
  10033. // on your behalf.
  10034. //
  10035. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  10036. // An error occurred accessing an AWS KMS key.
  10037. //
  10038. // * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound"
  10039. // DBSecurityGroupName doesn't refer to an existing DB security group.
  10040. //
  10041. // * ErrCodeDomainNotFoundFault "DomainNotFoundFault"
  10042. // Domain doesn't refer to an existing Active Directory domain.
  10043. //
  10044. // * ErrCodeBackupPolicyNotFoundFault "BackupPolicyNotFoundFault"
  10045. //
  10046. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  10047. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  10048. //
  10049. // * ErrCodeDBInstanceAutomatedBackupNotFoundFault "DBInstanceAutomatedBackupNotFound"
  10050. // No automated backup for this DB instance was found.
  10051. //
  10052. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceToPointInTime
  10053. func (c *RDS) RestoreDBInstanceToPointInTime(input *RestoreDBInstanceToPointInTimeInput) (*RestoreDBInstanceToPointInTimeOutput, error) {
  10054. req, out := c.RestoreDBInstanceToPointInTimeRequest(input)
  10055. return out, req.Send()
  10056. }
  10057. // RestoreDBInstanceToPointInTimeWithContext is the same as RestoreDBInstanceToPointInTime with the addition of
  10058. // the ability to pass a context and additional request options.
  10059. //
  10060. // See RestoreDBInstanceToPointInTime for details on how to use this API operation.
  10061. //
  10062. // The context must be non-nil and will be used for request cancellation. If
  10063. // the context is nil a panic will occur. In the future the SDK may create
  10064. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10065. // for more information on using Contexts.
  10066. func (c *RDS) RestoreDBInstanceToPointInTimeWithContext(ctx aws.Context, input *RestoreDBInstanceToPointInTimeInput, opts ...request.Option) (*RestoreDBInstanceToPointInTimeOutput, error) {
  10067. req, out := c.RestoreDBInstanceToPointInTimeRequest(input)
  10068. req.SetContext(ctx)
  10069. req.ApplyOptions(opts...)
  10070. return out, req.Send()
  10071. }
  10072. const opRevokeDBSecurityGroupIngress = "RevokeDBSecurityGroupIngress"
  10073. // RevokeDBSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  10074. // client's request for the RevokeDBSecurityGroupIngress operation. The "output" return
  10075. // value will be populated with the request's response once the request completes
  10076. // successfully.
  10077. //
  10078. // Use "Send" method on the returned Request to send the API call to the service.
  10079. // the "output" return value is not valid until after Send returns without error.
  10080. //
  10081. // See RevokeDBSecurityGroupIngress for more information on using the RevokeDBSecurityGroupIngress
  10082. // API call, and error handling.
  10083. //
  10084. // This method is useful when you want to inject custom logic or configuration
  10085. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10086. //
  10087. //
  10088. // // Example sending a request using the RevokeDBSecurityGroupIngressRequest method.
  10089. // req, resp := client.RevokeDBSecurityGroupIngressRequest(params)
  10090. //
  10091. // err := req.Send()
  10092. // if err == nil { // resp is now filled
  10093. // fmt.Println(resp)
  10094. // }
  10095. //
  10096. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RevokeDBSecurityGroupIngress
  10097. func (c *RDS) RevokeDBSecurityGroupIngressRequest(input *RevokeDBSecurityGroupIngressInput) (req *request.Request, output *RevokeDBSecurityGroupIngressOutput) {
  10098. op := &request.Operation{
  10099. Name: opRevokeDBSecurityGroupIngress,
  10100. HTTPMethod: "POST",
  10101. HTTPPath: "/",
  10102. }
  10103. if input == nil {
  10104. input = &RevokeDBSecurityGroupIngressInput{}
  10105. }
  10106. output = &RevokeDBSecurityGroupIngressOutput{}
  10107. req = c.newRequest(op, input, output)
  10108. return
  10109. }
  10110. // RevokeDBSecurityGroupIngress API operation for Amazon Relational Database Service.
  10111. //
  10112. // Revokes ingress from a DBSecurityGroup for previously authorized IP ranges
  10113. // or EC2 or VPC Security Groups. Required parameters for this API are one of
  10114. // CIDRIP, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either
  10115. // EC2SecurityGroupName or EC2SecurityGroupId).
  10116. //
  10117. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10118. // with awserr.Error's Code and Message methods to get detailed information about
  10119. // the error.
  10120. //
  10121. // See the AWS API reference guide for Amazon Relational Database Service's
  10122. // API operation RevokeDBSecurityGroupIngress for usage and error information.
  10123. //
  10124. // Returned Error Codes:
  10125. // * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound"
  10126. // DBSecurityGroupName doesn't refer to an existing DB security group.
  10127. //
  10128. // * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
  10129. // The specified CIDRIP or Amazon EC2 security group isn't authorized for the
  10130. // specified DB security group.
  10131. //
  10132. // RDS also may not be authorized by using IAM to perform necessary actions
  10133. // on your behalf.
  10134. //
  10135. // * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState"
  10136. // The state of the DB security group doesn't allow deletion.
  10137. //
  10138. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RevokeDBSecurityGroupIngress
  10139. func (c *RDS) RevokeDBSecurityGroupIngress(input *RevokeDBSecurityGroupIngressInput) (*RevokeDBSecurityGroupIngressOutput, error) {
  10140. req, out := c.RevokeDBSecurityGroupIngressRequest(input)
  10141. return out, req.Send()
  10142. }
  10143. // RevokeDBSecurityGroupIngressWithContext is the same as RevokeDBSecurityGroupIngress with the addition of
  10144. // the ability to pass a context and additional request options.
  10145. //
  10146. // See RevokeDBSecurityGroupIngress for details on how to use this API operation.
  10147. //
  10148. // The context must be non-nil and will be used for request cancellation. If
  10149. // the context is nil a panic will occur. In the future the SDK may create
  10150. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10151. // for more information on using Contexts.
  10152. func (c *RDS) RevokeDBSecurityGroupIngressWithContext(ctx aws.Context, input *RevokeDBSecurityGroupIngressInput, opts ...request.Option) (*RevokeDBSecurityGroupIngressOutput, error) {
  10153. req, out := c.RevokeDBSecurityGroupIngressRequest(input)
  10154. req.SetContext(ctx)
  10155. req.ApplyOptions(opts...)
  10156. return out, req.Send()
  10157. }
  10158. const opStartDBCluster = "StartDBCluster"
  10159. // StartDBClusterRequest generates a "aws/request.Request" representing the
  10160. // client's request for the StartDBCluster operation. The "output" return
  10161. // value will be populated with the request's response once the request completes
  10162. // successfully.
  10163. //
  10164. // Use "Send" method on the returned Request to send the API call to the service.
  10165. // the "output" return value is not valid until after Send returns without error.
  10166. //
  10167. // See StartDBCluster for more information on using the StartDBCluster
  10168. // API call, and error handling.
  10169. //
  10170. // This method is useful when you want to inject custom logic or configuration
  10171. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10172. //
  10173. //
  10174. // // Example sending a request using the StartDBClusterRequest method.
  10175. // req, resp := client.StartDBClusterRequest(params)
  10176. //
  10177. // err := req.Send()
  10178. // if err == nil { // resp is now filled
  10179. // fmt.Println(resp)
  10180. // }
  10181. //
  10182. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StartDBCluster
  10183. func (c *RDS) StartDBClusterRequest(input *StartDBClusterInput) (req *request.Request, output *StartDBClusterOutput) {
  10184. op := &request.Operation{
  10185. Name: opStartDBCluster,
  10186. HTTPMethod: "POST",
  10187. HTTPPath: "/",
  10188. }
  10189. if input == nil {
  10190. input = &StartDBClusterInput{}
  10191. }
  10192. output = &StartDBClusterOutput{}
  10193. req = c.newRequest(op, input, output)
  10194. return
  10195. }
  10196. // StartDBCluster API operation for Amazon Relational Database Service.
  10197. //
  10198. // Starts an Amazon Aurora DB cluster that was stopped using the AWS console,
  10199. // the stop-db-cluster AWS CLI command, or the StopDBCluster action.
  10200. //
  10201. // For more information, see Stopping and Starting an Aurora Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-cluster-stop-start.html)
  10202. // in the Amazon Aurora User Guide.
  10203. //
  10204. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10205. // with awserr.Error's Code and Message methods to get detailed information about
  10206. // the error.
  10207. //
  10208. // See the AWS API reference guide for Amazon Relational Database Service's
  10209. // API operation StartDBCluster for usage and error information.
  10210. //
  10211. // Returned Error Codes:
  10212. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  10213. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  10214. //
  10215. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  10216. // The requested operation can't be performed while the cluster is in this state.
  10217. //
  10218. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  10219. // The DB instance isn't in a valid state.
  10220. //
  10221. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StartDBCluster
  10222. func (c *RDS) StartDBCluster(input *StartDBClusterInput) (*StartDBClusterOutput, error) {
  10223. req, out := c.StartDBClusterRequest(input)
  10224. return out, req.Send()
  10225. }
  10226. // StartDBClusterWithContext is the same as StartDBCluster with the addition of
  10227. // the ability to pass a context and additional request options.
  10228. //
  10229. // See StartDBCluster for details on how to use this API operation.
  10230. //
  10231. // The context must be non-nil and will be used for request cancellation. If
  10232. // the context is nil a panic will occur. In the future the SDK may create
  10233. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10234. // for more information on using Contexts.
  10235. func (c *RDS) StartDBClusterWithContext(ctx aws.Context, input *StartDBClusterInput, opts ...request.Option) (*StartDBClusterOutput, error) {
  10236. req, out := c.StartDBClusterRequest(input)
  10237. req.SetContext(ctx)
  10238. req.ApplyOptions(opts...)
  10239. return out, req.Send()
  10240. }
  10241. const opStartDBInstance = "StartDBInstance"
  10242. // StartDBInstanceRequest generates a "aws/request.Request" representing the
  10243. // client's request for the StartDBInstance operation. The "output" return
  10244. // value will be populated with the request's response once the request completes
  10245. // successfully.
  10246. //
  10247. // Use "Send" method on the returned Request to send the API call to the service.
  10248. // the "output" return value is not valid until after Send returns without error.
  10249. //
  10250. // See StartDBInstance for more information on using the StartDBInstance
  10251. // API call, and error handling.
  10252. //
  10253. // This method is useful when you want to inject custom logic or configuration
  10254. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10255. //
  10256. //
  10257. // // Example sending a request using the StartDBInstanceRequest method.
  10258. // req, resp := client.StartDBInstanceRequest(params)
  10259. //
  10260. // err := req.Send()
  10261. // if err == nil { // resp is now filled
  10262. // fmt.Println(resp)
  10263. // }
  10264. //
  10265. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StartDBInstance
  10266. func (c *RDS) StartDBInstanceRequest(input *StartDBInstanceInput) (req *request.Request, output *StartDBInstanceOutput) {
  10267. op := &request.Operation{
  10268. Name: opStartDBInstance,
  10269. HTTPMethod: "POST",
  10270. HTTPPath: "/",
  10271. }
  10272. if input == nil {
  10273. input = &StartDBInstanceInput{}
  10274. }
  10275. output = &StartDBInstanceOutput{}
  10276. req = c.newRequest(op, input, output)
  10277. return
  10278. }
  10279. // StartDBInstance API operation for Amazon Relational Database Service.
  10280. //
  10281. // Starts an Amazon RDS DB instance that was stopped using the AWS console,
  10282. // the stop-db-instance AWS CLI command, or the StopDBInstance action.
  10283. //
  10284. // For more information, see Starting an Amazon RDS DB instance That Was Previously
  10285. // Stopped (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_StartInstance.html)
  10286. // in the Amazon RDS User Guide.
  10287. //
  10288. // This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora
  10289. // DB clusters, use StartDBCluster instead.
  10290. //
  10291. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10292. // with awserr.Error's Code and Message methods to get detailed information about
  10293. // the error.
  10294. //
  10295. // See the AWS API reference guide for Amazon Relational Database Service's
  10296. // API operation StartDBInstance for usage and error information.
  10297. //
  10298. // Returned Error Codes:
  10299. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  10300. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  10301. //
  10302. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  10303. // The DB instance isn't in a valid state.
  10304. //
  10305. // * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity"
  10306. // The specified DB instance class isn't available in the specified Availability
  10307. // Zone.
  10308. //
  10309. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  10310. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  10311. //
  10312. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  10313. // Subnets in the DB subnet group should cover at least two Availability Zones
  10314. // unless there is only one Availability Zone.
  10315. //
  10316. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  10317. // The requested operation can't be performed while the cluster is in this state.
  10318. //
  10319. // * ErrCodeInvalidSubnet "InvalidSubnet"
  10320. // The requested subnet is invalid, or multiple subnets were requested that
  10321. // are not all in a common VPC.
  10322. //
  10323. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  10324. // The DB subnet group doesn't cover all Availability Zones after it's created
  10325. // because of users' change.
  10326. //
  10327. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  10328. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  10329. //
  10330. // * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
  10331. // The specified CIDRIP or Amazon EC2 security group isn't authorized for the
  10332. // specified DB security group.
  10333. //
  10334. // RDS also may not be authorized by using IAM to perform necessary actions
  10335. // on your behalf.
  10336. //
  10337. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  10338. // An error occurred accessing an AWS KMS key.
  10339. //
  10340. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StartDBInstance
  10341. func (c *RDS) StartDBInstance(input *StartDBInstanceInput) (*StartDBInstanceOutput, error) {
  10342. req, out := c.StartDBInstanceRequest(input)
  10343. return out, req.Send()
  10344. }
  10345. // StartDBInstanceWithContext is the same as StartDBInstance with the addition of
  10346. // the ability to pass a context and additional request options.
  10347. //
  10348. // See StartDBInstance for details on how to use this API operation.
  10349. //
  10350. // The context must be non-nil and will be used for request cancellation. If
  10351. // the context is nil a panic will occur. In the future the SDK may create
  10352. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10353. // for more information on using Contexts.
  10354. func (c *RDS) StartDBInstanceWithContext(ctx aws.Context, input *StartDBInstanceInput, opts ...request.Option) (*StartDBInstanceOutput, error) {
  10355. req, out := c.StartDBInstanceRequest(input)
  10356. req.SetContext(ctx)
  10357. req.ApplyOptions(opts...)
  10358. return out, req.Send()
  10359. }
  10360. const opStopDBCluster = "StopDBCluster"
  10361. // StopDBClusterRequest generates a "aws/request.Request" representing the
  10362. // client's request for the StopDBCluster operation. The "output" return
  10363. // value will be populated with the request's response once the request completes
  10364. // successfully.
  10365. //
  10366. // Use "Send" method on the returned Request to send the API call to the service.
  10367. // the "output" return value is not valid until after Send returns without error.
  10368. //
  10369. // See StopDBCluster for more information on using the StopDBCluster
  10370. // API call, and error handling.
  10371. //
  10372. // This method is useful when you want to inject custom logic or configuration
  10373. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10374. //
  10375. //
  10376. // // Example sending a request using the StopDBClusterRequest method.
  10377. // req, resp := client.StopDBClusterRequest(params)
  10378. //
  10379. // err := req.Send()
  10380. // if err == nil { // resp is now filled
  10381. // fmt.Println(resp)
  10382. // }
  10383. //
  10384. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StopDBCluster
  10385. func (c *RDS) StopDBClusterRequest(input *StopDBClusterInput) (req *request.Request, output *StopDBClusterOutput) {
  10386. op := &request.Operation{
  10387. Name: opStopDBCluster,
  10388. HTTPMethod: "POST",
  10389. HTTPPath: "/",
  10390. }
  10391. if input == nil {
  10392. input = &StopDBClusterInput{}
  10393. }
  10394. output = &StopDBClusterOutput{}
  10395. req = c.newRequest(op, input, output)
  10396. return
  10397. }
  10398. // StopDBCluster API operation for Amazon Relational Database Service.
  10399. //
  10400. // Stops an Amazon Aurora DB cluster. When you stop a DB cluster, Aurora retains
  10401. // the DB cluster's metadata, including its endpoints and DB parameter groups.
  10402. // Aurora also retains the transaction logs so you can do a point-in-time restore
  10403. // if necessary.
  10404. //
  10405. // For more information, see Stopping and Starting an Aurora Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-cluster-stop-start.html)
  10406. // in the Amazon Aurora User Guide.
  10407. //
  10408. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10409. // with awserr.Error's Code and Message methods to get detailed information about
  10410. // the error.
  10411. //
  10412. // See the AWS API reference guide for Amazon Relational Database Service's
  10413. // API operation StopDBCluster for usage and error information.
  10414. //
  10415. // Returned Error Codes:
  10416. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  10417. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  10418. //
  10419. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  10420. // The requested operation can't be performed while the cluster is in this state.
  10421. //
  10422. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  10423. // The DB instance isn't in a valid state.
  10424. //
  10425. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StopDBCluster
  10426. func (c *RDS) StopDBCluster(input *StopDBClusterInput) (*StopDBClusterOutput, error) {
  10427. req, out := c.StopDBClusterRequest(input)
  10428. return out, req.Send()
  10429. }
  10430. // StopDBClusterWithContext is the same as StopDBCluster with the addition of
  10431. // the ability to pass a context and additional request options.
  10432. //
  10433. // See StopDBCluster for details on how to use this API operation.
  10434. //
  10435. // The context must be non-nil and will be used for request cancellation. If
  10436. // the context is nil a panic will occur. In the future the SDK may create
  10437. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10438. // for more information on using Contexts.
  10439. func (c *RDS) StopDBClusterWithContext(ctx aws.Context, input *StopDBClusterInput, opts ...request.Option) (*StopDBClusterOutput, error) {
  10440. req, out := c.StopDBClusterRequest(input)
  10441. req.SetContext(ctx)
  10442. req.ApplyOptions(opts...)
  10443. return out, req.Send()
  10444. }
  10445. const opStopDBInstance = "StopDBInstance"
  10446. // StopDBInstanceRequest generates a "aws/request.Request" representing the
  10447. // client's request for the StopDBInstance operation. The "output" return
  10448. // value will be populated with the request's response once the request completes
  10449. // successfully.
  10450. //
  10451. // Use "Send" method on the returned Request to send the API call to the service.
  10452. // the "output" return value is not valid until after Send returns without error.
  10453. //
  10454. // See StopDBInstance for more information on using the StopDBInstance
  10455. // API call, and error handling.
  10456. //
  10457. // This method is useful when you want to inject custom logic or configuration
  10458. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  10459. //
  10460. //
  10461. // // Example sending a request using the StopDBInstanceRequest method.
  10462. // req, resp := client.StopDBInstanceRequest(params)
  10463. //
  10464. // err := req.Send()
  10465. // if err == nil { // resp is now filled
  10466. // fmt.Println(resp)
  10467. // }
  10468. //
  10469. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StopDBInstance
  10470. func (c *RDS) StopDBInstanceRequest(input *StopDBInstanceInput) (req *request.Request, output *StopDBInstanceOutput) {
  10471. op := &request.Operation{
  10472. Name: opStopDBInstance,
  10473. HTTPMethod: "POST",
  10474. HTTPPath: "/",
  10475. }
  10476. if input == nil {
  10477. input = &StopDBInstanceInput{}
  10478. }
  10479. output = &StopDBInstanceOutput{}
  10480. req = c.newRequest(op, input, output)
  10481. return
  10482. }
  10483. // StopDBInstance API operation for Amazon Relational Database Service.
  10484. //
  10485. // Stops an Amazon RDS DB instance. When you stop a DB instance, Amazon RDS
  10486. // retains the DB instance's metadata, including its endpoint, DB parameter
  10487. // group, and option group membership. Amazon RDS also retains the transaction
  10488. // logs so you can do a point-in-time restore if necessary.
  10489. //
  10490. // For more information, see Stopping an Amazon RDS DB Instance Temporarily
  10491. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_StopInstance.html)
  10492. // in the Amazon RDS User Guide.
  10493. //
  10494. // This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora
  10495. // clusters, use StopDBCluster instead.
  10496. //
  10497. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  10498. // with awserr.Error's Code and Message methods to get detailed information about
  10499. // the error.
  10500. //
  10501. // See the AWS API reference guide for Amazon Relational Database Service's
  10502. // API operation StopDBInstance for usage and error information.
  10503. //
  10504. // Returned Error Codes:
  10505. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  10506. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  10507. //
  10508. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  10509. // The DB instance isn't in a valid state.
  10510. //
  10511. // * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists"
  10512. // DBSnapshotIdentifier is already used by an existing snapshot.
  10513. //
  10514. // * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded"
  10515. // The request would result in the user exceeding the allowed number of DB snapshots.
  10516. //
  10517. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  10518. // The requested operation can't be performed while the cluster is in this state.
  10519. //
  10520. // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StopDBInstance
  10521. func (c *RDS) StopDBInstance(input *StopDBInstanceInput) (*StopDBInstanceOutput, error) {
  10522. req, out := c.StopDBInstanceRequest(input)
  10523. return out, req.Send()
  10524. }
  10525. // StopDBInstanceWithContext is the same as StopDBInstance with the addition of
  10526. // the ability to pass a context and additional request options.
  10527. //
  10528. // See StopDBInstance for details on how to use this API operation.
  10529. //
  10530. // The context must be non-nil and will be used for request cancellation. If
  10531. // the context is nil a panic will occur. In the future the SDK may create
  10532. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  10533. // for more information on using Contexts.
  10534. func (c *RDS) StopDBInstanceWithContext(ctx aws.Context, input *StopDBInstanceInput, opts ...request.Option) (*StopDBInstanceOutput, error) {
  10535. req, out := c.StopDBInstanceRequest(input)
  10536. req.SetContext(ctx)
  10537. req.ApplyOptions(opts...)
  10538. return out, req.Send()
  10539. }
  10540. // Describes a quota for an AWS account, for example, the number of DB instances
  10541. // allowed.
  10542. type AccountQuota struct {
  10543. _ struct{} `type:"structure"`
  10544. // The name of the Amazon RDS quota for this AWS account.
  10545. AccountQuotaName *string `type:"string"`
  10546. // The maximum allowed value for the quota.
  10547. Max *int64 `type:"long"`
  10548. // The amount currently used toward the quota maximum.
  10549. Used *int64 `type:"long"`
  10550. }
  10551. // String returns the string representation
  10552. func (s AccountQuota) String() string {
  10553. return awsutil.Prettify(s)
  10554. }
  10555. // GoString returns the string representation
  10556. func (s AccountQuota) GoString() string {
  10557. return s.String()
  10558. }
  10559. // SetAccountQuotaName sets the AccountQuotaName field's value.
  10560. func (s *AccountQuota) SetAccountQuotaName(v string) *AccountQuota {
  10561. s.AccountQuotaName = &v
  10562. return s
  10563. }
  10564. // SetMax sets the Max field's value.
  10565. func (s *AccountQuota) SetMax(v int64) *AccountQuota {
  10566. s.Max = &v
  10567. return s
  10568. }
  10569. // SetUsed sets the Used field's value.
  10570. func (s *AccountQuota) SetUsed(v int64) *AccountQuota {
  10571. s.Used = &v
  10572. return s
  10573. }
  10574. type AddRoleToDBClusterInput struct {
  10575. _ struct{} `type:"structure"`
  10576. // The name of the DB cluster to associate the IAM role with.
  10577. //
  10578. // DBClusterIdentifier is a required field
  10579. DBClusterIdentifier *string `type:"string" required:"true"`
  10580. // The Amazon Resource Name (ARN) of the IAM role to associate with the Aurora
  10581. // DB cluster, for example arn:aws:iam::123456789012:role/AuroraAccessRole.
  10582. //
  10583. // RoleArn is a required field
  10584. RoleArn *string `type:"string" required:"true"`
  10585. }
  10586. // String returns the string representation
  10587. func (s AddRoleToDBClusterInput) String() string {
  10588. return awsutil.Prettify(s)
  10589. }
  10590. // GoString returns the string representation
  10591. func (s AddRoleToDBClusterInput) GoString() string {
  10592. return s.String()
  10593. }
  10594. // Validate inspects the fields of the type to determine if they are valid.
  10595. func (s *AddRoleToDBClusterInput) Validate() error {
  10596. invalidParams := request.ErrInvalidParams{Context: "AddRoleToDBClusterInput"}
  10597. if s.DBClusterIdentifier == nil {
  10598. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  10599. }
  10600. if s.RoleArn == nil {
  10601. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  10602. }
  10603. if invalidParams.Len() > 0 {
  10604. return invalidParams
  10605. }
  10606. return nil
  10607. }
  10608. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  10609. func (s *AddRoleToDBClusterInput) SetDBClusterIdentifier(v string) *AddRoleToDBClusterInput {
  10610. s.DBClusterIdentifier = &v
  10611. return s
  10612. }
  10613. // SetRoleArn sets the RoleArn field's value.
  10614. func (s *AddRoleToDBClusterInput) SetRoleArn(v string) *AddRoleToDBClusterInput {
  10615. s.RoleArn = &v
  10616. return s
  10617. }
  10618. type AddRoleToDBClusterOutput struct {
  10619. _ struct{} `type:"structure"`
  10620. }
  10621. // String returns the string representation
  10622. func (s AddRoleToDBClusterOutput) String() string {
  10623. return awsutil.Prettify(s)
  10624. }
  10625. // GoString returns the string representation
  10626. func (s AddRoleToDBClusterOutput) GoString() string {
  10627. return s.String()
  10628. }
  10629. type AddSourceIdentifierToSubscriptionInput struct {
  10630. _ struct{} `type:"structure"`
  10631. // The identifier of the event source to be added.
  10632. //
  10633. // Constraints:
  10634. //
  10635. // * If the source type is a DB instance, then a DBInstanceIdentifier must
  10636. // be supplied.
  10637. //
  10638. // * If the source type is a DB security group, a DBSecurityGroupName must
  10639. // be supplied.
  10640. //
  10641. // * If the source type is a DB parameter group, a DBParameterGroupName must
  10642. // be supplied.
  10643. //
  10644. // * If the source type is a DB snapshot, a DBSnapshotIdentifier must be
  10645. // supplied.
  10646. //
  10647. // SourceIdentifier is a required field
  10648. SourceIdentifier *string `type:"string" required:"true"`
  10649. // The name of the RDS event notification subscription you want to add a source
  10650. // identifier to.
  10651. //
  10652. // SubscriptionName is a required field
  10653. SubscriptionName *string `type:"string" required:"true"`
  10654. }
  10655. // String returns the string representation
  10656. func (s AddSourceIdentifierToSubscriptionInput) String() string {
  10657. return awsutil.Prettify(s)
  10658. }
  10659. // GoString returns the string representation
  10660. func (s AddSourceIdentifierToSubscriptionInput) GoString() string {
  10661. return s.String()
  10662. }
  10663. // Validate inspects the fields of the type to determine if they are valid.
  10664. func (s *AddSourceIdentifierToSubscriptionInput) Validate() error {
  10665. invalidParams := request.ErrInvalidParams{Context: "AddSourceIdentifierToSubscriptionInput"}
  10666. if s.SourceIdentifier == nil {
  10667. invalidParams.Add(request.NewErrParamRequired("SourceIdentifier"))
  10668. }
  10669. if s.SubscriptionName == nil {
  10670. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  10671. }
  10672. if invalidParams.Len() > 0 {
  10673. return invalidParams
  10674. }
  10675. return nil
  10676. }
  10677. // SetSourceIdentifier sets the SourceIdentifier field's value.
  10678. func (s *AddSourceIdentifierToSubscriptionInput) SetSourceIdentifier(v string) *AddSourceIdentifierToSubscriptionInput {
  10679. s.SourceIdentifier = &v
  10680. return s
  10681. }
  10682. // SetSubscriptionName sets the SubscriptionName field's value.
  10683. func (s *AddSourceIdentifierToSubscriptionInput) SetSubscriptionName(v string) *AddSourceIdentifierToSubscriptionInput {
  10684. s.SubscriptionName = &v
  10685. return s
  10686. }
  10687. type AddSourceIdentifierToSubscriptionOutput struct {
  10688. _ struct{} `type:"structure"`
  10689. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  10690. // action.
  10691. EventSubscription *EventSubscription `type:"structure"`
  10692. }
  10693. // String returns the string representation
  10694. func (s AddSourceIdentifierToSubscriptionOutput) String() string {
  10695. return awsutil.Prettify(s)
  10696. }
  10697. // GoString returns the string representation
  10698. func (s AddSourceIdentifierToSubscriptionOutput) GoString() string {
  10699. return s.String()
  10700. }
  10701. // SetEventSubscription sets the EventSubscription field's value.
  10702. func (s *AddSourceIdentifierToSubscriptionOutput) SetEventSubscription(v *EventSubscription) *AddSourceIdentifierToSubscriptionOutput {
  10703. s.EventSubscription = v
  10704. return s
  10705. }
  10706. type AddTagsToResourceInput struct {
  10707. _ struct{} `type:"structure"`
  10708. // The Amazon RDS resource that the tags are added to. This value is an Amazon
  10709. // Resource Name (ARN). For information about creating an ARN, see Constructing
  10710. // an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing).
  10711. //
  10712. // ResourceName is a required field
  10713. ResourceName *string `type:"string" required:"true"`
  10714. // The tags to be assigned to the Amazon RDS resource.
  10715. //
  10716. // Tags is a required field
  10717. Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"`
  10718. }
  10719. // String returns the string representation
  10720. func (s AddTagsToResourceInput) String() string {
  10721. return awsutil.Prettify(s)
  10722. }
  10723. // GoString returns the string representation
  10724. func (s AddTagsToResourceInput) GoString() string {
  10725. return s.String()
  10726. }
  10727. // Validate inspects the fields of the type to determine if they are valid.
  10728. func (s *AddTagsToResourceInput) Validate() error {
  10729. invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
  10730. if s.ResourceName == nil {
  10731. invalidParams.Add(request.NewErrParamRequired("ResourceName"))
  10732. }
  10733. if s.Tags == nil {
  10734. invalidParams.Add(request.NewErrParamRequired("Tags"))
  10735. }
  10736. if invalidParams.Len() > 0 {
  10737. return invalidParams
  10738. }
  10739. return nil
  10740. }
  10741. // SetResourceName sets the ResourceName field's value.
  10742. func (s *AddTagsToResourceInput) SetResourceName(v string) *AddTagsToResourceInput {
  10743. s.ResourceName = &v
  10744. return s
  10745. }
  10746. // SetTags sets the Tags field's value.
  10747. func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput {
  10748. s.Tags = v
  10749. return s
  10750. }
  10751. type AddTagsToResourceOutput struct {
  10752. _ struct{} `type:"structure"`
  10753. }
  10754. // String returns the string representation
  10755. func (s AddTagsToResourceOutput) String() string {
  10756. return awsutil.Prettify(s)
  10757. }
  10758. // GoString returns the string representation
  10759. func (s AddTagsToResourceOutput) GoString() string {
  10760. return s.String()
  10761. }
  10762. type ApplyPendingMaintenanceActionInput struct {
  10763. _ struct{} `type:"structure"`
  10764. // The pending maintenance action to apply to this resource.
  10765. //
  10766. // Valid values: system-update, db-upgrade
  10767. //
  10768. // ApplyAction is a required field
  10769. ApplyAction *string `type:"string" required:"true"`
  10770. // A value that specifies the type of opt-in request, or undoes an opt-in request.
  10771. // An opt-in request of type immediate can't be undone.
  10772. //
  10773. // Valid values:
  10774. //
  10775. // * immediate - Apply the maintenance action immediately.
  10776. //
  10777. // * next-maintenance - Apply the maintenance action during the next maintenance
  10778. // window for the resource.
  10779. //
  10780. // * undo-opt-in - Cancel any existing next-maintenance opt-in requests.
  10781. //
  10782. // OptInType is a required field
  10783. OptInType *string `type:"string" required:"true"`
  10784. // The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance
  10785. // action applies to. For information about creating an ARN, see Constructing
  10786. // an RDS Amazon Resource Name (ARN) (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing).
  10787. //
  10788. // ResourceIdentifier is a required field
  10789. ResourceIdentifier *string `type:"string" required:"true"`
  10790. }
  10791. // String returns the string representation
  10792. func (s ApplyPendingMaintenanceActionInput) String() string {
  10793. return awsutil.Prettify(s)
  10794. }
  10795. // GoString returns the string representation
  10796. func (s ApplyPendingMaintenanceActionInput) GoString() string {
  10797. return s.String()
  10798. }
  10799. // Validate inspects the fields of the type to determine if they are valid.
  10800. func (s *ApplyPendingMaintenanceActionInput) Validate() error {
  10801. invalidParams := request.ErrInvalidParams{Context: "ApplyPendingMaintenanceActionInput"}
  10802. if s.ApplyAction == nil {
  10803. invalidParams.Add(request.NewErrParamRequired("ApplyAction"))
  10804. }
  10805. if s.OptInType == nil {
  10806. invalidParams.Add(request.NewErrParamRequired("OptInType"))
  10807. }
  10808. if s.ResourceIdentifier == nil {
  10809. invalidParams.Add(request.NewErrParamRequired("ResourceIdentifier"))
  10810. }
  10811. if invalidParams.Len() > 0 {
  10812. return invalidParams
  10813. }
  10814. return nil
  10815. }
  10816. // SetApplyAction sets the ApplyAction field's value.
  10817. func (s *ApplyPendingMaintenanceActionInput) SetApplyAction(v string) *ApplyPendingMaintenanceActionInput {
  10818. s.ApplyAction = &v
  10819. return s
  10820. }
  10821. // SetOptInType sets the OptInType field's value.
  10822. func (s *ApplyPendingMaintenanceActionInput) SetOptInType(v string) *ApplyPendingMaintenanceActionInput {
  10823. s.OptInType = &v
  10824. return s
  10825. }
  10826. // SetResourceIdentifier sets the ResourceIdentifier field's value.
  10827. func (s *ApplyPendingMaintenanceActionInput) SetResourceIdentifier(v string) *ApplyPendingMaintenanceActionInput {
  10828. s.ResourceIdentifier = &v
  10829. return s
  10830. }
  10831. type ApplyPendingMaintenanceActionOutput struct {
  10832. _ struct{} `type:"structure"`
  10833. // Describes the pending maintenance actions for a resource.
  10834. ResourcePendingMaintenanceActions *ResourcePendingMaintenanceActions `type:"structure"`
  10835. }
  10836. // String returns the string representation
  10837. func (s ApplyPendingMaintenanceActionOutput) String() string {
  10838. return awsutil.Prettify(s)
  10839. }
  10840. // GoString returns the string representation
  10841. func (s ApplyPendingMaintenanceActionOutput) GoString() string {
  10842. return s.String()
  10843. }
  10844. // SetResourcePendingMaintenanceActions sets the ResourcePendingMaintenanceActions field's value.
  10845. func (s *ApplyPendingMaintenanceActionOutput) SetResourcePendingMaintenanceActions(v *ResourcePendingMaintenanceActions) *ApplyPendingMaintenanceActionOutput {
  10846. s.ResourcePendingMaintenanceActions = v
  10847. return s
  10848. }
  10849. type AuthorizeDBSecurityGroupIngressInput struct {
  10850. _ struct{} `type:"structure"`
  10851. // The IP range to authorize.
  10852. CIDRIP *string `type:"string"`
  10853. // The name of the DB security group to add authorization to.
  10854. //
  10855. // DBSecurityGroupName is a required field
  10856. DBSecurityGroupName *string `type:"string" required:"true"`
  10857. // Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId
  10858. // must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName
  10859. // or EC2SecurityGroupId must be provided.
  10860. EC2SecurityGroupId *string `type:"string"`
  10861. // Name of the EC2 security group to authorize. For VPC DB security groups,
  10862. // EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and
  10863. // either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
  10864. EC2SecurityGroupName *string `type:"string"`
  10865. // AWS account number of the owner of the EC2 security group specified in the
  10866. // EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable
  10867. // value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise,
  10868. // EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId
  10869. // must be provided.
  10870. EC2SecurityGroupOwnerId *string `type:"string"`
  10871. }
  10872. // String returns the string representation
  10873. func (s AuthorizeDBSecurityGroupIngressInput) String() string {
  10874. return awsutil.Prettify(s)
  10875. }
  10876. // GoString returns the string representation
  10877. func (s AuthorizeDBSecurityGroupIngressInput) GoString() string {
  10878. return s.String()
  10879. }
  10880. // Validate inspects the fields of the type to determine if they are valid.
  10881. func (s *AuthorizeDBSecurityGroupIngressInput) Validate() error {
  10882. invalidParams := request.ErrInvalidParams{Context: "AuthorizeDBSecurityGroupIngressInput"}
  10883. if s.DBSecurityGroupName == nil {
  10884. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName"))
  10885. }
  10886. if invalidParams.Len() > 0 {
  10887. return invalidParams
  10888. }
  10889. return nil
  10890. }
  10891. // SetCIDRIP sets the CIDRIP field's value.
  10892. func (s *AuthorizeDBSecurityGroupIngressInput) SetCIDRIP(v string) *AuthorizeDBSecurityGroupIngressInput {
  10893. s.CIDRIP = &v
  10894. return s
  10895. }
  10896. // SetDBSecurityGroupName sets the DBSecurityGroupName field's value.
  10897. func (s *AuthorizeDBSecurityGroupIngressInput) SetDBSecurityGroupName(v string) *AuthorizeDBSecurityGroupIngressInput {
  10898. s.DBSecurityGroupName = &v
  10899. return s
  10900. }
  10901. // SetEC2SecurityGroupId sets the EC2SecurityGroupId field's value.
  10902. func (s *AuthorizeDBSecurityGroupIngressInput) SetEC2SecurityGroupId(v string) *AuthorizeDBSecurityGroupIngressInput {
  10903. s.EC2SecurityGroupId = &v
  10904. return s
  10905. }
  10906. // SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value.
  10907. func (s *AuthorizeDBSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *AuthorizeDBSecurityGroupIngressInput {
  10908. s.EC2SecurityGroupName = &v
  10909. return s
  10910. }
  10911. // SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value.
  10912. func (s *AuthorizeDBSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *AuthorizeDBSecurityGroupIngressInput {
  10913. s.EC2SecurityGroupOwnerId = &v
  10914. return s
  10915. }
  10916. type AuthorizeDBSecurityGroupIngressOutput struct {
  10917. _ struct{} `type:"structure"`
  10918. // Contains the details for an Amazon RDS DB security group.
  10919. //
  10920. // This data type is used as a response element in the DescribeDBSecurityGroups
  10921. // action.
  10922. DBSecurityGroup *DBSecurityGroup `type:"structure"`
  10923. }
  10924. // String returns the string representation
  10925. func (s AuthorizeDBSecurityGroupIngressOutput) String() string {
  10926. return awsutil.Prettify(s)
  10927. }
  10928. // GoString returns the string representation
  10929. func (s AuthorizeDBSecurityGroupIngressOutput) GoString() string {
  10930. return s.String()
  10931. }
  10932. // SetDBSecurityGroup sets the DBSecurityGroup field's value.
  10933. func (s *AuthorizeDBSecurityGroupIngressOutput) SetDBSecurityGroup(v *DBSecurityGroup) *AuthorizeDBSecurityGroupIngressOutput {
  10934. s.DBSecurityGroup = v
  10935. return s
  10936. }
  10937. // Contains Availability Zone information.
  10938. //
  10939. // This data type is used as an element in the following data type:
  10940. //
  10941. // * OrderableDBInstanceOption
  10942. type AvailabilityZone struct {
  10943. _ struct{} `type:"structure"`
  10944. // The name of the Availability Zone.
  10945. Name *string `type:"string"`
  10946. }
  10947. // String returns the string representation
  10948. func (s AvailabilityZone) String() string {
  10949. return awsutil.Prettify(s)
  10950. }
  10951. // GoString returns the string representation
  10952. func (s AvailabilityZone) GoString() string {
  10953. return s.String()
  10954. }
  10955. // SetName sets the Name field's value.
  10956. func (s *AvailabilityZone) SetName(v string) *AvailabilityZone {
  10957. s.Name = &v
  10958. return s
  10959. }
  10960. // Contains the available processor feature information for the DB instance
  10961. // class of a DB instance.
  10962. //
  10963. // For more information, see Configuring the Processor of the DB Instance Class
  10964. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#USER_ConfigureProcessor)
  10965. // in the Amazon RDS User Guide.
  10966. type AvailableProcessorFeature struct {
  10967. _ struct{} `type:"structure"`
  10968. // The allowed values for the processor feature of the DB instance class.
  10969. AllowedValues *string `type:"string"`
  10970. // The default value for the processor feature of the DB instance class.
  10971. DefaultValue *string `type:"string"`
  10972. // The name of the processor feature. Valid names are coreCount and threadsPerCore.
  10973. Name *string `type:"string"`
  10974. }
  10975. // String returns the string representation
  10976. func (s AvailableProcessorFeature) String() string {
  10977. return awsutil.Prettify(s)
  10978. }
  10979. // GoString returns the string representation
  10980. func (s AvailableProcessorFeature) GoString() string {
  10981. return s.String()
  10982. }
  10983. // SetAllowedValues sets the AllowedValues field's value.
  10984. func (s *AvailableProcessorFeature) SetAllowedValues(v string) *AvailableProcessorFeature {
  10985. s.AllowedValues = &v
  10986. return s
  10987. }
  10988. // SetDefaultValue sets the DefaultValue field's value.
  10989. func (s *AvailableProcessorFeature) SetDefaultValue(v string) *AvailableProcessorFeature {
  10990. s.DefaultValue = &v
  10991. return s
  10992. }
  10993. // SetName sets the Name field's value.
  10994. func (s *AvailableProcessorFeature) SetName(v string) *AvailableProcessorFeature {
  10995. s.Name = &v
  10996. return s
  10997. }
  10998. type BacktrackDBClusterInput struct {
  10999. _ struct{} `type:"structure"`
  11000. // The timestamp of the time to backtrack the DB cluster to, specified in ISO
  11001. // 8601 format. For more information about ISO 8601, see the ISO8601 Wikipedia
  11002. // page. (http://en.wikipedia.org/wiki/ISO_8601)
  11003. //
  11004. // If the specified time is not a consistent time for the DB cluster, Aurora
  11005. // automatically chooses the nearest possible consistent time for the DB cluster.
  11006. //
  11007. // Constraints:
  11008. //
  11009. // * Must contain a valid ISO 8601 timestamp.
  11010. //
  11011. // * Can't contain a timestamp set in the future.
  11012. //
  11013. // Example: 2017-07-08T18:00Z
  11014. //
  11015. // BacktrackTo is a required field
  11016. BacktrackTo *time.Time `type:"timestamp" required:"true"`
  11017. // The DB cluster identifier of the DB cluster to be backtracked. This parameter
  11018. // is stored as a lowercase string.
  11019. //
  11020. // Constraints:
  11021. //
  11022. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  11023. //
  11024. // * First character must be a letter.
  11025. //
  11026. // * Can't end with a hyphen or contain two consecutive hyphens.
  11027. //
  11028. // Example: my-cluster1
  11029. //
  11030. // DBClusterIdentifier is a required field
  11031. DBClusterIdentifier *string `type:"string" required:"true"`
  11032. // A value that, if specified, forces the DB cluster to backtrack when binary
  11033. // logging is enabled. Otherwise, an error occurs when binary logging is enabled.
  11034. Force *bool `type:"boolean"`
  11035. // If BacktrackTo is set to a timestamp earlier than the earliest backtrack
  11036. // time, this value backtracks the DB cluster to the earliest possible backtrack
  11037. // time. Otherwise, an error occurs.
  11038. UseEarliestTimeOnPointInTimeUnavailable *bool `type:"boolean"`
  11039. }
  11040. // String returns the string representation
  11041. func (s BacktrackDBClusterInput) String() string {
  11042. return awsutil.Prettify(s)
  11043. }
  11044. // GoString returns the string representation
  11045. func (s BacktrackDBClusterInput) GoString() string {
  11046. return s.String()
  11047. }
  11048. // Validate inspects the fields of the type to determine if they are valid.
  11049. func (s *BacktrackDBClusterInput) Validate() error {
  11050. invalidParams := request.ErrInvalidParams{Context: "BacktrackDBClusterInput"}
  11051. if s.BacktrackTo == nil {
  11052. invalidParams.Add(request.NewErrParamRequired("BacktrackTo"))
  11053. }
  11054. if s.DBClusterIdentifier == nil {
  11055. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  11056. }
  11057. if invalidParams.Len() > 0 {
  11058. return invalidParams
  11059. }
  11060. return nil
  11061. }
  11062. // SetBacktrackTo sets the BacktrackTo field's value.
  11063. func (s *BacktrackDBClusterInput) SetBacktrackTo(v time.Time) *BacktrackDBClusterInput {
  11064. s.BacktrackTo = &v
  11065. return s
  11066. }
  11067. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  11068. func (s *BacktrackDBClusterInput) SetDBClusterIdentifier(v string) *BacktrackDBClusterInput {
  11069. s.DBClusterIdentifier = &v
  11070. return s
  11071. }
  11072. // SetForce sets the Force field's value.
  11073. func (s *BacktrackDBClusterInput) SetForce(v bool) *BacktrackDBClusterInput {
  11074. s.Force = &v
  11075. return s
  11076. }
  11077. // SetUseEarliestTimeOnPointInTimeUnavailable sets the UseEarliestTimeOnPointInTimeUnavailable field's value.
  11078. func (s *BacktrackDBClusterInput) SetUseEarliestTimeOnPointInTimeUnavailable(v bool) *BacktrackDBClusterInput {
  11079. s.UseEarliestTimeOnPointInTimeUnavailable = &v
  11080. return s
  11081. }
  11082. // This data type is used as a response element in the DescribeDBClusterBacktracks
  11083. // action.
  11084. type BacktrackDBClusterOutput struct {
  11085. _ struct{} `type:"structure"`
  11086. // Contains the backtrack identifier.
  11087. BacktrackIdentifier *string `type:"string"`
  11088. // The timestamp of the time at which the backtrack was requested.
  11089. BacktrackRequestCreationTime *time.Time `type:"timestamp"`
  11090. // The timestamp of the time to which the DB cluster was backtracked.
  11091. BacktrackTo *time.Time `type:"timestamp"`
  11092. // The timestamp of the time from which the DB cluster was backtracked.
  11093. BacktrackedFrom *time.Time `type:"timestamp"`
  11094. // Contains a user-supplied DB cluster identifier. This identifier is the unique
  11095. // key that identifies a DB cluster.
  11096. DBClusterIdentifier *string `type:"string"`
  11097. // The status of the backtrack. This property returns one of the following values:
  11098. //
  11099. // * applying - The backtrack is currently being applied to or rolled back
  11100. // from the DB cluster.
  11101. //
  11102. // * completed - The backtrack has successfully been applied to or rolled
  11103. // back from the DB cluster.
  11104. //
  11105. // * failed - An error occurred while the backtrack was applied to or rolled
  11106. // back from the DB cluster.
  11107. //
  11108. // * pending - The backtrack is currently pending application to or rollback
  11109. // from the DB cluster.
  11110. Status *string `type:"string"`
  11111. }
  11112. // String returns the string representation
  11113. func (s BacktrackDBClusterOutput) String() string {
  11114. return awsutil.Prettify(s)
  11115. }
  11116. // GoString returns the string representation
  11117. func (s BacktrackDBClusterOutput) GoString() string {
  11118. return s.String()
  11119. }
  11120. // SetBacktrackIdentifier sets the BacktrackIdentifier field's value.
  11121. func (s *BacktrackDBClusterOutput) SetBacktrackIdentifier(v string) *BacktrackDBClusterOutput {
  11122. s.BacktrackIdentifier = &v
  11123. return s
  11124. }
  11125. // SetBacktrackRequestCreationTime sets the BacktrackRequestCreationTime field's value.
  11126. func (s *BacktrackDBClusterOutput) SetBacktrackRequestCreationTime(v time.Time) *BacktrackDBClusterOutput {
  11127. s.BacktrackRequestCreationTime = &v
  11128. return s
  11129. }
  11130. // SetBacktrackTo sets the BacktrackTo field's value.
  11131. func (s *BacktrackDBClusterOutput) SetBacktrackTo(v time.Time) *BacktrackDBClusterOutput {
  11132. s.BacktrackTo = &v
  11133. return s
  11134. }
  11135. // SetBacktrackedFrom sets the BacktrackedFrom field's value.
  11136. func (s *BacktrackDBClusterOutput) SetBacktrackedFrom(v time.Time) *BacktrackDBClusterOutput {
  11137. s.BacktrackedFrom = &v
  11138. return s
  11139. }
  11140. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  11141. func (s *BacktrackDBClusterOutput) SetDBClusterIdentifier(v string) *BacktrackDBClusterOutput {
  11142. s.DBClusterIdentifier = &v
  11143. return s
  11144. }
  11145. // SetStatus sets the Status field's value.
  11146. func (s *BacktrackDBClusterOutput) SetStatus(v string) *BacktrackDBClusterOutput {
  11147. s.Status = &v
  11148. return s
  11149. }
  11150. // A CA certificate for an AWS account.
  11151. type Certificate struct {
  11152. _ struct{} `type:"structure"`
  11153. // The Amazon Resource Name (ARN) for the certificate.
  11154. CertificateArn *string `type:"string"`
  11155. // The unique key that identifies a certificate.
  11156. CertificateIdentifier *string `type:"string"`
  11157. // The type of the certificate.
  11158. CertificateType *string `type:"string"`
  11159. // The thumbprint of the certificate.
  11160. Thumbprint *string `type:"string"`
  11161. // The starting date from which the certificate is valid.
  11162. ValidFrom *time.Time `type:"timestamp"`
  11163. // The final date that the certificate continues to be valid.
  11164. ValidTill *time.Time `type:"timestamp"`
  11165. }
  11166. // String returns the string representation
  11167. func (s Certificate) String() string {
  11168. return awsutil.Prettify(s)
  11169. }
  11170. // GoString returns the string representation
  11171. func (s Certificate) GoString() string {
  11172. return s.String()
  11173. }
  11174. // SetCertificateArn sets the CertificateArn field's value.
  11175. func (s *Certificate) SetCertificateArn(v string) *Certificate {
  11176. s.CertificateArn = &v
  11177. return s
  11178. }
  11179. // SetCertificateIdentifier sets the CertificateIdentifier field's value.
  11180. func (s *Certificate) SetCertificateIdentifier(v string) *Certificate {
  11181. s.CertificateIdentifier = &v
  11182. return s
  11183. }
  11184. // SetCertificateType sets the CertificateType field's value.
  11185. func (s *Certificate) SetCertificateType(v string) *Certificate {
  11186. s.CertificateType = &v
  11187. return s
  11188. }
  11189. // SetThumbprint sets the Thumbprint field's value.
  11190. func (s *Certificate) SetThumbprint(v string) *Certificate {
  11191. s.Thumbprint = &v
  11192. return s
  11193. }
  11194. // SetValidFrom sets the ValidFrom field's value.
  11195. func (s *Certificate) SetValidFrom(v time.Time) *Certificate {
  11196. s.ValidFrom = &v
  11197. return s
  11198. }
  11199. // SetValidTill sets the ValidTill field's value.
  11200. func (s *Certificate) SetValidTill(v time.Time) *Certificate {
  11201. s.ValidTill = &v
  11202. return s
  11203. }
  11204. // This data type is used as a response element in the action DescribeDBEngineVersions.
  11205. type CharacterSet struct {
  11206. _ struct{} `type:"structure"`
  11207. // The description of the character set.
  11208. CharacterSetDescription *string `type:"string"`
  11209. // The name of the character set.
  11210. CharacterSetName *string `type:"string"`
  11211. }
  11212. // String returns the string representation
  11213. func (s CharacterSet) String() string {
  11214. return awsutil.Prettify(s)
  11215. }
  11216. // GoString returns the string representation
  11217. func (s CharacterSet) GoString() string {
  11218. return s.String()
  11219. }
  11220. // SetCharacterSetDescription sets the CharacterSetDescription field's value.
  11221. func (s *CharacterSet) SetCharacterSetDescription(v string) *CharacterSet {
  11222. s.CharacterSetDescription = &v
  11223. return s
  11224. }
  11225. // SetCharacterSetName sets the CharacterSetName field's value.
  11226. func (s *CharacterSet) SetCharacterSetName(v string) *CharacterSet {
  11227. s.CharacterSetName = &v
  11228. return s
  11229. }
  11230. // The configuration setting for the log types to be enabled for export to CloudWatch
  11231. // Logs for a specific DB instance or DB cluster.
  11232. //
  11233. // The EnableLogTypes and DisableLogTypes arrays determine which logs will be
  11234. // exported (or not exported) to CloudWatch Logs. The values within these arrays
  11235. // depend on the DB engine being used. For more information, see Publishing
  11236. // Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch)
  11237. // in the Amazon RDS User Guide.
  11238. type CloudwatchLogsExportConfiguration struct {
  11239. _ struct{} `type:"structure"`
  11240. // The list of log types to disable.
  11241. DisableLogTypes []*string `type:"list"`
  11242. // The list of log types to enable.
  11243. EnableLogTypes []*string `type:"list"`
  11244. }
  11245. // String returns the string representation
  11246. func (s CloudwatchLogsExportConfiguration) String() string {
  11247. return awsutil.Prettify(s)
  11248. }
  11249. // GoString returns the string representation
  11250. func (s CloudwatchLogsExportConfiguration) GoString() string {
  11251. return s.String()
  11252. }
  11253. // SetDisableLogTypes sets the DisableLogTypes field's value.
  11254. func (s *CloudwatchLogsExportConfiguration) SetDisableLogTypes(v []*string) *CloudwatchLogsExportConfiguration {
  11255. s.DisableLogTypes = v
  11256. return s
  11257. }
  11258. // SetEnableLogTypes sets the EnableLogTypes field's value.
  11259. func (s *CloudwatchLogsExportConfiguration) SetEnableLogTypes(v []*string) *CloudwatchLogsExportConfiguration {
  11260. s.EnableLogTypes = v
  11261. return s
  11262. }
  11263. type CopyDBClusterParameterGroupInput struct {
  11264. _ struct{} `type:"structure"`
  11265. // The identifier or Amazon Resource Name (ARN) for the source DB cluster parameter
  11266. // group. For information about creating an ARN, see Constructing an ARN for
  11267. // Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing)
  11268. // in the Amazon Aurora User Guide.
  11269. //
  11270. // Constraints:
  11271. //
  11272. // * Must specify a valid DB cluster parameter group.
  11273. //
  11274. // * If the source DB cluster parameter group is in the same AWS Region as
  11275. // the copy, specify a valid DB parameter group identifier, for example my-db-cluster-param-group,
  11276. // or a valid ARN.
  11277. //
  11278. // * If the source DB parameter group is in a different AWS Region than the
  11279. // copy, specify a valid DB cluster parameter group ARN, for example arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1.
  11280. //
  11281. // SourceDBClusterParameterGroupIdentifier is a required field
  11282. SourceDBClusterParameterGroupIdentifier *string `type:"string" required:"true"`
  11283. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  11284. // in the Amazon RDS User Guide.
  11285. Tags []*Tag `locationNameList:"Tag" type:"list"`
  11286. // A description for the copied DB cluster parameter group.
  11287. //
  11288. // TargetDBClusterParameterGroupDescription is a required field
  11289. TargetDBClusterParameterGroupDescription *string `type:"string" required:"true"`
  11290. // The identifier for the copied DB cluster parameter group.
  11291. //
  11292. // Constraints:
  11293. //
  11294. // * Can't be null, empty, or blank
  11295. //
  11296. // * Must contain from 1 to 255 letters, numbers, or hyphens
  11297. //
  11298. // * First character must be a letter
  11299. //
  11300. // * Can't end with a hyphen or contain two consecutive hyphens
  11301. //
  11302. // Example: my-cluster-param-group1
  11303. //
  11304. // TargetDBClusterParameterGroupIdentifier is a required field
  11305. TargetDBClusterParameterGroupIdentifier *string `type:"string" required:"true"`
  11306. }
  11307. // String returns the string representation
  11308. func (s CopyDBClusterParameterGroupInput) String() string {
  11309. return awsutil.Prettify(s)
  11310. }
  11311. // GoString returns the string representation
  11312. func (s CopyDBClusterParameterGroupInput) GoString() string {
  11313. return s.String()
  11314. }
  11315. // Validate inspects the fields of the type to determine if they are valid.
  11316. func (s *CopyDBClusterParameterGroupInput) Validate() error {
  11317. invalidParams := request.ErrInvalidParams{Context: "CopyDBClusterParameterGroupInput"}
  11318. if s.SourceDBClusterParameterGroupIdentifier == nil {
  11319. invalidParams.Add(request.NewErrParamRequired("SourceDBClusterParameterGroupIdentifier"))
  11320. }
  11321. if s.TargetDBClusterParameterGroupDescription == nil {
  11322. invalidParams.Add(request.NewErrParamRequired("TargetDBClusterParameterGroupDescription"))
  11323. }
  11324. if s.TargetDBClusterParameterGroupIdentifier == nil {
  11325. invalidParams.Add(request.NewErrParamRequired("TargetDBClusterParameterGroupIdentifier"))
  11326. }
  11327. if invalidParams.Len() > 0 {
  11328. return invalidParams
  11329. }
  11330. return nil
  11331. }
  11332. // SetSourceDBClusterParameterGroupIdentifier sets the SourceDBClusterParameterGroupIdentifier field's value.
  11333. func (s *CopyDBClusterParameterGroupInput) SetSourceDBClusterParameterGroupIdentifier(v string) *CopyDBClusterParameterGroupInput {
  11334. s.SourceDBClusterParameterGroupIdentifier = &v
  11335. return s
  11336. }
  11337. // SetTags sets the Tags field's value.
  11338. func (s *CopyDBClusterParameterGroupInput) SetTags(v []*Tag) *CopyDBClusterParameterGroupInput {
  11339. s.Tags = v
  11340. return s
  11341. }
  11342. // SetTargetDBClusterParameterGroupDescription sets the TargetDBClusterParameterGroupDescription field's value.
  11343. func (s *CopyDBClusterParameterGroupInput) SetTargetDBClusterParameterGroupDescription(v string) *CopyDBClusterParameterGroupInput {
  11344. s.TargetDBClusterParameterGroupDescription = &v
  11345. return s
  11346. }
  11347. // SetTargetDBClusterParameterGroupIdentifier sets the TargetDBClusterParameterGroupIdentifier field's value.
  11348. func (s *CopyDBClusterParameterGroupInput) SetTargetDBClusterParameterGroupIdentifier(v string) *CopyDBClusterParameterGroupInput {
  11349. s.TargetDBClusterParameterGroupIdentifier = &v
  11350. return s
  11351. }
  11352. type CopyDBClusterParameterGroupOutput struct {
  11353. _ struct{} `type:"structure"`
  11354. // Contains the details of an Amazon RDS DB cluster parameter group.
  11355. //
  11356. // This data type is used as a response element in the DescribeDBClusterParameterGroups
  11357. // action.
  11358. DBClusterParameterGroup *DBClusterParameterGroup `type:"structure"`
  11359. }
  11360. // String returns the string representation
  11361. func (s CopyDBClusterParameterGroupOutput) String() string {
  11362. return awsutil.Prettify(s)
  11363. }
  11364. // GoString returns the string representation
  11365. func (s CopyDBClusterParameterGroupOutput) GoString() string {
  11366. return s.String()
  11367. }
  11368. // SetDBClusterParameterGroup sets the DBClusterParameterGroup field's value.
  11369. func (s *CopyDBClusterParameterGroupOutput) SetDBClusterParameterGroup(v *DBClusterParameterGroup) *CopyDBClusterParameterGroupOutput {
  11370. s.DBClusterParameterGroup = v
  11371. return s
  11372. }
  11373. type CopyDBClusterSnapshotInput struct {
  11374. _ struct{} `type:"structure"`
  11375. // True to copy all tags from the source DB cluster snapshot to the target DB
  11376. // cluster snapshot, and otherwise false. The default is false.
  11377. CopyTags *bool `type:"boolean"`
  11378. // DestinationRegion is used for presigning the request to a given region.
  11379. DestinationRegion *string `type:"string"`
  11380. // The AWS AWS KMS key ID for an encrypted DB cluster snapshot. The KMS key
  11381. // ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key
  11382. // alias for the KMS encryption key.
  11383. //
  11384. // If you copy an encrypted DB cluster snapshot from your AWS account, you can
  11385. // specify a value for KmsKeyId to encrypt the copy with a new KMS encryption
  11386. // key. If you don't specify a value for KmsKeyId, then the copy of the DB cluster
  11387. // snapshot is encrypted with the same KMS key as the source DB cluster snapshot.
  11388. //
  11389. // If you copy an encrypted DB cluster snapshot that is shared from another
  11390. // AWS account, then you must specify a value for KmsKeyId.
  11391. //
  11392. // To copy an encrypted DB cluster snapshot to another AWS Region, you must
  11393. // set KmsKeyId to the KMS key ID you want to use to encrypt the copy of the
  11394. // DB cluster snapshot in the destination AWS Region. KMS encryption keys are
  11395. // specific to the AWS Region that they are created in, and you can't use encryption
  11396. // keys from one AWS Region in another AWS Region.
  11397. //
  11398. // If you copy an unencrypted DB cluster snapshot and specify a value for the
  11399. // KmsKeyId parameter, an error is returned.
  11400. KmsKeyId *string `type:"string"`
  11401. // The URL that contains a Signature Version 4 signed request for the CopyDBClusterSnapshot
  11402. // API action in the AWS Region that contains the source DB cluster snapshot
  11403. // to copy. The PreSignedUrl parameter must be used when copying an encrypted
  11404. // DB cluster snapshot from another AWS Region.
  11405. //
  11406. // The pre-signed URL must be a valid request for the CopyDBSClusterSnapshot
  11407. // API action that can be executed in the source AWS Region that contains the
  11408. // encrypted DB cluster snapshot to be copied. The pre-signed URL request must
  11409. // contain the following parameter values:
  11410. //
  11411. // * KmsKeyId - The AWS KMS key identifier for the key to use to encrypt
  11412. // the copy of the DB cluster snapshot in the destination AWS Region. This
  11413. // is the same identifier for both the CopyDBClusterSnapshot action that
  11414. // is called in the destination AWS Region, and the action contained in the
  11415. // pre-signed URL.
  11416. //
  11417. // * DestinationRegion - The name of the AWS Region that the DB cluster snapshot
  11418. // will be created in.
  11419. //
  11420. // * SourceDBClusterSnapshotIdentifier - The DB cluster snapshot identifier
  11421. // for the encrypted DB cluster snapshot to be copied. This identifier must
  11422. // be in the Amazon Resource Name (ARN) format for the source AWS Region.
  11423. // For example, if you are copying an encrypted DB cluster snapshot from
  11424. // the us-west-2 AWS Region, then your SourceDBClusterSnapshotIdentifier
  11425. // looks like the following example: arn:aws:rds:us-west-2:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20161115.
  11426. //
  11427. // To learn how to generate a Signature Version 4 signed request, see Authenticating
  11428. // Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
  11429. // and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
  11430. PreSignedUrl *string `type:"string"`
  11431. // The identifier of the DB cluster snapshot to copy. This parameter is not
  11432. // case-sensitive.
  11433. //
  11434. // You can't copy an encrypted, shared DB cluster snapshot from one AWS Region
  11435. // to another.
  11436. //
  11437. // Constraints:
  11438. //
  11439. // * Must specify a valid system snapshot in the "available" state.
  11440. //
  11441. // * If the source snapshot is in the same AWS Region as the copy, specify
  11442. // a valid DB snapshot identifier.
  11443. //
  11444. // * If the source snapshot is in a different AWS Region than the copy, specify
  11445. // a valid DB cluster snapshot ARN. For more information, go to Copying
  11446. // Snapshots Across AWS Regions (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_CopySnapshot.html#USER_CopySnapshot.AcrossRegions)
  11447. // in the Amazon Aurora User Guide.
  11448. //
  11449. // Example: my-cluster-snapshot1
  11450. //
  11451. // SourceDBClusterSnapshotIdentifier is a required field
  11452. SourceDBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  11453. // SourceRegion is the source region where the resource exists. This is not
  11454. // sent over the wire and is only used for presigning. This value should always
  11455. // have the same region as the source ARN.
  11456. SourceRegion *string `type:"string" ignore:"true"`
  11457. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  11458. // in the Amazon RDS User Guide.
  11459. Tags []*Tag `locationNameList:"Tag" type:"list"`
  11460. // The identifier of the new DB cluster snapshot to create from the source DB
  11461. // cluster snapshot. This parameter is not case-sensitive.
  11462. //
  11463. // Constraints:
  11464. //
  11465. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  11466. //
  11467. // * First character must be a letter.
  11468. //
  11469. // * Can't end with a hyphen or contain two consecutive hyphens.
  11470. //
  11471. // Example: my-cluster-snapshot2
  11472. //
  11473. // TargetDBClusterSnapshotIdentifier is a required field
  11474. TargetDBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  11475. }
  11476. // String returns the string representation
  11477. func (s CopyDBClusterSnapshotInput) String() string {
  11478. return awsutil.Prettify(s)
  11479. }
  11480. // GoString returns the string representation
  11481. func (s CopyDBClusterSnapshotInput) GoString() string {
  11482. return s.String()
  11483. }
  11484. // Validate inspects the fields of the type to determine if they are valid.
  11485. func (s *CopyDBClusterSnapshotInput) Validate() error {
  11486. invalidParams := request.ErrInvalidParams{Context: "CopyDBClusterSnapshotInput"}
  11487. if s.SourceDBClusterSnapshotIdentifier == nil {
  11488. invalidParams.Add(request.NewErrParamRequired("SourceDBClusterSnapshotIdentifier"))
  11489. }
  11490. if s.TargetDBClusterSnapshotIdentifier == nil {
  11491. invalidParams.Add(request.NewErrParamRequired("TargetDBClusterSnapshotIdentifier"))
  11492. }
  11493. if invalidParams.Len() > 0 {
  11494. return invalidParams
  11495. }
  11496. return nil
  11497. }
  11498. // SetCopyTags sets the CopyTags field's value.
  11499. func (s *CopyDBClusterSnapshotInput) SetCopyTags(v bool) *CopyDBClusterSnapshotInput {
  11500. s.CopyTags = &v
  11501. return s
  11502. }
  11503. // SetDestinationRegion sets the DestinationRegion field's value.
  11504. func (s *CopyDBClusterSnapshotInput) SetDestinationRegion(v string) *CopyDBClusterSnapshotInput {
  11505. s.DestinationRegion = &v
  11506. return s
  11507. }
  11508. // SetKmsKeyId sets the KmsKeyId field's value.
  11509. func (s *CopyDBClusterSnapshotInput) SetKmsKeyId(v string) *CopyDBClusterSnapshotInput {
  11510. s.KmsKeyId = &v
  11511. return s
  11512. }
  11513. // SetPreSignedUrl sets the PreSignedUrl field's value.
  11514. func (s *CopyDBClusterSnapshotInput) SetPreSignedUrl(v string) *CopyDBClusterSnapshotInput {
  11515. s.PreSignedUrl = &v
  11516. return s
  11517. }
  11518. // SetSourceDBClusterSnapshotIdentifier sets the SourceDBClusterSnapshotIdentifier field's value.
  11519. func (s *CopyDBClusterSnapshotInput) SetSourceDBClusterSnapshotIdentifier(v string) *CopyDBClusterSnapshotInput {
  11520. s.SourceDBClusterSnapshotIdentifier = &v
  11521. return s
  11522. }
  11523. // SetSourceRegion sets the SourceRegion field's value.
  11524. func (s *CopyDBClusterSnapshotInput) SetSourceRegion(v string) *CopyDBClusterSnapshotInput {
  11525. s.SourceRegion = &v
  11526. return s
  11527. }
  11528. // SetTags sets the Tags field's value.
  11529. func (s *CopyDBClusterSnapshotInput) SetTags(v []*Tag) *CopyDBClusterSnapshotInput {
  11530. s.Tags = v
  11531. return s
  11532. }
  11533. // SetTargetDBClusterSnapshotIdentifier sets the TargetDBClusterSnapshotIdentifier field's value.
  11534. func (s *CopyDBClusterSnapshotInput) SetTargetDBClusterSnapshotIdentifier(v string) *CopyDBClusterSnapshotInput {
  11535. s.TargetDBClusterSnapshotIdentifier = &v
  11536. return s
  11537. }
  11538. type CopyDBClusterSnapshotOutput struct {
  11539. _ struct{} `type:"structure"`
  11540. // Contains the details for an Amazon RDS DB cluster snapshot
  11541. //
  11542. // This data type is used as a response element in the DescribeDBClusterSnapshots
  11543. // action.
  11544. DBClusterSnapshot *DBClusterSnapshot `type:"structure"`
  11545. }
  11546. // String returns the string representation
  11547. func (s CopyDBClusterSnapshotOutput) String() string {
  11548. return awsutil.Prettify(s)
  11549. }
  11550. // GoString returns the string representation
  11551. func (s CopyDBClusterSnapshotOutput) GoString() string {
  11552. return s.String()
  11553. }
  11554. // SetDBClusterSnapshot sets the DBClusterSnapshot field's value.
  11555. func (s *CopyDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapshot) *CopyDBClusterSnapshotOutput {
  11556. s.DBClusterSnapshot = v
  11557. return s
  11558. }
  11559. type CopyDBParameterGroupInput struct {
  11560. _ struct{} `type:"structure"`
  11561. // The identifier or ARN for the source DB parameter group. For information
  11562. // about creating an ARN, see Constructing an ARN for Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing)
  11563. // in the Amazon RDS User Guide.
  11564. //
  11565. // Constraints:
  11566. //
  11567. // * Must specify a valid DB parameter group.
  11568. //
  11569. // * Must specify a valid DB parameter group identifier, for example my-db-param-group,
  11570. // or a valid ARN.
  11571. //
  11572. // SourceDBParameterGroupIdentifier is a required field
  11573. SourceDBParameterGroupIdentifier *string `type:"string" required:"true"`
  11574. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  11575. // in the Amazon RDS User Guide.
  11576. Tags []*Tag `locationNameList:"Tag" type:"list"`
  11577. // A description for the copied DB parameter group.
  11578. //
  11579. // TargetDBParameterGroupDescription is a required field
  11580. TargetDBParameterGroupDescription *string `type:"string" required:"true"`
  11581. // The identifier for the copied DB parameter group.
  11582. //
  11583. // Constraints:
  11584. //
  11585. // * Can't be null, empty, or blank
  11586. //
  11587. // * Must contain from 1 to 255 letters, numbers, or hyphens
  11588. //
  11589. // * First character must be a letter
  11590. //
  11591. // * Can't end with a hyphen or contain two consecutive hyphens
  11592. //
  11593. // Example: my-db-parameter-group
  11594. //
  11595. // TargetDBParameterGroupIdentifier is a required field
  11596. TargetDBParameterGroupIdentifier *string `type:"string" required:"true"`
  11597. }
  11598. // String returns the string representation
  11599. func (s CopyDBParameterGroupInput) String() string {
  11600. return awsutil.Prettify(s)
  11601. }
  11602. // GoString returns the string representation
  11603. func (s CopyDBParameterGroupInput) GoString() string {
  11604. return s.String()
  11605. }
  11606. // Validate inspects the fields of the type to determine if they are valid.
  11607. func (s *CopyDBParameterGroupInput) Validate() error {
  11608. invalidParams := request.ErrInvalidParams{Context: "CopyDBParameterGroupInput"}
  11609. if s.SourceDBParameterGroupIdentifier == nil {
  11610. invalidParams.Add(request.NewErrParamRequired("SourceDBParameterGroupIdentifier"))
  11611. }
  11612. if s.TargetDBParameterGroupDescription == nil {
  11613. invalidParams.Add(request.NewErrParamRequired("TargetDBParameterGroupDescription"))
  11614. }
  11615. if s.TargetDBParameterGroupIdentifier == nil {
  11616. invalidParams.Add(request.NewErrParamRequired("TargetDBParameterGroupIdentifier"))
  11617. }
  11618. if invalidParams.Len() > 0 {
  11619. return invalidParams
  11620. }
  11621. return nil
  11622. }
  11623. // SetSourceDBParameterGroupIdentifier sets the SourceDBParameterGroupIdentifier field's value.
  11624. func (s *CopyDBParameterGroupInput) SetSourceDBParameterGroupIdentifier(v string) *CopyDBParameterGroupInput {
  11625. s.SourceDBParameterGroupIdentifier = &v
  11626. return s
  11627. }
  11628. // SetTags sets the Tags field's value.
  11629. func (s *CopyDBParameterGroupInput) SetTags(v []*Tag) *CopyDBParameterGroupInput {
  11630. s.Tags = v
  11631. return s
  11632. }
  11633. // SetTargetDBParameterGroupDescription sets the TargetDBParameterGroupDescription field's value.
  11634. func (s *CopyDBParameterGroupInput) SetTargetDBParameterGroupDescription(v string) *CopyDBParameterGroupInput {
  11635. s.TargetDBParameterGroupDescription = &v
  11636. return s
  11637. }
  11638. // SetTargetDBParameterGroupIdentifier sets the TargetDBParameterGroupIdentifier field's value.
  11639. func (s *CopyDBParameterGroupInput) SetTargetDBParameterGroupIdentifier(v string) *CopyDBParameterGroupInput {
  11640. s.TargetDBParameterGroupIdentifier = &v
  11641. return s
  11642. }
  11643. type CopyDBParameterGroupOutput struct {
  11644. _ struct{} `type:"structure"`
  11645. // Contains the details of an Amazon RDS DB parameter group.
  11646. //
  11647. // This data type is used as a response element in the DescribeDBParameterGroups
  11648. // action.
  11649. DBParameterGroup *DBParameterGroup `type:"structure"`
  11650. }
  11651. // String returns the string representation
  11652. func (s CopyDBParameterGroupOutput) String() string {
  11653. return awsutil.Prettify(s)
  11654. }
  11655. // GoString returns the string representation
  11656. func (s CopyDBParameterGroupOutput) GoString() string {
  11657. return s.String()
  11658. }
  11659. // SetDBParameterGroup sets the DBParameterGroup field's value.
  11660. func (s *CopyDBParameterGroupOutput) SetDBParameterGroup(v *DBParameterGroup) *CopyDBParameterGroupOutput {
  11661. s.DBParameterGroup = v
  11662. return s
  11663. }
  11664. type CopyDBSnapshotInput struct {
  11665. _ struct{} `type:"structure"`
  11666. // True to copy all tags from the source DB snapshot to the target DB snapshot,
  11667. // and otherwise false. The default is false.
  11668. CopyTags *bool `type:"boolean"`
  11669. // DestinationRegion is used for presigning the request to a given region.
  11670. DestinationRegion *string `type:"string"`
  11671. // The AWS KMS key ID for an encrypted DB snapshot. The KMS key ID is the Amazon
  11672. // Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS
  11673. // encryption key.
  11674. //
  11675. // If you copy an encrypted DB snapshot from your AWS account, you can specify
  11676. // a value for this parameter to encrypt the copy with a new KMS encryption
  11677. // key. If you don't specify a value for this parameter, then the copy of the
  11678. // DB snapshot is encrypted with the same KMS key as the source DB snapshot.
  11679. //
  11680. // If you copy an encrypted DB snapshot that is shared from another AWS account,
  11681. // then you must specify a value for this parameter.
  11682. //
  11683. // If you specify this parameter when you copy an unencrypted snapshot, the
  11684. // copy is encrypted.
  11685. //
  11686. // If you copy an encrypted snapshot to a different AWS Region, then you must
  11687. // specify a KMS key for the destination AWS Region. KMS encryption keys are
  11688. // specific to the AWS Region that they are created in, and you can't use encryption
  11689. // keys from one AWS Region in another AWS Region.
  11690. KmsKeyId *string `type:"string"`
  11691. // The name of an option group to associate with the copy of the snapshot.
  11692. //
  11693. // Specify this option if you are copying a snapshot from one AWS Region to
  11694. // another, and your DB instance uses a nondefault option group. If your source
  11695. // DB instance uses Transparent Data Encryption for Oracle or Microsoft SQL
  11696. // Server, you must specify this option when copying across AWS Regions. For
  11697. // more information, see Option Group Considerations (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html#USER_CopySnapshot.Options)
  11698. // in the Amazon RDS User Guide.
  11699. OptionGroupName *string `type:"string"`
  11700. // The URL that contains a Signature Version 4 signed request for the CopyDBSnapshot
  11701. // API action in the source AWS Region that contains the source DB snapshot
  11702. // to copy.
  11703. //
  11704. // You must specify this parameter when you copy an encrypted DB snapshot from
  11705. // another AWS Region by using the Amazon RDS API. You can specify the --source-region
  11706. // option instead of this parameter when you copy an encrypted DB snapshot from
  11707. // another AWS Region by using the AWS CLI.
  11708. //
  11709. // The presigned URL must be a valid request for the CopyDBSnapshot API action
  11710. // that can be executed in the source AWS Region that contains the encrypted
  11711. // DB snapshot to be copied. The presigned URL request must contain the following
  11712. // parameter values:
  11713. //
  11714. // * DestinationRegion - The AWS Region that the encrypted DB snapshot is
  11715. // copied to. This AWS Region is the same one where the CopyDBSnapshot action
  11716. // is called that contains this presigned URL.
  11717. //
  11718. // For example, if you copy an encrypted DB snapshot from the us-west-2 AWS
  11719. // Region to the us-east-1 AWS Region, then you call the CopyDBSnapshot action
  11720. // in the us-east-1 AWS Region and provide a presigned URL that contains
  11721. // a call to the CopyDBSnapshot action in the us-west-2 AWS Region. For this
  11722. // example, the DestinationRegion in the presigned URL must be set to the
  11723. // us-east-1 AWS Region.
  11724. //
  11725. // * KmsKeyId - The AWS KMS key identifier for the key to use to encrypt
  11726. // the copy of the DB snapshot in the destination AWS Region. This is the
  11727. // same identifier for both the CopyDBSnapshot action that is called in the
  11728. // destination AWS Region, and the action contained in the presigned URL.
  11729. //
  11730. //
  11731. // * SourceDBSnapshotIdentifier - The DB snapshot identifier for the encrypted
  11732. // snapshot to be copied. This identifier must be in the Amazon Resource
  11733. // Name (ARN) format for the source AWS Region. For example, if you are copying
  11734. // an encrypted DB snapshot from the us-west-2 AWS Region, then your SourceDBSnapshotIdentifier
  11735. // looks like the following example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20161115.
  11736. //
  11737. //
  11738. // To learn how to generate a Signature Version 4 signed request, see Authenticating
  11739. // Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
  11740. // and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
  11741. PreSignedUrl *string `type:"string"`
  11742. // The identifier for the source DB snapshot.
  11743. //
  11744. // If the source snapshot is in the same AWS Region as the copy, specify a valid
  11745. // DB snapshot identifier. For example, you might specify rds:mysql-instance1-snapshot-20130805.
  11746. //
  11747. // If the source snapshot is in a different AWS Region than the copy, specify
  11748. // a valid DB snapshot ARN. For example, you might specify arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20130805.
  11749. //
  11750. // If you are copying from a shared manual DB snapshot, this parameter must
  11751. // be the Amazon Resource Name (ARN) of the shared DB snapshot.
  11752. //
  11753. // If you are copying an encrypted snapshot this parameter must be in the ARN
  11754. // format for the source AWS Region, and must match the SourceDBSnapshotIdentifier
  11755. // in the PreSignedUrl parameter.
  11756. //
  11757. // Constraints:
  11758. //
  11759. // * Must specify a valid system snapshot in the "available" state.
  11760. //
  11761. // Example: rds:mydb-2012-04-02-00-01
  11762. //
  11763. // Example: arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20130805
  11764. //
  11765. // SourceDBSnapshotIdentifier is a required field
  11766. SourceDBSnapshotIdentifier *string `type:"string" required:"true"`
  11767. // SourceRegion is the source region where the resource exists. This is not
  11768. // sent over the wire and is only used for presigning. This value should always
  11769. // have the same region as the source ARN.
  11770. SourceRegion *string `type:"string" ignore:"true"`
  11771. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  11772. // in the Amazon RDS User Guide.
  11773. Tags []*Tag `locationNameList:"Tag" type:"list"`
  11774. // The identifier for the copy of the snapshot.
  11775. //
  11776. // Constraints:
  11777. //
  11778. // * Can't be null, empty, or blank
  11779. //
  11780. // * Must contain from 1 to 255 letters, numbers, or hyphens
  11781. //
  11782. // * First character must be a letter
  11783. //
  11784. // * Can't end with a hyphen or contain two consecutive hyphens
  11785. //
  11786. // Example: my-db-snapshot
  11787. //
  11788. // TargetDBSnapshotIdentifier is a required field
  11789. TargetDBSnapshotIdentifier *string `type:"string" required:"true"`
  11790. }
  11791. // String returns the string representation
  11792. func (s CopyDBSnapshotInput) String() string {
  11793. return awsutil.Prettify(s)
  11794. }
  11795. // GoString returns the string representation
  11796. func (s CopyDBSnapshotInput) GoString() string {
  11797. return s.String()
  11798. }
  11799. // Validate inspects the fields of the type to determine if they are valid.
  11800. func (s *CopyDBSnapshotInput) Validate() error {
  11801. invalidParams := request.ErrInvalidParams{Context: "CopyDBSnapshotInput"}
  11802. if s.SourceDBSnapshotIdentifier == nil {
  11803. invalidParams.Add(request.NewErrParamRequired("SourceDBSnapshotIdentifier"))
  11804. }
  11805. if s.TargetDBSnapshotIdentifier == nil {
  11806. invalidParams.Add(request.NewErrParamRequired("TargetDBSnapshotIdentifier"))
  11807. }
  11808. if invalidParams.Len() > 0 {
  11809. return invalidParams
  11810. }
  11811. return nil
  11812. }
  11813. // SetCopyTags sets the CopyTags field's value.
  11814. func (s *CopyDBSnapshotInput) SetCopyTags(v bool) *CopyDBSnapshotInput {
  11815. s.CopyTags = &v
  11816. return s
  11817. }
  11818. // SetDestinationRegion sets the DestinationRegion field's value.
  11819. func (s *CopyDBSnapshotInput) SetDestinationRegion(v string) *CopyDBSnapshotInput {
  11820. s.DestinationRegion = &v
  11821. return s
  11822. }
  11823. // SetKmsKeyId sets the KmsKeyId field's value.
  11824. func (s *CopyDBSnapshotInput) SetKmsKeyId(v string) *CopyDBSnapshotInput {
  11825. s.KmsKeyId = &v
  11826. return s
  11827. }
  11828. // SetOptionGroupName sets the OptionGroupName field's value.
  11829. func (s *CopyDBSnapshotInput) SetOptionGroupName(v string) *CopyDBSnapshotInput {
  11830. s.OptionGroupName = &v
  11831. return s
  11832. }
  11833. // SetPreSignedUrl sets the PreSignedUrl field's value.
  11834. func (s *CopyDBSnapshotInput) SetPreSignedUrl(v string) *CopyDBSnapshotInput {
  11835. s.PreSignedUrl = &v
  11836. return s
  11837. }
  11838. // SetSourceDBSnapshotIdentifier sets the SourceDBSnapshotIdentifier field's value.
  11839. func (s *CopyDBSnapshotInput) SetSourceDBSnapshotIdentifier(v string) *CopyDBSnapshotInput {
  11840. s.SourceDBSnapshotIdentifier = &v
  11841. return s
  11842. }
  11843. // SetSourceRegion sets the SourceRegion field's value.
  11844. func (s *CopyDBSnapshotInput) SetSourceRegion(v string) *CopyDBSnapshotInput {
  11845. s.SourceRegion = &v
  11846. return s
  11847. }
  11848. // SetTags sets the Tags field's value.
  11849. func (s *CopyDBSnapshotInput) SetTags(v []*Tag) *CopyDBSnapshotInput {
  11850. s.Tags = v
  11851. return s
  11852. }
  11853. // SetTargetDBSnapshotIdentifier sets the TargetDBSnapshotIdentifier field's value.
  11854. func (s *CopyDBSnapshotInput) SetTargetDBSnapshotIdentifier(v string) *CopyDBSnapshotInput {
  11855. s.TargetDBSnapshotIdentifier = &v
  11856. return s
  11857. }
  11858. type CopyDBSnapshotOutput struct {
  11859. _ struct{} `type:"structure"`
  11860. // Contains the details of an Amazon RDS DB snapshot.
  11861. //
  11862. // This data type is used as a response element in the DescribeDBSnapshots action.
  11863. DBSnapshot *DBSnapshot `type:"structure"`
  11864. }
  11865. // String returns the string representation
  11866. func (s CopyDBSnapshotOutput) String() string {
  11867. return awsutil.Prettify(s)
  11868. }
  11869. // GoString returns the string representation
  11870. func (s CopyDBSnapshotOutput) GoString() string {
  11871. return s.String()
  11872. }
  11873. // SetDBSnapshot sets the DBSnapshot field's value.
  11874. func (s *CopyDBSnapshotOutput) SetDBSnapshot(v *DBSnapshot) *CopyDBSnapshotOutput {
  11875. s.DBSnapshot = v
  11876. return s
  11877. }
  11878. type CopyOptionGroupInput struct {
  11879. _ struct{} `type:"structure"`
  11880. // The identifier or ARN for the source option group. For information about
  11881. // creating an ARN, see Constructing an ARN for Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing)
  11882. // in the Amazon RDS User Guide.
  11883. //
  11884. // Constraints:
  11885. //
  11886. // * Must specify a valid option group.
  11887. //
  11888. // * If the source option group is in the same AWS Region as the copy, specify
  11889. // a valid option group identifier, for example my-option-group, or a valid
  11890. // ARN.
  11891. //
  11892. // * If the source option group is in a different AWS Region than the copy,
  11893. // specify a valid option group ARN, for example arn:aws:rds:us-west-2:123456789012:og:special-options.
  11894. //
  11895. // SourceOptionGroupIdentifier is a required field
  11896. SourceOptionGroupIdentifier *string `type:"string" required:"true"`
  11897. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  11898. // in the Amazon RDS User Guide.
  11899. Tags []*Tag `locationNameList:"Tag" type:"list"`
  11900. // The description for the copied option group.
  11901. //
  11902. // TargetOptionGroupDescription is a required field
  11903. TargetOptionGroupDescription *string `type:"string" required:"true"`
  11904. // The identifier for the copied option group.
  11905. //
  11906. // Constraints:
  11907. //
  11908. // * Can't be null, empty, or blank
  11909. //
  11910. // * Must contain from 1 to 255 letters, numbers, or hyphens
  11911. //
  11912. // * First character must be a letter
  11913. //
  11914. // * Can't end with a hyphen or contain two consecutive hyphens
  11915. //
  11916. // Example: my-option-group
  11917. //
  11918. // TargetOptionGroupIdentifier is a required field
  11919. TargetOptionGroupIdentifier *string `type:"string" required:"true"`
  11920. }
  11921. // String returns the string representation
  11922. func (s CopyOptionGroupInput) String() string {
  11923. return awsutil.Prettify(s)
  11924. }
  11925. // GoString returns the string representation
  11926. func (s CopyOptionGroupInput) GoString() string {
  11927. return s.String()
  11928. }
  11929. // Validate inspects the fields of the type to determine if they are valid.
  11930. func (s *CopyOptionGroupInput) Validate() error {
  11931. invalidParams := request.ErrInvalidParams{Context: "CopyOptionGroupInput"}
  11932. if s.SourceOptionGroupIdentifier == nil {
  11933. invalidParams.Add(request.NewErrParamRequired("SourceOptionGroupIdentifier"))
  11934. }
  11935. if s.TargetOptionGroupDescription == nil {
  11936. invalidParams.Add(request.NewErrParamRequired("TargetOptionGroupDescription"))
  11937. }
  11938. if s.TargetOptionGroupIdentifier == nil {
  11939. invalidParams.Add(request.NewErrParamRequired("TargetOptionGroupIdentifier"))
  11940. }
  11941. if invalidParams.Len() > 0 {
  11942. return invalidParams
  11943. }
  11944. return nil
  11945. }
  11946. // SetSourceOptionGroupIdentifier sets the SourceOptionGroupIdentifier field's value.
  11947. func (s *CopyOptionGroupInput) SetSourceOptionGroupIdentifier(v string) *CopyOptionGroupInput {
  11948. s.SourceOptionGroupIdentifier = &v
  11949. return s
  11950. }
  11951. // SetTags sets the Tags field's value.
  11952. func (s *CopyOptionGroupInput) SetTags(v []*Tag) *CopyOptionGroupInput {
  11953. s.Tags = v
  11954. return s
  11955. }
  11956. // SetTargetOptionGroupDescription sets the TargetOptionGroupDescription field's value.
  11957. func (s *CopyOptionGroupInput) SetTargetOptionGroupDescription(v string) *CopyOptionGroupInput {
  11958. s.TargetOptionGroupDescription = &v
  11959. return s
  11960. }
  11961. // SetTargetOptionGroupIdentifier sets the TargetOptionGroupIdentifier field's value.
  11962. func (s *CopyOptionGroupInput) SetTargetOptionGroupIdentifier(v string) *CopyOptionGroupInput {
  11963. s.TargetOptionGroupIdentifier = &v
  11964. return s
  11965. }
  11966. type CopyOptionGroupOutput struct {
  11967. _ struct{} `type:"structure"`
  11968. OptionGroup *OptionGroup `type:"structure"`
  11969. }
  11970. // String returns the string representation
  11971. func (s CopyOptionGroupOutput) String() string {
  11972. return awsutil.Prettify(s)
  11973. }
  11974. // GoString returns the string representation
  11975. func (s CopyOptionGroupOutput) GoString() string {
  11976. return s.String()
  11977. }
  11978. // SetOptionGroup sets the OptionGroup field's value.
  11979. func (s *CopyOptionGroupOutput) SetOptionGroup(v *OptionGroup) *CopyOptionGroupOutput {
  11980. s.OptionGroup = v
  11981. return s
  11982. }
  11983. type CreateDBClusterEndpointInput struct {
  11984. _ struct{} `type:"structure"`
  11985. // The identifier to use for the new endpoint. This parameter is stored as a
  11986. // lowercase string.
  11987. //
  11988. // DBClusterEndpointIdentifier is a required field
  11989. DBClusterEndpointIdentifier *string `type:"string" required:"true"`
  11990. // The DB cluster identifier of the DB cluster associated with the endpoint.
  11991. // This parameter is stored as a lowercase string.
  11992. //
  11993. // DBClusterIdentifier is a required field
  11994. DBClusterIdentifier *string `type:"string" required:"true"`
  11995. // The type of the endpoint. One of: READER, ANY.
  11996. //
  11997. // EndpointType is a required field
  11998. EndpointType *string `type:"string" required:"true"`
  11999. // List of DB instance identifiers that aren't part of the custom endpoint group.
  12000. // All other eligible instances are reachable through the custom endpoint. Only
  12001. // relevant if the list of static members is empty.
  12002. ExcludedMembers []*string `type:"list"`
  12003. // List of DB instance identifiers that are part of the custom endpoint group.
  12004. StaticMembers []*string `type:"list"`
  12005. }
  12006. // String returns the string representation
  12007. func (s CreateDBClusterEndpointInput) String() string {
  12008. return awsutil.Prettify(s)
  12009. }
  12010. // GoString returns the string representation
  12011. func (s CreateDBClusterEndpointInput) GoString() string {
  12012. return s.String()
  12013. }
  12014. // Validate inspects the fields of the type to determine if they are valid.
  12015. func (s *CreateDBClusterEndpointInput) Validate() error {
  12016. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterEndpointInput"}
  12017. if s.DBClusterEndpointIdentifier == nil {
  12018. invalidParams.Add(request.NewErrParamRequired("DBClusterEndpointIdentifier"))
  12019. }
  12020. if s.DBClusterIdentifier == nil {
  12021. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  12022. }
  12023. if s.EndpointType == nil {
  12024. invalidParams.Add(request.NewErrParamRequired("EndpointType"))
  12025. }
  12026. if invalidParams.Len() > 0 {
  12027. return invalidParams
  12028. }
  12029. return nil
  12030. }
  12031. // SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value.
  12032. func (s *CreateDBClusterEndpointInput) SetDBClusterEndpointIdentifier(v string) *CreateDBClusterEndpointInput {
  12033. s.DBClusterEndpointIdentifier = &v
  12034. return s
  12035. }
  12036. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  12037. func (s *CreateDBClusterEndpointInput) SetDBClusterIdentifier(v string) *CreateDBClusterEndpointInput {
  12038. s.DBClusterIdentifier = &v
  12039. return s
  12040. }
  12041. // SetEndpointType sets the EndpointType field's value.
  12042. func (s *CreateDBClusterEndpointInput) SetEndpointType(v string) *CreateDBClusterEndpointInput {
  12043. s.EndpointType = &v
  12044. return s
  12045. }
  12046. // SetExcludedMembers sets the ExcludedMembers field's value.
  12047. func (s *CreateDBClusterEndpointInput) SetExcludedMembers(v []*string) *CreateDBClusterEndpointInput {
  12048. s.ExcludedMembers = v
  12049. return s
  12050. }
  12051. // SetStaticMembers sets the StaticMembers field's value.
  12052. func (s *CreateDBClusterEndpointInput) SetStaticMembers(v []*string) *CreateDBClusterEndpointInput {
  12053. s.StaticMembers = v
  12054. return s
  12055. }
  12056. // This data type represents the information you need to connect to an Amazon
  12057. // Aurora DB cluster. This data type is used as a response element in the following
  12058. // actions:
  12059. //
  12060. // * CreateDBClusterEndpoint
  12061. //
  12062. // * DescribeDBClusterEndpoints
  12063. //
  12064. // * ModifyDBClusterEndpoint
  12065. //
  12066. // * DeleteDBClusterEndpoint
  12067. //
  12068. // For the data structure that represents Amazon RDS DB instance endpoints,
  12069. // see Endpoint.
  12070. type CreateDBClusterEndpointOutput struct {
  12071. _ struct{} `type:"structure"`
  12072. // The type associated with a custom endpoint. One of: READER, ANY.
  12073. CustomEndpointType *string `type:"string"`
  12074. // The Amazon Resource Name (ARN) for the endpoint.
  12075. DBClusterEndpointArn *string `type:"string"`
  12076. // The identifier associated with the endpoint. This parameter is stored as
  12077. // a lowercase string.
  12078. DBClusterEndpointIdentifier *string `type:"string"`
  12079. // A unique system-generated identifier for an endpoint. It remains the same
  12080. // for the whole life of the endpoint.
  12081. DBClusterEndpointResourceIdentifier *string `type:"string"`
  12082. // The DB cluster identifier of the DB cluster associated with the endpoint.
  12083. // This parameter is stored as a lowercase string.
  12084. DBClusterIdentifier *string `type:"string"`
  12085. // The DNS address of the endpoint.
  12086. Endpoint *string `type:"string"`
  12087. // The type of the endpoint. One of: READER, WRITER, CUSTOM.
  12088. EndpointType *string `type:"string"`
  12089. // List of DB instance identifiers that aren't part of the custom endpoint group.
  12090. // All other eligible instances are reachable through the custom endpoint. Only
  12091. // relevant if the list of static members is empty.
  12092. ExcludedMembers []*string `type:"list"`
  12093. // List of DB instance identifiers that are part of the custom endpoint group.
  12094. StaticMembers []*string `type:"list"`
  12095. // The current status of the endpoint. One of: creating, available, deleting,
  12096. // modifying.
  12097. Status *string `type:"string"`
  12098. }
  12099. // String returns the string representation
  12100. func (s CreateDBClusterEndpointOutput) String() string {
  12101. return awsutil.Prettify(s)
  12102. }
  12103. // GoString returns the string representation
  12104. func (s CreateDBClusterEndpointOutput) GoString() string {
  12105. return s.String()
  12106. }
  12107. // SetCustomEndpointType sets the CustomEndpointType field's value.
  12108. func (s *CreateDBClusterEndpointOutput) SetCustomEndpointType(v string) *CreateDBClusterEndpointOutput {
  12109. s.CustomEndpointType = &v
  12110. return s
  12111. }
  12112. // SetDBClusterEndpointArn sets the DBClusterEndpointArn field's value.
  12113. func (s *CreateDBClusterEndpointOutput) SetDBClusterEndpointArn(v string) *CreateDBClusterEndpointOutput {
  12114. s.DBClusterEndpointArn = &v
  12115. return s
  12116. }
  12117. // SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value.
  12118. func (s *CreateDBClusterEndpointOutput) SetDBClusterEndpointIdentifier(v string) *CreateDBClusterEndpointOutput {
  12119. s.DBClusterEndpointIdentifier = &v
  12120. return s
  12121. }
  12122. // SetDBClusterEndpointResourceIdentifier sets the DBClusterEndpointResourceIdentifier field's value.
  12123. func (s *CreateDBClusterEndpointOutput) SetDBClusterEndpointResourceIdentifier(v string) *CreateDBClusterEndpointOutput {
  12124. s.DBClusterEndpointResourceIdentifier = &v
  12125. return s
  12126. }
  12127. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  12128. func (s *CreateDBClusterEndpointOutput) SetDBClusterIdentifier(v string) *CreateDBClusterEndpointOutput {
  12129. s.DBClusterIdentifier = &v
  12130. return s
  12131. }
  12132. // SetEndpoint sets the Endpoint field's value.
  12133. func (s *CreateDBClusterEndpointOutput) SetEndpoint(v string) *CreateDBClusterEndpointOutput {
  12134. s.Endpoint = &v
  12135. return s
  12136. }
  12137. // SetEndpointType sets the EndpointType field's value.
  12138. func (s *CreateDBClusterEndpointOutput) SetEndpointType(v string) *CreateDBClusterEndpointOutput {
  12139. s.EndpointType = &v
  12140. return s
  12141. }
  12142. // SetExcludedMembers sets the ExcludedMembers field's value.
  12143. func (s *CreateDBClusterEndpointOutput) SetExcludedMembers(v []*string) *CreateDBClusterEndpointOutput {
  12144. s.ExcludedMembers = v
  12145. return s
  12146. }
  12147. // SetStaticMembers sets the StaticMembers field's value.
  12148. func (s *CreateDBClusterEndpointOutput) SetStaticMembers(v []*string) *CreateDBClusterEndpointOutput {
  12149. s.StaticMembers = v
  12150. return s
  12151. }
  12152. // SetStatus sets the Status field's value.
  12153. func (s *CreateDBClusterEndpointOutput) SetStatus(v string) *CreateDBClusterEndpointOutput {
  12154. s.Status = &v
  12155. return s
  12156. }
  12157. type CreateDBClusterInput struct {
  12158. _ struct{} `type:"structure"`
  12159. // A list of EC2 Availability Zones that instances in the DB cluster can be
  12160. // created in. For information on AWS Regions and Availability Zones, see Choosing
  12161. // the Regions and Availability Zones (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html)
  12162. // in the Amazon Aurora User Guide.
  12163. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  12164. // The target backtrack window, in seconds. To disable backtracking, set this
  12165. // value to 0.
  12166. //
  12167. // Default: 0
  12168. //
  12169. // Constraints:
  12170. //
  12171. // * If specified, this value must be set to a number from 0 to 259,200 (72
  12172. // hours).
  12173. BacktrackWindow *int64 `type:"long"`
  12174. // The number of days for which automated backups are retained. You must specify
  12175. // a minimum value of 1.
  12176. //
  12177. // Default: 1
  12178. //
  12179. // Constraints:
  12180. //
  12181. // * Must be a value from 1 to 35
  12182. BackupRetentionPeriod *int64 `type:"integer"`
  12183. // A value that indicates that the DB cluster should be associated with the
  12184. // specified CharacterSet.
  12185. CharacterSetName *string `type:"string"`
  12186. // The DB cluster identifier. This parameter is stored as a lowercase string.
  12187. //
  12188. // Constraints:
  12189. //
  12190. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  12191. //
  12192. // * First character must be a letter.
  12193. //
  12194. // * Can't end with a hyphen or contain two consecutive hyphens.
  12195. //
  12196. // Example: my-cluster1
  12197. //
  12198. // DBClusterIdentifier is a required field
  12199. DBClusterIdentifier *string `type:"string" required:"true"`
  12200. // The name of the DB cluster parameter group to associate with this DB cluster.
  12201. // If this argument is omitted, default.aurora5.6 is used.
  12202. //
  12203. // Constraints:
  12204. //
  12205. // * If supplied, must match the name of an existing DB cluster parameter
  12206. // group.
  12207. DBClusterParameterGroupName *string `type:"string"`
  12208. // A DB subnet group to associate with this DB cluster.
  12209. //
  12210. // Constraints: Must match the name of an existing DBSubnetGroup. Must not be
  12211. // default.
  12212. //
  12213. // Example: mySubnetgroup
  12214. DBSubnetGroupName *string `type:"string"`
  12215. // The name for your database of up to 64 alpha-numeric characters. If you do
  12216. // not provide a name, Amazon RDS will not create a database in the DB cluster
  12217. // you are creating.
  12218. DatabaseName *string `type:"string"`
  12219. // Indicates if the DB cluster should have deletion protection enabled. The
  12220. // database can't be deleted when this value is set to true. The default is
  12221. // false.
  12222. DeletionProtection *bool `type:"boolean"`
  12223. // DestinationRegion is used for presigning the request to a given region.
  12224. DestinationRegion *string `type:"string"`
  12225. // The list of log types that need to be enabled for exporting to CloudWatch
  12226. // Logs. The values in the list depend on the DB engine being used. For more
  12227. // information, see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch)
  12228. // in the Amazon Aurora User Guide.
  12229. EnableCloudwatchLogsExports []*string `type:"list"`
  12230. // True to enable mapping of AWS Identity and Access Management (IAM) accounts
  12231. // to database accounts, and otherwise false.
  12232. //
  12233. // Default: false
  12234. EnableIAMDatabaseAuthentication *bool `type:"boolean"`
  12235. // The name of the database engine to be used for this DB cluster.
  12236. //
  12237. // Valid Values: aurora (for MySQL 5.6-compatible Aurora), aurora-mysql (for
  12238. // MySQL 5.7-compatible Aurora), and aurora-postgresql
  12239. //
  12240. // Engine is a required field
  12241. Engine *string `type:"string" required:"true"`
  12242. // The DB engine mode of the DB cluster, either provisioned, serverless, parallelquery,
  12243. // or global.
  12244. EngineMode *string `type:"string"`
  12245. // The version number of the database engine to use.
  12246. //
  12247. // Aurora MySQL
  12248. //
  12249. // Example: 5.6.10a, 5.7.12
  12250. //
  12251. // Aurora PostgreSQL
  12252. //
  12253. // Example: 9.6.3
  12254. EngineVersion *string `type:"string"`
  12255. // The global cluster ID of an Aurora cluster that becomes the primary cluster
  12256. // in the new global database cluster.
  12257. GlobalClusterIdentifier *string `type:"string"`
  12258. // The AWS KMS key identifier for an encrypted DB cluster.
  12259. //
  12260. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  12261. // key. If you are creating a DB cluster with the same AWS account that owns
  12262. // the KMS encryption key used to encrypt the new DB cluster, then you can use
  12263. // the KMS key alias instead of the ARN for the KMS encryption key.
  12264. //
  12265. // If an encryption key is not specified in KmsKeyId:
  12266. //
  12267. // * If ReplicationSourceIdentifier identifies an encrypted source, then
  12268. // Amazon RDS will use the encryption key used to encrypt the source. Otherwise,
  12269. // Amazon RDS will use your default encryption key.
  12270. //
  12271. // * If the StorageEncrypted parameter is true and ReplicationSourceIdentifier
  12272. // is not specified, then Amazon RDS will use your default encryption key.
  12273. //
  12274. // AWS KMS creates the default encryption key for your AWS account. Your AWS
  12275. // account has a different default encryption key for each AWS Region.
  12276. //
  12277. // If you create a Read Replica of an encrypted DB cluster in another AWS Region,
  12278. // you must set KmsKeyId to a KMS key ID that is valid in the destination AWS
  12279. // Region. This key is used to encrypt the Read Replica in that AWS Region.
  12280. KmsKeyId *string `type:"string"`
  12281. // The password for the master database user. This password can contain any
  12282. // printable ASCII character except "/", """, or "@".
  12283. //
  12284. // Constraints: Must contain from 8 to 41 characters.
  12285. MasterUserPassword *string `type:"string"`
  12286. // The name of the master user for the DB cluster.
  12287. //
  12288. // Constraints:
  12289. //
  12290. // * Must be 1 to 16 letters or numbers.
  12291. //
  12292. // * First character must be a letter.
  12293. //
  12294. // * Can't be a reserved word for the chosen database engine.
  12295. MasterUsername *string `type:"string"`
  12296. // A value that indicates that the DB cluster should be associated with the
  12297. // specified option group.
  12298. //
  12299. // Permanent options can't be removed from an option group. The option group
  12300. // can't be removed from a DB cluster once it is associated with a DB cluster.
  12301. OptionGroupName *string `type:"string"`
  12302. // The port number on which the instances in the DB cluster accept connections.
  12303. //
  12304. // Default: 3306 if engine is set as aurora or 5432 if set to aurora-postgresql.
  12305. Port *int64 `type:"integer"`
  12306. // A URL that contains a Signature Version 4 signed request for the CreateDBCluster
  12307. // action to be called in the source AWS Region where the DB cluster is replicated
  12308. // from. You only need to specify PreSignedUrl when you are performing cross-region
  12309. // replication from an encrypted DB cluster.
  12310. //
  12311. // The pre-signed URL must be a valid request for the CreateDBCluster API action
  12312. // that can be executed in the source AWS Region that contains the encrypted
  12313. // DB cluster to be copied.
  12314. //
  12315. // The pre-signed URL request must contain the following parameter values:
  12316. //
  12317. // * KmsKeyId - The AWS KMS key identifier for the key to use to encrypt
  12318. // the copy of the DB cluster in the destination AWS Region. This should
  12319. // refer to the same KMS key for both the CreateDBCluster action that is
  12320. // called in the destination AWS Region, and the action contained in the
  12321. // pre-signed URL.
  12322. //
  12323. // * DestinationRegion - The name of the AWS Region that Aurora Read Replica
  12324. // will be created in.
  12325. //
  12326. // * ReplicationSourceIdentifier - The DB cluster identifier for the encrypted
  12327. // DB cluster to be copied. This identifier must be in the Amazon Resource
  12328. // Name (ARN) format for the source AWS Region. For example, if you are copying
  12329. // an encrypted DB cluster from the us-west-2 AWS Region, then your ReplicationSourceIdentifier
  12330. // would look like Example: arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1.
  12331. //
  12332. // To learn how to generate a Signature Version 4 signed request, see Authenticating
  12333. // Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
  12334. // and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
  12335. PreSignedUrl *string `type:"string"`
  12336. // The daily time range during which automated backups are created if automated
  12337. // backups are enabled using the BackupRetentionPeriod parameter.
  12338. //
  12339. // The default is a 30-minute window selected at random from an 8-hour block
  12340. // of time for each AWS Region. To see the time blocks available, see Adjusting
  12341. // the Preferred DB Cluster Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora)
  12342. // in the Amazon Aurora User Guide.
  12343. //
  12344. // Constraints:
  12345. //
  12346. // * Must be in the format hh24:mi-hh24:mi.
  12347. //
  12348. // * Must be in Universal Coordinated Time (UTC).
  12349. //
  12350. // * Must not conflict with the preferred maintenance window.
  12351. //
  12352. // * Must be at least 30 minutes.
  12353. PreferredBackupWindow *string `type:"string"`
  12354. // The weekly time range during which system maintenance can occur, in Universal
  12355. // Coordinated Time (UTC).
  12356. //
  12357. // Format: ddd:hh24:mi-ddd:hh24:mi
  12358. //
  12359. // The default is a 30-minute window selected at random from an 8-hour block
  12360. // of time for each AWS Region, occurring on a random day of the week. To see
  12361. // the time blocks available, see Adjusting the Preferred DB Cluster Maintenance
  12362. // Window (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora)
  12363. // in the Amazon Aurora User Guide.
  12364. //
  12365. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
  12366. //
  12367. // Constraints: Minimum 30-minute window.
  12368. PreferredMaintenanceWindow *string `type:"string"`
  12369. // The Amazon Resource Name (ARN) of the source DB instance or DB cluster if
  12370. // this DB cluster is created as a Read Replica.
  12371. ReplicationSourceIdentifier *string `type:"string"`
  12372. // For DB clusters in serverless DB engine mode, the scaling properties of the
  12373. // DB cluster.
  12374. ScalingConfiguration *ScalingConfiguration `type:"structure"`
  12375. // SourceRegion is the source region where the resource exists. This is not
  12376. // sent over the wire and is only used for presigning. This value should always
  12377. // have the same region as the source ARN.
  12378. SourceRegion *string `type:"string" ignore:"true"`
  12379. // Specifies whether the DB cluster is encrypted.
  12380. StorageEncrypted *bool `type:"boolean"`
  12381. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  12382. // in the Amazon RDS User Guide.
  12383. Tags []*Tag `locationNameList:"Tag" type:"list"`
  12384. // A list of EC2 VPC security groups to associate with this DB cluster.
  12385. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  12386. }
  12387. // String returns the string representation
  12388. func (s CreateDBClusterInput) String() string {
  12389. return awsutil.Prettify(s)
  12390. }
  12391. // GoString returns the string representation
  12392. func (s CreateDBClusterInput) GoString() string {
  12393. return s.String()
  12394. }
  12395. // Validate inspects the fields of the type to determine if they are valid.
  12396. func (s *CreateDBClusterInput) Validate() error {
  12397. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterInput"}
  12398. if s.DBClusterIdentifier == nil {
  12399. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  12400. }
  12401. if s.Engine == nil {
  12402. invalidParams.Add(request.NewErrParamRequired("Engine"))
  12403. }
  12404. if invalidParams.Len() > 0 {
  12405. return invalidParams
  12406. }
  12407. return nil
  12408. }
  12409. // SetAvailabilityZones sets the AvailabilityZones field's value.
  12410. func (s *CreateDBClusterInput) SetAvailabilityZones(v []*string) *CreateDBClusterInput {
  12411. s.AvailabilityZones = v
  12412. return s
  12413. }
  12414. // SetBacktrackWindow sets the BacktrackWindow field's value.
  12415. func (s *CreateDBClusterInput) SetBacktrackWindow(v int64) *CreateDBClusterInput {
  12416. s.BacktrackWindow = &v
  12417. return s
  12418. }
  12419. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  12420. func (s *CreateDBClusterInput) SetBackupRetentionPeriod(v int64) *CreateDBClusterInput {
  12421. s.BackupRetentionPeriod = &v
  12422. return s
  12423. }
  12424. // SetCharacterSetName sets the CharacterSetName field's value.
  12425. func (s *CreateDBClusterInput) SetCharacterSetName(v string) *CreateDBClusterInput {
  12426. s.CharacterSetName = &v
  12427. return s
  12428. }
  12429. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  12430. func (s *CreateDBClusterInput) SetDBClusterIdentifier(v string) *CreateDBClusterInput {
  12431. s.DBClusterIdentifier = &v
  12432. return s
  12433. }
  12434. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  12435. func (s *CreateDBClusterInput) SetDBClusterParameterGroupName(v string) *CreateDBClusterInput {
  12436. s.DBClusterParameterGroupName = &v
  12437. return s
  12438. }
  12439. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  12440. func (s *CreateDBClusterInput) SetDBSubnetGroupName(v string) *CreateDBClusterInput {
  12441. s.DBSubnetGroupName = &v
  12442. return s
  12443. }
  12444. // SetDatabaseName sets the DatabaseName field's value.
  12445. func (s *CreateDBClusterInput) SetDatabaseName(v string) *CreateDBClusterInput {
  12446. s.DatabaseName = &v
  12447. return s
  12448. }
  12449. // SetDeletionProtection sets the DeletionProtection field's value.
  12450. func (s *CreateDBClusterInput) SetDeletionProtection(v bool) *CreateDBClusterInput {
  12451. s.DeletionProtection = &v
  12452. return s
  12453. }
  12454. // SetDestinationRegion sets the DestinationRegion field's value.
  12455. func (s *CreateDBClusterInput) SetDestinationRegion(v string) *CreateDBClusterInput {
  12456. s.DestinationRegion = &v
  12457. return s
  12458. }
  12459. // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value.
  12460. func (s *CreateDBClusterInput) SetEnableCloudwatchLogsExports(v []*string) *CreateDBClusterInput {
  12461. s.EnableCloudwatchLogsExports = v
  12462. return s
  12463. }
  12464. // SetEnableIAMDatabaseAuthentication sets the EnableIAMDatabaseAuthentication field's value.
  12465. func (s *CreateDBClusterInput) SetEnableIAMDatabaseAuthentication(v bool) *CreateDBClusterInput {
  12466. s.EnableIAMDatabaseAuthentication = &v
  12467. return s
  12468. }
  12469. // SetEngine sets the Engine field's value.
  12470. func (s *CreateDBClusterInput) SetEngine(v string) *CreateDBClusterInput {
  12471. s.Engine = &v
  12472. return s
  12473. }
  12474. // SetEngineMode sets the EngineMode field's value.
  12475. func (s *CreateDBClusterInput) SetEngineMode(v string) *CreateDBClusterInput {
  12476. s.EngineMode = &v
  12477. return s
  12478. }
  12479. // SetEngineVersion sets the EngineVersion field's value.
  12480. func (s *CreateDBClusterInput) SetEngineVersion(v string) *CreateDBClusterInput {
  12481. s.EngineVersion = &v
  12482. return s
  12483. }
  12484. // SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value.
  12485. func (s *CreateDBClusterInput) SetGlobalClusterIdentifier(v string) *CreateDBClusterInput {
  12486. s.GlobalClusterIdentifier = &v
  12487. return s
  12488. }
  12489. // SetKmsKeyId sets the KmsKeyId field's value.
  12490. func (s *CreateDBClusterInput) SetKmsKeyId(v string) *CreateDBClusterInput {
  12491. s.KmsKeyId = &v
  12492. return s
  12493. }
  12494. // SetMasterUserPassword sets the MasterUserPassword field's value.
  12495. func (s *CreateDBClusterInput) SetMasterUserPassword(v string) *CreateDBClusterInput {
  12496. s.MasterUserPassword = &v
  12497. return s
  12498. }
  12499. // SetMasterUsername sets the MasterUsername field's value.
  12500. func (s *CreateDBClusterInput) SetMasterUsername(v string) *CreateDBClusterInput {
  12501. s.MasterUsername = &v
  12502. return s
  12503. }
  12504. // SetOptionGroupName sets the OptionGroupName field's value.
  12505. func (s *CreateDBClusterInput) SetOptionGroupName(v string) *CreateDBClusterInput {
  12506. s.OptionGroupName = &v
  12507. return s
  12508. }
  12509. // SetPort sets the Port field's value.
  12510. func (s *CreateDBClusterInput) SetPort(v int64) *CreateDBClusterInput {
  12511. s.Port = &v
  12512. return s
  12513. }
  12514. // SetPreSignedUrl sets the PreSignedUrl field's value.
  12515. func (s *CreateDBClusterInput) SetPreSignedUrl(v string) *CreateDBClusterInput {
  12516. s.PreSignedUrl = &v
  12517. return s
  12518. }
  12519. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  12520. func (s *CreateDBClusterInput) SetPreferredBackupWindow(v string) *CreateDBClusterInput {
  12521. s.PreferredBackupWindow = &v
  12522. return s
  12523. }
  12524. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  12525. func (s *CreateDBClusterInput) SetPreferredMaintenanceWindow(v string) *CreateDBClusterInput {
  12526. s.PreferredMaintenanceWindow = &v
  12527. return s
  12528. }
  12529. // SetReplicationSourceIdentifier sets the ReplicationSourceIdentifier field's value.
  12530. func (s *CreateDBClusterInput) SetReplicationSourceIdentifier(v string) *CreateDBClusterInput {
  12531. s.ReplicationSourceIdentifier = &v
  12532. return s
  12533. }
  12534. // SetScalingConfiguration sets the ScalingConfiguration field's value.
  12535. func (s *CreateDBClusterInput) SetScalingConfiguration(v *ScalingConfiguration) *CreateDBClusterInput {
  12536. s.ScalingConfiguration = v
  12537. return s
  12538. }
  12539. // SetSourceRegion sets the SourceRegion field's value.
  12540. func (s *CreateDBClusterInput) SetSourceRegion(v string) *CreateDBClusterInput {
  12541. s.SourceRegion = &v
  12542. return s
  12543. }
  12544. // SetStorageEncrypted sets the StorageEncrypted field's value.
  12545. func (s *CreateDBClusterInput) SetStorageEncrypted(v bool) *CreateDBClusterInput {
  12546. s.StorageEncrypted = &v
  12547. return s
  12548. }
  12549. // SetTags sets the Tags field's value.
  12550. func (s *CreateDBClusterInput) SetTags(v []*Tag) *CreateDBClusterInput {
  12551. s.Tags = v
  12552. return s
  12553. }
  12554. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  12555. func (s *CreateDBClusterInput) SetVpcSecurityGroupIds(v []*string) *CreateDBClusterInput {
  12556. s.VpcSecurityGroupIds = v
  12557. return s
  12558. }
  12559. type CreateDBClusterOutput struct {
  12560. _ struct{} `type:"structure"`
  12561. // Contains the details of an Amazon Aurora DB cluster.
  12562. //
  12563. // This data type is used as a response element in the DescribeDBClusters, StopDBCluster,
  12564. // and StartDBCluster actions.
  12565. DBCluster *DBCluster `type:"structure"`
  12566. }
  12567. // String returns the string representation
  12568. func (s CreateDBClusterOutput) String() string {
  12569. return awsutil.Prettify(s)
  12570. }
  12571. // GoString returns the string representation
  12572. func (s CreateDBClusterOutput) GoString() string {
  12573. return s.String()
  12574. }
  12575. // SetDBCluster sets the DBCluster field's value.
  12576. func (s *CreateDBClusterOutput) SetDBCluster(v *DBCluster) *CreateDBClusterOutput {
  12577. s.DBCluster = v
  12578. return s
  12579. }
  12580. type CreateDBClusterParameterGroupInput struct {
  12581. _ struct{} `type:"structure"`
  12582. // The name of the DB cluster parameter group.
  12583. //
  12584. // Constraints:
  12585. //
  12586. // * Must match the name of an existing DB cluster parameter group.
  12587. //
  12588. // This value is stored as a lowercase string.
  12589. //
  12590. // DBClusterParameterGroupName is a required field
  12591. DBClusterParameterGroupName *string `type:"string" required:"true"`
  12592. // The DB cluster parameter group family name. A DB cluster parameter group
  12593. // can be associated with one and only one DB cluster parameter group family,
  12594. // and can be applied only to a DB cluster running a database engine and engine
  12595. // version compatible with that DB cluster parameter group family.
  12596. //
  12597. // Aurora MySQL
  12598. //
  12599. // Example: aurora5.6, aurora-mysql5.7
  12600. //
  12601. // Aurora PostgreSQL
  12602. //
  12603. // Example: aurora-postgresql9.6
  12604. //
  12605. // DBParameterGroupFamily is a required field
  12606. DBParameterGroupFamily *string `type:"string" required:"true"`
  12607. // The description for the DB cluster parameter group.
  12608. //
  12609. // Description is a required field
  12610. Description *string `type:"string" required:"true"`
  12611. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  12612. // in the Amazon RDS User Guide.
  12613. Tags []*Tag `locationNameList:"Tag" type:"list"`
  12614. }
  12615. // String returns the string representation
  12616. func (s CreateDBClusterParameterGroupInput) String() string {
  12617. return awsutil.Prettify(s)
  12618. }
  12619. // GoString returns the string representation
  12620. func (s CreateDBClusterParameterGroupInput) GoString() string {
  12621. return s.String()
  12622. }
  12623. // Validate inspects the fields of the type to determine if they are valid.
  12624. func (s *CreateDBClusterParameterGroupInput) Validate() error {
  12625. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterParameterGroupInput"}
  12626. if s.DBClusterParameterGroupName == nil {
  12627. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  12628. }
  12629. if s.DBParameterGroupFamily == nil {
  12630. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  12631. }
  12632. if s.Description == nil {
  12633. invalidParams.Add(request.NewErrParamRequired("Description"))
  12634. }
  12635. if invalidParams.Len() > 0 {
  12636. return invalidParams
  12637. }
  12638. return nil
  12639. }
  12640. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  12641. func (s *CreateDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *CreateDBClusterParameterGroupInput {
  12642. s.DBClusterParameterGroupName = &v
  12643. return s
  12644. }
  12645. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  12646. func (s *CreateDBClusterParameterGroupInput) SetDBParameterGroupFamily(v string) *CreateDBClusterParameterGroupInput {
  12647. s.DBParameterGroupFamily = &v
  12648. return s
  12649. }
  12650. // SetDescription sets the Description field's value.
  12651. func (s *CreateDBClusterParameterGroupInput) SetDescription(v string) *CreateDBClusterParameterGroupInput {
  12652. s.Description = &v
  12653. return s
  12654. }
  12655. // SetTags sets the Tags field's value.
  12656. func (s *CreateDBClusterParameterGroupInput) SetTags(v []*Tag) *CreateDBClusterParameterGroupInput {
  12657. s.Tags = v
  12658. return s
  12659. }
  12660. type CreateDBClusterParameterGroupOutput struct {
  12661. _ struct{} `type:"structure"`
  12662. // Contains the details of an Amazon RDS DB cluster parameter group.
  12663. //
  12664. // This data type is used as a response element in the DescribeDBClusterParameterGroups
  12665. // action.
  12666. DBClusterParameterGroup *DBClusterParameterGroup `type:"structure"`
  12667. }
  12668. // String returns the string representation
  12669. func (s CreateDBClusterParameterGroupOutput) String() string {
  12670. return awsutil.Prettify(s)
  12671. }
  12672. // GoString returns the string representation
  12673. func (s CreateDBClusterParameterGroupOutput) GoString() string {
  12674. return s.String()
  12675. }
  12676. // SetDBClusterParameterGroup sets the DBClusterParameterGroup field's value.
  12677. func (s *CreateDBClusterParameterGroupOutput) SetDBClusterParameterGroup(v *DBClusterParameterGroup) *CreateDBClusterParameterGroupOutput {
  12678. s.DBClusterParameterGroup = v
  12679. return s
  12680. }
  12681. type CreateDBClusterSnapshotInput struct {
  12682. _ struct{} `type:"structure"`
  12683. // The identifier of the DB cluster to create a snapshot for. This parameter
  12684. // is not case-sensitive.
  12685. //
  12686. // Constraints:
  12687. //
  12688. // * Must match the identifier of an existing DBCluster.
  12689. //
  12690. // Example: my-cluster1
  12691. //
  12692. // DBClusterIdentifier is a required field
  12693. DBClusterIdentifier *string `type:"string" required:"true"`
  12694. // The identifier of the DB cluster snapshot. This parameter is stored as a
  12695. // lowercase string.
  12696. //
  12697. // Constraints:
  12698. //
  12699. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  12700. //
  12701. // * First character must be a letter.
  12702. //
  12703. // * Can't end with a hyphen or contain two consecutive hyphens.
  12704. //
  12705. // Example: my-cluster1-snapshot1
  12706. //
  12707. // DBClusterSnapshotIdentifier is a required field
  12708. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  12709. // The tags to be assigned to the DB cluster snapshot.
  12710. Tags []*Tag `locationNameList:"Tag" type:"list"`
  12711. }
  12712. // String returns the string representation
  12713. func (s CreateDBClusterSnapshotInput) String() string {
  12714. return awsutil.Prettify(s)
  12715. }
  12716. // GoString returns the string representation
  12717. func (s CreateDBClusterSnapshotInput) GoString() string {
  12718. return s.String()
  12719. }
  12720. // Validate inspects the fields of the type to determine if they are valid.
  12721. func (s *CreateDBClusterSnapshotInput) Validate() error {
  12722. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterSnapshotInput"}
  12723. if s.DBClusterIdentifier == nil {
  12724. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  12725. }
  12726. if s.DBClusterSnapshotIdentifier == nil {
  12727. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  12728. }
  12729. if invalidParams.Len() > 0 {
  12730. return invalidParams
  12731. }
  12732. return nil
  12733. }
  12734. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  12735. func (s *CreateDBClusterSnapshotInput) SetDBClusterIdentifier(v string) *CreateDBClusterSnapshotInput {
  12736. s.DBClusterIdentifier = &v
  12737. return s
  12738. }
  12739. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  12740. func (s *CreateDBClusterSnapshotInput) SetDBClusterSnapshotIdentifier(v string) *CreateDBClusterSnapshotInput {
  12741. s.DBClusterSnapshotIdentifier = &v
  12742. return s
  12743. }
  12744. // SetTags sets the Tags field's value.
  12745. func (s *CreateDBClusterSnapshotInput) SetTags(v []*Tag) *CreateDBClusterSnapshotInput {
  12746. s.Tags = v
  12747. return s
  12748. }
  12749. type CreateDBClusterSnapshotOutput struct {
  12750. _ struct{} `type:"structure"`
  12751. // Contains the details for an Amazon RDS DB cluster snapshot
  12752. //
  12753. // This data type is used as a response element in the DescribeDBClusterSnapshots
  12754. // action.
  12755. DBClusterSnapshot *DBClusterSnapshot `type:"structure"`
  12756. }
  12757. // String returns the string representation
  12758. func (s CreateDBClusterSnapshotOutput) String() string {
  12759. return awsutil.Prettify(s)
  12760. }
  12761. // GoString returns the string representation
  12762. func (s CreateDBClusterSnapshotOutput) GoString() string {
  12763. return s.String()
  12764. }
  12765. // SetDBClusterSnapshot sets the DBClusterSnapshot field's value.
  12766. func (s *CreateDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapshot) *CreateDBClusterSnapshotOutput {
  12767. s.DBClusterSnapshot = v
  12768. return s
  12769. }
  12770. type CreateDBInstanceInput struct {
  12771. _ struct{} `type:"structure"`
  12772. // The amount of storage (in gibibytes) to allocate for the DB instance.
  12773. //
  12774. // Type: Integer
  12775. //
  12776. // Amazon Aurora
  12777. //
  12778. // Not applicable. Aurora cluster volumes automatically grow as the amount of
  12779. // data in your database increases, though you are only charged for the space
  12780. // that you use in an Aurora cluster volume.
  12781. //
  12782. // MySQL
  12783. //
  12784. // Constraints to the amount of storage for each storage type are the following:
  12785. //
  12786. // * General Purpose (SSD) storage (gp2): Must be an integer from 20 to 16384.
  12787. //
  12788. // * Provisioned IOPS storage (io1): Must be an integer from 100 to 16384.
  12789. //
  12790. // * Magnetic storage (standard): Must be an integer from 5 to 3072.
  12791. //
  12792. // MariaDB
  12793. //
  12794. // Constraints to the amount of storage for each storage type are the following:
  12795. //
  12796. // * General Purpose (SSD) storage (gp2): Must be an integer from 20 to 16384.
  12797. //
  12798. // * Provisioned IOPS storage (io1): Must be an integer from 100 to 16384.
  12799. //
  12800. // * Magnetic storage (standard): Must be an integer from 5 to 3072.
  12801. //
  12802. // PostgreSQL
  12803. //
  12804. // Constraints to the amount of storage for each storage type are the following:
  12805. //
  12806. // * General Purpose (SSD) storage (gp2): Must be an integer from 20 to 16384.
  12807. //
  12808. // * Provisioned IOPS storage (io1): Must be an integer from 100 to 16384.
  12809. //
  12810. // * Magnetic storage (standard): Must be an integer from 5 to 3072.
  12811. //
  12812. // Oracle
  12813. //
  12814. // Constraints to the amount of storage for each storage type are the following:
  12815. //
  12816. // * General Purpose (SSD) storage (gp2): Must be an integer from 20 to 32768.
  12817. //
  12818. // * Provisioned IOPS storage (io1): Must be an integer from 100 to 32768.
  12819. //
  12820. // * Magnetic storage (standard): Must be an integer from 10 to 3072.
  12821. //
  12822. // SQL Server
  12823. //
  12824. // Constraints to the amount of storage for each storage type are the following:
  12825. //
  12826. // * General Purpose (SSD) storage (gp2):
  12827. //
  12828. // Enterprise and Standard editions: Must be an integer from 200 to 16384.
  12829. //
  12830. // Web and Express editions: Must be an integer from 20 to 16384.
  12831. //
  12832. // * Provisioned IOPS storage (io1):
  12833. //
  12834. // Enterprise and Standard editions: Must be an integer from 200 to 16384.
  12835. //
  12836. // Web and Express editions: Must be an integer from 100 to 16384.
  12837. //
  12838. // * Magnetic storage (standard):
  12839. //
  12840. // Enterprise and Standard editions: Must be an integer from 200 to 1024.
  12841. //
  12842. // Web and Express editions: Must be an integer from 20 to 1024.
  12843. AllocatedStorage *int64 `type:"integer"`
  12844. // Indicates that minor engine upgrades are applied automatically to the DB
  12845. // instance during the maintenance window.
  12846. //
  12847. // Default: true
  12848. AutoMinorVersionUpgrade *bool `type:"boolean"`
  12849. // The EC2 Availability Zone that the DB instance is created in. For information
  12850. // on AWS Regions and Availability Zones, see Regions and Availability Zones
  12851. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
  12852. //
  12853. // Default: A random, system-chosen Availability Zone in the endpoint's AWS
  12854. // Region.
  12855. //
  12856. // Example: us-east-1d
  12857. //
  12858. // Constraint: The AvailabilityZone parameter can't be specified if the MultiAZ
  12859. // parameter is set to true. The specified Availability Zone must be in the
  12860. // same AWS Region as the current endpoint.
  12861. AvailabilityZone *string `type:"string"`
  12862. // The number of days for which automated backups are retained. Setting this
  12863. // parameter to a positive number enables backups. Setting this parameter to
  12864. // 0 disables automated backups.
  12865. //
  12866. // Amazon Aurora
  12867. //
  12868. // Not applicable. The retention period for automated backups is managed by
  12869. // the DB cluster. For more information, see CreateDBCluster.
  12870. //
  12871. // Default: 1
  12872. //
  12873. // Constraints:
  12874. //
  12875. // * Must be a value from 0 to 35
  12876. //
  12877. // * Can't be set to 0 if the DB instance is a source to Read Replicas
  12878. BackupRetentionPeriod *int64 `type:"integer"`
  12879. // For supported engines, indicates that the DB instance should be associated
  12880. // with the specified CharacterSet.
  12881. //
  12882. // Amazon Aurora
  12883. //
  12884. // Not applicable. The character set is managed by the DB cluster. For more
  12885. // information, see CreateDBCluster.
  12886. CharacterSetName *string `type:"string"`
  12887. // True to copy all tags from the DB instance to snapshots of the DB instance,
  12888. // and otherwise false. The default is false.
  12889. CopyTagsToSnapshot *bool `type:"boolean"`
  12890. // The identifier of the DB cluster that the instance will belong to.
  12891. //
  12892. // For information on creating a DB cluster, see CreateDBCluster.
  12893. //
  12894. // Type: String
  12895. DBClusterIdentifier *string `type:"string"`
  12896. // The compute and memory capacity of the DB instance, for example, db.m4.large.
  12897. // Not all DB instance classes are available in all AWS Regions, or for all
  12898. // database engines. For the full list of DB instance classes, and availability
  12899. // for your engine, see DB Instance Class (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html)
  12900. // in the Amazon RDS User Guide.
  12901. //
  12902. // DBInstanceClass is a required field
  12903. DBInstanceClass *string `type:"string" required:"true"`
  12904. // The DB instance identifier. This parameter is stored as a lowercase string.
  12905. //
  12906. // Constraints:
  12907. //
  12908. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  12909. //
  12910. // * First character must be a letter.
  12911. //
  12912. // * Can't end with a hyphen or contain two consecutive hyphens.
  12913. //
  12914. // Example: mydbinstance
  12915. //
  12916. // DBInstanceIdentifier is a required field
  12917. DBInstanceIdentifier *string `type:"string" required:"true"`
  12918. // The meaning of this parameter differs according to the database engine you
  12919. // use.
  12920. //
  12921. // Type: String
  12922. //
  12923. // MySQL
  12924. //
  12925. // The name of the database to create when the DB instance is created. If this
  12926. // parameter is not specified, no database is created in the DB instance.
  12927. //
  12928. // Constraints:
  12929. //
  12930. // * Must contain 1 to 64 letters or numbers.
  12931. //
  12932. // * Can't be a word reserved by the specified database engine
  12933. //
  12934. // MariaDB
  12935. //
  12936. // The name of the database to create when the DB instance is created. If this
  12937. // parameter is not specified, no database is created in the DB instance.
  12938. //
  12939. // Constraints:
  12940. //
  12941. // * Must contain 1 to 64 letters or numbers.
  12942. //
  12943. // * Can't be a word reserved by the specified database engine
  12944. //
  12945. // PostgreSQL
  12946. //
  12947. // The name of the database to create when the DB instance is created. If this
  12948. // parameter is not specified, the default "postgres" database is created in
  12949. // the DB instance.
  12950. //
  12951. // Constraints:
  12952. //
  12953. // * Must contain 1 to 63 letters, numbers, or underscores.
  12954. //
  12955. // * Must begin with a letter or an underscore. Subsequent characters can
  12956. // be letters, underscores, or digits (0-9).
  12957. //
  12958. // * Can't be a word reserved by the specified database engine
  12959. //
  12960. // Oracle
  12961. //
  12962. // The Oracle System ID (SID) of the created DB instance. If you specify null,
  12963. // the default value ORCL is used. You can't specify the string NULL, or any
  12964. // other reserved word, for DBName.
  12965. //
  12966. // Default: ORCL
  12967. //
  12968. // Constraints:
  12969. //
  12970. // * Can't be longer than 8 characters
  12971. //
  12972. // SQL Server
  12973. //
  12974. // Not applicable. Must be null.
  12975. //
  12976. // Amazon Aurora
  12977. //
  12978. // The name of the database to create when the primary instance of the DB cluster
  12979. // is created. If this parameter is not specified, no database is created in
  12980. // the DB instance.
  12981. //
  12982. // Constraints:
  12983. //
  12984. // * Must contain 1 to 64 letters or numbers.
  12985. //
  12986. // * Can't be a word reserved by the specified database engine
  12987. DBName *string `type:"string"`
  12988. // The name of the DB parameter group to associate with this DB instance. If
  12989. // this argument is omitted, the default DBParameterGroup for the specified
  12990. // engine is used.
  12991. //
  12992. // Constraints:
  12993. //
  12994. // * Must be 1 to 255 letters, numbers, or hyphens.
  12995. //
  12996. // * First character must be a letter
  12997. //
  12998. // * Can't end with a hyphen or contain two consecutive hyphens
  12999. DBParameterGroupName *string `type:"string"`
  13000. // A list of DB security groups to associate with this DB instance.
  13001. //
  13002. // Default: The default DB security group for the database engine.
  13003. DBSecurityGroups []*string `locationNameList:"DBSecurityGroupName" type:"list"`
  13004. // A DB subnet group to associate with this DB instance.
  13005. //
  13006. // If there is no DB subnet group, then it is a non-VPC DB instance.
  13007. DBSubnetGroupName *string `type:"string"`
  13008. // Indicates if the DB instance should have deletion protection enabled. The
  13009. // database can't be deleted when this value is set to true. The default is
  13010. // false. For more information, see Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html).
  13011. DeletionProtection *bool `type:"boolean"`
  13012. // Specify the Active Directory Domain to create the instance in.
  13013. Domain *string `type:"string"`
  13014. // Specify the name of the IAM role to be used when making API calls to the
  13015. // Directory Service.
  13016. DomainIAMRoleName *string `type:"string"`
  13017. // The list of log types that need to be enabled for exporting to CloudWatch
  13018. // Logs. The values in the list depend on the DB engine being used. For more
  13019. // information, see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch)
  13020. // in the Amazon Relational Database Service User Guide.
  13021. EnableCloudwatchLogsExports []*string `type:"list"`
  13022. // True to enable mapping of AWS Identity and Access Management (IAM) accounts
  13023. // to database accounts, and otherwise false.
  13024. //
  13025. // You can enable IAM database authentication for the following database engines:
  13026. //
  13027. // Amazon Aurora
  13028. //
  13029. // Not applicable. Mapping AWS IAM accounts to database accounts is managed
  13030. // by the DB cluster. For more information, see CreateDBCluster.
  13031. //
  13032. // MySQL
  13033. //
  13034. // * For MySQL 5.6, minor version 5.6.34 or higher
  13035. //
  13036. // * For MySQL 5.7, minor version 5.7.16 or higher
  13037. //
  13038. // Default: false
  13039. EnableIAMDatabaseAuthentication *bool `type:"boolean"`
  13040. // True to enable Performance Insights for the DB instance, and otherwise false.
  13041. //
  13042. // For more information, see Using Amazon Performance Insights (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html)
  13043. // in the Amazon Relational Database Service User Guide.
  13044. EnablePerformanceInsights *bool `type:"boolean"`
  13045. // The name of the database engine to be used for this instance.
  13046. //
  13047. // Not every database engine is available for every AWS Region.
  13048. //
  13049. // Valid Values:
  13050. //
  13051. // * aurora (for MySQL 5.6-compatible Aurora)
  13052. //
  13053. // * aurora-mysql (for MySQL 5.7-compatible Aurora)
  13054. //
  13055. // * aurora-postgresql
  13056. //
  13057. // * mariadb
  13058. //
  13059. // * mysql
  13060. //
  13061. // * oracle-ee
  13062. //
  13063. // * oracle-se2
  13064. //
  13065. // * oracle-se1
  13066. //
  13067. // * oracle-se
  13068. //
  13069. // * postgres
  13070. //
  13071. // * sqlserver-ee
  13072. //
  13073. // * sqlserver-se
  13074. //
  13075. // * sqlserver-ex
  13076. //
  13077. // * sqlserver-web
  13078. //
  13079. // Engine is a required field
  13080. Engine *string `type:"string" required:"true"`
  13081. // The version number of the database engine to use.
  13082. //
  13083. // For a list of valid engine versions, call DescribeDBEngineVersions.
  13084. //
  13085. // The following are the database engines and links to information about the
  13086. // major and minor versions that are available with Amazon RDS. Not every database
  13087. // engine is available for every AWS Region.
  13088. //
  13089. // Amazon Aurora
  13090. //
  13091. // Not applicable. The version number of the database engine to be used by the
  13092. // DB instance is managed by the DB cluster. For more information, see CreateDBCluster.
  13093. //
  13094. // MariaDB
  13095. //
  13096. // See MariaDB on Amazon RDS Versions (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MariaDB.html#MariaDB.Concepts.VersionMgmt)
  13097. // in the Amazon RDS User Guide.
  13098. //
  13099. // Microsoft SQL Server
  13100. //
  13101. // See Version and Feature Support on Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.FeatureSupport)
  13102. // in the Amazon RDS User Guide.
  13103. //
  13104. // MySQL
  13105. //
  13106. // See MySQL on Amazon RDS Versions (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt)
  13107. // in the Amazon RDS User Guide.
  13108. //
  13109. // Oracle
  13110. //
  13111. // See Oracle Database Engine Release Notes (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.PatchComposition.html)
  13112. // in the Amazon RDS User Guide.
  13113. //
  13114. // PostgreSQL
  13115. //
  13116. // See Supported PostgreSQL Database Versions (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts.General.DBVersions)
  13117. // in the Amazon RDS User Guide.
  13118. EngineVersion *string `type:"string"`
  13119. // The amount of Provisioned IOPS (input/output operations per second) to be
  13120. // initially allocated for the DB instance. For information about valid Iops
  13121. // values, see see Amazon RDS Provisioned IOPS Storage to Improve Performance
  13122. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS)
  13123. // in the Amazon RDS User Guide.
  13124. //
  13125. // Constraints: Must be a multiple between 1 and 50 of the storage amount for
  13126. // the DB instance.
  13127. Iops *int64 `type:"integer"`
  13128. // The AWS KMS key identifier for an encrypted DB instance.
  13129. //
  13130. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  13131. // key. If you are creating a DB instance with the same AWS account that owns
  13132. // the KMS encryption key used to encrypt the new DB instance, then you can
  13133. // use the KMS key alias instead of the ARN for the KM encryption key.
  13134. //
  13135. // Amazon Aurora
  13136. //
  13137. // Not applicable. The KMS key identifier is managed by the DB cluster. For
  13138. // more information, see CreateDBCluster.
  13139. //
  13140. // If the StorageEncrypted parameter is true, and you do not specify a value
  13141. // for the KmsKeyId parameter, then Amazon RDS will use your default encryption
  13142. // key. AWS KMS creates the default encryption key for your AWS account. Your
  13143. // AWS account has a different default encryption key for each AWS Region.
  13144. KmsKeyId *string `type:"string"`
  13145. // License model information for this DB instance.
  13146. //
  13147. // Valid values: license-included | bring-your-own-license | general-public-license
  13148. LicenseModel *string `type:"string"`
  13149. // The password for the master user. The password can include any printable
  13150. // ASCII character except "/", """, or "@".
  13151. //
  13152. // Amazon Aurora
  13153. //
  13154. // Not applicable. The password for the master user is managed by the DB cluster.
  13155. // For more information, see CreateDBCluster.
  13156. //
  13157. // MariaDB
  13158. //
  13159. // Constraints: Must contain from 8 to 41 characters.
  13160. //
  13161. // Microsoft SQL Server
  13162. //
  13163. // Constraints: Must contain from 8 to 128 characters.
  13164. //
  13165. // MySQL
  13166. //
  13167. // Constraints: Must contain from 8 to 41 characters.
  13168. //
  13169. // Oracle
  13170. //
  13171. // Constraints: Must contain from 8 to 30 characters.
  13172. //
  13173. // PostgreSQL
  13174. //
  13175. // Constraints: Must contain from 8 to 128 characters.
  13176. MasterUserPassword *string `type:"string"`
  13177. // The name for the master user.
  13178. //
  13179. // Amazon Aurora
  13180. //
  13181. // Not applicable. The name for the master user is managed by the DB cluster.
  13182. // For more information, see CreateDBCluster.
  13183. //
  13184. // MariaDB
  13185. //
  13186. // Constraints:
  13187. //
  13188. // * Required for MariaDB.
  13189. //
  13190. // * Must be 1 to 16 letters or numbers.
  13191. //
  13192. // * Can't be a reserved word for the chosen database engine.
  13193. //
  13194. // Microsoft SQL Server
  13195. //
  13196. // Constraints:
  13197. //
  13198. // * Required for SQL Server.
  13199. //
  13200. // * Must be 1 to 128 letters or numbers.
  13201. //
  13202. // * The first character must be a letter.
  13203. //
  13204. // * Can't be a reserved word for the chosen database engine.
  13205. //
  13206. // MySQL
  13207. //
  13208. // Constraints:
  13209. //
  13210. // * Required for MySQL.
  13211. //
  13212. // * Must be 1 to 16 letters or numbers.
  13213. //
  13214. // * First character must be a letter.
  13215. //
  13216. // * Can't be a reserved word for the chosen database engine.
  13217. //
  13218. // Oracle
  13219. //
  13220. // Constraints:
  13221. //
  13222. // * Required for Oracle.
  13223. //
  13224. // * Must be 1 to 30 letters or numbers.
  13225. //
  13226. // * First character must be a letter.
  13227. //
  13228. // * Can't be a reserved word for the chosen database engine.
  13229. //
  13230. // PostgreSQL
  13231. //
  13232. // Constraints:
  13233. //
  13234. // * Required for PostgreSQL.
  13235. //
  13236. // * Must be 1 to 63 letters or numbers.
  13237. //
  13238. // * First character must be a letter.
  13239. //
  13240. // * Can't be a reserved word for the chosen database engine.
  13241. MasterUsername *string `type:"string"`
  13242. // The interval, in seconds, between points when Enhanced Monitoring metrics
  13243. // are collected for the DB instance. To disable collecting Enhanced Monitoring
  13244. // metrics, specify 0. The default is 0.
  13245. //
  13246. // If MonitoringRoleArn is specified, then you must also set MonitoringInterval
  13247. // to a value other than 0.
  13248. //
  13249. // Valid Values: 0, 1, 5, 10, 15, 30, 60
  13250. MonitoringInterval *int64 `type:"integer"`
  13251. // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics
  13252. // to Amazon CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess.
  13253. // For information on creating a monitoring role, go to Setting Up and Enabling
  13254. // Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling)
  13255. // in the Amazon RDS User Guide.
  13256. //
  13257. // If MonitoringInterval is set to a value other than 0, then you must supply
  13258. // a MonitoringRoleArn value.
  13259. MonitoringRoleArn *string `type:"string"`
  13260. // A value that specifies whether the DB instance is a Multi-AZ deployment.
  13261. // You can't set the AvailabilityZone parameter if the MultiAZ parameter is
  13262. // set to true.
  13263. MultiAZ *bool `type:"boolean"`
  13264. // Indicates that the DB instance should be associated with the specified option
  13265. // group.
  13266. //
  13267. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  13268. // can't be removed from an option group, and that option group can't be removed
  13269. // from a DB instance once it is associated with a DB instance
  13270. OptionGroupName *string `type:"string"`
  13271. // The AWS KMS key identifier for encryption of Performance Insights data. The
  13272. // KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the
  13273. // KMS key alias for the KMS encryption key.
  13274. PerformanceInsightsKMSKeyId *string `type:"string"`
  13275. // The amount of time, in days, to retain Performance Insights data. Valid values
  13276. // are 7 or 731 (2 years).
  13277. PerformanceInsightsRetentionPeriod *int64 `type:"integer"`
  13278. // The port number on which the database accepts connections.
  13279. //
  13280. // MySQL
  13281. //
  13282. // Default: 3306
  13283. //
  13284. // Valid Values: 1150-65535
  13285. //
  13286. // Type: Integer
  13287. //
  13288. // MariaDB
  13289. //
  13290. // Default: 3306
  13291. //
  13292. // Valid Values: 1150-65535
  13293. //
  13294. // Type: Integer
  13295. //
  13296. // PostgreSQL
  13297. //
  13298. // Default: 5432
  13299. //
  13300. // Valid Values: 1150-65535
  13301. //
  13302. // Type: Integer
  13303. //
  13304. // Oracle
  13305. //
  13306. // Default: 1521
  13307. //
  13308. // Valid Values: 1150-65535
  13309. //
  13310. // SQL Server
  13311. //
  13312. // Default: 1433
  13313. //
  13314. // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through
  13315. // 49156.
  13316. //
  13317. // Amazon Aurora
  13318. //
  13319. // Default: 3306
  13320. //
  13321. // Valid Values: 1150-65535
  13322. //
  13323. // Type: Integer
  13324. Port *int64 `type:"integer"`
  13325. // The daily time range during which automated backups are created if automated
  13326. // backups are enabled, using the BackupRetentionPeriod parameter. For more
  13327. // information, see The Backup Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow)
  13328. // in the Amazon RDS User Guide.
  13329. //
  13330. // Amazon Aurora
  13331. //
  13332. // Not applicable. The daily time range for creating automated backups is managed
  13333. // by the DB cluster. For more information, see CreateDBCluster.
  13334. //
  13335. // The default is a 30-minute window selected at random from an 8-hour block
  13336. // of time for each AWS Region. To see the time blocks available, see Adjusting
  13337. // the Preferred DB Instance Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow)
  13338. // in the Amazon RDS User Guide.
  13339. //
  13340. // Constraints:
  13341. //
  13342. // * Must be in the format hh24:mi-hh24:mi.
  13343. //
  13344. // * Must be in Universal Coordinated Time (UTC).
  13345. //
  13346. // * Must not conflict with the preferred maintenance window.
  13347. //
  13348. // * Must be at least 30 minutes.
  13349. PreferredBackupWindow *string `type:"string"`
  13350. // The time range each week during which system maintenance can occur, in Universal
  13351. // Coordinated Time (UTC). For more information, see Amazon RDS Maintenance
  13352. // Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance).
  13353. //
  13354. // Format: ddd:hh24:mi-ddd:hh24:mi
  13355. //
  13356. // The default is a 30-minute window selected at random from an 8-hour block
  13357. // of time for each AWS Region, occurring on a random day of the week.
  13358. //
  13359. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
  13360. //
  13361. // Constraints: Minimum 30-minute window.
  13362. PreferredMaintenanceWindow *string `type:"string"`
  13363. // The number of CPU cores and the number of threads per core for the DB instance
  13364. // class of the DB instance.
  13365. ProcessorFeatures []*ProcessorFeature `locationNameList:"ProcessorFeature" type:"list"`
  13366. // A value that specifies the order in which an Aurora Replica is promoted to
  13367. // the primary instance after a failure of the existing primary instance. For
  13368. // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.FaultTolerance)
  13369. // in the Amazon Aurora User Guide.
  13370. //
  13371. // Default: 1
  13372. //
  13373. // Valid Values: 0 - 15
  13374. PromotionTier *int64 `type:"integer"`
  13375. // Specifies the accessibility options for the DB instance. A value of true
  13376. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  13377. // which resolves to a public IP address. A value of false specifies an internal
  13378. // instance with a DNS name that resolves to a private IP address.
  13379. //
  13380. // Default: The default behavior varies depending on whether DBSubnetGroupName
  13381. // is specified.
  13382. //
  13383. // If DBSubnetGroupName is not specified, and PubliclyAccessible is not specified,
  13384. // the following applies:
  13385. //
  13386. // * If the default VPC in the target region doesn’t have an Internet gateway
  13387. // attached to it, the DB instance is private.
  13388. //
  13389. // * If the default VPC in the target region has an Internet gateway attached
  13390. // to it, the DB instance is public.
  13391. //
  13392. // If DBSubnetGroupName is specified, and PubliclyAccessible is not specified,
  13393. // the following applies:
  13394. //
  13395. // * If the subnets are part of a VPC that doesn’t have an Internet gateway
  13396. // attached to it, the DB instance is private.
  13397. //
  13398. // * If the subnets are part of a VPC that has an Internet gateway attached
  13399. // to it, the DB instance is public.
  13400. PubliclyAccessible *bool `type:"boolean"`
  13401. // Specifies whether the DB instance is encrypted.
  13402. //
  13403. // Amazon Aurora
  13404. //
  13405. // Not applicable. The encryption for DB instances is managed by the DB cluster.
  13406. // For more information, see CreateDBCluster.
  13407. //
  13408. // Default: false
  13409. StorageEncrypted *bool `type:"boolean"`
  13410. // Specifies the storage type to be associated with the DB instance.
  13411. //
  13412. // Valid values: standard | gp2 | io1
  13413. //
  13414. // If you specify io1, you must also include a value for the Iops parameter.
  13415. //
  13416. // Default: io1 if the Iops parameter is specified, otherwise standard
  13417. StorageType *string `type:"string"`
  13418. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  13419. // in the Amazon RDS User Guide.
  13420. Tags []*Tag `locationNameList:"Tag" type:"list"`
  13421. // The ARN from the key store with which to associate the instance for TDE encryption.
  13422. TdeCredentialArn *string `type:"string"`
  13423. // The password for the given ARN from the key store in order to access the
  13424. // device.
  13425. TdeCredentialPassword *string `type:"string"`
  13426. // The time zone of the DB instance. The time zone parameter is currently supported
  13427. // only by Microsoft SQL Server (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone).
  13428. Timezone *string `type:"string"`
  13429. // A list of Amazon EC2 VPC security groups to associate with this DB instance.
  13430. //
  13431. // Amazon Aurora
  13432. //
  13433. // Not applicable. The associated list of EC2 VPC security groups is managed
  13434. // by the DB cluster. For more information, see CreateDBCluster.
  13435. //
  13436. // Default: The default EC2 VPC security group for the DB subnet group's VPC.
  13437. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  13438. }
  13439. // String returns the string representation
  13440. func (s CreateDBInstanceInput) String() string {
  13441. return awsutil.Prettify(s)
  13442. }
  13443. // GoString returns the string representation
  13444. func (s CreateDBInstanceInput) GoString() string {
  13445. return s.String()
  13446. }
  13447. // Validate inspects the fields of the type to determine if they are valid.
  13448. func (s *CreateDBInstanceInput) Validate() error {
  13449. invalidParams := request.ErrInvalidParams{Context: "CreateDBInstanceInput"}
  13450. if s.DBInstanceClass == nil {
  13451. invalidParams.Add(request.NewErrParamRequired("DBInstanceClass"))
  13452. }
  13453. if s.DBInstanceIdentifier == nil {
  13454. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  13455. }
  13456. if s.Engine == nil {
  13457. invalidParams.Add(request.NewErrParamRequired("Engine"))
  13458. }
  13459. if invalidParams.Len() > 0 {
  13460. return invalidParams
  13461. }
  13462. return nil
  13463. }
  13464. // SetAllocatedStorage sets the AllocatedStorage field's value.
  13465. func (s *CreateDBInstanceInput) SetAllocatedStorage(v int64) *CreateDBInstanceInput {
  13466. s.AllocatedStorage = &v
  13467. return s
  13468. }
  13469. // SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
  13470. func (s *CreateDBInstanceInput) SetAutoMinorVersionUpgrade(v bool) *CreateDBInstanceInput {
  13471. s.AutoMinorVersionUpgrade = &v
  13472. return s
  13473. }
  13474. // SetAvailabilityZone sets the AvailabilityZone field's value.
  13475. func (s *CreateDBInstanceInput) SetAvailabilityZone(v string) *CreateDBInstanceInput {
  13476. s.AvailabilityZone = &v
  13477. return s
  13478. }
  13479. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  13480. func (s *CreateDBInstanceInput) SetBackupRetentionPeriod(v int64) *CreateDBInstanceInput {
  13481. s.BackupRetentionPeriod = &v
  13482. return s
  13483. }
  13484. // SetCharacterSetName sets the CharacterSetName field's value.
  13485. func (s *CreateDBInstanceInput) SetCharacterSetName(v string) *CreateDBInstanceInput {
  13486. s.CharacterSetName = &v
  13487. return s
  13488. }
  13489. // SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value.
  13490. func (s *CreateDBInstanceInput) SetCopyTagsToSnapshot(v bool) *CreateDBInstanceInput {
  13491. s.CopyTagsToSnapshot = &v
  13492. return s
  13493. }
  13494. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  13495. func (s *CreateDBInstanceInput) SetDBClusterIdentifier(v string) *CreateDBInstanceInput {
  13496. s.DBClusterIdentifier = &v
  13497. return s
  13498. }
  13499. // SetDBInstanceClass sets the DBInstanceClass field's value.
  13500. func (s *CreateDBInstanceInput) SetDBInstanceClass(v string) *CreateDBInstanceInput {
  13501. s.DBInstanceClass = &v
  13502. return s
  13503. }
  13504. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  13505. func (s *CreateDBInstanceInput) SetDBInstanceIdentifier(v string) *CreateDBInstanceInput {
  13506. s.DBInstanceIdentifier = &v
  13507. return s
  13508. }
  13509. // SetDBName sets the DBName field's value.
  13510. func (s *CreateDBInstanceInput) SetDBName(v string) *CreateDBInstanceInput {
  13511. s.DBName = &v
  13512. return s
  13513. }
  13514. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  13515. func (s *CreateDBInstanceInput) SetDBParameterGroupName(v string) *CreateDBInstanceInput {
  13516. s.DBParameterGroupName = &v
  13517. return s
  13518. }
  13519. // SetDBSecurityGroups sets the DBSecurityGroups field's value.
  13520. func (s *CreateDBInstanceInput) SetDBSecurityGroups(v []*string) *CreateDBInstanceInput {
  13521. s.DBSecurityGroups = v
  13522. return s
  13523. }
  13524. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  13525. func (s *CreateDBInstanceInput) SetDBSubnetGroupName(v string) *CreateDBInstanceInput {
  13526. s.DBSubnetGroupName = &v
  13527. return s
  13528. }
  13529. // SetDeletionProtection sets the DeletionProtection field's value.
  13530. func (s *CreateDBInstanceInput) SetDeletionProtection(v bool) *CreateDBInstanceInput {
  13531. s.DeletionProtection = &v
  13532. return s
  13533. }
  13534. // SetDomain sets the Domain field's value.
  13535. func (s *CreateDBInstanceInput) SetDomain(v string) *CreateDBInstanceInput {
  13536. s.Domain = &v
  13537. return s
  13538. }
  13539. // SetDomainIAMRoleName sets the DomainIAMRoleName field's value.
  13540. func (s *CreateDBInstanceInput) SetDomainIAMRoleName(v string) *CreateDBInstanceInput {
  13541. s.DomainIAMRoleName = &v
  13542. return s
  13543. }
  13544. // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value.
  13545. func (s *CreateDBInstanceInput) SetEnableCloudwatchLogsExports(v []*string) *CreateDBInstanceInput {
  13546. s.EnableCloudwatchLogsExports = v
  13547. return s
  13548. }
  13549. // SetEnableIAMDatabaseAuthentication sets the EnableIAMDatabaseAuthentication field's value.
  13550. func (s *CreateDBInstanceInput) SetEnableIAMDatabaseAuthentication(v bool) *CreateDBInstanceInput {
  13551. s.EnableIAMDatabaseAuthentication = &v
  13552. return s
  13553. }
  13554. // SetEnablePerformanceInsights sets the EnablePerformanceInsights field's value.
  13555. func (s *CreateDBInstanceInput) SetEnablePerformanceInsights(v bool) *CreateDBInstanceInput {
  13556. s.EnablePerformanceInsights = &v
  13557. return s
  13558. }
  13559. // SetEngine sets the Engine field's value.
  13560. func (s *CreateDBInstanceInput) SetEngine(v string) *CreateDBInstanceInput {
  13561. s.Engine = &v
  13562. return s
  13563. }
  13564. // SetEngineVersion sets the EngineVersion field's value.
  13565. func (s *CreateDBInstanceInput) SetEngineVersion(v string) *CreateDBInstanceInput {
  13566. s.EngineVersion = &v
  13567. return s
  13568. }
  13569. // SetIops sets the Iops field's value.
  13570. func (s *CreateDBInstanceInput) SetIops(v int64) *CreateDBInstanceInput {
  13571. s.Iops = &v
  13572. return s
  13573. }
  13574. // SetKmsKeyId sets the KmsKeyId field's value.
  13575. func (s *CreateDBInstanceInput) SetKmsKeyId(v string) *CreateDBInstanceInput {
  13576. s.KmsKeyId = &v
  13577. return s
  13578. }
  13579. // SetLicenseModel sets the LicenseModel field's value.
  13580. func (s *CreateDBInstanceInput) SetLicenseModel(v string) *CreateDBInstanceInput {
  13581. s.LicenseModel = &v
  13582. return s
  13583. }
  13584. // SetMasterUserPassword sets the MasterUserPassword field's value.
  13585. func (s *CreateDBInstanceInput) SetMasterUserPassword(v string) *CreateDBInstanceInput {
  13586. s.MasterUserPassword = &v
  13587. return s
  13588. }
  13589. // SetMasterUsername sets the MasterUsername field's value.
  13590. func (s *CreateDBInstanceInput) SetMasterUsername(v string) *CreateDBInstanceInput {
  13591. s.MasterUsername = &v
  13592. return s
  13593. }
  13594. // SetMonitoringInterval sets the MonitoringInterval field's value.
  13595. func (s *CreateDBInstanceInput) SetMonitoringInterval(v int64) *CreateDBInstanceInput {
  13596. s.MonitoringInterval = &v
  13597. return s
  13598. }
  13599. // SetMonitoringRoleArn sets the MonitoringRoleArn field's value.
  13600. func (s *CreateDBInstanceInput) SetMonitoringRoleArn(v string) *CreateDBInstanceInput {
  13601. s.MonitoringRoleArn = &v
  13602. return s
  13603. }
  13604. // SetMultiAZ sets the MultiAZ field's value.
  13605. func (s *CreateDBInstanceInput) SetMultiAZ(v bool) *CreateDBInstanceInput {
  13606. s.MultiAZ = &v
  13607. return s
  13608. }
  13609. // SetOptionGroupName sets the OptionGroupName field's value.
  13610. func (s *CreateDBInstanceInput) SetOptionGroupName(v string) *CreateDBInstanceInput {
  13611. s.OptionGroupName = &v
  13612. return s
  13613. }
  13614. // SetPerformanceInsightsKMSKeyId sets the PerformanceInsightsKMSKeyId field's value.
  13615. func (s *CreateDBInstanceInput) SetPerformanceInsightsKMSKeyId(v string) *CreateDBInstanceInput {
  13616. s.PerformanceInsightsKMSKeyId = &v
  13617. return s
  13618. }
  13619. // SetPerformanceInsightsRetentionPeriod sets the PerformanceInsightsRetentionPeriod field's value.
  13620. func (s *CreateDBInstanceInput) SetPerformanceInsightsRetentionPeriod(v int64) *CreateDBInstanceInput {
  13621. s.PerformanceInsightsRetentionPeriod = &v
  13622. return s
  13623. }
  13624. // SetPort sets the Port field's value.
  13625. func (s *CreateDBInstanceInput) SetPort(v int64) *CreateDBInstanceInput {
  13626. s.Port = &v
  13627. return s
  13628. }
  13629. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  13630. func (s *CreateDBInstanceInput) SetPreferredBackupWindow(v string) *CreateDBInstanceInput {
  13631. s.PreferredBackupWindow = &v
  13632. return s
  13633. }
  13634. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  13635. func (s *CreateDBInstanceInput) SetPreferredMaintenanceWindow(v string) *CreateDBInstanceInput {
  13636. s.PreferredMaintenanceWindow = &v
  13637. return s
  13638. }
  13639. // SetProcessorFeatures sets the ProcessorFeatures field's value.
  13640. func (s *CreateDBInstanceInput) SetProcessorFeatures(v []*ProcessorFeature) *CreateDBInstanceInput {
  13641. s.ProcessorFeatures = v
  13642. return s
  13643. }
  13644. // SetPromotionTier sets the PromotionTier field's value.
  13645. func (s *CreateDBInstanceInput) SetPromotionTier(v int64) *CreateDBInstanceInput {
  13646. s.PromotionTier = &v
  13647. return s
  13648. }
  13649. // SetPubliclyAccessible sets the PubliclyAccessible field's value.
  13650. func (s *CreateDBInstanceInput) SetPubliclyAccessible(v bool) *CreateDBInstanceInput {
  13651. s.PubliclyAccessible = &v
  13652. return s
  13653. }
  13654. // SetStorageEncrypted sets the StorageEncrypted field's value.
  13655. func (s *CreateDBInstanceInput) SetStorageEncrypted(v bool) *CreateDBInstanceInput {
  13656. s.StorageEncrypted = &v
  13657. return s
  13658. }
  13659. // SetStorageType sets the StorageType field's value.
  13660. func (s *CreateDBInstanceInput) SetStorageType(v string) *CreateDBInstanceInput {
  13661. s.StorageType = &v
  13662. return s
  13663. }
  13664. // SetTags sets the Tags field's value.
  13665. func (s *CreateDBInstanceInput) SetTags(v []*Tag) *CreateDBInstanceInput {
  13666. s.Tags = v
  13667. return s
  13668. }
  13669. // SetTdeCredentialArn sets the TdeCredentialArn field's value.
  13670. func (s *CreateDBInstanceInput) SetTdeCredentialArn(v string) *CreateDBInstanceInput {
  13671. s.TdeCredentialArn = &v
  13672. return s
  13673. }
  13674. // SetTdeCredentialPassword sets the TdeCredentialPassword field's value.
  13675. func (s *CreateDBInstanceInput) SetTdeCredentialPassword(v string) *CreateDBInstanceInput {
  13676. s.TdeCredentialPassword = &v
  13677. return s
  13678. }
  13679. // SetTimezone sets the Timezone field's value.
  13680. func (s *CreateDBInstanceInput) SetTimezone(v string) *CreateDBInstanceInput {
  13681. s.Timezone = &v
  13682. return s
  13683. }
  13684. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  13685. func (s *CreateDBInstanceInput) SetVpcSecurityGroupIds(v []*string) *CreateDBInstanceInput {
  13686. s.VpcSecurityGroupIds = v
  13687. return s
  13688. }
  13689. type CreateDBInstanceOutput struct {
  13690. _ struct{} `type:"structure"`
  13691. // Contains the details of an Amazon RDS DB instance.
  13692. //
  13693. // This data type is used as a response element in the DescribeDBInstances action.
  13694. DBInstance *DBInstance `type:"structure"`
  13695. }
  13696. // String returns the string representation
  13697. func (s CreateDBInstanceOutput) String() string {
  13698. return awsutil.Prettify(s)
  13699. }
  13700. // GoString returns the string representation
  13701. func (s CreateDBInstanceOutput) GoString() string {
  13702. return s.String()
  13703. }
  13704. // SetDBInstance sets the DBInstance field's value.
  13705. func (s *CreateDBInstanceOutput) SetDBInstance(v *DBInstance) *CreateDBInstanceOutput {
  13706. s.DBInstance = v
  13707. return s
  13708. }
  13709. type CreateDBInstanceReadReplicaInput struct {
  13710. _ struct{} `type:"structure"`
  13711. // Indicates that minor engine upgrades are applied automatically to the Read
  13712. // Replica during the maintenance window.
  13713. //
  13714. // Default: Inherits from the source DB instance
  13715. AutoMinorVersionUpgrade *bool `type:"boolean"`
  13716. // The Amazon EC2 Availability Zone that the Read Replica is created in.
  13717. //
  13718. // Default: A random, system-chosen Availability Zone in the endpoint's AWS
  13719. // Region.
  13720. //
  13721. // Example: us-east-1d
  13722. AvailabilityZone *string `type:"string"`
  13723. // True to copy all tags from the Read Replica to snapshots of the Read Replica,
  13724. // and otherwise false. The default is false.
  13725. CopyTagsToSnapshot *bool `type:"boolean"`
  13726. // The compute and memory capacity of the Read Replica, for example, db.m4.large.
  13727. // Not all DB instance classes are available in all AWS Regions, or for all
  13728. // database engines. For the full list of DB instance classes, and availability
  13729. // for your engine, see DB Instance Class (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html)
  13730. // in the Amazon RDS User Guide.
  13731. //
  13732. // Default: Inherits from the source DB instance.
  13733. DBInstanceClass *string `type:"string"`
  13734. // The DB instance identifier of the Read Replica. This identifier is the unique
  13735. // key that identifies a DB instance. This parameter is stored as a lowercase
  13736. // string.
  13737. //
  13738. // DBInstanceIdentifier is a required field
  13739. DBInstanceIdentifier *string `type:"string" required:"true"`
  13740. // Specifies a DB subnet group for the DB instance. The new DB instance is created
  13741. // in the VPC associated with the DB subnet group. If no DB subnet group is
  13742. // specified, then the new DB instance is not created in a VPC.
  13743. //
  13744. // Constraints:
  13745. //
  13746. // * Can only be specified if the source DB instance identifier specifies
  13747. // a DB instance in another AWS Region.
  13748. //
  13749. // * If supplied, must match the name of an existing DBSubnetGroup.
  13750. //
  13751. // * The specified DB subnet group must be in the same AWS Region in which
  13752. // the operation is running.
  13753. //
  13754. // * All Read Replicas in one AWS Region that are created from the same source
  13755. // DB instance must either:>
  13756. //
  13757. // Specify DB subnet groups from the same VPC. All these Read Replicas are created
  13758. // in the same VPC.
  13759. //
  13760. // Not specify a DB subnet group. All these Read Replicas are created outside
  13761. // of any VPC.
  13762. //
  13763. // Example: mySubnetgroup
  13764. DBSubnetGroupName *string `type:"string"`
  13765. // Indicates if the DB instance should have deletion protection enabled. The
  13766. // database can't be deleted when this value is set to true. The default is
  13767. // false. For more information, see Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html).
  13768. DeletionProtection *bool `type:"boolean"`
  13769. // DestinationRegion is used for presigning the request to a given region.
  13770. DestinationRegion *string `type:"string"`
  13771. // The list of logs that the new DB instance is to export to CloudWatch Logs.
  13772. // The values in the list depend on the DB engine being used. For more information,
  13773. // see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch)
  13774. // in the Amazon RDS User Guide.
  13775. EnableCloudwatchLogsExports []*string `type:"list"`
  13776. // True to enable mapping of AWS Identity and Access Management (IAM) accounts
  13777. // to database accounts, and otherwise false.
  13778. //
  13779. // You can enable IAM database authentication for the following database engines
  13780. //
  13781. // * For MySQL 5.6, minor version 5.6.34 or higher
  13782. //
  13783. // * For MySQL 5.7, minor version 5.7.16 or higher
  13784. //
  13785. // * Aurora MySQL 5.6 or higher
  13786. //
  13787. // Default: false
  13788. EnableIAMDatabaseAuthentication *bool `type:"boolean"`
  13789. // True to enable Performance Insights for the read replica, and otherwise false.
  13790. //
  13791. // For more information, see Using Amazon Performance Insights (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html)
  13792. // in the Amazon RDS User Guide.
  13793. EnablePerformanceInsights *bool `type:"boolean"`
  13794. // The amount of Provisioned IOPS (input/output operations per second) to be
  13795. // initially allocated for the DB instance.
  13796. Iops *int64 `type:"integer"`
  13797. // The AWS KMS key ID for an encrypted Read Replica. The KMS key ID is the Amazon
  13798. // Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS
  13799. // encryption key.
  13800. //
  13801. // If you create an encrypted Read Replica in the same AWS Region as the source
  13802. // DB instance, then you do not have to specify a value for this parameter.
  13803. // The Read Replica is encrypted with the same KMS key as the source DB instance.
  13804. //
  13805. // If you create an encrypted Read Replica in a different AWS Region, then you
  13806. // must specify a KMS key for the destination AWS Region. KMS encryption keys
  13807. // are specific to the AWS Region that they are created in, and you can't use
  13808. // encryption keys from one AWS Region in another AWS Region.
  13809. //
  13810. // You can't create an encrypted Read Replica from an unencrypted DB instance.
  13811. KmsKeyId *string `type:"string"`
  13812. // The interval, in seconds, between points when Enhanced Monitoring metrics
  13813. // are collected for the Read Replica. To disable collecting Enhanced Monitoring
  13814. // metrics, specify 0. The default is 0.
  13815. //
  13816. // If MonitoringRoleArn is specified, then you must also set MonitoringInterval
  13817. // to a value other than 0.
  13818. //
  13819. // Valid Values: 0, 1, 5, 10, 15, 30, 60
  13820. MonitoringInterval *int64 `type:"integer"`
  13821. // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics
  13822. // to Amazon CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess.
  13823. // For information on creating a monitoring role, go to To create an IAM role
  13824. // for Amazon RDS Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole)
  13825. // in the Amazon RDS User Guide.
  13826. //
  13827. // If MonitoringInterval is set to a value other than 0, then you must supply
  13828. // a MonitoringRoleArn value.
  13829. MonitoringRoleArn *string `type:"string"`
  13830. // Specifies whether the Read Replica is in a Multi-AZ deployment.
  13831. //
  13832. // You can create a Read Replica as a Multi-AZ DB instance. RDS creates a standby
  13833. // of your replica in another Availability Zone for failover support for the
  13834. // replica. Creating your Read Replica as a Multi-AZ DB instance is independent
  13835. // of whether the source database is a Multi-AZ DB instance.
  13836. MultiAZ *bool `type:"boolean"`
  13837. // The option group the DB instance is associated with. If omitted, the default
  13838. // option group for the engine specified is used.
  13839. OptionGroupName *string `type:"string"`
  13840. // The AWS KMS key identifier for encryption of Performance Insights data. The
  13841. // KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the
  13842. // KMS key alias for the KMS encryption key.
  13843. PerformanceInsightsKMSKeyId *string `type:"string"`
  13844. // The amount of time, in days, to retain Performance Insights data. Valid values
  13845. // are 7 or 731 (2 years).
  13846. PerformanceInsightsRetentionPeriod *int64 `type:"integer"`
  13847. // The port number that the DB instance uses for connections.
  13848. //
  13849. // Default: Inherits from the source DB instance
  13850. //
  13851. // Valid Values: 1150-65535
  13852. Port *int64 `type:"integer"`
  13853. // The URL that contains a Signature Version 4 signed request for the CreateDBInstanceReadReplica
  13854. // API action in the source AWS Region that contains the source DB instance.
  13855. //
  13856. // You must specify this parameter when you create an encrypted Read Replica
  13857. // from another AWS Region by using the Amazon RDS API. You can specify the
  13858. // --source-region option instead of this parameter when you create an encrypted
  13859. // Read Replica from another AWS Region by using the AWS CLI.
  13860. //
  13861. // The presigned URL must be a valid request for the CreateDBInstanceReadReplica
  13862. // API action that can be executed in the source AWS Region that contains the
  13863. // encrypted source DB instance. The presigned URL request must contain the
  13864. // following parameter values:
  13865. //
  13866. // * DestinationRegion - The AWS Region that the encrypted Read Replica is
  13867. // created in. This AWS Region is the same one where the CreateDBInstanceReadReplica
  13868. // action is called that contains this presigned URL.
  13869. //
  13870. // For example, if you create an encrypted DB instance in the us-west-1 AWS
  13871. // Region, from a source DB instance in the us-east-2 AWS Region, then you
  13872. // call the CreateDBInstanceReadReplica action in the us-east-1 AWS Region
  13873. // and provide a presigned URL that contains a call to the CreateDBInstanceReadReplica
  13874. // action in the us-west-2 AWS Region. For this example, the DestinationRegion
  13875. // in the presigned URL must be set to the us-east-1 AWS Region.
  13876. //
  13877. // * KmsKeyId - The AWS KMS key identifier for the key to use to encrypt
  13878. // the Read Replica in the destination AWS Region. This is the same identifier
  13879. // for both the CreateDBInstanceReadReplica action that is called in the
  13880. // destination AWS Region, and the action contained in the presigned URL.
  13881. //
  13882. //
  13883. // * SourceDBInstanceIdentifier - The DB instance identifier for the encrypted
  13884. // DB instance to be replicated. This identifier must be in the Amazon Resource
  13885. // Name (ARN) format for the source AWS Region. For example, if you are creating
  13886. // an encrypted Read Replica from a DB instance in the us-west-2 AWS Region,
  13887. // then your SourceDBInstanceIdentifier looks like the following example:
  13888. // arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-20161115.
  13889. //
  13890. //
  13891. // To learn how to generate a Signature Version 4 signed request, see Authenticating
  13892. // Requests: Using Query Parameters (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
  13893. // and Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
  13894. PreSignedUrl *string `type:"string"`
  13895. // The number of CPU cores and the number of threads per core for the DB instance
  13896. // class of the DB instance.
  13897. ProcessorFeatures []*ProcessorFeature `locationNameList:"ProcessorFeature" type:"list"`
  13898. // Specifies the accessibility options for the DB instance. A value of true
  13899. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  13900. // which resolves to a public IP address. A value of false specifies an internal
  13901. // instance with a DNS name that resolves to a private IP address. For more
  13902. // information, see CreateDBInstance.
  13903. PubliclyAccessible *bool `type:"boolean"`
  13904. // The identifier of the DB instance that will act as the source for the Read
  13905. // Replica. Each DB instance can have up to five Read Replicas.
  13906. //
  13907. // Constraints:
  13908. //
  13909. // * Must be the identifier of an existing MySQL, MariaDB, or PostgreSQL
  13910. // DB instance.
  13911. //
  13912. // * Can specify a DB instance that is a MySQL Read Replica only if the source
  13913. // is running MySQL 5.6 or later.
  13914. //
  13915. // * Can specify a DB instance that is a PostgreSQL DB instance only if the
  13916. // source is running PostgreSQL 9.3.5 or later (9.4.7 and higher for cross-region
  13917. // replication).
  13918. //
  13919. // * The specified DB instance must have automatic backups enabled, its backup
  13920. // retention period must be greater than 0.
  13921. //
  13922. // * If the source DB instance is in the same AWS Region as the Read Replica,
  13923. // specify a valid DB instance identifier.
  13924. //
  13925. // * If the source DB instance is in a different AWS Region than the Read
  13926. // Replica, specify a valid DB instance ARN. For more information, go to
  13927. // Constructing an ARN for Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing)
  13928. // in the Amazon RDS User Guide.
  13929. //
  13930. // SourceDBInstanceIdentifier is a required field
  13931. SourceDBInstanceIdentifier *string `type:"string" required:"true"`
  13932. // SourceRegion is the source region where the resource exists. This is not
  13933. // sent over the wire and is only used for presigning. This value should always
  13934. // have the same region as the source ARN.
  13935. SourceRegion *string `type:"string" ignore:"true"`
  13936. // Specifies the storage type to be associated with the Read Replica.
  13937. //
  13938. // Valid values: standard | gp2 | io1
  13939. //
  13940. // If you specify io1, you must also include a value for the Iops parameter.
  13941. //
  13942. // Default: io1 if the Iops parameter is specified, otherwise standard
  13943. StorageType *string `type:"string"`
  13944. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  13945. // in the Amazon RDS User Guide.
  13946. Tags []*Tag `locationNameList:"Tag" type:"list"`
  13947. // A value that specifies that the DB instance class of the DB instance uses
  13948. // its default processor features.
  13949. UseDefaultProcessorFeatures *bool `type:"boolean"`
  13950. // A list of EC2 VPC security groups to associate with the Read Replica.
  13951. //
  13952. // Default: The default EC2 VPC security group for the DB subnet group's VPC.
  13953. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  13954. }
  13955. // String returns the string representation
  13956. func (s CreateDBInstanceReadReplicaInput) String() string {
  13957. return awsutil.Prettify(s)
  13958. }
  13959. // GoString returns the string representation
  13960. func (s CreateDBInstanceReadReplicaInput) GoString() string {
  13961. return s.String()
  13962. }
  13963. // Validate inspects the fields of the type to determine if they are valid.
  13964. func (s *CreateDBInstanceReadReplicaInput) Validate() error {
  13965. invalidParams := request.ErrInvalidParams{Context: "CreateDBInstanceReadReplicaInput"}
  13966. if s.DBInstanceIdentifier == nil {
  13967. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  13968. }
  13969. if s.SourceDBInstanceIdentifier == nil {
  13970. invalidParams.Add(request.NewErrParamRequired("SourceDBInstanceIdentifier"))
  13971. }
  13972. if invalidParams.Len() > 0 {
  13973. return invalidParams
  13974. }
  13975. return nil
  13976. }
  13977. // SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
  13978. func (s *CreateDBInstanceReadReplicaInput) SetAutoMinorVersionUpgrade(v bool) *CreateDBInstanceReadReplicaInput {
  13979. s.AutoMinorVersionUpgrade = &v
  13980. return s
  13981. }
  13982. // SetAvailabilityZone sets the AvailabilityZone field's value.
  13983. func (s *CreateDBInstanceReadReplicaInput) SetAvailabilityZone(v string) *CreateDBInstanceReadReplicaInput {
  13984. s.AvailabilityZone = &v
  13985. return s
  13986. }
  13987. // SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value.
  13988. func (s *CreateDBInstanceReadReplicaInput) SetCopyTagsToSnapshot(v bool) *CreateDBInstanceReadReplicaInput {
  13989. s.CopyTagsToSnapshot = &v
  13990. return s
  13991. }
  13992. // SetDBInstanceClass sets the DBInstanceClass field's value.
  13993. func (s *CreateDBInstanceReadReplicaInput) SetDBInstanceClass(v string) *CreateDBInstanceReadReplicaInput {
  13994. s.DBInstanceClass = &v
  13995. return s
  13996. }
  13997. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  13998. func (s *CreateDBInstanceReadReplicaInput) SetDBInstanceIdentifier(v string) *CreateDBInstanceReadReplicaInput {
  13999. s.DBInstanceIdentifier = &v
  14000. return s
  14001. }
  14002. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  14003. func (s *CreateDBInstanceReadReplicaInput) SetDBSubnetGroupName(v string) *CreateDBInstanceReadReplicaInput {
  14004. s.DBSubnetGroupName = &v
  14005. return s
  14006. }
  14007. // SetDeletionProtection sets the DeletionProtection field's value.
  14008. func (s *CreateDBInstanceReadReplicaInput) SetDeletionProtection(v bool) *CreateDBInstanceReadReplicaInput {
  14009. s.DeletionProtection = &v
  14010. return s
  14011. }
  14012. // SetDestinationRegion sets the DestinationRegion field's value.
  14013. func (s *CreateDBInstanceReadReplicaInput) SetDestinationRegion(v string) *CreateDBInstanceReadReplicaInput {
  14014. s.DestinationRegion = &v
  14015. return s
  14016. }
  14017. // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value.
  14018. func (s *CreateDBInstanceReadReplicaInput) SetEnableCloudwatchLogsExports(v []*string) *CreateDBInstanceReadReplicaInput {
  14019. s.EnableCloudwatchLogsExports = v
  14020. return s
  14021. }
  14022. // SetEnableIAMDatabaseAuthentication sets the EnableIAMDatabaseAuthentication field's value.
  14023. func (s *CreateDBInstanceReadReplicaInput) SetEnableIAMDatabaseAuthentication(v bool) *CreateDBInstanceReadReplicaInput {
  14024. s.EnableIAMDatabaseAuthentication = &v
  14025. return s
  14026. }
  14027. // SetEnablePerformanceInsights sets the EnablePerformanceInsights field's value.
  14028. func (s *CreateDBInstanceReadReplicaInput) SetEnablePerformanceInsights(v bool) *CreateDBInstanceReadReplicaInput {
  14029. s.EnablePerformanceInsights = &v
  14030. return s
  14031. }
  14032. // SetIops sets the Iops field's value.
  14033. func (s *CreateDBInstanceReadReplicaInput) SetIops(v int64) *CreateDBInstanceReadReplicaInput {
  14034. s.Iops = &v
  14035. return s
  14036. }
  14037. // SetKmsKeyId sets the KmsKeyId field's value.
  14038. func (s *CreateDBInstanceReadReplicaInput) SetKmsKeyId(v string) *CreateDBInstanceReadReplicaInput {
  14039. s.KmsKeyId = &v
  14040. return s
  14041. }
  14042. // SetMonitoringInterval sets the MonitoringInterval field's value.
  14043. func (s *CreateDBInstanceReadReplicaInput) SetMonitoringInterval(v int64) *CreateDBInstanceReadReplicaInput {
  14044. s.MonitoringInterval = &v
  14045. return s
  14046. }
  14047. // SetMonitoringRoleArn sets the MonitoringRoleArn field's value.
  14048. func (s *CreateDBInstanceReadReplicaInput) SetMonitoringRoleArn(v string) *CreateDBInstanceReadReplicaInput {
  14049. s.MonitoringRoleArn = &v
  14050. return s
  14051. }
  14052. // SetMultiAZ sets the MultiAZ field's value.
  14053. func (s *CreateDBInstanceReadReplicaInput) SetMultiAZ(v bool) *CreateDBInstanceReadReplicaInput {
  14054. s.MultiAZ = &v
  14055. return s
  14056. }
  14057. // SetOptionGroupName sets the OptionGroupName field's value.
  14058. func (s *CreateDBInstanceReadReplicaInput) SetOptionGroupName(v string) *CreateDBInstanceReadReplicaInput {
  14059. s.OptionGroupName = &v
  14060. return s
  14061. }
  14062. // SetPerformanceInsightsKMSKeyId sets the PerformanceInsightsKMSKeyId field's value.
  14063. func (s *CreateDBInstanceReadReplicaInput) SetPerformanceInsightsKMSKeyId(v string) *CreateDBInstanceReadReplicaInput {
  14064. s.PerformanceInsightsKMSKeyId = &v
  14065. return s
  14066. }
  14067. // SetPerformanceInsightsRetentionPeriod sets the PerformanceInsightsRetentionPeriod field's value.
  14068. func (s *CreateDBInstanceReadReplicaInput) SetPerformanceInsightsRetentionPeriod(v int64) *CreateDBInstanceReadReplicaInput {
  14069. s.PerformanceInsightsRetentionPeriod = &v
  14070. return s
  14071. }
  14072. // SetPort sets the Port field's value.
  14073. func (s *CreateDBInstanceReadReplicaInput) SetPort(v int64) *CreateDBInstanceReadReplicaInput {
  14074. s.Port = &v
  14075. return s
  14076. }
  14077. // SetPreSignedUrl sets the PreSignedUrl field's value.
  14078. func (s *CreateDBInstanceReadReplicaInput) SetPreSignedUrl(v string) *CreateDBInstanceReadReplicaInput {
  14079. s.PreSignedUrl = &v
  14080. return s
  14081. }
  14082. // SetProcessorFeatures sets the ProcessorFeatures field's value.
  14083. func (s *CreateDBInstanceReadReplicaInput) SetProcessorFeatures(v []*ProcessorFeature) *CreateDBInstanceReadReplicaInput {
  14084. s.ProcessorFeatures = v
  14085. return s
  14086. }
  14087. // SetPubliclyAccessible sets the PubliclyAccessible field's value.
  14088. func (s *CreateDBInstanceReadReplicaInput) SetPubliclyAccessible(v bool) *CreateDBInstanceReadReplicaInput {
  14089. s.PubliclyAccessible = &v
  14090. return s
  14091. }
  14092. // SetSourceDBInstanceIdentifier sets the SourceDBInstanceIdentifier field's value.
  14093. func (s *CreateDBInstanceReadReplicaInput) SetSourceDBInstanceIdentifier(v string) *CreateDBInstanceReadReplicaInput {
  14094. s.SourceDBInstanceIdentifier = &v
  14095. return s
  14096. }
  14097. // SetSourceRegion sets the SourceRegion field's value.
  14098. func (s *CreateDBInstanceReadReplicaInput) SetSourceRegion(v string) *CreateDBInstanceReadReplicaInput {
  14099. s.SourceRegion = &v
  14100. return s
  14101. }
  14102. // SetStorageType sets the StorageType field's value.
  14103. func (s *CreateDBInstanceReadReplicaInput) SetStorageType(v string) *CreateDBInstanceReadReplicaInput {
  14104. s.StorageType = &v
  14105. return s
  14106. }
  14107. // SetTags sets the Tags field's value.
  14108. func (s *CreateDBInstanceReadReplicaInput) SetTags(v []*Tag) *CreateDBInstanceReadReplicaInput {
  14109. s.Tags = v
  14110. return s
  14111. }
  14112. // SetUseDefaultProcessorFeatures sets the UseDefaultProcessorFeatures field's value.
  14113. func (s *CreateDBInstanceReadReplicaInput) SetUseDefaultProcessorFeatures(v bool) *CreateDBInstanceReadReplicaInput {
  14114. s.UseDefaultProcessorFeatures = &v
  14115. return s
  14116. }
  14117. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  14118. func (s *CreateDBInstanceReadReplicaInput) SetVpcSecurityGroupIds(v []*string) *CreateDBInstanceReadReplicaInput {
  14119. s.VpcSecurityGroupIds = v
  14120. return s
  14121. }
  14122. type CreateDBInstanceReadReplicaOutput struct {
  14123. _ struct{} `type:"structure"`
  14124. // Contains the details of an Amazon RDS DB instance.
  14125. //
  14126. // This data type is used as a response element in the DescribeDBInstances action.
  14127. DBInstance *DBInstance `type:"structure"`
  14128. }
  14129. // String returns the string representation
  14130. func (s CreateDBInstanceReadReplicaOutput) String() string {
  14131. return awsutil.Prettify(s)
  14132. }
  14133. // GoString returns the string representation
  14134. func (s CreateDBInstanceReadReplicaOutput) GoString() string {
  14135. return s.String()
  14136. }
  14137. // SetDBInstance sets the DBInstance field's value.
  14138. func (s *CreateDBInstanceReadReplicaOutput) SetDBInstance(v *DBInstance) *CreateDBInstanceReadReplicaOutput {
  14139. s.DBInstance = v
  14140. return s
  14141. }
  14142. type CreateDBParameterGroupInput struct {
  14143. _ struct{} `type:"structure"`
  14144. // The DB parameter group family name. A DB parameter group can be associated
  14145. // with one and only one DB parameter group family, and can be applied only
  14146. // to a DB instance running a database engine and engine version compatible
  14147. // with that DB parameter group family.
  14148. //
  14149. // To list all of the available parameter group families, use the following
  14150. // command:
  14151. //
  14152. // aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily"
  14153. //
  14154. // The output contains duplicates.
  14155. //
  14156. // DBParameterGroupFamily is a required field
  14157. DBParameterGroupFamily *string `type:"string" required:"true"`
  14158. // The name of the DB parameter group.
  14159. //
  14160. // Constraints:
  14161. //
  14162. // * Must be 1 to 255 letters, numbers, or hyphens.
  14163. //
  14164. // * First character must be a letter
  14165. //
  14166. // * Can't end with a hyphen or contain two consecutive hyphens
  14167. //
  14168. // This value is stored as a lowercase string.
  14169. //
  14170. // DBParameterGroupName is a required field
  14171. DBParameterGroupName *string `type:"string" required:"true"`
  14172. // The description for the DB parameter group.
  14173. //
  14174. // Description is a required field
  14175. Description *string `type:"string" required:"true"`
  14176. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  14177. // in the Amazon RDS User Guide.
  14178. Tags []*Tag `locationNameList:"Tag" type:"list"`
  14179. }
  14180. // String returns the string representation
  14181. func (s CreateDBParameterGroupInput) String() string {
  14182. return awsutil.Prettify(s)
  14183. }
  14184. // GoString returns the string representation
  14185. func (s CreateDBParameterGroupInput) GoString() string {
  14186. return s.String()
  14187. }
  14188. // Validate inspects the fields of the type to determine if they are valid.
  14189. func (s *CreateDBParameterGroupInput) Validate() error {
  14190. invalidParams := request.ErrInvalidParams{Context: "CreateDBParameterGroupInput"}
  14191. if s.DBParameterGroupFamily == nil {
  14192. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  14193. }
  14194. if s.DBParameterGroupName == nil {
  14195. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  14196. }
  14197. if s.Description == nil {
  14198. invalidParams.Add(request.NewErrParamRequired("Description"))
  14199. }
  14200. if invalidParams.Len() > 0 {
  14201. return invalidParams
  14202. }
  14203. return nil
  14204. }
  14205. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  14206. func (s *CreateDBParameterGroupInput) SetDBParameterGroupFamily(v string) *CreateDBParameterGroupInput {
  14207. s.DBParameterGroupFamily = &v
  14208. return s
  14209. }
  14210. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  14211. func (s *CreateDBParameterGroupInput) SetDBParameterGroupName(v string) *CreateDBParameterGroupInput {
  14212. s.DBParameterGroupName = &v
  14213. return s
  14214. }
  14215. // SetDescription sets the Description field's value.
  14216. func (s *CreateDBParameterGroupInput) SetDescription(v string) *CreateDBParameterGroupInput {
  14217. s.Description = &v
  14218. return s
  14219. }
  14220. // SetTags sets the Tags field's value.
  14221. func (s *CreateDBParameterGroupInput) SetTags(v []*Tag) *CreateDBParameterGroupInput {
  14222. s.Tags = v
  14223. return s
  14224. }
  14225. type CreateDBParameterGroupOutput struct {
  14226. _ struct{} `type:"structure"`
  14227. // Contains the details of an Amazon RDS DB parameter group.
  14228. //
  14229. // This data type is used as a response element in the DescribeDBParameterGroups
  14230. // action.
  14231. DBParameterGroup *DBParameterGroup `type:"structure"`
  14232. }
  14233. // String returns the string representation
  14234. func (s CreateDBParameterGroupOutput) String() string {
  14235. return awsutil.Prettify(s)
  14236. }
  14237. // GoString returns the string representation
  14238. func (s CreateDBParameterGroupOutput) GoString() string {
  14239. return s.String()
  14240. }
  14241. // SetDBParameterGroup sets the DBParameterGroup field's value.
  14242. func (s *CreateDBParameterGroupOutput) SetDBParameterGroup(v *DBParameterGroup) *CreateDBParameterGroupOutput {
  14243. s.DBParameterGroup = v
  14244. return s
  14245. }
  14246. type CreateDBSecurityGroupInput struct {
  14247. _ struct{} `type:"structure"`
  14248. // The description for the DB security group.
  14249. //
  14250. // DBSecurityGroupDescription is a required field
  14251. DBSecurityGroupDescription *string `type:"string" required:"true"`
  14252. // The name for the DB security group. This value is stored as a lowercase string.
  14253. //
  14254. // Constraints:
  14255. //
  14256. // * Must be 1 to 255 letters, numbers, or hyphens.
  14257. //
  14258. // * First character must be a letter
  14259. //
  14260. // * Can't end with a hyphen or contain two consecutive hyphens
  14261. //
  14262. // * Must not be "Default"
  14263. //
  14264. // Example: mysecuritygroup
  14265. //
  14266. // DBSecurityGroupName is a required field
  14267. DBSecurityGroupName *string `type:"string" required:"true"`
  14268. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  14269. // in the Amazon RDS User Guide.
  14270. Tags []*Tag `locationNameList:"Tag" type:"list"`
  14271. }
  14272. // String returns the string representation
  14273. func (s CreateDBSecurityGroupInput) String() string {
  14274. return awsutil.Prettify(s)
  14275. }
  14276. // GoString returns the string representation
  14277. func (s CreateDBSecurityGroupInput) GoString() string {
  14278. return s.String()
  14279. }
  14280. // Validate inspects the fields of the type to determine if they are valid.
  14281. func (s *CreateDBSecurityGroupInput) Validate() error {
  14282. invalidParams := request.ErrInvalidParams{Context: "CreateDBSecurityGroupInput"}
  14283. if s.DBSecurityGroupDescription == nil {
  14284. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupDescription"))
  14285. }
  14286. if s.DBSecurityGroupName == nil {
  14287. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName"))
  14288. }
  14289. if invalidParams.Len() > 0 {
  14290. return invalidParams
  14291. }
  14292. return nil
  14293. }
  14294. // SetDBSecurityGroupDescription sets the DBSecurityGroupDescription field's value.
  14295. func (s *CreateDBSecurityGroupInput) SetDBSecurityGroupDescription(v string) *CreateDBSecurityGroupInput {
  14296. s.DBSecurityGroupDescription = &v
  14297. return s
  14298. }
  14299. // SetDBSecurityGroupName sets the DBSecurityGroupName field's value.
  14300. func (s *CreateDBSecurityGroupInput) SetDBSecurityGroupName(v string) *CreateDBSecurityGroupInput {
  14301. s.DBSecurityGroupName = &v
  14302. return s
  14303. }
  14304. // SetTags sets the Tags field's value.
  14305. func (s *CreateDBSecurityGroupInput) SetTags(v []*Tag) *CreateDBSecurityGroupInput {
  14306. s.Tags = v
  14307. return s
  14308. }
  14309. type CreateDBSecurityGroupOutput struct {
  14310. _ struct{} `type:"structure"`
  14311. // Contains the details for an Amazon RDS DB security group.
  14312. //
  14313. // This data type is used as a response element in the DescribeDBSecurityGroups
  14314. // action.
  14315. DBSecurityGroup *DBSecurityGroup `type:"structure"`
  14316. }
  14317. // String returns the string representation
  14318. func (s CreateDBSecurityGroupOutput) String() string {
  14319. return awsutil.Prettify(s)
  14320. }
  14321. // GoString returns the string representation
  14322. func (s CreateDBSecurityGroupOutput) GoString() string {
  14323. return s.String()
  14324. }
  14325. // SetDBSecurityGroup sets the DBSecurityGroup field's value.
  14326. func (s *CreateDBSecurityGroupOutput) SetDBSecurityGroup(v *DBSecurityGroup) *CreateDBSecurityGroupOutput {
  14327. s.DBSecurityGroup = v
  14328. return s
  14329. }
  14330. type CreateDBSnapshotInput struct {
  14331. _ struct{} `type:"structure"`
  14332. // The identifier of the DB instance that you want to create the snapshot of.
  14333. //
  14334. // Constraints:
  14335. //
  14336. // * Must match the identifier of an existing DBInstance.
  14337. //
  14338. // DBInstanceIdentifier is a required field
  14339. DBInstanceIdentifier *string `type:"string" required:"true"`
  14340. // The identifier for the DB snapshot.
  14341. //
  14342. // Constraints:
  14343. //
  14344. // * Can't be null, empty, or blank
  14345. //
  14346. // * Must contain from 1 to 255 letters, numbers, or hyphens
  14347. //
  14348. // * First character must be a letter
  14349. //
  14350. // * Can't end with a hyphen or contain two consecutive hyphens
  14351. //
  14352. // Example: my-snapshot-id
  14353. //
  14354. // DBSnapshotIdentifier is a required field
  14355. DBSnapshotIdentifier *string `type:"string" required:"true"`
  14356. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  14357. // in the Amazon RDS User Guide.
  14358. Tags []*Tag `locationNameList:"Tag" type:"list"`
  14359. }
  14360. // String returns the string representation
  14361. func (s CreateDBSnapshotInput) String() string {
  14362. return awsutil.Prettify(s)
  14363. }
  14364. // GoString returns the string representation
  14365. func (s CreateDBSnapshotInput) GoString() string {
  14366. return s.String()
  14367. }
  14368. // Validate inspects the fields of the type to determine if they are valid.
  14369. func (s *CreateDBSnapshotInput) Validate() error {
  14370. invalidParams := request.ErrInvalidParams{Context: "CreateDBSnapshotInput"}
  14371. if s.DBInstanceIdentifier == nil {
  14372. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  14373. }
  14374. if s.DBSnapshotIdentifier == nil {
  14375. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  14376. }
  14377. if invalidParams.Len() > 0 {
  14378. return invalidParams
  14379. }
  14380. return nil
  14381. }
  14382. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  14383. func (s *CreateDBSnapshotInput) SetDBInstanceIdentifier(v string) *CreateDBSnapshotInput {
  14384. s.DBInstanceIdentifier = &v
  14385. return s
  14386. }
  14387. // SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value.
  14388. func (s *CreateDBSnapshotInput) SetDBSnapshotIdentifier(v string) *CreateDBSnapshotInput {
  14389. s.DBSnapshotIdentifier = &v
  14390. return s
  14391. }
  14392. // SetTags sets the Tags field's value.
  14393. func (s *CreateDBSnapshotInput) SetTags(v []*Tag) *CreateDBSnapshotInput {
  14394. s.Tags = v
  14395. return s
  14396. }
  14397. type CreateDBSnapshotOutput struct {
  14398. _ struct{} `type:"structure"`
  14399. // Contains the details of an Amazon RDS DB snapshot.
  14400. //
  14401. // This data type is used as a response element in the DescribeDBSnapshots action.
  14402. DBSnapshot *DBSnapshot `type:"structure"`
  14403. }
  14404. // String returns the string representation
  14405. func (s CreateDBSnapshotOutput) String() string {
  14406. return awsutil.Prettify(s)
  14407. }
  14408. // GoString returns the string representation
  14409. func (s CreateDBSnapshotOutput) GoString() string {
  14410. return s.String()
  14411. }
  14412. // SetDBSnapshot sets the DBSnapshot field's value.
  14413. func (s *CreateDBSnapshotOutput) SetDBSnapshot(v *DBSnapshot) *CreateDBSnapshotOutput {
  14414. s.DBSnapshot = v
  14415. return s
  14416. }
  14417. type CreateDBSubnetGroupInput struct {
  14418. _ struct{} `type:"structure"`
  14419. // The description for the DB subnet group.
  14420. //
  14421. // DBSubnetGroupDescription is a required field
  14422. DBSubnetGroupDescription *string `type:"string" required:"true"`
  14423. // The name for the DB subnet group. This value is stored as a lowercase string.
  14424. //
  14425. // Constraints: Must contain no more than 255 letters, numbers, periods, underscores,
  14426. // spaces, or hyphens. Must not be default.
  14427. //
  14428. // Example: mySubnetgroup
  14429. //
  14430. // DBSubnetGroupName is a required field
  14431. DBSubnetGroupName *string `type:"string" required:"true"`
  14432. // The EC2 Subnet IDs for the DB subnet group.
  14433. //
  14434. // SubnetIds is a required field
  14435. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
  14436. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  14437. // in the Amazon RDS User Guide.
  14438. Tags []*Tag `locationNameList:"Tag" type:"list"`
  14439. }
  14440. // String returns the string representation
  14441. func (s CreateDBSubnetGroupInput) String() string {
  14442. return awsutil.Prettify(s)
  14443. }
  14444. // GoString returns the string representation
  14445. func (s CreateDBSubnetGroupInput) GoString() string {
  14446. return s.String()
  14447. }
  14448. // Validate inspects the fields of the type to determine if they are valid.
  14449. func (s *CreateDBSubnetGroupInput) Validate() error {
  14450. invalidParams := request.ErrInvalidParams{Context: "CreateDBSubnetGroupInput"}
  14451. if s.DBSubnetGroupDescription == nil {
  14452. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupDescription"))
  14453. }
  14454. if s.DBSubnetGroupName == nil {
  14455. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName"))
  14456. }
  14457. if s.SubnetIds == nil {
  14458. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  14459. }
  14460. if invalidParams.Len() > 0 {
  14461. return invalidParams
  14462. }
  14463. return nil
  14464. }
  14465. // SetDBSubnetGroupDescription sets the DBSubnetGroupDescription field's value.
  14466. func (s *CreateDBSubnetGroupInput) SetDBSubnetGroupDescription(v string) *CreateDBSubnetGroupInput {
  14467. s.DBSubnetGroupDescription = &v
  14468. return s
  14469. }
  14470. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  14471. func (s *CreateDBSubnetGroupInput) SetDBSubnetGroupName(v string) *CreateDBSubnetGroupInput {
  14472. s.DBSubnetGroupName = &v
  14473. return s
  14474. }
  14475. // SetSubnetIds sets the SubnetIds field's value.
  14476. func (s *CreateDBSubnetGroupInput) SetSubnetIds(v []*string) *CreateDBSubnetGroupInput {
  14477. s.SubnetIds = v
  14478. return s
  14479. }
  14480. // SetTags sets the Tags field's value.
  14481. func (s *CreateDBSubnetGroupInput) SetTags(v []*Tag) *CreateDBSubnetGroupInput {
  14482. s.Tags = v
  14483. return s
  14484. }
  14485. type CreateDBSubnetGroupOutput struct {
  14486. _ struct{} `type:"structure"`
  14487. // Contains the details of an Amazon RDS DB subnet group.
  14488. //
  14489. // This data type is used as a response element in the DescribeDBSubnetGroups
  14490. // action.
  14491. DBSubnetGroup *DBSubnetGroup `type:"structure"`
  14492. }
  14493. // String returns the string representation
  14494. func (s CreateDBSubnetGroupOutput) String() string {
  14495. return awsutil.Prettify(s)
  14496. }
  14497. // GoString returns the string representation
  14498. func (s CreateDBSubnetGroupOutput) GoString() string {
  14499. return s.String()
  14500. }
  14501. // SetDBSubnetGroup sets the DBSubnetGroup field's value.
  14502. func (s *CreateDBSubnetGroupOutput) SetDBSubnetGroup(v *DBSubnetGroup) *CreateDBSubnetGroupOutput {
  14503. s.DBSubnetGroup = v
  14504. return s
  14505. }
  14506. type CreateEventSubscriptionInput struct {
  14507. _ struct{} `type:"structure"`
  14508. // A Boolean value; set to true to activate the subscription, set to false to
  14509. // create the subscription but not active it.
  14510. Enabled *bool `type:"boolean"`
  14511. // A list of event categories for a SourceType that you want to subscribe to.
  14512. // You can see a list of the categories for a given SourceType in the Events
  14513. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html)
  14514. // topic in the Amazon RDS User Guide or by using the DescribeEventCategories
  14515. // action.
  14516. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  14517. // The Amazon Resource Name (ARN) of the SNS topic created for event notification.
  14518. // The ARN is created by Amazon SNS when you create a topic and subscribe to
  14519. // it.
  14520. //
  14521. // SnsTopicArn is a required field
  14522. SnsTopicArn *string `type:"string" required:"true"`
  14523. // The list of identifiers of the event sources for which events are returned.
  14524. // If not specified, then all sources are included in the response. An identifier
  14525. // must begin with a letter and must contain only ASCII letters, digits, and
  14526. // hyphens; it can't end with a hyphen or contain two consecutive hyphens.
  14527. //
  14528. // Constraints:
  14529. //
  14530. // * If SourceIds are supplied, SourceType must also be provided.
  14531. //
  14532. // * If the source type is a DB instance, then a DBInstanceIdentifier must
  14533. // be supplied.
  14534. //
  14535. // * If the source type is a DB security group, a DBSecurityGroupName must
  14536. // be supplied.
  14537. //
  14538. // * If the source type is a DB parameter group, a DBParameterGroupName must
  14539. // be supplied.
  14540. //
  14541. // * If the source type is a DB snapshot, a DBSnapshotIdentifier must be
  14542. // supplied.
  14543. SourceIds []*string `locationNameList:"SourceId" type:"list"`
  14544. // The type of source that is generating the events. For example, if you want
  14545. // to be notified of events generated by a DB instance, you would set this parameter
  14546. // to db-instance. if this value is not specified, all events are returned.
  14547. //
  14548. // Valid values: db-instance | db-cluster | db-parameter-group | db-security-group
  14549. // | db-snapshot | db-cluster-snapshot
  14550. SourceType *string `type:"string"`
  14551. // The name of the subscription.
  14552. //
  14553. // Constraints: The name must be less than 255 characters.
  14554. //
  14555. // SubscriptionName is a required field
  14556. SubscriptionName *string `type:"string" required:"true"`
  14557. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  14558. // in the Amazon RDS User Guide.
  14559. Tags []*Tag `locationNameList:"Tag" type:"list"`
  14560. }
  14561. // String returns the string representation
  14562. func (s CreateEventSubscriptionInput) String() string {
  14563. return awsutil.Prettify(s)
  14564. }
  14565. // GoString returns the string representation
  14566. func (s CreateEventSubscriptionInput) GoString() string {
  14567. return s.String()
  14568. }
  14569. // Validate inspects the fields of the type to determine if they are valid.
  14570. func (s *CreateEventSubscriptionInput) Validate() error {
  14571. invalidParams := request.ErrInvalidParams{Context: "CreateEventSubscriptionInput"}
  14572. if s.SnsTopicArn == nil {
  14573. invalidParams.Add(request.NewErrParamRequired("SnsTopicArn"))
  14574. }
  14575. if s.SubscriptionName == nil {
  14576. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  14577. }
  14578. if invalidParams.Len() > 0 {
  14579. return invalidParams
  14580. }
  14581. return nil
  14582. }
  14583. // SetEnabled sets the Enabled field's value.
  14584. func (s *CreateEventSubscriptionInput) SetEnabled(v bool) *CreateEventSubscriptionInput {
  14585. s.Enabled = &v
  14586. return s
  14587. }
  14588. // SetEventCategories sets the EventCategories field's value.
  14589. func (s *CreateEventSubscriptionInput) SetEventCategories(v []*string) *CreateEventSubscriptionInput {
  14590. s.EventCategories = v
  14591. return s
  14592. }
  14593. // SetSnsTopicArn sets the SnsTopicArn field's value.
  14594. func (s *CreateEventSubscriptionInput) SetSnsTopicArn(v string) *CreateEventSubscriptionInput {
  14595. s.SnsTopicArn = &v
  14596. return s
  14597. }
  14598. // SetSourceIds sets the SourceIds field's value.
  14599. func (s *CreateEventSubscriptionInput) SetSourceIds(v []*string) *CreateEventSubscriptionInput {
  14600. s.SourceIds = v
  14601. return s
  14602. }
  14603. // SetSourceType sets the SourceType field's value.
  14604. func (s *CreateEventSubscriptionInput) SetSourceType(v string) *CreateEventSubscriptionInput {
  14605. s.SourceType = &v
  14606. return s
  14607. }
  14608. // SetSubscriptionName sets the SubscriptionName field's value.
  14609. func (s *CreateEventSubscriptionInput) SetSubscriptionName(v string) *CreateEventSubscriptionInput {
  14610. s.SubscriptionName = &v
  14611. return s
  14612. }
  14613. // SetTags sets the Tags field's value.
  14614. func (s *CreateEventSubscriptionInput) SetTags(v []*Tag) *CreateEventSubscriptionInput {
  14615. s.Tags = v
  14616. return s
  14617. }
  14618. type CreateEventSubscriptionOutput struct {
  14619. _ struct{} `type:"structure"`
  14620. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  14621. // action.
  14622. EventSubscription *EventSubscription `type:"structure"`
  14623. }
  14624. // String returns the string representation
  14625. func (s CreateEventSubscriptionOutput) String() string {
  14626. return awsutil.Prettify(s)
  14627. }
  14628. // GoString returns the string representation
  14629. func (s CreateEventSubscriptionOutput) GoString() string {
  14630. return s.String()
  14631. }
  14632. // SetEventSubscription sets the EventSubscription field's value.
  14633. func (s *CreateEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *CreateEventSubscriptionOutput {
  14634. s.EventSubscription = v
  14635. return s
  14636. }
  14637. type CreateGlobalClusterInput struct {
  14638. _ struct{} `type:"structure"`
  14639. // The name for your database of up to 64 alpha-numeric characters. If you do
  14640. // not provide a name, Amazon Aurora will not create a database in the global
  14641. // database cluster you are creating.
  14642. DatabaseName *string `type:"string"`
  14643. // The deletion protection setting for the new global database. The global database
  14644. // can't be deleted when this value is set to true.
  14645. DeletionProtection *bool `type:"boolean"`
  14646. // Provides the name of the database engine to be used for this DB cluster.
  14647. Engine *string `type:"string"`
  14648. // The engine version of the Aurora global database.
  14649. EngineVersion *string `type:"string"`
  14650. // The cluster identifier of the new global database cluster.
  14651. GlobalClusterIdentifier *string `type:"string"`
  14652. // The Amazon Resource Name (ARN) to use as the primary cluster of the global
  14653. // database. This parameter is optional.
  14654. SourceDBClusterIdentifier *string `type:"string"`
  14655. // The storage encryption setting for the new global database cluster.
  14656. StorageEncrypted *bool `type:"boolean"`
  14657. }
  14658. // String returns the string representation
  14659. func (s CreateGlobalClusterInput) String() string {
  14660. return awsutil.Prettify(s)
  14661. }
  14662. // GoString returns the string representation
  14663. func (s CreateGlobalClusterInput) GoString() string {
  14664. return s.String()
  14665. }
  14666. // SetDatabaseName sets the DatabaseName field's value.
  14667. func (s *CreateGlobalClusterInput) SetDatabaseName(v string) *CreateGlobalClusterInput {
  14668. s.DatabaseName = &v
  14669. return s
  14670. }
  14671. // SetDeletionProtection sets the DeletionProtection field's value.
  14672. func (s *CreateGlobalClusterInput) SetDeletionProtection(v bool) *CreateGlobalClusterInput {
  14673. s.DeletionProtection = &v
  14674. return s
  14675. }
  14676. // SetEngine sets the Engine field's value.
  14677. func (s *CreateGlobalClusterInput) SetEngine(v string) *CreateGlobalClusterInput {
  14678. s.Engine = &v
  14679. return s
  14680. }
  14681. // SetEngineVersion sets the EngineVersion field's value.
  14682. func (s *CreateGlobalClusterInput) SetEngineVersion(v string) *CreateGlobalClusterInput {
  14683. s.EngineVersion = &v
  14684. return s
  14685. }
  14686. // SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value.
  14687. func (s *CreateGlobalClusterInput) SetGlobalClusterIdentifier(v string) *CreateGlobalClusterInput {
  14688. s.GlobalClusterIdentifier = &v
  14689. return s
  14690. }
  14691. // SetSourceDBClusterIdentifier sets the SourceDBClusterIdentifier field's value.
  14692. func (s *CreateGlobalClusterInput) SetSourceDBClusterIdentifier(v string) *CreateGlobalClusterInput {
  14693. s.SourceDBClusterIdentifier = &v
  14694. return s
  14695. }
  14696. // SetStorageEncrypted sets the StorageEncrypted field's value.
  14697. func (s *CreateGlobalClusterInput) SetStorageEncrypted(v bool) *CreateGlobalClusterInput {
  14698. s.StorageEncrypted = &v
  14699. return s
  14700. }
  14701. type CreateGlobalClusterOutput struct {
  14702. _ struct{} `type:"structure"`
  14703. // A data type representing an Aurora global database.
  14704. GlobalCluster *GlobalCluster `type:"structure"`
  14705. }
  14706. // String returns the string representation
  14707. func (s CreateGlobalClusterOutput) String() string {
  14708. return awsutil.Prettify(s)
  14709. }
  14710. // GoString returns the string representation
  14711. func (s CreateGlobalClusterOutput) GoString() string {
  14712. return s.String()
  14713. }
  14714. // SetGlobalCluster sets the GlobalCluster field's value.
  14715. func (s *CreateGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *CreateGlobalClusterOutput {
  14716. s.GlobalCluster = v
  14717. return s
  14718. }
  14719. type CreateOptionGroupInput struct {
  14720. _ struct{} `type:"structure"`
  14721. // Specifies the name of the engine that this option group should be associated
  14722. // with.
  14723. //
  14724. // EngineName is a required field
  14725. EngineName *string `type:"string" required:"true"`
  14726. // Specifies the major version of the engine that this option group should be
  14727. // associated with.
  14728. //
  14729. // MajorEngineVersion is a required field
  14730. MajorEngineVersion *string `type:"string" required:"true"`
  14731. // The description of the option group.
  14732. //
  14733. // OptionGroupDescription is a required field
  14734. OptionGroupDescription *string `type:"string" required:"true"`
  14735. // Specifies the name of the option group to be created.
  14736. //
  14737. // Constraints:
  14738. //
  14739. // * Must be 1 to 255 letters, numbers, or hyphens
  14740. //
  14741. // * First character must be a letter
  14742. //
  14743. // * Can't end with a hyphen or contain two consecutive hyphens
  14744. //
  14745. // Example: myoptiongroup
  14746. //
  14747. // OptionGroupName is a required field
  14748. OptionGroupName *string `type:"string" required:"true"`
  14749. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  14750. // in the Amazon RDS User Guide.
  14751. Tags []*Tag `locationNameList:"Tag" type:"list"`
  14752. }
  14753. // String returns the string representation
  14754. func (s CreateOptionGroupInput) String() string {
  14755. return awsutil.Prettify(s)
  14756. }
  14757. // GoString returns the string representation
  14758. func (s CreateOptionGroupInput) GoString() string {
  14759. return s.String()
  14760. }
  14761. // Validate inspects the fields of the type to determine if they are valid.
  14762. func (s *CreateOptionGroupInput) Validate() error {
  14763. invalidParams := request.ErrInvalidParams{Context: "CreateOptionGroupInput"}
  14764. if s.EngineName == nil {
  14765. invalidParams.Add(request.NewErrParamRequired("EngineName"))
  14766. }
  14767. if s.MajorEngineVersion == nil {
  14768. invalidParams.Add(request.NewErrParamRequired("MajorEngineVersion"))
  14769. }
  14770. if s.OptionGroupDescription == nil {
  14771. invalidParams.Add(request.NewErrParamRequired("OptionGroupDescription"))
  14772. }
  14773. if s.OptionGroupName == nil {
  14774. invalidParams.Add(request.NewErrParamRequired("OptionGroupName"))
  14775. }
  14776. if invalidParams.Len() > 0 {
  14777. return invalidParams
  14778. }
  14779. return nil
  14780. }
  14781. // SetEngineName sets the EngineName field's value.
  14782. func (s *CreateOptionGroupInput) SetEngineName(v string) *CreateOptionGroupInput {
  14783. s.EngineName = &v
  14784. return s
  14785. }
  14786. // SetMajorEngineVersion sets the MajorEngineVersion field's value.
  14787. func (s *CreateOptionGroupInput) SetMajorEngineVersion(v string) *CreateOptionGroupInput {
  14788. s.MajorEngineVersion = &v
  14789. return s
  14790. }
  14791. // SetOptionGroupDescription sets the OptionGroupDescription field's value.
  14792. func (s *CreateOptionGroupInput) SetOptionGroupDescription(v string) *CreateOptionGroupInput {
  14793. s.OptionGroupDescription = &v
  14794. return s
  14795. }
  14796. // SetOptionGroupName sets the OptionGroupName field's value.
  14797. func (s *CreateOptionGroupInput) SetOptionGroupName(v string) *CreateOptionGroupInput {
  14798. s.OptionGroupName = &v
  14799. return s
  14800. }
  14801. // SetTags sets the Tags field's value.
  14802. func (s *CreateOptionGroupInput) SetTags(v []*Tag) *CreateOptionGroupInput {
  14803. s.Tags = v
  14804. return s
  14805. }
  14806. type CreateOptionGroupOutput struct {
  14807. _ struct{} `type:"structure"`
  14808. OptionGroup *OptionGroup `type:"structure"`
  14809. }
  14810. // String returns the string representation
  14811. func (s CreateOptionGroupOutput) String() string {
  14812. return awsutil.Prettify(s)
  14813. }
  14814. // GoString returns the string representation
  14815. func (s CreateOptionGroupOutput) GoString() string {
  14816. return s.String()
  14817. }
  14818. // SetOptionGroup sets the OptionGroup field's value.
  14819. func (s *CreateOptionGroupOutput) SetOptionGroup(v *OptionGroup) *CreateOptionGroupOutput {
  14820. s.OptionGroup = v
  14821. return s
  14822. }
  14823. // Contains the details of an Amazon Aurora DB cluster.
  14824. //
  14825. // This data type is used as a response element in the DescribeDBClusters, StopDBCluster,
  14826. // and StartDBCluster actions.
  14827. type DBCluster struct {
  14828. _ struct{} `type:"structure"`
  14829. // For all database engines except Amazon Aurora, AllocatedStorage specifies
  14830. // the allocated storage size in gibibytes (GiB). For Aurora, AllocatedStorage
  14831. // always returns 1, because Aurora DB cluster storage size is not fixed, but
  14832. // instead automatically adjusts as needed.
  14833. AllocatedStorage *int64 `type:"integer"`
  14834. // Provides a list of the AWS Identity and Access Management (IAM) roles that
  14835. // are associated with the DB cluster. IAM roles that are associated with a
  14836. // DB cluster grant permission for the DB cluster to access other AWS services
  14837. // on your behalf.
  14838. AssociatedRoles []*DBClusterRole `locationNameList:"DBClusterRole" type:"list"`
  14839. // Provides the list of EC2 Availability Zones that instances in the DB cluster
  14840. // can be created in.
  14841. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  14842. // The number of change records stored for Backtrack.
  14843. BacktrackConsumedChangeRecords *int64 `type:"long"`
  14844. // The target backtrack window, in seconds. If this value is set to 0, backtracking
  14845. // is disabled for the DB cluster. Otherwise, backtracking is enabled.
  14846. BacktrackWindow *int64 `type:"long"`
  14847. // Specifies the number of days for which automatic DB snapshots are retained.
  14848. BackupRetentionPeriod *int64 `type:"integer"`
  14849. // The current capacity of an Aurora Serverless DB cluster. The capacity is
  14850. // 0 (zero) when the cluster is paused.
  14851. //
  14852. // For more information about Aurora Serverless, see Using Amazon Aurora Serverless
  14853. // (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html)
  14854. // in the Amazon Aurora User Guide.
  14855. Capacity *int64 `type:"integer"`
  14856. // If present, specifies the name of the character set that this cluster is
  14857. // associated with.
  14858. CharacterSetName *string `type:"string"`
  14859. // Identifies the clone group to which the DB cluster is associated.
  14860. CloneGroupId *string `type:"string"`
  14861. // Specifies the time when the DB cluster was created, in Universal Coordinated
  14862. // Time (UTC).
  14863. ClusterCreateTime *time.Time `type:"timestamp"`
  14864. // Identifies all custom endpoints associated with the cluster.
  14865. CustomEndpoints []*string `type:"list"`
  14866. // The Amazon Resource Name (ARN) for the DB cluster.
  14867. DBClusterArn *string `type:"string"`
  14868. // Contains a user-supplied DB cluster identifier. This identifier is the unique
  14869. // key that identifies a DB cluster.
  14870. DBClusterIdentifier *string `type:"string"`
  14871. // Provides the list of instances that make up the DB cluster.
  14872. DBClusterMembers []*DBClusterMember `locationNameList:"DBClusterMember" type:"list"`
  14873. // Provides the list of option group memberships for this DB cluster.
  14874. DBClusterOptionGroupMemberships []*DBClusterOptionGroupStatus `locationNameList:"DBClusterOptionGroup" type:"list"`
  14875. // Specifies the name of the DB cluster parameter group for the DB cluster.
  14876. DBClusterParameterGroup *string `type:"string"`
  14877. // Specifies information on the subnet group associated with the DB cluster,
  14878. // including the name, description, and subnets in the subnet group.
  14879. DBSubnetGroup *string `type:"string"`
  14880. // Contains the name of the initial database of this DB cluster that was provided
  14881. // at create time, if one was specified when the DB cluster was created. This
  14882. // same name is returned for the life of the DB cluster.
  14883. DatabaseName *string `type:"string"`
  14884. // The AWS Region-unique, immutable identifier for the DB cluster. This identifier
  14885. // is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB
  14886. // cluster is accessed.
  14887. DbClusterResourceId *string `type:"string"`
  14888. // Indicates if the DB cluster has deletion protection enabled. The database
  14889. // can't be deleted when this value is set to true.
  14890. DeletionProtection *bool `type:"boolean"`
  14891. // The earliest time to which a DB cluster can be backtracked.
  14892. EarliestBacktrackTime *time.Time `type:"timestamp"`
  14893. // The earliest time to which a database can be restored with point-in-time
  14894. // restore.
  14895. EarliestRestorableTime *time.Time `type:"timestamp"`
  14896. // A list of log types that this DB cluster is configured to export to CloudWatch
  14897. // Logs.
  14898. //
  14899. // Log types vary by DB engine. For information about the log types for each
  14900. // DB engine, see Amazon RDS Database Log Files (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html)
  14901. // in the Amazon Aurora User Guide.
  14902. EnabledCloudwatchLogsExports []*string `type:"list"`
  14903. // Specifies the connection endpoint for the primary instance of the DB cluster.
  14904. Endpoint *string `type:"string"`
  14905. // Provides the name of the database engine to be used for this DB cluster.
  14906. Engine *string `type:"string"`
  14907. // The DB engine mode of the DB cluster, either provisioned, serverless, or
  14908. // parallelquery.
  14909. EngineMode *string `type:"string"`
  14910. // Indicates the database engine version.
  14911. EngineVersion *string `type:"string"`
  14912. // Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
  14913. HostedZoneId *string `type:"string"`
  14914. // HTTP endpoint functionality is in beta for Aurora Serverless and is subject
  14915. // to change.
  14916. //
  14917. // Value that is true if the HTTP endpoint for an Aurora Serverless DB cluster
  14918. // is enabled and false otherwise.
  14919. //
  14920. // When enabled, the HTTP endpoint provides a connectionless web service API
  14921. // for running SQL queries on the Aurora Serverless DB cluster. You can also
  14922. // query your database from inside the RDS console with the query editor.
  14923. //
  14924. // For more information about Aurora Serverless, see Using Amazon Aurora Serverless
  14925. // (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html)
  14926. // in the Amazon Aurora User Guide.
  14927. HttpEndpointEnabled *bool `type:"boolean"`
  14928. // True if mapping of AWS Identity and Access Management (IAM) accounts to database
  14929. // accounts is enabled, and otherwise false.
  14930. IAMDatabaseAuthenticationEnabled *bool `type:"boolean"`
  14931. // If StorageEncrypted is true, the AWS KMS key identifier for the encrypted
  14932. // DB cluster.
  14933. KmsKeyId *string `type:"string"`
  14934. // Specifies the latest time to which a database can be restored with point-in-time
  14935. // restore.
  14936. LatestRestorableTime *time.Time `type:"timestamp"`
  14937. // Contains the master username for the DB cluster.
  14938. MasterUsername *string `type:"string"`
  14939. // Specifies whether the DB cluster has instances in multiple Availability Zones.
  14940. MultiAZ *bool `type:"boolean"`
  14941. // Specifies the progress of the operation as a percentage.
  14942. PercentProgress *string `type:"string"`
  14943. // Specifies the port that the database engine is listening on.
  14944. Port *int64 `type:"integer"`
  14945. // Specifies the daily time range during which automated backups are created
  14946. // if automated backups are enabled, as determined by the BackupRetentionPeriod.
  14947. PreferredBackupWindow *string `type:"string"`
  14948. // Specifies the weekly time range during which system maintenance can occur,
  14949. // in Universal Coordinated Time (UTC).
  14950. PreferredMaintenanceWindow *string `type:"string"`
  14951. // Contains one or more identifiers of the Read Replicas associated with this
  14952. // DB cluster.
  14953. ReadReplicaIdentifiers []*string `locationNameList:"ReadReplicaIdentifier" type:"list"`
  14954. // The reader endpoint for the DB cluster. The reader endpoint for a DB cluster
  14955. // load-balances connections across the Aurora Replicas that are available in
  14956. // a DB cluster. As clients request new connections to the reader endpoint,
  14957. // Aurora distributes the connection requests among the Aurora Replicas in the
  14958. // DB cluster. This functionality can help balance your read workload across
  14959. // multiple Aurora Replicas in your DB cluster.
  14960. //
  14961. // If a failover occurs, and the Aurora Replica that you are connected to is
  14962. // promoted to be the primary instance, your connection is dropped. To continue
  14963. // sending your read workload to other Aurora Replicas in the cluster, you can
  14964. // then reconnect to the reader endpoint.
  14965. ReaderEndpoint *string `type:"string"`
  14966. // Contains the identifier of the source DB cluster if this DB cluster is a
  14967. // Read Replica.
  14968. ReplicationSourceIdentifier *string `type:"string"`
  14969. // Shows the scaling configuration for an Aurora DB cluster in serverless DB
  14970. // engine mode.
  14971. //
  14972. // For more information, see Using Amazon Aurora Serverless (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html)
  14973. // in the Amazon Aurora User Guide.
  14974. ScalingConfigurationInfo *ScalingConfigurationInfo `type:"structure"`
  14975. // Specifies the current state of this DB cluster.
  14976. Status *string `type:"string"`
  14977. // Specifies whether the DB cluster is encrypted.
  14978. StorageEncrypted *bool `type:"boolean"`
  14979. // Provides a list of VPC security groups that the DB cluster belongs to.
  14980. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"`
  14981. }
  14982. // String returns the string representation
  14983. func (s DBCluster) String() string {
  14984. return awsutil.Prettify(s)
  14985. }
  14986. // GoString returns the string representation
  14987. func (s DBCluster) GoString() string {
  14988. return s.String()
  14989. }
  14990. // SetAllocatedStorage sets the AllocatedStorage field's value.
  14991. func (s *DBCluster) SetAllocatedStorage(v int64) *DBCluster {
  14992. s.AllocatedStorage = &v
  14993. return s
  14994. }
  14995. // SetAssociatedRoles sets the AssociatedRoles field's value.
  14996. func (s *DBCluster) SetAssociatedRoles(v []*DBClusterRole) *DBCluster {
  14997. s.AssociatedRoles = v
  14998. return s
  14999. }
  15000. // SetAvailabilityZones sets the AvailabilityZones field's value.
  15001. func (s *DBCluster) SetAvailabilityZones(v []*string) *DBCluster {
  15002. s.AvailabilityZones = v
  15003. return s
  15004. }
  15005. // SetBacktrackConsumedChangeRecords sets the BacktrackConsumedChangeRecords field's value.
  15006. func (s *DBCluster) SetBacktrackConsumedChangeRecords(v int64) *DBCluster {
  15007. s.BacktrackConsumedChangeRecords = &v
  15008. return s
  15009. }
  15010. // SetBacktrackWindow sets the BacktrackWindow field's value.
  15011. func (s *DBCluster) SetBacktrackWindow(v int64) *DBCluster {
  15012. s.BacktrackWindow = &v
  15013. return s
  15014. }
  15015. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  15016. func (s *DBCluster) SetBackupRetentionPeriod(v int64) *DBCluster {
  15017. s.BackupRetentionPeriod = &v
  15018. return s
  15019. }
  15020. // SetCapacity sets the Capacity field's value.
  15021. func (s *DBCluster) SetCapacity(v int64) *DBCluster {
  15022. s.Capacity = &v
  15023. return s
  15024. }
  15025. // SetCharacterSetName sets the CharacterSetName field's value.
  15026. func (s *DBCluster) SetCharacterSetName(v string) *DBCluster {
  15027. s.CharacterSetName = &v
  15028. return s
  15029. }
  15030. // SetCloneGroupId sets the CloneGroupId field's value.
  15031. func (s *DBCluster) SetCloneGroupId(v string) *DBCluster {
  15032. s.CloneGroupId = &v
  15033. return s
  15034. }
  15035. // SetClusterCreateTime sets the ClusterCreateTime field's value.
  15036. func (s *DBCluster) SetClusterCreateTime(v time.Time) *DBCluster {
  15037. s.ClusterCreateTime = &v
  15038. return s
  15039. }
  15040. // SetCustomEndpoints sets the CustomEndpoints field's value.
  15041. func (s *DBCluster) SetCustomEndpoints(v []*string) *DBCluster {
  15042. s.CustomEndpoints = v
  15043. return s
  15044. }
  15045. // SetDBClusterArn sets the DBClusterArn field's value.
  15046. func (s *DBCluster) SetDBClusterArn(v string) *DBCluster {
  15047. s.DBClusterArn = &v
  15048. return s
  15049. }
  15050. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  15051. func (s *DBCluster) SetDBClusterIdentifier(v string) *DBCluster {
  15052. s.DBClusterIdentifier = &v
  15053. return s
  15054. }
  15055. // SetDBClusterMembers sets the DBClusterMembers field's value.
  15056. func (s *DBCluster) SetDBClusterMembers(v []*DBClusterMember) *DBCluster {
  15057. s.DBClusterMembers = v
  15058. return s
  15059. }
  15060. // SetDBClusterOptionGroupMemberships sets the DBClusterOptionGroupMemberships field's value.
  15061. func (s *DBCluster) SetDBClusterOptionGroupMemberships(v []*DBClusterOptionGroupStatus) *DBCluster {
  15062. s.DBClusterOptionGroupMemberships = v
  15063. return s
  15064. }
  15065. // SetDBClusterParameterGroup sets the DBClusterParameterGroup field's value.
  15066. func (s *DBCluster) SetDBClusterParameterGroup(v string) *DBCluster {
  15067. s.DBClusterParameterGroup = &v
  15068. return s
  15069. }
  15070. // SetDBSubnetGroup sets the DBSubnetGroup field's value.
  15071. func (s *DBCluster) SetDBSubnetGroup(v string) *DBCluster {
  15072. s.DBSubnetGroup = &v
  15073. return s
  15074. }
  15075. // SetDatabaseName sets the DatabaseName field's value.
  15076. func (s *DBCluster) SetDatabaseName(v string) *DBCluster {
  15077. s.DatabaseName = &v
  15078. return s
  15079. }
  15080. // SetDbClusterResourceId sets the DbClusterResourceId field's value.
  15081. func (s *DBCluster) SetDbClusterResourceId(v string) *DBCluster {
  15082. s.DbClusterResourceId = &v
  15083. return s
  15084. }
  15085. // SetDeletionProtection sets the DeletionProtection field's value.
  15086. func (s *DBCluster) SetDeletionProtection(v bool) *DBCluster {
  15087. s.DeletionProtection = &v
  15088. return s
  15089. }
  15090. // SetEarliestBacktrackTime sets the EarliestBacktrackTime field's value.
  15091. func (s *DBCluster) SetEarliestBacktrackTime(v time.Time) *DBCluster {
  15092. s.EarliestBacktrackTime = &v
  15093. return s
  15094. }
  15095. // SetEarliestRestorableTime sets the EarliestRestorableTime field's value.
  15096. func (s *DBCluster) SetEarliestRestorableTime(v time.Time) *DBCluster {
  15097. s.EarliestRestorableTime = &v
  15098. return s
  15099. }
  15100. // SetEnabledCloudwatchLogsExports sets the EnabledCloudwatchLogsExports field's value.
  15101. func (s *DBCluster) SetEnabledCloudwatchLogsExports(v []*string) *DBCluster {
  15102. s.EnabledCloudwatchLogsExports = v
  15103. return s
  15104. }
  15105. // SetEndpoint sets the Endpoint field's value.
  15106. func (s *DBCluster) SetEndpoint(v string) *DBCluster {
  15107. s.Endpoint = &v
  15108. return s
  15109. }
  15110. // SetEngine sets the Engine field's value.
  15111. func (s *DBCluster) SetEngine(v string) *DBCluster {
  15112. s.Engine = &v
  15113. return s
  15114. }
  15115. // SetEngineMode sets the EngineMode field's value.
  15116. func (s *DBCluster) SetEngineMode(v string) *DBCluster {
  15117. s.EngineMode = &v
  15118. return s
  15119. }
  15120. // SetEngineVersion sets the EngineVersion field's value.
  15121. func (s *DBCluster) SetEngineVersion(v string) *DBCluster {
  15122. s.EngineVersion = &v
  15123. return s
  15124. }
  15125. // SetHostedZoneId sets the HostedZoneId field's value.
  15126. func (s *DBCluster) SetHostedZoneId(v string) *DBCluster {
  15127. s.HostedZoneId = &v
  15128. return s
  15129. }
  15130. // SetHttpEndpointEnabled sets the HttpEndpointEnabled field's value.
  15131. func (s *DBCluster) SetHttpEndpointEnabled(v bool) *DBCluster {
  15132. s.HttpEndpointEnabled = &v
  15133. return s
  15134. }
  15135. // SetIAMDatabaseAuthenticationEnabled sets the IAMDatabaseAuthenticationEnabled field's value.
  15136. func (s *DBCluster) SetIAMDatabaseAuthenticationEnabled(v bool) *DBCluster {
  15137. s.IAMDatabaseAuthenticationEnabled = &v
  15138. return s
  15139. }
  15140. // SetKmsKeyId sets the KmsKeyId field's value.
  15141. func (s *DBCluster) SetKmsKeyId(v string) *DBCluster {
  15142. s.KmsKeyId = &v
  15143. return s
  15144. }
  15145. // SetLatestRestorableTime sets the LatestRestorableTime field's value.
  15146. func (s *DBCluster) SetLatestRestorableTime(v time.Time) *DBCluster {
  15147. s.LatestRestorableTime = &v
  15148. return s
  15149. }
  15150. // SetMasterUsername sets the MasterUsername field's value.
  15151. func (s *DBCluster) SetMasterUsername(v string) *DBCluster {
  15152. s.MasterUsername = &v
  15153. return s
  15154. }
  15155. // SetMultiAZ sets the MultiAZ field's value.
  15156. func (s *DBCluster) SetMultiAZ(v bool) *DBCluster {
  15157. s.MultiAZ = &v
  15158. return s
  15159. }
  15160. // SetPercentProgress sets the PercentProgress field's value.
  15161. func (s *DBCluster) SetPercentProgress(v string) *DBCluster {
  15162. s.PercentProgress = &v
  15163. return s
  15164. }
  15165. // SetPort sets the Port field's value.
  15166. func (s *DBCluster) SetPort(v int64) *DBCluster {
  15167. s.Port = &v
  15168. return s
  15169. }
  15170. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  15171. func (s *DBCluster) SetPreferredBackupWindow(v string) *DBCluster {
  15172. s.PreferredBackupWindow = &v
  15173. return s
  15174. }
  15175. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  15176. func (s *DBCluster) SetPreferredMaintenanceWindow(v string) *DBCluster {
  15177. s.PreferredMaintenanceWindow = &v
  15178. return s
  15179. }
  15180. // SetReadReplicaIdentifiers sets the ReadReplicaIdentifiers field's value.
  15181. func (s *DBCluster) SetReadReplicaIdentifiers(v []*string) *DBCluster {
  15182. s.ReadReplicaIdentifiers = v
  15183. return s
  15184. }
  15185. // SetReaderEndpoint sets the ReaderEndpoint field's value.
  15186. func (s *DBCluster) SetReaderEndpoint(v string) *DBCluster {
  15187. s.ReaderEndpoint = &v
  15188. return s
  15189. }
  15190. // SetReplicationSourceIdentifier sets the ReplicationSourceIdentifier field's value.
  15191. func (s *DBCluster) SetReplicationSourceIdentifier(v string) *DBCluster {
  15192. s.ReplicationSourceIdentifier = &v
  15193. return s
  15194. }
  15195. // SetScalingConfigurationInfo sets the ScalingConfigurationInfo field's value.
  15196. func (s *DBCluster) SetScalingConfigurationInfo(v *ScalingConfigurationInfo) *DBCluster {
  15197. s.ScalingConfigurationInfo = v
  15198. return s
  15199. }
  15200. // SetStatus sets the Status field's value.
  15201. func (s *DBCluster) SetStatus(v string) *DBCluster {
  15202. s.Status = &v
  15203. return s
  15204. }
  15205. // SetStorageEncrypted sets the StorageEncrypted field's value.
  15206. func (s *DBCluster) SetStorageEncrypted(v bool) *DBCluster {
  15207. s.StorageEncrypted = &v
  15208. return s
  15209. }
  15210. // SetVpcSecurityGroups sets the VpcSecurityGroups field's value.
  15211. func (s *DBCluster) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *DBCluster {
  15212. s.VpcSecurityGroups = v
  15213. return s
  15214. }
  15215. // This data type represents the information you need to connect to an Amazon
  15216. // Aurora DB cluster. This data type is used as a response element in the following
  15217. // actions:
  15218. //
  15219. // * CreateDBClusterEndpoint
  15220. //
  15221. // * DescribeDBClusterEndpoints
  15222. //
  15223. // * ModifyDBClusterEndpoint
  15224. //
  15225. // * DeleteDBClusterEndpoint
  15226. //
  15227. // For the data structure that represents Amazon RDS DB instance endpoints,
  15228. // see Endpoint.
  15229. type DBClusterEndpoint struct {
  15230. _ struct{} `type:"structure"`
  15231. // The type associated with a custom endpoint. One of: READER, ANY.
  15232. CustomEndpointType *string `type:"string"`
  15233. // The Amazon Resource Name (ARN) for the endpoint.
  15234. DBClusterEndpointArn *string `type:"string"`
  15235. // The identifier associated with the endpoint. This parameter is stored as
  15236. // a lowercase string.
  15237. DBClusterEndpointIdentifier *string `type:"string"`
  15238. // A unique system-generated identifier for an endpoint. It remains the same
  15239. // for the whole life of the endpoint.
  15240. DBClusterEndpointResourceIdentifier *string `type:"string"`
  15241. // The DB cluster identifier of the DB cluster associated with the endpoint.
  15242. // This parameter is stored as a lowercase string.
  15243. DBClusterIdentifier *string `type:"string"`
  15244. // The DNS address of the endpoint.
  15245. Endpoint *string `type:"string"`
  15246. // The type of the endpoint. One of: READER, WRITER, CUSTOM.
  15247. EndpointType *string `type:"string"`
  15248. // List of DB instance identifiers that aren't part of the custom endpoint group.
  15249. // All other eligible instances are reachable through the custom endpoint. Only
  15250. // relevant if the list of static members is empty.
  15251. ExcludedMembers []*string `type:"list"`
  15252. // List of DB instance identifiers that are part of the custom endpoint group.
  15253. StaticMembers []*string `type:"list"`
  15254. // The current status of the endpoint. One of: creating, available, deleting,
  15255. // modifying.
  15256. Status *string `type:"string"`
  15257. }
  15258. // String returns the string representation
  15259. func (s DBClusterEndpoint) String() string {
  15260. return awsutil.Prettify(s)
  15261. }
  15262. // GoString returns the string representation
  15263. func (s DBClusterEndpoint) GoString() string {
  15264. return s.String()
  15265. }
  15266. // SetCustomEndpointType sets the CustomEndpointType field's value.
  15267. func (s *DBClusterEndpoint) SetCustomEndpointType(v string) *DBClusterEndpoint {
  15268. s.CustomEndpointType = &v
  15269. return s
  15270. }
  15271. // SetDBClusterEndpointArn sets the DBClusterEndpointArn field's value.
  15272. func (s *DBClusterEndpoint) SetDBClusterEndpointArn(v string) *DBClusterEndpoint {
  15273. s.DBClusterEndpointArn = &v
  15274. return s
  15275. }
  15276. // SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value.
  15277. func (s *DBClusterEndpoint) SetDBClusterEndpointIdentifier(v string) *DBClusterEndpoint {
  15278. s.DBClusterEndpointIdentifier = &v
  15279. return s
  15280. }
  15281. // SetDBClusterEndpointResourceIdentifier sets the DBClusterEndpointResourceIdentifier field's value.
  15282. func (s *DBClusterEndpoint) SetDBClusterEndpointResourceIdentifier(v string) *DBClusterEndpoint {
  15283. s.DBClusterEndpointResourceIdentifier = &v
  15284. return s
  15285. }
  15286. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  15287. func (s *DBClusterEndpoint) SetDBClusterIdentifier(v string) *DBClusterEndpoint {
  15288. s.DBClusterIdentifier = &v
  15289. return s
  15290. }
  15291. // SetEndpoint sets the Endpoint field's value.
  15292. func (s *DBClusterEndpoint) SetEndpoint(v string) *DBClusterEndpoint {
  15293. s.Endpoint = &v
  15294. return s
  15295. }
  15296. // SetEndpointType sets the EndpointType field's value.
  15297. func (s *DBClusterEndpoint) SetEndpointType(v string) *DBClusterEndpoint {
  15298. s.EndpointType = &v
  15299. return s
  15300. }
  15301. // SetExcludedMembers sets the ExcludedMembers field's value.
  15302. func (s *DBClusterEndpoint) SetExcludedMembers(v []*string) *DBClusterEndpoint {
  15303. s.ExcludedMembers = v
  15304. return s
  15305. }
  15306. // SetStaticMembers sets the StaticMembers field's value.
  15307. func (s *DBClusterEndpoint) SetStaticMembers(v []*string) *DBClusterEndpoint {
  15308. s.StaticMembers = v
  15309. return s
  15310. }
  15311. // SetStatus sets the Status field's value.
  15312. func (s *DBClusterEndpoint) SetStatus(v string) *DBClusterEndpoint {
  15313. s.Status = &v
  15314. return s
  15315. }
  15316. // Contains information about an instance that is part of a DB cluster.
  15317. type DBClusterMember struct {
  15318. _ struct{} `type:"structure"`
  15319. // Specifies the status of the DB cluster parameter group for this member of
  15320. // the DB cluster.
  15321. DBClusterParameterGroupStatus *string `type:"string"`
  15322. // Specifies the instance identifier for this member of the DB cluster.
  15323. DBInstanceIdentifier *string `type:"string"`
  15324. // Value that is true if the cluster member is the primary instance for the
  15325. // DB cluster and false otherwise.
  15326. IsClusterWriter *bool `type:"boolean"`
  15327. // A value that specifies the order in which an Aurora Replica is promoted to
  15328. // the primary instance after a failure of the existing primary instance. For
  15329. // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.FaultTolerance)
  15330. // in the Amazon Aurora User Guide.
  15331. PromotionTier *int64 `type:"integer"`
  15332. }
  15333. // String returns the string representation
  15334. func (s DBClusterMember) String() string {
  15335. return awsutil.Prettify(s)
  15336. }
  15337. // GoString returns the string representation
  15338. func (s DBClusterMember) GoString() string {
  15339. return s.String()
  15340. }
  15341. // SetDBClusterParameterGroupStatus sets the DBClusterParameterGroupStatus field's value.
  15342. func (s *DBClusterMember) SetDBClusterParameterGroupStatus(v string) *DBClusterMember {
  15343. s.DBClusterParameterGroupStatus = &v
  15344. return s
  15345. }
  15346. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  15347. func (s *DBClusterMember) SetDBInstanceIdentifier(v string) *DBClusterMember {
  15348. s.DBInstanceIdentifier = &v
  15349. return s
  15350. }
  15351. // SetIsClusterWriter sets the IsClusterWriter field's value.
  15352. func (s *DBClusterMember) SetIsClusterWriter(v bool) *DBClusterMember {
  15353. s.IsClusterWriter = &v
  15354. return s
  15355. }
  15356. // SetPromotionTier sets the PromotionTier field's value.
  15357. func (s *DBClusterMember) SetPromotionTier(v int64) *DBClusterMember {
  15358. s.PromotionTier = &v
  15359. return s
  15360. }
  15361. // Contains status information for a DB cluster option group.
  15362. type DBClusterOptionGroupStatus struct {
  15363. _ struct{} `type:"structure"`
  15364. // Specifies the name of the DB cluster option group.
  15365. DBClusterOptionGroupName *string `type:"string"`
  15366. // Specifies the status of the DB cluster option group.
  15367. Status *string `type:"string"`
  15368. }
  15369. // String returns the string representation
  15370. func (s DBClusterOptionGroupStatus) String() string {
  15371. return awsutil.Prettify(s)
  15372. }
  15373. // GoString returns the string representation
  15374. func (s DBClusterOptionGroupStatus) GoString() string {
  15375. return s.String()
  15376. }
  15377. // SetDBClusterOptionGroupName sets the DBClusterOptionGroupName field's value.
  15378. func (s *DBClusterOptionGroupStatus) SetDBClusterOptionGroupName(v string) *DBClusterOptionGroupStatus {
  15379. s.DBClusterOptionGroupName = &v
  15380. return s
  15381. }
  15382. // SetStatus sets the Status field's value.
  15383. func (s *DBClusterOptionGroupStatus) SetStatus(v string) *DBClusterOptionGroupStatus {
  15384. s.Status = &v
  15385. return s
  15386. }
  15387. // Contains the details of an Amazon RDS DB cluster parameter group.
  15388. //
  15389. // This data type is used as a response element in the DescribeDBClusterParameterGroups
  15390. // action.
  15391. type DBClusterParameterGroup struct {
  15392. _ struct{} `type:"structure"`
  15393. // The Amazon Resource Name (ARN) for the DB cluster parameter group.
  15394. DBClusterParameterGroupArn *string `type:"string"`
  15395. // Provides the name of the DB cluster parameter group.
  15396. DBClusterParameterGroupName *string `type:"string"`
  15397. // Provides the name of the DB parameter group family that this DB cluster parameter
  15398. // group is compatible with.
  15399. DBParameterGroupFamily *string `type:"string"`
  15400. // Provides the customer-specified description for this DB cluster parameter
  15401. // group.
  15402. Description *string `type:"string"`
  15403. }
  15404. // String returns the string representation
  15405. func (s DBClusterParameterGroup) String() string {
  15406. return awsutil.Prettify(s)
  15407. }
  15408. // GoString returns the string representation
  15409. func (s DBClusterParameterGroup) GoString() string {
  15410. return s.String()
  15411. }
  15412. // SetDBClusterParameterGroupArn sets the DBClusterParameterGroupArn field's value.
  15413. func (s *DBClusterParameterGroup) SetDBClusterParameterGroupArn(v string) *DBClusterParameterGroup {
  15414. s.DBClusterParameterGroupArn = &v
  15415. return s
  15416. }
  15417. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  15418. func (s *DBClusterParameterGroup) SetDBClusterParameterGroupName(v string) *DBClusterParameterGroup {
  15419. s.DBClusterParameterGroupName = &v
  15420. return s
  15421. }
  15422. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  15423. func (s *DBClusterParameterGroup) SetDBParameterGroupFamily(v string) *DBClusterParameterGroup {
  15424. s.DBParameterGroupFamily = &v
  15425. return s
  15426. }
  15427. // SetDescription sets the Description field's value.
  15428. func (s *DBClusterParameterGroup) SetDescription(v string) *DBClusterParameterGroup {
  15429. s.Description = &v
  15430. return s
  15431. }
  15432. type DBClusterParameterGroupNameMessage struct {
  15433. _ struct{} `type:"structure"`
  15434. // The name of the DB cluster parameter group.
  15435. //
  15436. // Constraints:
  15437. //
  15438. // * Must be 1 to 255 letters or numbers.
  15439. //
  15440. // * First character must be a letter
  15441. //
  15442. // * Can't end with a hyphen or contain two consecutive hyphens
  15443. //
  15444. // This value is stored as a lowercase string.
  15445. DBClusterParameterGroupName *string `type:"string"`
  15446. }
  15447. // String returns the string representation
  15448. func (s DBClusterParameterGroupNameMessage) String() string {
  15449. return awsutil.Prettify(s)
  15450. }
  15451. // GoString returns the string representation
  15452. func (s DBClusterParameterGroupNameMessage) GoString() string {
  15453. return s.String()
  15454. }
  15455. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  15456. func (s *DBClusterParameterGroupNameMessage) SetDBClusterParameterGroupName(v string) *DBClusterParameterGroupNameMessage {
  15457. s.DBClusterParameterGroupName = &v
  15458. return s
  15459. }
  15460. // Describes an AWS Identity and Access Management (IAM) role that is associated
  15461. // with a DB cluster.
  15462. type DBClusterRole struct {
  15463. _ struct{} `type:"structure"`
  15464. FeatureName *string `type:"string"`
  15465. // The Amazon Resource Name (ARN) of the IAM role that is associated with the
  15466. // DB cluster.
  15467. RoleArn *string `type:"string"`
  15468. // Describes the state of association between the IAM role and the DB cluster.
  15469. // The Status property returns one of the following values:
  15470. //
  15471. // * ACTIVE - the IAM role ARN is associated with the DB cluster and can
  15472. // be used to access other AWS services on your behalf.
  15473. //
  15474. // * PENDING - the IAM role ARN is being associated with the DB cluster.
  15475. //
  15476. // * INVALID - the IAM role ARN is associated with the DB cluster, but the
  15477. // DB cluster is unable to assume the IAM role in order to access other AWS
  15478. // services on your behalf.
  15479. Status *string `type:"string"`
  15480. }
  15481. // String returns the string representation
  15482. func (s DBClusterRole) String() string {
  15483. return awsutil.Prettify(s)
  15484. }
  15485. // GoString returns the string representation
  15486. func (s DBClusterRole) GoString() string {
  15487. return s.String()
  15488. }
  15489. // SetFeatureName sets the FeatureName field's value.
  15490. func (s *DBClusterRole) SetFeatureName(v string) *DBClusterRole {
  15491. s.FeatureName = &v
  15492. return s
  15493. }
  15494. // SetRoleArn sets the RoleArn field's value.
  15495. func (s *DBClusterRole) SetRoleArn(v string) *DBClusterRole {
  15496. s.RoleArn = &v
  15497. return s
  15498. }
  15499. // SetStatus sets the Status field's value.
  15500. func (s *DBClusterRole) SetStatus(v string) *DBClusterRole {
  15501. s.Status = &v
  15502. return s
  15503. }
  15504. // Contains the details for an Amazon RDS DB cluster snapshot
  15505. //
  15506. // This data type is used as a response element in the DescribeDBClusterSnapshots
  15507. // action.
  15508. type DBClusterSnapshot struct {
  15509. _ struct{} `type:"structure"`
  15510. // Specifies the allocated storage size in gibibytes (GiB).
  15511. AllocatedStorage *int64 `type:"integer"`
  15512. // Provides the list of EC2 Availability Zones that instances in the DB cluster
  15513. // snapshot can be restored in.
  15514. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  15515. // Specifies the time when the DB cluster was created, in Universal Coordinated
  15516. // Time (UTC).
  15517. ClusterCreateTime *time.Time `type:"timestamp"`
  15518. // Specifies the DB cluster identifier of the DB cluster that this DB cluster
  15519. // snapshot was created from.
  15520. DBClusterIdentifier *string `type:"string"`
  15521. // The Amazon Resource Name (ARN) for the DB cluster snapshot.
  15522. DBClusterSnapshotArn *string `type:"string"`
  15523. // Specifies the identifier for the DB cluster snapshot.
  15524. DBClusterSnapshotIdentifier *string `type:"string"`
  15525. // Specifies the name of the database engine.
  15526. Engine *string `type:"string"`
  15527. // Provides the version of the database engine for this DB cluster snapshot.
  15528. EngineVersion *string `type:"string"`
  15529. // True if mapping of AWS Identity and Access Management (IAM) accounts to database
  15530. // accounts is enabled, and otherwise false.
  15531. IAMDatabaseAuthenticationEnabled *bool `type:"boolean"`
  15532. // If StorageEncrypted is true, the AWS KMS key identifier for the encrypted
  15533. // DB cluster snapshot.
  15534. KmsKeyId *string `type:"string"`
  15535. // Provides the license model information for this DB cluster snapshot.
  15536. LicenseModel *string `type:"string"`
  15537. // Provides the master username for the DB cluster snapshot.
  15538. MasterUsername *string `type:"string"`
  15539. // Specifies the percentage of the estimated data that has been transferred.
  15540. PercentProgress *int64 `type:"integer"`
  15541. // Specifies the port that the DB cluster was listening on at the time of the
  15542. // snapshot.
  15543. Port *int64 `type:"integer"`
  15544. // Provides the time when the snapshot was taken, in Universal Coordinated Time
  15545. // (UTC).
  15546. SnapshotCreateTime *time.Time `type:"timestamp"`
  15547. // Provides the type of the DB cluster snapshot.
  15548. SnapshotType *string `type:"string"`
  15549. // If the DB cluster snapshot was copied from a source DB cluster snapshot,
  15550. // the Amazon Resource Name (ARN) for the source DB cluster snapshot, otherwise,
  15551. // a null value.
  15552. SourceDBClusterSnapshotArn *string `type:"string"`
  15553. // Specifies the status of this DB cluster snapshot.
  15554. Status *string `type:"string"`
  15555. // Specifies whether the DB cluster snapshot is encrypted.
  15556. StorageEncrypted *bool `type:"boolean"`
  15557. // Provides the VPC ID associated with the DB cluster snapshot.
  15558. VpcId *string `type:"string"`
  15559. }
  15560. // String returns the string representation
  15561. func (s DBClusterSnapshot) String() string {
  15562. return awsutil.Prettify(s)
  15563. }
  15564. // GoString returns the string representation
  15565. func (s DBClusterSnapshot) GoString() string {
  15566. return s.String()
  15567. }
  15568. // SetAllocatedStorage sets the AllocatedStorage field's value.
  15569. func (s *DBClusterSnapshot) SetAllocatedStorage(v int64) *DBClusterSnapshot {
  15570. s.AllocatedStorage = &v
  15571. return s
  15572. }
  15573. // SetAvailabilityZones sets the AvailabilityZones field's value.
  15574. func (s *DBClusterSnapshot) SetAvailabilityZones(v []*string) *DBClusterSnapshot {
  15575. s.AvailabilityZones = v
  15576. return s
  15577. }
  15578. // SetClusterCreateTime sets the ClusterCreateTime field's value.
  15579. func (s *DBClusterSnapshot) SetClusterCreateTime(v time.Time) *DBClusterSnapshot {
  15580. s.ClusterCreateTime = &v
  15581. return s
  15582. }
  15583. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  15584. func (s *DBClusterSnapshot) SetDBClusterIdentifier(v string) *DBClusterSnapshot {
  15585. s.DBClusterIdentifier = &v
  15586. return s
  15587. }
  15588. // SetDBClusterSnapshotArn sets the DBClusterSnapshotArn field's value.
  15589. func (s *DBClusterSnapshot) SetDBClusterSnapshotArn(v string) *DBClusterSnapshot {
  15590. s.DBClusterSnapshotArn = &v
  15591. return s
  15592. }
  15593. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  15594. func (s *DBClusterSnapshot) SetDBClusterSnapshotIdentifier(v string) *DBClusterSnapshot {
  15595. s.DBClusterSnapshotIdentifier = &v
  15596. return s
  15597. }
  15598. // SetEngine sets the Engine field's value.
  15599. func (s *DBClusterSnapshot) SetEngine(v string) *DBClusterSnapshot {
  15600. s.Engine = &v
  15601. return s
  15602. }
  15603. // SetEngineVersion sets the EngineVersion field's value.
  15604. func (s *DBClusterSnapshot) SetEngineVersion(v string) *DBClusterSnapshot {
  15605. s.EngineVersion = &v
  15606. return s
  15607. }
  15608. // SetIAMDatabaseAuthenticationEnabled sets the IAMDatabaseAuthenticationEnabled field's value.
  15609. func (s *DBClusterSnapshot) SetIAMDatabaseAuthenticationEnabled(v bool) *DBClusterSnapshot {
  15610. s.IAMDatabaseAuthenticationEnabled = &v
  15611. return s
  15612. }
  15613. // SetKmsKeyId sets the KmsKeyId field's value.
  15614. func (s *DBClusterSnapshot) SetKmsKeyId(v string) *DBClusterSnapshot {
  15615. s.KmsKeyId = &v
  15616. return s
  15617. }
  15618. // SetLicenseModel sets the LicenseModel field's value.
  15619. func (s *DBClusterSnapshot) SetLicenseModel(v string) *DBClusterSnapshot {
  15620. s.LicenseModel = &v
  15621. return s
  15622. }
  15623. // SetMasterUsername sets the MasterUsername field's value.
  15624. func (s *DBClusterSnapshot) SetMasterUsername(v string) *DBClusterSnapshot {
  15625. s.MasterUsername = &v
  15626. return s
  15627. }
  15628. // SetPercentProgress sets the PercentProgress field's value.
  15629. func (s *DBClusterSnapshot) SetPercentProgress(v int64) *DBClusterSnapshot {
  15630. s.PercentProgress = &v
  15631. return s
  15632. }
  15633. // SetPort sets the Port field's value.
  15634. func (s *DBClusterSnapshot) SetPort(v int64) *DBClusterSnapshot {
  15635. s.Port = &v
  15636. return s
  15637. }
  15638. // SetSnapshotCreateTime sets the SnapshotCreateTime field's value.
  15639. func (s *DBClusterSnapshot) SetSnapshotCreateTime(v time.Time) *DBClusterSnapshot {
  15640. s.SnapshotCreateTime = &v
  15641. return s
  15642. }
  15643. // SetSnapshotType sets the SnapshotType field's value.
  15644. func (s *DBClusterSnapshot) SetSnapshotType(v string) *DBClusterSnapshot {
  15645. s.SnapshotType = &v
  15646. return s
  15647. }
  15648. // SetSourceDBClusterSnapshotArn sets the SourceDBClusterSnapshotArn field's value.
  15649. func (s *DBClusterSnapshot) SetSourceDBClusterSnapshotArn(v string) *DBClusterSnapshot {
  15650. s.SourceDBClusterSnapshotArn = &v
  15651. return s
  15652. }
  15653. // SetStatus sets the Status field's value.
  15654. func (s *DBClusterSnapshot) SetStatus(v string) *DBClusterSnapshot {
  15655. s.Status = &v
  15656. return s
  15657. }
  15658. // SetStorageEncrypted sets the StorageEncrypted field's value.
  15659. func (s *DBClusterSnapshot) SetStorageEncrypted(v bool) *DBClusterSnapshot {
  15660. s.StorageEncrypted = &v
  15661. return s
  15662. }
  15663. // SetVpcId sets the VpcId field's value.
  15664. func (s *DBClusterSnapshot) SetVpcId(v string) *DBClusterSnapshot {
  15665. s.VpcId = &v
  15666. return s
  15667. }
  15668. // Contains the name and values of a manual DB cluster snapshot attribute.
  15669. //
  15670. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  15671. // to restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute
  15672. // API action.
  15673. type DBClusterSnapshotAttribute struct {
  15674. _ struct{} `type:"structure"`
  15675. // The name of the manual DB cluster snapshot attribute.
  15676. //
  15677. // The attribute named restore refers to the list of AWS accounts that have
  15678. // permission to copy or restore the manual DB cluster snapshot. For more information,
  15679. // see the ModifyDBClusterSnapshotAttribute API action.
  15680. AttributeName *string `type:"string"`
  15681. // The value(s) for the manual DB cluster snapshot attribute.
  15682. //
  15683. // If the AttributeName field is set to restore, then this element returns a
  15684. // list of IDs of the AWS accounts that are authorized to copy or restore the
  15685. // manual DB cluster snapshot. If a value of all is in the list, then the manual
  15686. // DB cluster snapshot is public and available for any AWS account to copy or
  15687. // restore.
  15688. AttributeValues []*string `locationNameList:"AttributeValue" type:"list"`
  15689. }
  15690. // String returns the string representation
  15691. func (s DBClusterSnapshotAttribute) String() string {
  15692. return awsutil.Prettify(s)
  15693. }
  15694. // GoString returns the string representation
  15695. func (s DBClusterSnapshotAttribute) GoString() string {
  15696. return s.String()
  15697. }
  15698. // SetAttributeName sets the AttributeName field's value.
  15699. func (s *DBClusterSnapshotAttribute) SetAttributeName(v string) *DBClusterSnapshotAttribute {
  15700. s.AttributeName = &v
  15701. return s
  15702. }
  15703. // SetAttributeValues sets the AttributeValues field's value.
  15704. func (s *DBClusterSnapshotAttribute) SetAttributeValues(v []*string) *DBClusterSnapshotAttribute {
  15705. s.AttributeValues = v
  15706. return s
  15707. }
  15708. // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes
  15709. // API action.
  15710. //
  15711. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  15712. // to copy or restore a manual DB cluster snapshot. For more information, see
  15713. // the ModifyDBClusterSnapshotAttribute API action.
  15714. type DBClusterSnapshotAttributesResult struct {
  15715. _ struct{} `type:"structure"`
  15716. // The list of attributes and values for the manual DB cluster snapshot.
  15717. DBClusterSnapshotAttributes []*DBClusterSnapshotAttribute `locationNameList:"DBClusterSnapshotAttribute" type:"list"`
  15718. // The identifier of the manual DB cluster snapshot that the attributes apply
  15719. // to.
  15720. DBClusterSnapshotIdentifier *string `type:"string"`
  15721. }
  15722. // String returns the string representation
  15723. func (s DBClusterSnapshotAttributesResult) String() string {
  15724. return awsutil.Prettify(s)
  15725. }
  15726. // GoString returns the string representation
  15727. func (s DBClusterSnapshotAttributesResult) GoString() string {
  15728. return s.String()
  15729. }
  15730. // SetDBClusterSnapshotAttributes sets the DBClusterSnapshotAttributes field's value.
  15731. func (s *DBClusterSnapshotAttributesResult) SetDBClusterSnapshotAttributes(v []*DBClusterSnapshotAttribute) *DBClusterSnapshotAttributesResult {
  15732. s.DBClusterSnapshotAttributes = v
  15733. return s
  15734. }
  15735. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  15736. func (s *DBClusterSnapshotAttributesResult) SetDBClusterSnapshotIdentifier(v string) *DBClusterSnapshotAttributesResult {
  15737. s.DBClusterSnapshotIdentifier = &v
  15738. return s
  15739. }
  15740. // This data type is used as a response element in the action DescribeDBEngineVersions.
  15741. type DBEngineVersion struct {
  15742. _ struct{} `type:"structure"`
  15743. // The description of the database engine.
  15744. DBEngineDescription *string `type:"string"`
  15745. // The description of the database engine version.
  15746. DBEngineVersionDescription *string `type:"string"`
  15747. // The name of the DB parameter group family for the database engine.
  15748. DBParameterGroupFamily *string `type:"string"`
  15749. // The default character set for new instances of this engine version, if the
  15750. // CharacterSetName parameter of the CreateDBInstance API is not specified.
  15751. DefaultCharacterSet *CharacterSet `type:"structure"`
  15752. // The name of the database engine.
  15753. Engine *string `type:"string"`
  15754. // The version number of the database engine.
  15755. EngineVersion *string `type:"string"`
  15756. // The types of logs that the database engine has available for export to CloudWatch
  15757. // Logs.
  15758. ExportableLogTypes []*string `type:"list"`
  15759. // A list of the character sets supported by this engine for the CharacterSetName
  15760. // parameter of the CreateDBInstance action.
  15761. SupportedCharacterSets []*CharacterSet `locationNameList:"CharacterSet" type:"list"`
  15762. // A list of the supported DB engine modes.
  15763. SupportedEngineModes []*string `type:"list"`
  15764. // A list of the time zones supported by this engine for the Timezone parameter
  15765. // of the CreateDBInstance action.
  15766. SupportedTimezones []*Timezone `locationNameList:"Timezone" type:"list"`
  15767. // A value that indicates whether the engine version supports exporting the
  15768. // log types specified by ExportableLogTypes to CloudWatch Logs.
  15769. SupportsLogExportsToCloudwatchLogs *bool `type:"boolean"`
  15770. // Indicates whether the database engine version supports read replicas.
  15771. SupportsReadReplica *bool `type:"boolean"`
  15772. // A list of engine versions that this database engine version can be upgraded
  15773. // to.
  15774. ValidUpgradeTarget []*UpgradeTarget `locationNameList:"UpgradeTarget" type:"list"`
  15775. }
  15776. // String returns the string representation
  15777. func (s DBEngineVersion) String() string {
  15778. return awsutil.Prettify(s)
  15779. }
  15780. // GoString returns the string representation
  15781. func (s DBEngineVersion) GoString() string {
  15782. return s.String()
  15783. }
  15784. // SetDBEngineDescription sets the DBEngineDescription field's value.
  15785. func (s *DBEngineVersion) SetDBEngineDescription(v string) *DBEngineVersion {
  15786. s.DBEngineDescription = &v
  15787. return s
  15788. }
  15789. // SetDBEngineVersionDescription sets the DBEngineVersionDescription field's value.
  15790. func (s *DBEngineVersion) SetDBEngineVersionDescription(v string) *DBEngineVersion {
  15791. s.DBEngineVersionDescription = &v
  15792. return s
  15793. }
  15794. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  15795. func (s *DBEngineVersion) SetDBParameterGroupFamily(v string) *DBEngineVersion {
  15796. s.DBParameterGroupFamily = &v
  15797. return s
  15798. }
  15799. // SetDefaultCharacterSet sets the DefaultCharacterSet field's value.
  15800. func (s *DBEngineVersion) SetDefaultCharacterSet(v *CharacterSet) *DBEngineVersion {
  15801. s.DefaultCharacterSet = v
  15802. return s
  15803. }
  15804. // SetEngine sets the Engine field's value.
  15805. func (s *DBEngineVersion) SetEngine(v string) *DBEngineVersion {
  15806. s.Engine = &v
  15807. return s
  15808. }
  15809. // SetEngineVersion sets the EngineVersion field's value.
  15810. func (s *DBEngineVersion) SetEngineVersion(v string) *DBEngineVersion {
  15811. s.EngineVersion = &v
  15812. return s
  15813. }
  15814. // SetExportableLogTypes sets the ExportableLogTypes field's value.
  15815. func (s *DBEngineVersion) SetExportableLogTypes(v []*string) *DBEngineVersion {
  15816. s.ExportableLogTypes = v
  15817. return s
  15818. }
  15819. // SetSupportedCharacterSets sets the SupportedCharacterSets field's value.
  15820. func (s *DBEngineVersion) SetSupportedCharacterSets(v []*CharacterSet) *DBEngineVersion {
  15821. s.SupportedCharacterSets = v
  15822. return s
  15823. }
  15824. // SetSupportedEngineModes sets the SupportedEngineModes field's value.
  15825. func (s *DBEngineVersion) SetSupportedEngineModes(v []*string) *DBEngineVersion {
  15826. s.SupportedEngineModes = v
  15827. return s
  15828. }
  15829. // SetSupportedTimezones sets the SupportedTimezones field's value.
  15830. func (s *DBEngineVersion) SetSupportedTimezones(v []*Timezone) *DBEngineVersion {
  15831. s.SupportedTimezones = v
  15832. return s
  15833. }
  15834. // SetSupportsLogExportsToCloudwatchLogs sets the SupportsLogExportsToCloudwatchLogs field's value.
  15835. func (s *DBEngineVersion) SetSupportsLogExportsToCloudwatchLogs(v bool) *DBEngineVersion {
  15836. s.SupportsLogExportsToCloudwatchLogs = &v
  15837. return s
  15838. }
  15839. // SetSupportsReadReplica sets the SupportsReadReplica field's value.
  15840. func (s *DBEngineVersion) SetSupportsReadReplica(v bool) *DBEngineVersion {
  15841. s.SupportsReadReplica = &v
  15842. return s
  15843. }
  15844. // SetValidUpgradeTarget sets the ValidUpgradeTarget field's value.
  15845. func (s *DBEngineVersion) SetValidUpgradeTarget(v []*UpgradeTarget) *DBEngineVersion {
  15846. s.ValidUpgradeTarget = v
  15847. return s
  15848. }
  15849. // Contains the details of an Amazon RDS DB instance.
  15850. //
  15851. // This data type is used as a response element in the DescribeDBInstances action.
  15852. type DBInstance struct {
  15853. _ struct{} `type:"structure"`
  15854. // Specifies the allocated storage size specified in gibibytes.
  15855. AllocatedStorage *int64 `type:"integer"`
  15856. // Indicates that minor version patches are applied automatically.
  15857. AutoMinorVersionUpgrade *bool `type:"boolean"`
  15858. // Specifies the name of the Availability Zone the DB instance is located in.
  15859. AvailabilityZone *string `type:"string"`
  15860. // Specifies the number of days for which automatic DB snapshots are retained.
  15861. BackupRetentionPeriod *int64 `type:"integer"`
  15862. // The identifier of the CA certificate for this DB instance.
  15863. CACertificateIdentifier *string `type:"string"`
  15864. // If present, specifies the name of the character set that this instance is
  15865. // associated with.
  15866. CharacterSetName *string `type:"string"`
  15867. // Specifies whether tags are copied from the DB instance to snapshots of the
  15868. // DB instance.
  15869. CopyTagsToSnapshot *bool `type:"boolean"`
  15870. // If the DB instance is a member of a DB cluster, contains the name of the
  15871. // DB cluster that the DB instance is a member of.
  15872. DBClusterIdentifier *string `type:"string"`
  15873. // The Amazon Resource Name (ARN) for the DB instance.
  15874. DBInstanceArn *string `type:"string"`
  15875. // Contains the name of the compute and memory capacity class of the DB instance.
  15876. DBInstanceClass *string `type:"string"`
  15877. // Contains a user-supplied database identifier. This identifier is the unique
  15878. // key that identifies a DB instance.
  15879. DBInstanceIdentifier *string `type:"string"`
  15880. // Specifies the current state of this database.
  15881. DBInstanceStatus *string `type:"string"`
  15882. // The meaning of this parameter differs according to the database engine you
  15883. // use. For example, this value returns MySQL, MariaDB, or PostgreSQL information
  15884. // when returning values from CreateDBInstanceReadReplica since Read Replicas
  15885. // are only supported for these engines.
  15886. //
  15887. // MySQL, MariaDB, SQL Server, PostgreSQL
  15888. //
  15889. // Contains the name of the initial database of this instance that was provided
  15890. // at create time, if one was specified when the DB instance was created. This
  15891. // same name is returned for the life of the DB instance.
  15892. //
  15893. // Type: String
  15894. //
  15895. // Oracle
  15896. //
  15897. // Contains the Oracle System ID (SID) of the created DB instance. Not shown
  15898. // when the returned parameters do not apply to an Oracle DB instance.
  15899. DBName *string `type:"string"`
  15900. // Provides the list of DB parameter groups applied to this DB instance.
  15901. DBParameterGroups []*DBParameterGroupStatus `locationNameList:"DBParameterGroup" type:"list"`
  15902. // Provides List of DB security group elements containing only DBSecurityGroup.Name
  15903. // and DBSecurityGroup.Status subelements.
  15904. DBSecurityGroups []*DBSecurityGroupMembership `locationNameList:"DBSecurityGroup" type:"list"`
  15905. // Specifies information on the subnet group associated with the DB instance,
  15906. // including the name, description, and subnets in the subnet group.
  15907. DBSubnetGroup *DBSubnetGroup `type:"structure"`
  15908. // Specifies the port that the DB instance listens on. If the DB instance is
  15909. // part of a DB cluster, this can be a different port than the DB cluster port.
  15910. DbInstancePort *int64 `type:"integer"`
  15911. // The AWS Region-unique, immutable identifier for the DB instance. This identifier
  15912. // is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB
  15913. // instance is accessed.
  15914. DbiResourceId *string `type:"string"`
  15915. // Indicates if the DB instance has deletion protection enabled. The database
  15916. // can't be deleted when this value is set to true. For more information, see
  15917. // Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html).
  15918. DeletionProtection *bool `type:"boolean"`
  15919. // The Active Directory Domain membership records associated with the DB instance.
  15920. DomainMemberships []*DomainMembership `locationNameList:"DomainMembership" type:"list"`
  15921. // A list of log types that this DB instance is configured to export to CloudWatch
  15922. // Logs.
  15923. //
  15924. // Log types vary by DB engine. For information about the log types for each
  15925. // DB engine, see Amazon RDS Database Log Files (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html)
  15926. // in the Amazon RDS User Guide.
  15927. EnabledCloudwatchLogsExports []*string `type:"list"`
  15928. // Specifies the connection endpoint.
  15929. Endpoint *Endpoint `type:"structure"`
  15930. // Provides the name of the database engine to be used for this DB instance.
  15931. Engine *string `type:"string"`
  15932. // Indicates the database engine version.
  15933. EngineVersion *string `type:"string"`
  15934. // The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream that
  15935. // receives the Enhanced Monitoring metrics data for the DB instance.
  15936. EnhancedMonitoringResourceArn *string `type:"string"`
  15937. // True if mapping of AWS Identity and Access Management (IAM) accounts to database
  15938. // accounts is enabled, and otherwise false.
  15939. //
  15940. // IAM database authentication can be enabled for the following database engines
  15941. //
  15942. // * For MySQL 5.6, minor version 5.6.34 or higher
  15943. //
  15944. // * For MySQL 5.7, minor version 5.7.16 or higher
  15945. //
  15946. // * Aurora 5.6 or higher. To enable IAM database authentication for Aurora,
  15947. // see DBCluster Type.
  15948. IAMDatabaseAuthenticationEnabled *bool `type:"boolean"`
  15949. // Provides the date and time the DB instance was created.
  15950. InstanceCreateTime *time.Time `type:"timestamp"`
  15951. // Specifies the Provisioned IOPS (I/O operations per second) value.
  15952. Iops *int64 `type:"integer"`
  15953. // If StorageEncrypted is true, the AWS KMS key identifier for the encrypted
  15954. // DB instance.
  15955. KmsKeyId *string `type:"string"`
  15956. // Specifies the latest time to which a database can be restored with point-in-time
  15957. // restore.
  15958. LatestRestorableTime *time.Time `type:"timestamp"`
  15959. // License model information for this DB instance.
  15960. LicenseModel *string `type:"string"`
  15961. // Specifies the listener connection endpoint for SQL Server Always On.
  15962. ListenerEndpoint *Endpoint `type:"structure"`
  15963. // Contains the master username for the DB instance.
  15964. MasterUsername *string `type:"string"`
  15965. // The interval, in seconds, between points when Enhanced Monitoring metrics
  15966. // are collected for the DB instance.
  15967. MonitoringInterval *int64 `type:"integer"`
  15968. // The ARN for the IAM role that permits RDS to send Enhanced Monitoring metrics
  15969. // to Amazon CloudWatch Logs.
  15970. MonitoringRoleArn *string `type:"string"`
  15971. // Specifies if the DB instance is a Multi-AZ deployment.
  15972. MultiAZ *bool `type:"boolean"`
  15973. // Provides the list of option group memberships for this DB instance.
  15974. OptionGroupMemberships []*OptionGroupMembership `locationNameList:"OptionGroupMembership" type:"list"`
  15975. // Specifies that changes to the DB instance are pending. This element is only
  15976. // included when changes are pending. Specific changes are identified by subelements.
  15977. PendingModifiedValues *PendingModifiedValues `type:"structure"`
  15978. // True if Performance Insights is enabled for the DB instance, and otherwise
  15979. // false.
  15980. PerformanceInsightsEnabled *bool `type:"boolean"`
  15981. // The AWS KMS key identifier for encryption of Performance Insights data. The
  15982. // KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the
  15983. // KMS key alias for the KMS encryption key.
  15984. PerformanceInsightsKMSKeyId *string `type:"string"`
  15985. // The amount of time, in days, to retain Performance Insights data. Valid values
  15986. // are 7 or 731 (2 years).
  15987. PerformanceInsightsRetentionPeriod *int64 `type:"integer"`
  15988. // Specifies the daily time range during which automated backups are created
  15989. // if automated backups are enabled, as determined by the BackupRetentionPeriod.
  15990. PreferredBackupWindow *string `type:"string"`
  15991. // Specifies the weekly time range during which system maintenance can occur,
  15992. // in Universal Coordinated Time (UTC).
  15993. PreferredMaintenanceWindow *string `type:"string"`
  15994. // The number of CPU cores and the number of threads per core for the DB instance
  15995. // class of the DB instance.
  15996. ProcessorFeatures []*ProcessorFeature `locationNameList:"ProcessorFeature" type:"list"`
  15997. // A value that specifies the order in which an Aurora Replica is promoted to
  15998. // the primary instance after a failure of the existing primary instance. For
  15999. // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.FaultTolerance)
  16000. // in the Amazon Aurora User Guide.
  16001. PromotionTier *int64 `type:"integer"`
  16002. // Specifies the accessibility options for the DB instance. A value of true
  16003. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  16004. // which resolves to a public IP address. A value of false specifies an internal
  16005. // instance with a DNS name that resolves to a private IP address.
  16006. PubliclyAccessible *bool `type:"boolean"`
  16007. // Contains one or more identifiers of Aurora DB clusters to which the RDS DB
  16008. // instance is replicated as a Read Replica. For example, when you create an
  16009. // Aurora Read Replica of an RDS MySQL DB instance, the Aurora MySQL DB cluster
  16010. // for the Aurora Read Replica is shown. This output does not contain information
  16011. // about cross region Aurora Read Replicas.
  16012. //
  16013. // Currently, each RDS DB instance can have only one Aurora Read Replica.
  16014. ReadReplicaDBClusterIdentifiers []*string `locationNameList:"ReadReplicaDBClusterIdentifier" type:"list"`
  16015. // Contains one or more identifiers of the Read Replicas associated with this
  16016. // DB instance.
  16017. ReadReplicaDBInstanceIdentifiers []*string `locationNameList:"ReadReplicaDBInstanceIdentifier" type:"list"`
  16018. // Contains the identifier of the source DB instance if this DB instance is
  16019. // a Read Replica.
  16020. ReadReplicaSourceDBInstanceIdentifier *string `type:"string"`
  16021. // If present, specifies the name of the secondary Availability Zone for a DB
  16022. // instance with multi-AZ support.
  16023. SecondaryAvailabilityZone *string `type:"string"`
  16024. // The status of a Read Replica. If the instance is not a Read Replica, this
  16025. // is blank.
  16026. StatusInfos []*DBInstanceStatusInfo `locationNameList:"DBInstanceStatusInfo" type:"list"`
  16027. // Specifies whether the DB instance is encrypted.
  16028. StorageEncrypted *bool `type:"boolean"`
  16029. // Specifies the storage type associated with DB instance.
  16030. StorageType *string `type:"string"`
  16031. // The ARN from the key store with which the instance is associated for TDE
  16032. // encryption.
  16033. TdeCredentialArn *string `type:"string"`
  16034. // The time zone of the DB instance. In most cases, the Timezone element is
  16035. // empty. Timezone content appears only for Microsoft SQL Server DB instances
  16036. // that were created with a time zone specified.
  16037. Timezone *string `type:"string"`
  16038. // Provides a list of VPC security group elements that the DB instance belongs
  16039. // to.
  16040. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"`
  16041. }
  16042. // String returns the string representation
  16043. func (s DBInstance) String() string {
  16044. return awsutil.Prettify(s)
  16045. }
  16046. // GoString returns the string representation
  16047. func (s DBInstance) GoString() string {
  16048. return s.String()
  16049. }
  16050. // SetAllocatedStorage sets the AllocatedStorage field's value.
  16051. func (s *DBInstance) SetAllocatedStorage(v int64) *DBInstance {
  16052. s.AllocatedStorage = &v
  16053. return s
  16054. }
  16055. // SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
  16056. func (s *DBInstance) SetAutoMinorVersionUpgrade(v bool) *DBInstance {
  16057. s.AutoMinorVersionUpgrade = &v
  16058. return s
  16059. }
  16060. // SetAvailabilityZone sets the AvailabilityZone field's value.
  16061. func (s *DBInstance) SetAvailabilityZone(v string) *DBInstance {
  16062. s.AvailabilityZone = &v
  16063. return s
  16064. }
  16065. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  16066. func (s *DBInstance) SetBackupRetentionPeriod(v int64) *DBInstance {
  16067. s.BackupRetentionPeriod = &v
  16068. return s
  16069. }
  16070. // SetCACertificateIdentifier sets the CACertificateIdentifier field's value.
  16071. func (s *DBInstance) SetCACertificateIdentifier(v string) *DBInstance {
  16072. s.CACertificateIdentifier = &v
  16073. return s
  16074. }
  16075. // SetCharacterSetName sets the CharacterSetName field's value.
  16076. func (s *DBInstance) SetCharacterSetName(v string) *DBInstance {
  16077. s.CharacterSetName = &v
  16078. return s
  16079. }
  16080. // SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value.
  16081. func (s *DBInstance) SetCopyTagsToSnapshot(v bool) *DBInstance {
  16082. s.CopyTagsToSnapshot = &v
  16083. return s
  16084. }
  16085. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  16086. func (s *DBInstance) SetDBClusterIdentifier(v string) *DBInstance {
  16087. s.DBClusterIdentifier = &v
  16088. return s
  16089. }
  16090. // SetDBInstanceArn sets the DBInstanceArn field's value.
  16091. func (s *DBInstance) SetDBInstanceArn(v string) *DBInstance {
  16092. s.DBInstanceArn = &v
  16093. return s
  16094. }
  16095. // SetDBInstanceClass sets the DBInstanceClass field's value.
  16096. func (s *DBInstance) SetDBInstanceClass(v string) *DBInstance {
  16097. s.DBInstanceClass = &v
  16098. return s
  16099. }
  16100. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  16101. func (s *DBInstance) SetDBInstanceIdentifier(v string) *DBInstance {
  16102. s.DBInstanceIdentifier = &v
  16103. return s
  16104. }
  16105. // SetDBInstanceStatus sets the DBInstanceStatus field's value.
  16106. func (s *DBInstance) SetDBInstanceStatus(v string) *DBInstance {
  16107. s.DBInstanceStatus = &v
  16108. return s
  16109. }
  16110. // SetDBName sets the DBName field's value.
  16111. func (s *DBInstance) SetDBName(v string) *DBInstance {
  16112. s.DBName = &v
  16113. return s
  16114. }
  16115. // SetDBParameterGroups sets the DBParameterGroups field's value.
  16116. func (s *DBInstance) SetDBParameterGroups(v []*DBParameterGroupStatus) *DBInstance {
  16117. s.DBParameterGroups = v
  16118. return s
  16119. }
  16120. // SetDBSecurityGroups sets the DBSecurityGroups field's value.
  16121. func (s *DBInstance) SetDBSecurityGroups(v []*DBSecurityGroupMembership) *DBInstance {
  16122. s.DBSecurityGroups = v
  16123. return s
  16124. }
  16125. // SetDBSubnetGroup sets the DBSubnetGroup field's value.
  16126. func (s *DBInstance) SetDBSubnetGroup(v *DBSubnetGroup) *DBInstance {
  16127. s.DBSubnetGroup = v
  16128. return s
  16129. }
  16130. // SetDbInstancePort sets the DbInstancePort field's value.
  16131. func (s *DBInstance) SetDbInstancePort(v int64) *DBInstance {
  16132. s.DbInstancePort = &v
  16133. return s
  16134. }
  16135. // SetDbiResourceId sets the DbiResourceId field's value.
  16136. func (s *DBInstance) SetDbiResourceId(v string) *DBInstance {
  16137. s.DbiResourceId = &v
  16138. return s
  16139. }
  16140. // SetDeletionProtection sets the DeletionProtection field's value.
  16141. func (s *DBInstance) SetDeletionProtection(v bool) *DBInstance {
  16142. s.DeletionProtection = &v
  16143. return s
  16144. }
  16145. // SetDomainMemberships sets the DomainMemberships field's value.
  16146. func (s *DBInstance) SetDomainMemberships(v []*DomainMembership) *DBInstance {
  16147. s.DomainMemberships = v
  16148. return s
  16149. }
  16150. // SetEnabledCloudwatchLogsExports sets the EnabledCloudwatchLogsExports field's value.
  16151. func (s *DBInstance) SetEnabledCloudwatchLogsExports(v []*string) *DBInstance {
  16152. s.EnabledCloudwatchLogsExports = v
  16153. return s
  16154. }
  16155. // SetEndpoint sets the Endpoint field's value.
  16156. func (s *DBInstance) SetEndpoint(v *Endpoint) *DBInstance {
  16157. s.Endpoint = v
  16158. return s
  16159. }
  16160. // SetEngine sets the Engine field's value.
  16161. func (s *DBInstance) SetEngine(v string) *DBInstance {
  16162. s.Engine = &v
  16163. return s
  16164. }
  16165. // SetEngineVersion sets the EngineVersion field's value.
  16166. func (s *DBInstance) SetEngineVersion(v string) *DBInstance {
  16167. s.EngineVersion = &v
  16168. return s
  16169. }
  16170. // SetEnhancedMonitoringResourceArn sets the EnhancedMonitoringResourceArn field's value.
  16171. func (s *DBInstance) SetEnhancedMonitoringResourceArn(v string) *DBInstance {
  16172. s.EnhancedMonitoringResourceArn = &v
  16173. return s
  16174. }
  16175. // SetIAMDatabaseAuthenticationEnabled sets the IAMDatabaseAuthenticationEnabled field's value.
  16176. func (s *DBInstance) SetIAMDatabaseAuthenticationEnabled(v bool) *DBInstance {
  16177. s.IAMDatabaseAuthenticationEnabled = &v
  16178. return s
  16179. }
  16180. // SetInstanceCreateTime sets the InstanceCreateTime field's value.
  16181. func (s *DBInstance) SetInstanceCreateTime(v time.Time) *DBInstance {
  16182. s.InstanceCreateTime = &v
  16183. return s
  16184. }
  16185. // SetIops sets the Iops field's value.
  16186. func (s *DBInstance) SetIops(v int64) *DBInstance {
  16187. s.Iops = &v
  16188. return s
  16189. }
  16190. // SetKmsKeyId sets the KmsKeyId field's value.
  16191. func (s *DBInstance) SetKmsKeyId(v string) *DBInstance {
  16192. s.KmsKeyId = &v
  16193. return s
  16194. }
  16195. // SetLatestRestorableTime sets the LatestRestorableTime field's value.
  16196. func (s *DBInstance) SetLatestRestorableTime(v time.Time) *DBInstance {
  16197. s.LatestRestorableTime = &v
  16198. return s
  16199. }
  16200. // SetLicenseModel sets the LicenseModel field's value.
  16201. func (s *DBInstance) SetLicenseModel(v string) *DBInstance {
  16202. s.LicenseModel = &v
  16203. return s
  16204. }
  16205. // SetListenerEndpoint sets the ListenerEndpoint field's value.
  16206. func (s *DBInstance) SetListenerEndpoint(v *Endpoint) *DBInstance {
  16207. s.ListenerEndpoint = v
  16208. return s
  16209. }
  16210. // SetMasterUsername sets the MasterUsername field's value.
  16211. func (s *DBInstance) SetMasterUsername(v string) *DBInstance {
  16212. s.MasterUsername = &v
  16213. return s
  16214. }
  16215. // SetMonitoringInterval sets the MonitoringInterval field's value.
  16216. func (s *DBInstance) SetMonitoringInterval(v int64) *DBInstance {
  16217. s.MonitoringInterval = &v
  16218. return s
  16219. }
  16220. // SetMonitoringRoleArn sets the MonitoringRoleArn field's value.
  16221. func (s *DBInstance) SetMonitoringRoleArn(v string) *DBInstance {
  16222. s.MonitoringRoleArn = &v
  16223. return s
  16224. }
  16225. // SetMultiAZ sets the MultiAZ field's value.
  16226. func (s *DBInstance) SetMultiAZ(v bool) *DBInstance {
  16227. s.MultiAZ = &v
  16228. return s
  16229. }
  16230. // SetOptionGroupMemberships sets the OptionGroupMemberships field's value.
  16231. func (s *DBInstance) SetOptionGroupMemberships(v []*OptionGroupMembership) *DBInstance {
  16232. s.OptionGroupMemberships = v
  16233. return s
  16234. }
  16235. // SetPendingModifiedValues sets the PendingModifiedValues field's value.
  16236. func (s *DBInstance) SetPendingModifiedValues(v *PendingModifiedValues) *DBInstance {
  16237. s.PendingModifiedValues = v
  16238. return s
  16239. }
  16240. // SetPerformanceInsightsEnabled sets the PerformanceInsightsEnabled field's value.
  16241. func (s *DBInstance) SetPerformanceInsightsEnabled(v bool) *DBInstance {
  16242. s.PerformanceInsightsEnabled = &v
  16243. return s
  16244. }
  16245. // SetPerformanceInsightsKMSKeyId sets the PerformanceInsightsKMSKeyId field's value.
  16246. func (s *DBInstance) SetPerformanceInsightsKMSKeyId(v string) *DBInstance {
  16247. s.PerformanceInsightsKMSKeyId = &v
  16248. return s
  16249. }
  16250. // SetPerformanceInsightsRetentionPeriod sets the PerformanceInsightsRetentionPeriod field's value.
  16251. func (s *DBInstance) SetPerformanceInsightsRetentionPeriod(v int64) *DBInstance {
  16252. s.PerformanceInsightsRetentionPeriod = &v
  16253. return s
  16254. }
  16255. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  16256. func (s *DBInstance) SetPreferredBackupWindow(v string) *DBInstance {
  16257. s.PreferredBackupWindow = &v
  16258. return s
  16259. }
  16260. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  16261. func (s *DBInstance) SetPreferredMaintenanceWindow(v string) *DBInstance {
  16262. s.PreferredMaintenanceWindow = &v
  16263. return s
  16264. }
  16265. // SetProcessorFeatures sets the ProcessorFeatures field's value.
  16266. func (s *DBInstance) SetProcessorFeatures(v []*ProcessorFeature) *DBInstance {
  16267. s.ProcessorFeatures = v
  16268. return s
  16269. }
  16270. // SetPromotionTier sets the PromotionTier field's value.
  16271. func (s *DBInstance) SetPromotionTier(v int64) *DBInstance {
  16272. s.PromotionTier = &v
  16273. return s
  16274. }
  16275. // SetPubliclyAccessible sets the PubliclyAccessible field's value.
  16276. func (s *DBInstance) SetPubliclyAccessible(v bool) *DBInstance {
  16277. s.PubliclyAccessible = &v
  16278. return s
  16279. }
  16280. // SetReadReplicaDBClusterIdentifiers sets the ReadReplicaDBClusterIdentifiers field's value.
  16281. func (s *DBInstance) SetReadReplicaDBClusterIdentifiers(v []*string) *DBInstance {
  16282. s.ReadReplicaDBClusterIdentifiers = v
  16283. return s
  16284. }
  16285. // SetReadReplicaDBInstanceIdentifiers sets the ReadReplicaDBInstanceIdentifiers field's value.
  16286. func (s *DBInstance) SetReadReplicaDBInstanceIdentifiers(v []*string) *DBInstance {
  16287. s.ReadReplicaDBInstanceIdentifiers = v
  16288. return s
  16289. }
  16290. // SetReadReplicaSourceDBInstanceIdentifier sets the ReadReplicaSourceDBInstanceIdentifier field's value.
  16291. func (s *DBInstance) SetReadReplicaSourceDBInstanceIdentifier(v string) *DBInstance {
  16292. s.ReadReplicaSourceDBInstanceIdentifier = &v
  16293. return s
  16294. }
  16295. // SetSecondaryAvailabilityZone sets the SecondaryAvailabilityZone field's value.
  16296. func (s *DBInstance) SetSecondaryAvailabilityZone(v string) *DBInstance {
  16297. s.SecondaryAvailabilityZone = &v
  16298. return s
  16299. }
  16300. // SetStatusInfos sets the StatusInfos field's value.
  16301. func (s *DBInstance) SetStatusInfos(v []*DBInstanceStatusInfo) *DBInstance {
  16302. s.StatusInfos = v
  16303. return s
  16304. }
  16305. // SetStorageEncrypted sets the StorageEncrypted field's value.
  16306. func (s *DBInstance) SetStorageEncrypted(v bool) *DBInstance {
  16307. s.StorageEncrypted = &v
  16308. return s
  16309. }
  16310. // SetStorageType sets the StorageType field's value.
  16311. func (s *DBInstance) SetStorageType(v string) *DBInstance {
  16312. s.StorageType = &v
  16313. return s
  16314. }
  16315. // SetTdeCredentialArn sets the TdeCredentialArn field's value.
  16316. func (s *DBInstance) SetTdeCredentialArn(v string) *DBInstance {
  16317. s.TdeCredentialArn = &v
  16318. return s
  16319. }
  16320. // SetTimezone sets the Timezone field's value.
  16321. func (s *DBInstance) SetTimezone(v string) *DBInstance {
  16322. s.Timezone = &v
  16323. return s
  16324. }
  16325. // SetVpcSecurityGroups sets the VpcSecurityGroups field's value.
  16326. func (s *DBInstance) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *DBInstance {
  16327. s.VpcSecurityGroups = v
  16328. return s
  16329. }
  16330. // An automated backup of a DB instance. It it consists of system backups, transaction
  16331. // logs, and the database instance properties that existed at the time you deleted
  16332. // the source instance.
  16333. type DBInstanceAutomatedBackup struct {
  16334. _ struct{} `type:"structure"`
  16335. // Specifies the allocated storage size in gibibytes (GiB).
  16336. AllocatedStorage *int64 `type:"integer"`
  16337. // The Availability Zone that the automated backup was created in. For information
  16338. // on AWS Regions and Availability Zones, see Regions and Availability Zones
  16339. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
  16340. AvailabilityZone *string `type:"string"`
  16341. // The Amazon Resource Name (ARN) for the automated backup.
  16342. DBInstanceArn *string `type:"string"`
  16343. // The customer id of the instance that is/was associated with the automated
  16344. // backup.
  16345. DBInstanceIdentifier *string `type:"string"`
  16346. // The identifier for the source DB instance, which can't be changed and which
  16347. // is unique to an AWS Region.
  16348. DbiResourceId *string `type:"string"`
  16349. // Specifies whether the automated backup is encrypted.
  16350. Encrypted *bool `type:"boolean"`
  16351. // The name of the database engine for this automated backup.
  16352. Engine *string `type:"string"`
  16353. // The version of the database engine for the automated backup.
  16354. EngineVersion *string `type:"string"`
  16355. // True if mapping of AWS Identity and Access Management (IAM) accounts to database
  16356. // accounts is enabled, and otherwise false.
  16357. IAMDatabaseAuthenticationEnabled *bool `type:"boolean"`
  16358. // Provides the date and time that the DB instance was created.
  16359. InstanceCreateTime *time.Time `type:"timestamp"`
  16360. // The IOPS (I/O operations per second) value for the automated backup.
  16361. Iops *int64 `type:"integer"`
  16362. // The AWS KMS key ID for an automated backup. The KMS key ID is the Amazon
  16363. // Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS
  16364. // encryption key.
  16365. KmsKeyId *string `type:"string"`
  16366. // License model information for the automated backup.
  16367. LicenseModel *string `type:"string"`
  16368. // The license model of an automated backup.
  16369. MasterUsername *string `type:"string"`
  16370. // The option group the automated backup is associated with. If omitted, the
  16371. // default option group for the engine specified is used.
  16372. OptionGroupName *string `type:"string"`
  16373. // The port number that the automated backup used for connections.
  16374. //
  16375. // Default: Inherits from the source DB instance
  16376. //
  16377. // Valid Values: 1150-65535
  16378. Port *int64 `type:"integer"`
  16379. // The AWS Region associated with the automated backup.
  16380. Region *string `type:"string"`
  16381. // Earliest and latest time an instance can be restored to.
  16382. RestoreWindow *RestoreWindow `type:"structure"`
  16383. // Provides a list of status information for an automated backup:
  16384. //
  16385. // * active - automated backups for current instances
  16386. //
  16387. // * retained - automated backups for deleted instances
  16388. //
  16389. // * creating - automated backups that are waiting for the first automated
  16390. // snapshot to be available.
  16391. Status *string `type:"string"`
  16392. // Specifies the storage type associated with the automated backup.
  16393. StorageType *string `type:"string"`
  16394. // The ARN from the key store with which the automated backup is associated
  16395. // for TDE encryption.
  16396. TdeCredentialArn *string `type:"string"`
  16397. // The time zone of the automated backup. In most cases, the Timezone element
  16398. // is empty. Timezone content appears only for Microsoft SQL Server DB instances
  16399. // that were created with a time zone specified.
  16400. Timezone *string `type:"string"`
  16401. // Provides the VPC ID associated with the DB instance
  16402. VpcId *string `type:"string"`
  16403. }
  16404. // String returns the string representation
  16405. func (s DBInstanceAutomatedBackup) String() string {
  16406. return awsutil.Prettify(s)
  16407. }
  16408. // GoString returns the string representation
  16409. func (s DBInstanceAutomatedBackup) GoString() string {
  16410. return s.String()
  16411. }
  16412. // SetAllocatedStorage sets the AllocatedStorage field's value.
  16413. func (s *DBInstanceAutomatedBackup) SetAllocatedStorage(v int64) *DBInstanceAutomatedBackup {
  16414. s.AllocatedStorage = &v
  16415. return s
  16416. }
  16417. // SetAvailabilityZone sets the AvailabilityZone field's value.
  16418. func (s *DBInstanceAutomatedBackup) SetAvailabilityZone(v string) *DBInstanceAutomatedBackup {
  16419. s.AvailabilityZone = &v
  16420. return s
  16421. }
  16422. // SetDBInstanceArn sets the DBInstanceArn field's value.
  16423. func (s *DBInstanceAutomatedBackup) SetDBInstanceArn(v string) *DBInstanceAutomatedBackup {
  16424. s.DBInstanceArn = &v
  16425. return s
  16426. }
  16427. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  16428. func (s *DBInstanceAutomatedBackup) SetDBInstanceIdentifier(v string) *DBInstanceAutomatedBackup {
  16429. s.DBInstanceIdentifier = &v
  16430. return s
  16431. }
  16432. // SetDbiResourceId sets the DbiResourceId field's value.
  16433. func (s *DBInstanceAutomatedBackup) SetDbiResourceId(v string) *DBInstanceAutomatedBackup {
  16434. s.DbiResourceId = &v
  16435. return s
  16436. }
  16437. // SetEncrypted sets the Encrypted field's value.
  16438. func (s *DBInstanceAutomatedBackup) SetEncrypted(v bool) *DBInstanceAutomatedBackup {
  16439. s.Encrypted = &v
  16440. return s
  16441. }
  16442. // SetEngine sets the Engine field's value.
  16443. func (s *DBInstanceAutomatedBackup) SetEngine(v string) *DBInstanceAutomatedBackup {
  16444. s.Engine = &v
  16445. return s
  16446. }
  16447. // SetEngineVersion sets the EngineVersion field's value.
  16448. func (s *DBInstanceAutomatedBackup) SetEngineVersion(v string) *DBInstanceAutomatedBackup {
  16449. s.EngineVersion = &v
  16450. return s
  16451. }
  16452. // SetIAMDatabaseAuthenticationEnabled sets the IAMDatabaseAuthenticationEnabled field's value.
  16453. func (s *DBInstanceAutomatedBackup) SetIAMDatabaseAuthenticationEnabled(v bool) *DBInstanceAutomatedBackup {
  16454. s.IAMDatabaseAuthenticationEnabled = &v
  16455. return s
  16456. }
  16457. // SetInstanceCreateTime sets the InstanceCreateTime field's value.
  16458. func (s *DBInstanceAutomatedBackup) SetInstanceCreateTime(v time.Time) *DBInstanceAutomatedBackup {
  16459. s.InstanceCreateTime = &v
  16460. return s
  16461. }
  16462. // SetIops sets the Iops field's value.
  16463. func (s *DBInstanceAutomatedBackup) SetIops(v int64) *DBInstanceAutomatedBackup {
  16464. s.Iops = &v
  16465. return s
  16466. }
  16467. // SetKmsKeyId sets the KmsKeyId field's value.
  16468. func (s *DBInstanceAutomatedBackup) SetKmsKeyId(v string) *DBInstanceAutomatedBackup {
  16469. s.KmsKeyId = &v
  16470. return s
  16471. }
  16472. // SetLicenseModel sets the LicenseModel field's value.
  16473. func (s *DBInstanceAutomatedBackup) SetLicenseModel(v string) *DBInstanceAutomatedBackup {
  16474. s.LicenseModel = &v
  16475. return s
  16476. }
  16477. // SetMasterUsername sets the MasterUsername field's value.
  16478. func (s *DBInstanceAutomatedBackup) SetMasterUsername(v string) *DBInstanceAutomatedBackup {
  16479. s.MasterUsername = &v
  16480. return s
  16481. }
  16482. // SetOptionGroupName sets the OptionGroupName field's value.
  16483. func (s *DBInstanceAutomatedBackup) SetOptionGroupName(v string) *DBInstanceAutomatedBackup {
  16484. s.OptionGroupName = &v
  16485. return s
  16486. }
  16487. // SetPort sets the Port field's value.
  16488. func (s *DBInstanceAutomatedBackup) SetPort(v int64) *DBInstanceAutomatedBackup {
  16489. s.Port = &v
  16490. return s
  16491. }
  16492. // SetRegion sets the Region field's value.
  16493. func (s *DBInstanceAutomatedBackup) SetRegion(v string) *DBInstanceAutomatedBackup {
  16494. s.Region = &v
  16495. return s
  16496. }
  16497. // SetRestoreWindow sets the RestoreWindow field's value.
  16498. func (s *DBInstanceAutomatedBackup) SetRestoreWindow(v *RestoreWindow) *DBInstanceAutomatedBackup {
  16499. s.RestoreWindow = v
  16500. return s
  16501. }
  16502. // SetStatus sets the Status field's value.
  16503. func (s *DBInstanceAutomatedBackup) SetStatus(v string) *DBInstanceAutomatedBackup {
  16504. s.Status = &v
  16505. return s
  16506. }
  16507. // SetStorageType sets the StorageType field's value.
  16508. func (s *DBInstanceAutomatedBackup) SetStorageType(v string) *DBInstanceAutomatedBackup {
  16509. s.StorageType = &v
  16510. return s
  16511. }
  16512. // SetTdeCredentialArn sets the TdeCredentialArn field's value.
  16513. func (s *DBInstanceAutomatedBackup) SetTdeCredentialArn(v string) *DBInstanceAutomatedBackup {
  16514. s.TdeCredentialArn = &v
  16515. return s
  16516. }
  16517. // SetTimezone sets the Timezone field's value.
  16518. func (s *DBInstanceAutomatedBackup) SetTimezone(v string) *DBInstanceAutomatedBackup {
  16519. s.Timezone = &v
  16520. return s
  16521. }
  16522. // SetVpcId sets the VpcId field's value.
  16523. func (s *DBInstanceAutomatedBackup) SetVpcId(v string) *DBInstanceAutomatedBackup {
  16524. s.VpcId = &v
  16525. return s
  16526. }
  16527. // Provides a list of status information for a DB instance.
  16528. type DBInstanceStatusInfo struct {
  16529. _ struct{} `type:"structure"`
  16530. // Details of the error if there is an error for the instance. If the instance
  16531. // is not in an error state, this value is blank.
  16532. Message *string `type:"string"`
  16533. // Boolean value that is true if the instance is operating normally, or false
  16534. // if the instance is in an error state.
  16535. Normal *bool `type:"boolean"`
  16536. // Status of the DB instance. For a StatusType of read replica, the values can
  16537. // be replicating, replication stop point set, replication stop point reached,
  16538. // error, stopped, or terminated.
  16539. Status *string `type:"string"`
  16540. // This value is currently "read replication."
  16541. StatusType *string `type:"string"`
  16542. }
  16543. // String returns the string representation
  16544. func (s DBInstanceStatusInfo) String() string {
  16545. return awsutil.Prettify(s)
  16546. }
  16547. // GoString returns the string representation
  16548. func (s DBInstanceStatusInfo) GoString() string {
  16549. return s.String()
  16550. }
  16551. // SetMessage sets the Message field's value.
  16552. func (s *DBInstanceStatusInfo) SetMessage(v string) *DBInstanceStatusInfo {
  16553. s.Message = &v
  16554. return s
  16555. }
  16556. // SetNormal sets the Normal field's value.
  16557. func (s *DBInstanceStatusInfo) SetNormal(v bool) *DBInstanceStatusInfo {
  16558. s.Normal = &v
  16559. return s
  16560. }
  16561. // SetStatus sets the Status field's value.
  16562. func (s *DBInstanceStatusInfo) SetStatus(v string) *DBInstanceStatusInfo {
  16563. s.Status = &v
  16564. return s
  16565. }
  16566. // SetStatusType sets the StatusType field's value.
  16567. func (s *DBInstanceStatusInfo) SetStatusType(v string) *DBInstanceStatusInfo {
  16568. s.StatusType = &v
  16569. return s
  16570. }
  16571. // Contains the details of an Amazon RDS DB parameter group.
  16572. //
  16573. // This data type is used as a response element in the DescribeDBParameterGroups
  16574. // action.
  16575. type DBParameterGroup struct {
  16576. _ struct{} `type:"structure"`
  16577. // The Amazon Resource Name (ARN) for the DB parameter group.
  16578. DBParameterGroupArn *string `type:"string"`
  16579. // Provides the name of the DB parameter group family that this DB parameter
  16580. // group is compatible with.
  16581. DBParameterGroupFamily *string `type:"string"`
  16582. // Provides the name of the DB parameter group.
  16583. DBParameterGroupName *string `type:"string"`
  16584. // Provides the customer-specified description for this DB parameter group.
  16585. Description *string `type:"string"`
  16586. }
  16587. // String returns the string representation
  16588. func (s DBParameterGroup) String() string {
  16589. return awsutil.Prettify(s)
  16590. }
  16591. // GoString returns the string representation
  16592. func (s DBParameterGroup) GoString() string {
  16593. return s.String()
  16594. }
  16595. // SetDBParameterGroupArn sets the DBParameterGroupArn field's value.
  16596. func (s *DBParameterGroup) SetDBParameterGroupArn(v string) *DBParameterGroup {
  16597. s.DBParameterGroupArn = &v
  16598. return s
  16599. }
  16600. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  16601. func (s *DBParameterGroup) SetDBParameterGroupFamily(v string) *DBParameterGroup {
  16602. s.DBParameterGroupFamily = &v
  16603. return s
  16604. }
  16605. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  16606. func (s *DBParameterGroup) SetDBParameterGroupName(v string) *DBParameterGroup {
  16607. s.DBParameterGroupName = &v
  16608. return s
  16609. }
  16610. // SetDescription sets the Description field's value.
  16611. func (s *DBParameterGroup) SetDescription(v string) *DBParameterGroup {
  16612. s.Description = &v
  16613. return s
  16614. }
  16615. // Contains the result of a successful invocation of the ModifyDBParameterGroup
  16616. // or ResetDBParameterGroup action.
  16617. type DBParameterGroupNameMessage struct {
  16618. _ struct{} `type:"structure"`
  16619. // Provides the name of the DB parameter group.
  16620. DBParameterGroupName *string `type:"string"`
  16621. }
  16622. // String returns the string representation
  16623. func (s DBParameterGroupNameMessage) String() string {
  16624. return awsutil.Prettify(s)
  16625. }
  16626. // GoString returns the string representation
  16627. func (s DBParameterGroupNameMessage) GoString() string {
  16628. return s.String()
  16629. }
  16630. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  16631. func (s *DBParameterGroupNameMessage) SetDBParameterGroupName(v string) *DBParameterGroupNameMessage {
  16632. s.DBParameterGroupName = &v
  16633. return s
  16634. }
  16635. // The status of the DB parameter group.
  16636. //
  16637. // This data type is used as a response element in the following actions:
  16638. //
  16639. // * CreateDBInstance
  16640. //
  16641. // * CreateDBInstanceReadReplica
  16642. //
  16643. // * DeleteDBInstance
  16644. //
  16645. // * ModifyDBInstance
  16646. //
  16647. // * RebootDBInstance
  16648. //
  16649. // * RestoreDBInstanceFromDBSnapshot
  16650. type DBParameterGroupStatus struct {
  16651. _ struct{} `type:"structure"`
  16652. // The name of the DP parameter group.
  16653. DBParameterGroupName *string `type:"string"`
  16654. // The status of parameter updates.
  16655. ParameterApplyStatus *string `type:"string"`
  16656. }
  16657. // String returns the string representation
  16658. func (s DBParameterGroupStatus) String() string {
  16659. return awsutil.Prettify(s)
  16660. }
  16661. // GoString returns the string representation
  16662. func (s DBParameterGroupStatus) GoString() string {
  16663. return s.String()
  16664. }
  16665. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  16666. func (s *DBParameterGroupStatus) SetDBParameterGroupName(v string) *DBParameterGroupStatus {
  16667. s.DBParameterGroupName = &v
  16668. return s
  16669. }
  16670. // SetParameterApplyStatus sets the ParameterApplyStatus field's value.
  16671. func (s *DBParameterGroupStatus) SetParameterApplyStatus(v string) *DBParameterGroupStatus {
  16672. s.ParameterApplyStatus = &v
  16673. return s
  16674. }
  16675. // Contains the details for an Amazon RDS DB security group.
  16676. //
  16677. // This data type is used as a response element in the DescribeDBSecurityGroups
  16678. // action.
  16679. type DBSecurityGroup struct {
  16680. _ struct{} `type:"structure"`
  16681. // The Amazon Resource Name (ARN) for the DB security group.
  16682. DBSecurityGroupArn *string `type:"string"`
  16683. // Provides the description of the DB security group.
  16684. DBSecurityGroupDescription *string `type:"string"`
  16685. // Specifies the name of the DB security group.
  16686. DBSecurityGroupName *string `type:"string"`
  16687. // Contains a list of EC2SecurityGroup elements.
  16688. EC2SecurityGroups []*EC2SecurityGroup `locationNameList:"EC2SecurityGroup" type:"list"`
  16689. // Contains a list of IPRange elements.
  16690. IPRanges []*IPRange `locationNameList:"IPRange" type:"list"`
  16691. // Provides the AWS ID of the owner of a specific DB security group.
  16692. OwnerId *string `type:"string"`
  16693. // Provides the VpcId of the DB security group.
  16694. VpcId *string `type:"string"`
  16695. }
  16696. // String returns the string representation
  16697. func (s DBSecurityGroup) String() string {
  16698. return awsutil.Prettify(s)
  16699. }
  16700. // GoString returns the string representation
  16701. func (s DBSecurityGroup) GoString() string {
  16702. return s.String()
  16703. }
  16704. // SetDBSecurityGroupArn sets the DBSecurityGroupArn field's value.
  16705. func (s *DBSecurityGroup) SetDBSecurityGroupArn(v string) *DBSecurityGroup {
  16706. s.DBSecurityGroupArn = &v
  16707. return s
  16708. }
  16709. // SetDBSecurityGroupDescription sets the DBSecurityGroupDescription field's value.
  16710. func (s *DBSecurityGroup) SetDBSecurityGroupDescription(v string) *DBSecurityGroup {
  16711. s.DBSecurityGroupDescription = &v
  16712. return s
  16713. }
  16714. // SetDBSecurityGroupName sets the DBSecurityGroupName field's value.
  16715. func (s *DBSecurityGroup) SetDBSecurityGroupName(v string) *DBSecurityGroup {
  16716. s.DBSecurityGroupName = &v
  16717. return s
  16718. }
  16719. // SetEC2SecurityGroups sets the EC2SecurityGroups field's value.
  16720. func (s *DBSecurityGroup) SetEC2SecurityGroups(v []*EC2SecurityGroup) *DBSecurityGroup {
  16721. s.EC2SecurityGroups = v
  16722. return s
  16723. }
  16724. // SetIPRanges sets the IPRanges field's value.
  16725. func (s *DBSecurityGroup) SetIPRanges(v []*IPRange) *DBSecurityGroup {
  16726. s.IPRanges = v
  16727. return s
  16728. }
  16729. // SetOwnerId sets the OwnerId field's value.
  16730. func (s *DBSecurityGroup) SetOwnerId(v string) *DBSecurityGroup {
  16731. s.OwnerId = &v
  16732. return s
  16733. }
  16734. // SetVpcId sets the VpcId field's value.
  16735. func (s *DBSecurityGroup) SetVpcId(v string) *DBSecurityGroup {
  16736. s.VpcId = &v
  16737. return s
  16738. }
  16739. // This data type is used as a response element in the following actions:
  16740. //
  16741. // * ModifyDBInstance
  16742. //
  16743. // * RebootDBInstance
  16744. //
  16745. // * RestoreDBInstanceFromDBSnapshot
  16746. //
  16747. // * RestoreDBInstanceToPointInTime
  16748. type DBSecurityGroupMembership struct {
  16749. _ struct{} `type:"structure"`
  16750. // The name of the DB security group.
  16751. DBSecurityGroupName *string `type:"string"`
  16752. // The status of the DB security group.
  16753. Status *string `type:"string"`
  16754. }
  16755. // String returns the string representation
  16756. func (s DBSecurityGroupMembership) String() string {
  16757. return awsutil.Prettify(s)
  16758. }
  16759. // GoString returns the string representation
  16760. func (s DBSecurityGroupMembership) GoString() string {
  16761. return s.String()
  16762. }
  16763. // SetDBSecurityGroupName sets the DBSecurityGroupName field's value.
  16764. func (s *DBSecurityGroupMembership) SetDBSecurityGroupName(v string) *DBSecurityGroupMembership {
  16765. s.DBSecurityGroupName = &v
  16766. return s
  16767. }
  16768. // SetStatus sets the Status field's value.
  16769. func (s *DBSecurityGroupMembership) SetStatus(v string) *DBSecurityGroupMembership {
  16770. s.Status = &v
  16771. return s
  16772. }
  16773. // Contains the details of an Amazon RDS DB snapshot.
  16774. //
  16775. // This data type is used as a response element in the DescribeDBSnapshots action.
  16776. type DBSnapshot struct {
  16777. _ struct{} `type:"structure"`
  16778. // Specifies the allocated storage size in gibibytes (GiB).
  16779. AllocatedStorage *int64 `type:"integer"`
  16780. // Specifies the name of the Availability Zone the DB instance was located in
  16781. // at the time of the DB snapshot.
  16782. AvailabilityZone *string `type:"string"`
  16783. // Specifies the DB instance identifier of the DB instance this DB snapshot
  16784. // was created from.
  16785. DBInstanceIdentifier *string `type:"string"`
  16786. // The Amazon Resource Name (ARN) for the DB snapshot.
  16787. DBSnapshotArn *string `type:"string"`
  16788. // Specifies the identifier for the DB snapshot.
  16789. DBSnapshotIdentifier *string `type:"string"`
  16790. // The identifier for the source DB instance, which can't be changed and which
  16791. // is unique to an AWS Region.
  16792. DbiResourceId *string `type:"string"`
  16793. // Specifies whether the DB snapshot is encrypted.
  16794. Encrypted *bool `type:"boolean"`
  16795. // Specifies the name of the database engine.
  16796. Engine *string `type:"string"`
  16797. // Specifies the version of the database engine.
  16798. EngineVersion *string `type:"string"`
  16799. // True if mapping of AWS Identity and Access Management (IAM) accounts to database
  16800. // accounts is enabled, and otherwise false.
  16801. IAMDatabaseAuthenticationEnabled *bool `type:"boolean"`
  16802. // Specifies the time when the snapshot was taken, in Universal Coordinated
  16803. // Time (UTC).
  16804. InstanceCreateTime *time.Time `type:"timestamp"`
  16805. // Specifies the Provisioned IOPS (I/O operations per second) value of the DB
  16806. // instance at the time of the snapshot.
  16807. Iops *int64 `type:"integer"`
  16808. // If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.
  16809. KmsKeyId *string `type:"string"`
  16810. // License model information for the restored DB instance.
  16811. LicenseModel *string `type:"string"`
  16812. // Provides the master username for the DB snapshot.
  16813. MasterUsername *string `type:"string"`
  16814. // Provides the option group name for the DB snapshot.
  16815. OptionGroupName *string `type:"string"`
  16816. // The percentage of the estimated data that has been transferred.
  16817. PercentProgress *int64 `type:"integer"`
  16818. // Specifies the port that the database engine was listening on at the time
  16819. // of the snapshot.
  16820. Port *int64 `type:"integer"`
  16821. // The number of CPU cores and the number of threads per core for the DB instance
  16822. // class of the DB instance when the DB snapshot was created.
  16823. ProcessorFeatures []*ProcessorFeature `locationNameList:"ProcessorFeature" type:"list"`
  16824. // Provides the time when the snapshot was taken, in Universal Coordinated Time
  16825. // (UTC).
  16826. SnapshotCreateTime *time.Time `type:"timestamp"`
  16827. // Provides the type of the DB snapshot.
  16828. SnapshotType *string `type:"string"`
  16829. // The DB snapshot Amazon Resource Name (ARN) that the DB snapshot was copied
  16830. // from. It only has value in case of cross-customer or cross-region copy.
  16831. SourceDBSnapshotIdentifier *string `type:"string"`
  16832. // The AWS Region that the DB snapshot was created in or copied from.
  16833. SourceRegion *string `type:"string"`
  16834. // Specifies the status of this DB snapshot.
  16835. Status *string `type:"string"`
  16836. // Specifies the storage type associated with DB snapshot.
  16837. StorageType *string `type:"string"`
  16838. // The ARN from the key store with which to associate the instance for TDE encryption.
  16839. TdeCredentialArn *string `type:"string"`
  16840. // The time zone of the DB snapshot. In most cases, the Timezone element is
  16841. // empty. Timezone content appears only for snapshots taken from Microsoft SQL
  16842. // Server DB instances that were created with a time zone specified.
  16843. Timezone *string `type:"string"`
  16844. // Provides the VPC ID associated with the DB snapshot.
  16845. VpcId *string `type:"string"`
  16846. }
  16847. // String returns the string representation
  16848. func (s DBSnapshot) String() string {
  16849. return awsutil.Prettify(s)
  16850. }
  16851. // GoString returns the string representation
  16852. func (s DBSnapshot) GoString() string {
  16853. return s.String()
  16854. }
  16855. // SetAllocatedStorage sets the AllocatedStorage field's value.
  16856. func (s *DBSnapshot) SetAllocatedStorage(v int64) *DBSnapshot {
  16857. s.AllocatedStorage = &v
  16858. return s
  16859. }
  16860. // SetAvailabilityZone sets the AvailabilityZone field's value.
  16861. func (s *DBSnapshot) SetAvailabilityZone(v string) *DBSnapshot {
  16862. s.AvailabilityZone = &v
  16863. return s
  16864. }
  16865. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  16866. func (s *DBSnapshot) SetDBInstanceIdentifier(v string) *DBSnapshot {
  16867. s.DBInstanceIdentifier = &v
  16868. return s
  16869. }
  16870. // SetDBSnapshotArn sets the DBSnapshotArn field's value.
  16871. func (s *DBSnapshot) SetDBSnapshotArn(v string) *DBSnapshot {
  16872. s.DBSnapshotArn = &v
  16873. return s
  16874. }
  16875. // SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value.
  16876. func (s *DBSnapshot) SetDBSnapshotIdentifier(v string) *DBSnapshot {
  16877. s.DBSnapshotIdentifier = &v
  16878. return s
  16879. }
  16880. // SetDbiResourceId sets the DbiResourceId field's value.
  16881. func (s *DBSnapshot) SetDbiResourceId(v string) *DBSnapshot {
  16882. s.DbiResourceId = &v
  16883. return s
  16884. }
  16885. // SetEncrypted sets the Encrypted field's value.
  16886. func (s *DBSnapshot) SetEncrypted(v bool) *DBSnapshot {
  16887. s.Encrypted = &v
  16888. return s
  16889. }
  16890. // SetEngine sets the Engine field's value.
  16891. func (s *DBSnapshot) SetEngine(v string) *DBSnapshot {
  16892. s.Engine = &v
  16893. return s
  16894. }
  16895. // SetEngineVersion sets the EngineVersion field's value.
  16896. func (s *DBSnapshot) SetEngineVersion(v string) *DBSnapshot {
  16897. s.EngineVersion = &v
  16898. return s
  16899. }
  16900. // SetIAMDatabaseAuthenticationEnabled sets the IAMDatabaseAuthenticationEnabled field's value.
  16901. func (s *DBSnapshot) SetIAMDatabaseAuthenticationEnabled(v bool) *DBSnapshot {
  16902. s.IAMDatabaseAuthenticationEnabled = &v
  16903. return s
  16904. }
  16905. // SetInstanceCreateTime sets the InstanceCreateTime field's value.
  16906. func (s *DBSnapshot) SetInstanceCreateTime(v time.Time) *DBSnapshot {
  16907. s.InstanceCreateTime = &v
  16908. return s
  16909. }
  16910. // SetIops sets the Iops field's value.
  16911. func (s *DBSnapshot) SetIops(v int64) *DBSnapshot {
  16912. s.Iops = &v
  16913. return s
  16914. }
  16915. // SetKmsKeyId sets the KmsKeyId field's value.
  16916. func (s *DBSnapshot) SetKmsKeyId(v string) *DBSnapshot {
  16917. s.KmsKeyId = &v
  16918. return s
  16919. }
  16920. // SetLicenseModel sets the LicenseModel field's value.
  16921. func (s *DBSnapshot) SetLicenseModel(v string) *DBSnapshot {
  16922. s.LicenseModel = &v
  16923. return s
  16924. }
  16925. // SetMasterUsername sets the MasterUsername field's value.
  16926. func (s *DBSnapshot) SetMasterUsername(v string) *DBSnapshot {
  16927. s.MasterUsername = &v
  16928. return s
  16929. }
  16930. // SetOptionGroupName sets the OptionGroupName field's value.
  16931. func (s *DBSnapshot) SetOptionGroupName(v string) *DBSnapshot {
  16932. s.OptionGroupName = &v
  16933. return s
  16934. }
  16935. // SetPercentProgress sets the PercentProgress field's value.
  16936. func (s *DBSnapshot) SetPercentProgress(v int64) *DBSnapshot {
  16937. s.PercentProgress = &v
  16938. return s
  16939. }
  16940. // SetPort sets the Port field's value.
  16941. func (s *DBSnapshot) SetPort(v int64) *DBSnapshot {
  16942. s.Port = &v
  16943. return s
  16944. }
  16945. // SetProcessorFeatures sets the ProcessorFeatures field's value.
  16946. func (s *DBSnapshot) SetProcessorFeatures(v []*ProcessorFeature) *DBSnapshot {
  16947. s.ProcessorFeatures = v
  16948. return s
  16949. }
  16950. // SetSnapshotCreateTime sets the SnapshotCreateTime field's value.
  16951. func (s *DBSnapshot) SetSnapshotCreateTime(v time.Time) *DBSnapshot {
  16952. s.SnapshotCreateTime = &v
  16953. return s
  16954. }
  16955. // SetSnapshotType sets the SnapshotType field's value.
  16956. func (s *DBSnapshot) SetSnapshotType(v string) *DBSnapshot {
  16957. s.SnapshotType = &v
  16958. return s
  16959. }
  16960. // SetSourceDBSnapshotIdentifier sets the SourceDBSnapshotIdentifier field's value.
  16961. func (s *DBSnapshot) SetSourceDBSnapshotIdentifier(v string) *DBSnapshot {
  16962. s.SourceDBSnapshotIdentifier = &v
  16963. return s
  16964. }
  16965. // SetSourceRegion sets the SourceRegion field's value.
  16966. func (s *DBSnapshot) SetSourceRegion(v string) *DBSnapshot {
  16967. s.SourceRegion = &v
  16968. return s
  16969. }
  16970. // SetStatus sets the Status field's value.
  16971. func (s *DBSnapshot) SetStatus(v string) *DBSnapshot {
  16972. s.Status = &v
  16973. return s
  16974. }
  16975. // SetStorageType sets the StorageType field's value.
  16976. func (s *DBSnapshot) SetStorageType(v string) *DBSnapshot {
  16977. s.StorageType = &v
  16978. return s
  16979. }
  16980. // SetTdeCredentialArn sets the TdeCredentialArn field's value.
  16981. func (s *DBSnapshot) SetTdeCredentialArn(v string) *DBSnapshot {
  16982. s.TdeCredentialArn = &v
  16983. return s
  16984. }
  16985. // SetTimezone sets the Timezone field's value.
  16986. func (s *DBSnapshot) SetTimezone(v string) *DBSnapshot {
  16987. s.Timezone = &v
  16988. return s
  16989. }
  16990. // SetVpcId sets the VpcId field's value.
  16991. func (s *DBSnapshot) SetVpcId(v string) *DBSnapshot {
  16992. s.VpcId = &v
  16993. return s
  16994. }
  16995. // Contains the name and values of a manual DB snapshot attribute
  16996. //
  16997. // Manual DB snapshot attributes are used to authorize other AWS accounts to
  16998. // restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
  16999. // API.
  17000. type DBSnapshotAttribute struct {
  17001. _ struct{} `type:"structure"`
  17002. // The name of the manual DB snapshot attribute.
  17003. //
  17004. // The attribute named restore refers to the list of AWS accounts that have
  17005. // permission to copy or restore the manual DB cluster snapshot. For more information,
  17006. // see the ModifyDBSnapshotAttribute API action.
  17007. AttributeName *string `type:"string"`
  17008. // The value or values for the manual DB snapshot attribute.
  17009. //
  17010. // If the AttributeName field is set to restore, then this element returns a
  17011. // list of IDs of the AWS accounts that are authorized to copy or restore the
  17012. // manual DB snapshot. If a value of all is in the list, then the manual DB
  17013. // snapshot is public and available for any AWS account to copy or restore.
  17014. AttributeValues []*string `locationNameList:"AttributeValue" type:"list"`
  17015. }
  17016. // String returns the string representation
  17017. func (s DBSnapshotAttribute) String() string {
  17018. return awsutil.Prettify(s)
  17019. }
  17020. // GoString returns the string representation
  17021. func (s DBSnapshotAttribute) GoString() string {
  17022. return s.String()
  17023. }
  17024. // SetAttributeName sets the AttributeName field's value.
  17025. func (s *DBSnapshotAttribute) SetAttributeName(v string) *DBSnapshotAttribute {
  17026. s.AttributeName = &v
  17027. return s
  17028. }
  17029. // SetAttributeValues sets the AttributeValues field's value.
  17030. func (s *DBSnapshotAttribute) SetAttributeValues(v []*string) *DBSnapshotAttribute {
  17031. s.AttributeValues = v
  17032. return s
  17033. }
  17034. // Contains the results of a successful call to the DescribeDBSnapshotAttributes
  17035. // API action.
  17036. //
  17037. // Manual DB snapshot attributes are used to authorize other AWS accounts to
  17038. // copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
  17039. // API action.
  17040. type DBSnapshotAttributesResult struct {
  17041. _ struct{} `type:"structure"`
  17042. // The list of attributes and values for the manual DB snapshot.
  17043. DBSnapshotAttributes []*DBSnapshotAttribute `locationNameList:"DBSnapshotAttribute" type:"list"`
  17044. // The identifier of the manual DB snapshot that the attributes apply to.
  17045. DBSnapshotIdentifier *string `type:"string"`
  17046. }
  17047. // String returns the string representation
  17048. func (s DBSnapshotAttributesResult) String() string {
  17049. return awsutil.Prettify(s)
  17050. }
  17051. // GoString returns the string representation
  17052. func (s DBSnapshotAttributesResult) GoString() string {
  17053. return s.String()
  17054. }
  17055. // SetDBSnapshotAttributes sets the DBSnapshotAttributes field's value.
  17056. func (s *DBSnapshotAttributesResult) SetDBSnapshotAttributes(v []*DBSnapshotAttribute) *DBSnapshotAttributesResult {
  17057. s.DBSnapshotAttributes = v
  17058. return s
  17059. }
  17060. // SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value.
  17061. func (s *DBSnapshotAttributesResult) SetDBSnapshotIdentifier(v string) *DBSnapshotAttributesResult {
  17062. s.DBSnapshotIdentifier = &v
  17063. return s
  17064. }
  17065. // Contains the details of an Amazon RDS DB subnet group.
  17066. //
  17067. // This data type is used as a response element in the DescribeDBSubnetGroups
  17068. // action.
  17069. type DBSubnetGroup struct {
  17070. _ struct{} `type:"structure"`
  17071. // The Amazon Resource Name (ARN) for the DB subnet group.
  17072. DBSubnetGroupArn *string `type:"string"`
  17073. // Provides the description of the DB subnet group.
  17074. DBSubnetGroupDescription *string `type:"string"`
  17075. // The name of the DB subnet group.
  17076. DBSubnetGroupName *string `type:"string"`
  17077. // Provides the status of the DB subnet group.
  17078. SubnetGroupStatus *string `type:"string"`
  17079. // Contains a list of Subnet elements.
  17080. Subnets []*Subnet `locationNameList:"Subnet" type:"list"`
  17081. // Provides the VpcId of the DB subnet group.
  17082. VpcId *string `type:"string"`
  17083. }
  17084. // String returns the string representation
  17085. func (s DBSubnetGroup) String() string {
  17086. return awsutil.Prettify(s)
  17087. }
  17088. // GoString returns the string representation
  17089. func (s DBSubnetGroup) GoString() string {
  17090. return s.String()
  17091. }
  17092. // SetDBSubnetGroupArn sets the DBSubnetGroupArn field's value.
  17093. func (s *DBSubnetGroup) SetDBSubnetGroupArn(v string) *DBSubnetGroup {
  17094. s.DBSubnetGroupArn = &v
  17095. return s
  17096. }
  17097. // SetDBSubnetGroupDescription sets the DBSubnetGroupDescription field's value.
  17098. func (s *DBSubnetGroup) SetDBSubnetGroupDescription(v string) *DBSubnetGroup {
  17099. s.DBSubnetGroupDescription = &v
  17100. return s
  17101. }
  17102. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  17103. func (s *DBSubnetGroup) SetDBSubnetGroupName(v string) *DBSubnetGroup {
  17104. s.DBSubnetGroupName = &v
  17105. return s
  17106. }
  17107. // SetSubnetGroupStatus sets the SubnetGroupStatus field's value.
  17108. func (s *DBSubnetGroup) SetSubnetGroupStatus(v string) *DBSubnetGroup {
  17109. s.SubnetGroupStatus = &v
  17110. return s
  17111. }
  17112. // SetSubnets sets the Subnets field's value.
  17113. func (s *DBSubnetGroup) SetSubnets(v []*Subnet) *DBSubnetGroup {
  17114. s.Subnets = v
  17115. return s
  17116. }
  17117. // SetVpcId sets the VpcId field's value.
  17118. func (s *DBSubnetGroup) SetVpcId(v string) *DBSubnetGroup {
  17119. s.VpcId = &v
  17120. return s
  17121. }
  17122. type DeleteDBClusterEndpointInput struct {
  17123. _ struct{} `type:"structure"`
  17124. // The identifier associated with the custom endpoint. This parameter is stored
  17125. // as a lowercase string.
  17126. //
  17127. // DBClusterEndpointIdentifier is a required field
  17128. DBClusterEndpointIdentifier *string `type:"string" required:"true"`
  17129. }
  17130. // String returns the string representation
  17131. func (s DeleteDBClusterEndpointInput) String() string {
  17132. return awsutil.Prettify(s)
  17133. }
  17134. // GoString returns the string representation
  17135. func (s DeleteDBClusterEndpointInput) GoString() string {
  17136. return s.String()
  17137. }
  17138. // Validate inspects the fields of the type to determine if they are valid.
  17139. func (s *DeleteDBClusterEndpointInput) Validate() error {
  17140. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterEndpointInput"}
  17141. if s.DBClusterEndpointIdentifier == nil {
  17142. invalidParams.Add(request.NewErrParamRequired("DBClusterEndpointIdentifier"))
  17143. }
  17144. if invalidParams.Len() > 0 {
  17145. return invalidParams
  17146. }
  17147. return nil
  17148. }
  17149. // SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value.
  17150. func (s *DeleteDBClusterEndpointInput) SetDBClusterEndpointIdentifier(v string) *DeleteDBClusterEndpointInput {
  17151. s.DBClusterEndpointIdentifier = &v
  17152. return s
  17153. }
  17154. // This data type represents the information you need to connect to an Amazon
  17155. // Aurora DB cluster. This data type is used as a response element in the following
  17156. // actions:
  17157. //
  17158. // * CreateDBClusterEndpoint
  17159. //
  17160. // * DescribeDBClusterEndpoints
  17161. //
  17162. // * ModifyDBClusterEndpoint
  17163. //
  17164. // * DeleteDBClusterEndpoint
  17165. //
  17166. // For the data structure that represents Amazon RDS DB instance endpoints,
  17167. // see Endpoint.
  17168. type DeleteDBClusterEndpointOutput struct {
  17169. _ struct{} `type:"structure"`
  17170. // The type associated with a custom endpoint. One of: READER, ANY.
  17171. CustomEndpointType *string `type:"string"`
  17172. // The Amazon Resource Name (ARN) for the endpoint.
  17173. DBClusterEndpointArn *string `type:"string"`
  17174. // The identifier associated with the endpoint. This parameter is stored as
  17175. // a lowercase string.
  17176. DBClusterEndpointIdentifier *string `type:"string"`
  17177. // A unique system-generated identifier for an endpoint. It remains the same
  17178. // for the whole life of the endpoint.
  17179. DBClusterEndpointResourceIdentifier *string `type:"string"`
  17180. // The DB cluster identifier of the DB cluster associated with the endpoint.
  17181. // This parameter is stored as a lowercase string.
  17182. DBClusterIdentifier *string `type:"string"`
  17183. // The DNS address of the endpoint.
  17184. Endpoint *string `type:"string"`
  17185. // The type of the endpoint. One of: READER, WRITER, CUSTOM.
  17186. EndpointType *string `type:"string"`
  17187. // List of DB instance identifiers that aren't part of the custom endpoint group.
  17188. // All other eligible instances are reachable through the custom endpoint. Only
  17189. // relevant if the list of static members is empty.
  17190. ExcludedMembers []*string `type:"list"`
  17191. // List of DB instance identifiers that are part of the custom endpoint group.
  17192. StaticMembers []*string `type:"list"`
  17193. // The current status of the endpoint. One of: creating, available, deleting,
  17194. // modifying.
  17195. Status *string `type:"string"`
  17196. }
  17197. // String returns the string representation
  17198. func (s DeleteDBClusterEndpointOutput) String() string {
  17199. return awsutil.Prettify(s)
  17200. }
  17201. // GoString returns the string representation
  17202. func (s DeleteDBClusterEndpointOutput) GoString() string {
  17203. return s.String()
  17204. }
  17205. // SetCustomEndpointType sets the CustomEndpointType field's value.
  17206. func (s *DeleteDBClusterEndpointOutput) SetCustomEndpointType(v string) *DeleteDBClusterEndpointOutput {
  17207. s.CustomEndpointType = &v
  17208. return s
  17209. }
  17210. // SetDBClusterEndpointArn sets the DBClusterEndpointArn field's value.
  17211. func (s *DeleteDBClusterEndpointOutput) SetDBClusterEndpointArn(v string) *DeleteDBClusterEndpointOutput {
  17212. s.DBClusterEndpointArn = &v
  17213. return s
  17214. }
  17215. // SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value.
  17216. func (s *DeleteDBClusterEndpointOutput) SetDBClusterEndpointIdentifier(v string) *DeleteDBClusterEndpointOutput {
  17217. s.DBClusterEndpointIdentifier = &v
  17218. return s
  17219. }
  17220. // SetDBClusterEndpointResourceIdentifier sets the DBClusterEndpointResourceIdentifier field's value.
  17221. func (s *DeleteDBClusterEndpointOutput) SetDBClusterEndpointResourceIdentifier(v string) *DeleteDBClusterEndpointOutput {
  17222. s.DBClusterEndpointResourceIdentifier = &v
  17223. return s
  17224. }
  17225. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  17226. func (s *DeleteDBClusterEndpointOutput) SetDBClusterIdentifier(v string) *DeleteDBClusterEndpointOutput {
  17227. s.DBClusterIdentifier = &v
  17228. return s
  17229. }
  17230. // SetEndpoint sets the Endpoint field's value.
  17231. func (s *DeleteDBClusterEndpointOutput) SetEndpoint(v string) *DeleteDBClusterEndpointOutput {
  17232. s.Endpoint = &v
  17233. return s
  17234. }
  17235. // SetEndpointType sets the EndpointType field's value.
  17236. func (s *DeleteDBClusterEndpointOutput) SetEndpointType(v string) *DeleteDBClusterEndpointOutput {
  17237. s.EndpointType = &v
  17238. return s
  17239. }
  17240. // SetExcludedMembers sets the ExcludedMembers field's value.
  17241. func (s *DeleteDBClusterEndpointOutput) SetExcludedMembers(v []*string) *DeleteDBClusterEndpointOutput {
  17242. s.ExcludedMembers = v
  17243. return s
  17244. }
  17245. // SetStaticMembers sets the StaticMembers field's value.
  17246. func (s *DeleteDBClusterEndpointOutput) SetStaticMembers(v []*string) *DeleteDBClusterEndpointOutput {
  17247. s.StaticMembers = v
  17248. return s
  17249. }
  17250. // SetStatus sets the Status field's value.
  17251. func (s *DeleteDBClusterEndpointOutput) SetStatus(v string) *DeleteDBClusterEndpointOutput {
  17252. s.Status = &v
  17253. return s
  17254. }
  17255. type DeleteDBClusterInput struct {
  17256. _ struct{} `type:"structure"`
  17257. // The DB cluster identifier for the DB cluster to be deleted. This parameter
  17258. // isn't case-sensitive.
  17259. //
  17260. // Constraints:
  17261. //
  17262. // * Must match an existing DBClusterIdentifier.
  17263. //
  17264. // DBClusterIdentifier is a required field
  17265. DBClusterIdentifier *string `type:"string" required:"true"`
  17266. // The DB cluster snapshot identifier of the new DB cluster snapshot created
  17267. // when SkipFinalSnapshot is set to false.
  17268. //
  17269. // Specifying this parameter and also setting the SkipFinalShapshot parameter
  17270. // to true results in an error.
  17271. //
  17272. // Constraints:
  17273. //
  17274. // * Must be 1 to 255 letters, numbers, or hyphens.
  17275. //
  17276. // * First character must be a letter
  17277. //
  17278. // * Can't end with a hyphen or contain two consecutive hyphens
  17279. FinalDBSnapshotIdentifier *string `type:"string"`
  17280. // Determines whether a final DB cluster snapshot is created before the DB cluster
  17281. // is deleted. If true is specified, no DB cluster snapshot is created. If false
  17282. // is specified, a DB cluster snapshot is created before the DB cluster is deleted.
  17283. //
  17284. // You must specify a FinalDBSnapshotIdentifier parameter if SkipFinalSnapshot
  17285. // is false.
  17286. //
  17287. // Default: false
  17288. SkipFinalSnapshot *bool `type:"boolean"`
  17289. }
  17290. // String returns the string representation
  17291. func (s DeleteDBClusterInput) String() string {
  17292. return awsutil.Prettify(s)
  17293. }
  17294. // GoString returns the string representation
  17295. func (s DeleteDBClusterInput) GoString() string {
  17296. return s.String()
  17297. }
  17298. // Validate inspects the fields of the type to determine if they are valid.
  17299. func (s *DeleteDBClusterInput) Validate() error {
  17300. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterInput"}
  17301. if s.DBClusterIdentifier == nil {
  17302. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  17303. }
  17304. if invalidParams.Len() > 0 {
  17305. return invalidParams
  17306. }
  17307. return nil
  17308. }
  17309. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  17310. func (s *DeleteDBClusterInput) SetDBClusterIdentifier(v string) *DeleteDBClusterInput {
  17311. s.DBClusterIdentifier = &v
  17312. return s
  17313. }
  17314. // SetFinalDBSnapshotIdentifier sets the FinalDBSnapshotIdentifier field's value.
  17315. func (s *DeleteDBClusterInput) SetFinalDBSnapshotIdentifier(v string) *DeleteDBClusterInput {
  17316. s.FinalDBSnapshotIdentifier = &v
  17317. return s
  17318. }
  17319. // SetSkipFinalSnapshot sets the SkipFinalSnapshot field's value.
  17320. func (s *DeleteDBClusterInput) SetSkipFinalSnapshot(v bool) *DeleteDBClusterInput {
  17321. s.SkipFinalSnapshot = &v
  17322. return s
  17323. }
  17324. type DeleteDBClusterOutput struct {
  17325. _ struct{} `type:"structure"`
  17326. // Contains the details of an Amazon Aurora DB cluster.
  17327. //
  17328. // This data type is used as a response element in the DescribeDBClusters, StopDBCluster,
  17329. // and StartDBCluster actions.
  17330. DBCluster *DBCluster `type:"structure"`
  17331. }
  17332. // String returns the string representation
  17333. func (s DeleteDBClusterOutput) String() string {
  17334. return awsutil.Prettify(s)
  17335. }
  17336. // GoString returns the string representation
  17337. func (s DeleteDBClusterOutput) GoString() string {
  17338. return s.String()
  17339. }
  17340. // SetDBCluster sets the DBCluster field's value.
  17341. func (s *DeleteDBClusterOutput) SetDBCluster(v *DBCluster) *DeleteDBClusterOutput {
  17342. s.DBCluster = v
  17343. return s
  17344. }
  17345. type DeleteDBClusterParameterGroupInput struct {
  17346. _ struct{} `type:"structure"`
  17347. // The name of the DB cluster parameter group.
  17348. //
  17349. // Constraints:
  17350. //
  17351. // * Must be the name of an existing DB cluster parameter group.
  17352. //
  17353. // * You can't delete a default DB cluster parameter group.
  17354. //
  17355. // * Can't be associated with any DB clusters.
  17356. //
  17357. // DBClusterParameterGroupName is a required field
  17358. DBClusterParameterGroupName *string `type:"string" required:"true"`
  17359. }
  17360. // String returns the string representation
  17361. func (s DeleteDBClusterParameterGroupInput) String() string {
  17362. return awsutil.Prettify(s)
  17363. }
  17364. // GoString returns the string representation
  17365. func (s DeleteDBClusterParameterGroupInput) GoString() string {
  17366. return s.String()
  17367. }
  17368. // Validate inspects the fields of the type to determine if they are valid.
  17369. func (s *DeleteDBClusterParameterGroupInput) Validate() error {
  17370. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterParameterGroupInput"}
  17371. if s.DBClusterParameterGroupName == nil {
  17372. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  17373. }
  17374. if invalidParams.Len() > 0 {
  17375. return invalidParams
  17376. }
  17377. return nil
  17378. }
  17379. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  17380. func (s *DeleteDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *DeleteDBClusterParameterGroupInput {
  17381. s.DBClusterParameterGroupName = &v
  17382. return s
  17383. }
  17384. type DeleteDBClusterParameterGroupOutput struct {
  17385. _ struct{} `type:"structure"`
  17386. }
  17387. // String returns the string representation
  17388. func (s DeleteDBClusterParameterGroupOutput) String() string {
  17389. return awsutil.Prettify(s)
  17390. }
  17391. // GoString returns the string representation
  17392. func (s DeleteDBClusterParameterGroupOutput) GoString() string {
  17393. return s.String()
  17394. }
  17395. type DeleteDBClusterSnapshotInput struct {
  17396. _ struct{} `type:"structure"`
  17397. // The identifier of the DB cluster snapshot to delete.
  17398. //
  17399. // Constraints: Must be the name of an existing DB cluster snapshot in the available
  17400. // state.
  17401. //
  17402. // DBClusterSnapshotIdentifier is a required field
  17403. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  17404. }
  17405. // String returns the string representation
  17406. func (s DeleteDBClusterSnapshotInput) String() string {
  17407. return awsutil.Prettify(s)
  17408. }
  17409. // GoString returns the string representation
  17410. func (s DeleteDBClusterSnapshotInput) GoString() string {
  17411. return s.String()
  17412. }
  17413. // Validate inspects the fields of the type to determine if they are valid.
  17414. func (s *DeleteDBClusterSnapshotInput) Validate() error {
  17415. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterSnapshotInput"}
  17416. if s.DBClusterSnapshotIdentifier == nil {
  17417. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  17418. }
  17419. if invalidParams.Len() > 0 {
  17420. return invalidParams
  17421. }
  17422. return nil
  17423. }
  17424. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  17425. func (s *DeleteDBClusterSnapshotInput) SetDBClusterSnapshotIdentifier(v string) *DeleteDBClusterSnapshotInput {
  17426. s.DBClusterSnapshotIdentifier = &v
  17427. return s
  17428. }
  17429. type DeleteDBClusterSnapshotOutput struct {
  17430. _ struct{} `type:"structure"`
  17431. // Contains the details for an Amazon RDS DB cluster snapshot
  17432. //
  17433. // This data type is used as a response element in the DescribeDBClusterSnapshots
  17434. // action.
  17435. DBClusterSnapshot *DBClusterSnapshot `type:"structure"`
  17436. }
  17437. // String returns the string representation
  17438. func (s DeleteDBClusterSnapshotOutput) String() string {
  17439. return awsutil.Prettify(s)
  17440. }
  17441. // GoString returns the string representation
  17442. func (s DeleteDBClusterSnapshotOutput) GoString() string {
  17443. return s.String()
  17444. }
  17445. // SetDBClusterSnapshot sets the DBClusterSnapshot field's value.
  17446. func (s *DeleteDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapshot) *DeleteDBClusterSnapshotOutput {
  17447. s.DBClusterSnapshot = v
  17448. return s
  17449. }
  17450. // Parameter input for the DeleteDBInstanceAutomatedBackup operation.
  17451. type DeleteDBInstanceAutomatedBackupInput struct {
  17452. _ struct{} `type:"structure"`
  17453. // The identifier for the source DB instance, which can't be changed and which
  17454. // is unique to an AWS Region.
  17455. //
  17456. // DbiResourceId is a required field
  17457. DbiResourceId *string `type:"string" required:"true"`
  17458. }
  17459. // String returns the string representation
  17460. func (s DeleteDBInstanceAutomatedBackupInput) String() string {
  17461. return awsutil.Prettify(s)
  17462. }
  17463. // GoString returns the string representation
  17464. func (s DeleteDBInstanceAutomatedBackupInput) GoString() string {
  17465. return s.String()
  17466. }
  17467. // Validate inspects the fields of the type to determine if they are valid.
  17468. func (s *DeleteDBInstanceAutomatedBackupInput) Validate() error {
  17469. invalidParams := request.ErrInvalidParams{Context: "DeleteDBInstanceAutomatedBackupInput"}
  17470. if s.DbiResourceId == nil {
  17471. invalidParams.Add(request.NewErrParamRequired("DbiResourceId"))
  17472. }
  17473. if invalidParams.Len() > 0 {
  17474. return invalidParams
  17475. }
  17476. return nil
  17477. }
  17478. // SetDbiResourceId sets the DbiResourceId field's value.
  17479. func (s *DeleteDBInstanceAutomatedBackupInput) SetDbiResourceId(v string) *DeleteDBInstanceAutomatedBackupInput {
  17480. s.DbiResourceId = &v
  17481. return s
  17482. }
  17483. type DeleteDBInstanceAutomatedBackupOutput struct {
  17484. _ struct{} `type:"structure"`
  17485. // An automated backup of a DB instance. It it consists of system backups, transaction
  17486. // logs, and the database instance properties that existed at the time you deleted
  17487. // the source instance.
  17488. DBInstanceAutomatedBackup *DBInstanceAutomatedBackup `type:"structure"`
  17489. }
  17490. // String returns the string representation
  17491. func (s DeleteDBInstanceAutomatedBackupOutput) String() string {
  17492. return awsutil.Prettify(s)
  17493. }
  17494. // GoString returns the string representation
  17495. func (s DeleteDBInstanceAutomatedBackupOutput) GoString() string {
  17496. return s.String()
  17497. }
  17498. // SetDBInstanceAutomatedBackup sets the DBInstanceAutomatedBackup field's value.
  17499. func (s *DeleteDBInstanceAutomatedBackupOutput) SetDBInstanceAutomatedBackup(v *DBInstanceAutomatedBackup) *DeleteDBInstanceAutomatedBackupOutput {
  17500. s.DBInstanceAutomatedBackup = v
  17501. return s
  17502. }
  17503. type DeleteDBInstanceInput struct {
  17504. _ struct{} `type:"structure"`
  17505. // The DB instance identifier for the DB instance to be deleted. This parameter
  17506. // isn't case-sensitive.
  17507. //
  17508. // Constraints:
  17509. //
  17510. // * Must match the name of an existing DB instance.
  17511. //
  17512. // DBInstanceIdentifier is a required field
  17513. DBInstanceIdentifier *string `type:"string" required:"true"`
  17514. // A value that indicates whether to remove automated backups immediately after
  17515. // the DB instance is deleted. This parameter isn't case-sensitive. This parameter
  17516. // defaults to true.
  17517. DeleteAutomatedBackups *bool `type:"boolean"`
  17518. // The DBSnapshotIdentifier of the new DB snapshot created when SkipFinalSnapshot
  17519. // is set to false.
  17520. //
  17521. // Specifying this parameter and also setting the SkipFinalShapshot parameter
  17522. // to true results in an error.
  17523. //
  17524. // Constraints:
  17525. //
  17526. // * Must be 1 to 255 letters or numbers.
  17527. //
  17528. // * First character must be a letter.
  17529. //
  17530. // * Can't end with a hyphen or contain two consecutive hyphens.
  17531. //
  17532. // * Can't be specified when deleting a Read Replica.
  17533. FinalDBSnapshotIdentifier *string `type:"string"`
  17534. // A value that indicates whether a final DB snapshot is created before the
  17535. // DB instance is deleted. If true is specified, no DB snapshot is created.
  17536. // If false is specified, a DB snapshot is created before the DB instance is
  17537. // deleted.
  17538. //
  17539. // When a DB instance is in a failure state and has a status of failed, incompatible-restore,
  17540. // or incompatible-network, you can only delete it when the SkipFinalSnapshot
  17541. // parameter is set to true.
  17542. //
  17543. // Specify true when deleting a Read Replica.
  17544. //
  17545. // The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot
  17546. // is false.
  17547. //
  17548. // Default: false
  17549. SkipFinalSnapshot *bool `type:"boolean"`
  17550. }
  17551. // String returns the string representation
  17552. func (s DeleteDBInstanceInput) String() string {
  17553. return awsutil.Prettify(s)
  17554. }
  17555. // GoString returns the string representation
  17556. func (s DeleteDBInstanceInput) GoString() string {
  17557. return s.String()
  17558. }
  17559. // Validate inspects the fields of the type to determine if they are valid.
  17560. func (s *DeleteDBInstanceInput) Validate() error {
  17561. invalidParams := request.ErrInvalidParams{Context: "DeleteDBInstanceInput"}
  17562. if s.DBInstanceIdentifier == nil {
  17563. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  17564. }
  17565. if invalidParams.Len() > 0 {
  17566. return invalidParams
  17567. }
  17568. return nil
  17569. }
  17570. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  17571. func (s *DeleteDBInstanceInput) SetDBInstanceIdentifier(v string) *DeleteDBInstanceInput {
  17572. s.DBInstanceIdentifier = &v
  17573. return s
  17574. }
  17575. // SetDeleteAutomatedBackups sets the DeleteAutomatedBackups field's value.
  17576. func (s *DeleteDBInstanceInput) SetDeleteAutomatedBackups(v bool) *DeleteDBInstanceInput {
  17577. s.DeleteAutomatedBackups = &v
  17578. return s
  17579. }
  17580. // SetFinalDBSnapshotIdentifier sets the FinalDBSnapshotIdentifier field's value.
  17581. func (s *DeleteDBInstanceInput) SetFinalDBSnapshotIdentifier(v string) *DeleteDBInstanceInput {
  17582. s.FinalDBSnapshotIdentifier = &v
  17583. return s
  17584. }
  17585. // SetSkipFinalSnapshot sets the SkipFinalSnapshot field's value.
  17586. func (s *DeleteDBInstanceInput) SetSkipFinalSnapshot(v bool) *DeleteDBInstanceInput {
  17587. s.SkipFinalSnapshot = &v
  17588. return s
  17589. }
  17590. type DeleteDBInstanceOutput struct {
  17591. _ struct{} `type:"structure"`
  17592. // Contains the details of an Amazon RDS DB instance.
  17593. //
  17594. // This data type is used as a response element in the DescribeDBInstances action.
  17595. DBInstance *DBInstance `type:"structure"`
  17596. }
  17597. // String returns the string representation
  17598. func (s DeleteDBInstanceOutput) String() string {
  17599. return awsutil.Prettify(s)
  17600. }
  17601. // GoString returns the string representation
  17602. func (s DeleteDBInstanceOutput) GoString() string {
  17603. return s.String()
  17604. }
  17605. // SetDBInstance sets the DBInstance field's value.
  17606. func (s *DeleteDBInstanceOutput) SetDBInstance(v *DBInstance) *DeleteDBInstanceOutput {
  17607. s.DBInstance = v
  17608. return s
  17609. }
  17610. type DeleteDBParameterGroupInput struct {
  17611. _ struct{} `type:"structure"`
  17612. // The name of the DB parameter group.
  17613. //
  17614. // Constraints:
  17615. //
  17616. // * Must be the name of an existing DB parameter group
  17617. //
  17618. // * You can't delete a default DB parameter group
  17619. //
  17620. // * Can't be associated with any DB instances
  17621. //
  17622. // DBParameterGroupName is a required field
  17623. DBParameterGroupName *string `type:"string" required:"true"`
  17624. }
  17625. // String returns the string representation
  17626. func (s DeleteDBParameterGroupInput) String() string {
  17627. return awsutil.Prettify(s)
  17628. }
  17629. // GoString returns the string representation
  17630. func (s DeleteDBParameterGroupInput) GoString() string {
  17631. return s.String()
  17632. }
  17633. // Validate inspects the fields of the type to determine if they are valid.
  17634. func (s *DeleteDBParameterGroupInput) Validate() error {
  17635. invalidParams := request.ErrInvalidParams{Context: "DeleteDBParameterGroupInput"}
  17636. if s.DBParameterGroupName == nil {
  17637. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  17638. }
  17639. if invalidParams.Len() > 0 {
  17640. return invalidParams
  17641. }
  17642. return nil
  17643. }
  17644. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  17645. func (s *DeleteDBParameterGroupInput) SetDBParameterGroupName(v string) *DeleteDBParameterGroupInput {
  17646. s.DBParameterGroupName = &v
  17647. return s
  17648. }
  17649. type DeleteDBParameterGroupOutput struct {
  17650. _ struct{} `type:"structure"`
  17651. }
  17652. // String returns the string representation
  17653. func (s DeleteDBParameterGroupOutput) String() string {
  17654. return awsutil.Prettify(s)
  17655. }
  17656. // GoString returns the string representation
  17657. func (s DeleteDBParameterGroupOutput) GoString() string {
  17658. return s.String()
  17659. }
  17660. type DeleteDBSecurityGroupInput struct {
  17661. _ struct{} `type:"structure"`
  17662. // The name of the DB security group to delete.
  17663. //
  17664. // You can't delete the default DB security group.
  17665. //
  17666. // Constraints:
  17667. //
  17668. // * Must be 1 to 255 letters, numbers, or hyphens.
  17669. //
  17670. // * First character must be a letter
  17671. //
  17672. // * Can't end with a hyphen or contain two consecutive hyphens
  17673. //
  17674. // * Must not be "Default"
  17675. //
  17676. // DBSecurityGroupName is a required field
  17677. DBSecurityGroupName *string `type:"string" required:"true"`
  17678. }
  17679. // String returns the string representation
  17680. func (s DeleteDBSecurityGroupInput) String() string {
  17681. return awsutil.Prettify(s)
  17682. }
  17683. // GoString returns the string representation
  17684. func (s DeleteDBSecurityGroupInput) GoString() string {
  17685. return s.String()
  17686. }
  17687. // Validate inspects the fields of the type to determine if they are valid.
  17688. func (s *DeleteDBSecurityGroupInput) Validate() error {
  17689. invalidParams := request.ErrInvalidParams{Context: "DeleteDBSecurityGroupInput"}
  17690. if s.DBSecurityGroupName == nil {
  17691. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName"))
  17692. }
  17693. if invalidParams.Len() > 0 {
  17694. return invalidParams
  17695. }
  17696. return nil
  17697. }
  17698. // SetDBSecurityGroupName sets the DBSecurityGroupName field's value.
  17699. func (s *DeleteDBSecurityGroupInput) SetDBSecurityGroupName(v string) *DeleteDBSecurityGroupInput {
  17700. s.DBSecurityGroupName = &v
  17701. return s
  17702. }
  17703. type DeleteDBSecurityGroupOutput struct {
  17704. _ struct{} `type:"structure"`
  17705. }
  17706. // String returns the string representation
  17707. func (s DeleteDBSecurityGroupOutput) String() string {
  17708. return awsutil.Prettify(s)
  17709. }
  17710. // GoString returns the string representation
  17711. func (s DeleteDBSecurityGroupOutput) GoString() string {
  17712. return s.String()
  17713. }
  17714. type DeleteDBSnapshotInput struct {
  17715. _ struct{} `type:"structure"`
  17716. // The DB snapshot identifier.
  17717. //
  17718. // Constraints: Must be the name of an existing DB snapshot in the available
  17719. // state.
  17720. //
  17721. // DBSnapshotIdentifier is a required field
  17722. DBSnapshotIdentifier *string `type:"string" required:"true"`
  17723. }
  17724. // String returns the string representation
  17725. func (s DeleteDBSnapshotInput) String() string {
  17726. return awsutil.Prettify(s)
  17727. }
  17728. // GoString returns the string representation
  17729. func (s DeleteDBSnapshotInput) GoString() string {
  17730. return s.String()
  17731. }
  17732. // Validate inspects the fields of the type to determine if they are valid.
  17733. func (s *DeleteDBSnapshotInput) Validate() error {
  17734. invalidParams := request.ErrInvalidParams{Context: "DeleteDBSnapshotInput"}
  17735. if s.DBSnapshotIdentifier == nil {
  17736. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  17737. }
  17738. if invalidParams.Len() > 0 {
  17739. return invalidParams
  17740. }
  17741. return nil
  17742. }
  17743. // SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value.
  17744. func (s *DeleteDBSnapshotInput) SetDBSnapshotIdentifier(v string) *DeleteDBSnapshotInput {
  17745. s.DBSnapshotIdentifier = &v
  17746. return s
  17747. }
  17748. type DeleteDBSnapshotOutput struct {
  17749. _ struct{} `type:"structure"`
  17750. // Contains the details of an Amazon RDS DB snapshot.
  17751. //
  17752. // This data type is used as a response element in the DescribeDBSnapshots action.
  17753. DBSnapshot *DBSnapshot `type:"structure"`
  17754. }
  17755. // String returns the string representation
  17756. func (s DeleteDBSnapshotOutput) String() string {
  17757. return awsutil.Prettify(s)
  17758. }
  17759. // GoString returns the string representation
  17760. func (s DeleteDBSnapshotOutput) GoString() string {
  17761. return s.String()
  17762. }
  17763. // SetDBSnapshot sets the DBSnapshot field's value.
  17764. func (s *DeleteDBSnapshotOutput) SetDBSnapshot(v *DBSnapshot) *DeleteDBSnapshotOutput {
  17765. s.DBSnapshot = v
  17766. return s
  17767. }
  17768. type DeleteDBSubnetGroupInput struct {
  17769. _ struct{} `type:"structure"`
  17770. // The name of the database subnet group to delete.
  17771. //
  17772. // You can't delete the default subnet group.
  17773. //
  17774. // Constraints:
  17775. //
  17776. // Constraints: Must match the name of an existing DBSubnetGroup. Must not be
  17777. // default.
  17778. //
  17779. // Example: mySubnetgroup
  17780. //
  17781. // DBSubnetGroupName is a required field
  17782. DBSubnetGroupName *string `type:"string" required:"true"`
  17783. }
  17784. // String returns the string representation
  17785. func (s DeleteDBSubnetGroupInput) String() string {
  17786. return awsutil.Prettify(s)
  17787. }
  17788. // GoString returns the string representation
  17789. func (s DeleteDBSubnetGroupInput) GoString() string {
  17790. return s.String()
  17791. }
  17792. // Validate inspects the fields of the type to determine if they are valid.
  17793. func (s *DeleteDBSubnetGroupInput) Validate() error {
  17794. invalidParams := request.ErrInvalidParams{Context: "DeleteDBSubnetGroupInput"}
  17795. if s.DBSubnetGroupName == nil {
  17796. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName"))
  17797. }
  17798. if invalidParams.Len() > 0 {
  17799. return invalidParams
  17800. }
  17801. return nil
  17802. }
  17803. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  17804. func (s *DeleteDBSubnetGroupInput) SetDBSubnetGroupName(v string) *DeleteDBSubnetGroupInput {
  17805. s.DBSubnetGroupName = &v
  17806. return s
  17807. }
  17808. type DeleteDBSubnetGroupOutput struct {
  17809. _ struct{} `type:"structure"`
  17810. }
  17811. // String returns the string representation
  17812. func (s DeleteDBSubnetGroupOutput) String() string {
  17813. return awsutil.Prettify(s)
  17814. }
  17815. // GoString returns the string representation
  17816. func (s DeleteDBSubnetGroupOutput) GoString() string {
  17817. return s.String()
  17818. }
  17819. type DeleteEventSubscriptionInput struct {
  17820. _ struct{} `type:"structure"`
  17821. // The name of the RDS event notification subscription you want to delete.
  17822. //
  17823. // SubscriptionName is a required field
  17824. SubscriptionName *string `type:"string" required:"true"`
  17825. }
  17826. // String returns the string representation
  17827. func (s DeleteEventSubscriptionInput) String() string {
  17828. return awsutil.Prettify(s)
  17829. }
  17830. // GoString returns the string representation
  17831. func (s DeleteEventSubscriptionInput) GoString() string {
  17832. return s.String()
  17833. }
  17834. // Validate inspects the fields of the type to determine if they are valid.
  17835. func (s *DeleteEventSubscriptionInput) Validate() error {
  17836. invalidParams := request.ErrInvalidParams{Context: "DeleteEventSubscriptionInput"}
  17837. if s.SubscriptionName == nil {
  17838. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  17839. }
  17840. if invalidParams.Len() > 0 {
  17841. return invalidParams
  17842. }
  17843. return nil
  17844. }
  17845. // SetSubscriptionName sets the SubscriptionName field's value.
  17846. func (s *DeleteEventSubscriptionInput) SetSubscriptionName(v string) *DeleteEventSubscriptionInput {
  17847. s.SubscriptionName = &v
  17848. return s
  17849. }
  17850. type DeleteEventSubscriptionOutput struct {
  17851. _ struct{} `type:"structure"`
  17852. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  17853. // action.
  17854. EventSubscription *EventSubscription `type:"structure"`
  17855. }
  17856. // String returns the string representation
  17857. func (s DeleteEventSubscriptionOutput) String() string {
  17858. return awsutil.Prettify(s)
  17859. }
  17860. // GoString returns the string representation
  17861. func (s DeleteEventSubscriptionOutput) GoString() string {
  17862. return s.String()
  17863. }
  17864. // SetEventSubscription sets the EventSubscription field's value.
  17865. func (s *DeleteEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *DeleteEventSubscriptionOutput {
  17866. s.EventSubscription = v
  17867. return s
  17868. }
  17869. type DeleteGlobalClusterInput struct {
  17870. _ struct{} `type:"structure"`
  17871. // The cluster identifier of the global database cluster being deleted.
  17872. //
  17873. // GlobalClusterIdentifier is a required field
  17874. GlobalClusterIdentifier *string `type:"string" required:"true"`
  17875. }
  17876. // String returns the string representation
  17877. func (s DeleteGlobalClusterInput) String() string {
  17878. return awsutil.Prettify(s)
  17879. }
  17880. // GoString returns the string representation
  17881. func (s DeleteGlobalClusterInput) GoString() string {
  17882. return s.String()
  17883. }
  17884. // Validate inspects the fields of the type to determine if they are valid.
  17885. func (s *DeleteGlobalClusterInput) Validate() error {
  17886. invalidParams := request.ErrInvalidParams{Context: "DeleteGlobalClusterInput"}
  17887. if s.GlobalClusterIdentifier == nil {
  17888. invalidParams.Add(request.NewErrParamRequired("GlobalClusterIdentifier"))
  17889. }
  17890. if invalidParams.Len() > 0 {
  17891. return invalidParams
  17892. }
  17893. return nil
  17894. }
  17895. // SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value.
  17896. func (s *DeleteGlobalClusterInput) SetGlobalClusterIdentifier(v string) *DeleteGlobalClusterInput {
  17897. s.GlobalClusterIdentifier = &v
  17898. return s
  17899. }
  17900. type DeleteGlobalClusterOutput struct {
  17901. _ struct{} `type:"structure"`
  17902. // A data type representing an Aurora global database.
  17903. GlobalCluster *GlobalCluster `type:"structure"`
  17904. }
  17905. // String returns the string representation
  17906. func (s DeleteGlobalClusterOutput) String() string {
  17907. return awsutil.Prettify(s)
  17908. }
  17909. // GoString returns the string representation
  17910. func (s DeleteGlobalClusterOutput) GoString() string {
  17911. return s.String()
  17912. }
  17913. // SetGlobalCluster sets the GlobalCluster field's value.
  17914. func (s *DeleteGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *DeleteGlobalClusterOutput {
  17915. s.GlobalCluster = v
  17916. return s
  17917. }
  17918. type DeleteOptionGroupInput struct {
  17919. _ struct{} `type:"structure"`
  17920. // The name of the option group to be deleted.
  17921. //
  17922. // You can't delete default option groups.
  17923. //
  17924. // OptionGroupName is a required field
  17925. OptionGroupName *string `type:"string" required:"true"`
  17926. }
  17927. // String returns the string representation
  17928. func (s DeleteOptionGroupInput) String() string {
  17929. return awsutil.Prettify(s)
  17930. }
  17931. // GoString returns the string representation
  17932. func (s DeleteOptionGroupInput) GoString() string {
  17933. return s.String()
  17934. }
  17935. // Validate inspects the fields of the type to determine if they are valid.
  17936. func (s *DeleteOptionGroupInput) Validate() error {
  17937. invalidParams := request.ErrInvalidParams{Context: "DeleteOptionGroupInput"}
  17938. if s.OptionGroupName == nil {
  17939. invalidParams.Add(request.NewErrParamRequired("OptionGroupName"))
  17940. }
  17941. if invalidParams.Len() > 0 {
  17942. return invalidParams
  17943. }
  17944. return nil
  17945. }
  17946. // SetOptionGroupName sets the OptionGroupName field's value.
  17947. func (s *DeleteOptionGroupInput) SetOptionGroupName(v string) *DeleteOptionGroupInput {
  17948. s.OptionGroupName = &v
  17949. return s
  17950. }
  17951. type DeleteOptionGroupOutput struct {
  17952. _ struct{} `type:"structure"`
  17953. }
  17954. // String returns the string representation
  17955. func (s DeleteOptionGroupOutput) String() string {
  17956. return awsutil.Prettify(s)
  17957. }
  17958. // GoString returns the string representation
  17959. func (s DeleteOptionGroupOutput) GoString() string {
  17960. return s.String()
  17961. }
  17962. type DescribeAccountAttributesInput struct {
  17963. _ struct{} `type:"structure"`
  17964. }
  17965. // String returns the string representation
  17966. func (s DescribeAccountAttributesInput) String() string {
  17967. return awsutil.Prettify(s)
  17968. }
  17969. // GoString returns the string representation
  17970. func (s DescribeAccountAttributesInput) GoString() string {
  17971. return s.String()
  17972. }
  17973. // Data returned by the DescribeAccountAttributes action.
  17974. type DescribeAccountAttributesOutput struct {
  17975. _ struct{} `type:"structure"`
  17976. // A list of AccountQuota objects. Within this list, each quota has a name,
  17977. // a count of usage toward the quota maximum, and a maximum value for the quota.
  17978. AccountQuotas []*AccountQuota `locationNameList:"AccountQuota" type:"list"`
  17979. }
  17980. // String returns the string representation
  17981. func (s DescribeAccountAttributesOutput) String() string {
  17982. return awsutil.Prettify(s)
  17983. }
  17984. // GoString returns the string representation
  17985. func (s DescribeAccountAttributesOutput) GoString() string {
  17986. return s.String()
  17987. }
  17988. // SetAccountQuotas sets the AccountQuotas field's value.
  17989. func (s *DescribeAccountAttributesOutput) SetAccountQuotas(v []*AccountQuota) *DescribeAccountAttributesOutput {
  17990. s.AccountQuotas = v
  17991. return s
  17992. }
  17993. type DescribeCertificatesInput struct {
  17994. _ struct{} `type:"structure"`
  17995. // The user-supplied certificate identifier. If this parameter is specified,
  17996. // information for only the identified certificate is returned. This parameter
  17997. // isn't case-sensitive.
  17998. //
  17999. // Constraints:
  18000. //
  18001. // * Must match an existing CertificateIdentifier.
  18002. CertificateIdentifier *string `type:"string"`
  18003. // This parameter is not currently supported.
  18004. Filters []*Filter `locationNameList:"Filter" type:"list"`
  18005. // An optional pagination token provided by a previous DescribeCertificates
  18006. // request. If this parameter is specified, the response includes only records
  18007. // beyond the marker, up to the value specified by MaxRecords.
  18008. Marker *string `type:"string"`
  18009. // The maximum number of records to include in the response. If more records
  18010. // exist than the specified MaxRecords value, a pagination token called a marker
  18011. // is included in the response so that the remaining results can be retrieved.
  18012. //
  18013. // Default: 100
  18014. //
  18015. // Constraints: Minimum 20, maximum 100.
  18016. MaxRecords *int64 `type:"integer"`
  18017. }
  18018. // String returns the string representation
  18019. func (s DescribeCertificatesInput) String() string {
  18020. return awsutil.Prettify(s)
  18021. }
  18022. // GoString returns the string representation
  18023. func (s DescribeCertificatesInput) GoString() string {
  18024. return s.String()
  18025. }
  18026. // Validate inspects the fields of the type to determine if they are valid.
  18027. func (s *DescribeCertificatesInput) Validate() error {
  18028. invalidParams := request.ErrInvalidParams{Context: "DescribeCertificatesInput"}
  18029. if s.Filters != nil {
  18030. for i, v := range s.Filters {
  18031. if v == nil {
  18032. continue
  18033. }
  18034. if err := v.Validate(); err != nil {
  18035. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  18036. }
  18037. }
  18038. }
  18039. if invalidParams.Len() > 0 {
  18040. return invalidParams
  18041. }
  18042. return nil
  18043. }
  18044. // SetCertificateIdentifier sets the CertificateIdentifier field's value.
  18045. func (s *DescribeCertificatesInput) SetCertificateIdentifier(v string) *DescribeCertificatesInput {
  18046. s.CertificateIdentifier = &v
  18047. return s
  18048. }
  18049. // SetFilters sets the Filters field's value.
  18050. func (s *DescribeCertificatesInput) SetFilters(v []*Filter) *DescribeCertificatesInput {
  18051. s.Filters = v
  18052. return s
  18053. }
  18054. // SetMarker sets the Marker field's value.
  18055. func (s *DescribeCertificatesInput) SetMarker(v string) *DescribeCertificatesInput {
  18056. s.Marker = &v
  18057. return s
  18058. }
  18059. // SetMaxRecords sets the MaxRecords field's value.
  18060. func (s *DescribeCertificatesInput) SetMaxRecords(v int64) *DescribeCertificatesInput {
  18061. s.MaxRecords = &v
  18062. return s
  18063. }
  18064. // Data returned by the DescribeCertificates action.
  18065. type DescribeCertificatesOutput struct {
  18066. _ struct{} `type:"structure"`
  18067. // The list of Certificate objects for the AWS account.
  18068. Certificates []*Certificate `locationNameList:"Certificate" type:"list"`
  18069. // An optional pagination token provided by a previous DescribeCertificates
  18070. // request. If this parameter is specified, the response includes only records
  18071. // beyond the marker, up to the value specified by MaxRecords .
  18072. Marker *string `type:"string"`
  18073. }
  18074. // String returns the string representation
  18075. func (s DescribeCertificatesOutput) String() string {
  18076. return awsutil.Prettify(s)
  18077. }
  18078. // GoString returns the string representation
  18079. func (s DescribeCertificatesOutput) GoString() string {
  18080. return s.String()
  18081. }
  18082. // SetCertificates sets the Certificates field's value.
  18083. func (s *DescribeCertificatesOutput) SetCertificates(v []*Certificate) *DescribeCertificatesOutput {
  18084. s.Certificates = v
  18085. return s
  18086. }
  18087. // SetMarker sets the Marker field's value.
  18088. func (s *DescribeCertificatesOutput) SetMarker(v string) *DescribeCertificatesOutput {
  18089. s.Marker = &v
  18090. return s
  18091. }
  18092. type DescribeDBClusterBacktracksInput struct {
  18093. _ struct{} `type:"structure"`
  18094. // If specified, this value is the backtrack identifier of the backtrack to
  18095. // be described.
  18096. //
  18097. // Constraints:
  18098. //
  18099. // * Must contain a valid universally unique identifier (UUID). For more
  18100. // information about UUIDs, see A Universally Unique Identifier (UUID) URN
  18101. // Namespace (http://www.ietf.org/rfc/rfc4122.txt).
  18102. //
  18103. // Example: 123e4567-e89b-12d3-a456-426655440000
  18104. BacktrackIdentifier *string `type:"string"`
  18105. // The DB cluster identifier of the DB cluster to be described. This parameter
  18106. // is stored as a lowercase string.
  18107. //
  18108. // Constraints:
  18109. //
  18110. // * Must contain from 1 to 63 alphanumeric characters or hyphens.
  18111. //
  18112. // * First character must be a letter.
  18113. //
  18114. // * Can't end with a hyphen or contain two consecutive hyphens.
  18115. //
  18116. // Example: my-cluster1
  18117. //
  18118. // DBClusterIdentifier is a required field
  18119. DBClusterIdentifier *string `type:"string" required:"true"`
  18120. // A filter that specifies one or more DB clusters to describe. Supported filters
  18121. // include the following:
  18122. //
  18123. // * db-cluster-backtrack-id - Accepts backtrack identifiers. The results
  18124. // list includes information about only the backtracks identified by these
  18125. // identifiers.
  18126. //
  18127. // * db-cluster-backtrack-status - Accepts any of the following backtrack
  18128. // status values:
  18129. //
  18130. // applying
  18131. //
  18132. // completed
  18133. //
  18134. // failed
  18135. //
  18136. // pending
  18137. //
  18138. // The results list includes information about only the backtracks identified
  18139. // by these values. For more information about backtrack status values, see
  18140. // DBClusterBacktrack.
  18141. Filters []*Filter `locationNameList:"Filter" type:"list"`
  18142. // An optional pagination token provided by a previous DescribeDBClusterBacktracks
  18143. // request. If this parameter is specified, the response includes only records
  18144. // beyond the marker, up to the value specified by MaxRecords.
  18145. Marker *string `type:"string"`
  18146. // The maximum number of records to include in the response. If more records
  18147. // exist than the specified MaxRecords value, a pagination token called a marker
  18148. // is included in the response so that the remaining results can be retrieved.
  18149. //
  18150. // Default: 100
  18151. //
  18152. // Constraints: Minimum 20, maximum 100.
  18153. MaxRecords *int64 `type:"integer"`
  18154. }
  18155. // String returns the string representation
  18156. func (s DescribeDBClusterBacktracksInput) String() string {
  18157. return awsutil.Prettify(s)
  18158. }
  18159. // GoString returns the string representation
  18160. func (s DescribeDBClusterBacktracksInput) GoString() string {
  18161. return s.String()
  18162. }
  18163. // Validate inspects the fields of the type to determine if they are valid.
  18164. func (s *DescribeDBClusterBacktracksInput) Validate() error {
  18165. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterBacktracksInput"}
  18166. if s.DBClusterIdentifier == nil {
  18167. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  18168. }
  18169. if s.Filters != nil {
  18170. for i, v := range s.Filters {
  18171. if v == nil {
  18172. continue
  18173. }
  18174. if err := v.Validate(); err != nil {
  18175. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  18176. }
  18177. }
  18178. }
  18179. if invalidParams.Len() > 0 {
  18180. return invalidParams
  18181. }
  18182. return nil
  18183. }
  18184. // SetBacktrackIdentifier sets the BacktrackIdentifier field's value.
  18185. func (s *DescribeDBClusterBacktracksInput) SetBacktrackIdentifier(v string) *DescribeDBClusterBacktracksInput {
  18186. s.BacktrackIdentifier = &v
  18187. return s
  18188. }
  18189. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  18190. func (s *DescribeDBClusterBacktracksInput) SetDBClusterIdentifier(v string) *DescribeDBClusterBacktracksInput {
  18191. s.DBClusterIdentifier = &v
  18192. return s
  18193. }
  18194. // SetFilters sets the Filters field's value.
  18195. func (s *DescribeDBClusterBacktracksInput) SetFilters(v []*Filter) *DescribeDBClusterBacktracksInput {
  18196. s.Filters = v
  18197. return s
  18198. }
  18199. // SetMarker sets the Marker field's value.
  18200. func (s *DescribeDBClusterBacktracksInput) SetMarker(v string) *DescribeDBClusterBacktracksInput {
  18201. s.Marker = &v
  18202. return s
  18203. }
  18204. // SetMaxRecords sets the MaxRecords field's value.
  18205. func (s *DescribeDBClusterBacktracksInput) SetMaxRecords(v int64) *DescribeDBClusterBacktracksInput {
  18206. s.MaxRecords = &v
  18207. return s
  18208. }
  18209. // Contains the result of a successful invocation of the DescribeDBClusterBacktracks
  18210. // action.
  18211. type DescribeDBClusterBacktracksOutput struct {
  18212. _ struct{} `type:"structure"`
  18213. // Contains a list of backtracks for the user.
  18214. DBClusterBacktracks []*BacktrackDBClusterOutput `locationNameList:"DBClusterBacktrack" type:"list"`
  18215. // A pagination token that can be used in a subsequent DescribeDBClusterBacktracks
  18216. // request.
  18217. Marker *string `type:"string"`
  18218. }
  18219. // String returns the string representation
  18220. func (s DescribeDBClusterBacktracksOutput) String() string {
  18221. return awsutil.Prettify(s)
  18222. }
  18223. // GoString returns the string representation
  18224. func (s DescribeDBClusterBacktracksOutput) GoString() string {
  18225. return s.String()
  18226. }
  18227. // SetDBClusterBacktracks sets the DBClusterBacktracks field's value.
  18228. func (s *DescribeDBClusterBacktracksOutput) SetDBClusterBacktracks(v []*BacktrackDBClusterOutput) *DescribeDBClusterBacktracksOutput {
  18229. s.DBClusterBacktracks = v
  18230. return s
  18231. }
  18232. // SetMarker sets the Marker field's value.
  18233. func (s *DescribeDBClusterBacktracksOutput) SetMarker(v string) *DescribeDBClusterBacktracksOutput {
  18234. s.Marker = &v
  18235. return s
  18236. }
  18237. type DescribeDBClusterEndpointsInput struct {
  18238. _ struct{} `type:"structure"`
  18239. // The identifier of the endpoint to describe. This parameter is stored as a
  18240. // lowercase string.
  18241. DBClusterEndpointIdentifier *string `type:"string"`
  18242. // The DB cluster identifier of the DB cluster associated with the endpoint.
  18243. // This parameter is stored as a lowercase string.
  18244. DBClusterIdentifier *string `type:"string"`
  18245. // A set of name-value pairs that define which endpoints to include in the output.
  18246. // The filters are specified as name-value pairs, in the format Name=endpoint_type,Values=endpoint_type1,endpoint_type2,....
  18247. // Name can be one of: db-cluster-endpoint-type, db-cluster-endpoint-custom-type,
  18248. // db-cluster-endpoint-id, db-cluster-endpoint-status. Values for the db-cluster-endpoint-type
  18249. // filter can be one or more of: reader, writer, custom. Values for the db-cluster-endpoint-custom-type
  18250. // filter can be one or more of: reader, any. Values for the db-cluster-endpoint-status
  18251. // filter can be one or more of: available, creating, deleting, modifying.
  18252. Filters []*Filter `locationNameList:"Filter" type:"list"`
  18253. // An optional pagination token provided by a previous DescribeDBClusterEndpoints
  18254. // request. If this parameter is specified, the response includes only records
  18255. // beyond the marker, up to the value specified by MaxRecords.
  18256. Marker *string `type:"string"`
  18257. // The maximum number of records to include in the response. If more records
  18258. // exist than the specified MaxRecords value, a pagination token called a marker
  18259. // is included in the response so that the remaining results can be retrieved.
  18260. //
  18261. // Default: 100
  18262. //
  18263. // Constraints: Minimum 20, maximum 100.
  18264. MaxRecords *int64 `type:"integer"`
  18265. }
  18266. // String returns the string representation
  18267. func (s DescribeDBClusterEndpointsInput) String() string {
  18268. return awsutil.Prettify(s)
  18269. }
  18270. // GoString returns the string representation
  18271. func (s DescribeDBClusterEndpointsInput) GoString() string {
  18272. return s.String()
  18273. }
  18274. // Validate inspects the fields of the type to determine if they are valid.
  18275. func (s *DescribeDBClusterEndpointsInput) Validate() error {
  18276. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterEndpointsInput"}
  18277. if s.Filters != nil {
  18278. for i, v := range s.Filters {
  18279. if v == nil {
  18280. continue
  18281. }
  18282. if err := v.Validate(); err != nil {
  18283. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  18284. }
  18285. }
  18286. }
  18287. if invalidParams.Len() > 0 {
  18288. return invalidParams
  18289. }
  18290. return nil
  18291. }
  18292. // SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value.
  18293. func (s *DescribeDBClusterEndpointsInput) SetDBClusterEndpointIdentifier(v string) *DescribeDBClusterEndpointsInput {
  18294. s.DBClusterEndpointIdentifier = &v
  18295. return s
  18296. }
  18297. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  18298. func (s *DescribeDBClusterEndpointsInput) SetDBClusterIdentifier(v string) *DescribeDBClusterEndpointsInput {
  18299. s.DBClusterIdentifier = &v
  18300. return s
  18301. }
  18302. // SetFilters sets the Filters field's value.
  18303. func (s *DescribeDBClusterEndpointsInput) SetFilters(v []*Filter) *DescribeDBClusterEndpointsInput {
  18304. s.Filters = v
  18305. return s
  18306. }
  18307. // SetMarker sets the Marker field's value.
  18308. func (s *DescribeDBClusterEndpointsInput) SetMarker(v string) *DescribeDBClusterEndpointsInput {
  18309. s.Marker = &v
  18310. return s
  18311. }
  18312. // SetMaxRecords sets the MaxRecords field's value.
  18313. func (s *DescribeDBClusterEndpointsInput) SetMaxRecords(v int64) *DescribeDBClusterEndpointsInput {
  18314. s.MaxRecords = &v
  18315. return s
  18316. }
  18317. type DescribeDBClusterEndpointsOutput struct {
  18318. _ struct{} `type:"structure"`
  18319. // Contains the details of the endpoints associated with the cluster and matching
  18320. // any filter conditions.
  18321. DBClusterEndpoints []*DBClusterEndpoint `locationNameList:"DBClusterEndpointList" type:"list"`
  18322. // An optional pagination token provided by a previous DescribeDBClusterEndpoints
  18323. // request. If this parameter is specified, the response includes only records
  18324. // beyond the marker, up to the value specified by MaxRecords.
  18325. Marker *string `type:"string"`
  18326. }
  18327. // String returns the string representation
  18328. func (s DescribeDBClusterEndpointsOutput) String() string {
  18329. return awsutil.Prettify(s)
  18330. }
  18331. // GoString returns the string representation
  18332. func (s DescribeDBClusterEndpointsOutput) GoString() string {
  18333. return s.String()
  18334. }
  18335. // SetDBClusterEndpoints sets the DBClusterEndpoints field's value.
  18336. func (s *DescribeDBClusterEndpointsOutput) SetDBClusterEndpoints(v []*DBClusterEndpoint) *DescribeDBClusterEndpointsOutput {
  18337. s.DBClusterEndpoints = v
  18338. return s
  18339. }
  18340. // SetMarker sets the Marker field's value.
  18341. func (s *DescribeDBClusterEndpointsOutput) SetMarker(v string) *DescribeDBClusterEndpointsOutput {
  18342. s.Marker = &v
  18343. return s
  18344. }
  18345. type DescribeDBClusterParameterGroupsInput struct {
  18346. _ struct{} `type:"structure"`
  18347. // The name of a specific DB cluster parameter group to return details for.
  18348. //
  18349. // Constraints:
  18350. //
  18351. // * If supplied, must match the name of an existing DBClusterParameterGroup.
  18352. DBClusterParameterGroupName *string `type:"string"`
  18353. // This parameter is not currently supported.
  18354. Filters []*Filter `locationNameList:"Filter" type:"list"`
  18355. // An optional pagination token provided by a previous DescribeDBClusterParameterGroups
  18356. // request. If this parameter is specified, the response includes only records
  18357. // beyond the marker, up to the value specified by MaxRecords.
  18358. Marker *string `type:"string"`
  18359. // The maximum number of records to include in the response. If more records
  18360. // exist than the specified MaxRecords value, a pagination token called a marker
  18361. // is included in the response so that the remaining results can be retrieved.
  18362. //
  18363. // Default: 100
  18364. //
  18365. // Constraints: Minimum 20, maximum 100.
  18366. MaxRecords *int64 `type:"integer"`
  18367. }
  18368. // String returns the string representation
  18369. func (s DescribeDBClusterParameterGroupsInput) String() string {
  18370. return awsutil.Prettify(s)
  18371. }
  18372. // GoString returns the string representation
  18373. func (s DescribeDBClusterParameterGroupsInput) GoString() string {
  18374. return s.String()
  18375. }
  18376. // Validate inspects the fields of the type to determine if they are valid.
  18377. func (s *DescribeDBClusterParameterGroupsInput) Validate() error {
  18378. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterParameterGroupsInput"}
  18379. if s.Filters != nil {
  18380. for i, v := range s.Filters {
  18381. if v == nil {
  18382. continue
  18383. }
  18384. if err := v.Validate(); err != nil {
  18385. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  18386. }
  18387. }
  18388. }
  18389. if invalidParams.Len() > 0 {
  18390. return invalidParams
  18391. }
  18392. return nil
  18393. }
  18394. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  18395. func (s *DescribeDBClusterParameterGroupsInput) SetDBClusterParameterGroupName(v string) *DescribeDBClusterParameterGroupsInput {
  18396. s.DBClusterParameterGroupName = &v
  18397. return s
  18398. }
  18399. // SetFilters sets the Filters field's value.
  18400. func (s *DescribeDBClusterParameterGroupsInput) SetFilters(v []*Filter) *DescribeDBClusterParameterGroupsInput {
  18401. s.Filters = v
  18402. return s
  18403. }
  18404. // SetMarker sets the Marker field's value.
  18405. func (s *DescribeDBClusterParameterGroupsInput) SetMarker(v string) *DescribeDBClusterParameterGroupsInput {
  18406. s.Marker = &v
  18407. return s
  18408. }
  18409. // SetMaxRecords sets the MaxRecords field's value.
  18410. func (s *DescribeDBClusterParameterGroupsInput) SetMaxRecords(v int64) *DescribeDBClusterParameterGroupsInput {
  18411. s.MaxRecords = &v
  18412. return s
  18413. }
  18414. type DescribeDBClusterParameterGroupsOutput struct {
  18415. _ struct{} `type:"structure"`
  18416. // A list of DB cluster parameter groups.
  18417. DBClusterParameterGroups []*DBClusterParameterGroup `locationNameList:"DBClusterParameterGroup" type:"list"`
  18418. // An optional pagination token provided by a previous DescribeDBClusterParameterGroups
  18419. // request. If this parameter is specified, the response includes only records
  18420. // beyond the marker, up to the value specified by MaxRecords.
  18421. Marker *string `type:"string"`
  18422. }
  18423. // String returns the string representation
  18424. func (s DescribeDBClusterParameterGroupsOutput) String() string {
  18425. return awsutil.Prettify(s)
  18426. }
  18427. // GoString returns the string representation
  18428. func (s DescribeDBClusterParameterGroupsOutput) GoString() string {
  18429. return s.String()
  18430. }
  18431. // SetDBClusterParameterGroups sets the DBClusterParameterGroups field's value.
  18432. func (s *DescribeDBClusterParameterGroupsOutput) SetDBClusterParameterGroups(v []*DBClusterParameterGroup) *DescribeDBClusterParameterGroupsOutput {
  18433. s.DBClusterParameterGroups = v
  18434. return s
  18435. }
  18436. // SetMarker sets the Marker field's value.
  18437. func (s *DescribeDBClusterParameterGroupsOutput) SetMarker(v string) *DescribeDBClusterParameterGroupsOutput {
  18438. s.Marker = &v
  18439. return s
  18440. }
  18441. type DescribeDBClusterParametersInput struct {
  18442. _ struct{} `type:"structure"`
  18443. // The name of a specific DB cluster parameter group to return parameter details
  18444. // for.
  18445. //
  18446. // Constraints:
  18447. //
  18448. // * If supplied, must match the name of an existing DBClusterParameterGroup.
  18449. //
  18450. // DBClusterParameterGroupName is a required field
  18451. DBClusterParameterGroupName *string `type:"string" required:"true"`
  18452. // This parameter is not currently supported.
  18453. Filters []*Filter `locationNameList:"Filter" type:"list"`
  18454. // An optional pagination token provided by a previous DescribeDBClusterParameters
  18455. // request. If this parameter is specified, the response includes only records
  18456. // beyond the marker, up to the value specified by MaxRecords.
  18457. Marker *string `type:"string"`
  18458. // The maximum number of records to include in the response. If more records
  18459. // exist than the specified MaxRecords value, a pagination token called a marker
  18460. // is included in the response so that the remaining results can be retrieved.
  18461. //
  18462. // Default: 100
  18463. //
  18464. // Constraints: Minimum 20, maximum 100.
  18465. MaxRecords *int64 `type:"integer"`
  18466. // A value that indicates to return only parameters for a specific source. Parameter
  18467. // sources can be engine, service, or customer.
  18468. Source *string `type:"string"`
  18469. }
  18470. // String returns the string representation
  18471. func (s DescribeDBClusterParametersInput) String() string {
  18472. return awsutil.Prettify(s)
  18473. }
  18474. // GoString returns the string representation
  18475. func (s DescribeDBClusterParametersInput) GoString() string {
  18476. return s.String()
  18477. }
  18478. // Validate inspects the fields of the type to determine if they are valid.
  18479. func (s *DescribeDBClusterParametersInput) Validate() error {
  18480. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterParametersInput"}
  18481. if s.DBClusterParameterGroupName == nil {
  18482. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  18483. }
  18484. if s.Filters != nil {
  18485. for i, v := range s.Filters {
  18486. if v == nil {
  18487. continue
  18488. }
  18489. if err := v.Validate(); err != nil {
  18490. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  18491. }
  18492. }
  18493. }
  18494. if invalidParams.Len() > 0 {
  18495. return invalidParams
  18496. }
  18497. return nil
  18498. }
  18499. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  18500. func (s *DescribeDBClusterParametersInput) SetDBClusterParameterGroupName(v string) *DescribeDBClusterParametersInput {
  18501. s.DBClusterParameterGroupName = &v
  18502. return s
  18503. }
  18504. // SetFilters sets the Filters field's value.
  18505. func (s *DescribeDBClusterParametersInput) SetFilters(v []*Filter) *DescribeDBClusterParametersInput {
  18506. s.Filters = v
  18507. return s
  18508. }
  18509. // SetMarker sets the Marker field's value.
  18510. func (s *DescribeDBClusterParametersInput) SetMarker(v string) *DescribeDBClusterParametersInput {
  18511. s.Marker = &v
  18512. return s
  18513. }
  18514. // SetMaxRecords sets the MaxRecords field's value.
  18515. func (s *DescribeDBClusterParametersInput) SetMaxRecords(v int64) *DescribeDBClusterParametersInput {
  18516. s.MaxRecords = &v
  18517. return s
  18518. }
  18519. // SetSource sets the Source field's value.
  18520. func (s *DescribeDBClusterParametersInput) SetSource(v string) *DescribeDBClusterParametersInput {
  18521. s.Source = &v
  18522. return s
  18523. }
  18524. // Provides details about a DB cluster parameter group including the parameters
  18525. // in the DB cluster parameter group.
  18526. type DescribeDBClusterParametersOutput struct {
  18527. _ struct{} `type:"structure"`
  18528. // An optional pagination token provided by a previous DescribeDBClusterParameters
  18529. // request. If this parameter is specified, the response includes only records
  18530. // beyond the marker, up to the value specified by MaxRecords .
  18531. Marker *string `type:"string"`
  18532. // Provides a list of parameters for the DB cluster parameter group.
  18533. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  18534. }
  18535. // String returns the string representation
  18536. func (s DescribeDBClusterParametersOutput) String() string {
  18537. return awsutil.Prettify(s)
  18538. }
  18539. // GoString returns the string representation
  18540. func (s DescribeDBClusterParametersOutput) GoString() string {
  18541. return s.String()
  18542. }
  18543. // SetMarker sets the Marker field's value.
  18544. func (s *DescribeDBClusterParametersOutput) SetMarker(v string) *DescribeDBClusterParametersOutput {
  18545. s.Marker = &v
  18546. return s
  18547. }
  18548. // SetParameters sets the Parameters field's value.
  18549. func (s *DescribeDBClusterParametersOutput) SetParameters(v []*Parameter) *DescribeDBClusterParametersOutput {
  18550. s.Parameters = v
  18551. return s
  18552. }
  18553. type DescribeDBClusterSnapshotAttributesInput struct {
  18554. _ struct{} `type:"structure"`
  18555. // The identifier for the DB cluster snapshot to describe the attributes for.
  18556. //
  18557. // DBClusterSnapshotIdentifier is a required field
  18558. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  18559. }
  18560. // String returns the string representation
  18561. func (s DescribeDBClusterSnapshotAttributesInput) String() string {
  18562. return awsutil.Prettify(s)
  18563. }
  18564. // GoString returns the string representation
  18565. func (s DescribeDBClusterSnapshotAttributesInput) GoString() string {
  18566. return s.String()
  18567. }
  18568. // Validate inspects the fields of the type to determine if they are valid.
  18569. func (s *DescribeDBClusterSnapshotAttributesInput) Validate() error {
  18570. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterSnapshotAttributesInput"}
  18571. if s.DBClusterSnapshotIdentifier == nil {
  18572. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  18573. }
  18574. if invalidParams.Len() > 0 {
  18575. return invalidParams
  18576. }
  18577. return nil
  18578. }
  18579. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  18580. func (s *DescribeDBClusterSnapshotAttributesInput) SetDBClusterSnapshotIdentifier(v string) *DescribeDBClusterSnapshotAttributesInput {
  18581. s.DBClusterSnapshotIdentifier = &v
  18582. return s
  18583. }
  18584. type DescribeDBClusterSnapshotAttributesOutput struct {
  18585. _ struct{} `type:"structure"`
  18586. // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes
  18587. // API action.
  18588. //
  18589. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  18590. // to copy or restore a manual DB cluster snapshot. For more information, see
  18591. // the ModifyDBClusterSnapshotAttribute API action.
  18592. DBClusterSnapshotAttributesResult *DBClusterSnapshotAttributesResult `type:"structure"`
  18593. }
  18594. // String returns the string representation
  18595. func (s DescribeDBClusterSnapshotAttributesOutput) String() string {
  18596. return awsutil.Prettify(s)
  18597. }
  18598. // GoString returns the string representation
  18599. func (s DescribeDBClusterSnapshotAttributesOutput) GoString() string {
  18600. return s.String()
  18601. }
  18602. // SetDBClusterSnapshotAttributesResult sets the DBClusterSnapshotAttributesResult field's value.
  18603. func (s *DescribeDBClusterSnapshotAttributesOutput) SetDBClusterSnapshotAttributesResult(v *DBClusterSnapshotAttributesResult) *DescribeDBClusterSnapshotAttributesOutput {
  18604. s.DBClusterSnapshotAttributesResult = v
  18605. return s
  18606. }
  18607. type DescribeDBClusterSnapshotsInput struct {
  18608. _ struct{} `type:"structure"`
  18609. // The ID of the DB cluster to retrieve the list of DB cluster snapshots for.
  18610. // This parameter can't be used in conjunction with the DBClusterSnapshotIdentifier
  18611. // parameter. This parameter is not case-sensitive.
  18612. //
  18613. // Constraints:
  18614. //
  18615. // * If supplied, must match the identifier of an existing DBCluster.
  18616. DBClusterIdentifier *string `type:"string"`
  18617. // A specific DB cluster snapshot identifier to describe. This parameter can't
  18618. // be used in conjunction with the DBClusterIdentifier parameter. This value
  18619. // is stored as a lowercase string.
  18620. //
  18621. // Constraints:
  18622. //
  18623. // * If supplied, must match the identifier of an existing DBClusterSnapshot.
  18624. //
  18625. // * If this identifier is for an automated snapshot, the SnapshotType parameter
  18626. // must also be specified.
  18627. DBClusterSnapshotIdentifier *string `type:"string"`
  18628. // This parameter is not currently supported.
  18629. Filters []*Filter `locationNameList:"Filter" type:"list"`
  18630. // True to include manual DB cluster snapshots that are public and can be copied
  18631. // or restored by any AWS account, and otherwise false. The default is false.
  18632. // The default is false.
  18633. //
  18634. // You can share a manual DB cluster snapshot as public by using the ModifyDBClusterSnapshotAttribute
  18635. // API action.
  18636. IncludePublic *bool `type:"boolean"`
  18637. // True to include shared manual DB cluster snapshots from other AWS accounts
  18638. // that this AWS account has been given permission to copy or restore, and otherwise
  18639. // false. The default is false.
  18640. //
  18641. // You can give an AWS account permission to restore a manual DB cluster snapshot
  18642. // from another AWS account by the ModifyDBClusterSnapshotAttribute API action.
  18643. IncludeShared *bool `type:"boolean"`
  18644. // An optional pagination token provided by a previous DescribeDBClusterSnapshots
  18645. // request. If this parameter is specified, the response includes only records
  18646. // beyond the marker, up to the value specified by MaxRecords.
  18647. Marker *string `type:"string"`
  18648. // The maximum number of records to include in the response. If more records
  18649. // exist than the specified MaxRecords value, a pagination token called a marker
  18650. // is included in the response so that the remaining results can be retrieved.
  18651. //
  18652. // Default: 100
  18653. //
  18654. // Constraints: Minimum 20, maximum 100.
  18655. MaxRecords *int64 `type:"integer"`
  18656. // The type of DB cluster snapshots to be returned. You can specify one of the
  18657. // following values:
  18658. //
  18659. // * automated - Return all DB cluster snapshots that have been automatically
  18660. // taken by Amazon RDS for my AWS account.
  18661. //
  18662. // * manual - Return all DB cluster snapshots that have been taken by my
  18663. // AWS account.
  18664. //
  18665. // * shared - Return all manual DB cluster snapshots that have been shared
  18666. // to my AWS account.
  18667. //
  18668. // * public - Return all DB cluster snapshots that have been marked as public.
  18669. //
  18670. // If you don't specify a SnapshotType value, then both automated and manual
  18671. // DB cluster snapshots are returned. You can include shared DB cluster snapshots
  18672. // with these results by setting the IncludeShared parameter to true. You can
  18673. // include public DB cluster snapshots with these results by setting the IncludePublic
  18674. // parameter to true.
  18675. //
  18676. // The IncludeShared and IncludePublic parameters don't apply for SnapshotType
  18677. // values of manual or automated. The IncludePublic parameter doesn't apply
  18678. // when SnapshotType is set to shared. The IncludeShared parameter doesn't apply
  18679. // when SnapshotType is set to public.
  18680. SnapshotType *string `type:"string"`
  18681. }
  18682. // String returns the string representation
  18683. func (s DescribeDBClusterSnapshotsInput) String() string {
  18684. return awsutil.Prettify(s)
  18685. }
  18686. // GoString returns the string representation
  18687. func (s DescribeDBClusterSnapshotsInput) GoString() string {
  18688. return s.String()
  18689. }
  18690. // Validate inspects the fields of the type to determine if they are valid.
  18691. func (s *DescribeDBClusterSnapshotsInput) Validate() error {
  18692. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterSnapshotsInput"}
  18693. if s.Filters != nil {
  18694. for i, v := range s.Filters {
  18695. if v == nil {
  18696. continue
  18697. }
  18698. if err := v.Validate(); err != nil {
  18699. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  18700. }
  18701. }
  18702. }
  18703. if invalidParams.Len() > 0 {
  18704. return invalidParams
  18705. }
  18706. return nil
  18707. }
  18708. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  18709. func (s *DescribeDBClusterSnapshotsInput) SetDBClusterIdentifier(v string) *DescribeDBClusterSnapshotsInput {
  18710. s.DBClusterIdentifier = &v
  18711. return s
  18712. }
  18713. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  18714. func (s *DescribeDBClusterSnapshotsInput) SetDBClusterSnapshotIdentifier(v string) *DescribeDBClusterSnapshotsInput {
  18715. s.DBClusterSnapshotIdentifier = &v
  18716. return s
  18717. }
  18718. // SetFilters sets the Filters field's value.
  18719. func (s *DescribeDBClusterSnapshotsInput) SetFilters(v []*Filter) *DescribeDBClusterSnapshotsInput {
  18720. s.Filters = v
  18721. return s
  18722. }
  18723. // SetIncludePublic sets the IncludePublic field's value.
  18724. func (s *DescribeDBClusterSnapshotsInput) SetIncludePublic(v bool) *DescribeDBClusterSnapshotsInput {
  18725. s.IncludePublic = &v
  18726. return s
  18727. }
  18728. // SetIncludeShared sets the IncludeShared field's value.
  18729. func (s *DescribeDBClusterSnapshotsInput) SetIncludeShared(v bool) *DescribeDBClusterSnapshotsInput {
  18730. s.IncludeShared = &v
  18731. return s
  18732. }
  18733. // SetMarker sets the Marker field's value.
  18734. func (s *DescribeDBClusterSnapshotsInput) SetMarker(v string) *DescribeDBClusterSnapshotsInput {
  18735. s.Marker = &v
  18736. return s
  18737. }
  18738. // SetMaxRecords sets the MaxRecords field's value.
  18739. func (s *DescribeDBClusterSnapshotsInput) SetMaxRecords(v int64) *DescribeDBClusterSnapshotsInput {
  18740. s.MaxRecords = &v
  18741. return s
  18742. }
  18743. // SetSnapshotType sets the SnapshotType field's value.
  18744. func (s *DescribeDBClusterSnapshotsInput) SetSnapshotType(v string) *DescribeDBClusterSnapshotsInput {
  18745. s.SnapshotType = &v
  18746. return s
  18747. }
  18748. // Provides a list of DB cluster snapshots for the user as the result of a call
  18749. // to the DescribeDBClusterSnapshots action.
  18750. type DescribeDBClusterSnapshotsOutput struct {
  18751. _ struct{} `type:"structure"`
  18752. // Provides a list of DB cluster snapshots for the user.
  18753. DBClusterSnapshots []*DBClusterSnapshot `locationNameList:"DBClusterSnapshot" type:"list"`
  18754. // An optional pagination token provided by a previous DescribeDBClusterSnapshots
  18755. // request. If this parameter is specified, the response includes only records
  18756. // beyond the marker, up to the value specified by MaxRecords.
  18757. Marker *string `type:"string"`
  18758. }
  18759. // String returns the string representation
  18760. func (s DescribeDBClusterSnapshotsOutput) String() string {
  18761. return awsutil.Prettify(s)
  18762. }
  18763. // GoString returns the string representation
  18764. func (s DescribeDBClusterSnapshotsOutput) GoString() string {
  18765. return s.String()
  18766. }
  18767. // SetDBClusterSnapshots sets the DBClusterSnapshots field's value.
  18768. func (s *DescribeDBClusterSnapshotsOutput) SetDBClusterSnapshots(v []*DBClusterSnapshot) *DescribeDBClusterSnapshotsOutput {
  18769. s.DBClusterSnapshots = v
  18770. return s
  18771. }
  18772. // SetMarker sets the Marker field's value.
  18773. func (s *DescribeDBClusterSnapshotsOutput) SetMarker(v string) *DescribeDBClusterSnapshotsOutput {
  18774. s.Marker = &v
  18775. return s
  18776. }
  18777. type DescribeDBClustersInput struct {
  18778. _ struct{} `type:"structure"`
  18779. // The user-supplied DB cluster identifier. If this parameter is specified,
  18780. // information from only the specific DB cluster is returned. This parameter
  18781. // isn't case-sensitive.
  18782. //
  18783. // Constraints:
  18784. //
  18785. // * If supplied, must match an existing DBClusterIdentifier.
  18786. DBClusterIdentifier *string `type:"string"`
  18787. // A filter that specifies one or more DB clusters to describe.
  18788. //
  18789. // Supported filters:
  18790. //
  18791. // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon
  18792. // Resource Names (ARNs). The results list will only include information
  18793. // about the DB clusters identified by these ARNs.
  18794. Filters []*Filter `locationNameList:"Filter" type:"list"`
  18795. // An optional pagination token provided by a previous DescribeDBClusters request.
  18796. // If this parameter is specified, the response includes only records beyond
  18797. // the marker, up to the value specified by MaxRecords.
  18798. Marker *string `type:"string"`
  18799. // The maximum number of records to include in the response. If more records
  18800. // exist than the specified MaxRecords value, a pagination token called a marker
  18801. // is included in the response so that the remaining results can be retrieved.
  18802. //
  18803. // Default: 100
  18804. //
  18805. // Constraints: Minimum 20, maximum 100.
  18806. MaxRecords *int64 `type:"integer"`
  18807. }
  18808. // String returns the string representation
  18809. func (s DescribeDBClustersInput) String() string {
  18810. return awsutil.Prettify(s)
  18811. }
  18812. // GoString returns the string representation
  18813. func (s DescribeDBClustersInput) GoString() string {
  18814. return s.String()
  18815. }
  18816. // Validate inspects the fields of the type to determine if they are valid.
  18817. func (s *DescribeDBClustersInput) Validate() error {
  18818. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClustersInput"}
  18819. if s.Filters != nil {
  18820. for i, v := range s.Filters {
  18821. if v == nil {
  18822. continue
  18823. }
  18824. if err := v.Validate(); err != nil {
  18825. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  18826. }
  18827. }
  18828. }
  18829. if invalidParams.Len() > 0 {
  18830. return invalidParams
  18831. }
  18832. return nil
  18833. }
  18834. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  18835. func (s *DescribeDBClustersInput) SetDBClusterIdentifier(v string) *DescribeDBClustersInput {
  18836. s.DBClusterIdentifier = &v
  18837. return s
  18838. }
  18839. // SetFilters sets the Filters field's value.
  18840. func (s *DescribeDBClustersInput) SetFilters(v []*Filter) *DescribeDBClustersInput {
  18841. s.Filters = v
  18842. return s
  18843. }
  18844. // SetMarker sets the Marker field's value.
  18845. func (s *DescribeDBClustersInput) SetMarker(v string) *DescribeDBClustersInput {
  18846. s.Marker = &v
  18847. return s
  18848. }
  18849. // SetMaxRecords sets the MaxRecords field's value.
  18850. func (s *DescribeDBClustersInput) SetMaxRecords(v int64) *DescribeDBClustersInput {
  18851. s.MaxRecords = &v
  18852. return s
  18853. }
  18854. // Contains the result of a successful invocation of the DescribeDBClusters
  18855. // action.
  18856. type DescribeDBClustersOutput struct {
  18857. _ struct{} `type:"structure"`
  18858. // Contains a list of DB clusters for the user.
  18859. DBClusters []*DBCluster `locationNameList:"DBCluster" type:"list"`
  18860. // A pagination token that can be used in a subsequent DescribeDBClusters request.
  18861. Marker *string `type:"string"`
  18862. }
  18863. // String returns the string representation
  18864. func (s DescribeDBClustersOutput) String() string {
  18865. return awsutil.Prettify(s)
  18866. }
  18867. // GoString returns the string representation
  18868. func (s DescribeDBClustersOutput) GoString() string {
  18869. return s.String()
  18870. }
  18871. // SetDBClusters sets the DBClusters field's value.
  18872. func (s *DescribeDBClustersOutput) SetDBClusters(v []*DBCluster) *DescribeDBClustersOutput {
  18873. s.DBClusters = v
  18874. return s
  18875. }
  18876. // SetMarker sets the Marker field's value.
  18877. func (s *DescribeDBClustersOutput) SetMarker(v string) *DescribeDBClustersOutput {
  18878. s.Marker = &v
  18879. return s
  18880. }
  18881. type DescribeDBEngineVersionsInput struct {
  18882. _ struct{} `type:"structure"`
  18883. // The name of a specific DB parameter group family to return details for.
  18884. //
  18885. // Constraints:
  18886. //
  18887. // * If supplied, must match an existing DBParameterGroupFamily.
  18888. DBParameterGroupFamily *string `type:"string"`
  18889. // Indicates that only the default version of the specified engine or engine
  18890. // and major version combination is returned.
  18891. DefaultOnly *bool `type:"boolean"`
  18892. // The database engine to return.
  18893. Engine *string `type:"string"`
  18894. // The database engine version to return.
  18895. //
  18896. // Example: 5.1.49
  18897. EngineVersion *string `type:"string"`
  18898. // This parameter is not currently supported.
  18899. Filters []*Filter `locationNameList:"Filter" type:"list"`
  18900. // If this parameter is specified and the requested engine supports the CharacterSetName
  18901. // parameter for CreateDBInstance, the response includes a list of supported
  18902. // character sets for each engine version.
  18903. ListSupportedCharacterSets *bool `type:"boolean"`
  18904. // If this parameter is specified and the requested engine supports the TimeZone
  18905. // parameter for CreateDBInstance, the response includes a list of supported
  18906. // time zones for each engine version.
  18907. ListSupportedTimezones *bool `type:"boolean"`
  18908. // An optional pagination token provided by a previous request. If this parameter
  18909. // is specified, the response includes only records beyond the marker, up to
  18910. // the value specified by MaxRecords.
  18911. Marker *string `type:"string"`
  18912. // The maximum number of records to include in the response. If more than the
  18913. // MaxRecords value is available, a pagination token called a marker is included
  18914. // in the response so that the following results can be retrieved.
  18915. //
  18916. // Default: 100
  18917. //
  18918. // Constraints: Minimum 20, maximum 100.
  18919. MaxRecords *int64 `type:"integer"`
  18920. }
  18921. // String returns the string representation
  18922. func (s DescribeDBEngineVersionsInput) String() string {
  18923. return awsutil.Prettify(s)
  18924. }
  18925. // GoString returns the string representation
  18926. func (s DescribeDBEngineVersionsInput) GoString() string {
  18927. return s.String()
  18928. }
  18929. // Validate inspects the fields of the type to determine if they are valid.
  18930. func (s *DescribeDBEngineVersionsInput) Validate() error {
  18931. invalidParams := request.ErrInvalidParams{Context: "DescribeDBEngineVersionsInput"}
  18932. if s.Filters != nil {
  18933. for i, v := range s.Filters {
  18934. if v == nil {
  18935. continue
  18936. }
  18937. if err := v.Validate(); err != nil {
  18938. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  18939. }
  18940. }
  18941. }
  18942. if invalidParams.Len() > 0 {
  18943. return invalidParams
  18944. }
  18945. return nil
  18946. }
  18947. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  18948. func (s *DescribeDBEngineVersionsInput) SetDBParameterGroupFamily(v string) *DescribeDBEngineVersionsInput {
  18949. s.DBParameterGroupFamily = &v
  18950. return s
  18951. }
  18952. // SetDefaultOnly sets the DefaultOnly field's value.
  18953. func (s *DescribeDBEngineVersionsInput) SetDefaultOnly(v bool) *DescribeDBEngineVersionsInput {
  18954. s.DefaultOnly = &v
  18955. return s
  18956. }
  18957. // SetEngine sets the Engine field's value.
  18958. func (s *DescribeDBEngineVersionsInput) SetEngine(v string) *DescribeDBEngineVersionsInput {
  18959. s.Engine = &v
  18960. return s
  18961. }
  18962. // SetEngineVersion sets the EngineVersion field's value.
  18963. func (s *DescribeDBEngineVersionsInput) SetEngineVersion(v string) *DescribeDBEngineVersionsInput {
  18964. s.EngineVersion = &v
  18965. return s
  18966. }
  18967. // SetFilters sets the Filters field's value.
  18968. func (s *DescribeDBEngineVersionsInput) SetFilters(v []*Filter) *DescribeDBEngineVersionsInput {
  18969. s.Filters = v
  18970. return s
  18971. }
  18972. // SetListSupportedCharacterSets sets the ListSupportedCharacterSets field's value.
  18973. func (s *DescribeDBEngineVersionsInput) SetListSupportedCharacterSets(v bool) *DescribeDBEngineVersionsInput {
  18974. s.ListSupportedCharacterSets = &v
  18975. return s
  18976. }
  18977. // SetListSupportedTimezones sets the ListSupportedTimezones field's value.
  18978. func (s *DescribeDBEngineVersionsInput) SetListSupportedTimezones(v bool) *DescribeDBEngineVersionsInput {
  18979. s.ListSupportedTimezones = &v
  18980. return s
  18981. }
  18982. // SetMarker sets the Marker field's value.
  18983. func (s *DescribeDBEngineVersionsInput) SetMarker(v string) *DescribeDBEngineVersionsInput {
  18984. s.Marker = &v
  18985. return s
  18986. }
  18987. // SetMaxRecords sets the MaxRecords field's value.
  18988. func (s *DescribeDBEngineVersionsInput) SetMaxRecords(v int64) *DescribeDBEngineVersionsInput {
  18989. s.MaxRecords = &v
  18990. return s
  18991. }
  18992. // Contains the result of a successful invocation of the DescribeDBEngineVersions
  18993. // action.
  18994. type DescribeDBEngineVersionsOutput struct {
  18995. _ struct{} `type:"structure"`
  18996. // A list of DBEngineVersion elements.
  18997. DBEngineVersions []*DBEngineVersion `locationNameList:"DBEngineVersion" type:"list"`
  18998. // An optional pagination token provided by a previous request. If this parameter
  18999. // is specified, the response includes only records beyond the marker, up to
  19000. // the value specified by MaxRecords.
  19001. Marker *string `type:"string"`
  19002. }
  19003. // String returns the string representation
  19004. func (s DescribeDBEngineVersionsOutput) String() string {
  19005. return awsutil.Prettify(s)
  19006. }
  19007. // GoString returns the string representation
  19008. func (s DescribeDBEngineVersionsOutput) GoString() string {
  19009. return s.String()
  19010. }
  19011. // SetDBEngineVersions sets the DBEngineVersions field's value.
  19012. func (s *DescribeDBEngineVersionsOutput) SetDBEngineVersions(v []*DBEngineVersion) *DescribeDBEngineVersionsOutput {
  19013. s.DBEngineVersions = v
  19014. return s
  19015. }
  19016. // SetMarker sets the Marker field's value.
  19017. func (s *DescribeDBEngineVersionsOutput) SetMarker(v string) *DescribeDBEngineVersionsOutput {
  19018. s.Marker = &v
  19019. return s
  19020. }
  19021. // Parameter input for DescribeDBInstanceAutomatedBackups.
  19022. type DescribeDBInstanceAutomatedBackupsInput struct {
  19023. _ struct{} `type:"structure"`
  19024. // (Optional) The user-supplied instance identifier. If this parameter is specified,
  19025. // it must match the identifier of an existing DB instance. It returns information
  19026. // from the specific DB instance' automated backup. This parameter isn't case-sensitive.
  19027. DBInstanceIdentifier *string `type:"string"`
  19028. // The resource ID of the DB instance that is the source of the automated backup.
  19029. // This parameter isn't case-sensitive.
  19030. DbiResourceId *string `type:"string"`
  19031. // A filter that specifies which resources to return based on status.
  19032. //
  19033. // Supported filters are the following:
  19034. //
  19035. // * status
  19036. //
  19037. // active - automated backups for current instances
  19038. //
  19039. // retained - automated backups for deleted instances
  19040. //
  19041. // creating - automated backups that are waiting for the first automated snapshot
  19042. // to be available
  19043. //
  19044. // * db-instance-id - Accepts DB instance identifiers and Amazon Resource
  19045. // Names (ARNs) for DB instances. The results list includes only information
  19046. // about the DB instance automated backupss identified by these ARNs.
  19047. //
  19048. // * dbi-resource-id - Accepts DB instance resource identifiers and DB Amazon
  19049. // Resource Names (ARNs) for DB instances. The results list includes only
  19050. // information about the DB instance resources identified by these ARNs.
  19051. //
  19052. // Returns all resources by default. The status for each resource is specified
  19053. // in the response.
  19054. Filters []*Filter `locationNameList:"Filter" type:"list"`
  19055. // The pagination token provided in the previous request. If this parameter
  19056. // is specified the response includes only records beyond the marker, up to
  19057. // MaxRecords.
  19058. Marker *string `type:"string"`
  19059. // The maximum number of records to include in the response. If more records
  19060. // exist than the specified MaxRecords value, a pagination token called a marker
  19061. // is included in the response so that the remaining results can be retrieved.
  19062. MaxRecords *int64 `type:"integer"`
  19063. }
  19064. // String returns the string representation
  19065. func (s DescribeDBInstanceAutomatedBackupsInput) String() string {
  19066. return awsutil.Prettify(s)
  19067. }
  19068. // GoString returns the string representation
  19069. func (s DescribeDBInstanceAutomatedBackupsInput) GoString() string {
  19070. return s.String()
  19071. }
  19072. // Validate inspects the fields of the type to determine if they are valid.
  19073. func (s *DescribeDBInstanceAutomatedBackupsInput) Validate() error {
  19074. invalidParams := request.ErrInvalidParams{Context: "DescribeDBInstanceAutomatedBackupsInput"}
  19075. if s.Filters != nil {
  19076. for i, v := range s.Filters {
  19077. if v == nil {
  19078. continue
  19079. }
  19080. if err := v.Validate(); err != nil {
  19081. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  19082. }
  19083. }
  19084. }
  19085. if invalidParams.Len() > 0 {
  19086. return invalidParams
  19087. }
  19088. return nil
  19089. }
  19090. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  19091. func (s *DescribeDBInstanceAutomatedBackupsInput) SetDBInstanceIdentifier(v string) *DescribeDBInstanceAutomatedBackupsInput {
  19092. s.DBInstanceIdentifier = &v
  19093. return s
  19094. }
  19095. // SetDbiResourceId sets the DbiResourceId field's value.
  19096. func (s *DescribeDBInstanceAutomatedBackupsInput) SetDbiResourceId(v string) *DescribeDBInstanceAutomatedBackupsInput {
  19097. s.DbiResourceId = &v
  19098. return s
  19099. }
  19100. // SetFilters sets the Filters field's value.
  19101. func (s *DescribeDBInstanceAutomatedBackupsInput) SetFilters(v []*Filter) *DescribeDBInstanceAutomatedBackupsInput {
  19102. s.Filters = v
  19103. return s
  19104. }
  19105. // SetMarker sets the Marker field's value.
  19106. func (s *DescribeDBInstanceAutomatedBackupsInput) SetMarker(v string) *DescribeDBInstanceAutomatedBackupsInput {
  19107. s.Marker = &v
  19108. return s
  19109. }
  19110. // SetMaxRecords sets the MaxRecords field's value.
  19111. func (s *DescribeDBInstanceAutomatedBackupsInput) SetMaxRecords(v int64) *DescribeDBInstanceAutomatedBackupsInput {
  19112. s.MaxRecords = &v
  19113. return s
  19114. }
  19115. // Contains the result of a successful invocation of the DescribeDBInstanceAutomatedBackups
  19116. // action.
  19117. type DescribeDBInstanceAutomatedBackupsOutput struct {
  19118. _ struct{} `type:"structure"`
  19119. // A list of DBInstanceAutomatedBackup instances.
  19120. DBInstanceAutomatedBackups []*DBInstanceAutomatedBackup `locationNameList:"DBInstanceAutomatedBackup" type:"list"`
  19121. // An optional pagination token provided by a previous request. If this parameter
  19122. // is specified, the response includes only records beyond the marker, up to
  19123. // the value specified by MaxRecords .
  19124. Marker *string `type:"string"`
  19125. }
  19126. // String returns the string representation
  19127. func (s DescribeDBInstanceAutomatedBackupsOutput) String() string {
  19128. return awsutil.Prettify(s)
  19129. }
  19130. // GoString returns the string representation
  19131. func (s DescribeDBInstanceAutomatedBackupsOutput) GoString() string {
  19132. return s.String()
  19133. }
  19134. // SetDBInstanceAutomatedBackups sets the DBInstanceAutomatedBackups field's value.
  19135. func (s *DescribeDBInstanceAutomatedBackupsOutput) SetDBInstanceAutomatedBackups(v []*DBInstanceAutomatedBackup) *DescribeDBInstanceAutomatedBackupsOutput {
  19136. s.DBInstanceAutomatedBackups = v
  19137. return s
  19138. }
  19139. // SetMarker sets the Marker field's value.
  19140. func (s *DescribeDBInstanceAutomatedBackupsOutput) SetMarker(v string) *DescribeDBInstanceAutomatedBackupsOutput {
  19141. s.Marker = &v
  19142. return s
  19143. }
  19144. type DescribeDBInstancesInput struct {
  19145. _ struct{} `type:"structure"`
  19146. // The user-supplied instance identifier. If this parameter is specified, information
  19147. // from only the specific DB instance is returned. This parameter isn't case-sensitive.
  19148. //
  19149. // Constraints:
  19150. //
  19151. // * If supplied, must match the identifier of an existing DBInstance.
  19152. DBInstanceIdentifier *string `type:"string"`
  19153. // A filter that specifies one or more DB instances to describe.
  19154. //
  19155. // Supported filters:
  19156. //
  19157. // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon
  19158. // Resource Names (ARNs). The results list will only include information
  19159. // about the DB instances associated with the DB clusters identified by these
  19160. // ARNs.
  19161. //
  19162. // * db-instance-id - Accepts DB instance identifiers and DB instance Amazon
  19163. // Resource Names (ARNs). The results list will only include information
  19164. // about the DB instances identified by these ARNs.
  19165. Filters []*Filter `locationNameList:"Filter" type:"list"`
  19166. // An optional pagination token provided by a previous DescribeDBInstances request.
  19167. // If this parameter is specified, the response includes only records beyond
  19168. // the marker, up to the value specified by MaxRecords.
  19169. Marker *string `type:"string"`
  19170. // The maximum number of records to include in the response. If more records
  19171. // exist than the specified MaxRecords value, a pagination token called a marker
  19172. // is included in the response so that the remaining results can be retrieved.
  19173. //
  19174. // Default: 100
  19175. //
  19176. // Constraints: Minimum 20, maximum 100.
  19177. MaxRecords *int64 `type:"integer"`
  19178. }
  19179. // String returns the string representation
  19180. func (s DescribeDBInstancesInput) String() string {
  19181. return awsutil.Prettify(s)
  19182. }
  19183. // GoString returns the string representation
  19184. func (s DescribeDBInstancesInput) GoString() string {
  19185. return s.String()
  19186. }
  19187. // Validate inspects the fields of the type to determine if they are valid.
  19188. func (s *DescribeDBInstancesInput) Validate() error {
  19189. invalidParams := request.ErrInvalidParams{Context: "DescribeDBInstancesInput"}
  19190. if s.Filters != nil {
  19191. for i, v := range s.Filters {
  19192. if v == nil {
  19193. continue
  19194. }
  19195. if err := v.Validate(); err != nil {
  19196. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  19197. }
  19198. }
  19199. }
  19200. if invalidParams.Len() > 0 {
  19201. return invalidParams
  19202. }
  19203. return nil
  19204. }
  19205. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  19206. func (s *DescribeDBInstancesInput) SetDBInstanceIdentifier(v string) *DescribeDBInstancesInput {
  19207. s.DBInstanceIdentifier = &v
  19208. return s
  19209. }
  19210. // SetFilters sets the Filters field's value.
  19211. func (s *DescribeDBInstancesInput) SetFilters(v []*Filter) *DescribeDBInstancesInput {
  19212. s.Filters = v
  19213. return s
  19214. }
  19215. // SetMarker sets the Marker field's value.
  19216. func (s *DescribeDBInstancesInput) SetMarker(v string) *DescribeDBInstancesInput {
  19217. s.Marker = &v
  19218. return s
  19219. }
  19220. // SetMaxRecords sets the MaxRecords field's value.
  19221. func (s *DescribeDBInstancesInput) SetMaxRecords(v int64) *DescribeDBInstancesInput {
  19222. s.MaxRecords = &v
  19223. return s
  19224. }
  19225. // Contains the result of a successful invocation of the DescribeDBInstances
  19226. // action.
  19227. type DescribeDBInstancesOutput struct {
  19228. _ struct{} `type:"structure"`
  19229. // A list of DBInstance instances.
  19230. DBInstances []*DBInstance `locationNameList:"DBInstance" type:"list"`
  19231. // An optional pagination token provided by a previous request. If this parameter
  19232. // is specified, the response includes only records beyond the marker, up to
  19233. // the value specified by MaxRecords .
  19234. Marker *string `type:"string"`
  19235. }
  19236. // String returns the string representation
  19237. func (s DescribeDBInstancesOutput) String() string {
  19238. return awsutil.Prettify(s)
  19239. }
  19240. // GoString returns the string representation
  19241. func (s DescribeDBInstancesOutput) GoString() string {
  19242. return s.String()
  19243. }
  19244. // SetDBInstances sets the DBInstances field's value.
  19245. func (s *DescribeDBInstancesOutput) SetDBInstances(v []*DBInstance) *DescribeDBInstancesOutput {
  19246. s.DBInstances = v
  19247. return s
  19248. }
  19249. // SetMarker sets the Marker field's value.
  19250. func (s *DescribeDBInstancesOutput) SetMarker(v string) *DescribeDBInstancesOutput {
  19251. s.Marker = &v
  19252. return s
  19253. }
  19254. // This data type is used as a response element to DescribeDBLogFiles.
  19255. type DescribeDBLogFilesDetails struct {
  19256. _ struct{} `type:"structure"`
  19257. // A POSIX timestamp when the last log entry was written.
  19258. LastWritten *int64 `type:"long"`
  19259. // The name of the log file for the specified DB instance.
  19260. LogFileName *string `type:"string"`
  19261. // The size, in bytes, of the log file for the specified DB instance.
  19262. Size *int64 `type:"long"`
  19263. }
  19264. // String returns the string representation
  19265. func (s DescribeDBLogFilesDetails) String() string {
  19266. return awsutil.Prettify(s)
  19267. }
  19268. // GoString returns the string representation
  19269. func (s DescribeDBLogFilesDetails) GoString() string {
  19270. return s.String()
  19271. }
  19272. // SetLastWritten sets the LastWritten field's value.
  19273. func (s *DescribeDBLogFilesDetails) SetLastWritten(v int64) *DescribeDBLogFilesDetails {
  19274. s.LastWritten = &v
  19275. return s
  19276. }
  19277. // SetLogFileName sets the LogFileName field's value.
  19278. func (s *DescribeDBLogFilesDetails) SetLogFileName(v string) *DescribeDBLogFilesDetails {
  19279. s.LogFileName = &v
  19280. return s
  19281. }
  19282. // SetSize sets the Size field's value.
  19283. func (s *DescribeDBLogFilesDetails) SetSize(v int64) *DescribeDBLogFilesDetails {
  19284. s.Size = &v
  19285. return s
  19286. }
  19287. type DescribeDBLogFilesInput struct {
  19288. _ struct{} `type:"structure"`
  19289. // The customer-assigned name of the DB instance that contains the log files
  19290. // you want to list.
  19291. //
  19292. // Constraints:
  19293. //
  19294. // * Must match the identifier of an existing DBInstance.
  19295. //
  19296. // DBInstanceIdentifier is a required field
  19297. DBInstanceIdentifier *string `type:"string" required:"true"`
  19298. // Filters the available log files for files written since the specified date,
  19299. // in POSIX timestamp format with milliseconds.
  19300. FileLastWritten *int64 `type:"long"`
  19301. // Filters the available log files for files larger than the specified size.
  19302. FileSize *int64 `type:"long"`
  19303. // Filters the available log files for log file names that contain the specified
  19304. // string.
  19305. FilenameContains *string `type:"string"`
  19306. // This parameter is not currently supported.
  19307. Filters []*Filter `locationNameList:"Filter" type:"list"`
  19308. // The pagination token provided in the previous request. If this parameter
  19309. // is specified the response includes only records beyond the marker, up to
  19310. // MaxRecords.
  19311. Marker *string `type:"string"`
  19312. // The maximum number of records to include in the response. If more records
  19313. // exist than the specified MaxRecords value, a pagination token called a marker
  19314. // is included in the response so that the remaining results can be retrieved.
  19315. MaxRecords *int64 `type:"integer"`
  19316. }
  19317. // String returns the string representation
  19318. func (s DescribeDBLogFilesInput) String() string {
  19319. return awsutil.Prettify(s)
  19320. }
  19321. // GoString returns the string representation
  19322. func (s DescribeDBLogFilesInput) GoString() string {
  19323. return s.String()
  19324. }
  19325. // Validate inspects the fields of the type to determine if they are valid.
  19326. func (s *DescribeDBLogFilesInput) Validate() error {
  19327. invalidParams := request.ErrInvalidParams{Context: "DescribeDBLogFilesInput"}
  19328. if s.DBInstanceIdentifier == nil {
  19329. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  19330. }
  19331. if s.Filters != nil {
  19332. for i, v := range s.Filters {
  19333. if v == nil {
  19334. continue
  19335. }
  19336. if err := v.Validate(); err != nil {
  19337. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  19338. }
  19339. }
  19340. }
  19341. if invalidParams.Len() > 0 {
  19342. return invalidParams
  19343. }
  19344. return nil
  19345. }
  19346. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  19347. func (s *DescribeDBLogFilesInput) SetDBInstanceIdentifier(v string) *DescribeDBLogFilesInput {
  19348. s.DBInstanceIdentifier = &v
  19349. return s
  19350. }
  19351. // SetFileLastWritten sets the FileLastWritten field's value.
  19352. func (s *DescribeDBLogFilesInput) SetFileLastWritten(v int64) *DescribeDBLogFilesInput {
  19353. s.FileLastWritten = &v
  19354. return s
  19355. }
  19356. // SetFileSize sets the FileSize field's value.
  19357. func (s *DescribeDBLogFilesInput) SetFileSize(v int64) *DescribeDBLogFilesInput {
  19358. s.FileSize = &v
  19359. return s
  19360. }
  19361. // SetFilenameContains sets the FilenameContains field's value.
  19362. func (s *DescribeDBLogFilesInput) SetFilenameContains(v string) *DescribeDBLogFilesInput {
  19363. s.FilenameContains = &v
  19364. return s
  19365. }
  19366. // SetFilters sets the Filters field's value.
  19367. func (s *DescribeDBLogFilesInput) SetFilters(v []*Filter) *DescribeDBLogFilesInput {
  19368. s.Filters = v
  19369. return s
  19370. }
  19371. // SetMarker sets the Marker field's value.
  19372. func (s *DescribeDBLogFilesInput) SetMarker(v string) *DescribeDBLogFilesInput {
  19373. s.Marker = &v
  19374. return s
  19375. }
  19376. // SetMaxRecords sets the MaxRecords field's value.
  19377. func (s *DescribeDBLogFilesInput) SetMaxRecords(v int64) *DescribeDBLogFilesInput {
  19378. s.MaxRecords = &v
  19379. return s
  19380. }
  19381. // The response from a call to DescribeDBLogFiles.
  19382. type DescribeDBLogFilesOutput struct {
  19383. _ struct{} `type:"structure"`
  19384. // The DB log files returned.
  19385. DescribeDBLogFiles []*DescribeDBLogFilesDetails `locationNameList:"DescribeDBLogFilesDetails" type:"list"`
  19386. // A pagination token that can be used in a subsequent DescribeDBLogFiles request.
  19387. Marker *string `type:"string"`
  19388. }
  19389. // String returns the string representation
  19390. func (s DescribeDBLogFilesOutput) String() string {
  19391. return awsutil.Prettify(s)
  19392. }
  19393. // GoString returns the string representation
  19394. func (s DescribeDBLogFilesOutput) GoString() string {
  19395. return s.String()
  19396. }
  19397. // SetDescribeDBLogFiles sets the DescribeDBLogFiles field's value.
  19398. func (s *DescribeDBLogFilesOutput) SetDescribeDBLogFiles(v []*DescribeDBLogFilesDetails) *DescribeDBLogFilesOutput {
  19399. s.DescribeDBLogFiles = v
  19400. return s
  19401. }
  19402. // SetMarker sets the Marker field's value.
  19403. func (s *DescribeDBLogFilesOutput) SetMarker(v string) *DescribeDBLogFilesOutput {
  19404. s.Marker = &v
  19405. return s
  19406. }
  19407. type DescribeDBParameterGroupsInput struct {
  19408. _ struct{} `type:"structure"`
  19409. // The name of a specific DB parameter group to return details for.
  19410. //
  19411. // Constraints:
  19412. //
  19413. // * If supplied, must match the name of an existing DBClusterParameterGroup.
  19414. DBParameterGroupName *string `type:"string"`
  19415. // This parameter is not currently supported.
  19416. Filters []*Filter `locationNameList:"Filter" type:"list"`
  19417. // An optional pagination token provided by a previous DescribeDBParameterGroups
  19418. // request. If this parameter is specified, the response includes only records
  19419. // beyond the marker, up to the value specified by MaxRecords.
  19420. Marker *string `type:"string"`
  19421. // The maximum number of records to include in the response. If more records
  19422. // exist than the specified MaxRecords value, a pagination token called a marker
  19423. // is included in the response so that the remaining results can be retrieved.
  19424. //
  19425. // Default: 100
  19426. //
  19427. // Constraints: Minimum 20, maximum 100.
  19428. MaxRecords *int64 `type:"integer"`
  19429. }
  19430. // String returns the string representation
  19431. func (s DescribeDBParameterGroupsInput) String() string {
  19432. return awsutil.Prettify(s)
  19433. }
  19434. // GoString returns the string representation
  19435. func (s DescribeDBParameterGroupsInput) GoString() string {
  19436. return s.String()
  19437. }
  19438. // Validate inspects the fields of the type to determine if they are valid.
  19439. func (s *DescribeDBParameterGroupsInput) Validate() error {
  19440. invalidParams := request.ErrInvalidParams{Context: "DescribeDBParameterGroupsInput"}
  19441. if s.Filters != nil {
  19442. for i, v := range s.Filters {
  19443. if v == nil {
  19444. continue
  19445. }
  19446. if err := v.Validate(); err != nil {
  19447. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  19448. }
  19449. }
  19450. }
  19451. if invalidParams.Len() > 0 {
  19452. return invalidParams
  19453. }
  19454. return nil
  19455. }
  19456. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  19457. func (s *DescribeDBParameterGroupsInput) SetDBParameterGroupName(v string) *DescribeDBParameterGroupsInput {
  19458. s.DBParameterGroupName = &v
  19459. return s
  19460. }
  19461. // SetFilters sets the Filters field's value.
  19462. func (s *DescribeDBParameterGroupsInput) SetFilters(v []*Filter) *DescribeDBParameterGroupsInput {
  19463. s.Filters = v
  19464. return s
  19465. }
  19466. // SetMarker sets the Marker field's value.
  19467. func (s *DescribeDBParameterGroupsInput) SetMarker(v string) *DescribeDBParameterGroupsInput {
  19468. s.Marker = &v
  19469. return s
  19470. }
  19471. // SetMaxRecords sets the MaxRecords field's value.
  19472. func (s *DescribeDBParameterGroupsInput) SetMaxRecords(v int64) *DescribeDBParameterGroupsInput {
  19473. s.MaxRecords = &v
  19474. return s
  19475. }
  19476. // Contains the result of a successful invocation of the DescribeDBParameterGroups
  19477. // action.
  19478. type DescribeDBParameterGroupsOutput struct {
  19479. _ struct{} `type:"structure"`
  19480. // A list of DBParameterGroup instances.
  19481. DBParameterGroups []*DBParameterGroup `locationNameList:"DBParameterGroup" type:"list"`
  19482. // An optional pagination token provided by a previous request. If this parameter
  19483. // is specified, the response includes only records beyond the marker, up to
  19484. // the value specified by MaxRecords.
  19485. Marker *string `type:"string"`
  19486. }
  19487. // String returns the string representation
  19488. func (s DescribeDBParameterGroupsOutput) String() string {
  19489. return awsutil.Prettify(s)
  19490. }
  19491. // GoString returns the string representation
  19492. func (s DescribeDBParameterGroupsOutput) GoString() string {
  19493. return s.String()
  19494. }
  19495. // SetDBParameterGroups sets the DBParameterGroups field's value.
  19496. func (s *DescribeDBParameterGroupsOutput) SetDBParameterGroups(v []*DBParameterGroup) *DescribeDBParameterGroupsOutput {
  19497. s.DBParameterGroups = v
  19498. return s
  19499. }
  19500. // SetMarker sets the Marker field's value.
  19501. func (s *DescribeDBParameterGroupsOutput) SetMarker(v string) *DescribeDBParameterGroupsOutput {
  19502. s.Marker = &v
  19503. return s
  19504. }
  19505. type DescribeDBParametersInput struct {
  19506. _ struct{} `type:"structure"`
  19507. // The name of a specific DB parameter group to return details for.
  19508. //
  19509. // Constraints:
  19510. //
  19511. // * If supplied, must match the name of an existing DBParameterGroup.
  19512. //
  19513. // DBParameterGroupName is a required field
  19514. DBParameterGroupName *string `type:"string" required:"true"`
  19515. // This parameter is not currently supported.
  19516. Filters []*Filter `locationNameList:"Filter" type:"list"`
  19517. // An optional pagination token provided by a previous DescribeDBParameters
  19518. // request. If this parameter is specified, the response includes only records
  19519. // beyond the marker, up to the value specified by MaxRecords.
  19520. Marker *string `type:"string"`
  19521. // The maximum number of records to include in the response. If more records
  19522. // exist than the specified MaxRecords value, a pagination token called a marker
  19523. // is included in the response so that the remaining results can be retrieved.
  19524. //
  19525. // Default: 100
  19526. //
  19527. // Constraints: Minimum 20, maximum 100.
  19528. MaxRecords *int64 `type:"integer"`
  19529. // The parameter types to return.
  19530. //
  19531. // Default: All parameter types returned
  19532. //
  19533. // Valid Values: user | system | engine-default
  19534. Source *string `type:"string"`
  19535. }
  19536. // String returns the string representation
  19537. func (s DescribeDBParametersInput) String() string {
  19538. return awsutil.Prettify(s)
  19539. }
  19540. // GoString returns the string representation
  19541. func (s DescribeDBParametersInput) GoString() string {
  19542. return s.String()
  19543. }
  19544. // Validate inspects the fields of the type to determine if they are valid.
  19545. func (s *DescribeDBParametersInput) Validate() error {
  19546. invalidParams := request.ErrInvalidParams{Context: "DescribeDBParametersInput"}
  19547. if s.DBParameterGroupName == nil {
  19548. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  19549. }
  19550. if s.Filters != nil {
  19551. for i, v := range s.Filters {
  19552. if v == nil {
  19553. continue
  19554. }
  19555. if err := v.Validate(); err != nil {
  19556. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  19557. }
  19558. }
  19559. }
  19560. if invalidParams.Len() > 0 {
  19561. return invalidParams
  19562. }
  19563. return nil
  19564. }
  19565. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  19566. func (s *DescribeDBParametersInput) SetDBParameterGroupName(v string) *DescribeDBParametersInput {
  19567. s.DBParameterGroupName = &v
  19568. return s
  19569. }
  19570. // SetFilters sets the Filters field's value.
  19571. func (s *DescribeDBParametersInput) SetFilters(v []*Filter) *DescribeDBParametersInput {
  19572. s.Filters = v
  19573. return s
  19574. }
  19575. // SetMarker sets the Marker field's value.
  19576. func (s *DescribeDBParametersInput) SetMarker(v string) *DescribeDBParametersInput {
  19577. s.Marker = &v
  19578. return s
  19579. }
  19580. // SetMaxRecords sets the MaxRecords field's value.
  19581. func (s *DescribeDBParametersInput) SetMaxRecords(v int64) *DescribeDBParametersInput {
  19582. s.MaxRecords = &v
  19583. return s
  19584. }
  19585. // SetSource sets the Source field's value.
  19586. func (s *DescribeDBParametersInput) SetSource(v string) *DescribeDBParametersInput {
  19587. s.Source = &v
  19588. return s
  19589. }
  19590. // Contains the result of a successful invocation of the DescribeDBParameters
  19591. // action.
  19592. type DescribeDBParametersOutput struct {
  19593. _ struct{} `type:"structure"`
  19594. // An optional pagination token provided by a previous request. If this parameter
  19595. // is specified, the response includes only records beyond the marker, up to
  19596. // the value specified by MaxRecords.
  19597. Marker *string `type:"string"`
  19598. // A list of Parameter values.
  19599. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  19600. }
  19601. // String returns the string representation
  19602. func (s DescribeDBParametersOutput) String() string {
  19603. return awsutil.Prettify(s)
  19604. }
  19605. // GoString returns the string representation
  19606. func (s DescribeDBParametersOutput) GoString() string {
  19607. return s.String()
  19608. }
  19609. // SetMarker sets the Marker field's value.
  19610. func (s *DescribeDBParametersOutput) SetMarker(v string) *DescribeDBParametersOutput {
  19611. s.Marker = &v
  19612. return s
  19613. }
  19614. // SetParameters sets the Parameters field's value.
  19615. func (s *DescribeDBParametersOutput) SetParameters(v []*Parameter) *DescribeDBParametersOutput {
  19616. s.Parameters = v
  19617. return s
  19618. }
  19619. type DescribeDBSecurityGroupsInput struct {
  19620. _ struct{} `type:"structure"`
  19621. // The name of the DB security group to return details for.
  19622. DBSecurityGroupName *string `type:"string"`
  19623. // This parameter is not currently supported.
  19624. Filters []*Filter `locationNameList:"Filter" type:"list"`
  19625. // An optional pagination token provided by a previous DescribeDBSecurityGroups
  19626. // request. If this parameter is specified, the response includes only records
  19627. // beyond the marker, up to the value specified by MaxRecords.
  19628. Marker *string `type:"string"`
  19629. // The maximum number of records to include in the response. If more records
  19630. // exist than the specified MaxRecords value, a pagination token called a marker
  19631. // is included in the response so that the remaining results can be retrieved.
  19632. //
  19633. // Default: 100
  19634. //
  19635. // Constraints: Minimum 20, maximum 100.
  19636. MaxRecords *int64 `type:"integer"`
  19637. }
  19638. // String returns the string representation
  19639. func (s DescribeDBSecurityGroupsInput) String() string {
  19640. return awsutil.Prettify(s)
  19641. }
  19642. // GoString returns the string representation
  19643. func (s DescribeDBSecurityGroupsInput) GoString() string {
  19644. return s.String()
  19645. }
  19646. // Validate inspects the fields of the type to determine if they are valid.
  19647. func (s *DescribeDBSecurityGroupsInput) Validate() error {
  19648. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSecurityGroupsInput"}
  19649. if s.Filters != nil {
  19650. for i, v := range s.Filters {
  19651. if v == nil {
  19652. continue
  19653. }
  19654. if err := v.Validate(); err != nil {
  19655. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  19656. }
  19657. }
  19658. }
  19659. if invalidParams.Len() > 0 {
  19660. return invalidParams
  19661. }
  19662. return nil
  19663. }
  19664. // SetDBSecurityGroupName sets the DBSecurityGroupName field's value.
  19665. func (s *DescribeDBSecurityGroupsInput) SetDBSecurityGroupName(v string) *DescribeDBSecurityGroupsInput {
  19666. s.DBSecurityGroupName = &v
  19667. return s
  19668. }
  19669. // SetFilters sets the Filters field's value.
  19670. func (s *DescribeDBSecurityGroupsInput) SetFilters(v []*Filter) *DescribeDBSecurityGroupsInput {
  19671. s.Filters = v
  19672. return s
  19673. }
  19674. // SetMarker sets the Marker field's value.
  19675. func (s *DescribeDBSecurityGroupsInput) SetMarker(v string) *DescribeDBSecurityGroupsInput {
  19676. s.Marker = &v
  19677. return s
  19678. }
  19679. // SetMaxRecords sets the MaxRecords field's value.
  19680. func (s *DescribeDBSecurityGroupsInput) SetMaxRecords(v int64) *DescribeDBSecurityGroupsInput {
  19681. s.MaxRecords = &v
  19682. return s
  19683. }
  19684. // Contains the result of a successful invocation of the DescribeDBSecurityGroups
  19685. // action.
  19686. type DescribeDBSecurityGroupsOutput struct {
  19687. _ struct{} `type:"structure"`
  19688. // A list of DBSecurityGroup instances.
  19689. DBSecurityGroups []*DBSecurityGroup `locationNameList:"DBSecurityGroup" type:"list"`
  19690. // An optional pagination token provided by a previous request. If this parameter
  19691. // is specified, the response includes only records beyond the marker, up to
  19692. // the value specified by MaxRecords.
  19693. Marker *string `type:"string"`
  19694. }
  19695. // String returns the string representation
  19696. func (s DescribeDBSecurityGroupsOutput) String() string {
  19697. return awsutil.Prettify(s)
  19698. }
  19699. // GoString returns the string representation
  19700. func (s DescribeDBSecurityGroupsOutput) GoString() string {
  19701. return s.String()
  19702. }
  19703. // SetDBSecurityGroups sets the DBSecurityGroups field's value.
  19704. func (s *DescribeDBSecurityGroupsOutput) SetDBSecurityGroups(v []*DBSecurityGroup) *DescribeDBSecurityGroupsOutput {
  19705. s.DBSecurityGroups = v
  19706. return s
  19707. }
  19708. // SetMarker sets the Marker field's value.
  19709. func (s *DescribeDBSecurityGroupsOutput) SetMarker(v string) *DescribeDBSecurityGroupsOutput {
  19710. s.Marker = &v
  19711. return s
  19712. }
  19713. type DescribeDBSnapshotAttributesInput struct {
  19714. _ struct{} `type:"structure"`
  19715. // The identifier for the DB snapshot to describe the attributes for.
  19716. //
  19717. // DBSnapshotIdentifier is a required field
  19718. DBSnapshotIdentifier *string `type:"string" required:"true"`
  19719. }
  19720. // String returns the string representation
  19721. func (s DescribeDBSnapshotAttributesInput) String() string {
  19722. return awsutil.Prettify(s)
  19723. }
  19724. // GoString returns the string representation
  19725. func (s DescribeDBSnapshotAttributesInput) GoString() string {
  19726. return s.String()
  19727. }
  19728. // Validate inspects the fields of the type to determine if they are valid.
  19729. func (s *DescribeDBSnapshotAttributesInput) Validate() error {
  19730. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSnapshotAttributesInput"}
  19731. if s.DBSnapshotIdentifier == nil {
  19732. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  19733. }
  19734. if invalidParams.Len() > 0 {
  19735. return invalidParams
  19736. }
  19737. return nil
  19738. }
  19739. // SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value.
  19740. func (s *DescribeDBSnapshotAttributesInput) SetDBSnapshotIdentifier(v string) *DescribeDBSnapshotAttributesInput {
  19741. s.DBSnapshotIdentifier = &v
  19742. return s
  19743. }
  19744. type DescribeDBSnapshotAttributesOutput struct {
  19745. _ struct{} `type:"structure"`
  19746. // Contains the results of a successful call to the DescribeDBSnapshotAttributes
  19747. // API action.
  19748. //
  19749. // Manual DB snapshot attributes are used to authorize other AWS accounts to
  19750. // copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
  19751. // API action.
  19752. DBSnapshotAttributesResult *DBSnapshotAttributesResult `type:"structure"`
  19753. }
  19754. // String returns the string representation
  19755. func (s DescribeDBSnapshotAttributesOutput) String() string {
  19756. return awsutil.Prettify(s)
  19757. }
  19758. // GoString returns the string representation
  19759. func (s DescribeDBSnapshotAttributesOutput) GoString() string {
  19760. return s.String()
  19761. }
  19762. // SetDBSnapshotAttributesResult sets the DBSnapshotAttributesResult field's value.
  19763. func (s *DescribeDBSnapshotAttributesOutput) SetDBSnapshotAttributesResult(v *DBSnapshotAttributesResult) *DescribeDBSnapshotAttributesOutput {
  19764. s.DBSnapshotAttributesResult = v
  19765. return s
  19766. }
  19767. type DescribeDBSnapshotsInput struct {
  19768. _ struct{} `type:"structure"`
  19769. // The ID of the DB instance to retrieve the list of DB snapshots for. This
  19770. // parameter can't be used in conjunction with DBSnapshotIdentifier. This parameter
  19771. // is not case-sensitive.
  19772. //
  19773. // Constraints:
  19774. //
  19775. // * If supplied, must match the identifier of an existing DBInstance.
  19776. DBInstanceIdentifier *string `type:"string"`
  19777. // A specific DB snapshot identifier to describe. This parameter can't be used
  19778. // in conjunction with DBInstanceIdentifier. This value is stored as a lowercase
  19779. // string.
  19780. //
  19781. // Constraints:
  19782. //
  19783. // * If supplied, must match the identifier of an existing DBSnapshot.
  19784. //
  19785. // * If this identifier is for an automated snapshot, the SnapshotType parameter
  19786. // must also be specified.
  19787. DBSnapshotIdentifier *string `type:"string"`
  19788. // A specific DB resource ID to describe.
  19789. DbiResourceId *string `type:"string"`
  19790. // This parameter is not currently supported.
  19791. Filters []*Filter `locationNameList:"Filter" type:"list"`
  19792. // True to include manual DB snapshots that are public and can be copied or
  19793. // restored by any AWS account, and otherwise false. The default is false.
  19794. //
  19795. // You can share a manual DB snapshot as public by using the ModifyDBSnapshotAttribute
  19796. // API.
  19797. IncludePublic *bool `type:"boolean"`
  19798. // True to include shared manual DB snapshots from other AWS accounts that this
  19799. // AWS account has been given permission to copy or restore, and otherwise false.
  19800. // The default is false.
  19801. //
  19802. // You can give an AWS account permission to restore a manual DB snapshot from
  19803. // another AWS account by using the ModifyDBSnapshotAttribute API action.
  19804. IncludeShared *bool `type:"boolean"`
  19805. // An optional pagination token provided by a previous DescribeDBSnapshots request.
  19806. // If this parameter is specified, the response includes only records beyond
  19807. // the marker, up to the value specified by MaxRecords.
  19808. Marker *string `type:"string"`
  19809. // The maximum number of records to include in the response. If more records
  19810. // exist than the specified MaxRecords value, a pagination token called a marker
  19811. // is included in the response so that the remaining results can be retrieved.
  19812. //
  19813. // Default: 100
  19814. //
  19815. // Constraints: Minimum 20, maximum 100.
  19816. MaxRecords *int64 `type:"integer"`
  19817. // The type of snapshots to be returned. You can specify one of the following
  19818. // values:
  19819. //
  19820. // * automated - Return all DB snapshots that have been automatically taken
  19821. // by Amazon RDS for my AWS account.
  19822. //
  19823. // * manual - Return all DB snapshots that have been taken by my AWS account.
  19824. //
  19825. // * shared - Return all manual DB snapshots that have been shared to my
  19826. // AWS account.
  19827. //
  19828. // * public - Return all DB snapshots that have been marked as public.
  19829. //
  19830. // If you don't specify a SnapshotType value, then both automated and manual
  19831. // snapshots are returned. Shared and public DB snapshots are not included in
  19832. // the returned results by default. You can include shared snapshots with these
  19833. // results by setting the IncludeShared parameter to true. You can include public
  19834. // snapshots with these results by setting the IncludePublic parameter to true.
  19835. //
  19836. // The IncludeShared and IncludePublic parameters don't apply for SnapshotType
  19837. // values of manual or automated. The IncludePublic parameter doesn't apply
  19838. // when SnapshotType is set to shared. The IncludeShared parameter doesn't apply
  19839. // when SnapshotType is set to public.
  19840. SnapshotType *string `type:"string"`
  19841. }
  19842. // String returns the string representation
  19843. func (s DescribeDBSnapshotsInput) String() string {
  19844. return awsutil.Prettify(s)
  19845. }
  19846. // GoString returns the string representation
  19847. func (s DescribeDBSnapshotsInput) GoString() string {
  19848. return s.String()
  19849. }
  19850. // Validate inspects the fields of the type to determine if they are valid.
  19851. func (s *DescribeDBSnapshotsInput) Validate() error {
  19852. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSnapshotsInput"}
  19853. if s.Filters != nil {
  19854. for i, v := range s.Filters {
  19855. if v == nil {
  19856. continue
  19857. }
  19858. if err := v.Validate(); err != nil {
  19859. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  19860. }
  19861. }
  19862. }
  19863. if invalidParams.Len() > 0 {
  19864. return invalidParams
  19865. }
  19866. return nil
  19867. }
  19868. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  19869. func (s *DescribeDBSnapshotsInput) SetDBInstanceIdentifier(v string) *DescribeDBSnapshotsInput {
  19870. s.DBInstanceIdentifier = &v
  19871. return s
  19872. }
  19873. // SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value.
  19874. func (s *DescribeDBSnapshotsInput) SetDBSnapshotIdentifier(v string) *DescribeDBSnapshotsInput {
  19875. s.DBSnapshotIdentifier = &v
  19876. return s
  19877. }
  19878. // SetDbiResourceId sets the DbiResourceId field's value.
  19879. func (s *DescribeDBSnapshotsInput) SetDbiResourceId(v string) *DescribeDBSnapshotsInput {
  19880. s.DbiResourceId = &v
  19881. return s
  19882. }
  19883. // SetFilters sets the Filters field's value.
  19884. func (s *DescribeDBSnapshotsInput) SetFilters(v []*Filter) *DescribeDBSnapshotsInput {
  19885. s.Filters = v
  19886. return s
  19887. }
  19888. // SetIncludePublic sets the IncludePublic field's value.
  19889. func (s *DescribeDBSnapshotsInput) SetIncludePublic(v bool) *DescribeDBSnapshotsInput {
  19890. s.IncludePublic = &v
  19891. return s
  19892. }
  19893. // SetIncludeShared sets the IncludeShared field's value.
  19894. func (s *DescribeDBSnapshotsInput) SetIncludeShared(v bool) *DescribeDBSnapshotsInput {
  19895. s.IncludeShared = &v
  19896. return s
  19897. }
  19898. // SetMarker sets the Marker field's value.
  19899. func (s *DescribeDBSnapshotsInput) SetMarker(v string) *DescribeDBSnapshotsInput {
  19900. s.Marker = &v
  19901. return s
  19902. }
  19903. // SetMaxRecords sets the MaxRecords field's value.
  19904. func (s *DescribeDBSnapshotsInput) SetMaxRecords(v int64) *DescribeDBSnapshotsInput {
  19905. s.MaxRecords = &v
  19906. return s
  19907. }
  19908. // SetSnapshotType sets the SnapshotType field's value.
  19909. func (s *DescribeDBSnapshotsInput) SetSnapshotType(v string) *DescribeDBSnapshotsInput {
  19910. s.SnapshotType = &v
  19911. return s
  19912. }
  19913. // Contains the result of a successful invocation of the DescribeDBSnapshots
  19914. // action.
  19915. type DescribeDBSnapshotsOutput struct {
  19916. _ struct{} `type:"structure"`
  19917. // A list of DBSnapshot instances.
  19918. DBSnapshots []*DBSnapshot `locationNameList:"DBSnapshot" type:"list"`
  19919. // An optional pagination token provided by a previous request. If this parameter
  19920. // is specified, the response includes only records beyond the marker, up to
  19921. // the value specified by MaxRecords.
  19922. Marker *string `type:"string"`
  19923. }
  19924. // String returns the string representation
  19925. func (s DescribeDBSnapshotsOutput) String() string {
  19926. return awsutil.Prettify(s)
  19927. }
  19928. // GoString returns the string representation
  19929. func (s DescribeDBSnapshotsOutput) GoString() string {
  19930. return s.String()
  19931. }
  19932. // SetDBSnapshots sets the DBSnapshots field's value.
  19933. func (s *DescribeDBSnapshotsOutput) SetDBSnapshots(v []*DBSnapshot) *DescribeDBSnapshotsOutput {
  19934. s.DBSnapshots = v
  19935. return s
  19936. }
  19937. // SetMarker sets the Marker field's value.
  19938. func (s *DescribeDBSnapshotsOutput) SetMarker(v string) *DescribeDBSnapshotsOutput {
  19939. s.Marker = &v
  19940. return s
  19941. }
  19942. type DescribeDBSubnetGroupsInput struct {
  19943. _ struct{} `type:"structure"`
  19944. // The name of the DB subnet group to return details for.
  19945. DBSubnetGroupName *string `type:"string"`
  19946. // This parameter is not currently supported.
  19947. Filters []*Filter `locationNameList:"Filter" type:"list"`
  19948. // An optional pagination token provided by a previous DescribeDBSubnetGroups
  19949. // request. If this parameter is specified, the response includes only records
  19950. // beyond the marker, up to the value specified by MaxRecords.
  19951. Marker *string `type:"string"`
  19952. // The maximum number of records to include in the response. If more records
  19953. // exist than the specified MaxRecords value, a pagination token called a marker
  19954. // is included in the response so that the remaining results can be retrieved.
  19955. //
  19956. // Default: 100
  19957. //
  19958. // Constraints: Minimum 20, maximum 100.
  19959. MaxRecords *int64 `type:"integer"`
  19960. }
  19961. // String returns the string representation
  19962. func (s DescribeDBSubnetGroupsInput) String() string {
  19963. return awsutil.Prettify(s)
  19964. }
  19965. // GoString returns the string representation
  19966. func (s DescribeDBSubnetGroupsInput) GoString() string {
  19967. return s.String()
  19968. }
  19969. // Validate inspects the fields of the type to determine if they are valid.
  19970. func (s *DescribeDBSubnetGroupsInput) Validate() error {
  19971. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSubnetGroupsInput"}
  19972. if s.Filters != nil {
  19973. for i, v := range s.Filters {
  19974. if v == nil {
  19975. continue
  19976. }
  19977. if err := v.Validate(); err != nil {
  19978. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  19979. }
  19980. }
  19981. }
  19982. if invalidParams.Len() > 0 {
  19983. return invalidParams
  19984. }
  19985. return nil
  19986. }
  19987. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  19988. func (s *DescribeDBSubnetGroupsInput) SetDBSubnetGroupName(v string) *DescribeDBSubnetGroupsInput {
  19989. s.DBSubnetGroupName = &v
  19990. return s
  19991. }
  19992. // SetFilters sets the Filters field's value.
  19993. func (s *DescribeDBSubnetGroupsInput) SetFilters(v []*Filter) *DescribeDBSubnetGroupsInput {
  19994. s.Filters = v
  19995. return s
  19996. }
  19997. // SetMarker sets the Marker field's value.
  19998. func (s *DescribeDBSubnetGroupsInput) SetMarker(v string) *DescribeDBSubnetGroupsInput {
  19999. s.Marker = &v
  20000. return s
  20001. }
  20002. // SetMaxRecords sets the MaxRecords field's value.
  20003. func (s *DescribeDBSubnetGroupsInput) SetMaxRecords(v int64) *DescribeDBSubnetGroupsInput {
  20004. s.MaxRecords = &v
  20005. return s
  20006. }
  20007. // Contains the result of a successful invocation of the DescribeDBSubnetGroups
  20008. // action.
  20009. type DescribeDBSubnetGroupsOutput struct {
  20010. _ struct{} `type:"structure"`
  20011. // A list of DBSubnetGroup instances.
  20012. DBSubnetGroups []*DBSubnetGroup `locationNameList:"DBSubnetGroup" type:"list"`
  20013. // An optional pagination token provided by a previous request. If this parameter
  20014. // is specified, the response includes only records beyond the marker, up to
  20015. // the value specified by MaxRecords.
  20016. Marker *string `type:"string"`
  20017. }
  20018. // String returns the string representation
  20019. func (s DescribeDBSubnetGroupsOutput) String() string {
  20020. return awsutil.Prettify(s)
  20021. }
  20022. // GoString returns the string representation
  20023. func (s DescribeDBSubnetGroupsOutput) GoString() string {
  20024. return s.String()
  20025. }
  20026. // SetDBSubnetGroups sets the DBSubnetGroups field's value.
  20027. func (s *DescribeDBSubnetGroupsOutput) SetDBSubnetGroups(v []*DBSubnetGroup) *DescribeDBSubnetGroupsOutput {
  20028. s.DBSubnetGroups = v
  20029. return s
  20030. }
  20031. // SetMarker sets the Marker field's value.
  20032. func (s *DescribeDBSubnetGroupsOutput) SetMarker(v string) *DescribeDBSubnetGroupsOutput {
  20033. s.Marker = &v
  20034. return s
  20035. }
  20036. type DescribeEngineDefaultClusterParametersInput struct {
  20037. _ struct{} `type:"structure"`
  20038. // The name of the DB cluster parameter group family to return engine parameter
  20039. // information for.
  20040. //
  20041. // DBParameterGroupFamily is a required field
  20042. DBParameterGroupFamily *string `type:"string" required:"true"`
  20043. // This parameter is not currently supported.
  20044. Filters []*Filter `locationNameList:"Filter" type:"list"`
  20045. // An optional pagination token provided by a previous DescribeEngineDefaultClusterParameters
  20046. // request. If this parameter is specified, the response includes only records
  20047. // beyond the marker, up to the value specified by MaxRecords.
  20048. Marker *string `type:"string"`
  20049. // The maximum number of records to include in the response. If more records
  20050. // exist than the specified MaxRecords value, a pagination token called a marker
  20051. // is included in the response so that the remaining results can be retrieved.
  20052. //
  20053. // Default: 100
  20054. //
  20055. // Constraints: Minimum 20, maximum 100.
  20056. MaxRecords *int64 `type:"integer"`
  20057. }
  20058. // String returns the string representation
  20059. func (s DescribeEngineDefaultClusterParametersInput) String() string {
  20060. return awsutil.Prettify(s)
  20061. }
  20062. // GoString returns the string representation
  20063. func (s DescribeEngineDefaultClusterParametersInput) GoString() string {
  20064. return s.String()
  20065. }
  20066. // Validate inspects the fields of the type to determine if they are valid.
  20067. func (s *DescribeEngineDefaultClusterParametersInput) Validate() error {
  20068. invalidParams := request.ErrInvalidParams{Context: "DescribeEngineDefaultClusterParametersInput"}
  20069. if s.DBParameterGroupFamily == nil {
  20070. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  20071. }
  20072. if s.Filters != nil {
  20073. for i, v := range s.Filters {
  20074. if v == nil {
  20075. continue
  20076. }
  20077. if err := v.Validate(); err != nil {
  20078. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  20079. }
  20080. }
  20081. }
  20082. if invalidParams.Len() > 0 {
  20083. return invalidParams
  20084. }
  20085. return nil
  20086. }
  20087. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  20088. func (s *DescribeEngineDefaultClusterParametersInput) SetDBParameterGroupFamily(v string) *DescribeEngineDefaultClusterParametersInput {
  20089. s.DBParameterGroupFamily = &v
  20090. return s
  20091. }
  20092. // SetFilters sets the Filters field's value.
  20093. func (s *DescribeEngineDefaultClusterParametersInput) SetFilters(v []*Filter) *DescribeEngineDefaultClusterParametersInput {
  20094. s.Filters = v
  20095. return s
  20096. }
  20097. // SetMarker sets the Marker field's value.
  20098. func (s *DescribeEngineDefaultClusterParametersInput) SetMarker(v string) *DescribeEngineDefaultClusterParametersInput {
  20099. s.Marker = &v
  20100. return s
  20101. }
  20102. // SetMaxRecords sets the MaxRecords field's value.
  20103. func (s *DescribeEngineDefaultClusterParametersInput) SetMaxRecords(v int64) *DescribeEngineDefaultClusterParametersInput {
  20104. s.MaxRecords = &v
  20105. return s
  20106. }
  20107. type DescribeEngineDefaultClusterParametersOutput struct {
  20108. _ struct{} `type:"structure"`
  20109. // Contains the result of a successful invocation of the DescribeEngineDefaultParameters
  20110. // action.
  20111. EngineDefaults *EngineDefaults `type:"structure"`
  20112. }
  20113. // String returns the string representation
  20114. func (s DescribeEngineDefaultClusterParametersOutput) String() string {
  20115. return awsutil.Prettify(s)
  20116. }
  20117. // GoString returns the string representation
  20118. func (s DescribeEngineDefaultClusterParametersOutput) GoString() string {
  20119. return s.String()
  20120. }
  20121. // SetEngineDefaults sets the EngineDefaults field's value.
  20122. func (s *DescribeEngineDefaultClusterParametersOutput) SetEngineDefaults(v *EngineDefaults) *DescribeEngineDefaultClusterParametersOutput {
  20123. s.EngineDefaults = v
  20124. return s
  20125. }
  20126. type DescribeEngineDefaultParametersInput struct {
  20127. _ struct{} `type:"structure"`
  20128. // The name of the DB parameter group family.
  20129. //
  20130. // DBParameterGroupFamily is a required field
  20131. DBParameterGroupFamily *string `type:"string" required:"true"`
  20132. // This parameter is not currently supported.
  20133. Filters []*Filter `locationNameList:"Filter" type:"list"`
  20134. // An optional pagination token provided by a previous DescribeEngineDefaultParameters
  20135. // request. If this parameter is specified, the response includes only records
  20136. // beyond the marker, up to the value specified by MaxRecords.
  20137. Marker *string `type:"string"`
  20138. // The maximum number of records to include in the response. If more records
  20139. // exist than the specified MaxRecords value, a pagination token called a marker
  20140. // is included in the response so that the remaining results can be retrieved.
  20141. //
  20142. // Default: 100
  20143. //
  20144. // Constraints: Minimum 20, maximum 100.
  20145. MaxRecords *int64 `type:"integer"`
  20146. }
  20147. // String returns the string representation
  20148. func (s DescribeEngineDefaultParametersInput) String() string {
  20149. return awsutil.Prettify(s)
  20150. }
  20151. // GoString returns the string representation
  20152. func (s DescribeEngineDefaultParametersInput) GoString() string {
  20153. return s.String()
  20154. }
  20155. // Validate inspects the fields of the type to determine if they are valid.
  20156. func (s *DescribeEngineDefaultParametersInput) Validate() error {
  20157. invalidParams := request.ErrInvalidParams{Context: "DescribeEngineDefaultParametersInput"}
  20158. if s.DBParameterGroupFamily == nil {
  20159. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  20160. }
  20161. if s.Filters != nil {
  20162. for i, v := range s.Filters {
  20163. if v == nil {
  20164. continue
  20165. }
  20166. if err := v.Validate(); err != nil {
  20167. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  20168. }
  20169. }
  20170. }
  20171. if invalidParams.Len() > 0 {
  20172. return invalidParams
  20173. }
  20174. return nil
  20175. }
  20176. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  20177. func (s *DescribeEngineDefaultParametersInput) SetDBParameterGroupFamily(v string) *DescribeEngineDefaultParametersInput {
  20178. s.DBParameterGroupFamily = &v
  20179. return s
  20180. }
  20181. // SetFilters sets the Filters field's value.
  20182. func (s *DescribeEngineDefaultParametersInput) SetFilters(v []*Filter) *DescribeEngineDefaultParametersInput {
  20183. s.Filters = v
  20184. return s
  20185. }
  20186. // SetMarker sets the Marker field's value.
  20187. func (s *DescribeEngineDefaultParametersInput) SetMarker(v string) *DescribeEngineDefaultParametersInput {
  20188. s.Marker = &v
  20189. return s
  20190. }
  20191. // SetMaxRecords sets the MaxRecords field's value.
  20192. func (s *DescribeEngineDefaultParametersInput) SetMaxRecords(v int64) *DescribeEngineDefaultParametersInput {
  20193. s.MaxRecords = &v
  20194. return s
  20195. }
  20196. type DescribeEngineDefaultParametersOutput struct {
  20197. _ struct{} `type:"structure"`
  20198. // Contains the result of a successful invocation of the DescribeEngineDefaultParameters
  20199. // action.
  20200. EngineDefaults *EngineDefaults `type:"structure"`
  20201. }
  20202. // String returns the string representation
  20203. func (s DescribeEngineDefaultParametersOutput) String() string {
  20204. return awsutil.Prettify(s)
  20205. }
  20206. // GoString returns the string representation
  20207. func (s DescribeEngineDefaultParametersOutput) GoString() string {
  20208. return s.String()
  20209. }
  20210. // SetEngineDefaults sets the EngineDefaults field's value.
  20211. func (s *DescribeEngineDefaultParametersOutput) SetEngineDefaults(v *EngineDefaults) *DescribeEngineDefaultParametersOutput {
  20212. s.EngineDefaults = v
  20213. return s
  20214. }
  20215. type DescribeEventCategoriesInput struct {
  20216. _ struct{} `type:"structure"`
  20217. // This parameter is not currently supported.
  20218. Filters []*Filter `locationNameList:"Filter" type:"list"`
  20219. // The type of source that is generating the events.
  20220. //
  20221. // Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
  20222. SourceType *string `type:"string"`
  20223. }
  20224. // String returns the string representation
  20225. func (s DescribeEventCategoriesInput) String() string {
  20226. return awsutil.Prettify(s)
  20227. }
  20228. // GoString returns the string representation
  20229. func (s DescribeEventCategoriesInput) GoString() string {
  20230. return s.String()
  20231. }
  20232. // Validate inspects the fields of the type to determine if they are valid.
  20233. func (s *DescribeEventCategoriesInput) Validate() error {
  20234. invalidParams := request.ErrInvalidParams{Context: "DescribeEventCategoriesInput"}
  20235. if s.Filters != nil {
  20236. for i, v := range s.Filters {
  20237. if v == nil {
  20238. continue
  20239. }
  20240. if err := v.Validate(); err != nil {
  20241. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  20242. }
  20243. }
  20244. }
  20245. if invalidParams.Len() > 0 {
  20246. return invalidParams
  20247. }
  20248. return nil
  20249. }
  20250. // SetFilters sets the Filters field's value.
  20251. func (s *DescribeEventCategoriesInput) SetFilters(v []*Filter) *DescribeEventCategoriesInput {
  20252. s.Filters = v
  20253. return s
  20254. }
  20255. // SetSourceType sets the SourceType field's value.
  20256. func (s *DescribeEventCategoriesInput) SetSourceType(v string) *DescribeEventCategoriesInput {
  20257. s.SourceType = &v
  20258. return s
  20259. }
  20260. // Data returned from the DescribeEventCategories action.
  20261. type DescribeEventCategoriesOutput struct {
  20262. _ struct{} `type:"structure"`
  20263. // A list of EventCategoriesMap data types.
  20264. EventCategoriesMapList []*EventCategoriesMap `locationNameList:"EventCategoriesMap" type:"list"`
  20265. }
  20266. // String returns the string representation
  20267. func (s DescribeEventCategoriesOutput) String() string {
  20268. return awsutil.Prettify(s)
  20269. }
  20270. // GoString returns the string representation
  20271. func (s DescribeEventCategoriesOutput) GoString() string {
  20272. return s.String()
  20273. }
  20274. // SetEventCategoriesMapList sets the EventCategoriesMapList field's value.
  20275. func (s *DescribeEventCategoriesOutput) SetEventCategoriesMapList(v []*EventCategoriesMap) *DescribeEventCategoriesOutput {
  20276. s.EventCategoriesMapList = v
  20277. return s
  20278. }
  20279. type DescribeEventSubscriptionsInput struct {
  20280. _ struct{} `type:"structure"`
  20281. // This parameter is not currently supported.
  20282. Filters []*Filter `locationNameList:"Filter" type:"list"`
  20283. // An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions
  20284. // request. If this parameter is specified, the response includes only records
  20285. // beyond the marker, up to the value specified by MaxRecords .
  20286. Marker *string `type:"string"`
  20287. // The maximum number of records to include in the response. If more records
  20288. // exist than the specified MaxRecords value, a pagination token called a marker
  20289. // is included in the response so that the remaining results can be retrieved.
  20290. //
  20291. // Default: 100
  20292. //
  20293. // Constraints: Minimum 20, maximum 100.
  20294. MaxRecords *int64 `type:"integer"`
  20295. // The name of the RDS event notification subscription you want to describe.
  20296. SubscriptionName *string `type:"string"`
  20297. }
  20298. // String returns the string representation
  20299. func (s DescribeEventSubscriptionsInput) String() string {
  20300. return awsutil.Prettify(s)
  20301. }
  20302. // GoString returns the string representation
  20303. func (s DescribeEventSubscriptionsInput) GoString() string {
  20304. return s.String()
  20305. }
  20306. // Validate inspects the fields of the type to determine if they are valid.
  20307. func (s *DescribeEventSubscriptionsInput) Validate() error {
  20308. invalidParams := request.ErrInvalidParams{Context: "DescribeEventSubscriptionsInput"}
  20309. if s.Filters != nil {
  20310. for i, v := range s.Filters {
  20311. if v == nil {
  20312. continue
  20313. }
  20314. if err := v.Validate(); err != nil {
  20315. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  20316. }
  20317. }
  20318. }
  20319. if invalidParams.Len() > 0 {
  20320. return invalidParams
  20321. }
  20322. return nil
  20323. }
  20324. // SetFilters sets the Filters field's value.
  20325. func (s *DescribeEventSubscriptionsInput) SetFilters(v []*Filter) *DescribeEventSubscriptionsInput {
  20326. s.Filters = v
  20327. return s
  20328. }
  20329. // SetMarker sets the Marker field's value.
  20330. func (s *DescribeEventSubscriptionsInput) SetMarker(v string) *DescribeEventSubscriptionsInput {
  20331. s.Marker = &v
  20332. return s
  20333. }
  20334. // SetMaxRecords sets the MaxRecords field's value.
  20335. func (s *DescribeEventSubscriptionsInput) SetMaxRecords(v int64) *DescribeEventSubscriptionsInput {
  20336. s.MaxRecords = &v
  20337. return s
  20338. }
  20339. // SetSubscriptionName sets the SubscriptionName field's value.
  20340. func (s *DescribeEventSubscriptionsInput) SetSubscriptionName(v string) *DescribeEventSubscriptionsInput {
  20341. s.SubscriptionName = &v
  20342. return s
  20343. }
  20344. // Data returned by the DescribeEventSubscriptions action.
  20345. type DescribeEventSubscriptionsOutput struct {
  20346. _ struct{} `type:"structure"`
  20347. // A list of EventSubscriptions data types.
  20348. EventSubscriptionsList []*EventSubscription `locationNameList:"EventSubscription" type:"list"`
  20349. // An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions
  20350. // request. If this parameter is specified, the response includes only records
  20351. // beyond the marker, up to the value specified by MaxRecords.
  20352. Marker *string `type:"string"`
  20353. }
  20354. // String returns the string representation
  20355. func (s DescribeEventSubscriptionsOutput) String() string {
  20356. return awsutil.Prettify(s)
  20357. }
  20358. // GoString returns the string representation
  20359. func (s DescribeEventSubscriptionsOutput) GoString() string {
  20360. return s.String()
  20361. }
  20362. // SetEventSubscriptionsList sets the EventSubscriptionsList field's value.
  20363. func (s *DescribeEventSubscriptionsOutput) SetEventSubscriptionsList(v []*EventSubscription) *DescribeEventSubscriptionsOutput {
  20364. s.EventSubscriptionsList = v
  20365. return s
  20366. }
  20367. // SetMarker sets the Marker field's value.
  20368. func (s *DescribeEventSubscriptionsOutput) SetMarker(v string) *DescribeEventSubscriptionsOutput {
  20369. s.Marker = &v
  20370. return s
  20371. }
  20372. type DescribeEventsInput struct {
  20373. _ struct{} `type:"structure"`
  20374. // The number of minutes to retrieve events for.
  20375. //
  20376. // Default: 60
  20377. Duration *int64 `type:"integer"`
  20378. // The end of the time interval for which to retrieve events, specified in ISO
  20379. // 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia
  20380. // page. (http://en.wikipedia.org/wiki/ISO_8601)
  20381. //
  20382. // Example: 2009-07-08T18:00Z
  20383. EndTime *time.Time `type:"timestamp"`
  20384. // A list of event categories that trigger notifications for a event notification
  20385. // subscription.
  20386. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  20387. // This parameter is not currently supported.
  20388. Filters []*Filter `locationNameList:"Filter" type:"list"`
  20389. // An optional pagination token provided by a previous DescribeEvents request.
  20390. // If this parameter is specified, the response includes only records beyond
  20391. // the marker, up to the value specified by MaxRecords.
  20392. Marker *string `type:"string"`
  20393. // The maximum number of records to include in the response. If more records
  20394. // exist than the specified MaxRecords value, a pagination token called a marker
  20395. // is included in the response so that the remaining results can be retrieved.
  20396. //
  20397. // Default: 100
  20398. //
  20399. // Constraints: Minimum 20, maximum 100.
  20400. MaxRecords *int64 `type:"integer"`
  20401. // The identifier of the event source for which events are returned. If not
  20402. // specified, then all sources are included in the response.
  20403. //
  20404. // Constraints:
  20405. //
  20406. // * If SourceIdentifier is supplied, SourceType must also be provided.
  20407. //
  20408. // * If the source type is DBInstance, then a DBInstanceIdentifier must be
  20409. // supplied.
  20410. //
  20411. // * If the source type is DBSecurityGroup, a DBSecurityGroupName must be
  20412. // supplied.
  20413. //
  20414. // * If the source type is DBParameterGroup, a DBParameterGroupName must
  20415. // be supplied.
  20416. //
  20417. // * If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied.
  20418. //
  20419. // * Can't end with a hyphen or contain two consecutive hyphens.
  20420. SourceIdentifier *string `type:"string"`
  20421. // The event source to retrieve events for. If no value is specified, all events
  20422. // are returned.
  20423. SourceType *string `type:"string" enum:"SourceType"`
  20424. // The beginning of the time interval to retrieve events for, specified in ISO
  20425. // 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia
  20426. // page. (http://en.wikipedia.org/wiki/ISO_8601)
  20427. //
  20428. // Example: 2009-07-08T18:00Z
  20429. StartTime *time.Time `type:"timestamp"`
  20430. }
  20431. // String returns the string representation
  20432. func (s DescribeEventsInput) String() string {
  20433. return awsutil.Prettify(s)
  20434. }
  20435. // GoString returns the string representation
  20436. func (s DescribeEventsInput) GoString() string {
  20437. return s.String()
  20438. }
  20439. // Validate inspects the fields of the type to determine if they are valid.
  20440. func (s *DescribeEventsInput) Validate() error {
  20441. invalidParams := request.ErrInvalidParams{Context: "DescribeEventsInput"}
  20442. if s.Filters != nil {
  20443. for i, v := range s.Filters {
  20444. if v == nil {
  20445. continue
  20446. }
  20447. if err := v.Validate(); err != nil {
  20448. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  20449. }
  20450. }
  20451. }
  20452. if invalidParams.Len() > 0 {
  20453. return invalidParams
  20454. }
  20455. return nil
  20456. }
  20457. // SetDuration sets the Duration field's value.
  20458. func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput {
  20459. s.Duration = &v
  20460. return s
  20461. }
  20462. // SetEndTime sets the EndTime field's value.
  20463. func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput {
  20464. s.EndTime = &v
  20465. return s
  20466. }
  20467. // SetEventCategories sets the EventCategories field's value.
  20468. func (s *DescribeEventsInput) SetEventCategories(v []*string) *DescribeEventsInput {
  20469. s.EventCategories = v
  20470. return s
  20471. }
  20472. // SetFilters sets the Filters field's value.
  20473. func (s *DescribeEventsInput) SetFilters(v []*Filter) *DescribeEventsInput {
  20474. s.Filters = v
  20475. return s
  20476. }
  20477. // SetMarker sets the Marker field's value.
  20478. func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput {
  20479. s.Marker = &v
  20480. return s
  20481. }
  20482. // SetMaxRecords sets the MaxRecords field's value.
  20483. func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput {
  20484. s.MaxRecords = &v
  20485. return s
  20486. }
  20487. // SetSourceIdentifier sets the SourceIdentifier field's value.
  20488. func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput {
  20489. s.SourceIdentifier = &v
  20490. return s
  20491. }
  20492. // SetSourceType sets the SourceType field's value.
  20493. func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput {
  20494. s.SourceType = &v
  20495. return s
  20496. }
  20497. // SetStartTime sets the StartTime field's value.
  20498. func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput {
  20499. s.StartTime = &v
  20500. return s
  20501. }
  20502. // Contains the result of a successful invocation of the DescribeEvents action.
  20503. type DescribeEventsOutput struct {
  20504. _ struct{} `type:"structure"`
  20505. // A list of Event instances.
  20506. Events []*Event `locationNameList:"Event" type:"list"`
  20507. // An optional pagination token provided by a previous Events request. If this
  20508. // parameter is specified, the response includes only records beyond the marker,
  20509. // up to the value specified by MaxRecords .
  20510. Marker *string `type:"string"`
  20511. }
  20512. // String returns the string representation
  20513. func (s DescribeEventsOutput) String() string {
  20514. return awsutil.Prettify(s)
  20515. }
  20516. // GoString returns the string representation
  20517. func (s DescribeEventsOutput) GoString() string {
  20518. return s.String()
  20519. }
  20520. // SetEvents sets the Events field's value.
  20521. func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput {
  20522. s.Events = v
  20523. return s
  20524. }
  20525. // SetMarker sets the Marker field's value.
  20526. func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput {
  20527. s.Marker = &v
  20528. return s
  20529. }
  20530. type DescribeGlobalClustersInput struct {
  20531. _ struct{} `type:"structure"`
  20532. // A filter that specifies one or more global DB clusters to describe.
  20533. //
  20534. // Supported filters:
  20535. //
  20536. // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon
  20537. // Resource Names (ARNs). The results list will only include information
  20538. // about the DB clusters identified by these ARNs.
  20539. Filters []*Filter `locationNameList:"Filter" type:"list"`
  20540. // The user-supplied DB cluster identifier. If this parameter is specified,
  20541. // information from only the specific DB cluster is returned. This parameter
  20542. // isn't case-sensitive.
  20543. //
  20544. // Constraints:
  20545. //
  20546. // * If supplied, must match an existing DBClusterIdentifier.
  20547. GlobalClusterIdentifier *string `type:"string"`
  20548. // An optional pagination token provided by a previous DescribeGlobalClusters
  20549. // request. If this parameter is specified, the response includes only records
  20550. // beyond the marker, up to the value specified by MaxRecords.
  20551. Marker *string `type:"string"`
  20552. // The maximum number of records to include in the response. If more records
  20553. // exist than the specified MaxRecords value, a pagination token called a marker
  20554. // is included in the response so that the remaining results can be retrieved.
  20555. //
  20556. // Default: 100
  20557. //
  20558. // Constraints: Minimum 20, maximum 100.
  20559. MaxRecords *int64 `type:"integer"`
  20560. }
  20561. // String returns the string representation
  20562. func (s DescribeGlobalClustersInput) String() string {
  20563. return awsutil.Prettify(s)
  20564. }
  20565. // GoString returns the string representation
  20566. func (s DescribeGlobalClustersInput) GoString() string {
  20567. return s.String()
  20568. }
  20569. // Validate inspects the fields of the type to determine if they are valid.
  20570. func (s *DescribeGlobalClustersInput) Validate() error {
  20571. invalidParams := request.ErrInvalidParams{Context: "DescribeGlobalClustersInput"}
  20572. if s.Filters != nil {
  20573. for i, v := range s.Filters {
  20574. if v == nil {
  20575. continue
  20576. }
  20577. if err := v.Validate(); err != nil {
  20578. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  20579. }
  20580. }
  20581. }
  20582. if invalidParams.Len() > 0 {
  20583. return invalidParams
  20584. }
  20585. return nil
  20586. }
  20587. // SetFilters sets the Filters field's value.
  20588. func (s *DescribeGlobalClustersInput) SetFilters(v []*Filter) *DescribeGlobalClustersInput {
  20589. s.Filters = v
  20590. return s
  20591. }
  20592. // SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value.
  20593. func (s *DescribeGlobalClustersInput) SetGlobalClusterIdentifier(v string) *DescribeGlobalClustersInput {
  20594. s.GlobalClusterIdentifier = &v
  20595. return s
  20596. }
  20597. // SetMarker sets the Marker field's value.
  20598. func (s *DescribeGlobalClustersInput) SetMarker(v string) *DescribeGlobalClustersInput {
  20599. s.Marker = &v
  20600. return s
  20601. }
  20602. // SetMaxRecords sets the MaxRecords field's value.
  20603. func (s *DescribeGlobalClustersInput) SetMaxRecords(v int64) *DescribeGlobalClustersInput {
  20604. s.MaxRecords = &v
  20605. return s
  20606. }
  20607. type DescribeGlobalClustersOutput struct {
  20608. _ struct{} `type:"structure"`
  20609. // The list of global clusters returned by this request.
  20610. GlobalClusters []*GlobalCluster `locationNameList:"GlobalClusterMember" type:"list"`
  20611. // An optional pagination token provided by a previous DescribeGlobalClusters
  20612. // request. If this parameter is specified, the response includes only records
  20613. // beyond the marker, up to the value specified by MaxRecords.
  20614. Marker *string `type:"string"`
  20615. }
  20616. // String returns the string representation
  20617. func (s DescribeGlobalClustersOutput) String() string {
  20618. return awsutil.Prettify(s)
  20619. }
  20620. // GoString returns the string representation
  20621. func (s DescribeGlobalClustersOutput) GoString() string {
  20622. return s.String()
  20623. }
  20624. // SetGlobalClusters sets the GlobalClusters field's value.
  20625. func (s *DescribeGlobalClustersOutput) SetGlobalClusters(v []*GlobalCluster) *DescribeGlobalClustersOutput {
  20626. s.GlobalClusters = v
  20627. return s
  20628. }
  20629. // SetMarker sets the Marker field's value.
  20630. func (s *DescribeGlobalClustersOutput) SetMarker(v string) *DescribeGlobalClustersOutput {
  20631. s.Marker = &v
  20632. return s
  20633. }
  20634. type DescribeOptionGroupOptionsInput struct {
  20635. _ struct{} `type:"structure"`
  20636. // A required parameter. Options available for the given engine name are described.
  20637. //
  20638. // EngineName is a required field
  20639. EngineName *string `type:"string" required:"true"`
  20640. // This parameter is not currently supported.
  20641. Filters []*Filter `locationNameList:"Filter" type:"list"`
  20642. // If specified, filters the results to include only options for the specified
  20643. // major engine version.
  20644. MajorEngineVersion *string `type:"string"`
  20645. // An optional pagination token provided by a previous request. If this parameter
  20646. // is specified, the response includes only records beyond the marker, up to
  20647. // the value specified by MaxRecords.
  20648. Marker *string `type:"string"`
  20649. // The maximum number of records to include in the response. If more records
  20650. // exist than the specified MaxRecords value, a pagination token called a marker
  20651. // is included in the response so that the remaining results can be retrieved.
  20652. //
  20653. // Default: 100
  20654. //
  20655. // Constraints: Minimum 20, maximum 100.
  20656. MaxRecords *int64 `type:"integer"`
  20657. }
  20658. // String returns the string representation
  20659. func (s DescribeOptionGroupOptionsInput) String() string {
  20660. return awsutil.Prettify(s)
  20661. }
  20662. // GoString returns the string representation
  20663. func (s DescribeOptionGroupOptionsInput) GoString() string {
  20664. return s.String()
  20665. }
  20666. // Validate inspects the fields of the type to determine if they are valid.
  20667. func (s *DescribeOptionGroupOptionsInput) Validate() error {
  20668. invalidParams := request.ErrInvalidParams{Context: "DescribeOptionGroupOptionsInput"}
  20669. if s.EngineName == nil {
  20670. invalidParams.Add(request.NewErrParamRequired("EngineName"))
  20671. }
  20672. if s.Filters != nil {
  20673. for i, v := range s.Filters {
  20674. if v == nil {
  20675. continue
  20676. }
  20677. if err := v.Validate(); err != nil {
  20678. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  20679. }
  20680. }
  20681. }
  20682. if invalidParams.Len() > 0 {
  20683. return invalidParams
  20684. }
  20685. return nil
  20686. }
  20687. // SetEngineName sets the EngineName field's value.
  20688. func (s *DescribeOptionGroupOptionsInput) SetEngineName(v string) *DescribeOptionGroupOptionsInput {
  20689. s.EngineName = &v
  20690. return s
  20691. }
  20692. // SetFilters sets the Filters field's value.
  20693. func (s *DescribeOptionGroupOptionsInput) SetFilters(v []*Filter) *DescribeOptionGroupOptionsInput {
  20694. s.Filters = v
  20695. return s
  20696. }
  20697. // SetMajorEngineVersion sets the MajorEngineVersion field's value.
  20698. func (s *DescribeOptionGroupOptionsInput) SetMajorEngineVersion(v string) *DescribeOptionGroupOptionsInput {
  20699. s.MajorEngineVersion = &v
  20700. return s
  20701. }
  20702. // SetMarker sets the Marker field's value.
  20703. func (s *DescribeOptionGroupOptionsInput) SetMarker(v string) *DescribeOptionGroupOptionsInput {
  20704. s.Marker = &v
  20705. return s
  20706. }
  20707. // SetMaxRecords sets the MaxRecords field's value.
  20708. func (s *DescribeOptionGroupOptionsInput) SetMaxRecords(v int64) *DescribeOptionGroupOptionsInput {
  20709. s.MaxRecords = &v
  20710. return s
  20711. }
  20712. type DescribeOptionGroupOptionsOutput struct {
  20713. _ struct{} `type:"structure"`
  20714. // An optional pagination token provided by a previous request. If this parameter
  20715. // is specified, the response includes only records beyond the marker, up to
  20716. // the value specified by MaxRecords.
  20717. Marker *string `type:"string"`
  20718. // List of available option group options.
  20719. OptionGroupOptions []*OptionGroupOption `locationNameList:"OptionGroupOption" type:"list"`
  20720. }
  20721. // String returns the string representation
  20722. func (s DescribeOptionGroupOptionsOutput) String() string {
  20723. return awsutil.Prettify(s)
  20724. }
  20725. // GoString returns the string representation
  20726. func (s DescribeOptionGroupOptionsOutput) GoString() string {
  20727. return s.String()
  20728. }
  20729. // SetMarker sets the Marker field's value.
  20730. func (s *DescribeOptionGroupOptionsOutput) SetMarker(v string) *DescribeOptionGroupOptionsOutput {
  20731. s.Marker = &v
  20732. return s
  20733. }
  20734. // SetOptionGroupOptions sets the OptionGroupOptions field's value.
  20735. func (s *DescribeOptionGroupOptionsOutput) SetOptionGroupOptions(v []*OptionGroupOption) *DescribeOptionGroupOptionsOutput {
  20736. s.OptionGroupOptions = v
  20737. return s
  20738. }
  20739. type DescribeOptionGroupsInput struct {
  20740. _ struct{} `type:"structure"`
  20741. // Filters the list of option groups to only include groups associated with
  20742. // a specific database engine.
  20743. EngineName *string `type:"string"`
  20744. // This parameter is not currently supported.
  20745. Filters []*Filter `locationNameList:"Filter" type:"list"`
  20746. // Filters the list of option groups to only include groups associated with
  20747. // a specific database engine version. If specified, then EngineName must also
  20748. // be specified.
  20749. MajorEngineVersion *string `type:"string"`
  20750. // An optional pagination token provided by a previous DescribeOptionGroups
  20751. // request. If this parameter is specified, the response includes only records
  20752. // beyond the marker, up to the value specified by MaxRecords.
  20753. Marker *string `type:"string"`
  20754. // The maximum number of records to include in the response. If more records
  20755. // exist than the specified MaxRecords value, a pagination token called a marker
  20756. // is included in the response so that the remaining results can be retrieved.
  20757. //
  20758. // Default: 100
  20759. //
  20760. // Constraints: Minimum 20, maximum 100.
  20761. MaxRecords *int64 `type:"integer"`
  20762. // The name of the option group to describe. Can't be supplied together with
  20763. // EngineName or MajorEngineVersion.
  20764. OptionGroupName *string `type:"string"`
  20765. }
  20766. // String returns the string representation
  20767. func (s DescribeOptionGroupsInput) String() string {
  20768. return awsutil.Prettify(s)
  20769. }
  20770. // GoString returns the string representation
  20771. func (s DescribeOptionGroupsInput) GoString() string {
  20772. return s.String()
  20773. }
  20774. // Validate inspects the fields of the type to determine if they are valid.
  20775. func (s *DescribeOptionGroupsInput) Validate() error {
  20776. invalidParams := request.ErrInvalidParams{Context: "DescribeOptionGroupsInput"}
  20777. if s.Filters != nil {
  20778. for i, v := range s.Filters {
  20779. if v == nil {
  20780. continue
  20781. }
  20782. if err := v.Validate(); err != nil {
  20783. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  20784. }
  20785. }
  20786. }
  20787. if invalidParams.Len() > 0 {
  20788. return invalidParams
  20789. }
  20790. return nil
  20791. }
  20792. // SetEngineName sets the EngineName field's value.
  20793. func (s *DescribeOptionGroupsInput) SetEngineName(v string) *DescribeOptionGroupsInput {
  20794. s.EngineName = &v
  20795. return s
  20796. }
  20797. // SetFilters sets the Filters field's value.
  20798. func (s *DescribeOptionGroupsInput) SetFilters(v []*Filter) *DescribeOptionGroupsInput {
  20799. s.Filters = v
  20800. return s
  20801. }
  20802. // SetMajorEngineVersion sets the MajorEngineVersion field's value.
  20803. func (s *DescribeOptionGroupsInput) SetMajorEngineVersion(v string) *DescribeOptionGroupsInput {
  20804. s.MajorEngineVersion = &v
  20805. return s
  20806. }
  20807. // SetMarker sets the Marker field's value.
  20808. func (s *DescribeOptionGroupsInput) SetMarker(v string) *DescribeOptionGroupsInput {
  20809. s.Marker = &v
  20810. return s
  20811. }
  20812. // SetMaxRecords sets the MaxRecords field's value.
  20813. func (s *DescribeOptionGroupsInput) SetMaxRecords(v int64) *DescribeOptionGroupsInput {
  20814. s.MaxRecords = &v
  20815. return s
  20816. }
  20817. // SetOptionGroupName sets the OptionGroupName field's value.
  20818. func (s *DescribeOptionGroupsInput) SetOptionGroupName(v string) *DescribeOptionGroupsInput {
  20819. s.OptionGroupName = &v
  20820. return s
  20821. }
  20822. // List of option groups.
  20823. type DescribeOptionGroupsOutput struct {
  20824. _ struct{} `type:"structure"`
  20825. // An optional pagination token provided by a previous request. If this parameter
  20826. // is specified, the response includes only records beyond the marker, up to
  20827. // the value specified by MaxRecords.
  20828. Marker *string `type:"string"`
  20829. // List of option groups.
  20830. OptionGroupsList []*OptionGroup `locationNameList:"OptionGroup" type:"list"`
  20831. }
  20832. // String returns the string representation
  20833. func (s DescribeOptionGroupsOutput) String() string {
  20834. return awsutil.Prettify(s)
  20835. }
  20836. // GoString returns the string representation
  20837. func (s DescribeOptionGroupsOutput) GoString() string {
  20838. return s.String()
  20839. }
  20840. // SetMarker sets the Marker field's value.
  20841. func (s *DescribeOptionGroupsOutput) SetMarker(v string) *DescribeOptionGroupsOutput {
  20842. s.Marker = &v
  20843. return s
  20844. }
  20845. // SetOptionGroupsList sets the OptionGroupsList field's value.
  20846. func (s *DescribeOptionGroupsOutput) SetOptionGroupsList(v []*OptionGroup) *DescribeOptionGroupsOutput {
  20847. s.OptionGroupsList = v
  20848. return s
  20849. }
  20850. type DescribeOrderableDBInstanceOptionsInput struct {
  20851. _ struct{} `type:"structure"`
  20852. // The DB instance class filter value. Specify this parameter to show only the
  20853. // available offerings matching the specified DB instance class.
  20854. DBInstanceClass *string `type:"string"`
  20855. // The name of the engine to retrieve DB instance options for.
  20856. //
  20857. // Engine is a required field
  20858. Engine *string `type:"string" required:"true"`
  20859. // The engine version filter value. Specify this parameter to show only the
  20860. // available offerings matching the specified engine version.
  20861. EngineVersion *string `type:"string"`
  20862. // This parameter is not currently supported.
  20863. Filters []*Filter `locationNameList:"Filter" type:"list"`
  20864. // The license model filter value. Specify this parameter to show only the available
  20865. // offerings matching the specified license model.
  20866. LicenseModel *string `type:"string"`
  20867. // An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions
  20868. // request. If this parameter is specified, the response includes only records
  20869. // beyond the marker, up to the value specified by MaxRecords .
  20870. Marker *string `type:"string"`
  20871. // The maximum number of records to include in the response. If more records
  20872. // exist than the specified MaxRecords value, a pagination token called a marker
  20873. // is included in the response so that the remaining results can be retrieved.
  20874. //
  20875. // Default: 100
  20876. //
  20877. // Constraints: Minimum 20, maximum 100.
  20878. MaxRecords *int64 `type:"integer"`
  20879. // The VPC filter value. Specify this parameter to show only the available VPC
  20880. // or non-VPC offerings.
  20881. Vpc *bool `type:"boolean"`
  20882. }
  20883. // String returns the string representation
  20884. func (s DescribeOrderableDBInstanceOptionsInput) String() string {
  20885. return awsutil.Prettify(s)
  20886. }
  20887. // GoString returns the string representation
  20888. func (s DescribeOrderableDBInstanceOptionsInput) GoString() string {
  20889. return s.String()
  20890. }
  20891. // Validate inspects the fields of the type to determine if they are valid.
  20892. func (s *DescribeOrderableDBInstanceOptionsInput) Validate() error {
  20893. invalidParams := request.ErrInvalidParams{Context: "DescribeOrderableDBInstanceOptionsInput"}
  20894. if s.Engine == nil {
  20895. invalidParams.Add(request.NewErrParamRequired("Engine"))
  20896. }
  20897. if s.Filters != nil {
  20898. for i, v := range s.Filters {
  20899. if v == nil {
  20900. continue
  20901. }
  20902. if err := v.Validate(); err != nil {
  20903. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  20904. }
  20905. }
  20906. }
  20907. if invalidParams.Len() > 0 {
  20908. return invalidParams
  20909. }
  20910. return nil
  20911. }
  20912. // SetDBInstanceClass sets the DBInstanceClass field's value.
  20913. func (s *DescribeOrderableDBInstanceOptionsInput) SetDBInstanceClass(v string) *DescribeOrderableDBInstanceOptionsInput {
  20914. s.DBInstanceClass = &v
  20915. return s
  20916. }
  20917. // SetEngine sets the Engine field's value.
  20918. func (s *DescribeOrderableDBInstanceOptionsInput) SetEngine(v string) *DescribeOrderableDBInstanceOptionsInput {
  20919. s.Engine = &v
  20920. return s
  20921. }
  20922. // SetEngineVersion sets the EngineVersion field's value.
  20923. func (s *DescribeOrderableDBInstanceOptionsInput) SetEngineVersion(v string) *DescribeOrderableDBInstanceOptionsInput {
  20924. s.EngineVersion = &v
  20925. return s
  20926. }
  20927. // SetFilters sets the Filters field's value.
  20928. func (s *DescribeOrderableDBInstanceOptionsInput) SetFilters(v []*Filter) *DescribeOrderableDBInstanceOptionsInput {
  20929. s.Filters = v
  20930. return s
  20931. }
  20932. // SetLicenseModel sets the LicenseModel field's value.
  20933. func (s *DescribeOrderableDBInstanceOptionsInput) SetLicenseModel(v string) *DescribeOrderableDBInstanceOptionsInput {
  20934. s.LicenseModel = &v
  20935. return s
  20936. }
  20937. // SetMarker sets the Marker field's value.
  20938. func (s *DescribeOrderableDBInstanceOptionsInput) SetMarker(v string) *DescribeOrderableDBInstanceOptionsInput {
  20939. s.Marker = &v
  20940. return s
  20941. }
  20942. // SetMaxRecords sets the MaxRecords field's value.
  20943. func (s *DescribeOrderableDBInstanceOptionsInput) SetMaxRecords(v int64) *DescribeOrderableDBInstanceOptionsInput {
  20944. s.MaxRecords = &v
  20945. return s
  20946. }
  20947. // SetVpc sets the Vpc field's value.
  20948. func (s *DescribeOrderableDBInstanceOptionsInput) SetVpc(v bool) *DescribeOrderableDBInstanceOptionsInput {
  20949. s.Vpc = &v
  20950. return s
  20951. }
  20952. // Contains the result of a successful invocation of the DescribeOrderableDBInstanceOptions
  20953. // action.
  20954. type DescribeOrderableDBInstanceOptionsOutput struct {
  20955. _ struct{} `type:"structure"`
  20956. // An optional pagination token provided by a previous OrderableDBInstanceOptions
  20957. // request. If this parameter is specified, the response includes only records
  20958. // beyond the marker, up to the value specified by MaxRecords .
  20959. Marker *string `type:"string"`
  20960. // An OrderableDBInstanceOption structure containing information about orderable
  20961. // options for the DB instance.
  20962. OrderableDBInstanceOptions []*OrderableDBInstanceOption `locationNameList:"OrderableDBInstanceOption" type:"list"`
  20963. }
  20964. // String returns the string representation
  20965. func (s DescribeOrderableDBInstanceOptionsOutput) String() string {
  20966. return awsutil.Prettify(s)
  20967. }
  20968. // GoString returns the string representation
  20969. func (s DescribeOrderableDBInstanceOptionsOutput) GoString() string {
  20970. return s.String()
  20971. }
  20972. // SetMarker sets the Marker field's value.
  20973. func (s *DescribeOrderableDBInstanceOptionsOutput) SetMarker(v string) *DescribeOrderableDBInstanceOptionsOutput {
  20974. s.Marker = &v
  20975. return s
  20976. }
  20977. // SetOrderableDBInstanceOptions sets the OrderableDBInstanceOptions field's value.
  20978. func (s *DescribeOrderableDBInstanceOptionsOutput) SetOrderableDBInstanceOptions(v []*OrderableDBInstanceOption) *DescribeOrderableDBInstanceOptionsOutput {
  20979. s.OrderableDBInstanceOptions = v
  20980. return s
  20981. }
  20982. type DescribePendingMaintenanceActionsInput struct {
  20983. _ struct{} `type:"structure"`
  20984. // A filter that specifies one or more resources to return pending maintenance
  20985. // actions for.
  20986. //
  20987. // Supported filters:
  20988. //
  20989. // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon
  20990. // Resource Names (ARNs). The results list will only include pending maintenance
  20991. // actions for the DB clusters identified by these ARNs.
  20992. //
  20993. // * db-instance-id - Accepts DB instance identifiers and DB instance ARNs.
  20994. // The results list will only include pending maintenance actions for the
  20995. // DB instances identified by these ARNs.
  20996. Filters []*Filter `locationNameList:"Filter" type:"list"`
  20997. // An optional pagination token provided by a previous DescribePendingMaintenanceActions
  20998. // request. If this parameter is specified, the response includes only records
  20999. // beyond the marker, up to a number of records specified by MaxRecords.
  21000. Marker *string `type:"string"`
  21001. // The maximum number of records to include in the response. If more records
  21002. // exist than the specified MaxRecords value, a pagination token called a marker
  21003. // is included in the response so that the remaining results can be retrieved.
  21004. //
  21005. // Default: 100
  21006. //
  21007. // Constraints: Minimum 20, maximum 100.
  21008. MaxRecords *int64 `type:"integer"`
  21009. // The ARN of a resource to return pending maintenance actions for.
  21010. ResourceIdentifier *string `type:"string"`
  21011. }
  21012. // String returns the string representation
  21013. func (s DescribePendingMaintenanceActionsInput) String() string {
  21014. return awsutil.Prettify(s)
  21015. }
  21016. // GoString returns the string representation
  21017. func (s DescribePendingMaintenanceActionsInput) GoString() string {
  21018. return s.String()
  21019. }
  21020. // Validate inspects the fields of the type to determine if they are valid.
  21021. func (s *DescribePendingMaintenanceActionsInput) Validate() error {
  21022. invalidParams := request.ErrInvalidParams{Context: "DescribePendingMaintenanceActionsInput"}
  21023. if s.Filters != nil {
  21024. for i, v := range s.Filters {
  21025. if v == nil {
  21026. continue
  21027. }
  21028. if err := v.Validate(); err != nil {
  21029. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  21030. }
  21031. }
  21032. }
  21033. if invalidParams.Len() > 0 {
  21034. return invalidParams
  21035. }
  21036. return nil
  21037. }
  21038. // SetFilters sets the Filters field's value.
  21039. func (s *DescribePendingMaintenanceActionsInput) SetFilters(v []*Filter) *DescribePendingMaintenanceActionsInput {
  21040. s.Filters = v
  21041. return s
  21042. }
  21043. // SetMarker sets the Marker field's value.
  21044. func (s *DescribePendingMaintenanceActionsInput) SetMarker(v string) *DescribePendingMaintenanceActionsInput {
  21045. s.Marker = &v
  21046. return s
  21047. }
  21048. // SetMaxRecords sets the MaxRecords field's value.
  21049. func (s *DescribePendingMaintenanceActionsInput) SetMaxRecords(v int64) *DescribePendingMaintenanceActionsInput {
  21050. s.MaxRecords = &v
  21051. return s
  21052. }
  21053. // SetResourceIdentifier sets the ResourceIdentifier field's value.
  21054. func (s *DescribePendingMaintenanceActionsInput) SetResourceIdentifier(v string) *DescribePendingMaintenanceActionsInput {
  21055. s.ResourceIdentifier = &v
  21056. return s
  21057. }
  21058. // Data returned from the DescribePendingMaintenanceActions action.
  21059. type DescribePendingMaintenanceActionsOutput struct {
  21060. _ struct{} `type:"structure"`
  21061. // An optional pagination token provided by a previous DescribePendingMaintenanceActions
  21062. // request. If this parameter is specified, the response includes only records
  21063. // beyond the marker, up to a number of records specified by MaxRecords.
  21064. Marker *string `type:"string"`
  21065. // A list of the pending maintenance actions for the resource.
  21066. PendingMaintenanceActions []*ResourcePendingMaintenanceActions `locationNameList:"ResourcePendingMaintenanceActions" type:"list"`
  21067. }
  21068. // String returns the string representation
  21069. func (s DescribePendingMaintenanceActionsOutput) String() string {
  21070. return awsutil.Prettify(s)
  21071. }
  21072. // GoString returns the string representation
  21073. func (s DescribePendingMaintenanceActionsOutput) GoString() string {
  21074. return s.String()
  21075. }
  21076. // SetMarker sets the Marker field's value.
  21077. func (s *DescribePendingMaintenanceActionsOutput) SetMarker(v string) *DescribePendingMaintenanceActionsOutput {
  21078. s.Marker = &v
  21079. return s
  21080. }
  21081. // SetPendingMaintenanceActions sets the PendingMaintenanceActions field's value.
  21082. func (s *DescribePendingMaintenanceActionsOutput) SetPendingMaintenanceActions(v []*ResourcePendingMaintenanceActions) *DescribePendingMaintenanceActionsOutput {
  21083. s.PendingMaintenanceActions = v
  21084. return s
  21085. }
  21086. type DescribeReservedDBInstancesInput struct {
  21087. _ struct{} `type:"structure"`
  21088. // The DB instance class filter value. Specify this parameter to show only those
  21089. // reservations matching the specified DB instances class.
  21090. DBInstanceClass *string `type:"string"`
  21091. // The duration filter value, specified in years or seconds. Specify this parameter
  21092. // to show only reservations for this duration.
  21093. //
  21094. // Valid Values: 1 | 3 | 31536000 | 94608000
  21095. Duration *string `type:"string"`
  21096. // This parameter is not currently supported.
  21097. Filters []*Filter `locationNameList:"Filter" type:"list"`
  21098. // An optional pagination token provided by a previous request. If this parameter
  21099. // is specified, the response includes only records beyond the marker, up to
  21100. // the value specified by MaxRecords.
  21101. Marker *string `type:"string"`
  21102. // The maximum number of records to include in the response. If more than the
  21103. // MaxRecords value is available, a pagination token called a marker is included
  21104. // in the response so that the following results can be retrieved.
  21105. //
  21106. // Default: 100
  21107. //
  21108. // Constraints: Minimum 20, maximum 100.
  21109. MaxRecords *int64 `type:"integer"`
  21110. // The Multi-AZ filter value. Specify this parameter to show only those reservations
  21111. // matching the specified Multi-AZ parameter.
  21112. MultiAZ *bool `type:"boolean"`
  21113. // The offering type filter value. Specify this parameter to show only the available
  21114. // offerings matching the specified offering type.
  21115. //
  21116. // Valid Values: "Partial Upfront" | "All Upfront" | "No Upfront"
  21117. OfferingType *string `type:"string"`
  21118. // The product description filter value. Specify this parameter to show only
  21119. // those reservations matching the specified product description.
  21120. ProductDescription *string `type:"string"`
  21121. // The reserved DB instance identifier filter value. Specify this parameter
  21122. // to show only the reservation that matches the specified reservation ID.
  21123. ReservedDBInstanceId *string `type:"string"`
  21124. // The offering identifier filter value. Specify this parameter to show only
  21125. // purchased reservations matching the specified offering identifier.
  21126. ReservedDBInstancesOfferingId *string `type:"string"`
  21127. }
  21128. // String returns the string representation
  21129. func (s DescribeReservedDBInstancesInput) String() string {
  21130. return awsutil.Prettify(s)
  21131. }
  21132. // GoString returns the string representation
  21133. func (s DescribeReservedDBInstancesInput) GoString() string {
  21134. return s.String()
  21135. }
  21136. // Validate inspects the fields of the type to determine if they are valid.
  21137. func (s *DescribeReservedDBInstancesInput) Validate() error {
  21138. invalidParams := request.ErrInvalidParams{Context: "DescribeReservedDBInstancesInput"}
  21139. if s.Filters != nil {
  21140. for i, v := range s.Filters {
  21141. if v == nil {
  21142. continue
  21143. }
  21144. if err := v.Validate(); err != nil {
  21145. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  21146. }
  21147. }
  21148. }
  21149. if invalidParams.Len() > 0 {
  21150. return invalidParams
  21151. }
  21152. return nil
  21153. }
  21154. // SetDBInstanceClass sets the DBInstanceClass field's value.
  21155. func (s *DescribeReservedDBInstancesInput) SetDBInstanceClass(v string) *DescribeReservedDBInstancesInput {
  21156. s.DBInstanceClass = &v
  21157. return s
  21158. }
  21159. // SetDuration sets the Duration field's value.
  21160. func (s *DescribeReservedDBInstancesInput) SetDuration(v string) *DescribeReservedDBInstancesInput {
  21161. s.Duration = &v
  21162. return s
  21163. }
  21164. // SetFilters sets the Filters field's value.
  21165. func (s *DescribeReservedDBInstancesInput) SetFilters(v []*Filter) *DescribeReservedDBInstancesInput {
  21166. s.Filters = v
  21167. return s
  21168. }
  21169. // SetMarker sets the Marker field's value.
  21170. func (s *DescribeReservedDBInstancesInput) SetMarker(v string) *DescribeReservedDBInstancesInput {
  21171. s.Marker = &v
  21172. return s
  21173. }
  21174. // SetMaxRecords sets the MaxRecords field's value.
  21175. func (s *DescribeReservedDBInstancesInput) SetMaxRecords(v int64) *DescribeReservedDBInstancesInput {
  21176. s.MaxRecords = &v
  21177. return s
  21178. }
  21179. // SetMultiAZ sets the MultiAZ field's value.
  21180. func (s *DescribeReservedDBInstancesInput) SetMultiAZ(v bool) *DescribeReservedDBInstancesInput {
  21181. s.MultiAZ = &v
  21182. return s
  21183. }
  21184. // SetOfferingType sets the OfferingType field's value.
  21185. func (s *DescribeReservedDBInstancesInput) SetOfferingType(v string) *DescribeReservedDBInstancesInput {
  21186. s.OfferingType = &v
  21187. return s
  21188. }
  21189. // SetProductDescription sets the ProductDescription field's value.
  21190. func (s *DescribeReservedDBInstancesInput) SetProductDescription(v string) *DescribeReservedDBInstancesInput {
  21191. s.ProductDescription = &v
  21192. return s
  21193. }
  21194. // SetReservedDBInstanceId sets the ReservedDBInstanceId field's value.
  21195. func (s *DescribeReservedDBInstancesInput) SetReservedDBInstanceId(v string) *DescribeReservedDBInstancesInput {
  21196. s.ReservedDBInstanceId = &v
  21197. return s
  21198. }
  21199. // SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value.
  21200. func (s *DescribeReservedDBInstancesInput) SetReservedDBInstancesOfferingId(v string) *DescribeReservedDBInstancesInput {
  21201. s.ReservedDBInstancesOfferingId = &v
  21202. return s
  21203. }
  21204. type DescribeReservedDBInstancesOfferingsInput struct {
  21205. _ struct{} `type:"structure"`
  21206. // The DB instance class filter value. Specify this parameter to show only the
  21207. // available offerings matching the specified DB instance class.
  21208. DBInstanceClass *string `type:"string"`
  21209. // Duration filter value, specified in years or seconds. Specify this parameter
  21210. // to show only reservations for this duration.
  21211. //
  21212. // Valid Values: 1 | 3 | 31536000 | 94608000
  21213. Duration *string `type:"string"`
  21214. // This parameter is not currently supported.
  21215. Filters []*Filter `locationNameList:"Filter" type:"list"`
  21216. // An optional pagination token provided by a previous request. If this parameter
  21217. // is specified, the response includes only records beyond the marker, up to
  21218. // the value specified by MaxRecords.
  21219. Marker *string `type:"string"`
  21220. // The maximum number of records to include in the response. If more than the
  21221. // MaxRecords value is available, a pagination token called a marker is included
  21222. // in the response so that the following results can be retrieved.
  21223. //
  21224. // Default: 100
  21225. //
  21226. // Constraints: Minimum 20, maximum 100.
  21227. MaxRecords *int64 `type:"integer"`
  21228. // The Multi-AZ filter value. Specify this parameter to show only the available
  21229. // offerings matching the specified Multi-AZ parameter.
  21230. MultiAZ *bool `type:"boolean"`
  21231. // The offering type filter value. Specify this parameter to show only the available
  21232. // offerings matching the specified offering type.
  21233. //
  21234. // Valid Values: "Partial Upfront" | "All Upfront" | "No Upfront"
  21235. OfferingType *string `type:"string"`
  21236. // Product description filter value. Specify this parameter to show only the
  21237. // available offerings that contain the specified product description.
  21238. //
  21239. // The results show offerings that partially match the filter value.
  21240. ProductDescription *string `type:"string"`
  21241. // The offering identifier filter value. Specify this parameter to show only
  21242. // the available offering that matches the specified reservation identifier.
  21243. //
  21244. // Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
  21245. ReservedDBInstancesOfferingId *string `type:"string"`
  21246. }
  21247. // String returns the string representation
  21248. func (s DescribeReservedDBInstancesOfferingsInput) String() string {
  21249. return awsutil.Prettify(s)
  21250. }
  21251. // GoString returns the string representation
  21252. func (s DescribeReservedDBInstancesOfferingsInput) GoString() string {
  21253. return s.String()
  21254. }
  21255. // Validate inspects the fields of the type to determine if they are valid.
  21256. func (s *DescribeReservedDBInstancesOfferingsInput) Validate() error {
  21257. invalidParams := request.ErrInvalidParams{Context: "DescribeReservedDBInstancesOfferingsInput"}
  21258. if s.Filters != nil {
  21259. for i, v := range s.Filters {
  21260. if v == nil {
  21261. continue
  21262. }
  21263. if err := v.Validate(); err != nil {
  21264. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  21265. }
  21266. }
  21267. }
  21268. if invalidParams.Len() > 0 {
  21269. return invalidParams
  21270. }
  21271. return nil
  21272. }
  21273. // SetDBInstanceClass sets the DBInstanceClass field's value.
  21274. func (s *DescribeReservedDBInstancesOfferingsInput) SetDBInstanceClass(v string) *DescribeReservedDBInstancesOfferingsInput {
  21275. s.DBInstanceClass = &v
  21276. return s
  21277. }
  21278. // SetDuration sets the Duration field's value.
  21279. func (s *DescribeReservedDBInstancesOfferingsInput) SetDuration(v string) *DescribeReservedDBInstancesOfferingsInput {
  21280. s.Duration = &v
  21281. return s
  21282. }
  21283. // SetFilters sets the Filters field's value.
  21284. func (s *DescribeReservedDBInstancesOfferingsInput) SetFilters(v []*Filter) *DescribeReservedDBInstancesOfferingsInput {
  21285. s.Filters = v
  21286. return s
  21287. }
  21288. // SetMarker sets the Marker field's value.
  21289. func (s *DescribeReservedDBInstancesOfferingsInput) SetMarker(v string) *DescribeReservedDBInstancesOfferingsInput {
  21290. s.Marker = &v
  21291. return s
  21292. }
  21293. // SetMaxRecords sets the MaxRecords field's value.
  21294. func (s *DescribeReservedDBInstancesOfferingsInput) SetMaxRecords(v int64) *DescribeReservedDBInstancesOfferingsInput {
  21295. s.MaxRecords = &v
  21296. return s
  21297. }
  21298. // SetMultiAZ sets the MultiAZ field's value.
  21299. func (s *DescribeReservedDBInstancesOfferingsInput) SetMultiAZ(v bool) *DescribeReservedDBInstancesOfferingsInput {
  21300. s.MultiAZ = &v
  21301. return s
  21302. }
  21303. // SetOfferingType sets the OfferingType field's value.
  21304. func (s *DescribeReservedDBInstancesOfferingsInput) SetOfferingType(v string) *DescribeReservedDBInstancesOfferingsInput {
  21305. s.OfferingType = &v
  21306. return s
  21307. }
  21308. // SetProductDescription sets the ProductDescription field's value.
  21309. func (s *DescribeReservedDBInstancesOfferingsInput) SetProductDescription(v string) *DescribeReservedDBInstancesOfferingsInput {
  21310. s.ProductDescription = &v
  21311. return s
  21312. }
  21313. // SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value.
  21314. func (s *DescribeReservedDBInstancesOfferingsInput) SetReservedDBInstancesOfferingId(v string) *DescribeReservedDBInstancesOfferingsInput {
  21315. s.ReservedDBInstancesOfferingId = &v
  21316. return s
  21317. }
  21318. // Contains the result of a successful invocation of the DescribeReservedDBInstancesOfferings
  21319. // action.
  21320. type DescribeReservedDBInstancesOfferingsOutput struct {
  21321. _ struct{} `type:"structure"`
  21322. // An optional pagination token provided by a previous request. If this parameter
  21323. // is specified, the response includes only records beyond the marker, up to
  21324. // the value specified by MaxRecords.
  21325. Marker *string `type:"string"`
  21326. // A list of reserved DB instance offerings.
  21327. ReservedDBInstancesOfferings []*ReservedDBInstancesOffering `locationNameList:"ReservedDBInstancesOffering" type:"list"`
  21328. }
  21329. // String returns the string representation
  21330. func (s DescribeReservedDBInstancesOfferingsOutput) String() string {
  21331. return awsutil.Prettify(s)
  21332. }
  21333. // GoString returns the string representation
  21334. func (s DescribeReservedDBInstancesOfferingsOutput) GoString() string {
  21335. return s.String()
  21336. }
  21337. // SetMarker sets the Marker field's value.
  21338. func (s *DescribeReservedDBInstancesOfferingsOutput) SetMarker(v string) *DescribeReservedDBInstancesOfferingsOutput {
  21339. s.Marker = &v
  21340. return s
  21341. }
  21342. // SetReservedDBInstancesOfferings sets the ReservedDBInstancesOfferings field's value.
  21343. func (s *DescribeReservedDBInstancesOfferingsOutput) SetReservedDBInstancesOfferings(v []*ReservedDBInstancesOffering) *DescribeReservedDBInstancesOfferingsOutput {
  21344. s.ReservedDBInstancesOfferings = v
  21345. return s
  21346. }
  21347. // Contains the result of a successful invocation of the DescribeReservedDBInstances
  21348. // action.
  21349. type DescribeReservedDBInstancesOutput struct {
  21350. _ struct{} `type:"structure"`
  21351. // An optional pagination token provided by a previous request. If this parameter
  21352. // is specified, the response includes only records beyond the marker, up to
  21353. // the value specified by MaxRecords.
  21354. Marker *string `type:"string"`
  21355. // A list of reserved DB instances.
  21356. ReservedDBInstances []*ReservedDBInstance `locationNameList:"ReservedDBInstance" type:"list"`
  21357. }
  21358. // String returns the string representation
  21359. func (s DescribeReservedDBInstancesOutput) String() string {
  21360. return awsutil.Prettify(s)
  21361. }
  21362. // GoString returns the string representation
  21363. func (s DescribeReservedDBInstancesOutput) GoString() string {
  21364. return s.String()
  21365. }
  21366. // SetMarker sets the Marker field's value.
  21367. func (s *DescribeReservedDBInstancesOutput) SetMarker(v string) *DescribeReservedDBInstancesOutput {
  21368. s.Marker = &v
  21369. return s
  21370. }
  21371. // SetReservedDBInstances sets the ReservedDBInstances field's value.
  21372. func (s *DescribeReservedDBInstancesOutput) SetReservedDBInstances(v []*ReservedDBInstance) *DescribeReservedDBInstancesOutput {
  21373. s.ReservedDBInstances = v
  21374. return s
  21375. }
  21376. type DescribeSourceRegionsInput struct {
  21377. _ struct{} `type:"structure"`
  21378. // This parameter is not currently supported.
  21379. Filters []*Filter `locationNameList:"Filter" type:"list"`
  21380. // An optional pagination token provided by a previous DescribeSourceRegions
  21381. // request. If this parameter is specified, the response includes only records
  21382. // beyond the marker, up to the value specified by MaxRecords.
  21383. Marker *string `type:"string"`
  21384. // The maximum number of records to include in the response. If more records
  21385. // exist than the specified MaxRecords value, a pagination token called a marker
  21386. // is included in the response so that the remaining results can be retrieved.
  21387. //
  21388. // Default: 100
  21389. //
  21390. // Constraints: Minimum 20, maximum 100.
  21391. MaxRecords *int64 `type:"integer"`
  21392. // The source AWS Region name. For example, us-east-1.
  21393. //
  21394. // Constraints:
  21395. //
  21396. // * Must specify a valid AWS Region name.
  21397. RegionName *string `type:"string"`
  21398. }
  21399. // String returns the string representation
  21400. func (s DescribeSourceRegionsInput) String() string {
  21401. return awsutil.Prettify(s)
  21402. }
  21403. // GoString returns the string representation
  21404. func (s DescribeSourceRegionsInput) GoString() string {
  21405. return s.String()
  21406. }
  21407. // Validate inspects the fields of the type to determine if they are valid.
  21408. func (s *DescribeSourceRegionsInput) Validate() error {
  21409. invalidParams := request.ErrInvalidParams{Context: "DescribeSourceRegionsInput"}
  21410. if s.Filters != nil {
  21411. for i, v := range s.Filters {
  21412. if v == nil {
  21413. continue
  21414. }
  21415. if err := v.Validate(); err != nil {
  21416. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  21417. }
  21418. }
  21419. }
  21420. if invalidParams.Len() > 0 {
  21421. return invalidParams
  21422. }
  21423. return nil
  21424. }
  21425. // SetFilters sets the Filters field's value.
  21426. func (s *DescribeSourceRegionsInput) SetFilters(v []*Filter) *DescribeSourceRegionsInput {
  21427. s.Filters = v
  21428. return s
  21429. }
  21430. // SetMarker sets the Marker field's value.
  21431. func (s *DescribeSourceRegionsInput) SetMarker(v string) *DescribeSourceRegionsInput {
  21432. s.Marker = &v
  21433. return s
  21434. }
  21435. // SetMaxRecords sets the MaxRecords field's value.
  21436. func (s *DescribeSourceRegionsInput) SetMaxRecords(v int64) *DescribeSourceRegionsInput {
  21437. s.MaxRecords = &v
  21438. return s
  21439. }
  21440. // SetRegionName sets the RegionName field's value.
  21441. func (s *DescribeSourceRegionsInput) SetRegionName(v string) *DescribeSourceRegionsInput {
  21442. s.RegionName = &v
  21443. return s
  21444. }
  21445. // Contains the result of a successful invocation of the DescribeSourceRegions
  21446. // action.
  21447. type DescribeSourceRegionsOutput struct {
  21448. _ struct{} `type:"structure"`
  21449. // An optional pagination token provided by a previous request. If this parameter
  21450. // is specified, the response includes only records beyond the marker, up to
  21451. // the value specified by MaxRecords.
  21452. Marker *string `type:"string"`
  21453. // A list of SourceRegion instances that contains each source AWS Region that
  21454. // the current AWS Region can get a Read Replica or a DB snapshot from.
  21455. SourceRegions []*SourceRegion `locationNameList:"SourceRegion" type:"list"`
  21456. }
  21457. // String returns the string representation
  21458. func (s DescribeSourceRegionsOutput) String() string {
  21459. return awsutil.Prettify(s)
  21460. }
  21461. // GoString returns the string representation
  21462. func (s DescribeSourceRegionsOutput) GoString() string {
  21463. return s.String()
  21464. }
  21465. // SetMarker sets the Marker field's value.
  21466. func (s *DescribeSourceRegionsOutput) SetMarker(v string) *DescribeSourceRegionsOutput {
  21467. s.Marker = &v
  21468. return s
  21469. }
  21470. // SetSourceRegions sets the SourceRegions field's value.
  21471. func (s *DescribeSourceRegionsOutput) SetSourceRegions(v []*SourceRegion) *DescribeSourceRegionsOutput {
  21472. s.SourceRegions = v
  21473. return s
  21474. }
  21475. type DescribeValidDBInstanceModificationsInput struct {
  21476. _ struct{} `type:"structure"`
  21477. // The customer identifier or the ARN of your DB instance.
  21478. //
  21479. // DBInstanceIdentifier is a required field
  21480. DBInstanceIdentifier *string `type:"string" required:"true"`
  21481. }
  21482. // String returns the string representation
  21483. func (s DescribeValidDBInstanceModificationsInput) String() string {
  21484. return awsutil.Prettify(s)
  21485. }
  21486. // GoString returns the string representation
  21487. func (s DescribeValidDBInstanceModificationsInput) GoString() string {
  21488. return s.String()
  21489. }
  21490. // Validate inspects the fields of the type to determine if they are valid.
  21491. func (s *DescribeValidDBInstanceModificationsInput) Validate() error {
  21492. invalidParams := request.ErrInvalidParams{Context: "DescribeValidDBInstanceModificationsInput"}
  21493. if s.DBInstanceIdentifier == nil {
  21494. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  21495. }
  21496. if invalidParams.Len() > 0 {
  21497. return invalidParams
  21498. }
  21499. return nil
  21500. }
  21501. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  21502. func (s *DescribeValidDBInstanceModificationsInput) SetDBInstanceIdentifier(v string) *DescribeValidDBInstanceModificationsInput {
  21503. s.DBInstanceIdentifier = &v
  21504. return s
  21505. }
  21506. type DescribeValidDBInstanceModificationsOutput struct {
  21507. _ struct{} `type:"structure"`
  21508. // Information about valid modifications that you can make to your DB instance.
  21509. // Contains the result of a successful call to the DescribeValidDBInstanceModifications
  21510. // action. You can use this information when you call ModifyDBInstance.
  21511. ValidDBInstanceModificationsMessage *ValidDBInstanceModificationsMessage `type:"structure"`
  21512. }
  21513. // String returns the string representation
  21514. func (s DescribeValidDBInstanceModificationsOutput) String() string {
  21515. return awsutil.Prettify(s)
  21516. }
  21517. // GoString returns the string representation
  21518. func (s DescribeValidDBInstanceModificationsOutput) GoString() string {
  21519. return s.String()
  21520. }
  21521. // SetValidDBInstanceModificationsMessage sets the ValidDBInstanceModificationsMessage field's value.
  21522. func (s *DescribeValidDBInstanceModificationsOutput) SetValidDBInstanceModificationsMessage(v *ValidDBInstanceModificationsMessage) *DescribeValidDBInstanceModificationsOutput {
  21523. s.ValidDBInstanceModificationsMessage = v
  21524. return s
  21525. }
  21526. // An Active Directory Domain membership record associated with the DB instance.
  21527. type DomainMembership struct {
  21528. _ struct{} `type:"structure"`
  21529. // The identifier of the Active Directory Domain.
  21530. Domain *string `type:"string"`
  21531. // The fully qualified domain name of the Active Directory Domain.
  21532. FQDN *string `type:"string"`
  21533. // The name of the IAM role to be used when making API calls to the Directory
  21534. // Service.
  21535. IAMRoleName *string `type:"string"`
  21536. // The status of the DB instance's Active Directory Domain membership, such
  21537. // as joined, pending-join, failed etc).
  21538. Status *string `type:"string"`
  21539. }
  21540. // String returns the string representation
  21541. func (s DomainMembership) String() string {
  21542. return awsutil.Prettify(s)
  21543. }
  21544. // GoString returns the string representation
  21545. func (s DomainMembership) GoString() string {
  21546. return s.String()
  21547. }
  21548. // SetDomain sets the Domain field's value.
  21549. func (s *DomainMembership) SetDomain(v string) *DomainMembership {
  21550. s.Domain = &v
  21551. return s
  21552. }
  21553. // SetFQDN sets the FQDN field's value.
  21554. func (s *DomainMembership) SetFQDN(v string) *DomainMembership {
  21555. s.FQDN = &v
  21556. return s
  21557. }
  21558. // SetIAMRoleName sets the IAMRoleName field's value.
  21559. func (s *DomainMembership) SetIAMRoleName(v string) *DomainMembership {
  21560. s.IAMRoleName = &v
  21561. return s
  21562. }
  21563. // SetStatus sets the Status field's value.
  21564. func (s *DomainMembership) SetStatus(v string) *DomainMembership {
  21565. s.Status = &v
  21566. return s
  21567. }
  21568. // A range of double values.
  21569. type DoubleRange struct {
  21570. _ struct{} `type:"structure"`
  21571. // The minimum value in the range.
  21572. From *float64 `type:"double"`
  21573. // The maximum value in the range.
  21574. To *float64 `type:"double"`
  21575. }
  21576. // String returns the string representation
  21577. func (s DoubleRange) String() string {
  21578. return awsutil.Prettify(s)
  21579. }
  21580. // GoString returns the string representation
  21581. func (s DoubleRange) GoString() string {
  21582. return s.String()
  21583. }
  21584. // SetFrom sets the From field's value.
  21585. func (s *DoubleRange) SetFrom(v float64) *DoubleRange {
  21586. s.From = &v
  21587. return s
  21588. }
  21589. // SetTo sets the To field's value.
  21590. func (s *DoubleRange) SetTo(v float64) *DoubleRange {
  21591. s.To = &v
  21592. return s
  21593. }
  21594. type DownloadDBLogFilePortionInput struct {
  21595. _ struct{} `type:"structure"`
  21596. // The customer-assigned name of the DB instance that contains the log files
  21597. // you want to list.
  21598. //
  21599. // Constraints:
  21600. //
  21601. // * Must match the identifier of an existing DBInstance.
  21602. //
  21603. // DBInstanceIdentifier is a required field
  21604. DBInstanceIdentifier *string `type:"string" required:"true"`
  21605. // The name of the log file to be downloaded.
  21606. //
  21607. // LogFileName is a required field
  21608. LogFileName *string `type:"string" required:"true"`
  21609. // The pagination token provided in the previous request or "0". If the Marker
  21610. // parameter is specified the response includes only records beyond the marker
  21611. // until the end of the file or up to NumberOfLines.
  21612. Marker *string `type:"string"`
  21613. // The number of lines to download. If the number of lines specified results
  21614. // in a file over 1 MB in size, the file is truncated at 1 MB in size.
  21615. //
  21616. // If the NumberOfLines parameter is specified, then the block of lines returned
  21617. // can be from the beginning or the end of the log file, depending on the value
  21618. // of the Marker parameter.
  21619. //
  21620. // * If neither Marker or NumberOfLines are specified, the entire log file
  21621. // is returned up to a maximum of 10000 lines, starting with the most recent
  21622. // log entries first.
  21623. //
  21624. // * If NumberOfLines is specified and Marker is not specified, then the
  21625. // most recent lines from the end of the log file are returned.
  21626. //
  21627. // * If Marker is specified as "0", then the specified number of lines from
  21628. // the beginning of the log file are returned.
  21629. //
  21630. // * You can download the log file in blocks of lines by specifying the size
  21631. // of the block using the NumberOfLines parameter, and by specifying a value
  21632. // of "0" for the Marker parameter in your first request. Include the Marker
  21633. // value returned in the response as the Marker value for the next request,
  21634. // continuing until the AdditionalDataPending response element returns false.
  21635. NumberOfLines *int64 `type:"integer"`
  21636. }
  21637. // String returns the string representation
  21638. func (s DownloadDBLogFilePortionInput) String() string {
  21639. return awsutil.Prettify(s)
  21640. }
  21641. // GoString returns the string representation
  21642. func (s DownloadDBLogFilePortionInput) GoString() string {
  21643. return s.String()
  21644. }
  21645. // Validate inspects the fields of the type to determine if they are valid.
  21646. func (s *DownloadDBLogFilePortionInput) Validate() error {
  21647. invalidParams := request.ErrInvalidParams{Context: "DownloadDBLogFilePortionInput"}
  21648. if s.DBInstanceIdentifier == nil {
  21649. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  21650. }
  21651. if s.LogFileName == nil {
  21652. invalidParams.Add(request.NewErrParamRequired("LogFileName"))
  21653. }
  21654. if invalidParams.Len() > 0 {
  21655. return invalidParams
  21656. }
  21657. return nil
  21658. }
  21659. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  21660. func (s *DownloadDBLogFilePortionInput) SetDBInstanceIdentifier(v string) *DownloadDBLogFilePortionInput {
  21661. s.DBInstanceIdentifier = &v
  21662. return s
  21663. }
  21664. // SetLogFileName sets the LogFileName field's value.
  21665. func (s *DownloadDBLogFilePortionInput) SetLogFileName(v string) *DownloadDBLogFilePortionInput {
  21666. s.LogFileName = &v
  21667. return s
  21668. }
  21669. // SetMarker sets the Marker field's value.
  21670. func (s *DownloadDBLogFilePortionInput) SetMarker(v string) *DownloadDBLogFilePortionInput {
  21671. s.Marker = &v
  21672. return s
  21673. }
  21674. // SetNumberOfLines sets the NumberOfLines field's value.
  21675. func (s *DownloadDBLogFilePortionInput) SetNumberOfLines(v int64) *DownloadDBLogFilePortionInput {
  21676. s.NumberOfLines = &v
  21677. return s
  21678. }
  21679. // This data type is used as a response element to DownloadDBLogFilePortion.
  21680. type DownloadDBLogFilePortionOutput struct {
  21681. _ struct{} `type:"structure"`
  21682. // Boolean value that if true, indicates there is more data to be downloaded.
  21683. AdditionalDataPending *bool `type:"boolean"`
  21684. // Entries from the specified log file.
  21685. LogFileData *string `type:"string"`
  21686. // A pagination token that can be used in a subsequent DownloadDBLogFilePortion
  21687. // request.
  21688. Marker *string `type:"string"`
  21689. }
  21690. // String returns the string representation
  21691. func (s DownloadDBLogFilePortionOutput) String() string {
  21692. return awsutil.Prettify(s)
  21693. }
  21694. // GoString returns the string representation
  21695. func (s DownloadDBLogFilePortionOutput) GoString() string {
  21696. return s.String()
  21697. }
  21698. // SetAdditionalDataPending sets the AdditionalDataPending field's value.
  21699. func (s *DownloadDBLogFilePortionOutput) SetAdditionalDataPending(v bool) *DownloadDBLogFilePortionOutput {
  21700. s.AdditionalDataPending = &v
  21701. return s
  21702. }
  21703. // SetLogFileData sets the LogFileData field's value.
  21704. func (s *DownloadDBLogFilePortionOutput) SetLogFileData(v string) *DownloadDBLogFilePortionOutput {
  21705. s.LogFileData = &v
  21706. return s
  21707. }
  21708. // SetMarker sets the Marker field's value.
  21709. func (s *DownloadDBLogFilePortionOutput) SetMarker(v string) *DownloadDBLogFilePortionOutput {
  21710. s.Marker = &v
  21711. return s
  21712. }
  21713. // This data type is used as a response element in the following actions:
  21714. //
  21715. // * AuthorizeDBSecurityGroupIngress
  21716. //
  21717. // * DescribeDBSecurityGroups
  21718. //
  21719. // * RevokeDBSecurityGroupIngress
  21720. type EC2SecurityGroup struct {
  21721. _ struct{} `type:"structure"`
  21722. // Specifies the id of the EC2 security group.
  21723. EC2SecurityGroupId *string `type:"string"`
  21724. // Specifies the name of the EC2 security group.
  21725. EC2SecurityGroupName *string `type:"string"`
  21726. // Specifies the AWS ID of the owner of the EC2 security group specified in
  21727. // the EC2SecurityGroupName field.
  21728. EC2SecurityGroupOwnerId *string `type:"string"`
  21729. // Provides the status of the EC2 security group. Status can be "authorizing",
  21730. // "authorized", "revoking", and "revoked".
  21731. Status *string `type:"string"`
  21732. }
  21733. // String returns the string representation
  21734. func (s EC2SecurityGroup) String() string {
  21735. return awsutil.Prettify(s)
  21736. }
  21737. // GoString returns the string representation
  21738. func (s EC2SecurityGroup) GoString() string {
  21739. return s.String()
  21740. }
  21741. // SetEC2SecurityGroupId sets the EC2SecurityGroupId field's value.
  21742. func (s *EC2SecurityGroup) SetEC2SecurityGroupId(v string) *EC2SecurityGroup {
  21743. s.EC2SecurityGroupId = &v
  21744. return s
  21745. }
  21746. // SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value.
  21747. func (s *EC2SecurityGroup) SetEC2SecurityGroupName(v string) *EC2SecurityGroup {
  21748. s.EC2SecurityGroupName = &v
  21749. return s
  21750. }
  21751. // SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value.
  21752. func (s *EC2SecurityGroup) SetEC2SecurityGroupOwnerId(v string) *EC2SecurityGroup {
  21753. s.EC2SecurityGroupOwnerId = &v
  21754. return s
  21755. }
  21756. // SetStatus sets the Status field's value.
  21757. func (s *EC2SecurityGroup) SetStatus(v string) *EC2SecurityGroup {
  21758. s.Status = &v
  21759. return s
  21760. }
  21761. // This data type represents the information you need to connect to an Amazon
  21762. // RDS DB instance. This data type is used as a response element in the following
  21763. // actions:
  21764. //
  21765. // * CreateDBInstance
  21766. //
  21767. // * DescribeDBInstances
  21768. //
  21769. // * DeleteDBInstance
  21770. //
  21771. // For the data structure that represents Amazon Aurora DB cluster endpoints,
  21772. // see DBClusterEndpoint.
  21773. type Endpoint struct {
  21774. _ struct{} `type:"structure"`
  21775. // Specifies the DNS address of the DB instance.
  21776. Address *string `type:"string"`
  21777. // Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
  21778. HostedZoneId *string `type:"string"`
  21779. // Specifies the port that the database engine is listening on.
  21780. Port *int64 `type:"integer"`
  21781. }
  21782. // String returns the string representation
  21783. func (s Endpoint) String() string {
  21784. return awsutil.Prettify(s)
  21785. }
  21786. // GoString returns the string representation
  21787. func (s Endpoint) GoString() string {
  21788. return s.String()
  21789. }
  21790. // SetAddress sets the Address field's value.
  21791. func (s *Endpoint) SetAddress(v string) *Endpoint {
  21792. s.Address = &v
  21793. return s
  21794. }
  21795. // SetHostedZoneId sets the HostedZoneId field's value.
  21796. func (s *Endpoint) SetHostedZoneId(v string) *Endpoint {
  21797. s.HostedZoneId = &v
  21798. return s
  21799. }
  21800. // SetPort sets the Port field's value.
  21801. func (s *Endpoint) SetPort(v int64) *Endpoint {
  21802. s.Port = &v
  21803. return s
  21804. }
  21805. // Contains the result of a successful invocation of the DescribeEngineDefaultParameters
  21806. // action.
  21807. type EngineDefaults struct {
  21808. _ struct{} `type:"structure"`
  21809. // Specifies the name of the DB parameter group family that the engine default
  21810. // parameters apply to.
  21811. DBParameterGroupFamily *string `type:"string"`
  21812. // An optional pagination token provided by a previous EngineDefaults request.
  21813. // If this parameter is specified, the response includes only records beyond
  21814. // the marker, up to the value specified by MaxRecords .
  21815. Marker *string `type:"string"`
  21816. // Contains a list of engine default parameters.
  21817. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  21818. }
  21819. // String returns the string representation
  21820. func (s EngineDefaults) String() string {
  21821. return awsutil.Prettify(s)
  21822. }
  21823. // GoString returns the string representation
  21824. func (s EngineDefaults) GoString() string {
  21825. return s.String()
  21826. }
  21827. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  21828. func (s *EngineDefaults) SetDBParameterGroupFamily(v string) *EngineDefaults {
  21829. s.DBParameterGroupFamily = &v
  21830. return s
  21831. }
  21832. // SetMarker sets the Marker field's value.
  21833. func (s *EngineDefaults) SetMarker(v string) *EngineDefaults {
  21834. s.Marker = &v
  21835. return s
  21836. }
  21837. // SetParameters sets the Parameters field's value.
  21838. func (s *EngineDefaults) SetParameters(v []*Parameter) *EngineDefaults {
  21839. s.Parameters = v
  21840. return s
  21841. }
  21842. // This data type is used as a response element in the DescribeEvents action.
  21843. type Event struct {
  21844. _ struct{} `type:"structure"`
  21845. // Specifies the date and time of the event.
  21846. Date *time.Time `type:"timestamp"`
  21847. // Specifies the category for the event.
  21848. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  21849. // Provides the text of this event.
  21850. Message *string `type:"string"`
  21851. // The Amazon Resource Name (ARN) for the event.
  21852. SourceArn *string `type:"string"`
  21853. // Provides the identifier for the source of the event.
  21854. SourceIdentifier *string `type:"string"`
  21855. // Specifies the source type for this event.
  21856. SourceType *string `type:"string" enum:"SourceType"`
  21857. }
  21858. // String returns the string representation
  21859. func (s Event) String() string {
  21860. return awsutil.Prettify(s)
  21861. }
  21862. // GoString returns the string representation
  21863. func (s Event) GoString() string {
  21864. return s.String()
  21865. }
  21866. // SetDate sets the Date field's value.
  21867. func (s *Event) SetDate(v time.Time) *Event {
  21868. s.Date = &v
  21869. return s
  21870. }
  21871. // SetEventCategories sets the EventCategories field's value.
  21872. func (s *Event) SetEventCategories(v []*string) *Event {
  21873. s.EventCategories = v
  21874. return s
  21875. }
  21876. // SetMessage sets the Message field's value.
  21877. func (s *Event) SetMessage(v string) *Event {
  21878. s.Message = &v
  21879. return s
  21880. }
  21881. // SetSourceArn sets the SourceArn field's value.
  21882. func (s *Event) SetSourceArn(v string) *Event {
  21883. s.SourceArn = &v
  21884. return s
  21885. }
  21886. // SetSourceIdentifier sets the SourceIdentifier field's value.
  21887. func (s *Event) SetSourceIdentifier(v string) *Event {
  21888. s.SourceIdentifier = &v
  21889. return s
  21890. }
  21891. // SetSourceType sets the SourceType field's value.
  21892. func (s *Event) SetSourceType(v string) *Event {
  21893. s.SourceType = &v
  21894. return s
  21895. }
  21896. // Contains the results of a successful invocation of the DescribeEventCategories
  21897. // action.
  21898. type EventCategoriesMap struct {
  21899. _ struct{} `type:"structure"`
  21900. // The event categories for the specified source type
  21901. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  21902. // The source type that the returned categories belong to
  21903. SourceType *string `type:"string"`
  21904. }
  21905. // String returns the string representation
  21906. func (s EventCategoriesMap) String() string {
  21907. return awsutil.Prettify(s)
  21908. }
  21909. // GoString returns the string representation
  21910. func (s EventCategoriesMap) GoString() string {
  21911. return s.String()
  21912. }
  21913. // SetEventCategories sets the EventCategories field's value.
  21914. func (s *EventCategoriesMap) SetEventCategories(v []*string) *EventCategoriesMap {
  21915. s.EventCategories = v
  21916. return s
  21917. }
  21918. // SetSourceType sets the SourceType field's value.
  21919. func (s *EventCategoriesMap) SetSourceType(v string) *EventCategoriesMap {
  21920. s.SourceType = &v
  21921. return s
  21922. }
  21923. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  21924. // action.
  21925. type EventSubscription struct {
  21926. _ struct{} `type:"structure"`
  21927. // The RDS event notification subscription Id.
  21928. CustSubscriptionId *string `type:"string"`
  21929. // The AWS customer account associated with the RDS event notification subscription.
  21930. CustomerAwsId *string `type:"string"`
  21931. // A Boolean value indicating if the subscription is enabled. True indicates
  21932. // the subscription is enabled.
  21933. Enabled *bool `type:"boolean"`
  21934. // A list of event categories for the RDS event notification subscription.
  21935. EventCategoriesList []*string `locationNameList:"EventCategory" type:"list"`
  21936. // The Amazon Resource Name (ARN) for the event subscription.
  21937. EventSubscriptionArn *string `type:"string"`
  21938. // The topic ARN of the RDS event notification subscription.
  21939. SnsTopicArn *string `type:"string"`
  21940. // A list of source IDs for the RDS event notification subscription.
  21941. SourceIdsList []*string `locationNameList:"SourceId" type:"list"`
  21942. // The source type for the RDS event notification subscription.
  21943. SourceType *string `type:"string"`
  21944. // The status of the RDS event notification subscription.
  21945. //
  21946. // Constraints:
  21947. //
  21948. // Can be one of the following: creating | modifying | deleting | active | no-permission
  21949. // | topic-not-exist
  21950. //
  21951. // The status "no-permission" indicates that RDS no longer has permission to
  21952. // post to the SNS topic. The status "topic-not-exist" indicates that the topic
  21953. // was deleted after the subscription was created.
  21954. Status *string `type:"string"`
  21955. // The time the RDS event notification subscription was created.
  21956. SubscriptionCreationTime *string `type:"string"`
  21957. }
  21958. // String returns the string representation
  21959. func (s EventSubscription) String() string {
  21960. return awsutil.Prettify(s)
  21961. }
  21962. // GoString returns the string representation
  21963. func (s EventSubscription) GoString() string {
  21964. return s.String()
  21965. }
  21966. // SetCustSubscriptionId sets the CustSubscriptionId field's value.
  21967. func (s *EventSubscription) SetCustSubscriptionId(v string) *EventSubscription {
  21968. s.CustSubscriptionId = &v
  21969. return s
  21970. }
  21971. // SetCustomerAwsId sets the CustomerAwsId field's value.
  21972. func (s *EventSubscription) SetCustomerAwsId(v string) *EventSubscription {
  21973. s.CustomerAwsId = &v
  21974. return s
  21975. }
  21976. // SetEnabled sets the Enabled field's value.
  21977. func (s *EventSubscription) SetEnabled(v bool) *EventSubscription {
  21978. s.Enabled = &v
  21979. return s
  21980. }
  21981. // SetEventCategoriesList sets the EventCategoriesList field's value.
  21982. func (s *EventSubscription) SetEventCategoriesList(v []*string) *EventSubscription {
  21983. s.EventCategoriesList = v
  21984. return s
  21985. }
  21986. // SetEventSubscriptionArn sets the EventSubscriptionArn field's value.
  21987. func (s *EventSubscription) SetEventSubscriptionArn(v string) *EventSubscription {
  21988. s.EventSubscriptionArn = &v
  21989. return s
  21990. }
  21991. // SetSnsTopicArn sets the SnsTopicArn field's value.
  21992. func (s *EventSubscription) SetSnsTopicArn(v string) *EventSubscription {
  21993. s.SnsTopicArn = &v
  21994. return s
  21995. }
  21996. // SetSourceIdsList sets the SourceIdsList field's value.
  21997. func (s *EventSubscription) SetSourceIdsList(v []*string) *EventSubscription {
  21998. s.SourceIdsList = v
  21999. return s
  22000. }
  22001. // SetSourceType sets the SourceType field's value.
  22002. func (s *EventSubscription) SetSourceType(v string) *EventSubscription {
  22003. s.SourceType = &v
  22004. return s
  22005. }
  22006. // SetStatus sets the Status field's value.
  22007. func (s *EventSubscription) SetStatus(v string) *EventSubscription {
  22008. s.Status = &v
  22009. return s
  22010. }
  22011. // SetSubscriptionCreationTime sets the SubscriptionCreationTime field's value.
  22012. func (s *EventSubscription) SetSubscriptionCreationTime(v string) *EventSubscription {
  22013. s.SubscriptionCreationTime = &v
  22014. return s
  22015. }
  22016. type FailoverDBClusterInput struct {
  22017. _ struct{} `type:"structure"`
  22018. // A DB cluster identifier to force a failover for. This parameter is not case-sensitive.
  22019. //
  22020. // Constraints:
  22021. //
  22022. // * Must match the identifier of an existing DBCluster.
  22023. //
  22024. // DBClusterIdentifier is a required field
  22025. DBClusterIdentifier *string `type:"string" required:"true"`
  22026. // The name of the instance to promote to the primary instance.
  22027. //
  22028. // You must specify the instance identifier for an Aurora Replica in the DB
  22029. // cluster. For example, mydbcluster-replica1.
  22030. TargetDBInstanceIdentifier *string `type:"string"`
  22031. }
  22032. // String returns the string representation
  22033. func (s FailoverDBClusterInput) String() string {
  22034. return awsutil.Prettify(s)
  22035. }
  22036. // GoString returns the string representation
  22037. func (s FailoverDBClusterInput) GoString() string {
  22038. return s.String()
  22039. }
  22040. // Validate inspects the fields of the type to determine if they are valid.
  22041. func (s *FailoverDBClusterInput) Validate() error {
  22042. invalidParams := request.ErrInvalidParams{Context: "FailoverDBClusterInput"}
  22043. if s.DBClusterIdentifier == nil {
  22044. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  22045. }
  22046. if invalidParams.Len() > 0 {
  22047. return invalidParams
  22048. }
  22049. return nil
  22050. }
  22051. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  22052. func (s *FailoverDBClusterInput) SetDBClusterIdentifier(v string) *FailoverDBClusterInput {
  22053. s.DBClusterIdentifier = &v
  22054. return s
  22055. }
  22056. // SetTargetDBInstanceIdentifier sets the TargetDBInstanceIdentifier field's value.
  22057. func (s *FailoverDBClusterInput) SetTargetDBInstanceIdentifier(v string) *FailoverDBClusterInput {
  22058. s.TargetDBInstanceIdentifier = &v
  22059. return s
  22060. }
  22061. type FailoverDBClusterOutput struct {
  22062. _ struct{} `type:"structure"`
  22063. // Contains the details of an Amazon Aurora DB cluster.
  22064. //
  22065. // This data type is used as a response element in the DescribeDBClusters, StopDBCluster,
  22066. // and StartDBCluster actions.
  22067. DBCluster *DBCluster `type:"structure"`
  22068. }
  22069. // String returns the string representation
  22070. func (s FailoverDBClusterOutput) String() string {
  22071. return awsutil.Prettify(s)
  22072. }
  22073. // GoString returns the string representation
  22074. func (s FailoverDBClusterOutput) GoString() string {
  22075. return s.String()
  22076. }
  22077. // SetDBCluster sets the DBCluster field's value.
  22078. func (s *FailoverDBClusterOutput) SetDBCluster(v *DBCluster) *FailoverDBClusterOutput {
  22079. s.DBCluster = v
  22080. return s
  22081. }
  22082. // A filter name and value pair that is used to return a more specific list
  22083. // of results from a describe operation. Filters can be used to match a set
  22084. // of resources by specific criteria, such as IDs. The filters supported by
  22085. // a describe operation are documented with the describe operation.
  22086. //
  22087. // Currently, wildcards are not supported in filters.
  22088. //
  22089. // The following actions can be filtered:
  22090. //
  22091. // * DescribeDBClusterBacktracks
  22092. //
  22093. // * DescribeDBClusterEndpoints
  22094. //
  22095. // * DescribeDBClusters
  22096. //
  22097. // * DescribeDBInstances
  22098. //
  22099. // * DescribePendingMaintenanceActions
  22100. type Filter struct {
  22101. _ struct{} `type:"structure"`
  22102. // The name of the filter. Filter names are case-sensitive.
  22103. //
  22104. // Name is a required field
  22105. Name *string `type:"string" required:"true"`
  22106. // One or more filter values. Filter values are case-sensitive.
  22107. //
  22108. // Values is a required field
  22109. Values []*string `locationNameList:"Value" type:"list" required:"true"`
  22110. }
  22111. // String returns the string representation
  22112. func (s Filter) String() string {
  22113. return awsutil.Prettify(s)
  22114. }
  22115. // GoString returns the string representation
  22116. func (s Filter) GoString() string {
  22117. return s.String()
  22118. }
  22119. // Validate inspects the fields of the type to determine if they are valid.
  22120. func (s *Filter) Validate() error {
  22121. invalidParams := request.ErrInvalidParams{Context: "Filter"}
  22122. if s.Name == nil {
  22123. invalidParams.Add(request.NewErrParamRequired("Name"))
  22124. }
  22125. if s.Values == nil {
  22126. invalidParams.Add(request.NewErrParamRequired("Values"))
  22127. }
  22128. if invalidParams.Len() > 0 {
  22129. return invalidParams
  22130. }
  22131. return nil
  22132. }
  22133. // SetName sets the Name field's value.
  22134. func (s *Filter) SetName(v string) *Filter {
  22135. s.Name = &v
  22136. return s
  22137. }
  22138. // SetValues sets the Values field's value.
  22139. func (s *Filter) SetValues(v []*string) *Filter {
  22140. s.Values = v
  22141. return s
  22142. }
  22143. // A data type representing an Aurora global database.
  22144. type GlobalCluster struct {
  22145. _ struct{} `type:"structure"`
  22146. // The default database name within the new global database cluster.
  22147. DatabaseName *string `type:"string"`
  22148. // The deletion protection setting for the new global database cluster.
  22149. DeletionProtection *bool `type:"boolean"`
  22150. // The Aurora database engine used by the global database cluster.
  22151. Engine *string `type:"string"`
  22152. // Indicates the database engine version.
  22153. EngineVersion *string `type:"string"`
  22154. // The Amazon Resource Name (ARN) for the global database cluster.
  22155. GlobalClusterArn *string `type:"string"`
  22156. // Contains a user-supplied global database cluster identifier. This identifier
  22157. // is the unique key that identifies a global database cluster.
  22158. GlobalClusterIdentifier *string `type:"string"`
  22159. // The list of cluster IDs for secondary clusters within the global database
  22160. // cluster. Currently limited to 1 item.
  22161. GlobalClusterMembers []*GlobalClusterMember `locationNameList:"GlobalClusterMember" type:"list"`
  22162. // The AWS Region-unique, immutable identifier for the global database cluster.
  22163. // This identifier is found in AWS CloudTrail log entries whenever the AWS KMS
  22164. // key for the DB cluster is accessed.
  22165. GlobalClusterResourceId *string `type:"string"`
  22166. // Specifies the current state of this global database cluster.
  22167. Status *string `type:"string"`
  22168. // The storage encryption setting for the global database cluster.
  22169. StorageEncrypted *bool `type:"boolean"`
  22170. }
  22171. // String returns the string representation
  22172. func (s GlobalCluster) String() string {
  22173. return awsutil.Prettify(s)
  22174. }
  22175. // GoString returns the string representation
  22176. func (s GlobalCluster) GoString() string {
  22177. return s.String()
  22178. }
  22179. // SetDatabaseName sets the DatabaseName field's value.
  22180. func (s *GlobalCluster) SetDatabaseName(v string) *GlobalCluster {
  22181. s.DatabaseName = &v
  22182. return s
  22183. }
  22184. // SetDeletionProtection sets the DeletionProtection field's value.
  22185. func (s *GlobalCluster) SetDeletionProtection(v bool) *GlobalCluster {
  22186. s.DeletionProtection = &v
  22187. return s
  22188. }
  22189. // SetEngine sets the Engine field's value.
  22190. func (s *GlobalCluster) SetEngine(v string) *GlobalCluster {
  22191. s.Engine = &v
  22192. return s
  22193. }
  22194. // SetEngineVersion sets the EngineVersion field's value.
  22195. func (s *GlobalCluster) SetEngineVersion(v string) *GlobalCluster {
  22196. s.EngineVersion = &v
  22197. return s
  22198. }
  22199. // SetGlobalClusterArn sets the GlobalClusterArn field's value.
  22200. func (s *GlobalCluster) SetGlobalClusterArn(v string) *GlobalCluster {
  22201. s.GlobalClusterArn = &v
  22202. return s
  22203. }
  22204. // SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value.
  22205. func (s *GlobalCluster) SetGlobalClusterIdentifier(v string) *GlobalCluster {
  22206. s.GlobalClusterIdentifier = &v
  22207. return s
  22208. }
  22209. // SetGlobalClusterMembers sets the GlobalClusterMembers field's value.
  22210. func (s *GlobalCluster) SetGlobalClusterMembers(v []*GlobalClusterMember) *GlobalCluster {
  22211. s.GlobalClusterMembers = v
  22212. return s
  22213. }
  22214. // SetGlobalClusterResourceId sets the GlobalClusterResourceId field's value.
  22215. func (s *GlobalCluster) SetGlobalClusterResourceId(v string) *GlobalCluster {
  22216. s.GlobalClusterResourceId = &v
  22217. return s
  22218. }
  22219. // SetStatus sets the Status field's value.
  22220. func (s *GlobalCluster) SetStatus(v string) *GlobalCluster {
  22221. s.Status = &v
  22222. return s
  22223. }
  22224. // SetStorageEncrypted sets the StorageEncrypted field's value.
  22225. func (s *GlobalCluster) SetStorageEncrypted(v bool) *GlobalCluster {
  22226. s.StorageEncrypted = &v
  22227. return s
  22228. }
  22229. // A data structure with information about any primary and secondary clusters
  22230. // associated with an Aurora global database.
  22231. type GlobalClusterMember struct {
  22232. _ struct{} `type:"structure"`
  22233. // The Amazon Resource Name (ARN) for each Aurora cluster.
  22234. DBClusterArn *string `type:"string"`
  22235. // Specifies whether the Aurora cluster is the primary cluster (that is, has
  22236. // read-write capability) for the Aurora global database with which it is associated.
  22237. IsWriter *bool `type:"boolean"`
  22238. // The Amazon Resource Name (ARN) for each read-only secondary cluster associated
  22239. // with the Aurora global database.
  22240. Readers []*string `type:"list"`
  22241. }
  22242. // String returns the string representation
  22243. func (s GlobalClusterMember) String() string {
  22244. return awsutil.Prettify(s)
  22245. }
  22246. // GoString returns the string representation
  22247. func (s GlobalClusterMember) GoString() string {
  22248. return s.String()
  22249. }
  22250. // SetDBClusterArn sets the DBClusterArn field's value.
  22251. func (s *GlobalClusterMember) SetDBClusterArn(v string) *GlobalClusterMember {
  22252. s.DBClusterArn = &v
  22253. return s
  22254. }
  22255. // SetIsWriter sets the IsWriter field's value.
  22256. func (s *GlobalClusterMember) SetIsWriter(v bool) *GlobalClusterMember {
  22257. s.IsWriter = &v
  22258. return s
  22259. }
  22260. // SetReaders sets the Readers field's value.
  22261. func (s *GlobalClusterMember) SetReaders(v []*string) *GlobalClusterMember {
  22262. s.Readers = v
  22263. return s
  22264. }
  22265. // This data type is used as a response element in the DescribeDBSecurityGroups
  22266. // action.
  22267. type IPRange struct {
  22268. _ struct{} `type:"structure"`
  22269. // Specifies the IP range.
  22270. CIDRIP *string `type:"string"`
  22271. // Specifies the status of the IP range. Status can be "authorizing", "authorized",
  22272. // "revoking", and "revoked".
  22273. Status *string `type:"string"`
  22274. }
  22275. // String returns the string representation
  22276. func (s IPRange) String() string {
  22277. return awsutil.Prettify(s)
  22278. }
  22279. // GoString returns the string representation
  22280. func (s IPRange) GoString() string {
  22281. return s.String()
  22282. }
  22283. // SetCIDRIP sets the CIDRIP field's value.
  22284. func (s *IPRange) SetCIDRIP(v string) *IPRange {
  22285. s.CIDRIP = &v
  22286. return s
  22287. }
  22288. // SetStatus sets the Status field's value.
  22289. func (s *IPRange) SetStatus(v string) *IPRange {
  22290. s.Status = &v
  22291. return s
  22292. }
  22293. type ListTagsForResourceInput struct {
  22294. _ struct{} `type:"structure"`
  22295. // This parameter is not currently supported.
  22296. Filters []*Filter `locationNameList:"Filter" type:"list"`
  22297. // The Amazon RDS resource with tags to be listed. This value is an Amazon Resource
  22298. // Name (ARN). For information about creating an ARN, see Constructing an ARN
  22299. // for Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing)
  22300. // in the Amazon RDS User Guide.
  22301. //
  22302. // ResourceName is a required field
  22303. ResourceName *string `type:"string" required:"true"`
  22304. }
  22305. // String returns the string representation
  22306. func (s ListTagsForResourceInput) String() string {
  22307. return awsutil.Prettify(s)
  22308. }
  22309. // GoString returns the string representation
  22310. func (s ListTagsForResourceInput) GoString() string {
  22311. return s.String()
  22312. }
  22313. // Validate inspects the fields of the type to determine if they are valid.
  22314. func (s *ListTagsForResourceInput) Validate() error {
  22315. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  22316. if s.ResourceName == nil {
  22317. invalidParams.Add(request.NewErrParamRequired("ResourceName"))
  22318. }
  22319. if s.Filters != nil {
  22320. for i, v := range s.Filters {
  22321. if v == nil {
  22322. continue
  22323. }
  22324. if err := v.Validate(); err != nil {
  22325. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  22326. }
  22327. }
  22328. }
  22329. if invalidParams.Len() > 0 {
  22330. return invalidParams
  22331. }
  22332. return nil
  22333. }
  22334. // SetFilters sets the Filters field's value.
  22335. func (s *ListTagsForResourceInput) SetFilters(v []*Filter) *ListTagsForResourceInput {
  22336. s.Filters = v
  22337. return s
  22338. }
  22339. // SetResourceName sets the ResourceName field's value.
  22340. func (s *ListTagsForResourceInput) SetResourceName(v string) *ListTagsForResourceInput {
  22341. s.ResourceName = &v
  22342. return s
  22343. }
  22344. type ListTagsForResourceOutput struct {
  22345. _ struct{} `type:"structure"`
  22346. // List of tags returned by the ListTagsForResource operation.
  22347. TagList []*Tag `locationNameList:"Tag" type:"list"`
  22348. }
  22349. // String returns the string representation
  22350. func (s ListTagsForResourceOutput) String() string {
  22351. return awsutil.Prettify(s)
  22352. }
  22353. // GoString returns the string representation
  22354. func (s ListTagsForResourceOutput) GoString() string {
  22355. return s.String()
  22356. }
  22357. // SetTagList sets the TagList field's value.
  22358. func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput {
  22359. s.TagList = v
  22360. return s
  22361. }
  22362. // The minimum DB engine version required for each corresponding allowed value
  22363. // for an option setting.
  22364. type MinimumEngineVersionPerAllowedValue struct {
  22365. _ struct{} `type:"structure"`
  22366. // The allowed value for an option setting.
  22367. AllowedValue *string `type:"string"`
  22368. // The minimum DB engine version required for the allowed value.
  22369. MinimumEngineVersion *string `type:"string"`
  22370. }
  22371. // String returns the string representation
  22372. func (s MinimumEngineVersionPerAllowedValue) String() string {
  22373. return awsutil.Prettify(s)
  22374. }
  22375. // GoString returns the string representation
  22376. func (s MinimumEngineVersionPerAllowedValue) GoString() string {
  22377. return s.String()
  22378. }
  22379. // SetAllowedValue sets the AllowedValue field's value.
  22380. func (s *MinimumEngineVersionPerAllowedValue) SetAllowedValue(v string) *MinimumEngineVersionPerAllowedValue {
  22381. s.AllowedValue = &v
  22382. return s
  22383. }
  22384. // SetMinimumEngineVersion sets the MinimumEngineVersion field's value.
  22385. func (s *MinimumEngineVersionPerAllowedValue) SetMinimumEngineVersion(v string) *MinimumEngineVersionPerAllowedValue {
  22386. s.MinimumEngineVersion = &v
  22387. return s
  22388. }
  22389. type ModifyCurrentDBClusterCapacityInput struct {
  22390. _ struct{} `type:"structure"`
  22391. // The DB cluster capacity.
  22392. //
  22393. // Constraints:
  22394. //
  22395. // * Value must be 2, 4, 8, 16, 32, 64, 128, or 256.
  22396. Capacity *int64 `type:"integer"`
  22397. // The DB cluster identifier for the cluster being modified. This parameter
  22398. // is not case-sensitive.
  22399. //
  22400. // Constraints:
  22401. //
  22402. // * Must match the identifier of an existing DB cluster.
  22403. //
  22404. // DBClusterIdentifier is a required field
  22405. DBClusterIdentifier *string `type:"string" required:"true"`
  22406. // The amount of time, in seconds, that Aurora Serverless tries to find a scaling
  22407. // point to perform seamless scaling before enforcing the timeout action. The
  22408. // default is 300.
  22409. //
  22410. // * Value must be from 10 through 600.
  22411. SecondsBeforeTimeout *int64 `type:"integer"`
  22412. // The action to take when the timeout is reached, either ForceApplyCapacityChange
  22413. // or RollbackCapacityChange.
  22414. //
  22415. // ForceApplyCapacityChange, the default, sets the capacity to the specified
  22416. // value as soon as possible.
  22417. //
  22418. // RollbackCapacityChange ignores the capacity change if a scaling point is
  22419. // not found in the timeout period.
  22420. TimeoutAction *string `type:"string"`
  22421. }
  22422. // String returns the string representation
  22423. func (s ModifyCurrentDBClusterCapacityInput) String() string {
  22424. return awsutil.Prettify(s)
  22425. }
  22426. // GoString returns the string representation
  22427. func (s ModifyCurrentDBClusterCapacityInput) GoString() string {
  22428. return s.String()
  22429. }
  22430. // Validate inspects the fields of the type to determine if they are valid.
  22431. func (s *ModifyCurrentDBClusterCapacityInput) Validate() error {
  22432. invalidParams := request.ErrInvalidParams{Context: "ModifyCurrentDBClusterCapacityInput"}
  22433. if s.DBClusterIdentifier == nil {
  22434. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  22435. }
  22436. if invalidParams.Len() > 0 {
  22437. return invalidParams
  22438. }
  22439. return nil
  22440. }
  22441. // SetCapacity sets the Capacity field's value.
  22442. func (s *ModifyCurrentDBClusterCapacityInput) SetCapacity(v int64) *ModifyCurrentDBClusterCapacityInput {
  22443. s.Capacity = &v
  22444. return s
  22445. }
  22446. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  22447. func (s *ModifyCurrentDBClusterCapacityInput) SetDBClusterIdentifier(v string) *ModifyCurrentDBClusterCapacityInput {
  22448. s.DBClusterIdentifier = &v
  22449. return s
  22450. }
  22451. // SetSecondsBeforeTimeout sets the SecondsBeforeTimeout field's value.
  22452. func (s *ModifyCurrentDBClusterCapacityInput) SetSecondsBeforeTimeout(v int64) *ModifyCurrentDBClusterCapacityInput {
  22453. s.SecondsBeforeTimeout = &v
  22454. return s
  22455. }
  22456. // SetTimeoutAction sets the TimeoutAction field's value.
  22457. func (s *ModifyCurrentDBClusterCapacityInput) SetTimeoutAction(v string) *ModifyCurrentDBClusterCapacityInput {
  22458. s.TimeoutAction = &v
  22459. return s
  22460. }
  22461. type ModifyCurrentDBClusterCapacityOutput struct {
  22462. _ struct{} `type:"structure"`
  22463. // The current capacity of the DB cluster.
  22464. CurrentCapacity *int64 `type:"integer"`
  22465. // A user-supplied DB cluster identifier. This identifier is the unique key
  22466. // that identifies a DB cluster.
  22467. DBClusterIdentifier *string `type:"string"`
  22468. // A value that specifies the capacity that the DB cluster scales to next.
  22469. PendingCapacity *int64 `type:"integer"`
  22470. // The number of seconds before a call to ModifyCurrentDBClusterCapacity times
  22471. // out.
  22472. SecondsBeforeTimeout *int64 `type:"integer"`
  22473. // The timeout action of a call to ModifyCurrentDBClusterCapacity, either ForceApplyCapacityChange
  22474. // or RollbackCapacityChange.
  22475. TimeoutAction *string `type:"string"`
  22476. }
  22477. // String returns the string representation
  22478. func (s ModifyCurrentDBClusterCapacityOutput) String() string {
  22479. return awsutil.Prettify(s)
  22480. }
  22481. // GoString returns the string representation
  22482. func (s ModifyCurrentDBClusterCapacityOutput) GoString() string {
  22483. return s.String()
  22484. }
  22485. // SetCurrentCapacity sets the CurrentCapacity field's value.
  22486. func (s *ModifyCurrentDBClusterCapacityOutput) SetCurrentCapacity(v int64) *ModifyCurrentDBClusterCapacityOutput {
  22487. s.CurrentCapacity = &v
  22488. return s
  22489. }
  22490. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  22491. func (s *ModifyCurrentDBClusterCapacityOutput) SetDBClusterIdentifier(v string) *ModifyCurrentDBClusterCapacityOutput {
  22492. s.DBClusterIdentifier = &v
  22493. return s
  22494. }
  22495. // SetPendingCapacity sets the PendingCapacity field's value.
  22496. func (s *ModifyCurrentDBClusterCapacityOutput) SetPendingCapacity(v int64) *ModifyCurrentDBClusterCapacityOutput {
  22497. s.PendingCapacity = &v
  22498. return s
  22499. }
  22500. // SetSecondsBeforeTimeout sets the SecondsBeforeTimeout field's value.
  22501. func (s *ModifyCurrentDBClusterCapacityOutput) SetSecondsBeforeTimeout(v int64) *ModifyCurrentDBClusterCapacityOutput {
  22502. s.SecondsBeforeTimeout = &v
  22503. return s
  22504. }
  22505. // SetTimeoutAction sets the TimeoutAction field's value.
  22506. func (s *ModifyCurrentDBClusterCapacityOutput) SetTimeoutAction(v string) *ModifyCurrentDBClusterCapacityOutput {
  22507. s.TimeoutAction = &v
  22508. return s
  22509. }
  22510. type ModifyDBClusterEndpointInput struct {
  22511. _ struct{} `type:"structure"`
  22512. // The identifier of the endpoint to modify. This parameter is stored as a lowercase
  22513. // string.
  22514. //
  22515. // DBClusterEndpointIdentifier is a required field
  22516. DBClusterEndpointIdentifier *string `type:"string" required:"true"`
  22517. // The type of the endpoint. One of: READER, ANY.
  22518. EndpointType *string `type:"string"`
  22519. // List of DB instance identifiers that aren't part of the custom endpoint group.
  22520. // All other eligible instances are reachable through the custom endpoint. Only
  22521. // relevant if the list of static members is empty.
  22522. ExcludedMembers []*string `type:"list"`
  22523. // List of DB instance identifiers that are part of the custom endpoint group.
  22524. StaticMembers []*string `type:"list"`
  22525. }
  22526. // String returns the string representation
  22527. func (s ModifyDBClusterEndpointInput) String() string {
  22528. return awsutil.Prettify(s)
  22529. }
  22530. // GoString returns the string representation
  22531. func (s ModifyDBClusterEndpointInput) GoString() string {
  22532. return s.String()
  22533. }
  22534. // Validate inspects the fields of the type to determine if they are valid.
  22535. func (s *ModifyDBClusterEndpointInput) Validate() error {
  22536. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterEndpointInput"}
  22537. if s.DBClusterEndpointIdentifier == nil {
  22538. invalidParams.Add(request.NewErrParamRequired("DBClusterEndpointIdentifier"))
  22539. }
  22540. if invalidParams.Len() > 0 {
  22541. return invalidParams
  22542. }
  22543. return nil
  22544. }
  22545. // SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value.
  22546. func (s *ModifyDBClusterEndpointInput) SetDBClusterEndpointIdentifier(v string) *ModifyDBClusterEndpointInput {
  22547. s.DBClusterEndpointIdentifier = &v
  22548. return s
  22549. }
  22550. // SetEndpointType sets the EndpointType field's value.
  22551. func (s *ModifyDBClusterEndpointInput) SetEndpointType(v string) *ModifyDBClusterEndpointInput {
  22552. s.EndpointType = &v
  22553. return s
  22554. }
  22555. // SetExcludedMembers sets the ExcludedMembers field's value.
  22556. func (s *ModifyDBClusterEndpointInput) SetExcludedMembers(v []*string) *ModifyDBClusterEndpointInput {
  22557. s.ExcludedMembers = v
  22558. return s
  22559. }
  22560. // SetStaticMembers sets the StaticMembers field's value.
  22561. func (s *ModifyDBClusterEndpointInput) SetStaticMembers(v []*string) *ModifyDBClusterEndpointInput {
  22562. s.StaticMembers = v
  22563. return s
  22564. }
  22565. // This data type represents the information you need to connect to an Amazon
  22566. // Aurora DB cluster. This data type is used as a response element in the following
  22567. // actions:
  22568. //
  22569. // * CreateDBClusterEndpoint
  22570. //
  22571. // * DescribeDBClusterEndpoints
  22572. //
  22573. // * ModifyDBClusterEndpoint
  22574. //
  22575. // * DeleteDBClusterEndpoint
  22576. //
  22577. // For the data structure that represents Amazon RDS DB instance endpoints,
  22578. // see Endpoint.
  22579. type ModifyDBClusterEndpointOutput struct {
  22580. _ struct{} `type:"structure"`
  22581. // The type associated with a custom endpoint. One of: READER, ANY.
  22582. CustomEndpointType *string `type:"string"`
  22583. // The Amazon Resource Name (ARN) for the endpoint.
  22584. DBClusterEndpointArn *string `type:"string"`
  22585. // The identifier associated with the endpoint. This parameter is stored as
  22586. // a lowercase string.
  22587. DBClusterEndpointIdentifier *string `type:"string"`
  22588. // A unique system-generated identifier for an endpoint. It remains the same
  22589. // for the whole life of the endpoint.
  22590. DBClusterEndpointResourceIdentifier *string `type:"string"`
  22591. // The DB cluster identifier of the DB cluster associated with the endpoint.
  22592. // This parameter is stored as a lowercase string.
  22593. DBClusterIdentifier *string `type:"string"`
  22594. // The DNS address of the endpoint.
  22595. Endpoint *string `type:"string"`
  22596. // The type of the endpoint. One of: READER, WRITER, CUSTOM.
  22597. EndpointType *string `type:"string"`
  22598. // List of DB instance identifiers that aren't part of the custom endpoint group.
  22599. // All other eligible instances are reachable through the custom endpoint. Only
  22600. // relevant if the list of static members is empty.
  22601. ExcludedMembers []*string `type:"list"`
  22602. // List of DB instance identifiers that are part of the custom endpoint group.
  22603. StaticMembers []*string `type:"list"`
  22604. // The current status of the endpoint. One of: creating, available, deleting,
  22605. // modifying.
  22606. Status *string `type:"string"`
  22607. }
  22608. // String returns the string representation
  22609. func (s ModifyDBClusterEndpointOutput) String() string {
  22610. return awsutil.Prettify(s)
  22611. }
  22612. // GoString returns the string representation
  22613. func (s ModifyDBClusterEndpointOutput) GoString() string {
  22614. return s.String()
  22615. }
  22616. // SetCustomEndpointType sets the CustomEndpointType field's value.
  22617. func (s *ModifyDBClusterEndpointOutput) SetCustomEndpointType(v string) *ModifyDBClusterEndpointOutput {
  22618. s.CustomEndpointType = &v
  22619. return s
  22620. }
  22621. // SetDBClusterEndpointArn sets the DBClusterEndpointArn field's value.
  22622. func (s *ModifyDBClusterEndpointOutput) SetDBClusterEndpointArn(v string) *ModifyDBClusterEndpointOutput {
  22623. s.DBClusterEndpointArn = &v
  22624. return s
  22625. }
  22626. // SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value.
  22627. func (s *ModifyDBClusterEndpointOutput) SetDBClusterEndpointIdentifier(v string) *ModifyDBClusterEndpointOutput {
  22628. s.DBClusterEndpointIdentifier = &v
  22629. return s
  22630. }
  22631. // SetDBClusterEndpointResourceIdentifier sets the DBClusterEndpointResourceIdentifier field's value.
  22632. func (s *ModifyDBClusterEndpointOutput) SetDBClusterEndpointResourceIdentifier(v string) *ModifyDBClusterEndpointOutput {
  22633. s.DBClusterEndpointResourceIdentifier = &v
  22634. return s
  22635. }
  22636. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  22637. func (s *ModifyDBClusterEndpointOutput) SetDBClusterIdentifier(v string) *ModifyDBClusterEndpointOutput {
  22638. s.DBClusterIdentifier = &v
  22639. return s
  22640. }
  22641. // SetEndpoint sets the Endpoint field's value.
  22642. func (s *ModifyDBClusterEndpointOutput) SetEndpoint(v string) *ModifyDBClusterEndpointOutput {
  22643. s.Endpoint = &v
  22644. return s
  22645. }
  22646. // SetEndpointType sets the EndpointType field's value.
  22647. func (s *ModifyDBClusterEndpointOutput) SetEndpointType(v string) *ModifyDBClusterEndpointOutput {
  22648. s.EndpointType = &v
  22649. return s
  22650. }
  22651. // SetExcludedMembers sets the ExcludedMembers field's value.
  22652. func (s *ModifyDBClusterEndpointOutput) SetExcludedMembers(v []*string) *ModifyDBClusterEndpointOutput {
  22653. s.ExcludedMembers = v
  22654. return s
  22655. }
  22656. // SetStaticMembers sets the StaticMembers field's value.
  22657. func (s *ModifyDBClusterEndpointOutput) SetStaticMembers(v []*string) *ModifyDBClusterEndpointOutput {
  22658. s.StaticMembers = v
  22659. return s
  22660. }
  22661. // SetStatus sets the Status field's value.
  22662. func (s *ModifyDBClusterEndpointOutput) SetStatus(v string) *ModifyDBClusterEndpointOutput {
  22663. s.Status = &v
  22664. return s
  22665. }
  22666. type ModifyDBClusterInput struct {
  22667. _ struct{} `type:"structure"`
  22668. // A value that specifies whether the modifications in this request and any
  22669. // pending modifications are asynchronously applied as soon as possible, regardless
  22670. // of the PreferredMaintenanceWindow setting for the DB cluster. If this parameter
  22671. // is set to false, changes to the DB cluster are applied during the next maintenance
  22672. // window.
  22673. //
  22674. // The ApplyImmediately parameter only affects the EnableIAMDatabaseAuthentication,
  22675. // MasterUserPassword, and NewDBClusterIdentifier values. If you set the ApplyImmediately
  22676. // parameter value to false, then changes to the EnableIAMDatabaseAuthentication,
  22677. // MasterUserPassword, and NewDBClusterIdentifier values are applied during
  22678. // the next maintenance window. All other changes are applied immediately, regardless
  22679. // of the value of the ApplyImmediately parameter.
  22680. //
  22681. // Default: false
  22682. ApplyImmediately *bool `type:"boolean"`
  22683. // The target backtrack window, in seconds. To disable backtracking, set this
  22684. // value to 0.
  22685. //
  22686. // Default: 0
  22687. //
  22688. // Constraints:
  22689. //
  22690. // * If specified, this value must be set to a number from 0 to 259,200 (72
  22691. // hours).
  22692. BacktrackWindow *int64 `type:"long"`
  22693. // The number of days for which automated backups are retained. You must specify
  22694. // a minimum value of 1.
  22695. //
  22696. // Default: 1
  22697. //
  22698. // Constraints:
  22699. //
  22700. // * Must be a value from 1 to 35
  22701. BackupRetentionPeriod *int64 `type:"integer"`
  22702. // The configuration setting for the log types to be enabled for export to CloudWatch
  22703. // Logs for a specific DB cluster.
  22704. CloudwatchLogsExportConfiguration *CloudwatchLogsExportConfiguration `type:"structure"`
  22705. // The DB cluster identifier for the cluster being modified. This parameter
  22706. // is not case-sensitive.
  22707. //
  22708. // Constraints:
  22709. //
  22710. // * Must match the identifier of an existing DBCluster.
  22711. //
  22712. // DBClusterIdentifier is a required field
  22713. DBClusterIdentifier *string `type:"string" required:"true"`
  22714. // The name of the DB cluster parameter group to use for the DB cluster.
  22715. DBClusterParameterGroupName *string `type:"string"`
  22716. // Indicates if the DB cluster has deletion protection enabled. The database
  22717. // can't be deleted when this value is set to true.
  22718. DeletionProtection *bool `type:"boolean"`
  22719. // HTTP endpoint functionality is in beta for Aurora Serverless and is subject
  22720. // to change.
  22721. //
  22722. // A value that indicates whether to enable the HTTP endpoint for an Aurora
  22723. // Serverless DB cluster. By default, the HTTP endpoint is disabled.
  22724. //
  22725. // When enabled, the HTTP endpoint provides a connectionless web service API
  22726. // for running SQL queries on the Aurora Serverless DB cluster. You can also
  22727. // query your database from inside the RDS console with the query editor.
  22728. //
  22729. // For more information about Aurora Serverless, see Using Amazon Aurora Serverless
  22730. // (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html)
  22731. // in the Amazon Aurora User Guide.
  22732. EnableHttpEndpoint *bool `type:"boolean"`
  22733. // True to enable mapping of AWS Identity and Access Management (IAM) accounts
  22734. // to database accounts, and otherwise false.
  22735. //
  22736. // Default: false
  22737. EnableIAMDatabaseAuthentication *bool `type:"boolean"`
  22738. // The version number of the database engine to which you want to upgrade. Changing
  22739. // this parameter results in an outage. The change is applied during the next
  22740. // maintenance window unless the ApplyImmediately parameter is set to true.
  22741. //
  22742. // For a list of valid engine versions, see CreateDBCluster, or call DescribeDBEngineVersions.
  22743. EngineVersion *string `type:"string"`
  22744. // The new password for the master database user. This password can contain
  22745. // any printable ASCII character except "/", """, or "@".
  22746. //
  22747. // Constraints: Must contain from 8 to 41 characters.
  22748. MasterUserPassword *string `type:"string"`
  22749. // The new DB cluster identifier for the DB cluster when renaming a DB cluster.
  22750. // This value is stored as a lowercase string.
  22751. //
  22752. // Constraints:
  22753. //
  22754. // * Must contain from 1 to 63 letters, numbers, or hyphens
  22755. //
  22756. // * The first character must be a letter
  22757. //
  22758. // * Can't end with a hyphen or contain two consecutive hyphens
  22759. //
  22760. // Example: my-cluster2
  22761. NewDBClusterIdentifier *string `type:"string"`
  22762. // A value that indicates that the DB cluster should be associated with the
  22763. // specified option group. Changing this parameter doesn't result in an outage
  22764. // except in the following case, and the change is applied during the next maintenance
  22765. // window unless the ApplyImmediately parameter is set to true for this request.
  22766. // If the parameter change results in an option group that enables OEM, this
  22767. // change can cause a brief (sub-second) period during which new connections
  22768. // are rejected but existing connections are not interrupted.
  22769. //
  22770. // Permanent options can't be removed from an option group. The option group
  22771. // can't be removed from a DB cluster once it is associated with a DB cluster.
  22772. OptionGroupName *string `type:"string"`
  22773. // The port number on which the DB cluster accepts connections.
  22774. //
  22775. // Constraints: Value must be 1150-65535
  22776. //
  22777. // Default: The same port as the original DB cluster.
  22778. Port *int64 `type:"integer"`
  22779. // The daily time range during which automated backups are created if automated
  22780. // backups are enabled, using the BackupRetentionPeriod parameter.
  22781. //
  22782. // The default is a 30-minute window selected at random from an 8-hour block
  22783. // of time for each AWS Region. To see the time blocks available, see Adjusting
  22784. // the Preferred DB Cluster Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora)
  22785. // in the Amazon Aurora User Guide.
  22786. //
  22787. // Constraints:
  22788. //
  22789. // * Must be in the format hh24:mi-hh24:mi.
  22790. //
  22791. // * Must be in Universal Coordinated Time (UTC).
  22792. //
  22793. // * Must not conflict with the preferred maintenance window.
  22794. //
  22795. // * Must be at least 30 minutes.
  22796. PreferredBackupWindow *string `type:"string"`
  22797. // The weekly time range during which system maintenance can occur, in Universal
  22798. // Coordinated Time (UTC).
  22799. //
  22800. // Format: ddd:hh24:mi-ddd:hh24:mi
  22801. //
  22802. // The default is a 30-minute window selected at random from an 8-hour block
  22803. // of time for each AWS Region, occurring on a random day of the week. To see
  22804. // the time blocks available, see Adjusting the Preferred DB Cluster Maintenance
  22805. // Window (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora)
  22806. // in the Amazon Aurora User Guide.
  22807. //
  22808. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
  22809. //
  22810. // Constraints: Minimum 30-minute window.
  22811. PreferredMaintenanceWindow *string `type:"string"`
  22812. // The scaling properties of the DB cluster. You can only modify scaling properties
  22813. // for DB clusters in serverless DB engine mode.
  22814. ScalingConfiguration *ScalingConfiguration `type:"structure"`
  22815. // A list of VPC security groups that the DB cluster will belong to.
  22816. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  22817. }
  22818. // String returns the string representation
  22819. func (s ModifyDBClusterInput) String() string {
  22820. return awsutil.Prettify(s)
  22821. }
  22822. // GoString returns the string representation
  22823. func (s ModifyDBClusterInput) GoString() string {
  22824. return s.String()
  22825. }
  22826. // Validate inspects the fields of the type to determine if they are valid.
  22827. func (s *ModifyDBClusterInput) Validate() error {
  22828. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterInput"}
  22829. if s.DBClusterIdentifier == nil {
  22830. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  22831. }
  22832. if invalidParams.Len() > 0 {
  22833. return invalidParams
  22834. }
  22835. return nil
  22836. }
  22837. // SetApplyImmediately sets the ApplyImmediately field's value.
  22838. func (s *ModifyDBClusterInput) SetApplyImmediately(v bool) *ModifyDBClusterInput {
  22839. s.ApplyImmediately = &v
  22840. return s
  22841. }
  22842. // SetBacktrackWindow sets the BacktrackWindow field's value.
  22843. func (s *ModifyDBClusterInput) SetBacktrackWindow(v int64) *ModifyDBClusterInput {
  22844. s.BacktrackWindow = &v
  22845. return s
  22846. }
  22847. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  22848. func (s *ModifyDBClusterInput) SetBackupRetentionPeriod(v int64) *ModifyDBClusterInput {
  22849. s.BackupRetentionPeriod = &v
  22850. return s
  22851. }
  22852. // SetCloudwatchLogsExportConfiguration sets the CloudwatchLogsExportConfiguration field's value.
  22853. func (s *ModifyDBClusterInput) SetCloudwatchLogsExportConfiguration(v *CloudwatchLogsExportConfiguration) *ModifyDBClusterInput {
  22854. s.CloudwatchLogsExportConfiguration = v
  22855. return s
  22856. }
  22857. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  22858. func (s *ModifyDBClusterInput) SetDBClusterIdentifier(v string) *ModifyDBClusterInput {
  22859. s.DBClusterIdentifier = &v
  22860. return s
  22861. }
  22862. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  22863. func (s *ModifyDBClusterInput) SetDBClusterParameterGroupName(v string) *ModifyDBClusterInput {
  22864. s.DBClusterParameterGroupName = &v
  22865. return s
  22866. }
  22867. // SetDeletionProtection sets the DeletionProtection field's value.
  22868. func (s *ModifyDBClusterInput) SetDeletionProtection(v bool) *ModifyDBClusterInput {
  22869. s.DeletionProtection = &v
  22870. return s
  22871. }
  22872. // SetEnableHttpEndpoint sets the EnableHttpEndpoint field's value.
  22873. func (s *ModifyDBClusterInput) SetEnableHttpEndpoint(v bool) *ModifyDBClusterInput {
  22874. s.EnableHttpEndpoint = &v
  22875. return s
  22876. }
  22877. // SetEnableIAMDatabaseAuthentication sets the EnableIAMDatabaseAuthentication field's value.
  22878. func (s *ModifyDBClusterInput) SetEnableIAMDatabaseAuthentication(v bool) *ModifyDBClusterInput {
  22879. s.EnableIAMDatabaseAuthentication = &v
  22880. return s
  22881. }
  22882. // SetEngineVersion sets the EngineVersion field's value.
  22883. func (s *ModifyDBClusterInput) SetEngineVersion(v string) *ModifyDBClusterInput {
  22884. s.EngineVersion = &v
  22885. return s
  22886. }
  22887. // SetMasterUserPassword sets the MasterUserPassword field's value.
  22888. func (s *ModifyDBClusterInput) SetMasterUserPassword(v string) *ModifyDBClusterInput {
  22889. s.MasterUserPassword = &v
  22890. return s
  22891. }
  22892. // SetNewDBClusterIdentifier sets the NewDBClusterIdentifier field's value.
  22893. func (s *ModifyDBClusterInput) SetNewDBClusterIdentifier(v string) *ModifyDBClusterInput {
  22894. s.NewDBClusterIdentifier = &v
  22895. return s
  22896. }
  22897. // SetOptionGroupName sets the OptionGroupName field's value.
  22898. func (s *ModifyDBClusterInput) SetOptionGroupName(v string) *ModifyDBClusterInput {
  22899. s.OptionGroupName = &v
  22900. return s
  22901. }
  22902. // SetPort sets the Port field's value.
  22903. func (s *ModifyDBClusterInput) SetPort(v int64) *ModifyDBClusterInput {
  22904. s.Port = &v
  22905. return s
  22906. }
  22907. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  22908. func (s *ModifyDBClusterInput) SetPreferredBackupWindow(v string) *ModifyDBClusterInput {
  22909. s.PreferredBackupWindow = &v
  22910. return s
  22911. }
  22912. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  22913. func (s *ModifyDBClusterInput) SetPreferredMaintenanceWindow(v string) *ModifyDBClusterInput {
  22914. s.PreferredMaintenanceWindow = &v
  22915. return s
  22916. }
  22917. // SetScalingConfiguration sets the ScalingConfiguration field's value.
  22918. func (s *ModifyDBClusterInput) SetScalingConfiguration(v *ScalingConfiguration) *ModifyDBClusterInput {
  22919. s.ScalingConfiguration = v
  22920. return s
  22921. }
  22922. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  22923. func (s *ModifyDBClusterInput) SetVpcSecurityGroupIds(v []*string) *ModifyDBClusterInput {
  22924. s.VpcSecurityGroupIds = v
  22925. return s
  22926. }
  22927. type ModifyDBClusterOutput struct {
  22928. _ struct{} `type:"structure"`
  22929. // Contains the details of an Amazon Aurora DB cluster.
  22930. //
  22931. // This data type is used as a response element in the DescribeDBClusters, StopDBCluster,
  22932. // and StartDBCluster actions.
  22933. DBCluster *DBCluster `type:"structure"`
  22934. }
  22935. // String returns the string representation
  22936. func (s ModifyDBClusterOutput) String() string {
  22937. return awsutil.Prettify(s)
  22938. }
  22939. // GoString returns the string representation
  22940. func (s ModifyDBClusterOutput) GoString() string {
  22941. return s.String()
  22942. }
  22943. // SetDBCluster sets the DBCluster field's value.
  22944. func (s *ModifyDBClusterOutput) SetDBCluster(v *DBCluster) *ModifyDBClusterOutput {
  22945. s.DBCluster = v
  22946. return s
  22947. }
  22948. type ModifyDBClusterParameterGroupInput struct {
  22949. _ struct{} `type:"structure"`
  22950. // The name of the DB cluster parameter group to modify.
  22951. //
  22952. // DBClusterParameterGroupName is a required field
  22953. DBClusterParameterGroupName *string `type:"string" required:"true"`
  22954. // A list of parameters in the DB cluster parameter group to modify.
  22955. //
  22956. // Parameters is a required field
  22957. Parameters []*Parameter `locationNameList:"Parameter" type:"list" required:"true"`
  22958. }
  22959. // String returns the string representation
  22960. func (s ModifyDBClusterParameterGroupInput) String() string {
  22961. return awsutil.Prettify(s)
  22962. }
  22963. // GoString returns the string representation
  22964. func (s ModifyDBClusterParameterGroupInput) GoString() string {
  22965. return s.String()
  22966. }
  22967. // Validate inspects the fields of the type to determine if they are valid.
  22968. func (s *ModifyDBClusterParameterGroupInput) Validate() error {
  22969. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterParameterGroupInput"}
  22970. if s.DBClusterParameterGroupName == nil {
  22971. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  22972. }
  22973. if s.Parameters == nil {
  22974. invalidParams.Add(request.NewErrParamRequired("Parameters"))
  22975. }
  22976. if invalidParams.Len() > 0 {
  22977. return invalidParams
  22978. }
  22979. return nil
  22980. }
  22981. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  22982. func (s *ModifyDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *ModifyDBClusterParameterGroupInput {
  22983. s.DBClusterParameterGroupName = &v
  22984. return s
  22985. }
  22986. // SetParameters sets the Parameters field's value.
  22987. func (s *ModifyDBClusterParameterGroupInput) SetParameters(v []*Parameter) *ModifyDBClusterParameterGroupInput {
  22988. s.Parameters = v
  22989. return s
  22990. }
  22991. type ModifyDBClusterSnapshotAttributeInput struct {
  22992. _ struct{} `type:"structure"`
  22993. // The name of the DB cluster snapshot attribute to modify.
  22994. //
  22995. // To manage authorization for other AWS accounts to copy or restore a manual
  22996. // DB cluster snapshot, set this value to restore.
  22997. //
  22998. // AttributeName is a required field
  22999. AttributeName *string `type:"string" required:"true"`
  23000. // The identifier for the DB cluster snapshot to modify the attributes for.
  23001. //
  23002. // DBClusterSnapshotIdentifier is a required field
  23003. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  23004. // A list of DB cluster snapshot attributes to add to the attribute specified
  23005. // by AttributeName.
  23006. //
  23007. // To authorize other AWS accounts to copy or restore a manual DB cluster snapshot,
  23008. // set this list to include one or more AWS account IDs, or all to make the
  23009. // manual DB cluster snapshot restorable by any AWS account. Do not add the
  23010. // all value for any manual DB cluster snapshots that contain private information
  23011. // that you don't want available to all AWS accounts.
  23012. ValuesToAdd []*string `locationNameList:"AttributeValue" type:"list"`
  23013. // A list of DB cluster snapshot attributes to remove from the attribute specified
  23014. // by AttributeName.
  23015. //
  23016. // To remove authorization for other AWS accounts to copy or restore a manual
  23017. // DB cluster snapshot, set this list to include one or more AWS account identifiers,
  23018. // or all to remove authorization for any AWS account to copy or restore the
  23019. // DB cluster snapshot. If you specify all, an AWS account whose account ID
  23020. // is explicitly added to the restore attribute can still copy or restore a
  23021. // manual DB cluster snapshot.
  23022. ValuesToRemove []*string `locationNameList:"AttributeValue" type:"list"`
  23023. }
  23024. // String returns the string representation
  23025. func (s ModifyDBClusterSnapshotAttributeInput) String() string {
  23026. return awsutil.Prettify(s)
  23027. }
  23028. // GoString returns the string representation
  23029. func (s ModifyDBClusterSnapshotAttributeInput) GoString() string {
  23030. return s.String()
  23031. }
  23032. // Validate inspects the fields of the type to determine if they are valid.
  23033. func (s *ModifyDBClusterSnapshotAttributeInput) Validate() error {
  23034. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterSnapshotAttributeInput"}
  23035. if s.AttributeName == nil {
  23036. invalidParams.Add(request.NewErrParamRequired("AttributeName"))
  23037. }
  23038. if s.DBClusterSnapshotIdentifier == nil {
  23039. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  23040. }
  23041. if invalidParams.Len() > 0 {
  23042. return invalidParams
  23043. }
  23044. return nil
  23045. }
  23046. // SetAttributeName sets the AttributeName field's value.
  23047. func (s *ModifyDBClusterSnapshotAttributeInput) SetAttributeName(v string) *ModifyDBClusterSnapshotAttributeInput {
  23048. s.AttributeName = &v
  23049. return s
  23050. }
  23051. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  23052. func (s *ModifyDBClusterSnapshotAttributeInput) SetDBClusterSnapshotIdentifier(v string) *ModifyDBClusterSnapshotAttributeInput {
  23053. s.DBClusterSnapshotIdentifier = &v
  23054. return s
  23055. }
  23056. // SetValuesToAdd sets the ValuesToAdd field's value.
  23057. func (s *ModifyDBClusterSnapshotAttributeInput) SetValuesToAdd(v []*string) *ModifyDBClusterSnapshotAttributeInput {
  23058. s.ValuesToAdd = v
  23059. return s
  23060. }
  23061. // SetValuesToRemove sets the ValuesToRemove field's value.
  23062. func (s *ModifyDBClusterSnapshotAttributeInput) SetValuesToRemove(v []*string) *ModifyDBClusterSnapshotAttributeInput {
  23063. s.ValuesToRemove = v
  23064. return s
  23065. }
  23066. type ModifyDBClusterSnapshotAttributeOutput struct {
  23067. _ struct{} `type:"structure"`
  23068. // Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes
  23069. // API action.
  23070. //
  23071. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  23072. // to copy or restore a manual DB cluster snapshot. For more information, see
  23073. // the ModifyDBClusterSnapshotAttribute API action.
  23074. DBClusterSnapshotAttributesResult *DBClusterSnapshotAttributesResult `type:"structure"`
  23075. }
  23076. // String returns the string representation
  23077. func (s ModifyDBClusterSnapshotAttributeOutput) String() string {
  23078. return awsutil.Prettify(s)
  23079. }
  23080. // GoString returns the string representation
  23081. func (s ModifyDBClusterSnapshotAttributeOutput) GoString() string {
  23082. return s.String()
  23083. }
  23084. // SetDBClusterSnapshotAttributesResult sets the DBClusterSnapshotAttributesResult field's value.
  23085. func (s *ModifyDBClusterSnapshotAttributeOutput) SetDBClusterSnapshotAttributesResult(v *DBClusterSnapshotAttributesResult) *ModifyDBClusterSnapshotAttributeOutput {
  23086. s.DBClusterSnapshotAttributesResult = v
  23087. return s
  23088. }
  23089. type ModifyDBInstanceInput struct {
  23090. _ struct{} `type:"structure"`
  23091. // The new amount of storage (in gibibytes) to allocate for the DB instance.
  23092. //
  23093. // For MariaDB, MySQL, Oracle, and PostgreSQL, the value supplied must be at
  23094. // least 10% greater than the current value. Values that are not at least 10%
  23095. // greater than the existing value are rounded up so that they are 10% greater
  23096. // than the current value.
  23097. //
  23098. // For the valid values for allocated storage for each engine, see CreateDBInstance.
  23099. AllocatedStorage *int64 `type:"integer"`
  23100. // Indicates that major version upgrades are allowed. Changing this parameter
  23101. // doesn't result in an outage and the change is asynchronously applied as soon
  23102. // as possible.
  23103. //
  23104. // Constraints: This parameter must be set to true when specifying a value for
  23105. // the EngineVersion parameter that is a different major version than the DB
  23106. // instance's current version.
  23107. AllowMajorVersionUpgrade *bool `type:"boolean"`
  23108. // Specifies whether the modifications in this request and any pending modifications
  23109. // are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow
  23110. // setting for the DB instance.
  23111. //
  23112. // If this parameter is set to false, changes to the DB instance are applied
  23113. // during the next maintenance window. Some parameter changes can cause an outage
  23114. // and are applied on the next call to RebootDBInstance, or the next failure
  23115. // reboot. Review the table of parameters in Modifying a DB Instance and Using
  23116. // the Apply Immediately Parameter (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.DBInstance.Modifying.html)
  23117. // in the Amazon RDS User Guide. to see the impact that setting ApplyImmediately
  23118. // to true or false has for each modified parameter and to determine when the
  23119. // changes are applied.
  23120. //
  23121. // Default: false
  23122. ApplyImmediately *bool `type:"boolean"`
  23123. // Indicates that minor version upgrades are applied automatically to the DB
  23124. // instance during the maintenance window. Changing this parameter doesn't result
  23125. // in an outage except in the following case and the change is asynchronously
  23126. // applied as soon as possible. An outage will result if this parameter is set
  23127. // to true during the maintenance window, and a newer minor version is available,
  23128. // and RDS has enabled auto patching for that engine version.
  23129. AutoMinorVersionUpgrade *bool `type:"boolean"`
  23130. // The number of days to retain automated backups. Setting this parameter to
  23131. // a positive number enables backups. Setting this parameter to 0 disables automated
  23132. // backups.
  23133. //
  23134. // Changing this parameter can result in an outage if you change from 0 to a
  23135. // non-zero value or from a non-zero value to 0. These changes are applied during
  23136. // the next maintenance window unless the ApplyImmediately parameter is set
  23137. // to true for this request. If you change the parameter from one non-zero value
  23138. // to another non-zero value, the change is asynchronously applied as soon as
  23139. // possible.
  23140. //
  23141. // Amazon Aurora
  23142. //
  23143. // Not applicable. The retention period for automated backups is managed by
  23144. // the DB cluster. For more information, see ModifyDBCluster.
  23145. //
  23146. // Default: Uses existing setting
  23147. //
  23148. // Constraints:
  23149. //
  23150. // * Must be a value from 0 to 35
  23151. //
  23152. // * Can be specified for a MySQL Read Replica only if the source is running
  23153. // MySQL 5.6 or later
  23154. //
  23155. // * Can be specified for a PostgreSQL Read Replica only if the source is
  23156. // running PostgreSQL 9.3.5
  23157. //
  23158. // * Can't be set to 0 if the DB instance is a source to Read Replicas
  23159. BackupRetentionPeriod *int64 `type:"integer"`
  23160. // Indicates the certificate that needs to be associated with the instance.
  23161. CACertificateIdentifier *string `type:"string"`
  23162. // The configuration setting for the log types to be enabled for export to CloudWatch
  23163. // Logs for a specific DB instance.
  23164. CloudwatchLogsExportConfiguration *CloudwatchLogsExportConfiguration `type:"structure"`
  23165. // True to copy all tags from the DB instance to snapshots of the DB instance,
  23166. // and otherwise false. The default is false.
  23167. CopyTagsToSnapshot *bool `type:"boolean"`
  23168. // The new compute and memory capacity of the DB instance, for example, db.m4.large.
  23169. // Not all DB instance classes are available in all AWS Regions, or for all
  23170. // database engines. For the full list of DB instance classes, and availability
  23171. // for your engine, see DB Instance Class (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html)
  23172. // in the Amazon RDS User Guide.
  23173. //
  23174. // If you modify the DB instance class, an outage occurs during the change.
  23175. // The change is applied during the next maintenance window, unless ApplyImmediately
  23176. // is specified as true for this request.
  23177. //
  23178. // Default: Uses existing setting
  23179. DBInstanceClass *string `type:"string"`
  23180. // The DB instance identifier. This value is stored as a lowercase string.
  23181. //
  23182. // Constraints:
  23183. //
  23184. // * Must match the identifier of an existing DBInstance.
  23185. //
  23186. // DBInstanceIdentifier is a required field
  23187. DBInstanceIdentifier *string `type:"string" required:"true"`
  23188. // The name of the DB parameter group to apply to the DB instance. Changing
  23189. // this setting doesn't result in an outage. The parameter group name itself
  23190. // is changed immediately, but the actual parameter changes are not applied
  23191. // until you reboot the instance without failover. The db instance will NOT
  23192. // be rebooted automatically and the parameter changes will NOT be applied during
  23193. // the next maintenance window.
  23194. //
  23195. // Default: Uses existing setting
  23196. //
  23197. // Constraints: The DB parameter group must be in the same DB parameter group
  23198. // family as this DB instance.
  23199. DBParameterGroupName *string `type:"string"`
  23200. // The port number on which the database accepts connections.
  23201. //
  23202. // The value of the DBPortNumber parameter must not match any of the port values
  23203. // specified for options in the option group for the DB instance.
  23204. //
  23205. // Your database will restart when you change the DBPortNumber value regardless
  23206. // of the value of the ApplyImmediately parameter.
  23207. //
  23208. // MySQL
  23209. //
  23210. // Default: 3306
  23211. //
  23212. // Valid Values: 1150-65535
  23213. //
  23214. // MariaDB
  23215. //
  23216. // Default: 3306
  23217. //
  23218. // Valid Values: 1150-65535
  23219. //
  23220. // PostgreSQL
  23221. //
  23222. // Default: 5432
  23223. //
  23224. // Valid Values: 1150-65535
  23225. //
  23226. // Type: Integer
  23227. //
  23228. // Oracle
  23229. //
  23230. // Default: 1521
  23231. //
  23232. // Valid Values: 1150-65535
  23233. //
  23234. // SQL Server
  23235. //
  23236. // Default: 1433
  23237. //
  23238. // Valid Values: 1150-65535 except for 1434, 3389, 47001, 49152, and 49152 through
  23239. // 49156.
  23240. //
  23241. // Amazon Aurora
  23242. //
  23243. // Default: 3306
  23244. //
  23245. // Valid Values: 1150-65535
  23246. DBPortNumber *int64 `type:"integer"`
  23247. // A list of DB security groups to authorize on this DB instance. Changing this
  23248. // setting doesn't result in an outage and the change is asynchronously applied
  23249. // as soon as possible.
  23250. //
  23251. // Constraints:
  23252. //
  23253. // * If supplied, must match existing DBSecurityGroups.
  23254. DBSecurityGroups []*string `locationNameList:"DBSecurityGroupName" type:"list"`
  23255. // The new DB subnet group for the DB instance. You can use this parameter to
  23256. // move your DB instance to a different VPC. If your DB instance is not in a
  23257. // VPC, you can also use this parameter to move your DB instance into a VPC.
  23258. // 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)
  23259. // in the Amazon RDS User Guide.
  23260. //
  23261. // Changing the subnet group causes an outage during the change. The change
  23262. // is applied during the next maintenance window, unless you specify true for
  23263. // the ApplyImmediately parameter.
  23264. //
  23265. // Constraints: If supplied, must match the name of an existing DBSubnetGroup.
  23266. //
  23267. // Example: mySubnetGroup
  23268. DBSubnetGroupName *string `type:"string"`
  23269. // Indicates if the DB instance has deletion protection enabled. The database
  23270. // can't be deleted when this value is set to true. For more information, see
  23271. // Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html).
  23272. DeletionProtection *bool `type:"boolean"`
  23273. // The Active Directory Domain to move the instance to. Specify none to remove
  23274. // the instance from its current domain. The domain must be created prior to
  23275. // this operation. Currently only a Microsoft SQL Server instance can be created
  23276. // in a Active Directory Domain.
  23277. Domain *string `type:"string"`
  23278. // The name of the IAM role to use when making API calls to the Directory Service.
  23279. DomainIAMRoleName *string `type:"string"`
  23280. // True to enable mapping of AWS Identity and Access Management (IAM) accounts
  23281. // to database accounts, and otherwise false.
  23282. //
  23283. // You can enable IAM database authentication for the following database engines
  23284. //
  23285. // Amazon Aurora
  23286. //
  23287. // Not applicable. Mapping AWS IAM accounts to database accounts is managed
  23288. // by the DB cluster. For more information, see ModifyDBCluster.
  23289. //
  23290. // MySQL
  23291. //
  23292. // * For MySQL 5.6, minor version 5.6.34 or higher
  23293. //
  23294. // * For MySQL 5.7, minor version 5.7.16 or higher
  23295. //
  23296. // Default: false
  23297. EnableIAMDatabaseAuthentication *bool `type:"boolean"`
  23298. // True to enable Performance Insights for the DB instance, and otherwise false.
  23299. //
  23300. // For more information, see Using Amazon Performance Insights (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html)
  23301. // in the Amazon Relational Database Service User Guide.
  23302. EnablePerformanceInsights *bool `type:"boolean"`
  23303. // The version number of the database engine to upgrade to. Changing this parameter
  23304. // results in an outage and the change is applied during the next maintenance
  23305. // window unless the ApplyImmediately parameter is set to true for this request.
  23306. //
  23307. // For major version upgrades, if a nondefault DB parameter group is currently
  23308. // in use, a new DB parameter group in the DB parameter group family for the
  23309. // new engine version must be specified. The new DB parameter group can be the
  23310. // default for that DB parameter group family.
  23311. //
  23312. // For information about valid engine versions, see CreateDBInstance, or call
  23313. // DescribeDBEngineVersions.
  23314. EngineVersion *string `type:"string"`
  23315. // The new Provisioned IOPS (I/O operations per second) value for the RDS instance.
  23316. //
  23317. // Changing this setting doesn't result in an outage and the change is applied
  23318. // during the next maintenance window unless the ApplyImmediately parameter
  23319. // is set to true for this request. If you are migrating from Provisioned IOPS
  23320. // to standard storage, set this value to 0. The DB instance will require a
  23321. // reboot for the change in storage type to take effect.
  23322. //
  23323. // If you choose to migrate your DB instance from using standard storage to
  23324. // using Provisioned IOPS, or from using Provisioned IOPS to using standard
  23325. // storage, the process can take time. The duration of the migration depends
  23326. // on several factors such as database load, storage size, storage type (standard
  23327. // or Provisioned IOPS), amount of IOPS provisioned (if any), and the number
  23328. // of prior scale storage operations. Typical migration times are under 24 hours,
  23329. // but the process can take up to several days in some cases. During the migration,
  23330. // the DB instance is available for use, but might experience performance degradation.
  23331. // While the migration takes place, nightly backups for the instance are suspended.
  23332. // No other Amazon RDS operations can take place for the instance, including
  23333. // modifying the instance, rebooting the instance, deleting the instance, creating
  23334. // a Read Replica for the instance, and creating a DB snapshot of the instance.
  23335. //
  23336. // Constraints: For MariaDB, MySQL, Oracle, and PostgreSQL, the value supplied
  23337. // must be at least 10% greater than the current value. Values that are not
  23338. // at least 10% greater than the existing value are rounded up so that they
  23339. // are 10% greater than the current value.
  23340. //
  23341. // Default: Uses existing setting
  23342. Iops *int64 `type:"integer"`
  23343. // The license model for the DB instance.
  23344. //
  23345. // Valid values: license-included | bring-your-own-license | general-public-license
  23346. LicenseModel *string `type:"string"`
  23347. // The new password for the master user. The password can include any printable
  23348. // ASCII character except "/", """, or "@".
  23349. //
  23350. // Changing this parameter doesn't result in an outage and the change is asynchronously
  23351. // applied as soon as possible. Between the time of the request and the completion
  23352. // of the request, the MasterUserPassword element exists in the PendingModifiedValues
  23353. // element of the operation response.
  23354. //
  23355. // Amazon Aurora
  23356. //
  23357. // Not applicable. The password for the master user is managed by the DB cluster.
  23358. // For more information, see ModifyDBCluster.
  23359. //
  23360. // Default: Uses existing setting
  23361. //
  23362. // MariaDB
  23363. //
  23364. // Constraints: Must contain from 8 to 41 characters.
  23365. //
  23366. // Microsoft SQL Server
  23367. //
  23368. // Constraints: Must contain from 8 to 128 characters.
  23369. //
  23370. // MySQL
  23371. //
  23372. // Constraints: Must contain from 8 to 41 characters.
  23373. //
  23374. // Oracle
  23375. //
  23376. // Constraints: Must contain from 8 to 30 characters.
  23377. //
  23378. // PostgreSQL
  23379. //
  23380. // Constraints: Must contain from 8 to 128 characters.
  23381. //
  23382. // Amazon RDS API actions never return the password, so this action provides
  23383. // a way to regain access to a primary instance user if the password is lost.
  23384. // This includes restoring privileges that might have been accidentally revoked.
  23385. MasterUserPassword *string `type:"string"`
  23386. // The interval, in seconds, between points when Enhanced Monitoring metrics
  23387. // are collected for the DB instance. To disable collecting Enhanced Monitoring
  23388. // metrics, specify 0. The default is 0.
  23389. //
  23390. // If MonitoringRoleArn is specified, then you must also set MonitoringInterval
  23391. // to a value other than 0.
  23392. //
  23393. // Valid Values: 0, 1, 5, 10, 15, 30, 60
  23394. MonitoringInterval *int64 `type:"integer"`
  23395. // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics
  23396. // to Amazon CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess.
  23397. // For information on creating a monitoring role, go to To create an IAM role
  23398. // for Amazon RDS Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.html#USER_Monitoring.OS.IAMRole)
  23399. // in the Amazon RDS User Guide.
  23400. //
  23401. // If MonitoringInterval is set to a value other than 0, then you must supply
  23402. // a MonitoringRoleArn value.
  23403. MonitoringRoleArn *string `type:"string"`
  23404. // Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter
  23405. // doesn't result in an outage and the change is applied during the next maintenance
  23406. // window unless the ApplyImmediately parameter is set to true for this request.
  23407. MultiAZ *bool `type:"boolean"`
  23408. // The new DB instance identifier for the DB instance when renaming a DB instance.
  23409. // When you change the DB instance identifier, an instance reboot will occur
  23410. // immediately if you set Apply Immediately to true, or will occur during the
  23411. // next maintenance window if Apply Immediately to false. This value is stored
  23412. // as a lowercase string.
  23413. //
  23414. // Constraints:
  23415. //
  23416. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  23417. //
  23418. // * The first character must be a letter.
  23419. //
  23420. // * Can't end with a hyphen or contain two consecutive hyphens.
  23421. //
  23422. // Example: mydbinstance
  23423. NewDBInstanceIdentifier *string `type:"string"`
  23424. // Indicates that the DB instance should be associated with the specified option
  23425. // group. Changing this parameter doesn't result in an outage except in the
  23426. // following case and the change is applied during the next maintenance window
  23427. // unless the ApplyImmediately parameter is set to true for this request. If
  23428. // the parameter change results in an option group that enables OEM, this change
  23429. // can cause a brief (sub-second) period during which new connections are rejected
  23430. // but existing connections are not interrupted.
  23431. //
  23432. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  23433. // can't be removed from an option group, and that option group can't be removed
  23434. // from a DB instance once it is associated with a DB instance
  23435. OptionGroupName *string `type:"string"`
  23436. // The AWS KMS key identifier for encryption of Performance Insights data. The
  23437. // KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the
  23438. // KMS key alias for the KMS encryption key.
  23439. PerformanceInsightsKMSKeyId *string `type:"string"`
  23440. // The amount of time, in days, to retain Performance Insights data. Valid values
  23441. // are 7 or 731 (2 years).
  23442. PerformanceInsightsRetentionPeriod *int64 `type:"integer"`
  23443. // The daily time range during which automated backups are created if automated
  23444. // backups are enabled, as determined by the BackupRetentionPeriod parameter.
  23445. // Changing this parameter doesn't result in an outage and the change is asynchronously
  23446. // applied as soon as possible.
  23447. //
  23448. // Amazon Aurora
  23449. //
  23450. // Not applicable. The daily time range for creating automated backups is managed
  23451. // by the DB cluster. For more information, see ModifyDBCluster.
  23452. //
  23453. // Constraints:
  23454. //
  23455. // * Must be in the format hh24:mi-hh24:mi
  23456. //
  23457. // * Must be in Universal Time Coordinated (UTC)
  23458. //
  23459. // * Must not conflict with the preferred maintenance window
  23460. //
  23461. // * Must be at least 30 minutes
  23462. PreferredBackupWindow *string `type:"string"`
  23463. // The weekly time range (in UTC) during which system maintenance can occur,
  23464. // which might result in an outage. Changing this parameter doesn't result in
  23465. // an outage, except in the following situation, and the change is asynchronously
  23466. // applied as soon as possible. If there are pending actions that cause a reboot,
  23467. // and the maintenance window is changed to include the current time, then changing
  23468. // this parameter will cause a reboot of the DB instance. If moving this window
  23469. // to the current time, there must be at least 30 minutes between the current
  23470. // time and end of the window to ensure pending changes are applied.
  23471. //
  23472. // Default: Uses existing setting
  23473. //
  23474. // Format: ddd:hh24:mi-ddd:hh24:mi
  23475. //
  23476. // Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
  23477. //
  23478. // Constraints: Must be at least 30 minutes
  23479. PreferredMaintenanceWindow *string `type:"string"`
  23480. // The number of CPU cores and the number of threads per core for the DB instance
  23481. // class of the DB instance.
  23482. ProcessorFeatures []*ProcessorFeature `locationNameList:"ProcessorFeature" type:"list"`
  23483. // A value that specifies the order in which an Aurora Replica is promoted to
  23484. // the primary instance after a failure of the existing primary instance. For
  23485. // more information, see Fault Tolerance for an Aurora DB Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.FaultTolerance)
  23486. // in the Amazon Aurora User Guide.
  23487. //
  23488. // Default: 1
  23489. //
  23490. // Valid Values: 0 - 15
  23491. PromotionTier *int64 `type:"integer"`
  23492. // Boolean value that indicates if the DB instance has a publicly resolvable
  23493. // DNS name. Set to True to make the DB instance Internet-facing with a publicly
  23494. // resolvable DNS name, which resolves to a public IP address. Set to False
  23495. // to make the DB instance internal with a DNS name that resolves to a private
  23496. // IP address.
  23497. //
  23498. // PubliclyAccessible only applies to DB instances in a VPC. The DB instance
  23499. // must be part of a public subnet and PubliclyAccessible must be true in order
  23500. // for it to be publicly accessible.
  23501. //
  23502. // Changes to the PubliclyAccessible parameter are applied immediately regardless
  23503. // of the value of the ApplyImmediately parameter.
  23504. //
  23505. // Default: false
  23506. PubliclyAccessible *bool `type:"boolean"`
  23507. // Specifies the storage type to be associated with the DB instance.
  23508. //
  23509. // If you specify Provisioned IOPS (io1), you must also include a value for
  23510. // the Iops parameter.
  23511. //
  23512. // If you choose to migrate your DB instance from using standard storage to
  23513. // using Provisioned IOPS, or from using Provisioned IOPS to using standard
  23514. // storage, the process can take time. The duration of the migration depends
  23515. // on several factors such as database load, storage size, storage type (standard
  23516. // or Provisioned IOPS), amount of IOPS provisioned (if any), and the number
  23517. // of prior scale storage operations. Typical migration times are under 24 hours,
  23518. // but the process can take up to several days in some cases. During the migration,
  23519. // the DB instance is available for use, but might experience performance degradation.
  23520. // While the migration takes place, nightly backups for the instance are suspended.
  23521. // No other Amazon RDS operations can take place for the instance, including
  23522. // modifying the instance, rebooting the instance, deleting the instance, creating
  23523. // a Read Replica for the instance, and creating a DB snapshot of the instance.
  23524. //
  23525. // Valid values: standard | gp2 | io1
  23526. //
  23527. // Default: io1 if the Iops parameter is specified, otherwise standard
  23528. StorageType *string `type:"string"`
  23529. // The ARN from the key store with which to associate the instance for TDE encryption.
  23530. TdeCredentialArn *string `type:"string"`
  23531. // The password for the given ARN from the key store in order to access the
  23532. // device.
  23533. TdeCredentialPassword *string `type:"string"`
  23534. // A value that specifies that the DB instance class of the DB instance uses
  23535. // its default processor features.
  23536. UseDefaultProcessorFeatures *bool `type:"boolean"`
  23537. // A list of EC2 VPC security groups to authorize on this DB instance. This
  23538. // change is asynchronously applied as soon as possible.
  23539. //
  23540. // Amazon Aurora
  23541. //
  23542. // Not applicable. The associated list of EC2 VPC security groups is managed
  23543. // by the DB cluster. For more information, see ModifyDBCluster.
  23544. //
  23545. // Constraints:
  23546. //
  23547. // * If supplied, must match existing VpcSecurityGroupIds.
  23548. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  23549. }
  23550. // String returns the string representation
  23551. func (s ModifyDBInstanceInput) String() string {
  23552. return awsutil.Prettify(s)
  23553. }
  23554. // GoString returns the string representation
  23555. func (s ModifyDBInstanceInput) GoString() string {
  23556. return s.String()
  23557. }
  23558. // Validate inspects the fields of the type to determine if they are valid.
  23559. func (s *ModifyDBInstanceInput) Validate() error {
  23560. invalidParams := request.ErrInvalidParams{Context: "ModifyDBInstanceInput"}
  23561. if s.DBInstanceIdentifier == nil {
  23562. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  23563. }
  23564. if invalidParams.Len() > 0 {
  23565. return invalidParams
  23566. }
  23567. return nil
  23568. }
  23569. // SetAllocatedStorage sets the AllocatedStorage field's value.
  23570. func (s *ModifyDBInstanceInput) SetAllocatedStorage(v int64) *ModifyDBInstanceInput {
  23571. s.AllocatedStorage = &v
  23572. return s
  23573. }
  23574. // SetAllowMajorVersionUpgrade sets the AllowMajorVersionUpgrade field's value.
  23575. func (s *ModifyDBInstanceInput) SetAllowMajorVersionUpgrade(v bool) *ModifyDBInstanceInput {
  23576. s.AllowMajorVersionUpgrade = &v
  23577. return s
  23578. }
  23579. // SetApplyImmediately sets the ApplyImmediately field's value.
  23580. func (s *ModifyDBInstanceInput) SetApplyImmediately(v bool) *ModifyDBInstanceInput {
  23581. s.ApplyImmediately = &v
  23582. return s
  23583. }
  23584. // SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
  23585. func (s *ModifyDBInstanceInput) SetAutoMinorVersionUpgrade(v bool) *ModifyDBInstanceInput {
  23586. s.AutoMinorVersionUpgrade = &v
  23587. return s
  23588. }
  23589. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  23590. func (s *ModifyDBInstanceInput) SetBackupRetentionPeriod(v int64) *ModifyDBInstanceInput {
  23591. s.BackupRetentionPeriod = &v
  23592. return s
  23593. }
  23594. // SetCACertificateIdentifier sets the CACertificateIdentifier field's value.
  23595. func (s *ModifyDBInstanceInput) SetCACertificateIdentifier(v string) *ModifyDBInstanceInput {
  23596. s.CACertificateIdentifier = &v
  23597. return s
  23598. }
  23599. // SetCloudwatchLogsExportConfiguration sets the CloudwatchLogsExportConfiguration field's value.
  23600. func (s *ModifyDBInstanceInput) SetCloudwatchLogsExportConfiguration(v *CloudwatchLogsExportConfiguration) *ModifyDBInstanceInput {
  23601. s.CloudwatchLogsExportConfiguration = v
  23602. return s
  23603. }
  23604. // SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value.
  23605. func (s *ModifyDBInstanceInput) SetCopyTagsToSnapshot(v bool) *ModifyDBInstanceInput {
  23606. s.CopyTagsToSnapshot = &v
  23607. return s
  23608. }
  23609. // SetDBInstanceClass sets the DBInstanceClass field's value.
  23610. func (s *ModifyDBInstanceInput) SetDBInstanceClass(v string) *ModifyDBInstanceInput {
  23611. s.DBInstanceClass = &v
  23612. return s
  23613. }
  23614. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  23615. func (s *ModifyDBInstanceInput) SetDBInstanceIdentifier(v string) *ModifyDBInstanceInput {
  23616. s.DBInstanceIdentifier = &v
  23617. return s
  23618. }
  23619. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  23620. func (s *ModifyDBInstanceInput) SetDBParameterGroupName(v string) *ModifyDBInstanceInput {
  23621. s.DBParameterGroupName = &v
  23622. return s
  23623. }
  23624. // SetDBPortNumber sets the DBPortNumber field's value.
  23625. func (s *ModifyDBInstanceInput) SetDBPortNumber(v int64) *ModifyDBInstanceInput {
  23626. s.DBPortNumber = &v
  23627. return s
  23628. }
  23629. // SetDBSecurityGroups sets the DBSecurityGroups field's value.
  23630. func (s *ModifyDBInstanceInput) SetDBSecurityGroups(v []*string) *ModifyDBInstanceInput {
  23631. s.DBSecurityGroups = v
  23632. return s
  23633. }
  23634. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  23635. func (s *ModifyDBInstanceInput) SetDBSubnetGroupName(v string) *ModifyDBInstanceInput {
  23636. s.DBSubnetGroupName = &v
  23637. return s
  23638. }
  23639. // SetDeletionProtection sets the DeletionProtection field's value.
  23640. func (s *ModifyDBInstanceInput) SetDeletionProtection(v bool) *ModifyDBInstanceInput {
  23641. s.DeletionProtection = &v
  23642. return s
  23643. }
  23644. // SetDomain sets the Domain field's value.
  23645. func (s *ModifyDBInstanceInput) SetDomain(v string) *ModifyDBInstanceInput {
  23646. s.Domain = &v
  23647. return s
  23648. }
  23649. // SetDomainIAMRoleName sets the DomainIAMRoleName field's value.
  23650. func (s *ModifyDBInstanceInput) SetDomainIAMRoleName(v string) *ModifyDBInstanceInput {
  23651. s.DomainIAMRoleName = &v
  23652. return s
  23653. }
  23654. // SetEnableIAMDatabaseAuthentication sets the EnableIAMDatabaseAuthentication field's value.
  23655. func (s *ModifyDBInstanceInput) SetEnableIAMDatabaseAuthentication(v bool) *ModifyDBInstanceInput {
  23656. s.EnableIAMDatabaseAuthentication = &v
  23657. return s
  23658. }
  23659. // SetEnablePerformanceInsights sets the EnablePerformanceInsights field's value.
  23660. func (s *ModifyDBInstanceInput) SetEnablePerformanceInsights(v bool) *ModifyDBInstanceInput {
  23661. s.EnablePerformanceInsights = &v
  23662. return s
  23663. }
  23664. // SetEngineVersion sets the EngineVersion field's value.
  23665. func (s *ModifyDBInstanceInput) SetEngineVersion(v string) *ModifyDBInstanceInput {
  23666. s.EngineVersion = &v
  23667. return s
  23668. }
  23669. // SetIops sets the Iops field's value.
  23670. func (s *ModifyDBInstanceInput) SetIops(v int64) *ModifyDBInstanceInput {
  23671. s.Iops = &v
  23672. return s
  23673. }
  23674. // SetLicenseModel sets the LicenseModel field's value.
  23675. func (s *ModifyDBInstanceInput) SetLicenseModel(v string) *ModifyDBInstanceInput {
  23676. s.LicenseModel = &v
  23677. return s
  23678. }
  23679. // SetMasterUserPassword sets the MasterUserPassword field's value.
  23680. func (s *ModifyDBInstanceInput) SetMasterUserPassword(v string) *ModifyDBInstanceInput {
  23681. s.MasterUserPassword = &v
  23682. return s
  23683. }
  23684. // SetMonitoringInterval sets the MonitoringInterval field's value.
  23685. func (s *ModifyDBInstanceInput) SetMonitoringInterval(v int64) *ModifyDBInstanceInput {
  23686. s.MonitoringInterval = &v
  23687. return s
  23688. }
  23689. // SetMonitoringRoleArn sets the MonitoringRoleArn field's value.
  23690. func (s *ModifyDBInstanceInput) SetMonitoringRoleArn(v string) *ModifyDBInstanceInput {
  23691. s.MonitoringRoleArn = &v
  23692. return s
  23693. }
  23694. // SetMultiAZ sets the MultiAZ field's value.
  23695. func (s *ModifyDBInstanceInput) SetMultiAZ(v bool) *ModifyDBInstanceInput {
  23696. s.MultiAZ = &v
  23697. return s
  23698. }
  23699. // SetNewDBInstanceIdentifier sets the NewDBInstanceIdentifier field's value.
  23700. func (s *ModifyDBInstanceInput) SetNewDBInstanceIdentifier(v string) *ModifyDBInstanceInput {
  23701. s.NewDBInstanceIdentifier = &v
  23702. return s
  23703. }
  23704. // SetOptionGroupName sets the OptionGroupName field's value.
  23705. func (s *ModifyDBInstanceInput) SetOptionGroupName(v string) *ModifyDBInstanceInput {
  23706. s.OptionGroupName = &v
  23707. return s
  23708. }
  23709. // SetPerformanceInsightsKMSKeyId sets the PerformanceInsightsKMSKeyId field's value.
  23710. func (s *ModifyDBInstanceInput) SetPerformanceInsightsKMSKeyId(v string) *ModifyDBInstanceInput {
  23711. s.PerformanceInsightsKMSKeyId = &v
  23712. return s
  23713. }
  23714. // SetPerformanceInsightsRetentionPeriod sets the PerformanceInsightsRetentionPeriod field's value.
  23715. func (s *ModifyDBInstanceInput) SetPerformanceInsightsRetentionPeriod(v int64) *ModifyDBInstanceInput {
  23716. s.PerformanceInsightsRetentionPeriod = &v
  23717. return s
  23718. }
  23719. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  23720. func (s *ModifyDBInstanceInput) SetPreferredBackupWindow(v string) *ModifyDBInstanceInput {
  23721. s.PreferredBackupWindow = &v
  23722. return s
  23723. }
  23724. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  23725. func (s *ModifyDBInstanceInput) SetPreferredMaintenanceWindow(v string) *ModifyDBInstanceInput {
  23726. s.PreferredMaintenanceWindow = &v
  23727. return s
  23728. }
  23729. // SetProcessorFeatures sets the ProcessorFeatures field's value.
  23730. func (s *ModifyDBInstanceInput) SetProcessorFeatures(v []*ProcessorFeature) *ModifyDBInstanceInput {
  23731. s.ProcessorFeatures = v
  23732. return s
  23733. }
  23734. // SetPromotionTier sets the PromotionTier field's value.
  23735. func (s *ModifyDBInstanceInput) SetPromotionTier(v int64) *ModifyDBInstanceInput {
  23736. s.PromotionTier = &v
  23737. return s
  23738. }
  23739. // SetPubliclyAccessible sets the PubliclyAccessible field's value.
  23740. func (s *ModifyDBInstanceInput) SetPubliclyAccessible(v bool) *ModifyDBInstanceInput {
  23741. s.PubliclyAccessible = &v
  23742. return s
  23743. }
  23744. // SetStorageType sets the StorageType field's value.
  23745. func (s *ModifyDBInstanceInput) SetStorageType(v string) *ModifyDBInstanceInput {
  23746. s.StorageType = &v
  23747. return s
  23748. }
  23749. // SetTdeCredentialArn sets the TdeCredentialArn field's value.
  23750. func (s *ModifyDBInstanceInput) SetTdeCredentialArn(v string) *ModifyDBInstanceInput {
  23751. s.TdeCredentialArn = &v
  23752. return s
  23753. }
  23754. // SetTdeCredentialPassword sets the TdeCredentialPassword field's value.
  23755. func (s *ModifyDBInstanceInput) SetTdeCredentialPassword(v string) *ModifyDBInstanceInput {
  23756. s.TdeCredentialPassword = &v
  23757. return s
  23758. }
  23759. // SetUseDefaultProcessorFeatures sets the UseDefaultProcessorFeatures field's value.
  23760. func (s *ModifyDBInstanceInput) SetUseDefaultProcessorFeatures(v bool) *ModifyDBInstanceInput {
  23761. s.UseDefaultProcessorFeatures = &v
  23762. return s
  23763. }
  23764. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  23765. func (s *ModifyDBInstanceInput) SetVpcSecurityGroupIds(v []*string) *ModifyDBInstanceInput {
  23766. s.VpcSecurityGroupIds = v
  23767. return s
  23768. }
  23769. type ModifyDBInstanceOutput struct {
  23770. _ struct{} `type:"structure"`
  23771. // Contains the details of an Amazon RDS DB instance.
  23772. //
  23773. // This data type is used as a response element in the DescribeDBInstances action.
  23774. DBInstance *DBInstance `type:"structure"`
  23775. }
  23776. // String returns the string representation
  23777. func (s ModifyDBInstanceOutput) String() string {
  23778. return awsutil.Prettify(s)
  23779. }
  23780. // GoString returns the string representation
  23781. func (s ModifyDBInstanceOutput) GoString() string {
  23782. return s.String()
  23783. }
  23784. // SetDBInstance sets the DBInstance field's value.
  23785. func (s *ModifyDBInstanceOutput) SetDBInstance(v *DBInstance) *ModifyDBInstanceOutput {
  23786. s.DBInstance = v
  23787. return s
  23788. }
  23789. type ModifyDBParameterGroupInput struct {
  23790. _ struct{} `type:"structure"`
  23791. // The name of the DB parameter group.
  23792. //
  23793. // Constraints:
  23794. //
  23795. // * If supplied, must match the name of an existing DBParameterGroup.
  23796. //
  23797. // DBParameterGroupName is a required field
  23798. DBParameterGroupName *string `type:"string" required:"true"`
  23799. // An array of parameter names, values, and the apply method for the parameter
  23800. // update. At least one parameter name, value, and apply method must be supplied;
  23801. // subsequent arguments are optional. A maximum of 20 parameters can be modified
  23802. // in a single request.
  23803. //
  23804. // Valid Values (for the application method): immediate | pending-reboot
  23805. //
  23806. // You can use the immediate value with dynamic parameters only. You can use
  23807. // the pending-reboot value for both dynamic and static parameters, and changes
  23808. // are applied when you reboot the DB instance without failover.
  23809. //
  23810. // Parameters is a required field
  23811. Parameters []*Parameter `locationNameList:"Parameter" type:"list" required:"true"`
  23812. }
  23813. // String returns the string representation
  23814. func (s ModifyDBParameterGroupInput) String() string {
  23815. return awsutil.Prettify(s)
  23816. }
  23817. // GoString returns the string representation
  23818. func (s ModifyDBParameterGroupInput) GoString() string {
  23819. return s.String()
  23820. }
  23821. // Validate inspects the fields of the type to determine if they are valid.
  23822. func (s *ModifyDBParameterGroupInput) Validate() error {
  23823. invalidParams := request.ErrInvalidParams{Context: "ModifyDBParameterGroupInput"}
  23824. if s.DBParameterGroupName == nil {
  23825. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  23826. }
  23827. if s.Parameters == nil {
  23828. invalidParams.Add(request.NewErrParamRequired("Parameters"))
  23829. }
  23830. if invalidParams.Len() > 0 {
  23831. return invalidParams
  23832. }
  23833. return nil
  23834. }
  23835. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  23836. func (s *ModifyDBParameterGroupInput) SetDBParameterGroupName(v string) *ModifyDBParameterGroupInput {
  23837. s.DBParameterGroupName = &v
  23838. return s
  23839. }
  23840. // SetParameters sets the Parameters field's value.
  23841. func (s *ModifyDBParameterGroupInput) SetParameters(v []*Parameter) *ModifyDBParameterGroupInput {
  23842. s.Parameters = v
  23843. return s
  23844. }
  23845. type ModifyDBSnapshotAttributeInput struct {
  23846. _ struct{} `type:"structure"`
  23847. // The name of the DB snapshot attribute to modify.
  23848. //
  23849. // To manage authorization for other AWS accounts to copy or restore a manual
  23850. // DB snapshot, set this value to restore.
  23851. //
  23852. // AttributeName is a required field
  23853. AttributeName *string `type:"string" required:"true"`
  23854. // The identifier for the DB snapshot to modify the attributes for.
  23855. //
  23856. // DBSnapshotIdentifier is a required field
  23857. DBSnapshotIdentifier *string `type:"string" required:"true"`
  23858. // A list of DB snapshot attributes to add to the attribute specified by AttributeName.
  23859. //
  23860. // To authorize other AWS accounts to copy or restore a manual snapshot, set
  23861. // this list to include one or more AWS account IDs, or all to make the manual
  23862. // DB snapshot restorable by any AWS account. Do not add the all value for any
  23863. // manual DB snapshots that contain private information that you don't want
  23864. // available to all AWS accounts.
  23865. ValuesToAdd []*string `locationNameList:"AttributeValue" type:"list"`
  23866. // A list of DB snapshot attributes to remove from the attribute specified by
  23867. // AttributeName.
  23868. //
  23869. // To remove authorization for other AWS accounts to copy or restore a manual
  23870. // snapshot, set this list to include one or more AWS account identifiers, or
  23871. // all to remove authorization for any AWS account to copy or restore the DB
  23872. // snapshot. If you specify all, an AWS account whose account ID is explicitly
  23873. // added to the restore attribute can still copy or restore the manual DB snapshot.
  23874. ValuesToRemove []*string `locationNameList:"AttributeValue" type:"list"`
  23875. }
  23876. // String returns the string representation
  23877. func (s ModifyDBSnapshotAttributeInput) String() string {
  23878. return awsutil.Prettify(s)
  23879. }
  23880. // GoString returns the string representation
  23881. func (s ModifyDBSnapshotAttributeInput) GoString() string {
  23882. return s.String()
  23883. }
  23884. // Validate inspects the fields of the type to determine if they are valid.
  23885. func (s *ModifyDBSnapshotAttributeInput) Validate() error {
  23886. invalidParams := request.ErrInvalidParams{Context: "ModifyDBSnapshotAttributeInput"}
  23887. if s.AttributeName == nil {
  23888. invalidParams.Add(request.NewErrParamRequired("AttributeName"))
  23889. }
  23890. if s.DBSnapshotIdentifier == nil {
  23891. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  23892. }
  23893. if invalidParams.Len() > 0 {
  23894. return invalidParams
  23895. }
  23896. return nil
  23897. }
  23898. // SetAttributeName sets the AttributeName field's value.
  23899. func (s *ModifyDBSnapshotAttributeInput) SetAttributeName(v string) *ModifyDBSnapshotAttributeInput {
  23900. s.AttributeName = &v
  23901. return s
  23902. }
  23903. // SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value.
  23904. func (s *ModifyDBSnapshotAttributeInput) SetDBSnapshotIdentifier(v string) *ModifyDBSnapshotAttributeInput {
  23905. s.DBSnapshotIdentifier = &v
  23906. return s
  23907. }
  23908. // SetValuesToAdd sets the ValuesToAdd field's value.
  23909. func (s *ModifyDBSnapshotAttributeInput) SetValuesToAdd(v []*string) *ModifyDBSnapshotAttributeInput {
  23910. s.ValuesToAdd = v
  23911. return s
  23912. }
  23913. // SetValuesToRemove sets the ValuesToRemove field's value.
  23914. func (s *ModifyDBSnapshotAttributeInput) SetValuesToRemove(v []*string) *ModifyDBSnapshotAttributeInput {
  23915. s.ValuesToRemove = v
  23916. return s
  23917. }
  23918. type ModifyDBSnapshotAttributeOutput struct {
  23919. _ struct{} `type:"structure"`
  23920. // Contains the results of a successful call to the DescribeDBSnapshotAttributes
  23921. // API action.
  23922. //
  23923. // Manual DB snapshot attributes are used to authorize other AWS accounts to
  23924. // copy or restore a manual DB snapshot. For more information, see the ModifyDBSnapshotAttribute
  23925. // API action.
  23926. DBSnapshotAttributesResult *DBSnapshotAttributesResult `type:"structure"`
  23927. }
  23928. // String returns the string representation
  23929. func (s ModifyDBSnapshotAttributeOutput) String() string {
  23930. return awsutil.Prettify(s)
  23931. }
  23932. // GoString returns the string representation
  23933. func (s ModifyDBSnapshotAttributeOutput) GoString() string {
  23934. return s.String()
  23935. }
  23936. // SetDBSnapshotAttributesResult sets the DBSnapshotAttributesResult field's value.
  23937. func (s *ModifyDBSnapshotAttributeOutput) SetDBSnapshotAttributesResult(v *DBSnapshotAttributesResult) *ModifyDBSnapshotAttributeOutput {
  23938. s.DBSnapshotAttributesResult = v
  23939. return s
  23940. }
  23941. type ModifyDBSnapshotInput struct {
  23942. _ struct{} `type:"structure"`
  23943. // The identifier of the DB snapshot to modify.
  23944. //
  23945. // DBSnapshotIdentifier is a required field
  23946. DBSnapshotIdentifier *string `type:"string" required:"true"`
  23947. // The engine version to upgrade the DB snapshot to.
  23948. //
  23949. // The following are the database engines and engine versions that are available
  23950. // when you upgrade a DB snapshot.
  23951. //
  23952. // MySQL
  23953. //
  23954. // * 5.5.46 (supported for 5.1 DB snapshots)
  23955. //
  23956. // Oracle
  23957. //
  23958. // * 12.1.0.2.v8 (supported for 12.1.0.1 DB snapshots)
  23959. //
  23960. // * 11.2.0.4.v12 (supported for 11.2.0.2 DB snapshots)
  23961. //
  23962. // * 11.2.0.4.v11 (supported for 11.2.0.3 DB snapshots)
  23963. EngineVersion *string `type:"string"`
  23964. // The option group to identify with the upgraded DB snapshot.
  23965. //
  23966. // You can specify this parameter when you upgrade an Oracle DB snapshot. The
  23967. // same option group considerations apply when upgrading a DB snapshot as when
  23968. // upgrading a DB instance. For more information, see Option Group Considerations
  23969. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Oracle.html#USER_UpgradeDBInstance.Oracle.OGPG.OG)
  23970. // in the Amazon RDS User Guide.
  23971. OptionGroupName *string `type:"string"`
  23972. }
  23973. // String returns the string representation
  23974. func (s ModifyDBSnapshotInput) String() string {
  23975. return awsutil.Prettify(s)
  23976. }
  23977. // GoString returns the string representation
  23978. func (s ModifyDBSnapshotInput) GoString() string {
  23979. return s.String()
  23980. }
  23981. // Validate inspects the fields of the type to determine if they are valid.
  23982. func (s *ModifyDBSnapshotInput) Validate() error {
  23983. invalidParams := request.ErrInvalidParams{Context: "ModifyDBSnapshotInput"}
  23984. if s.DBSnapshotIdentifier == nil {
  23985. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  23986. }
  23987. if invalidParams.Len() > 0 {
  23988. return invalidParams
  23989. }
  23990. return nil
  23991. }
  23992. // SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value.
  23993. func (s *ModifyDBSnapshotInput) SetDBSnapshotIdentifier(v string) *ModifyDBSnapshotInput {
  23994. s.DBSnapshotIdentifier = &v
  23995. return s
  23996. }
  23997. // SetEngineVersion sets the EngineVersion field's value.
  23998. func (s *ModifyDBSnapshotInput) SetEngineVersion(v string) *ModifyDBSnapshotInput {
  23999. s.EngineVersion = &v
  24000. return s
  24001. }
  24002. // SetOptionGroupName sets the OptionGroupName field's value.
  24003. func (s *ModifyDBSnapshotInput) SetOptionGroupName(v string) *ModifyDBSnapshotInput {
  24004. s.OptionGroupName = &v
  24005. return s
  24006. }
  24007. type ModifyDBSnapshotOutput struct {
  24008. _ struct{} `type:"structure"`
  24009. // Contains the details of an Amazon RDS DB snapshot.
  24010. //
  24011. // This data type is used as a response element in the DescribeDBSnapshots action.
  24012. DBSnapshot *DBSnapshot `type:"structure"`
  24013. }
  24014. // String returns the string representation
  24015. func (s ModifyDBSnapshotOutput) String() string {
  24016. return awsutil.Prettify(s)
  24017. }
  24018. // GoString returns the string representation
  24019. func (s ModifyDBSnapshotOutput) GoString() string {
  24020. return s.String()
  24021. }
  24022. // SetDBSnapshot sets the DBSnapshot field's value.
  24023. func (s *ModifyDBSnapshotOutput) SetDBSnapshot(v *DBSnapshot) *ModifyDBSnapshotOutput {
  24024. s.DBSnapshot = v
  24025. return s
  24026. }
  24027. type ModifyDBSubnetGroupInput struct {
  24028. _ struct{} `type:"structure"`
  24029. // The description for the DB subnet group.
  24030. DBSubnetGroupDescription *string `type:"string"`
  24031. // The name for the DB subnet group. This value is stored as a lowercase string.
  24032. // You can't modify the default subnet group.
  24033. //
  24034. // Constraints: Must match the name of an existing DBSubnetGroup. Must not be
  24035. // default.
  24036. //
  24037. // Example: mySubnetgroup
  24038. //
  24039. // DBSubnetGroupName is a required field
  24040. DBSubnetGroupName *string `type:"string" required:"true"`
  24041. // The EC2 subnet IDs for the DB subnet group.
  24042. //
  24043. // SubnetIds is a required field
  24044. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
  24045. }
  24046. // String returns the string representation
  24047. func (s ModifyDBSubnetGroupInput) String() string {
  24048. return awsutil.Prettify(s)
  24049. }
  24050. // GoString returns the string representation
  24051. func (s ModifyDBSubnetGroupInput) GoString() string {
  24052. return s.String()
  24053. }
  24054. // Validate inspects the fields of the type to determine if they are valid.
  24055. func (s *ModifyDBSubnetGroupInput) Validate() error {
  24056. invalidParams := request.ErrInvalidParams{Context: "ModifyDBSubnetGroupInput"}
  24057. if s.DBSubnetGroupName == nil {
  24058. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName"))
  24059. }
  24060. if s.SubnetIds == nil {
  24061. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  24062. }
  24063. if invalidParams.Len() > 0 {
  24064. return invalidParams
  24065. }
  24066. return nil
  24067. }
  24068. // SetDBSubnetGroupDescription sets the DBSubnetGroupDescription field's value.
  24069. func (s *ModifyDBSubnetGroupInput) SetDBSubnetGroupDescription(v string) *ModifyDBSubnetGroupInput {
  24070. s.DBSubnetGroupDescription = &v
  24071. return s
  24072. }
  24073. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  24074. func (s *ModifyDBSubnetGroupInput) SetDBSubnetGroupName(v string) *ModifyDBSubnetGroupInput {
  24075. s.DBSubnetGroupName = &v
  24076. return s
  24077. }
  24078. // SetSubnetIds sets the SubnetIds field's value.
  24079. func (s *ModifyDBSubnetGroupInput) SetSubnetIds(v []*string) *ModifyDBSubnetGroupInput {
  24080. s.SubnetIds = v
  24081. return s
  24082. }
  24083. type ModifyDBSubnetGroupOutput struct {
  24084. _ struct{} `type:"structure"`
  24085. // Contains the details of an Amazon RDS DB subnet group.
  24086. //
  24087. // This data type is used as a response element in the DescribeDBSubnetGroups
  24088. // action.
  24089. DBSubnetGroup *DBSubnetGroup `type:"structure"`
  24090. }
  24091. // String returns the string representation
  24092. func (s ModifyDBSubnetGroupOutput) String() string {
  24093. return awsutil.Prettify(s)
  24094. }
  24095. // GoString returns the string representation
  24096. func (s ModifyDBSubnetGroupOutput) GoString() string {
  24097. return s.String()
  24098. }
  24099. // SetDBSubnetGroup sets the DBSubnetGroup field's value.
  24100. func (s *ModifyDBSubnetGroupOutput) SetDBSubnetGroup(v *DBSubnetGroup) *ModifyDBSubnetGroupOutput {
  24101. s.DBSubnetGroup = v
  24102. return s
  24103. }
  24104. type ModifyEventSubscriptionInput struct {
  24105. _ struct{} `type:"structure"`
  24106. // A Boolean value; set to true to activate the subscription.
  24107. Enabled *bool `type:"boolean"`
  24108. // A list of event categories for a SourceType that you want to subscribe to.
  24109. // You can see a list of the categories for a given SourceType in the Events
  24110. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html)
  24111. // topic in the Amazon RDS User Guide or by using the DescribeEventCategories
  24112. // action.
  24113. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  24114. // The Amazon Resource Name (ARN) of the SNS topic created for event notification.
  24115. // The ARN is created by Amazon SNS when you create a topic and subscribe to
  24116. // it.
  24117. SnsTopicArn *string `type:"string"`
  24118. // The type of source that is generating the events. For example, if you want
  24119. // to be notified of events generated by a DB instance, you would set this parameter
  24120. // to db-instance. if this value is not specified, all events are returned.
  24121. //
  24122. // Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot
  24123. SourceType *string `type:"string"`
  24124. // The name of the RDS event notification subscription.
  24125. //
  24126. // SubscriptionName is a required field
  24127. SubscriptionName *string `type:"string" required:"true"`
  24128. }
  24129. // String returns the string representation
  24130. func (s ModifyEventSubscriptionInput) String() string {
  24131. return awsutil.Prettify(s)
  24132. }
  24133. // GoString returns the string representation
  24134. func (s ModifyEventSubscriptionInput) GoString() string {
  24135. return s.String()
  24136. }
  24137. // Validate inspects the fields of the type to determine if they are valid.
  24138. func (s *ModifyEventSubscriptionInput) Validate() error {
  24139. invalidParams := request.ErrInvalidParams{Context: "ModifyEventSubscriptionInput"}
  24140. if s.SubscriptionName == nil {
  24141. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  24142. }
  24143. if invalidParams.Len() > 0 {
  24144. return invalidParams
  24145. }
  24146. return nil
  24147. }
  24148. // SetEnabled sets the Enabled field's value.
  24149. func (s *ModifyEventSubscriptionInput) SetEnabled(v bool) *ModifyEventSubscriptionInput {
  24150. s.Enabled = &v
  24151. return s
  24152. }
  24153. // SetEventCategories sets the EventCategories field's value.
  24154. func (s *ModifyEventSubscriptionInput) SetEventCategories(v []*string) *ModifyEventSubscriptionInput {
  24155. s.EventCategories = v
  24156. return s
  24157. }
  24158. // SetSnsTopicArn sets the SnsTopicArn field's value.
  24159. func (s *ModifyEventSubscriptionInput) SetSnsTopicArn(v string) *ModifyEventSubscriptionInput {
  24160. s.SnsTopicArn = &v
  24161. return s
  24162. }
  24163. // SetSourceType sets the SourceType field's value.
  24164. func (s *ModifyEventSubscriptionInput) SetSourceType(v string) *ModifyEventSubscriptionInput {
  24165. s.SourceType = &v
  24166. return s
  24167. }
  24168. // SetSubscriptionName sets the SubscriptionName field's value.
  24169. func (s *ModifyEventSubscriptionInput) SetSubscriptionName(v string) *ModifyEventSubscriptionInput {
  24170. s.SubscriptionName = &v
  24171. return s
  24172. }
  24173. type ModifyEventSubscriptionOutput struct {
  24174. _ struct{} `type:"structure"`
  24175. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  24176. // action.
  24177. EventSubscription *EventSubscription `type:"structure"`
  24178. }
  24179. // String returns the string representation
  24180. func (s ModifyEventSubscriptionOutput) String() string {
  24181. return awsutil.Prettify(s)
  24182. }
  24183. // GoString returns the string representation
  24184. func (s ModifyEventSubscriptionOutput) GoString() string {
  24185. return s.String()
  24186. }
  24187. // SetEventSubscription sets the EventSubscription field's value.
  24188. func (s *ModifyEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *ModifyEventSubscriptionOutput {
  24189. s.EventSubscription = v
  24190. return s
  24191. }
  24192. type ModifyGlobalClusterInput struct {
  24193. _ struct{} `type:"structure"`
  24194. // Indicates if the global database cluster has deletion protection enabled.
  24195. // The global database cluster can't be deleted when this value is set to true.
  24196. DeletionProtection *bool `type:"boolean"`
  24197. // The DB cluster identifier for the global cluster being modified. This parameter
  24198. // is not case-sensitive.
  24199. //
  24200. // Constraints:
  24201. //
  24202. // * Must match the identifier of an existing global database cluster.
  24203. GlobalClusterIdentifier *string `type:"string"`
  24204. // The new cluster identifier for the global database cluster when modifying
  24205. // a global database cluster. This value is stored as a lowercase string.
  24206. //
  24207. // Constraints:
  24208. //
  24209. // * Must contain from 1 to 63 letters, numbers, or hyphens
  24210. //
  24211. // * The first character must be a letter
  24212. //
  24213. // * Can't end with a hyphen or contain two consecutive hyphens
  24214. //
  24215. // Example: my-cluster2
  24216. NewGlobalClusterIdentifier *string `type:"string"`
  24217. }
  24218. // String returns the string representation
  24219. func (s ModifyGlobalClusterInput) String() string {
  24220. return awsutil.Prettify(s)
  24221. }
  24222. // GoString returns the string representation
  24223. func (s ModifyGlobalClusterInput) GoString() string {
  24224. return s.String()
  24225. }
  24226. // SetDeletionProtection sets the DeletionProtection field's value.
  24227. func (s *ModifyGlobalClusterInput) SetDeletionProtection(v bool) *ModifyGlobalClusterInput {
  24228. s.DeletionProtection = &v
  24229. return s
  24230. }
  24231. // SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value.
  24232. func (s *ModifyGlobalClusterInput) SetGlobalClusterIdentifier(v string) *ModifyGlobalClusterInput {
  24233. s.GlobalClusterIdentifier = &v
  24234. return s
  24235. }
  24236. // SetNewGlobalClusterIdentifier sets the NewGlobalClusterIdentifier field's value.
  24237. func (s *ModifyGlobalClusterInput) SetNewGlobalClusterIdentifier(v string) *ModifyGlobalClusterInput {
  24238. s.NewGlobalClusterIdentifier = &v
  24239. return s
  24240. }
  24241. type ModifyGlobalClusterOutput struct {
  24242. _ struct{} `type:"structure"`
  24243. // A data type representing an Aurora global database.
  24244. GlobalCluster *GlobalCluster `type:"structure"`
  24245. }
  24246. // String returns the string representation
  24247. func (s ModifyGlobalClusterOutput) String() string {
  24248. return awsutil.Prettify(s)
  24249. }
  24250. // GoString returns the string representation
  24251. func (s ModifyGlobalClusterOutput) GoString() string {
  24252. return s.String()
  24253. }
  24254. // SetGlobalCluster sets the GlobalCluster field's value.
  24255. func (s *ModifyGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *ModifyGlobalClusterOutput {
  24256. s.GlobalCluster = v
  24257. return s
  24258. }
  24259. type ModifyOptionGroupInput struct {
  24260. _ struct{} `type:"structure"`
  24261. // Indicates whether the changes should be applied immediately, or during the
  24262. // next maintenance window for each instance associated with the option group.
  24263. ApplyImmediately *bool `type:"boolean"`
  24264. // The name of the option group to be modified.
  24265. //
  24266. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  24267. // can't be removed from an option group, and that option group can't be removed
  24268. // from a DB instance once it is associated with a DB instance
  24269. //
  24270. // OptionGroupName is a required field
  24271. OptionGroupName *string `type:"string" required:"true"`
  24272. // Options in this list are added to the option group or, if already present,
  24273. // the specified configuration is used to update the existing configuration.
  24274. OptionsToInclude []*OptionConfiguration `locationNameList:"OptionConfiguration" type:"list"`
  24275. // Options in this list are removed from the option group.
  24276. OptionsToRemove []*string `type:"list"`
  24277. }
  24278. // String returns the string representation
  24279. func (s ModifyOptionGroupInput) String() string {
  24280. return awsutil.Prettify(s)
  24281. }
  24282. // GoString returns the string representation
  24283. func (s ModifyOptionGroupInput) GoString() string {
  24284. return s.String()
  24285. }
  24286. // Validate inspects the fields of the type to determine if they are valid.
  24287. func (s *ModifyOptionGroupInput) Validate() error {
  24288. invalidParams := request.ErrInvalidParams{Context: "ModifyOptionGroupInput"}
  24289. if s.OptionGroupName == nil {
  24290. invalidParams.Add(request.NewErrParamRequired("OptionGroupName"))
  24291. }
  24292. if s.OptionsToInclude != nil {
  24293. for i, v := range s.OptionsToInclude {
  24294. if v == nil {
  24295. continue
  24296. }
  24297. if err := v.Validate(); err != nil {
  24298. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OptionsToInclude", i), err.(request.ErrInvalidParams))
  24299. }
  24300. }
  24301. }
  24302. if invalidParams.Len() > 0 {
  24303. return invalidParams
  24304. }
  24305. return nil
  24306. }
  24307. // SetApplyImmediately sets the ApplyImmediately field's value.
  24308. func (s *ModifyOptionGroupInput) SetApplyImmediately(v bool) *ModifyOptionGroupInput {
  24309. s.ApplyImmediately = &v
  24310. return s
  24311. }
  24312. // SetOptionGroupName sets the OptionGroupName field's value.
  24313. func (s *ModifyOptionGroupInput) SetOptionGroupName(v string) *ModifyOptionGroupInput {
  24314. s.OptionGroupName = &v
  24315. return s
  24316. }
  24317. // SetOptionsToInclude sets the OptionsToInclude field's value.
  24318. func (s *ModifyOptionGroupInput) SetOptionsToInclude(v []*OptionConfiguration) *ModifyOptionGroupInput {
  24319. s.OptionsToInclude = v
  24320. return s
  24321. }
  24322. // SetOptionsToRemove sets the OptionsToRemove field's value.
  24323. func (s *ModifyOptionGroupInput) SetOptionsToRemove(v []*string) *ModifyOptionGroupInput {
  24324. s.OptionsToRemove = v
  24325. return s
  24326. }
  24327. type ModifyOptionGroupOutput struct {
  24328. _ struct{} `type:"structure"`
  24329. OptionGroup *OptionGroup `type:"structure"`
  24330. }
  24331. // String returns the string representation
  24332. func (s ModifyOptionGroupOutput) String() string {
  24333. return awsutil.Prettify(s)
  24334. }
  24335. // GoString returns the string representation
  24336. func (s ModifyOptionGroupOutput) GoString() string {
  24337. return s.String()
  24338. }
  24339. // SetOptionGroup sets the OptionGroup field's value.
  24340. func (s *ModifyOptionGroupOutput) SetOptionGroup(v *OptionGroup) *ModifyOptionGroupOutput {
  24341. s.OptionGroup = v
  24342. return s
  24343. }
  24344. // Option details.
  24345. type Option struct {
  24346. _ struct{} `type:"structure"`
  24347. // If the option requires access to a port, then this DB security group allows
  24348. // access to the port.
  24349. DBSecurityGroupMemberships []*DBSecurityGroupMembership `locationNameList:"DBSecurityGroup" type:"list"`
  24350. // The description of the option.
  24351. OptionDescription *string `type:"string"`
  24352. // The name of the option.
  24353. OptionName *string `type:"string"`
  24354. // The option settings for this option.
  24355. OptionSettings []*OptionSetting `locationNameList:"OptionSetting" type:"list"`
  24356. // The version of the option.
  24357. OptionVersion *string `type:"string"`
  24358. // Indicate if this option is permanent.
  24359. Permanent *bool `type:"boolean"`
  24360. // Indicate if this option is persistent.
  24361. Persistent *bool `type:"boolean"`
  24362. // If required, the port configured for this option to use.
  24363. Port *int64 `type:"integer"`
  24364. // If the option requires access to a port, then this VPC security group allows
  24365. // access to the port.
  24366. VpcSecurityGroupMemberships []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"`
  24367. }
  24368. // String returns the string representation
  24369. func (s Option) String() string {
  24370. return awsutil.Prettify(s)
  24371. }
  24372. // GoString returns the string representation
  24373. func (s Option) GoString() string {
  24374. return s.String()
  24375. }
  24376. // SetDBSecurityGroupMemberships sets the DBSecurityGroupMemberships field's value.
  24377. func (s *Option) SetDBSecurityGroupMemberships(v []*DBSecurityGroupMembership) *Option {
  24378. s.DBSecurityGroupMemberships = v
  24379. return s
  24380. }
  24381. // SetOptionDescription sets the OptionDescription field's value.
  24382. func (s *Option) SetOptionDescription(v string) *Option {
  24383. s.OptionDescription = &v
  24384. return s
  24385. }
  24386. // SetOptionName sets the OptionName field's value.
  24387. func (s *Option) SetOptionName(v string) *Option {
  24388. s.OptionName = &v
  24389. return s
  24390. }
  24391. // SetOptionSettings sets the OptionSettings field's value.
  24392. func (s *Option) SetOptionSettings(v []*OptionSetting) *Option {
  24393. s.OptionSettings = v
  24394. return s
  24395. }
  24396. // SetOptionVersion sets the OptionVersion field's value.
  24397. func (s *Option) SetOptionVersion(v string) *Option {
  24398. s.OptionVersion = &v
  24399. return s
  24400. }
  24401. // SetPermanent sets the Permanent field's value.
  24402. func (s *Option) SetPermanent(v bool) *Option {
  24403. s.Permanent = &v
  24404. return s
  24405. }
  24406. // SetPersistent sets the Persistent field's value.
  24407. func (s *Option) SetPersistent(v bool) *Option {
  24408. s.Persistent = &v
  24409. return s
  24410. }
  24411. // SetPort sets the Port field's value.
  24412. func (s *Option) SetPort(v int64) *Option {
  24413. s.Port = &v
  24414. return s
  24415. }
  24416. // SetVpcSecurityGroupMemberships sets the VpcSecurityGroupMemberships field's value.
  24417. func (s *Option) SetVpcSecurityGroupMemberships(v []*VpcSecurityGroupMembership) *Option {
  24418. s.VpcSecurityGroupMemberships = v
  24419. return s
  24420. }
  24421. // A list of all available options
  24422. type OptionConfiguration struct {
  24423. _ struct{} `type:"structure"`
  24424. // A list of DBSecurityGroupMemebrship name strings used for this option.
  24425. DBSecurityGroupMemberships []*string `locationNameList:"DBSecurityGroupName" type:"list"`
  24426. // The configuration of options to include in a group.
  24427. //
  24428. // OptionName is a required field
  24429. OptionName *string `type:"string" required:"true"`
  24430. // The option settings to include in an option group.
  24431. OptionSettings []*OptionSetting `locationNameList:"OptionSetting" type:"list"`
  24432. // The version for the option.
  24433. OptionVersion *string `type:"string"`
  24434. // The optional port for the option.
  24435. Port *int64 `type:"integer"`
  24436. // A list of VpcSecurityGroupMemebrship name strings used for this option.
  24437. VpcSecurityGroupMemberships []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  24438. }
  24439. // String returns the string representation
  24440. func (s OptionConfiguration) String() string {
  24441. return awsutil.Prettify(s)
  24442. }
  24443. // GoString returns the string representation
  24444. func (s OptionConfiguration) GoString() string {
  24445. return s.String()
  24446. }
  24447. // Validate inspects the fields of the type to determine if they are valid.
  24448. func (s *OptionConfiguration) Validate() error {
  24449. invalidParams := request.ErrInvalidParams{Context: "OptionConfiguration"}
  24450. if s.OptionName == nil {
  24451. invalidParams.Add(request.NewErrParamRequired("OptionName"))
  24452. }
  24453. if invalidParams.Len() > 0 {
  24454. return invalidParams
  24455. }
  24456. return nil
  24457. }
  24458. // SetDBSecurityGroupMemberships sets the DBSecurityGroupMemberships field's value.
  24459. func (s *OptionConfiguration) SetDBSecurityGroupMemberships(v []*string) *OptionConfiguration {
  24460. s.DBSecurityGroupMemberships = v
  24461. return s
  24462. }
  24463. // SetOptionName sets the OptionName field's value.
  24464. func (s *OptionConfiguration) SetOptionName(v string) *OptionConfiguration {
  24465. s.OptionName = &v
  24466. return s
  24467. }
  24468. // SetOptionSettings sets the OptionSettings field's value.
  24469. func (s *OptionConfiguration) SetOptionSettings(v []*OptionSetting) *OptionConfiguration {
  24470. s.OptionSettings = v
  24471. return s
  24472. }
  24473. // SetOptionVersion sets the OptionVersion field's value.
  24474. func (s *OptionConfiguration) SetOptionVersion(v string) *OptionConfiguration {
  24475. s.OptionVersion = &v
  24476. return s
  24477. }
  24478. // SetPort sets the Port field's value.
  24479. func (s *OptionConfiguration) SetPort(v int64) *OptionConfiguration {
  24480. s.Port = &v
  24481. return s
  24482. }
  24483. // SetVpcSecurityGroupMemberships sets the VpcSecurityGroupMemberships field's value.
  24484. func (s *OptionConfiguration) SetVpcSecurityGroupMemberships(v []*string) *OptionConfiguration {
  24485. s.VpcSecurityGroupMemberships = v
  24486. return s
  24487. }
  24488. type OptionGroup struct {
  24489. _ struct{} `type:"structure"`
  24490. // Indicates whether this option group can be applied to both VPC and non-VPC
  24491. // instances. The value true indicates the option group can be applied to both
  24492. // VPC and non-VPC instances.
  24493. AllowsVpcAndNonVpcInstanceMemberships *bool `type:"boolean"`
  24494. // Indicates the name of the engine that this option group can be applied to.
  24495. EngineName *string `type:"string"`
  24496. // Indicates the major engine version associated with this option group.
  24497. MajorEngineVersion *string `type:"string"`
  24498. // The Amazon Resource Name (ARN) for the option group.
  24499. OptionGroupArn *string `type:"string"`
  24500. // Provides a description of the option group.
  24501. OptionGroupDescription *string `type:"string"`
  24502. // Specifies the name of the option group.
  24503. OptionGroupName *string `type:"string"`
  24504. // Indicates what options are available in the option group.
  24505. Options []*Option `locationNameList:"Option" type:"list"`
  24506. // If AllowsVpcAndNonVpcInstanceMemberships is false, this field is blank. If
  24507. // AllowsVpcAndNonVpcInstanceMemberships is true and this field is blank, then
  24508. // this option group can be applied to both VPC and non-VPC instances. If this
  24509. // field contains a value, then this option group can only be applied to instances
  24510. // that are in the VPC indicated by this field.
  24511. VpcId *string `type:"string"`
  24512. }
  24513. // String returns the string representation
  24514. func (s OptionGroup) String() string {
  24515. return awsutil.Prettify(s)
  24516. }
  24517. // GoString returns the string representation
  24518. func (s OptionGroup) GoString() string {
  24519. return s.String()
  24520. }
  24521. // SetAllowsVpcAndNonVpcInstanceMemberships sets the AllowsVpcAndNonVpcInstanceMemberships field's value.
  24522. func (s *OptionGroup) SetAllowsVpcAndNonVpcInstanceMemberships(v bool) *OptionGroup {
  24523. s.AllowsVpcAndNonVpcInstanceMemberships = &v
  24524. return s
  24525. }
  24526. // SetEngineName sets the EngineName field's value.
  24527. func (s *OptionGroup) SetEngineName(v string) *OptionGroup {
  24528. s.EngineName = &v
  24529. return s
  24530. }
  24531. // SetMajorEngineVersion sets the MajorEngineVersion field's value.
  24532. func (s *OptionGroup) SetMajorEngineVersion(v string) *OptionGroup {
  24533. s.MajorEngineVersion = &v
  24534. return s
  24535. }
  24536. // SetOptionGroupArn sets the OptionGroupArn field's value.
  24537. func (s *OptionGroup) SetOptionGroupArn(v string) *OptionGroup {
  24538. s.OptionGroupArn = &v
  24539. return s
  24540. }
  24541. // SetOptionGroupDescription sets the OptionGroupDescription field's value.
  24542. func (s *OptionGroup) SetOptionGroupDescription(v string) *OptionGroup {
  24543. s.OptionGroupDescription = &v
  24544. return s
  24545. }
  24546. // SetOptionGroupName sets the OptionGroupName field's value.
  24547. func (s *OptionGroup) SetOptionGroupName(v string) *OptionGroup {
  24548. s.OptionGroupName = &v
  24549. return s
  24550. }
  24551. // SetOptions sets the Options field's value.
  24552. func (s *OptionGroup) SetOptions(v []*Option) *OptionGroup {
  24553. s.Options = v
  24554. return s
  24555. }
  24556. // SetVpcId sets the VpcId field's value.
  24557. func (s *OptionGroup) SetVpcId(v string) *OptionGroup {
  24558. s.VpcId = &v
  24559. return s
  24560. }
  24561. // Provides information on the option groups the DB instance is a member of.
  24562. type OptionGroupMembership struct {
  24563. _ struct{} `type:"structure"`
  24564. // The name of the option group that the instance belongs to.
  24565. OptionGroupName *string `type:"string"`
  24566. // The status of the DB instance's option group membership. Valid values are:
  24567. // in-sync, pending-apply, pending-removal, pending-maintenance-apply, pending-maintenance-removal,
  24568. // applying, removing, and failed.
  24569. Status *string `type:"string"`
  24570. }
  24571. // String returns the string representation
  24572. func (s OptionGroupMembership) String() string {
  24573. return awsutil.Prettify(s)
  24574. }
  24575. // GoString returns the string representation
  24576. func (s OptionGroupMembership) GoString() string {
  24577. return s.String()
  24578. }
  24579. // SetOptionGroupName sets the OptionGroupName field's value.
  24580. func (s *OptionGroupMembership) SetOptionGroupName(v string) *OptionGroupMembership {
  24581. s.OptionGroupName = &v
  24582. return s
  24583. }
  24584. // SetStatus sets the Status field's value.
  24585. func (s *OptionGroupMembership) SetStatus(v string) *OptionGroupMembership {
  24586. s.Status = &v
  24587. return s
  24588. }
  24589. // Available option.
  24590. type OptionGroupOption struct {
  24591. _ struct{} `type:"structure"`
  24592. // If the option requires a port, specifies the default port for the option.
  24593. DefaultPort *int64 `type:"integer"`
  24594. // The description of the option.
  24595. Description *string `type:"string"`
  24596. // The name of the engine that this option can be applied to.
  24597. EngineName *string `type:"string"`
  24598. // Indicates the major engine version that the option is available for.
  24599. MajorEngineVersion *string `type:"string"`
  24600. // The minimum required engine version for the option to be applied.
  24601. MinimumRequiredMinorEngineVersion *string `type:"string"`
  24602. // The name of the option.
  24603. Name *string `type:"string"`
  24604. // The option settings that are available (and the default value) for each option
  24605. // in an option group.
  24606. OptionGroupOptionSettings []*OptionGroupOptionSetting `locationNameList:"OptionGroupOptionSetting" type:"list"`
  24607. // The versions that are available for the option.
  24608. OptionGroupOptionVersions []*OptionVersion `locationNameList:"OptionVersion" type:"list"`
  24609. // The options that conflict with this option.
  24610. OptionsConflictsWith []*string `locationNameList:"OptionConflictName" type:"list"`
  24611. // The options that are prerequisites for this option.
  24612. OptionsDependedOn []*string `locationNameList:"OptionName" type:"list"`
  24613. // Permanent options can never be removed from an option group. An option group
  24614. // containing a permanent option can't be removed from a DB instance.
  24615. Permanent *bool `type:"boolean"`
  24616. // Persistent options can't be removed from an option group while DB instances
  24617. // are associated with the option group. If you disassociate all DB instances
  24618. // from the option group, your can remove the persistent option from the option
  24619. // group.
  24620. Persistent *bool `type:"boolean"`
  24621. // Specifies whether the option requires a port.
  24622. PortRequired *bool `type:"boolean"`
  24623. // If true, you must enable the Auto Minor Version Upgrade setting for your
  24624. // DB instance before you can use this option. You can enable Auto Minor Version
  24625. // Upgrade when you first create your DB instance, or by modifying your DB instance
  24626. // later.
  24627. RequiresAutoMinorEngineVersionUpgrade *bool `type:"boolean"`
  24628. // If true, you can change the option to an earlier version of the option. This
  24629. // only applies to options that have different versions available.
  24630. SupportsOptionVersionDowngrade *bool `type:"boolean"`
  24631. // If true, you can only use this option with a DB instance that is in a VPC.
  24632. VpcOnly *bool `type:"boolean"`
  24633. }
  24634. // String returns the string representation
  24635. func (s OptionGroupOption) String() string {
  24636. return awsutil.Prettify(s)
  24637. }
  24638. // GoString returns the string representation
  24639. func (s OptionGroupOption) GoString() string {
  24640. return s.String()
  24641. }
  24642. // SetDefaultPort sets the DefaultPort field's value.
  24643. func (s *OptionGroupOption) SetDefaultPort(v int64) *OptionGroupOption {
  24644. s.DefaultPort = &v
  24645. return s
  24646. }
  24647. // SetDescription sets the Description field's value.
  24648. func (s *OptionGroupOption) SetDescription(v string) *OptionGroupOption {
  24649. s.Description = &v
  24650. return s
  24651. }
  24652. // SetEngineName sets the EngineName field's value.
  24653. func (s *OptionGroupOption) SetEngineName(v string) *OptionGroupOption {
  24654. s.EngineName = &v
  24655. return s
  24656. }
  24657. // SetMajorEngineVersion sets the MajorEngineVersion field's value.
  24658. func (s *OptionGroupOption) SetMajorEngineVersion(v string) *OptionGroupOption {
  24659. s.MajorEngineVersion = &v
  24660. return s
  24661. }
  24662. // SetMinimumRequiredMinorEngineVersion sets the MinimumRequiredMinorEngineVersion field's value.
  24663. func (s *OptionGroupOption) SetMinimumRequiredMinorEngineVersion(v string) *OptionGroupOption {
  24664. s.MinimumRequiredMinorEngineVersion = &v
  24665. return s
  24666. }
  24667. // SetName sets the Name field's value.
  24668. func (s *OptionGroupOption) SetName(v string) *OptionGroupOption {
  24669. s.Name = &v
  24670. return s
  24671. }
  24672. // SetOptionGroupOptionSettings sets the OptionGroupOptionSettings field's value.
  24673. func (s *OptionGroupOption) SetOptionGroupOptionSettings(v []*OptionGroupOptionSetting) *OptionGroupOption {
  24674. s.OptionGroupOptionSettings = v
  24675. return s
  24676. }
  24677. // SetOptionGroupOptionVersions sets the OptionGroupOptionVersions field's value.
  24678. func (s *OptionGroupOption) SetOptionGroupOptionVersions(v []*OptionVersion) *OptionGroupOption {
  24679. s.OptionGroupOptionVersions = v
  24680. return s
  24681. }
  24682. // SetOptionsConflictsWith sets the OptionsConflictsWith field's value.
  24683. func (s *OptionGroupOption) SetOptionsConflictsWith(v []*string) *OptionGroupOption {
  24684. s.OptionsConflictsWith = v
  24685. return s
  24686. }
  24687. // SetOptionsDependedOn sets the OptionsDependedOn field's value.
  24688. func (s *OptionGroupOption) SetOptionsDependedOn(v []*string) *OptionGroupOption {
  24689. s.OptionsDependedOn = v
  24690. return s
  24691. }
  24692. // SetPermanent sets the Permanent field's value.
  24693. func (s *OptionGroupOption) SetPermanent(v bool) *OptionGroupOption {
  24694. s.Permanent = &v
  24695. return s
  24696. }
  24697. // SetPersistent sets the Persistent field's value.
  24698. func (s *OptionGroupOption) SetPersistent(v bool) *OptionGroupOption {
  24699. s.Persistent = &v
  24700. return s
  24701. }
  24702. // SetPortRequired sets the PortRequired field's value.
  24703. func (s *OptionGroupOption) SetPortRequired(v bool) *OptionGroupOption {
  24704. s.PortRequired = &v
  24705. return s
  24706. }
  24707. // SetRequiresAutoMinorEngineVersionUpgrade sets the RequiresAutoMinorEngineVersionUpgrade field's value.
  24708. func (s *OptionGroupOption) SetRequiresAutoMinorEngineVersionUpgrade(v bool) *OptionGroupOption {
  24709. s.RequiresAutoMinorEngineVersionUpgrade = &v
  24710. return s
  24711. }
  24712. // SetSupportsOptionVersionDowngrade sets the SupportsOptionVersionDowngrade field's value.
  24713. func (s *OptionGroupOption) SetSupportsOptionVersionDowngrade(v bool) *OptionGroupOption {
  24714. s.SupportsOptionVersionDowngrade = &v
  24715. return s
  24716. }
  24717. // SetVpcOnly sets the VpcOnly field's value.
  24718. func (s *OptionGroupOption) SetVpcOnly(v bool) *OptionGroupOption {
  24719. s.VpcOnly = &v
  24720. return s
  24721. }
  24722. // Option group option settings are used to display settings available for each
  24723. // option with their default values and other information. These values are
  24724. // used with the DescribeOptionGroupOptions action.
  24725. type OptionGroupOptionSetting struct {
  24726. _ struct{} `type:"structure"`
  24727. // Indicates the acceptable values for the option group option.
  24728. AllowedValues *string `type:"string"`
  24729. // The DB engine specific parameter type for the option group option.
  24730. ApplyType *string `type:"string"`
  24731. // The default value for the option group option.
  24732. DefaultValue *string `type:"string"`
  24733. // Boolean value where true indicates that this option group option can be changed
  24734. // from the default value.
  24735. IsModifiable *bool `type:"boolean"`
  24736. // Boolean value where true indicates that a value must be specified for this
  24737. // option setting of the option group option.
  24738. IsRequired *bool `type:"boolean"`
  24739. // The minimum DB engine version required for the corresponding allowed value
  24740. // for this option setting.
  24741. MinimumEngineVersionPerAllowedValue []*MinimumEngineVersionPerAllowedValue `locationNameList:"MinimumEngineVersionPerAllowedValue" type:"list"`
  24742. // The description of the option group option.
  24743. SettingDescription *string `type:"string"`
  24744. // The name of the option group option.
  24745. SettingName *string `type:"string"`
  24746. }
  24747. // String returns the string representation
  24748. func (s OptionGroupOptionSetting) String() string {
  24749. return awsutil.Prettify(s)
  24750. }
  24751. // GoString returns the string representation
  24752. func (s OptionGroupOptionSetting) GoString() string {
  24753. return s.String()
  24754. }
  24755. // SetAllowedValues sets the AllowedValues field's value.
  24756. func (s *OptionGroupOptionSetting) SetAllowedValues(v string) *OptionGroupOptionSetting {
  24757. s.AllowedValues = &v
  24758. return s
  24759. }
  24760. // SetApplyType sets the ApplyType field's value.
  24761. func (s *OptionGroupOptionSetting) SetApplyType(v string) *OptionGroupOptionSetting {
  24762. s.ApplyType = &v
  24763. return s
  24764. }
  24765. // SetDefaultValue sets the DefaultValue field's value.
  24766. func (s *OptionGroupOptionSetting) SetDefaultValue(v string) *OptionGroupOptionSetting {
  24767. s.DefaultValue = &v
  24768. return s
  24769. }
  24770. // SetIsModifiable sets the IsModifiable field's value.
  24771. func (s *OptionGroupOptionSetting) SetIsModifiable(v bool) *OptionGroupOptionSetting {
  24772. s.IsModifiable = &v
  24773. return s
  24774. }
  24775. // SetIsRequired sets the IsRequired field's value.
  24776. func (s *OptionGroupOptionSetting) SetIsRequired(v bool) *OptionGroupOptionSetting {
  24777. s.IsRequired = &v
  24778. return s
  24779. }
  24780. // SetMinimumEngineVersionPerAllowedValue sets the MinimumEngineVersionPerAllowedValue field's value.
  24781. func (s *OptionGroupOptionSetting) SetMinimumEngineVersionPerAllowedValue(v []*MinimumEngineVersionPerAllowedValue) *OptionGroupOptionSetting {
  24782. s.MinimumEngineVersionPerAllowedValue = v
  24783. return s
  24784. }
  24785. // SetSettingDescription sets the SettingDescription field's value.
  24786. func (s *OptionGroupOptionSetting) SetSettingDescription(v string) *OptionGroupOptionSetting {
  24787. s.SettingDescription = &v
  24788. return s
  24789. }
  24790. // SetSettingName sets the SettingName field's value.
  24791. func (s *OptionGroupOptionSetting) SetSettingName(v string) *OptionGroupOptionSetting {
  24792. s.SettingName = &v
  24793. return s
  24794. }
  24795. // Option settings are the actual settings being applied or configured for that
  24796. // option. It is used when you modify an option group or describe option groups.
  24797. // For example, the NATIVE_NETWORK_ENCRYPTION option has a setting called SQLNET.ENCRYPTION_SERVER
  24798. // that can have several different values.
  24799. type OptionSetting struct {
  24800. _ struct{} `type:"structure"`
  24801. // The allowed values of the option setting.
  24802. AllowedValues *string `type:"string"`
  24803. // The DB engine specific parameter type.
  24804. ApplyType *string `type:"string"`
  24805. // The data type of the option setting.
  24806. DataType *string `type:"string"`
  24807. // The default value of the option setting.
  24808. DefaultValue *string `type:"string"`
  24809. // The description of the option setting.
  24810. Description *string `type:"string"`
  24811. // Indicates if the option setting is part of a collection.
  24812. IsCollection *bool `type:"boolean"`
  24813. // A Boolean value that, when true, indicates the option setting can be modified
  24814. // from the default.
  24815. IsModifiable *bool `type:"boolean"`
  24816. // The name of the option that has settings that you can set.
  24817. Name *string `type:"string"`
  24818. // The current value of the option setting.
  24819. Value *string `type:"string"`
  24820. }
  24821. // String returns the string representation
  24822. func (s OptionSetting) String() string {
  24823. return awsutil.Prettify(s)
  24824. }
  24825. // GoString returns the string representation
  24826. func (s OptionSetting) GoString() string {
  24827. return s.String()
  24828. }
  24829. // SetAllowedValues sets the AllowedValues field's value.
  24830. func (s *OptionSetting) SetAllowedValues(v string) *OptionSetting {
  24831. s.AllowedValues = &v
  24832. return s
  24833. }
  24834. // SetApplyType sets the ApplyType field's value.
  24835. func (s *OptionSetting) SetApplyType(v string) *OptionSetting {
  24836. s.ApplyType = &v
  24837. return s
  24838. }
  24839. // SetDataType sets the DataType field's value.
  24840. func (s *OptionSetting) SetDataType(v string) *OptionSetting {
  24841. s.DataType = &v
  24842. return s
  24843. }
  24844. // SetDefaultValue sets the DefaultValue field's value.
  24845. func (s *OptionSetting) SetDefaultValue(v string) *OptionSetting {
  24846. s.DefaultValue = &v
  24847. return s
  24848. }
  24849. // SetDescription sets the Description field's value.
  24850. func (s *OptionSetting) SetDescription(v string) *OptionSetting {
  24851. s.Description = &v
  24852. return s
  24853. }
  24854. // SetIsCollection sets the IsCollection field's value.
  24855. func (s *OptionSetting) SetIsCollection(v bool) *OptionSetting {
  24856. s.IsCollection = &v
  24857. return s
  24858. }
  24859. // SetIsModifiable sets the IsModifiable field's value.
  24860. func (s *OptionSetting) SetIsModifiable(v bool) *OptionSetting {
  24861. s.IsModifiable = &v
  24862. return s
  24863. }
  24864. // SetName sets the Name field's value.
  24865. func (s *OptionSetting) SetName(v string) *OptionSetting {
  24866. s.Name = &v
  24867. return s
  24868. }
  24869. // SetValue sets the Value field's value.
  24870. func (s *OptionSetting) SetValue(v string) *OptionSetting {
  24871. s.Value = &v
  24872. return s
  24873. }
  24874. // The version for an option. Option group option versions are returned by the
  24875. // DescribeOptionGroupOptions action.
  24876. type OptionVersion struct {
  24877. _ struct{} `type:"structure"`
  24878. // True if the version is the default version of the option, and otherwise false.
  24879. IsDefault *bool `type:"boolean"`
  24880. // The version of the option.
  24881. Version *string `type:"string"`
  24882. }
  24883. // String returns the string representation
  24884. func (s OptionVersion) String() string {
  24885. return awsutil.Prettify(s)
  24886. }
  24887. // GoString returns the string representation
  24888. func (s OptionVersion) GoString() string {
  24889. return s.String()
  24890. }
  24891. // SetIsDefault sets the IsDefault field's value.
  24892. func (s *OptionVersion) SetIsDefault(v bool) *OptionVersion {
  24893. s.IsDefault = &v
  24894. return s
  24895. }
  24896. // SetVersion sets the Version field's value.
  24897. func (s *OptionVersion) SetVersion(v string) *OptionVersion {
  24898. s.Version = &v
  24899. return s
  24900. }
  24901. // Contains a list of available options for a DB instance.
  24902. //
  24903. // This data type is used as a response element in the DescribeOrderableDBInstanceOptions
  24904. // action.
  24905. type OrderableDBInstanceOption struct {
  24906. _ struct{} `type:"structure"`
  24907. // A list of Availability Zones for a DB instance.
  24908. AvailabilityZones []*AvailabilityZone `locationNameList:"AvailabilityZone" type:"list"`
  24909. // A list of the available processor features for the DB instance class of a
  24910. // DB instance.
  24911. AvailableProcessorFeatures []*AvailableProcessorFeature `locationNameList:"AvailableProcessorFeature" type:"list"`
  24912. // The DB instance class for a DB instance.
  24913. DBInstanceClass *string `type:"string"`
  24914. // The engine type of a DB instance.
  24915. Engine *string `type:"string"`
  24916. // The engine version of a DB instance.
  24917. EngineVersion *string `type:"string"`
  24918. // The license model for a DB instance.
  24919. LicenseModel *string `type:"string"`
  24920. // Maximum total provisioned IOPS for a DB instance.
  24921. MaxIopsPerDbInstance *int64 `type:"integer"`
  24922. // Maximum provisioned IOPS per GiB for a DB instance.
  24923. MaxIopsPerGib *float64 `type:"double"`
  24924. // Maximum storage size for a DB instance.
  24925. MaxStorageSize *int64 `type:"integer"`
  24926. // Minimum total provisioned IOPS for a DB instance.
  24927. MinIopsPerDbInstance *int64 `type:"integer"`
  24928. // Minimum provisioned IOPS per GiB for a DB instance.
  24929. MinIopsPerGib *float64 `type:"double"`
  24930. // Minimum storage size for a DB instance.
  24931. MinStorageSize *int64 `type:"integer"`
  24932. // Indicates whether a DB instance is Multi-AZ capable.
  24933. MultiAZCapable *bool `type:"boolean"`
  24934. // Indicates whether a DB instance can have a Read Replica.
  24935. ReadReplicaCapable *bool `type:"boolean"`
  24936. // Indicates the storage type for a DB instance.
  24937. StorageType *string `type:"string"`
  24938. // A list of the supported DB engine modes.
  24939. SupportedEngineModes []*string `type:"list"`
  24940. // Indicates whether a DB instance supports Enhanced Monitoring at intervals
  24941. // from 1 to 60 seconds.
  24942. SupportsEnhancedMonitoring *bool `type:"boolean"`
  24943. // Indicates whether a DB instance supports IAM database authentication.
  24944. SupportsIAMDatabaseAuthentication *bool `type:"boolean"`
  24945. // Indicates whether a DB instance supports provisioned IOPS.
  24946. SupportsIops *bool `type:"boolean"`
  24947. // True if a DB instance supports Performance Insights, otherwise false.
  24948. SupportsPerformanceInsights *bool `type:"boolean"`
  24949. // Indicates whether a DB instance supports encrypted storage.
  24950. SupportsStorageEncryption *bool `type:"boolean"`
  24951. // Indicates whether a DB instance is in a VPC.
  24952. Vpc *bool `type:"boolean"`
  24953. }
  24954. // String returns the string representation
  24955. func (s OrderableDBInstanceOption) String() string {
  24956. return awsutil.Prettify(s)
  24957. }
  24958. // GoString returns the string representation
  24959. func (s OrderableDBInstanceOption) GoString() string {
  24960. return s.String()
  24961. }
  24962. // SetAvailabilityZones sets the AvailabilityZones field's value.
  24963. func (s *OrderableDBInstanceOption) SetAvailabilityZones(v []*AvailabilityZone) *OrderableDBInstanceOption {
  24964. s.AvailabilityZones = v
  24965. return s
  24966. }
  24967. // SetAvailableProcessorFeatures sets the AvailableProcessorFeatures field's value.
  24968. func (s *OrderableDBInstanceOption) SetAvailableProcessorFeatures(v []*AvailableProcessorFeature) *OrderableDBInstanceOption {
  24969. s.AvailableProcessorFeatures = v
  24970. return s
  24971. }
  24972. // SetDBInstanceClass sets the DBInstanceClass field's value.
  24973. func (s *OrderableDBInstanceOption) SetDBInstanceClass(v string) *OrderableDBInstanceOption {
  24974. s.DBInstanceClass = &v
  24975. return s
  24976. }
  24977. // SetEngine sets the Engine field's value.
  24978. func (s *OrderableDBInstanceOption) SetEngine(v string) *OrderableDBInstanceOption {
  24979. s.Engine = &v
  24980. return s
  24981. }
  24982. // SetEngineVersion sets the EngineVersion field's value.
  24983. func (s *OrderableDBInstanceOption) SetEngineVersion(v string) *OrderableDBInstanceOption {
  24984. s.EngineVersion = &v
  24985. return s
  24986. }
  24987. // SetLicenseModel sets the LicenseModel field's value.
  24988. func (s *OrderableDBInstanceOption) SetLicenseModel(v string) *OrderableDBInstanceOption {
  24989. s.LicenseModel = &v
  24990. return s
  24991. }
  24992. // SetMaxIopsPerDbInstance sets the MaxIopsPerDbInstance field's value.
  24993. func (s *OrderableDBInstanceOption) SetMaxIopsPerDbInstance(v int64) *OrderableDBInstanceOption {
  24994. s.MaxIopsPerDbInstance = &v
  24995. return s
  24996. }
  24997. // SetMaxIopsPerGib sets the MaxIopsPerGib field's value.
  24998. func (s *OrderableDBInstanceOption) SetMaxIopsPerGib(v float64) *OrderableDBInstanceOption {
  24999. s.MaxIopsPerGib = &v
  25000. return s
  25001. }
  25002. // SetMaxStorageSize sets the MaxStorageSize field's value.
  25003. func (s *OrderableDBInstanceOption) SetMaxStorageSize(v int64) *OrderableDBInstanceOption {
  25004. s.MaxStorageSize = &v
  25005. return s
  25006. }
  25007. // SetMinIopsPerDbInstance sets the MinIopsPerDbInstance field's value.
  25008. func (s *OrderableDBInstanceOption) SetMinIopsPerDbInstance(v int64) *OrderableDBInstanceOption {
  25009. s.MinIopsPerDbInstance = &v
  25010. return s
  25011. }
  25012. // SetMinIopsPerGib sets the MinIopsPerGib field's value.
  25013. func (s *OrderableDBInstanceOption) SetMinIopsPerGib(v float64) *OrderableDBInstanceOption {
  25014. s.MinIopsPerGib = &v
  25015. return s
  25016. }
  25017. // SetMinStorageSize sets the MinStorageSize field's value.
  25018. func (s *OrderableDBInstanceOption) SetMinStorageSize(v int64) *OrderableDBInstanceOption {
  25019. s.MinStorageSize = &v
  25020. return s
  25021. }
  25022. // SetMultiAZCapable sets the MultiAZCapable field's value.
  25023. func (s *OrderableDBInstanceOption) SetMultiAZCapable(v bool) *OrderableDBInstanceOption {
  25024. s.MultiAZCapable = &v
  25025. return s
  25026. }
  25027. // SetReadReplicaCapable sets the ReadReplicaCapable field's value.
  25028. func (s *OrderableDBInstanceOption) SetReadReplicaCapable(v bool) *OrderableDBInstanceOption {
  25029. s.ReadReplicaCapable = &v
  25030. return s
  25031. }
  25032. // SetStorageType sets the StorageType field's value.
  25033. func (s *OrderableDBInstanceOption) SetStorageType(v string) *OrderableDBInstanceOption {
  25034. s.StorageType = &v
  25035. return s
  25036. }
  25037. // SetSupportedEngineModes sets the SupportedEngineModes field's value.
  25038. func (s *OrderableDBInstanceOption) SetSupportedEngineModes(v []*string) *OrderableDBInstanceOption {
  25039. s.SupportedEngineModes = v
  25040. return s
  25041. }
  25042. // SetSupportsEnhancedMonitoring sets the SupportsEnhancedMonitoring field's value.
  25043. func (s *OrderableDBInstanceOption) SetSupportsEnhancedMonitoring(v bool) *OrderableDBInstanceOption {
  25044. s.SupportsEnhancedMonitoring = &v
  25045. return s
  25046. }
  25047. // SetSupportsIAMDatabaseAuthentication sets the SupportsIAMDatabaseAuthentication field's value.
  25048. func (s *OrderableDBInstanceOption) SetSupportsIAMDatabaseAuthentication(v bool) *OrderableDBInstanceOption {
  25049. s.SupportsIAMDatabaseAuthentication = &v
  25050. return s
  25051. }
  25052. // SetSupportsIops sets the SupportsIops field's value.
  25053. func (s *OrderableDBInstanceOption) SetSupportsIops(v bool) *OrderableDBInstanceOption {
  25054. s.SupportsIops = &v
  25055. return s
  25056. }
  25057. // SetSupportsPerformanceInsights sets the SupportsPerformanceInsights field's value.
  25058. func (s *OrderableDBInstanceOption) SetSupportsPerformanceInsights(v bool) *OrderableDBInstanceOption {
  25059. s.SupportsPerformanceInsights = &v
  25060. return s
  25061. }
  25062. // SetSupportsStorageEncryption sets the SupportsStorageEncryption field's value.
  25063. func (s *OrderableDBInstanceOption) SetSupportsStorageEncryption(v bool) *OrderableDBInstanceOption {
  25064. s.SupportsStorageEncryption = &v
  25065. return s
  25066. }
  25067. // SetVpc sets the Vpc field's value.
  25068. func (s *OrderableDBInstanceOption) SetVpc(v bool) *OrderableDBInstanceOption {
  25069. s.Vpc = &v
  25070. return s
  25071. }
  25072. // This data type is used as a request parameter in the ModifyDBParameterGroup
  25073. // and ResetDBParameterGroup actions.
  25074. //
  25075. // This data type is used as a response element in the DescribeEngineDefaultParameters
  25076. // and DescribeDBParameters actions.
  25077. type Parameter struct {
  25078. _ struct{} `type:"structure"`
  25079. // Specifies the valid range of values for the parameter.
  25080. AllowedValues *string `type:"string"`
  25081. // Indicates when to apply parameter updates.
  25082. ApplyMethod *string `type:"string" enum:"ApplyMethod"`
  25083. // Specifies the engine specific parameters type.
  25084. ApplyType *string `type:"string"`
  25085. // Specifies the valid data type for the parameter.
  25086. DataType *string `type:"string"`
  25087. // Provides a description of the parameter.
  25088. Description *string `type:"string"`
  25089. // Indicates whether (true) or not (false) the parameter can be modified. Some
  25090. // parameters have security or operational implications that prevent them from
  25091. // being changed.
  25092. IsModifiable *bool `type:"boolean"`
  25093. // The earliest engine version to which the parameter can apply.
  25094. MinimumEngineVersion *string `type:"string"`
  25095. // Specifies the name of the parameter.
  25096. ParameterName *string `type:"string"`
  25097. // Specifies the value of the parameter.
  25098. ParameterValue *string `type:"string"`
  25099. // Indicates the source of the parameter value.
  25100. Source *string `type:"string"`
  25101. // The valid DB engine modes.
  25102. SupportedEngineModes []*string `type:"list"`
  25103. }
  25104. // String returns the string representation
  25105. func (s Parameter) String() string {
  25106. return awsutil.Prettify(s)
  25107. }
  25108. // GoString returns the string representation
  25109. func (s Parameter) GoString() string {
  25110. return s.String()
  25111. }
  25112. // SetAllowedValues sets the AllowedValues field's value.
  25113. func (s *Parameter) SetAllowedValues(v string) *Parameter {
  25114. s.AllowedValues = &v
  25115. return s
  25116. }
  25117. // SetApplyMethod sets the ApplyMethod field's value.
  25118. func (s *Parameter) SetApplyMethod(v string) *Parameter {
  25119. s.ApplyMethod = &v
  25120. return s
  25121. }
  25122. // SetApplyType sets the ApplyType field's value.
  25123. func (s *Parameter) SetApplyType(v string) *Parameter {
  25124. s.ApplyType = &v
  25125. return s
  25126. }
  25127. // SetDataType sets the DataType field's value.
  25128. func (s *Parameter) SetDataType(v string) *Parameter {
  25129. s.DataType = &v
  25130. return s
  25131. }
  25132. // SetDescription sets the Description field's value.
  25133. func (s *Parameter) SetDescription(v string) *Parameter {
  25134. s.Description = &v
  25135. return s
  25136. }
  25137. // SetIsModifiable sets the IsModifiable field's value.
  25138. func (s *Parameter) SetIsModifiable(v bool) *Parameter {
  25139. s.IsModifiable = &v
  25140. return s
  25141. }
  25142. // SetMinimumEngineVersion sets the MinimumEngineVersion field's value.
  25143. func (s *Parameter) SetMinimumEngineVersion(v string) *Parameter {
  25144. s.MinimumEngineVersion = &v
  25145. return s
  25146. }
  25147. // SetParameterName sets the ParameterName field's value.
  25148. func (s *Parameter) SetParameterName(v string) *Parameter {
  25149. s.ParameterName = &v
  25150. return s
  25151. }
  25152. // SetParameterValue sets the ParameterValue field's value.
  25153. func (s *Parameter) SetParameterValue(v string) *Parameter {
  25154. s.ParameterValue = &v
  25155. return s
  25156. }
  25157. // SetSource sets the Source field's value.
  25158. func (s *Parameter) SetSource(v string) *Parameter {
  25159. s.Source = &v
  25160. return s
  25161. }
  25162. // SetSupportedEngineModes sets the SupportedEngineModes field's value.
  25163. func (s *Parameter) SetSupportedEngineModes(v []*string) *Parameter {
  25164. s.SupportedEngineModes = v
  25165. return s
  25166. }
  25167. // A list of the log types whose configuration is still pending. In other words,
  25168. // these log types are in the process of being activated or deactivated.
  25169. type PendingCloudwatchLogsExports struct {
  25170. _ struct{} `type:"structure"`
  25171. // Log types that are in the process of being enabled. After they are enabled,
  25172. // these log types are exported to CloudWatch Logs.
  25173. LogTypesToDisable []*string `type:"list"`
  25174. // Log types that are in the process of being deactivated. After they are deactivated,
  25175. // these log types aren't exported to CloudWatch Logs.
  25176. LogTypesToEnable []*string `type:"list"`
  25177. }
  25178. // String returns the string representation
  25179. func (s PendingCloudwatchLogsExports) String() string {
  25180. return awsutil.Prettify(s)
  25181. }
  25182. // GoString returns the string representation
  25183. func (s PendingCloudwatchLogsExports) GoString() string {
  25184. return s.String()
  25185. }
  25186. // SetLogTypesToDisable sets the LogTypesToDisable field's value.
  25187. func (s *PendingCloudwatchLogsExports) SetLogTypesToDisable(v []*string) *PendingCloudwatchLogsExports {
  25188. s.LogTypesToDisable = v
  25189. return s
  25190. }
  25191. // SetLogTypesToEnable sets the LogTypesToEnable field's value.
  25192. func (s *PendingCloudwatchLogsExports) SetLogTypesToEnable(v []*string) *PendingCloudwatchLogsExports {
  25193. s.LogTypesToEnable = v
  25194. return s
  25195. }
  25196. // Provides information about a pending maintenance action for a resource.
  25197. type PendingMaintenanceAction struct {
  25198. _ struct{} `type:"structure"`
  25199. // The type of pending maintenance action that is available for the resource.
  25200. Action *string `type:"string"`
  25201. // The date of the maintenance window when the action is applied. The maintenance
  25202. // action is applied to the resource during its first maintenance window after
  25203. // this date. If this date is specified, any next-maintenance opt-in requests
  25204. // are ignored.
  25205. AutoAppliedAfterDate *time.Time `type:"timestamp"`
  25206. // The effective date when the pending maintenance action is applied to the
  25207. // resource. This date takes into account opt-in requests received from the
  25208. // ApplyPendingMaintenanceAction API, the AutoAppliedAfterDate, and the ForcedApplyDate.
  25209. // This value is blank if an opt-in request has not been received and nothing
  25210. // has been specified as AutoAppliedAfterDate or ForcedApplyDate.
  25211. CurrentApplyDate *time.Time `type:"timestamp"`
  25212. // A description providing more detail about the maintenance action.
  25213. Description *string `type:"string"`
  25214. // The date when the maintenance action is automatically applied. The maintenance
  25215. // action is applied to the resource on this date regardless of the maintenance
  25216. // window for the resource. If this date is specified, any immediate opt-in
  25217. // requests are ignored.
  25218. ForcedApplyDate *time.Time `type:"timestamp"`
  25219. // Indicates the type of opt-in request that has been received for the resource.
  25220. OptInStatus *string `type:"string"`
  25221. }
  25222. // String returns the string representation
  25223. func (s PendingMaintenanceAction) String() string {
  25224. return awsutil.Prettify(s)
  25225. }
  25226. // GoString returns the string representation
  25227. func (s PendingMaintenanceAction) GoString() string {
  25228. return s.String()
  25229. }
  25230. // SetAction sets the Action field's value.
  25231. func (s *PendingMaintenanceAction) SetAction(v string) *PendingMaintenanceAction {
  25232. s.Action = &v
  25233. return s
  25234. }
  25235. // SetAutoAppliedAfterDate sets the AutoAppliedAfterDate field's value.
  25236. func (s *PendingMaintenanceAction) SetAutoAppliedAfterDate(v time.Time) *PendingMaintenanceAction {
  25237. s.AutoAppliedAfterDate = &v
  25238. return s
  25239. }
  25240. // SetCurrentApplyDate sets the CurrentApplyDate field's value.
  25241. func (s *PendingMaintenanceAction) SetCurrentApplyDate(v time.Time) *PendingMaintenanceAction {
  25242. s.CurrentApplyDate = &v
  25243. return s
  25244. }
  25245. // SetDescription sets the Description field's value.
  25246. func (s *PendingMaintenanceAction) SetDescription(v string) *PendingMaintenanceAction {
  25247. s.Description = &v
  25248. return s
  25249. }
  25250. // SetForcedApplyDate sets the ForcedApplyDate field's value.
  25251. func (s *PendingMaintenanceAction) SetForcedApplyDate(v time.Time) *PendingMaintenanceAction {
  25252. s.ForcedApplyDate = &v
  25253. return s
  25254. }
  25255. // SetOptInStatus sets the OptInStatus field's value.
  25256. func (s *PendingMaintenanceAction) SetOptInStatus(v string) *PendingMaintenanceAction {
  25257. s.OptInStatus = &v
  25258. return s
  25259. }
  25260. // This data type is used as a response element in the ModifyDBInstance action.
  25261. type PendingModifiedValues struct {
  25262. _ struct{} `type:"structure"`
  25263. // Contains the new AllocatedStorage size for the DB instance that will be applied
  25264. // or is currently being applied.
  25265. AllocatedStorage *int64 `type:"integer"`
  25266. // Specifies the pending number of days for which automated backups are retained.
  25267. BackupRetentionPeriod *int64 `type:"integer"`
  25268. // Specifies the identifier of the CA certificate for the DB instance.
  25269. CACertificateIdentifier *string `type:"string"`
  25270. // Contains the new DBInstanceClass for the DB instance that will be applied
  25271. // or is currently being applied.
  25272. DBInstanceClass *string `type:"string"`
  25273. // Contains the new DBInstanceIdentifier for the DB instance that will be applied
  25274. // or is currently being applied.
  25275. DBInstanceIdentifier *string `type:"string"`
  25276. // The new DB subnet group for the DB instance.
  25277. DBSubnetGroupName *string `type:"string"`
  25278. // Indicates the database engine version.
  25279. EngineVersion *string `type:"string"`
  25280. // Specifies the new Provisioned IOPS value for the DB instance that will be
  25281. // applied or is currently being applied.
  25282. Iops *int64 `type:"integer"`
  25283. // The license model for the DB instance.
  25284. //
  25285. // Valid values: license-included | bring-your-own-license | general-public-license
  25286. LicenseModel *string `type:"string"`
  25287. // Contains the pending or currently-in-progress change of the master credentials
  25288. // for the DB instance.
  25289. MasterUserPassword *string `type:"string"`
  25290. // Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.
  25291. MultiAZ *bool `type:"boolean"`
  25292. // A list of the log types whose configuration is still pending. In other words,
  25293. // these log types are in the process of being activated or deactivated.
  25294. PendingCloudwatchLogsExports *PendingCloudwatchLogsExports `type:"structure"`
  25295. // Specifies the pending port for the DB instance.
  25296. Port *int64 `type:"integer"`
  25297. // The number of CPU cores and the number of threads per core for the DB instance
  25298. // class of the DB instance.
  25299. ProcessorFeatures []*ProcessorFeature `locationNameList:"ProcessorFeature" type:"list"`
  25300. // Specifies the storage type to be associated with the DB instance.
  25301. StorageType *string `type:"string"`
  25302. }
  25303. // String returns the string representation
  25304. func (s PendingModifiedValues) String() string {
  25305. return awsutil.Prettify(s)
  25306. }
  25307. // GoString returns the string representation
  25308. func (s PendingModifiedValues) GoString() string {
  25309. return s.String()
  25310. }
  25311. // SetAllocatedStorage sets the AllocatedStorage field's value.
  25312. func (s *PendingModifiedValues) SetAllocatedStorage(v int64) *PendingModifiedValues {
  25313. s.AllocatedStorage = &v
  25314. return s
  25315. }
  25316. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  25317. func (s *PendingModifiedValues) SetBackupRetentionPeriod(v int64) *PendingModifiedValues {
  25318. s.BackupRetentionPeriod = &v
  25319. return s
  25320. }
  25321. // SetCACertificateIdentifier sets the CACertificateIdentifier field's value.
  25322. func (s *PendingModifiedValues) SetCACertificateIdentifier(v string) *PendingModifiedValues {
  25323. s.CACertificateIdentifier = &v
  25324. return s
  25325. }
  25326. // SetDBInstanceClass sets the DBInstanceClass field's value.
  25327. func (s *PendingModifiedValues) SetDBInstanceClass(v string) *PendingModifiedValues {
  25328. s.DBInstanceClass = &v
  25329. return s
  25330. }
  25331. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  25332. func (s *PendingModifiedValues) SetDBInstanceIdentifier(v string) *PendingModifiedValues {
  25333. s.DBInstanceIdentifier = &v
  25334. return s
  25335. }
  25336. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  25337. func (s *PendingModifiedValues) SetDBSubnetGroupName(v string) *PendingModifiedValues {
  25338. s.DBSubnetGroupName = &v
  25339. return s
  25340. }
  25341. // SetEngineVersion sets the EngineVersion field's value.
  25342. func (s *PendingModifiedValues) SetEngineVersion(v string) *PendingModifiedValues {
  25343. s.EngineVersion = &v
  25344. return s
  25345. }
  25346. // SetIops sets the Iops field's value.
  25347. func (s *PendingModifiedValues) SetIops(v int64) *PendingModifiedValues {
  25348. s.Iops = &v
  25349. return s
  25350. }
  25351. // SetLicenseModel sets the LicenseModel field's value.
  25352. func (s *PendingModifiedValues) SetLicenseModel(v string) *PendingModifiedValues {
  25353. s.LicenseModel = &v
  25354. return s
  25355. }
  25356. // SetMasterUserPassword sets the MasterUserPassword field's value.
  25357. func (s *PendingModifiedValues) SetMasterUserPassword(v string) *PendingModifiedValues {
  25358. s.MasterUserPassword = &v
  25359. return s
  25360. }
  25361. // SetMultiAZ sets the MultiAZ field's value.
  25362. func (s *PendingModifiedValues) SetMultiAZ(v bool) *PendingModifiedValues {
  25363. s.MultiAZ = &v
  25364. return s
  25365. }
  25366. // SetPendingCloudwatchLogsExports sets the PendingCloudwatchLogsExports field's value.
  25367. func (s *PendingModifiedValues) SetPendingCloudwatchLogsExports(v *PendingCloudwatchLogsExports) *PendingModifiedValues {
  25368. s.PendingCloudwatchLogsExports = v
  25369. return s
  25370. }
  25371. // SetPort sets the Port field's value.
  25372. func (s *PendingModifiedValues) SetPort(v int64) *PendingModifiedValues {
  25373. s.Port = &v
  25374. return s
  25375. }
  25376. // SetProcessorFeatures sets the ProcessorFeatures field's value.
  25377. func (s *PendingModifiedValues) SetProcessorFeatures(v []*ProcessorFeature) *PendingModifiedValues {
  25378. s.ProcessorFeatures = v
  25379. return s
  25380. }
  25381. // SetStorageType sets the StorageType field's value.
  25382. func (s *PendingModifiedValues) SetStorageType(v string) *PendingModifiedValues {
  25383. s.StorageType = &v
  25384. return s
  25385. }
  25386. // Contains the processor features of a DB instance class.
  25387. //
  25388. // To specify the number of CPU cores, use the coreCount feature name for the
  25389. // Name parameter. To specify the number of threads per core, use the threadsPerCore
  25390. // feature name for the Name parameter.
  25391. //
  25392. // You can set the processor features of the DB instance class for a DB instance
  25393. // when you call one of the following actions:
  25394. //
  25395. // * CreateDBInstance
  25396. //
  25397. // * ModifyDBInstance
  25398. //
  25399. // * RestoreDBInstanceFromDBSnapshot
  25400. //
  25401. // * RestoreDBInstanceFromS3
  25402. //
  25403. // * RestoreDBInstanceToPointInTime
  25404. //
  25405. // You can view the valid processor values for a particular instance class by
  25406. // calling the DescribeOrderableDBInstanceOptions action and specifying the
  25407. // instance class for the DBInstanceClass parameter.
  25408. //
  25409. // In addition, you can use the following actions for DB instance class processor
  25410. // information:
  25411. //
  25412. // * DescribeDBInstances
  25413. //
  25414. // * DescribeDBSnapshots
  25415. //
  25416. // * DescribeValidDBInstanceModifications
  25417. //
  25418. // For more information, see Configuring the Processor of the DB Instance Class
  25419. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html#USER_ConfigureProcessor)
  25420. // in the Amazon RDS User Guide.
  25421. type ProcessorFeature struct {
  25422. _ struct{} `type:"structure"`
  25423. // The name of the processor feature. Valid names are coreCount and threadsPerCore.
  25424. Name *string `type:"string"`
  25425. // The value of a processor feature name.
  25426. Value *string `type:"string"`
  25427. }
  25428. // String returns the string representation
  25429. func (s ProcessorFeature) String() string {
  25430. return awsutil.Prettify(s)
  25431. }
  25432. // GoString returns the string representation
  25433. func (s ProcessorFeature) GoString() string {
  25434. return s.String()
  25435. }
  25436. // SetName sets the Name field's value.
  25437. func (s *ProcessorFeature) SetName(v string) *ProcessorFeature {
  25438. s.Name = &v
  25439. return s
  25440. }
  25441. // SetValue sets the Value field's value.
  25442. func (s *ProcessorFeature) SetValue(v string) *ProcessorFeature {
  25443. s.Value = &v
  25444. return s
  25445. }
  25446. type PromoteReadReplicaDBClusterInput struct {
  25447. _ struct{} `type:"structure"`
  25448. // The identifier of the DB cluster Read Replica to promote. This parameter
  25449. // is not case-sensitive.
  25450. //
  25451. // Constraints:
  25452. //
  25453. // * Must match the identifier of an existing DBCluster Read Replica.
  25454. //
  25455. // Example: my-cluster-replica1
  25456. //
  25457. // DBClusterIdentifier is a required field
  25458. DBClusterIdentifier *string `type:"string" required:"true"`
  25459. }
  25460. // String returns the string representation
  25461. func (s PromoteReadReplicaDBClusterInput) String() string {
  25462. return awsutil.Prettify(s)
  25463. }
  25464. // GoString returns the string representation
  25465. func (s PromoteReadReplicaDBClusterInput) GoString() string {
  25466. return s.String()
  25467. }
  25468. // Validate inspects the fields of the type to determine if they are valid.
  25469. func (s *PromoteReadReplicaDBClusterInput) Validate() error {
  25470. invalidParams := request.ErrInvalidParams{Context: "PromoteReadReplicaDBClusterInput"}
  25471. if s.DBClusterIdentifier == nil {
  25472. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  25473. }
  25474. if invalidParams.Len() > 0 {
  25475. return invalidParams
  25476. }
  25477. return nil
  25478. }
  25479. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  25480. func (s *PromoteReadReplicaDBClusterInput) SetDBClusterIdentifier(v string) *PromoteReadReplicaDBClusterInput {
  25481. s.DBClusterIdentifier = &v
  25482. return s
  25483. }
  25484. type PromoteReadReplicaDBClusterOutput struct {
  25485. _ struct{} `type:"structure"`
  25486. // Contains the details of an Amazon Aurora DB cluster.
  25487. //
  25488. // This data type is used as a response element in the DescribeDBClusters, StopDBCluster,
  25489. // and StartDBCluster actions.
  25490. DBCluster *DBCluster `type:"structure"`
  25491. }
  25492. // String returns the string representation
  25493. func (s PromoteReadReplicaDBClusterOutput) String() string {
  25494. return awsutil.Prettify(s)
  25495. }
  25496. // GoString returns the string representation
  25497. func (s PromoteReadReplicaDBClusterOutput) GoString() string {
  25498. return s.String()
  25499. }
  25500. // SetDBCluster sets the DBCluster field's value.
  25501. func (s *PromoteReadReplicaDBClusterOutput) SetDBCluster(v *DBCluster) *PromoteReadReplicaDBClusterOutput {
  25502. s.DBCluster = v
  25503. return s
  25504. }
  25505. type PromoteReadReplicaInput struct {
  25506. _ struct{} `type:"structure"`
  25507. // The number of days to retain automated backups. Setting this parameter to
  25508. // a positive number enables backups. Setting this parameter to 0 disables automated
  25509. // backups.
  25510. //
  25511. // Default: 1
  25512. //
  25513. // Constraints:
  25514. //
  25515. // * Must be a value from 0 to 8
  25516. BackupRetentionPeriod *int64 `type:"integer"`
  25517. // The DB instance identifier. This value is stored as a lowercase string.
  25518. //
  25519. // Constraints:
  25520. //
  25521. // * Must match the identifier of an existing Read Replica DB instance.
  25522. //
  25523. // Example: mydbinstance
  25524. //
  25525. // DBInstanceIdentifier is a required field
  25526. DBInstanceIdentifier *string `type:"string" required:"true"`
  25527. // The daily time range during which automated backups are created if automated
  25528. // backups are enabled, using the BackupRetentionPeriod parameter.
  25529. //
  25530. // The default is a 30-minute window selected at random from an 8-hour block
  25531. // of time for each AWS Region. To see the time blocks available, see Adjusting
  25532. // the Preferred Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/AdjustingTheMaintenanceWindow.html)
  25533. // in the Amazon RDS User Guide.
  25534. //
  25535. // Constraints:
  25536. //
  25537. // * Must be in the format hh24:mi-hh24:mi.
  25538. //
  25539. // * Must be in Universal Coordinated Time (UTC).
  25540. //
  25541. // * Must not conflict with the preferred maintenance window.
  25542. //
  25543. // * Must be at least 30 minutes.
  25544. PreferredBackupWindow *string `type:"string"`
  25545. }
  25546. // String returns the string representation
  25547. func (s PromoteReadReplicaInput) String() string {
  25548. return awsutil.Prettify(s)
  25549. }
  25550. // GoString returns the string representation
  25551. func (s PromoteReadReplicaInput) GoString() string {
  25552. return s.String()
  25553. }
  25554. // Validate inspects the fields of the type to determine if they are valid.
  25555. func (s *PromoteReadReplicaInput) Validate() error {
  25556. invalidParams := request.ErrInvalidParams{Context: "PromoteReadReplicaInput"}
  25557. if s.DBInstanceIdentifier == nil {
  25558. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  25559. }
  25560. if invalidParams.Len() > 0 {
  25561. return invalidParams
  25562. }
  25563. return nil
  25564. }
  25565. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  25566. func (s *PromoteReadReplicaInput) SetBackupRetentionPeriod(v int64) *PromoteReadReplicaInput {
  25567. s.BackupRetentionPeriod = &v
  25568. return s
  25569. }
  25570. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  25571. func (s *PromoteReadReplicaInput) SetDBInstanceIdentifier(v string) *PromoteReadReplicaInput {
  25572. s.DBInstanceIdentifier = &v
  25573. return s
  25574. }
  25575. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  25576. func (s *PromoteReadReplicaInput) SetPreferredBackupWindow(v string) *PromoteReadReplicaInput {
  25577. s.PreferredBackupWindow = &v
  25578. return s
  25579. }
  25580. type PromoteReadReplicaOutput struct {
  25581. _ struct{} `type:"structure"`
  25582. // Contains the details of an Amazon RDS DB instance.
  25583. //
  25584. // This data type is used as a response element in the DescribeDBInstances action.
  25585. DBInstance *DBInstance `type:"structure"`
  25586. }
  25587. // String returns the string representation
  25588. func (s PromoteReadReplicaOutput) String() string {
  25589. return awsutil.Prettify(s)
  25590. }
  25591. // GoString returns the string representation
  25592. func (s PromoteReadReplicaOutput) GoString() string {
  25593. return s.String()
  25594. }
  25595. // SetDBInstance sets the DBInstance field's value.
  25596. func (s *PromoteReadReplicaOutput) SetDBInstance(v *DBInstance) *PromoteReadReplicaOutput {
  25597. s.DBInstance = v
  25598. return s
  25599. }
  25600. type PurchaseReservedDBInstancesOfferingInput struct {
  25601. _ struct{} `type:"structure"`
  25602. // The number of instances to reserve.
  25603. //
  25604. // Default: 1
  25605. DBInstanceCount *int64 `type:"integer"`
  25606. // Customer-specified identifier to track this reservation.
  25607. //
  25608. // Example: myreservationID
  25609. ReservedDBInstanceId *string `type:"string"`
  25610. // The ID of the Reserved DB instance offering to purchase.
  25611. //
  25612. // Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
  25613. //
  25614. // ReservedDBInstancesOfferingId is a required field
  25615. ReservedDBInstancesOfferingId *string `type:"string" required:"true"`
  25616. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  25617. // in the Amazon RDS User Guide.
  25618. Tags []*Tag `locationNameList:"Tag" type:"list"`
  25619. }
  25620. // String returns the string representation
  25621. func (s PurchaseReservedDBInstancesOfferingInput) String() string {
  25622. return awsutil.Prettify(s)
  25623. }
  25624. // GoString returns the string representation
  25625. func (s PurchaseReservedDBInstancesOfferingInput) GoString() string {
  25626. return s.String()
  25627. }
  25628. // Validate inspects the fields of the type to determine if they are valid.
  25629. func (s *PurchaseReservedDBInstancesOfferingInput) Validate() error {
  25630. invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedDBInstancesOfferingInput"}
  25631. if s.ReservedDBInstancesOfferingId == nil {
  25632. invalidParams.Add(request.NewErrParamRequired("ReservedDBInstancesOfferingId"))
  25633. }
  25634. if invalidParams.Len() > 0 {
  25635. return invalidParams
  25636. }
  25637. return nil
  25638. }
  25639. // SetDBInstanceCount sets the DBInstanceCount field's value.
  25640. func (s *PurchaseReservedDBInstancesOfferingInput) SetDBInstanceCount(v int64) *PurchaseReservedDBInstancesOfferingInput {
  25641. s.DBInstanceCount = &v
  25642. return s
  25643. }
  25644. // SetReservedDBInstanceId sets the ReservedDBInstanceId field's value.
  25645. func (s *PurchaseReservedDBInstancesOfferingInput) SetReservedDBInstanceId(v string) *PurchaseReservedDBInstancesOfferingInput {
  25646. s.ReservedDBInstanceId = &v
  25647. return s
  25648. }
  25649. // SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value.
  25650. func (s *PurchaseReservedDBInstancesOfferingInput) SetReservedDBInstancesOfferingId(v string) *PurchaseReservedDBInstancesOfferingInput {
  25651. s.ReservedDBInstancesOfferingId = &v
  25652. return s
  25653. }
  25654. // SetTags sets the Tags field's value.
  25655. func (s *PurchaseReservedDBInstancesOfferingInput) SetTags(v []*Tag) *PurchaseReservedDBInstancesOfferingInput {
  25656. s.Tags = v
  25657. return s
  25658. }
  25659. type PurchaseReservedDBInstancesOfferingOutput struct {
  25660. _ struct{} `type:"structure"`
  25661. // This data type is used as a response element in the DescribeReservedDBInstances
  25662. // and PurchaseReservedDBInstancesOffering actions.
  25663. ReservedDBInstance *ReservedDBInstance `type:"structure"`
  25664. }
  25665. // String returns the string representation
  25666. func (s PurchaseReservedDBInstancesOfferingOutput) String() string {
  25667. return awsutil.Prettify(s)
  25668. }
  25669. // GoString returns the string representation
  25670. func (s PurchaseReservedDBInstancesOfferingOutput) GoString() string {
  25671. return s.String()
  25672. }
  25673. // SetReservedDBInstance sets the ReservedDBInstance field's value.
  25674. func (s *PurchaseReservedDBInstancesOfferingOutput) SetReservedDBInstance(v *ReservedDBInstance) *PurchaseReservedDBInstancesOfferingOutput {
  25675. s.ReservedDBInstance = v
  25676. return s
  25677. }
  25678. // A range of integer values.
  25679. type Range struct {
  25680. _ struct{} `type:"structure"`
  25681. // The minimum value in the range.
  25682. From *int64 `type:"integer"`
  25683. // The step value for the range. For example, if you have a range of 5,000 to
  25684. // 10,000, with a step value of 1,000, the valid values start at 5,000 and step
  25685. // up by 1,000. Even though 7,500 is within the range, it isn't a valid value
  25686. // for the range. The valid values are 5,000, 6,000, 7,000, 8,000...
  25687. Step *int64 `type:"integer"`
  25688. // The maximum value in the range.
  25689. To *int64 `type:"integer"`
  25690. }
  25691. // String returns the string representation
  25692. func (s Range) String() string {
  25693. return awsutil.Prettify(s)
  25694. }
  25695. // GoString returns the string representation
  25696. func (s Range) GoString() string {
  25697. return s.String()
  25698. }
  25699. // SetFrom sets the From field's value.
  25700. func (s *Range) SetFrom(v int64) *Range {
  25701. s.From = &v
  25702. return s
  25703. }
  25704. // SetStep sets the Step field's value.
  25705. func (s *Range) SetStep(v int64) *Range {
  25706. s.Step = &v
  25707. return s
  25708. }
  25709. // SetTo sets the To field's value.
  25710. func (s *Range) SetTo(v int64) *Range {
  25711. s.To = &v
  25712. return s
  25713. }
  25714. type RebootDBInstanceInput struct {
  25715. _ struct{} `type:"structure"`
  25716. // The DB instance identifier. This parameter is stored as a lowercase string.
  25717. //
  25718. // Constraints:
  25719. //
  25720. // * Must match the identifier of an existing DBInstance.
  25721. //
  25722. // DBInstanceIdentifier is a required field
  25723. DBInstanceIdentifier *string `type:"string" required:"true"`
  25724. // When true, the reboot is conducted through a MultiAZ failover.
  25725. //
  25726. // Constraint: You can't specify true if the instance is not configured for
  25727. // MultiAZ.
  25728. ForceFailover *bool `type:"boolean"`
  25729. }
  25730. // String returns the string representation
  25731. func (s RebootDBInstanceInput) String() string {
  25732. return awsutil.Prettify(s)
  25733. }
  25734. // GoString returns the string representation
  25735. func (s RebootDBInstanceInput) GoString() string {
  25736. return s.String()
  25737. }
  25738. // Validate inspects the fields of the type to determine if they are valid.
  25739. func (s *RebootDBInstanceInput) Validate() error {
  25740. invalidParams := request.ErrInvalidParams{Context: "RebootDBInstanceInput"}
  25741. if s.DBInstanceIdentifier == nil {
  25742. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  25743. }
  25744. if invalidParams.Len() > 0 {
  25745. return invalidParams
  25746. }
  25747. return nil
  25748. }
  25749. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  25750. func (s *RebootDBInstanceInput) SetDBInstanceIdentifier(v string) *RebootDBInstanceInput {
  25751. s.DBInstanceIdentifier = &v
  25752. return s
  25753. }
  25754. // SetForceFailover sets the ForceFailover field's value.
  25755. func (s *RebootDBInstanceInput) SetForceFailover(v bool) *RebootDBInstanceInput {
  25756. s.ForceFailover = &v
  25757. return s
  25758. }
  25759. type RebootDBInstanceOutput struct {
  25760. _ struct{} `type:"structure"`
  25761. // Contains the details of an Amazon RDS DB instance.
  25762. //
  25763. // This data type is used as a response element in the DescribeDBInstances action.
  25764. DBInstance *DBInstance `type:"structure"`
  25765. }
  25766. // String returns the string representation
  25767. func (s RebootDBInstanceOutput) String() string {
  25768. return awsutil.Prettify(s)
  25769. }
  25770. // GoString returns the string representation
  25771. func (s RebootDBInstanceOutput) GoString() string {
  25772. return s.String()
  25773. }
  25774. // SetDBInstance sets the DBInstance field's value.
  25775. func (s *RebootDBInstanceOutput) SetDBInstance(v *DBInstance) *RebootDBInstanceOutput {
  25776. s.DBInstance = v
  25777. return s
  25778. }
  25779. // This data type is used as a response element in the DescribeReservedDBInstances
  25780. // and DescribeReservedDBInstancesOfferings actions.
  25781. type RecurringCharge struct {
  25782. _ struct{} `type:"structure"`
  25783. // The amount of the recurring charge.
  25784. RecurringChargeAmount *float64 `type:"double"`
  25785. // The frequency of the recurring charge.
  25786. RecurringChargeFrequency *string `type:"string"`
  25787. }
  25788. // String returns the string representation
  25789. func (s RecurringCharge) String() string {
  25790. return awsutil.Prettify(s)
  25791. }
  25792. // GoString returns the string representation
  25793. func (s RecurringCharge) GoString() string {
  25794. return s.String()
  25795. }
  25796. // SetRecurringChargeAmount sets the RecurringChargeAmount field's value.
  25797. func (s *RecurringCharge) SetRecurringChargeAmount(v float64) *RecurringCharge {
  25798. s.RecurringChargeAmount = &v
  25799. return s
  25800. }
  25801. // SetRecurringChargeFrequency sets the RecurringChargeFrequency field's value.
  25802. func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge {
  25803. s.RecurringChargeFrequency = &v
  25804. return s
  25805. }
  25806. type RemoveFromGlobalClusterInput struct {
  25807. _ struct{} `type:"structure"`
  25808. // The Amazon Resource Name (ARN) identifying the cluster that was detached
  25809. // from the Aurora global database cluster.
  25810. DbClusterIdentifier *string `type:"string"`
  25811. // The cluster identifier to detach from the Aurora global database cluster.
  25812. GlobalClusterIdentifier *string `type:"string"`
  25813. }
  25814. // String returns the string representation
  25815. func (s RemoveFromGlobalClusterInput) String() string {
  25816. return awsutil.Prettify(s)
  25817. }
  25818. // GoString returns the string representation
  25819. func (s RemoveFromGlobalClusterInput) GoString() string {
  25820. return s.String()
  25821. }
  25822. // SetDbClusterIdentifier sets the DbClusterIdentifier field's value.
  25823. func (s *RemoveFromGlobalClusterInput) SetDbClusterIdentifier(v string) *RemoveFromGlobalClusterInput {
  25824. s.DbClusterIdentifier = &v
  25825. return s
  25826. }
  25827. // SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value.
  25828. func (s *RemoveFromGlobalClusterInput) SetGlobalClusterIdentifier(v string) *RemoveFromGlobalClusterInput {
  25829. s.GlobalClusterIdentifier = &v
  25830. return s
  25831. }
  25832. type RemoveFromGlobalClusterOutput struct {
  25833. _ struct{} `type:"structure"`
  25834. // A data type representing an Aurora global database.
  25835. GlobalCluster *GlobalCluster `type:"structure"`
  25836. }
  25837. // String returns the string representation
  25838. func (s RemoveFromGlobalClusterOutput) String() string {
  25839. return awsutil.Prettify(s)
  25840. }
  25841. // GoString returns the string representation
  25842. func (s RemoveFromGlobalClusterOutput) GoString() string {
  25843. return s.String()
  25844. }
  25845. // SetGlobalCluster sets the GlobalCluster field's value.
  25846. func (s *RemoveFromGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *RemoveFromGlobalClusterOutput {
  25847. s.GlobalCluster = v
  25848. return s
  25849. }
  25850. type RemoveRoleFromDBClusterInput struct {
  25851. _ struct{} `type:"structure"`
  25852. // The name of the DB cluster to disassociate the IAM role from.
  25853. //
  25854. // DBClusterIdentifier is a required field
  25855. DBClusterIdentifier *string `type:"string" required:"true"`
  25856. // The Amazon Resource Name (ARN) of the IAM role to disassociate from the Aurora
  25857. // DB cluster, for example arn:aws:iam::123456789012:role/AuroraAccessRole.
  25858. //
  25859. // RoleArn is a required field
  25860. RoleArn *string `type:"string" required:"true"`
  25861. }
  25862. // String returns the string representation
  25863. func (s RemoveRoleFromDBClusterInput) String() string {
  25864. return awsutil.Prettify(s)
  25865. }
  25866. // GoString returns the string representation
  25867. func (s RemoveRoleFromDBClusterInput) GoString() string {
  25868. return s.String()
  25869. }
  25870. // Validate inspects the fields of the type to determine if they are valid.
  25871. func (s *RemoveRoleFromDBClusterInput) Validate() error {
  25872. invalidParams := request.ErrInvalidParams{Context: "RemoveRoleFromDBClusterInput"}
  25873. if s.DBClusterIdentifier == nil {
  25874. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  25875. }
  25876. if s.RoleArn == nil {
  25877. invalidParams.Add(request.NewErrParamRequired("RoleArn"))
  25878. }
  25879. if invalidParams.Len() > 0 {
  25880. return invalidParams
  25881. }
  25882. return nil
  25883. }
  25884. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  25885. func (s *RemoveRoleFromDBClusterInput) SetDBClusterIdentifier(v string) *RemoveRoleFromDBClusterInput {
  25886. s.DBClusterIdentifier = &v
  25887. return s
  25888. }
  25889. // SetRoleArn sets the RoleArn field's value.
  25890. func (s *RemoveRoleFromDBClusterInput) SetRoleArn(v string) *RemoveRoleFromDBClusterInput {
  25891. s.RoleArn = &v
  25892. return s
  25893. }
  25894. type RemoveRoleFromDBClusterOutput struct {
  25895. _ struct{} `type:"structure"`
  25896. }
  25897. // String returns the string representation
  25898. func (s RemoveRoleFromDBClusterOutput) String() string {
  25899. return awsutil.Prettify(s)
  25900. }
  25901. // GoString returns the string representation
  25902. func (s RemoveRoleFromDBClusterOutput) GoString() string {
  25903. return s.String()
  25904. }
  25905. type RemoveSourceIdentifierFromSubscriptionInput struct {
  25906. _ struct{} `type:"structure"`
  25907. // The source identifier to be removed from the subscription, such as the DB
  25908. // instance identifier for a DB instance or the name of a security group.
  25909. //
  25910. // SourceIdentifier is a required field
  25911. SourceIdentifier *string `type:"string" required:"true"`
  25912. // The name of the RDS event notification subscription you want to remove a
  25913. // source identifier from.
  25914. //
  25915. // SubscriptionName is a required field
  25916. SubscriptionName *string `type:"string" required:"true"`
  25917. }
  25918. // String returns the string representation
  25919. func (s RemoveSourceIdentifierFromSubscriptionInput) String() string {
  25920. return awsutil.Prettify(s)
  25921. }
  25922. // GoString returns the string representation
  25923. func (s RemoveSourceIdentifierFromSubscriptionInput) GoString() string {
  25924. return s.String()
  25925. }
  25926. // Validate inspects the fields of the type to determine if they are valid.
  25927. func (s *RemoveSourceIdentifierFromSubscriptionInput) Validate() error {
  25928. invalidParams := request.ErrInvalidParams{Context: "RemoveSourceIdentifierFromSubscriptionInput"}
  25929. if s.SourceIdentifier == nil {
  25930. invalidParams.Add(request.NewErrParamRequired("SourceIdentifier"))
  25931. }
  25932. if s.SubscriptionName == nil {
  25933. invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
  25934. }
  25935. if invalidParams.Len() > 0 {
  25936. return invalidParams
  25937. }
  25938. return nil
  25939. }
  25940. // SetSourceIdentifier sets the SourceIdentifier field's value.
  25941. func (s *RemoveSourceIdentifierFromSubscriptionInput) SetSourceIdentifier(v string) *RemoveSourceIdentifierFromSubscriptionInput {
  25942. s.SourceIdentifier = &v
  25943. return s
  25944. }
  25945. // SetSubscriptionName sets the SubscriptionName field's value.
  25946. func (s *RemoveSourceIdentifierFromSubscriptionInput) SetSubscriptionName(v string) *RemoveSourceIdentifierFromSubscriptionInput {
  25947. s.SubscriptionName = &v
  25948. return s
  25949. }
  25950. type RemoveSourceIdentifierFromSubscriptionOutput struct {
  25951. _ struct{} `type:"structure"`
  25952. // Contains the results of a successful invocation of the DescribeEventSubscriptions
  25953. // action.
  25954. EventSubscription *EventSubscription `type:"structure"`
  25955. }
  25956. // String returns the string representation
  25957. func (s RemoveSourceIdentifierFromSubscriptionOutput) String() string {
  25958. return awsutil.Prettify(s)
  25959. }
  25960. // GoString returns the string representation
  25961. func (s RemoveSourceIdentifierFromSubscriptionOutput) GoString() string {
  25962. return s.String()
  25963. }
  25964. // SetEventSubscription sets the EventSubscription field's value.
  25965. func (s *RemoveSourceIdentifierFromSubscriptionOutput) SetEventSubscription(v *EventSubscription) *RemoveSourceIdentifierFromSubscriptionOutput {
  25966. s.EventSubscription = v
  25967. return s
  25968. }
  25969. type RemoveTagsFromResourceInput struct {
  25970. _ struct{} `type:"structure"`
  25971. // The Amazon RDS resource that the tags are removed from. This value is an
  25972. // Amazon Resource Name (ARN). For information about creating an ARN, see Constructing
  25973. // an ARN for Amazon RDS (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.ARN.html#USER_Tagging.ARN.Constructing)
  25974. // in the Amazon RDS User Guide.
  25975. //
  25976. // ResourceName is a required field
  25977. ResourceName *string `type:"string" required:"true"`
  25978. // The tag key (name) of the tag to be removed.
  25979. //
  25980. // TagKeys is a required field
  25981. TagKeys []*string `type:"list" required:"true"`
  25982. }
  25983. // String returns the string representation
  25984. func (s RemoveTagsFromResourceInput) String() string {
  25985. return awsutil.Prettify(s)
  25986. }
  25987. // GoString returns the string representation
  25988. func (s RemoveTagsFromResourceInput) GoString() string {
  25989. return s.String()
  25990. }
  25991. // Validate inspects the fields of the type to determine if they are valid.
  25992. func (s *RemoveTagsFromResourceInput) Validate() error {
  25993. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
  25994. if s.ResourceName == nil {
  25995. invalidParams.Add(request.NewErrParamRequired("ResourceName"))
  25996. }
  25997. if s.TagKeys == nil {
  25998. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  25999. }
  26000. if invalidParams.Len() > 0 {
  26001. return invalidParams
  26002. }
  26003. return nil
  26004. }
  26005. // SetResourceName sets the ResourceName field's value.
  26006. func (s *RemoveTagsFromResourceInput) SetResourceName(v string) *RemoveTagsFromResourceInput {
  26007. s.ResourceName = &v
  26008. return s
  26009. }
  26010. // SetTagKeys sets the TagKeys field's value.
  26011. func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput {
  26012. s.TagKeys = v
  26013. return s
  26014. }
  26015. type RemoveTagsFromResourceOutput struct {
  26016. _ struct{} `type:"structure"`
  26017. }
  26018. // String returns the string representation
  26019. func (s RemoveTagsFromResourceOutput) String() string {
  26020. return awsutil.Prettify(s)
  26021. }
  26022. // GoString returns the string representation
  26023. func (s RemoveTagsFromResourceOutput) GoString() string {
  26024. return s.String()
  26025. }
  26026. // This data type is used as a response element in the DescribeReservedDBInstances
  26027. // and PurchaseReservedDBInstancesOffering actions.
  26028. type ReservedDBInstance struct {
  26029. _ struct{} `type:"structure"`
  26030. // The currency code for the reserved DB instance.
  26031. CurrencyCode *string `type:"string"`
  26032. // The DB instance class for the reserved DB instance.
  26033. DBInstanceClass *string `type:"string"`
  26034. // The number of reserved DB instances.
  26035. DBInstanceCount *int64 `type:"integer"`
  26036. // The duration of the reservation in seconds.
  26037. Duration *int64 `type:"integer"`
  26038. // The fixed price charged for this reserved DB instance.
  26039. FixedPrice *float64 `type:"double"`
  26040. // Indicates if the reservation applies to Multi-AZ deployments.
  26041. MultiAZ *bool `type:"boolean"`
  26042. // The offering type of this reserved DB instance.
  26043. OfferingType *string `type:"string"`
  26044. // The description of the reserved DB instance.
  26045. ProductDescription *string `type:"string"`
  26046. // The recurring price charged to run this reserved DB instance.
  26047. RecurringCharges []*RecurringCharge `locationNameList:"RecurringCharge" type:"list"`
  26048. // The Amazon Resource Name (ARN) for the reserved DB instance.
  26049. ReservedDBInstanceArn *string `type:"string"`
  26050. // The unique identifier for the reservation.
  26051. ReservedDBInstanceId *string `type:"string"`
  26052. // The offering identifier.
  26053. ReservedDBInstancesOfferingId *string `type:"string"`
  26054. // The time the reservation started.
  26055. StartTime *time.Time `type:"timestamp"`
  26056. // The state of the reserved DB instance.
  26057. State *string `type:"string"`
  26058. // The hourly price charged for this reserved DB instance.
  26059. UsagePrice *float64 `type:"double"`
  26060. }
  26061. // String returns the string representation
  26062. func (s ReservedDBInstance) String() string {
  26063. return awsutil.Prettify(s)
  26064. }
  26065. // GoString returns the string representation
  26066. func (s ReservedDBInstance) GoString() string {
  26067. return s.String()
  26068. }
  26069. // SetCurrencyCode sets the CurrencyCode field's value.
  26070. func (s *ReservedDBInstance) SetCurrencyCode(v string) *ReservedDBInstance {
  26071. s.CurrencyCode = &v
  26072. return s
  26073. }
  26074. // SetDBInstanceClass sets the DBInstanceClass field's value.
  26075. func (s *ReservedDBInstance) SetDBInstanceClass(v string) *ReservedDBInstance {
  26076. s.DBInstanceClass = &v
  26077. return s
  26078. }
  26079. // SetDBInstanceCount sets the DBInstanceCount field's value.
  26080. func (s *ReservedDBInstance) SetDBInstanceCount(v int64) *ReservedDBInstance {
  26081. s.DBInstanceCount = &v
  26082. return s
  26083. }
  26084. // SetDuration sets the Duration field's value.
  26085. func (s *ReservedDBInstance) SetDuration(v int64) *ReservedDBInstance {
  26086. s.Duration = &v
  26087. return s
  26088. }
  26089. // SetFixedPrice sets the FixedPrice field's value.
  26090. func (s *ReservedDBInstance) SetFixedPrice(v float64) *ReservedDBInstance {
  26091. s.FixedPrice = &v
  26092. return s
  26093. }
  26094. // SetMultiAZ sets the MultiAZ field's value.
  26095. func (s *ReservedDBInstance) SetMultiAZ(v bool) *ReservedDBInstance {
  26096. s.MultiAZ = &v
  26097. return s
  26098. }
  26099. // SetOfferingType sets the OfferingType field's value.
  26100. func (s *ReservedDBInstance) SetOfferingType(v string) *ReservedDBInstance {
  26101. s.OfferingType = &v
  26102. return s
  26103. }
  26104. // SetProductDescription sets the ProductDescription field's value.
  26105. func (s *ReservedDBInstance) SetProductDescription(v string) *ReservedDBInstance {
  26106. s.ProductDescription = &v
  26107. return s
  26108. }
  26109. // SetRecurringCharges sets the RecurringCharges field's value.
  26110. func (s *ReservedDBInstance) SetRecurringCharges(v []*RecurringCharge) *ReservedDBInstance {
  26111. s.RecurringCharges = v
  26112. return s
  26113. }
  26114. // SetReservedDBInstanceArn sets the ReservedDBInstanceArn field's value.
  26115. func (s *ReservedDBInstance) SetReservedDBInstanceArn(v string) *ReservedDBInstance {
  26116. s.ReservedDBInstanceArn = &v
  26117. return s
  26118. }
  26119. // SetReservedDBInstanceId sets the ReservedDBInstanceId field's value.
  26120. func (s *ReservedDBInstance) SetReservedDBInstanceId(v string) *ReservedDBInstance {
  26121. s.ReservedDBInstanceId = &v
  26122. return s
  26123. }
  26124. // SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value.
  26125. func (s *ReservedDBInstance) SetReservedDBInstancesOfferingId(v string) *ReservedDBInstance {
  26126. s.ReservedDBInstancesOfferingId = &v
  26127. return s
  26128. }
  26129. // SetStartTime sets the StartTime field's value.
  26130. func (s *ReservedDBInstance) SetStartTime(v time.Time) *ReservedDBInstance {
  26131. s.StartTime = &v
  26132. return s
  26133. }
  26134. // SetState sets the State field's value.
  26135. func (s *ReservedDBInstance) SetState(v string) *ReservedDBInstance {
  26136. s.State = &v
  26137. return s
  26138. }
  26139. // SetUsagePrice sets the UsagePrice field's value.
  26140. func (s *ReservedDBInstance) SetUsagePrice(v float64) *ReservedDBInstance {
  26141. s.UsagePrice = &v
  26142. return s
  26143. }
  26144. // This data type is used as a response element in the DescribeReservedDBInstancesOfferings
  26145. // action.
  26146. type ReservedDBInstancesOffering struct {
  26147. _ struct{} `type:"structure"`
  26148. // The currency code for the reserved DB instance offering.
  26149. CurrencyCode *string `type:"string"`
  26150. // The DB instance class for the reserved DB instance.
  26151. DBInstanceClass *string `type:"string"`
  26152. // The duration of the offering in seconds.
  26153. Duration *int64 `type:"integer"`
  26154. // The fixed price charged for this offering.
  26155. FixedPrice *float64 `type:"double"`
  26156. // Indicates if the offering applies to Multi-AZ deployments.
  26157. MultiAZ *bool `type:"boolean"`
  26158. // The offering type.
  26159. OfferingType *string `type:"string"`
  26160. // The database engine used by the offering.
  26161. ProductDescription *string `type:"string"`
  26162. // The recurring price charged to run this reserved DB instance.
  26163. RecurringCharges []*RecurringCharge `locationNameList:"RecurringCharge" type:"list"`
  26164. // The offering identifier.
  26165. ReservedDBInstancesOfferingId *string `type:"string"`
  26166. // The hourly price charged for this offering.
  26167. UsagePrice *float64 `type:"double"`
  26168. }
  26169. // String returns the string representation
  26170. func (s ReservedDBInstancesOffering) String() string {
  26171. return awsutil.Prettify(s)
  26172. }
  26173. // GoString returns the string representation
  26174. func (s ReservedDBInstancesOffering) GoString() string {
  26175. return s.String()
  26176. }
  26177. // SetCurrencyCode sets the CurrencyCode field's value.
  26178. func (s *ReservedDBInstancesOffering) SetCurrencyCode(v string) *ReservedDBInstancesOffering {
  26179. s.CurrencyCode = &v
  26180. return s
  26181. }
  26182. // SetDBInstanceClass sets the DBInstanceClass field's value.
  26183. func (s *ReservedDBInstancesOffering) SetDBInstanceClass(v string) *ReservedDBInstancesOffering {
  26184. s.DBInstanceClass = &v
  26185. return s
  26186. }
  26187. // SetDuration sets the Duration field's value.
  26188. func (s *ReservedDBInstancesOffering) SetDuration(v int64) *ReservedDBInstancesOffering {
  26189. s.Duration = &v
  26190. return s
  26191. }
  26192. // SetFixedPrice sets the FixedPrice field's value.
  26193. func (s *ReservedDBInstancesOffering) SetFixedPrice(v float64) *ReservedDBInstancesOffering {
  26194. s.FixedPrice = &v
  26195. return s
  26196. }
  26197. // SetMultiAZ sets the MultiAZ field's value.
  26198. func (s *ReservedDBInstancesOffering) SetMultiAZ(v bool) *ReservedDBInstancesOffering {
  26199. s.MultiAZ = &v
  26200. return s
  26201. }
  26202. // SetOfferingType sets the OfferingType field's value.
  26203. func (s *ReservedDBInstancesOffering) SetOfferingType(v string) *ReservedDBInstancesOffering {
  26204. s.OfferingType = &v
  26205. return s
  26206. }
  26207. // SetProductDescription sets the ProductDescription field's value.
  26208. func (s *ReservedDBInstancesOffering) SetProductDescription(v string) *ReservedDBInstancesOffering {
  26209. s.ProductDescription = &v
  26210. return s
  26211. }
  26212. // SetRecurringCharges sets the RecurringCharges field's value.
  26213. func (s *ReservedDBInstancesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedDBInstancesOffering {
  26214. s.RecurringCharges = v
  26215. return s
  26216. }
  26217. // SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value.
  26218. func (s *ReservedDBInstancesOffering) SetReservedDBInstancesOfferingId(v string) *ReservedDBInstancesOffering {
  26219. s.ReservedDBInstancesOfferingId = &v
  26220. return s
  26221. }
  26222. // SetUsagePrice sets the UsagePrice field's value.
  26223. func (s *ReservedDBInstancesOffering) SetUsagePrice(v float64) *ReservedDBInstancesOffering {
  26224. s.UsagePrice = &v
  26225. return s
  26226. }
  26227. type ResetDBClusterParameterGroupInput struct {
  26228. _ struct{} `type:"structure"`
  26229. // The name of the DB cluster parameter group to reset.
  26230. //
  26231. // DBClusterParameterGroupName is a required field
  26232. DBClusterParameterGroupName *string `type:"string" required:"true"`
  26233. // A list of parameter names in the DB cluster parameter group to reset to the
  26234. // default values. You can't use this parameter if the ResetAllParameters parameter
  26235. // is set to true.
  26236. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  26237. // A value that is set to true to reset all parameters in the DB cluster parameter
  26238. // group to their default values, and false otherwise. You can't use this parameter
  26239. // if there is a list of parameter names specified for the Parameters parameter.
  26240. ResetAllParameters *bool `type:"boolean"`
  26241. }
  26242. // String returns the string representation
  26243. func (s ResetDBClusterParameterGroupInput) String() string {
  26244. return awsutil.Prettify(s)
  26245. }
  26246. // GoString returns the string representation
  26247. func (s ResetDBClusterParameterGroupInput) GoString() string {
  26248. return s.String()
  26249. }
  26250. // Validate inspects the fields of the type to determine if they are valid.
  26251. func (s *ResetDBClusterParameterGroupInput) Validate() error {
  26252. invalidParams := request.ErrInvalidParams{Context: "ResetDBClusterParameterGroupInput"}
  26253. if s.DBClusterParameterGroupName == nil {
  26254. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  26255. }
  26256. if invalidParams.Len() > 0 {
  26257. return invalidParams
  26258. }
  26259. return nil
  26260. }
  26261. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  26262. func (s *ResetDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *ResetDBClusterParameterGroupInput {
  26263. s.DBClusterParameterGroupName = &v
  26264. return s
  26265. }
  26266. // SetParameters sets the Parameters field's value.
  26267. func (s *ResetDBClusterParameterGroupInput) SetParameters(v []*Parameter) *ResetDBClusterParameterGroupInput {
  26268. s.Parameters = v
  26269. return s
  26270. }
  26271. // SetResetAllParameters sets the ResetAllParameters field's value.
  26272. func (s *ResetDBClusterParameterGroupInput) SetResetAllParameters(v bool) *ResetDBClusterParameterGroupInput {
  26273. s.ResetAllParameters = &v
  26274. return s
  26275. }
  26276. type ResetDBParameterGroupInput struct {
  26277. _ struct{} `type:"structure"`
  26278. // The name of the DB parameter group.
  26279. //
  26280. // Constraints:
  26281. //
  26282. // * Must match the name of an existing DBParameterGroup.
  26283. //
  26284. // DBParameterGroupName is a required field
  26285. DBParameterGroupName *string `type:"string" required:"true"`
  26286. // To reset the entire DB parameter group, specify the DBParameterGroup name
  26287. // and ResetAllParameters parameters. To reset specific parameters, provide
  26288. // a list of the following: ParameterName and ApplyMethod. A maximum of 20 parameters
  26289. // can be modified in a single request.
  26290. //
  26291. // MySQL
  26292. //
  26293. // Valid Values (for Apply method): immediate | pending-reboot
  26294. //
  26295. // You can use the immediate value with dynamic parameters only. You can use
  26296. // the pending-reboot value for both dynamic and static parameters, and changes
  26297. // are applied when DB instance reboots.
  26298. //
  26299. // MariaDB
  26300. //
  26301. // Valid Values (for Apply method): immediate | pending-reboot
  26302. //
  26303. // You can use the immediate value with dynamic parameters only. You can use
  26304. // the pending-reboot value for both dynamic and static parameters, and changes
  26305. // are applied when DB instance reboots.
  26306. //
  26307. // Oracle
  26308. //
  26309. // Valid Values (for Apply method): pending-reboot
  26310. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  26311. // Specifies whether (true) or not (false) to reset all parameters in the DB
  26312. // parameter group to default values.
  26313. //
  26314. // Default: true
  26315. ResetAllParameters *bool `type:"boolean"`
  26316. }
  26317. // String returns the string representation
  26318. func (s ResetDBParameterGroupInput) String() string {
  26319. return awsutil.Prettify(s)
  26320. }
  26321. // GoString returns the string representation
  26322. func (s ResetDBParameterGroupInput) GoString() string {
  26323. return s.String()
  26324. }
  26325. // Validate inspects the fields of the type to determine if they are valid.
  26326. func (s *ResetDBParameterGroupInput) Validate() error {
  26327. invalidParams := request.ErrInvalidParams{Context: "ResetDBParameterGroupInput"}
  26328. if s.DBParameterGroupName == nil {
  26329. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupName"))
  26330. }
  26331. if invalidParams.Len() > 0 {
  26332. return invalidParams
  26333. }
  26334. return nil
  26335. }
  26336. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  26337. func (s *ResetDBParameterGroupInput) SetDBParameterGroupName(v string) *ResetDBParameterGroupInput {
  26338. s.DBParameterGroupName = &v
  26339. return s
  26340. }
  26341. // SetParameters sets the Parameters field's value.
  26342. func (s *ResetDBParameterGroupInput) SetParameters(v []*Parameter) *ResetDBParameterGroupInput {
  26343. s.Parameters = v
  26344. return s
  26345. }
  26346. // SetResetAllParameters sets the ResetAllParameters field's value.
  26347. func (s *ResetDBParameterGroupInput) SetResetAllParameters(v bool) *ResetDBParameterGroupInput {
  26348. s.ResetAllParameters = &v
  26349. return s
  26350. }
  26351. // Describes the pending maintenance actions for a resource.
  26352. type ResourcePendingMaintenanceActions struct {
  26353. _ struct{} `type:"structure"`
  26354. // A list that provides details about the pending maintenance actions for the
  26355. // resource.
  26356. PendingMaintenanceActionDetails []*PendingMaintenanceAction `locationNameList:"PendingMaintenanceAction" type:"list"`
  26357. // The ARN of the resource that has pending maintenance actions.
  26358. ResourceIdentifier *string `type:"string"`
  26359. }
  26360. // String returns the string representation
  26361. func (s ResourcePendingMaintenanceActions) String() string {
  26362. return awsutil.Prettify(s)
  26363. }
  26364. // GoString returns the string representation
  26365. func (s ResourcePendingMaintenanceActions) GoString() string {
  26366. return s.String()
  26367. }
  26368. // SetPendingMaintenanceActionDetails sets the PendingMaintenanceActionDetails field's value.
  26369. func (s *ResourcePendingMaintenanceActions) SetPendingMaintenanceActionDetails(v []*PendingMaintenanceAction) *ResourcePendingMaintenanceActions {
  26370. s.PendingMaintenanceActionDetails = v
  26371. return s
  26372. }
  26373. // SetResourceIdentifier sets the ResourceIdentifier field's value.
  26374. func (s *ResourcePendingMaintenanceActions) SetResourceIdentifier(v string) *ResourcePendingMaintenanceActions {
  26375. s.ResourceIdentifier = &v
  26376. return s
  26377. }
  26378. type RestoreDBClusterFromS3Input struct {
  26379. _ struct{} `type:"structure"`
  26380. // A list of EC2 Availability Zones that instances in the restored DB cluster
  26381. // can be created in.
  26382. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  26383. // The target backtrack window, in seconds. To disable backtracking, set this
  26384. // value to 0.
  26385. //
  26386. // Default: 0
  26387. //
  26388. // Constraints:
  26389. //
  26390. // * If specified, this value must be set to a number from 0 to 259,200 (72
  26391. // hours).
  26392. BacktrackWindow *int64 `type:"long"`
  26393. // The number of days for which automated backups of the restored DB cluster
  26394. // are retained. You must specify a minimum value of 1.
  26395. //
  26396. // Default: 1
  26397. //
  26398. // Constraints:
  26399. //
  26400. // * Must be a value from 1 to 35
  26401. BackupRetentionPeriod *int64 `type:"integer"`
  26402. // A value that indicates that the restored DB cluster should be associated
  26403. // with the specified CharacterSet.
  26404. CharacterSetName *string `type:"string"`
  26405. // The name of the DB cluster to create from the source data in the Amazon S3
  26406. // bucket. This parameter is isn't case-sensitive.
  26407. //
  26408. // Constraints:
  26409. //
  26410. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  26411. //
  26412. // * First character must be a letter.
  26413. //
  26414. // * Can't end with a hyphen or contain two consecutive hyphens.
  26415. //
  26416. // Example: my-cluster1
  26417. //
  26418. // DBClusterIdentifier is a required field
  26419. DBClusterIdentifier *string `type:"string" required:"true"`
  26420. // The name of the DB cluster parameter group to associate with the restored
  26421. // DB cluster. If this argument is omitted, default.aurora5.6 is used.
  26422. //
  26423. // Constraints:
  26424. //
  26425. // * If supplied, must match the name of an existing DBClusterParameterGroup.
  26426. DBClusterParameterGroupName *string `type:"string"`
  26427. // A DB subnet group to associate with the restored DB cluster.
  26428. //
  26429. // Constraints: If supplied, must match the name of an existing DBSubnetGroup.
  26430. //
  26431. // Example: mySubnetgroup
  26432. DBSubnetGroupName *string `type:"string"`
  26433. // The database name for the restored DB cluster.
  26434. DatabaseName *string `type:"string"`
  26435. // Indicates if the DB cluster should have deletion protection enabled. The
  26436. // database can't be deleted when this value is set to true. The default is
  26437. // false.
  26438. DeletionProtection *bool `type:"boolean"`
  26439. // The list of logs that the restored DB cluster is to export to CloudWatch
  26440. // Logs. The values in the list depend on the DB engine being used. For more
  26441. // information, see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch)
  26442. // in the Amazon Aurora User Guide.
  26443. EnableCloudwatchLogsExports []*string `type:"list"`
  26444. // True to enable mapping of AWS Identity and Access Management (IAM) accounts
  26445. // to database accounts, and otherwise false.
  26446. //
  26447. // Default: false
  26448. EnableIAMDatabaseAuthentication *bool `type:"boolean"`
  26449. // The name of the database engine to be used for the restored DB cluster.
  26450. //
  26451. // Valid Values: aurora, aurora-postgresql
  26452. //
  26453. // Engine is a required field
  26454. Engine *string `type:"string" required:"true"`
  26455. // The version number of the database engine to use.
  26456. //
  26457. // Aurora MySQL
  26458. //
  26459. // Example: 5.6.10a
  26460. //
  26461. // Aurora PostgreSQL
  26462. //
  26463. // Example: 9.6.3
  26464. EngineVersion *string `type:"string"`
  26465. // The AWS KMS key identifier for an encrypted DB cluster.
  26466. //
  26467. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  26468. // key. If you are creating a DB cluster with the same AWS account that owns
  26469. // the KMS encryption key used to encrypt the new DB cluster, then you can use
  26470. // the KMS key alias instead of the ARN for the KM encryption key.
  26471. //
  26472. // If the StorageEncrypted parameter is true, and you do not specify a value
  26473. // for the KmsKeyId parameter, then Amazon RDS will use your default encryption
  26474. // key. AWS KMS creates the default encryption key for your AWS account. Your
  26475. // AWS account has a different default encryption key for each AWS Region.
  26476. KmsKeyId *string `type:"string"`
  26477. // The password for the master database user. This password can contain any
  26478. // printable ASCII character except "/", """, or "@".
  26479. //
  26480. // Constraints: Must contain from 8 to 41 characters.
  26481. //
  26482. // MasterUserPassword is a required field
  26483. MasterUserPassword *string `type:"string" required:"true"`
  26484. // The name of the master user for the restored DB cluster.
  26485. //
  26486. // Constraints:
  26487. //
  26488. // * Must be 1 to 16 letters or numbers.
  26489. //
  26490. // * First character must be a letter.
  26491. //
  26492. // * Can't be a reserved word for the chosen database engine.
  26493. //
  26494. // MasterUsername is a required field
  26495. MasterUsername *string `type:"string" required:"true"`
  26496. // A value that indicates that the restored DB cluster should be associated
  26497. // with the specified option group.
  26498. //
  26499. // Permanent options can't be removed from an option group. An option group
  26500. // can't be removed from a DB cluster once it is associated with a DB cluster.
  26501. OptionGroupName *string `type:"string"`
  26502. // The port number on which the instances in the restored DB cluster accept
  26503. // connections.
  26504. //
  26505. // Default: 3306
  26506. Port *int64 `type:"integer"`
  26507. // The daily time range during which automated backups are created if automated
  26508. // backups are enabled using the BackupRetentionPeriod parameter.
  26509. //
  26510. // The default is a 30-minute window selected at random from an 8-hour block
  26511. // of time for each AWS Region. To see the time blocks available, see Adjusting
  26512. // the Preferred Maintenance Window (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora)
  26513. // in the Amazon Aurora User Guide.
  26514. //
  26515. // Constraints:
  26516. //
  26517. // * Must be in the format hh24:mi-hh24:mi.
  26518. //
  26519. // * Must be in Universal Coordinated Time (UTC).
  26520. //
  26521. // * Must not conflict with the preferred maintenance window.
  26522. //
  26523. // * Must be at least 30 minutes.
  26524. PreferredBackupWindow *string `type:"string"`
  26525. // The weekly time range during which system maintenance can occur, in Universal
  26526. // Coordinated Time (UTC).
  26527. //
  26528. // Format: ddd:hh24:mi-ddd:hh24:mi
  26529. //
  26530. // The default is a 30-minute window selected at random from an 8-hour block
  26531. // of time for each AWS Region, occurring on a random day of the week. To see
  26532. // the time blocks available, see Adjusting the Preferred Maintenance Window
  26533. // (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora)
  26534. // in the Amazon Aurora User Guide.
  26535. //
  26536. // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
  26537. //
  26538. // Constraints: Minimum 30-minute window.
  26539. PreferredMaintenanceWindow *string `type:"string"`
  26540. // The name of the Amazon S3 bucket that contains the data used to create the
  26541. // Amazon Aurora DB cluster.
  26542. //
  26543. // S3BucketName is a required field
  26544. S3BucketName *string `type:"string" required:"true"`
  26545. // The Amazon Resource Name (ARN) of the AWS Identity and Access Management
  26546. // (IAM) role that authorizes Amazon RDS to access the Amazon S3 bucket on your
  26547. // behalf.
  26548. //
  26549. // S3IngestionRoleArn is a required field
  26550. S3IngestionRoleArn *string `type:"string" required:"true"`
  26551. // The prefix for all of the file names that contain the data used to create
  26552. // the Amazon Aurora DB cluster. If you do not specify a SourceS3Prefix value,
  26553. // then the Amazon Aurora DB cluster is created by using all of the files in
  26554. // the Amazon S3 bucket.
  26555. S3Prefix *string `type:"string"`
  26556. // The identifier for the database engine that was backed up to create the files
  26557. // stored in the Amazon S3 bucket.
  26558. //
  26559. // Valid values: mysql
  26560. //
  26561. // SourceEngine is a required field
  26562. SourceEngine *string `type:"string" required:"true"`
  26563. // The version of the database that the backup files were created from.
  26564. //
  26565. // MySQL version 5.5 and 5.6 are supported.
  26566. //
  26567. // Example: 5.6.22
  26568. //
  26569. // SourceEngineVersion is a required field
  26570. SourceEngineVersion *string `type:"string" required:"true"`
  26571. // Specifies whether the restored DB cluster is encrypted.
  26572. StorageEncrypted *bool `type:"boolean"`
  26573. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  26574. // in the Amazon RDS User Guide.
  26575. Tags []*Tag `locationNameList:"Tag" type:"list"`
  26576. // A list of EC2 VPC security groups to associate with the restored DB cluster.
  26577. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  26578. }
  26579. // String returns the string representation
  26580. func (s RestoreDBClusterFromS3Input) String() string {
  26581. return awsutil.Prettify(s)
  26582. }
  26583. // GoString returns the string representation
  26584. func (s RestoreDBClusterFromS3Input) GoString() string {
  26585. return s.String()
  26586. }
  26587. // Validate inspects the fields of the type to determine if they are valid.
  26588. func (s *RestoreDBClusterFromS3Input) Validate() error {
  26589. invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterFromS3Input"}
  26590. if s.DBClusterIdentifier == nil {
  26591. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  26592. }
  26593. if s.Engine == nil {
  26594. invalidParams.Add(request.NewErrParamRequired("Engine"))
  26595. }
  26596. if s.MasterUserPassword == nil {
  26597. invalidParams.Add(request.NewErrParamRequired("MasterUserPassword"))
  26598. }
  26599. if s.MasterUsername == nil {
  26600. invalidParams.Add(request.NewErrParamRequired("MasterUsername"))
  26601. }
  26602. if s.S3BucketName == nil {
  26603. invalidParams.Add(request.NewErrParamRequired("S3BucketName"))
  26604. }
  26605. if s.S3IngestionRoleArn == nil {
  26606. invalidParams.Add(request.NewErrParamRequired("S3IngestionRoleArn"))
  26607. }
  26608. if s.SourceEngine == nil {
  26609. invalidParams.Add(request.NewErrParamRequired("SourceEngine"))
  26610. }
  26611. if s.SourceEngineVersion == nil {
  26612. invalidParams.Add(request.NewErrParamRequired("SourceEngineVersion"))
  26613. }
  26614. if invalidParams.Len() > 0 {
  26615. return invalidParams
  26616. }
  26617. return nil
  26618. }
  26619. // SetAvailabilityZones sets the AvailabilityZones field's value.
  26620. func (s *RestoreDBClusterFromS3Input) SetAvailabilityZones(v []*string) *RestoreDBClusterFromS3Input {
  26621. s.AvailabilityZones = v
  26622. return s
  26623. }
  26624. // SetBacktrackWindow sets the BacktrackWindow field's value.
  26625. func (s *RestoreDBClusterFromS3Input) SetBacktrackWindow(v int64) *RestoreDBClusterFromS3Input {
  26626. s.BacktrackWindow = &v
  26627. return s
  26628. }
  26629. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  26630. func (s *RestoreDBClusterFromS3Input) SetBackupRetentionPeriod(v int64) *RestoreDBClusterFromS3Input {
  26631. s.BackupRetentionPeriod = &v
  26632. return s
  26633. }
  26634. // SetCharacterSetName sets the CharacterSetName field's value.
  26635. func (s *RestoreDBClusterFromS3Input) SetCharacterSetName(v string) *RestoreDBClusterFromS3Input {
  26636. s.CharacterSetName = &v
  26637. return s
  26638. }
  26639. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  26640. func (s *RestoreDBClusterFromS3Input) SetDBClusterIdentifier(v string) *RestoreDBClusterFromS3Input {
  26641. s.DBClusterIdentifier = &v
  26642. return s
  26643. }
  26644. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  26645. func (s *RestoreDBClusterFromS3Input) SetDBClusterParameterGroupName(v string) *RestoreDBClusterFromS3Input {
  26646. s.DBClusterParameterGroupName = &v
  26647. return s
  26648. }
  26649. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  26650. func (s *RestoreDBClusterFromS3Input) SetDBSubnetGroupName(v string) *RestoreDBClusterFromS3Input {
  26651. s.DBSubnetGroupName = &v
  26652. return s
  26653. }
  26654. // SetDatabaseName sets the DatabaseName field's value.
  26655. func (s *RestoreDBClusterFromS3Input) SetDatabaseName(v string) *RestoreDBClusterFromS3Input {
  26656. s.DatabaseName = &v
  26657. return s
  26658. }
  26659. // SetDeletionProtection sets the DeletionProtection field's value.
  26660. func (s *RestoreDBClusterFromS3Input) SetDeletionProtection(v bool) *RestoreDBClusterFromS3Input {
  26661. s.DeletionProtection = &v
  26662. return s
  26663. }
  26664. // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value.
  26665. func (s *RestoreDBClusterFromS3Input) SetEnableCloudwatchLogsExports(v []*string) *RestoreDBClusterFromS3Input {
  26666. s.EnableCloudwatchLogsExports = v
  26667. return s
  26668. }
  26669. // SetEnableIAMDatabaseAuthentication sets the EnableIAMDatabaseAuthentication field's value.
  26670. func (s *RestoreDBClusterFromS3Input) SetEnableIAMDatabaseAuthentication(v bool) *RestoreDBClusterFromS3Input {
  26671. s.EnableIAMDatabaseAuthentication = &v
  26672. return s
  26673. }
  26674. // SetEngine sets the Engine field's value.
  26675. func (s *RestoreDBClusterFromS3Input) SetEngine(v string) *RestoreDBClusterFromS3Input {
  26676. s.Engine = &v
  26677. return s
  26678. }
  26679. // SetEngineVersion sets the EngineVersion field's value.
  26680. func (s *RestoreDBClusterFromS3Input) SetEngineVersion(v string) *RestoreDBClusterFromS3Input {
  26681. s.EngineVersion = &v
  26682. return s
  26683. }
  26684. // SetKmsKeyId sets the KmsKeyId field's value.
  26685. func (s *RestoreDBClusterFromS3Input) SetKmsKeyId(v string) *RestoreDBClusterFromS3Input {
  26686. s.KmsKeyId = &v
  26687. return s
  26688. }
  26689. // SetMasterUserPassword sets the MasterUserPassword field's value.
  26690. func (s *RestoreDBClusterFromS3Input) SetMasterUserPassword(v string) *RestoreDBClusterFromS3Input {
  26691. s.MasterUserPassword = &v
  26692. return s
  26693. }
  26694. // SetMasterUsername sets the MasterUsername field's value.
  26695. func (s *RestoreDBClusterFromS3Input) SetMasterUsername(v string) *RestoreDBClusterFromS3Input {
  26696. s.MasterUsername = &v
  26697. return s
  26698. }
  26699. // SetOptionGroupName sets the OptionGroupName field's value.
  26700. func (s *RestoreDBClusterFromS3Input) SetOptionGroupName(v string) *RestoreDBClusterFromS3Input {
  26701. s.OptionGroupName = &v
  26702. return s
  26703. }
  26704. // SetPort sets the Port field's value.
  26705. func (s *RestoreDBClusterFromS3Input) SetPort(v int64) *RestoreDBClusterFromS3Input {
  26706. s.Port = &v
  26707. return s
  26708. }
  26709. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  26710. func (s *RestoreDBClusterFromS3Input) SetPreferredBackupWindow(v string) *RestoreDBClusterFromS3Input {
  26711. s.PreferredBackupWindow = &v
  26712. return s
  26713. }
  26714. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  26715. func (s *RestoreDBClusterFromS3Input) SetPreferredMaintenanceWindow(v string) *RestoreDBClusterFromS3Input {
  26716. s.PreferredMaintenanceWindow = &v
  26717. return s
  26718. }
  26719. // SetS3BucketName sets the S3BucketName field's value.
  26720. func (s *RestoreDBClusterFromS3Input) SetS3BucketName(v string) *RestoreDBClusterFromS3Input {
  26721. s.S3BucketName = &v
  26722. return s
  26723. }
  26724. // SetS3IngestionRoleArn sets the S3IngestionRoleArn field's value.
  26725. func (s *RestoreDBClusterFromS3Input) SetS3IngestionRoleArn(v string) *RestoreDBClusterFromS3Input {
  26726. s.S3IngestionRoleArn = &v
  26727. return s
  26728. }
  26729. // SetS3Prefix sets the S3Prefix field's value.
  26730. func (s *RestoreDBClusterFromS3Input) SetS3Prefix(v string) *RestoreDBClusterFromS3Input {
  26731. s.S3Prefix = &v
  26732. return s
  26733. }
  26734. // SetSourceEngine sets the SourceEngine field's value.
  26735. func (s *RestoreDBClusterFromS3Input) SetSourceEngine(v string) *RestoreDBClusterFromS3Input {
  26736. s.SourceEngine = &v
  26737. return s
  26738. }
  26739. // SetSourceEngineVersion sets the SourceEngineVersion field's value.
  26740. func (s *RestoreDBClusterFromS3Input) SetSourceEngineVersion(v string) *RestoreDBClusterFromS3Input {
  26741. s.SourceEngineVersion = &v
  26742. return s
  26743. }
  26744. // SetStorageEncrypted sets the StorageEncrypted field's value.
  26745. func (s *RestoreDBClusterFromS3Input) SetStorageEncrypted(v bool) *RestoreDBClusterFromS3Input {
  26746. s.StorageEncrypted = &v
  26747. return s
  26748. }
  26749. // SetTags sets the Tags field's value.
  26750. func (s *RestoreDBClusterFromS3Input) SetTags(v []*Tag) *RestoreDBClusterFromS3Input {
  26751. s.Tags = v
  26752. return s
  26753. }
  26754. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  26755. func (s *RestoreDBClusterFromS3Input) SetVpcSecurityGroupIds(v []*string) *RestoreDBClusterFromS3Input {
  26756. s.VpcSecurityGroupIds = v
  26757. return s
  26758. }
  26759. type RestoreDBClusterFromS3Output struct {
  26760. _ struct{} `type:"structure"`
  26761. // Contains the details of an Amazon Aurora DB cluster.
  26762. //
  26763. // This data type is used as a response element in the DescribeDBClusters, StopDBCluster,
  26764. // and StartDBCluster actions.
  26765. DBCluster *DBCluster `type:"structure"`
  26766. }
  26767. // String returns the string representation
  26768. func (s RestoreDBClusterFromS3Output) String() string {
  26769. return awsutil.Prettify(s)
  26770. }
  26771. // GoString returns the string representation
  26772. func (s RestoreDBClusterFromS3Output) GoString() string {
  26773. return s.String()
  26774. }
  26775. // SetDBCluster sets the DBCluster field's value.
  26776. func (s *RestoreDBClusterFromS3Output) SetDBCluster(v *DBCluster) *RestoreDBClusterFromS3Output {
  26777. s.DBCluster = v
  26778. return s
  26779. }
  26780. type RestoreDBClusterFromSnapshotInput struct {
  26781. _ struct{} `type:"structure"`
  26782. // Provides the list of Amazon EC2 Availability Zones that instances in the
  26783. // restored DB cluster can be created in.
  26784. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  26785. // The target backtrack window, in seconds. To disable backtracking, set this
  26786. // value to 0.
  26787. //
  26788. // Default: 0
  26789. //
  26790. // Constraints:
  26791. //
  26792. // * If specified, this value must be set to a number from 0 to 259,200 (72
  26793. // hours).
  26794. BacktrackWindow *int64 `type:"long"`
  26795. // The name of the DB cluster to create from the DB snapshot or DB cluster snapshot.
  26796. // This parameter isn't case-sensitive.
  26797. //
  26798. // Constraints:
  26799. //
  26800. // * Must contain from 1 to 63 letters, numbers, or hyphens
  26801. //
  26802. // * First character must be a letter
  26803. //
  26804. // * Can't end with a hyphen or contain two consecutive hyphens
  26805. //
  26806. // Example: my-snapshot-id
  26807. //
  26808. // DBClusterIdentifier is a required field
  26809. DBClusterIdentifier *string `type:"string" required:"true"`
  26810. // The name of the DB cluster parameter group to associate with this DB cluster.
  26811. // If this argument is omitted, the default DB cluster parameter group for the
  26812. // specified engine is used.
  26813. //
  26814. // Constraints:
  26815. //
  26816. // * If supplied, must match the name of an existing default DB cluster parameter
  26817. // group.
  26818. //
  26819. // * Must be 1 to 255 letters, numbers, or hyphens.
  26820. //
  26821. // * First character must be a letter.
  26822. //
  26823. // * Can't end with a hyphen or contain two consecutive hyphens.
  26824. DBClusterParameterGroupName *string `type:"string"`
  26825. // The name of the DB subnet group to use for the new DB cluster.
  26826. //
  26827. // Constraints: If supplied, must match the name of an existing DB subnet group.
  26828. //
  26829. // Example: mySubnetgroup
  26830. DBSubnetGroupName *string `type:"string"`
  26831. // The database name for the restored DB cluster.
  26832. DatabaseName *string `type:"string"`
  26833. // Indicates if the DB cluster should have deletion protection enabled. The
  26834. // database can't be deleted when this value is set to true. The default is
  26835. // false.
  26836. DeletionProtection *bool `type:"boolean"`
  26837. // The list of logs that the restored DB cluster is to export to Amazon CloudWatch
  26838. // Logs. The values in the list depend on the DB engine being used. For more
  26839. // information, see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch)
  26840. // in the Amazon Aurora User Guide.
  26841. EnableCloudwatchLogsExports []*string `type:"list"`
  26842. // True to enable mapping of AWS Identity and Access Management (IAM) accounts
  26843. // to database accounts, and otherwise false.
  26844. //
  26845. // Default: false
  26846. EnableIAMDatabaseAuthentication *bool `type:"boolean"`
  26847. // The database engine to use for the new DB cluster.
  26848. //
  26849. // Default: The same as source
  26850. //
  26851. // Constraint: Must be compatible with the engine of the source
  26852. //
  26853. // Engine is a required field
  26854. Engine *string `type:"string" required:"true"`
  26855. // The DB engine mode of the DB cluster, either provisioned, serverless, or
  26856. // parallelquery.
  26857. EngineMode *string `type:"string"`
  26858. // The version of the database engine to use for the new DB cluster.
  26859. EngineVersion *string `type:"string"`
  26860. // The AWS KMS key identifier to use when restoring an encrypted DB cluster
  26861. // from a DB snapshot or DB cluster snapshot.
  26862. //
  26863. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  26864. // key. If you are restoring a DB cluster with the same AWS account that owns
  26865. // the KMS encryption key used to encrypt the new DB cluster, then you can use
  26866. // the KMS key alias instead of the ARN for the KMS encryption key.
  26867. //
  26868. // If you don't specify a value for the KmsKeyId parameter, then the following
  26869. // occurs:
  26870. //
  26871. // * If the DB snapshot or DB cluster snapshot in SnapshotIdentifier is encrypted,
  26872. // then the restored DB cluster is encrypted using the KMS key that was used
  26873. // to encrypt the DB snapshot or DB cluster snapshot.
  26874. //
  26875. // * If the DB snapshot or DB cluster snapshot in SnapshotIdentifier is not
  26876. // encrypted, then the restored DB cluster is not encrypted.
  26877. KmsKeyId *string `type:"string"`
  26878. // The name of the option group to use for the restored DB cluster.
  26879. OptionGroupName *string `type:"string"`
  26880. // The port number on which the new DB cluster accepts connections.
  26881. //
  26882. // Constraints: This value must be 1150-65535
  26883. //
  26884. // Default: The same port as the original DB cluster.
  26885. Port *int64 `type:"integer"`
  26886. // For DB clusters in serverless DB engine mode, the scaling properties of the
  26887. // DB cluster.
  26888. ScalingConfiguration *ScalingConfiguration `type:"structure"`
  26889. // The identifier for the DB snapshot or DB cluster snapshot to restore from.
  26890. //
  26891. // You can use either the name or the Amazon Resource Name (ARN) to specify
  26892. // a DB cluster snapshot. However, you can use only the ARN to specify a DB
  26893. // snapshot.
  26894. //
  26895. // Constraints:
  26896. //
  26897. // * Must match the identifier of an existing Snapshot.
  26898. //
  26899. // SnapshotIdentifier is a required field
  26900. SnapshotIdentifier *string `type:"string" required:"true"`
  26901. // The tags to be assigned to the restored DB cluster.
  26902. Tags []*Tag `locationNameList:"Tag" type:"list"`
  26903. // A list of VPC security groups that the new DB cluster will belong to.
  26904. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  26905. }
  26906. // String returns the string representation
  26907. func (s RestoreDBClusterFromSnapshotInput) String() string {
  26908. return awsutil.Prettify(s)
  26909. }
  26910. // GoString returns the string representation
  26911. func (s RestoreDBClusterFromSnapshotInput) GoString() string {
  26912. return s.String()
  26913. }
  26914. // Validate inspects the fields of the type to determine if they are valid.
  26915. func (s *RestoreDBClusterFromSnapshotInput) Validate() error {
  26916. invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterFromSnapshotInput"}
  26917. if s.DBClusterIdentifier == nil {
  26918. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  26919. }
  26920. if s.Engine == nil {
  26921. invalidParams.Add(request.NewErrParamRequired("Engine"))
  26922. }
  26923. if s.SnapshotIdentifier == nil {
  26924. invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier"))
  26925. }
  26926. if invalidParams.Len() > 0 {
  26927. return invalidParams
  26928. }
  26929. return nil
  26930. }
  26931. // SetAvailabilityZones sets the AvailabilityZones field's value.
  26932. func (s *RestoreDBClusterFromSnapshotInput) SetAvailabilityZones(v []*string) *RestoreDBClusterFromSnapshotInput {
  26933. s.AvailabilityZones = v
  26934. return s
  26935. }
  26936. // SetBacktrackWindow sets the BacktrackWindow field's value.
  26937. func (s *RestoreDBClusterFromSnapshotInput) SetBacktrackWindow(v int64) *RestoreDBClusterFromSnapshotInput {
  26938. s.BacktrackWindow = &v
  26939. return s
  26940. }
  26941. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  26942. func (s *RestoreDBClusterFromSnapshotInput) SetDBClusterIdentifier(v string) *RestoreDBClusterFromSnapshotInput {
  26943. s.DBClusterIdentifier = &v
  26944. return s
  26945. }
  26946. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  26947. func (s *RestoreDBClusterFromSnapshotInput) SetDBClusterParameterGroupName(v string) *RestoreDBClusterFromSnapshotInput {
  26948. s.DBClusterParameterGroupName = &v
  26949. return s
  26950. }
  26951. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  26952. func (s *RestoreDBClusterFromSnapshotInput) SetDBSubnetGroupName(v string) *RestoreDBClusterFromSnapshotInput {
  26953. s.DBSubnetGroupName = &v
  26954. return s
  26955. }
  26956. // SetDatabaseName sets the DatabaseName field's value.
  26957. func (s *RestoreDBClusterFromSnapshotInput) SetDatabaseName(v string) *RestoreDBClusterFromSnapshotInput {
  26958. s.DatabaseName = &v
  26959. return s
  26960. }
  26961. // SetDeletionProtection sets the DeletionProtection field's value.
  26962. func (s *RestoreDBClusterFromSnapshotInput) SetDeletionProtection(v bool) *RestoreDBClusterFromSnapshotInput {
  26963. s.DeletionProtection = &v
  26964. return s
  26965. }
  26966. // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value.
  26967. func (s *RestoreDBClusterFromSnapshotInput) SetEnableCloudwatchLogsExports(v []*string) *RestoreDBClusterFromSnapshotInput {
  26968. s.EnableCloudwatchLogsExports = v
  26969. return s
  26970. }
  26971. // SetEnableIAMDatabaseAuthentication sets the EnableIAMDatabaseAuthentication field's value.
  26972. func (s *RestoreDBClusterFromSnapshotInput) SetEnableIAMDatabaseAuthentication(v bool) *RestoreDBClusterFromSnapshotInput {
  26973. s.EnableIAMDatabaseAuthentication = &v
  26974. return s
  26975. }
  26976. // SetEngine sets the Engine field's value.
  26977. func (s *RestoreDBClusterFromSnapshotInput) SetEngine(v string) *RestoreDBClusterFromSnapshotInput {
  26978. s.Engine = &v
  26979. return s
  26980. }
  26981. // SetEngineMode sets the EngineMode field's value.
  26982. func (s *RestoreDBClusterFromSnapshotInput) SetEngineMode(v string) *RestoreDBClusterFromSnapshotInput {
  26983. s.EngineMode = &v
  26984. return s
  26985. }
  26986. // SetEngineVersion sets the EngineVersion field's value.
  26987. func (s *RestoreDBClusterFromSnapshotInput) SetEngineVersion(v string) *RestoreDBClusterFromSnapshotInput {
  26988. s.EngineVersion = &v
  26989. return s
  26990. }
  26991. // SetKmsKeyId sets the KmsKeyId field's value.
  26992. func (s *RestoreDBClusterFromSnapshotInput) SetKmsKeyId(v string) *RestoreDBClusterFromSnapshotInput {
  26993. s.KmsKeyId = &v
  26994. return s
  26995. }
  26996. // SetOptionGroupName sets the OptionGroupName field's value.
  26997. func (s *RestoreDBClusterFromSnapshotInput) SetOptionGroupName(v string) *RestoreDBClusterFromSnapshotInput {
  26998. s.OptionGroupName = &v
  26999. return s
  27000. }
  27001. // SetPort sets the Port field's value.
  27002. func (s *RestoreDBClusterFromSnapshotInput) SetPort(v int64) *RestoreDBClusterFromSnapshotInput {
  27003. s.Port = &v
  27004. return s
  27005. }
  27006. // SetScalingConfiguration sets the ScalingConfiguration field's value.
  27007. func (s *RestoreDBClusterFromSnapshotInput) SetScalingConfiguration(v *ScalingConfiguration) *RestoreDBClusterFromSnapshotInput {
  27008. s.ScalingConfiguration = v
  27009. return s
  27010. }
  27011. // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
  27012. func (s *RestoreDBClusterFromSnapshotInput) SetSnapshotIdentifier(v string) *RestoreDBClusterFromSnapshotInput {
  27013. s.SnapshotIdentifier = &v
  27014. return s
  27015. }
  27016. // SetTags sets the Tags field's value.
  27017. func (s *RestoreDBClusterFromSnapshotInput) SetTags(v []*Tag) *RestoreDBClusterFromSnapshotInput {
  27018. s.Tags = v
  27019. return s
  27020. }
  27021. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  27022. func (s *RestoreDBClusterFromSnapshotInput) SetVpcSecurityGroupIds(v []*string) *RestoreDBClusterFromSnapshotInput {
  27023. s.VpcSecurityGroupIds = v
  27024. return s
  27025. }
  27026. type RestoreDBClusterFromSnapshotOutput struct {
  27027. _ struct{} `type:"structure"`
  27028. // Contains the details of an Amazon Aurora DB cluster.
  27029. //
  27030. // This data type is used as a response element in the DescribeDBClusters, StopDBCluster,
  27031. // and StartDBCluster actions.
  27032. DBCluster *DBCluster `type:"structure"`
  27033. }
  27034. // String returns the string representation
  27035. func (s RestoreDBClusterFromSnapshotOutput) String() string {
  27036. return awsutil.Prettify(s)
  27037. }
  27038. // GoString returns the string representation
  27039. func (s RestoreDBClusterFromSnapshotOutput) GoString() string {
  27040. return s.String()
  27041. }
  27042. // SetDBCluster sets the DBCluster field's value.
  27043. func (s *RestoreDBClusterFromSnapshotOutput) SetDBCluster(v *DBCluster) *RestoreDBClusterFromSnapshotOutput {
  27044. s.DBCluster = v
  27045. return s
  27046. }
  27047. type RestoreDBClusterToPointInTimeInput struct {
  27048. _ struct{} `type:"structure"`
  27049. // The target backtrack window, in seconds. To disable backtracking, set this
  27050. // value to 0.
  27051. //
  27052. // Default: 0
  27053. //
  27054. // Constraints:
  27055. //
  27056. // * If specified, this value must be set to a number from 0 to 259,200 (72
  27057. // hours).
  27058. BacktrackWindow *int64 `type:"long"`
  27059. // The name of the new DB cluster to be created.
  27060. //
  27061. // Constraints:
  27062. //
  27063. // * Must contain from 1 to 63 letters, numbers, or hyphens
  27064. //
  27065. // * First character must be a letter
  27066. //
  27067. // * Can't end with a hyphen or contain two consecutive hyphens
  27068. //
  27069. // DBClusterIdentifier is a required field
  27070. DBClusterIdentifier *string `type:"string" required:"true"`
  27071. // The name of the DB cluster parameter group to associate with this DB cluster.
  27072. // If this argument is omitted, the default DB cluster parameter group for the
  27073. // specified engine is used.
  27074. //
  27075. // Constraints:
  27076. //
  27077. // * If supplied, must match the name of an existing DB cluster parameter
  27078. // group.
  27079. //
  27080. // * Must be 1 to 255 letters, numbers, or hyphens.
  27081. //
  27082. // * First character must be a letter.
  27083. //
  27084. // * Can't end with a hyphen or contain two consecutive hyphens.
  27085. DBClusterParameterGroupName *string `type:"string"`
  27086. // The DB subnet group name to use for the new DB cluster.
  27087. //
  27088. // Constraints: If supplied, must match the name of an existing DBSubnetGroup.
  27089. //
  27090. // Example: mySubnetgroup
  27091. DBSubnetGroupName *string `type:"string"`
  27092. // Indicates if the DB cluster should have deletion protection enabled. The
  27093. // database can't be deleted when this value is set to true. The default is
  27094. // false.
  27095. DeletionProtection *bool `type:"boolean"`
  27096. // The list of logs that the restored DB cluster is to export to CloudWatch
  27097. // Logs. The values in the list depend on the DB engine being used. For more
  27098. // information, see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch)
  27099. // in the Amazon Aurora User Guide.
  27100. EnableCloudwatchLogsExports []*string `type:"list"`
  27101. // True to enable mapping of AWS Identity and Access Management (IAM) accounts
  27102. // to database accounts, and otherwise false.
  27103. //
  27104. // Default: false
  27105. EnableIAMDatabaseAuthentication *bool `type:"boolean"`
  27106. // The AWS KMS key identifier to use when restoring an encrypted DB cluster
  27107. // from an encrypted DB cluster.
  27108. //
  27109. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  27110. // key. If you are restoring a DB cluster with the same AWS account that owns
  27111. // the KMS encryption key used to encrypt the new DB cluster, then you can use
  27112. // the KMS key alias instead of the ARN for the KMS encryption key.
  27113. //
  27114. // You can restore to a new DB cluster and encrypt the new DB cluster with a
  27115. // KMS key that is different than the KMS key used to encrypt the source DB
  27116. // cluster. The new DB cluster is encrypted with the KMS key identified by the
  27117. // KmsKeyId parameter.
  27118. //
  27119. // If you don't specify a value for the KmsKeyId parameter, then the following
  27120. // occurs:
  27121. //
  27122. // * If the DB cluster is encrypted, then the restored DB cluster is encrypted
  27123. // using the KMS key that was used to encrypt the source DB cluster.
  27124. //
  27125. // * If the DB cluster is not encrypted, then the restored DB cluster is
  27126. // not encrypted.
  27127. //
  27128. // If DBClusterIdentifier refers to a DB cluster that is not encrypted, then
  27129. // the restore request is rejected.
  27130. KmsKeyId *string `type:"string"`
  27131. // The name of the option group for the new DB cluster.
  27132. OptionGroupName *string `type:"string"`
  27133. // The port number on which the new DB cluster accepts connections.
  27134. //
  27135. // Constraints: A value from 1150-65535.
  27136. //
  27137. // Default: The default port for the engine.
  27138. Port *int64 `type:"integer"`
  27139. // The date and time to restore the DB cluster to.
  27140. //
  27141. // Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
  27142. //
  27143. // Constraints:
  27144. //
  27145. // * Must be before the latest restorable time for the DB instance
  27146. //
  27147. // * Must be specified if UseLatestRestorableTime parameter is not provided
  27148. //
  27149. // * Can't be specified if UseLatestRestorableTime parameter is true
  27150. //
  27151. // * Can't be specified if RestoreType parameter is copy-on-write
  27152. //
  27153. // Example: 2015-03-07T23:45:00Z
  27154. RestoreToTime *time.Time `type:"timestamp"`
  27155. // The type of restore to be performed. You can specify one of the following
  27156. // values:
  27157. //
  27158. // * full-copy - The new DB cluster is restored as a full copy of the source
  27159. // DB cluster.
  27160. //
  27161. // * copy-on-write - The new DB cluster is restored as a clone of the source
  27162. // DB cluster.
  27163. //
  27164. // Constraints: You can't specify copy-on-write if the engine version of the
  27165. // source DB cluster is earlier than 1.11.
  27166. //
  27167. // If you don't specify a RestoreType value, then the new DB cluster is restored
  27168. // as a full copy of the source DB cluster.
  27169. RestoreType *string `type:"string"`
  27170. // The identifier of the source DB cluster from which to restore.
  27171. //
  27172. // Constraints:
  27173. //
  27174. // * Must match the identifier of an existing DBCluster.
  27175. //
  27176. // SourceDBClusterIdentifier is a required field
  27177. SourceDBClusterIdentifier *string `type:"string" required:"true"`
  27178. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  27179. // in the Amazon RDS User Guide.
  27180. Tags []*Tag `locationNameList:"Tag" type:"list"`
  27181. // A value that is set to true to restore the DB cluster to the latest restorable
  27182. // backup time, and false otherwise.
  27183. //
  27184. // Default: false
  27185. //
  27186. // Constraints: Can't be specified if RestoreToTime parameter is provided.
  27187. UseLatestRestorableTime *bool `type:"boolean"`
  27188. // A list of VPC security groups that the new DB cluster belongs to.
  27189. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  27190. }
  27191. // String returns the string representation
  27192. func (s RestoreDBClusterToPointInTimeInput) String() string {
  27193. return awsutil.Prettify(s)
  27194. }
  27195. // GoString returns the string representation
  27196. func (s RestoreDBClusterToPointInTimeInput) GoString() string {
  27197. return s.String()
  27198. }
  27199. // Validate inspects the fields of the type to determine if they are valid.
  27200. func (s *RestoreDBClusterToPointInTimeInput) Validate() error {
  27201. invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterToPointInTimeInput"}
  27202. if s.DBClusterIdentifier == nil {
  27203. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  27204. }
  27205. if s.SourceDBClusterIdentifier == nil {
  27206. invalidParams.Add(request.NewErrParamRequired("SourceDBClusterIdentifier"))
  27207. }
  27208. if invalidParams.Len() > 0 {
  27209. return invalidParams
  27210. }
  27211. return nil
  27212. }
  27213. // SetBacktrackWindow sets the BacktrackWindow field's value.
  27214. func (s *RestoreDBClusterToPointInTimeInput) SetBacktrackWindow(v int64) *RestoreDBClusterToPointInTimeInput {
  27215. s.BacktrackWindow = &v
  27216. return s
  27217. }
  27218. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  27219. func (s *RestoreDBClusterToPointInTimeInput) SetDBClusterIdentifier(v string) *RestoreDBClusterToPointInTimeInput {
  27220. s.DBClusterIdentifier = &v
  27221. return s
  27222. }
  27223. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  27224. func (s *RestoreDBClusterToPointInTimeInput) SetDBClusterParameterGroupName(v string) *RestoreDBClusterToPointInTimeInput {
  27225. s.DBClusterParameterGroupName = &v
  27226. return s
  27227. }
  27228. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  27229. func (s *RestoreDBClusterToPointInTimeInput) SetDBSubnetGroupName(v string) *RestoreDBClusterToPointInTimeInput {
  27230. s.DBSubnetGroupName = &v
  27231. return s
  27232. }
  27233. // SetDeletionProtection sets the DeletionProtection field's value.
  27234. func (s *RestoreDBClusterToPointInTimeInput) SetDeletionProtection(v bool) *RestoreDBClusterToPointInTimeInput {
  27235. s.DeletionProtection = &v
  27236. return s
  27237. }
  27238. // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value.
  27239. func (s *RestoreDBClusterToPointInTimeInput) SetEnableCloudwatchLogsExports(v []*string) *RestoreDBClusterToPointInTimeInput {
  27240. s.EnableCloudwatchLogsExports = v
  27241. return s
  27242. }
  27243. // SetEnableIAMDatabaseAuthentication sets the EnableIAMDatabaseAuthentication field's value.
  27244. func (s *RestoreDBClusterToPointInTimeInput) SetEnableIAMDatabaseAuthentication(v bool) *RestoreDBClusterToPointInTimeInput {
  27245. s.EnableIAMDatabaseAuthentication = &v
  27246. return s
  27247. }
  27248. // SetKmsKeyId sets the KmsKeyId field's value.
  27249. func (s *RestoreDBClusterToPointInTimeInput) SetKmsKeyId(v string) *RestoreDBClusterToPointInTimeInput {
  27250. s.KmsKeyId = &v
  27251. return s
  27252. }
  27253. // SetOptionGroupName sets the OptionGroupName field's value.
  27254. func (s *RestoreDBClusterToPointInTimeInput) SetOptionGroupName(v string) *RestoreDBClusterToPointInTimeInput {
  27255. s.OptionGroupName = &v
  27256. return s
  27257. }
  27258. // SetPort sets the Port field's value.
  27259. func (s *RestoreDBClusterToPointInTimeInput) SetPort(v int64) *RestoreDBClusterToPointInTimeInput {
  27260. s.Port = &v
  27261. return s
  27262. }
  27263. // SetRestoreToTime sets the RestoreToTime field's value.
  27264. func (s *RestoreDBClusterToPointInTimeInput) SetRestoreToTime(v time.Time) *RestoreDBClusterToPointInTimeInput {
  27265. s.RestoreToTime = &v
  27266. return s
  27267. }
  27268. // SetRestoreType sets the RestoreType field's value.
  27269. func (s *RestoreDBClusterToPointInTimeInput) SetRestoreType(v string) *RestoreDBClusterToPointInTimeInput {
  27270. s.RestoreType = &v
  27271. return s
  27272. }
  27273. // SetSourceDBClusterIdentifier sets the SourceDBClusterIdentifier field's value.
  27274. func (s *RestoreDBClusterToPointInTimeInput) SetSourceDBClusterIdentifier(v string) *RestoreDBClusterToPointInTimeInput {
  27275. s.SourceDBClusterIdentifier = &v
  27276. return s
  27277. }
  27278. // SetTags sets the Tags field's value.
  27279. func (s *RestoreDBClusterToPointInTimeInput) SetTags(v []*Tag) *RestoreDBClusterToPointInTimeInput {
  27280. s.Tags = v
  27281. return s
  27282. }
  27283. // SetUseLatestRestorableTime sets the UseLatestRestorableTime field's value.
  27284. func (s *RestoreDBClusterToPointInTimeInput) SetUseLatestRestorableTime(v bool) *RestoreDBClusterToPointInTimeInput {
  27285. s.UseLatestRestorableTime = &v
  27286. return s
  27287. }
  27288. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  27289. func (s *RestoreDBClusterToPointInTimeInput) SetVpcSecurityGroupIds(v []*string) *RestoreDBClusterToPointInTimeInput {
  27290. s.VpcSecurityGroupIds = v
  27291. return s
  27292. }
  27293. type RestoreDBClusterToPointInTimeOutput struct {
  27294. _ struct{} `type:"structure"`
  27295. // Contains the details of an Amazon Aurora DB cluster.
  27296. //
  27297. // This data type is used as a response element in the DescribeDBClusters, StopDBCluster,
  27298. // and StartDBCluster actions.
  27299. DBCluster *DBCluster `type:"structure"`
  27300. }
  27301. // String returns the string representation
  27302. func (s RestoreDBClusterToPointInTimeOutput) String() string {
  27303. return awsutil.Prettify(s)
  27304. }
  27305. // GoString returns the string representation
  27306. func (s RestoreDBClusterToPointInTimeOutput) GoString() string {
  27307. return s.String()
  27308. }
  27309. // SetDBCluster sets the DBCluster field's value.
  27310. func (s *RestoreDBClusterToPointInTimeOutput) SetDBCluster(v *DBCluster) *RestoreDBClusterToPointInTimeOutput {
  27311. s.DBCluster = v
  27312. return s
  27313. }
  27314. type RestoreDBInstanceFromDBSnapshotInput struct {
  27315. _ struct{} `type:"structure"`
  27316. // Indicates that minor version upgrades are applied automatically to the DB
  27317. // instance during the maintenance window.
  27318. AutoMinorVersionUpgrade *bool `type:"boolean"`
  27319. // The EC2 Availability Zone that the DB instance is created in.
  27320. //
  27321. // Default: A random, system-chosen Availability Zone.
  27322. //
  27323. // Constraint: You can't specify the AvailabilityZone parameter if the MultiAZ
  27324. // parameter is set to true.
  27325. //
  27326. // Example: us-east-1a
  27327. AvailabilityZone *string `type:"string"`
  27328. // True to copy all tags from the restored DB instance to snapshots of the DB
  27329. // instance, and otherwise false. The default is false.
  27330. CopyTagsToSnapshot *bool `type:"boolean"`
  27331. // The compute and memory capacity of the Amazon RDS DB instance, for example,
  27332. // db.m4.large. Not all DB instance classes are available in all AWS Regions,
  27333. // or for all database engines. For the full list of DB instance classes, and
  27334. // availability for your engine, see DB Instance Class (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html)
  27335. // in the Amazon RDS User Guide.
  27336. //
  27337. // Default: The same DBInstanceClass as the original DB instance.
  27338. DBInstanceClass *string `type:"string"`
  27339. // Name of the DB instance to create from the DB snapshot. This parameter isn't
  27340. // case-sensitive.
  27341. //
  27342. // Constraints:
  27343. //
  27344. // * Must contain from 1 to 63 numbers, letters, or hyphens
  27345. //
  27346. // * First character must be a letter
  27347. //
  27348. // * Can't end with a hyphen or contain two consecutive hyphens
  27349. //
  27350. // Example: my-snapshot-id
  27351. //
  27352. // DBInstanceIdentifier is a required field
  27353. DBInstanceIdentifier *string `type:"string" required:"true"`
  27354. // The database name for the restored DB instance.
  27355. //
  27356. // This parameter doesn't apply to the MySQL, PostgreSQL, or MariaDB engines.
  27357. DBName *string `type:"string"`
  27358. // The name of the DB parameter group to associate with this DB instance. If
  27359. // this argument is omitted, the default DBParameterGroup for the specified
  27360. // engine is used.
  27361. //
  27362. // Constraints:
  27363. //
  27364. // * If supplied, must match the name of an existing DBParameterGroup.
  27365. //
  27366. // * Must be 1 to 255 letters, numbers, or hyphens.
  27367. //
  27368. // * First character must be a letter.
  27369. //
  27370. // * Can't end with a hyphen or contain two consecutive hyphens.
  27371. DBParameterGroupName *string `type:"string"`
  27372. // The identifier for the DB snapshot to restore from.
  27373. //
  27374. // Constraints:
  27375. //
  27376. // * Must match the identifier of an existing DBSnapshot.
  27377. //
  27378. // * If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier
  27379. // must be the ARN of the shared DB snapshot.
  27380. //
  27381. // DBSnapshotIdentifier is a required field
  27382. DBSnapshotIdentifier *string `type:"string" required:"true"`
  27383. // The DB subnet group name to use for the new instance.
  27384. //
  27385. // Constraints: If supplied, must match the name of an existing DBSubnetGroup.
  27386. //
  27387. // Example: mySubnetgroup
  27388. DBSubnetGroupName *string `type:"string"`
  27389. // Indicates if the DB instance should have deletion protection enabled. The
  27390. // database can't be deleted when this value is set to true. The default is
  27391. // false. For more information, see Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html).
  27392. DeletionProtection *bool `type:"boolean"`
  27393. // Specify the Active Directory Domain to restore the instance in.
  27394. Domain *string `type:"string"`
  27395. // Specify the name of the IAM role to be used when making API calls to the
  27396. // Directory Service.
  27397. DomainIAMRoleName *string `type:"string"`
  27398. // The list of logs that the restored DB instance is to export to CloudWatch
  27399. // Logs. The values in the list depend on the DB engine being used. For more
  27400. // information, see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch)
  27401. // in the Amazon Aurora User Guide.
  27402. EnableCloudwatchLogsExports []*string `type:"list"`
  27403. // True to enable mapping of AWS Identity and Access Management (IAM) accounts
  27404. // to database accounts, and otherwise false.
  27405. //
  27406. // You can enable IAM database authentication for the following database engines
  27407. //
  27408. // * For MySQL 5.6, minor version 5.6.34 or higher
  27409. //
  27410. // * For MySQL 5.7, minor version 5.7.16 or higher
  27411. //
  27412. // Default: false
  27413. EnableIAMDatabaseAuthentication *bool `type:"boolean"`
  27414. // The database engine to use for the new instance.
  27415. //
  27416. // Default: The same as source
  27417. //
  27418. // Constraint: Must be compatible with the engine of the source. For example,
  27419. // you can restore a MariaDB 10.1 DB instance from a MySQL 5.6 snapshot.
  27420. //
  27421. // Valid Values:
  27422. //
  27423. // * mariadb
  27424. //
  27425. // * mysql
  27426. //
  27427. // * oracle-ee
  27428. //
  27429. // * oracle-se2
  27430. //
  27431. // * oracle-se1
  27432. //
  27433. // * oracle-se
  27434. //
  27435. // * postgres
  27436. //
  27437. // * sqlserver-ee
  27438. //
  27439. // * sqlserver-se
  27440. //
  27441. // * sqlserver-ex
  27442. //
  27443. // * sqlserver-web
  27444. Engine *string `type:"string"`
  27445. // Specifies the amount of provisioned IOPS for the DB instance, expressed in
  27446. // I/O operations per second. If this parameter is not specified, the IOPS value
  27447. // is taken from the backup. If this parameter is set to 0, the new instance
  27448. // is converted to a non-PIOPS instance. The conversion takes additional time,
  27449. // though your DB instance is available for connections before the conversion
  27450. // starts.
  27451. //
  27452. // The provisioned IOPS value must follow the requirements for your database
  27453. // engine. For more information, see Amazon RDS Provisioned IOPS Storage to
  27454. // Improve Performance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS)
  27455. // in the Amazon RDS User Guide.
  27456. //
  27457. // Constraints: Must be an integer greater than 1000.
  27458. Iops *int64 `type:"integer"`
  27459. // License model information for the restored DB instance.
  27460. //
  27461. // Default: Same as source.
  27462. //
  27463. // Valid values: license-included | bring-your-own-license | general-public-license
  27464. LicenseModel *string `type:"string"`
  27465. // Specifies if the DB instance is a Multi-AZ deployment.
  27466. //
  27467. // Constraint: You can't specify the AvailabilityZone parameter if the MultiAZ
  27468. // parameter is set to true.
  27469. MultiAZ *bool `type:"boolean"`
  27470. // The name of the option group to be used for the restored DB instance.
  27471. //
  27472. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  27473. // can't be removed from an option group, and that option group can't be removed
  27474. // from a DB instance once it is associated with a DB instance
  27475. OptionGroupName *string `type:"string"`
  27476. // The port number on which the database accepts connections.
  27477. //
  27478. // Default: The same port as the original DB instance
  27479. //
  27480. // Constraints: Value must be 1150-65535
  27481. Port *int64 `type:"integer"`
  27482. // The number of CPU cores and the number of threads per core for the DB instance
  27483. // class of the DB instance.
  27484. ProcessorFeatures []*ProcessorFeature `locationNameList:"ProcessorFeature" type:"list"`
  27485. // Specifies the accessibility options for the DB instance. A value of true
  27486. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  27487. // which resolves to a public IP address. A value of false specifies an internal
  27488. // instance with a DNS name that resolves to a private IP address. For more
  27489. // information, see CreateDBInstance.
  27490. PubliclyAccessible *bool `type:"boolean"`
  27491. // Specifies the storage type to be associated with the DB instance.
  27492. //
  27493. // Valid values: standard | gp2 | io1
  27494. //
  27495. // If you specify io1, you must also include a value for the Iops parameter.
  27496. //
  27497. // Default: io1 if the Iops parameter is specified, otherwise standard
  27498. StorageType *string `type:"string"`
  27499. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  27500. // in the Amazon RDS User Guide.
  27501. Tags []*Tag `locationNameList:"Tag" type:"list"`
  27502. // The ARN from the key store with which to associate the instance for TDE encryption.
  27503. TdeCredentialArn *string `type:"string"`
  27504. // The password for the given ARN from the key store in order to access the
  27505. // device.
  27506. TdeCredentialPassword *string `type:"string"`
  27507. // A value that specifies that the DB instance class of the DB instance uses
  27508. // its default processor features.
  27509. UseDefaultProcessorFeatures *bool `type:"boolean"`
  27510. // A list of EC2 VPC security groups to associate with this DB instance.
  27511. //
  27512. // Default: The default EC2 VPC security group for the DB subnet group's VPC.
  27513. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  27514. }
  27515. // String returns the string representation
  27516. func (s RestoreDBInstanceFromDBSnapshotInput) String() string {
  27517. return awsutil.Prettify(s)
  27518. }
  27519. // GoString returns the string representation
  27520. func (s RestoreDBInstanceFromDBSnapshotInput) GoString() string {
  27521. return s.String()
  27522. }
  27523. // Validate inspects the fields of the type to determine if they are valid.
  27524. func (s *RestoreDBInstanceFromDBSnapshotInput) Validate() error {
  27525. invalidParams := request.ErrInvalidParams{Context: "RestoreDBInstanceFromDBSnapshotInput"}
  27526. if s.DBInstanceIdentifier == nil {
  27527. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  27528. }
  27529. if s.DBSnapshotIdentifier == nil {
  27530. invalidParams.Add(request.NewErrParamRequired("DBSnapshotIdentifier"))
  27531. }
  27532. if invalidParams.Len() > 0 {
  27533. return invalidParams
  27534. }
  27535. return nil
  27536. }
  27537. // SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
  27538. func (s *RestoreDBInstanceFromDBSnapshotInput) SetAutoMinorVersionUpgrade(v bool) *RestoreDBInstanceFromDBSnapshotInput {
  27539. s.AutoMinorVersionUpgrade = &v
  27540. return s
  27541. }
  27542. // SetAvailabilityZone sets the AvailabilityZone field's value.
  27543. func (s *RestoreDBInstanceFromDBSnapshotInput) SetAvailabilityZone(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27544. s.AvailabilityZone = &v
  27545. return s
  27546. }
  27547. // SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value.
  27548. func (s *RestoreDBInstanceFromDBSnapshotInput) SetCopyTagsToSnapshot(v bool) *RestoreDBInstanceFromDBSnapshotInput {
  27549. s.CopyTagsToSnapshot = &v
  27550. return s
  27551. }
  27552. // SetDBInstanceClass sets the DBInstanceClass field's value.
  27553. func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBInstanceClass(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27554. s.DBInstanceClass = &v
  27555. return s
  27556. }
  27557. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  27558. func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBInstanceIdentifier(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27559. s.DBInstanceIdentifier = &v
  27560. return s
  27561. }
  27562. // SetDBName sets the DBName field's value.
  27563. func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBName(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27564. s.DBName = &v
  27565. return s
  27566. }
  27567. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  27568. func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBParameterGroupName(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27569. s.DBParameterGroupName = &v
  27570. return s
  27571. }
  27572. // SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value.
  27573. func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBSnapshotIdentifier(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27574. s.DBSnapshotIdentifier = &v
  27575. return s
  27576. }
  27577. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  27578. func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBSubnetGroupName(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27579. s.DBSubnetGroupName = &v
  27580. return s
  27581. }
  27582. // SetDeletionProtection sets the DeletionProtection field's value.
  27583. func (s *RestoreDBInstanceFromDBSnapshotInput) SetDeletionProtection(v bool) *RestoreDBInstanceFromDBSnapshotInput {
  27584. s.DeletionProtection = &v
  27585. return s
  27586. }
  27587. // SetDomain sets the Domain field's value.
  27588. func (s *RestoreDBInstanceFromDBSnapshotInput) SetDomain(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27589. s.Domain = &v
  27590. return s
  27591. }
  27592. // SetDomainIAMRoleName sets the DomainIAMRoleName field's value.
  27593. func (s *RestoreDBInstanceFromDBSnapshotInput) SetDomainIAMRoleName(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27594. s.DomainIAMRoleName = &v
  27595. return s
  27596. }
  27597. // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value.
  27598. func (s *RestoreDBInstanceFromDBSnapshotInput) SetEnableCloudwatchLogsExports(v []*string) *RestoreDBInstanceFromDBSnapshotInput {
  27599. s.EnableCloudwatchLogsExports = v
  27600. return s
  27601. }
  27602. // SetEnableIAMDatabaseAuthentication sets the EnableIAMDatabaseAuthentication field's value.
  27603. func (s *RestoreDBInstanceFromDBSnapshotInput) SetEnableIAMDatabaseAuthentication(v bool) *RestoreDBInstanceFromDBSnapshotInput {
  27604. s.EnableIAMDatabaseAuthentication = &v
  27605. return s
  27606. }
  27607. // SetEngine sets the Engine field's value.
  27608. func (s *RestoreDBInstanceFromDBSnapshotInput) SetEngine(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27609. s.Engine = &v
  27610. return s
  27611. }
  27612. // SetIops sets the Iops field's value.
  27613. func (s *RestoreDBInstanceFromDBSnapshotInput) SetIops(v int64) *RestoreDBInstanceFromDBSnapshotInput {
  27614. s.Iops = &v
  27615. return s
  27616. }
  27617. // SetLicenseModel sets the LicenseModel field's value.
  27618. func (s *RestoreDBInstanceFromDBSnapshotInput) SetLicenseModel(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27619. s.LicenseModel = &v
  27620. return s
  27621. }
  27622. // SetMultiAZ sets the MultiAZ field's value.
  27623. func (s *RestoreDBInstanceFromDBSnapshotInput) SetMultiAZ(v bool) *RestoreDBInstanceFromDBSnapshotInput {
  27624. s.MultiAZ = &v
  27625. return s
  27626. }
  27627. // SetOptionGroupName sets the OptionGroupName field's value.
  27628. func (s *RestoreDBInstanceFromDBSnapshotInput) SetOptionGroupName(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27629. s.OptionGroupName = &v
  27630. return s
  27631. }
  27632. // SetPort sets the Port field's value.
  27633. func (s *RestoreDBInstanceFromDBSnapshotInput) SetPort(v int64) *RestoreDBInstanceFromDBSnapshotInput {
  27634. s.Port = &v
  27635. return s
  27636. }
  27637. // SetProcessorFeatures sets the ProcessorFeatures field's value.
  27638. func (s *RestoreDBInstanceFromDBSnapshotInput) SetProcessorFeatures(v []*ProcessorFeature) *RestoreDBInstanceFromDBSnapshotInput {
  27639. s.ProcessorFeatures = v
  27640. return s
  27641. }
  27642. // SetPubliclyAccessible sets the PubliclyAccessible field's value.
  27643. func (s *RestoreDBInstanceFromDBSnapshotInput) SetPubliclyAccessible(v bool) *RestoreDBInstanceFromDBSnapshotInput {
  27644. s.PubliclyAccessible = &v
  27645. return s
  27646. }
  27647. // SetStorageType sets the StorageType field's value.
  27648. func (s *RestoreDBInstanceFromDBSnapshotInput) SetStorageType(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27649. s.StorageType = &v
  27650. return s
  27651. }
  27652. // SetTags sets the Tags field's value.
  27653. func (s *RestoreDBInstanceFromDBSnapshotInput) SetTags(v []*Tag) *RestoreDBInstanceFromDBSnapshotInput {
  27654. s.Tags = v
  27655. return s
  27656. }
  27657. // SetTdeCredentialArn sets the TdeCredentialArn field's value.
  27658. func (s *RestoreDBInstanceFromDBSnapshotInput) SetTdeCredentialArn(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27659. s.TdeCredentialArn = &v
  27660. return s
  27661. }
  27662. // SetTdeCredentialPassword sets the TdeCredentialPassword field's value.
  27663. func (s *RestoreDBInstanceFromDBSnapshotInput) SetTdeCredentialPassword(v string) *RestoreDBInstanceFromDBSnapshotInput {
  27664. s.TdeCredentialPassword = &v
  27665. return s
  27666. }
  27667. // SetUseDefaultProcessorFeatures sets the UseDefaultProcessorFeatures field's value.
  27668. func (s *RestoreDBInstanceFromDBSnapshotInput) SetUseDefaultProcessorFeatures(v bool) *RestoreDBInstanceFromDBSnapshotInput {
  27669. s.UseDefaultProcessorFeatures = &v
  27670. return s
  27671. }
  27672. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  27673. func (s *RestoreDBInstanceFromDBSnapshotInput) SetVpcSecurityGroupIds(v []*string) *RestoreDBInstanceFromDBSnapshotInput {
  27674. s.VpcSecurityGroupIds = v
  27675. return s
  27676. }
  27677. type RestoreDBInstanceFromDBSnapshotOutput struct {
  27678. _ struct{} `type:"structure"`
  27679. // Contains the details of an Amazon RDS DB instance.
  27680. //
  27681. // This data type is used as a response element in the DescribeDBInstances action.
  27682. DBInstance *DBInstance `type:"structure"`
  27683. }
  27684. // String returns the string representation
  27685. func (s RestoreDBInstanceFromDBSnapshotOutput) String() string {
  27686. return awsutil.Prettify(s)
  27687. }
  27688. // GoString returns the string representation
  27689. func (s RestoreDBInstanceFromDBSnapshotOutput) GoString() string {
  27690. return s.String()
  27691. }
  27692. // SetDBInstance sets the DBInstance field's value.
  27693. func (s *RestoreDBInstanceFromDBSnapshotOutput) SetDBInstance(v *DBInstance) *RestoreDBInstanceFromDBSnapshotOutput {
  27694. s.DBInstance = v
  27695. return s
  27696. }
  27697. type RestoreDBInstanceFromS3Input struct {
  27698. _ struct{} `type:"structure"`
  27699. // The amount of storage (in gigabytes) to allocate initially for the DB instance.
  27700. // Follow the allocation rules specified in CreateDBInstance.
  27701. //
  27702. // Be sure to allocate enough memory for your new DB instance so that the restore
  27703. // operation can succeed. You can also allocate additional memory for future
  27704. // growth.
  27705. AllocatedStorage *int64 `type:"integer"`
  27706. // True to indicate that minor engine upgrades are applied automatically to
  27707. // the DB instance during the maintenance window, and otherwise false.
  27708. //
  27709. // Default: true
  27710. AutoMinorVersionUpgrade *bool `type:"boolean"`
  27711. // The Availability Zone that the DB instance is created in. For information
  27712. // about AWS Regions and Availability Zones, see Regions and Availability Zones
  27713. // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html)
  27714. // in the Amazon RDS User Guide.
  27715. //
  27716. // Default: A random, system-chosen Availability Zone in the endpoint's AWS
  27717. // Region.
  27718. //
  27719. // Example: us-east-1d
  27720. //
  27721. // Constraint: The AvailabilityZone parameter can't be specified if the MultiAZ
  27722. // parameter is set to true. The specified Availability Zone must be in the
  27723. // same AWS Region as the current endpoint.
  27724. AvailabilityZone *string `type:"string"`
  27725. // The number of days for which automated backups are retained. Setting this
  27726. // parameter to a positive number enables backups. For more information, see
  27727. // CreateDBInstance.
  27728. BackupRetentionPeriod *int64 `type:"integer"`
  27729. // True to copy all tags from the DB instance to snapshots of the DB instance,
  27730. // and otherwise false.
  27731. //
  27732. // Default: false.
  27733. CopyTagsToSnapshot *bool `type:"boolean"`
  27734. // The compute and memory capacity of the DB instance, for example, db.m4.large.
  27735. // Not all DB instance classes are available in all AWS Regions, or for all
  27736. // database engines. For the full list of DB instance classes, and availability
  27737. // for your engine, see DB Instance Class (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html)
  27738. // in the Amazon RDS User Guide.
  27739. //
  27740. // Importing from Amazon S3 is not supported on the db.t2.micro DB instance
  27741. // class.
  27742. //
  27743. // DBInstanceClass is a required field
  27744. DBInstanceClass *string `type:"string" required:"true"`
  27745. // The DB instance identifier. This parameter is stored as a lowercase string.
  27746. //
  27747. // Constraints:
  27748. //
  27749. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  27750. //
  27751. // * First character must be a letter.
  27752. //
  27753. // * Can't end with a hyphen or contain two consecutive hyphens.
  27754. //
  27755. // Example: mydbinstance
  27756. //
  27757. // DBInstanceIdentifier is a required field
  27758. DBInstanceIdentifier *string `type:"string" required:"true"`
  27759. // The name of the database to create when the DB instance is created. Follow
  27760. // the naming rules specified in CreateDBInstance.
  27761. DBName *string `type:"string"`
  27762. // The name of the DB parameter group to associate with this DB instance. If
  27763. // this argument is omitted, the default parameter group for the specified engine
  27764. // is used.
  27765. DBParameterGroupName *string `type:"string"`
  27766. // A list of DB security groups to associate with this DB instance.
  27767. //
  27768. // Default: The default DB security group for the database engine.
  27769. DBSecurityGroups []*string `locationNameList:"DBSecurityGroupName" type:"list"`
  27770. // A DB subnet group to associate with this DB instance.
  27771. DBSubnetGroupName *string `type:"string"`
  27772. // Indicates if the DB instance should have deletion protection enabled. The
  27773. // database can't be deleted when this value is set to true. The default is
  27774. // false. For more information, see Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html).
  27775. DeletionProtection *bool `type:"boolean"`
  27776. // The list of logs that the restored DB instance is to export to CloudWatch
  27777. // Logs. The values in the list depend on the DB engine being used. For more
  27778. // information, see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch)
  27779. // in the Amazon RDS User Guide.
  27780. EnableCloudwatchLogsExports []*string `type:"list"`
  27781. // True to enable mapping of AWS Identity and Access Management (IAM) accounts
  27782. // to database accounts, and otherwise false.
  27783. //
  27784. // Default: false
  27785. EnableIAMDatabaseAuthentication *bool `type:"boolean"`
  27786. // True to enable Performance Insights for the DB instance, and otherwise false.
  27787. //
  27788. // For more information, see Using Amazon Performance Insights (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html)
  27789. // in the Amazon Relational Database Service User Guide.
  27790. EnablePerformanceInsights *bool `type:"boolean"`
  27791. // The name of the database engine to be used for this instance.
  27792. //
  27793. // Valid Values: mysql
  27794. //
  27795. // Engine is a required field
  27796. Engine *string `type:"string" required:"true"`
  27797. // The version number of the database engine to use. Choose the latest minor
  27798. // version of your database engine. For information about engine versions, see
  27799. // CreateDBInstance, or call DescribeDBEngineVersions.
  27800. EngineVersion *string `type:"string"`
  27801. // The amount of Provisioned IOPS (input/output operations per second) to allocate
  27802. // initially for the DB instance. For information about valid Iops values, see
  27803. // see Amazon RDS Provisioned IOPS Storage to Improve Performance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS)
  27804. // in the Amazon RDS User Guide.
  27805. Iops *int64 `type:"integer"`
  27806. // The AWS KMS key identifier for an encrypted DB instance.
  27807. //
  27808. // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption
  27809. // key. If you are creating a DB instance with the same AWS account that owns
  27810. // the KMS encryption key used to encrypt the new DB instance, then you can
  27811. // use the KMS key alias instead of the ARN for the KM encryption key.
  27812. //
  27813. // If the StorageEncrypted parameter is true, and you do not specify a value
  27814. // for the KmsKeyId parameter, then Amazon RDS will use your default encryption
  27815. // key. AWS KMS creates the default encryption key for your AWS account. Your
  27816. // AWS account has a different default encryption key for each AWS Region.
  27817. KmsKeyId *string `type:"string"`
  27818. // The license model for this DB instance. Use general-public-license.
  27819. LicenseModel *string `type:"string"`
  27820. // The password for the master user. The password can include any printable
  27821. // ASCII character except "/", """, or "@".
  27822. //
  27823. // Constraints: Must contain from 8 to 41 characters.
  27824. MasterUserPassword *string `type:"string"`
  27825. // The name for the master user.
  27826. //
  27827. // Constraints:
  27828. //
  27829. // * Must be 1 to 16 letters or numbers.
  27830. //
  27831. // * First character must be a letter.
  27832. //
  27833. // * Can't be a reserved word for the chosen database engine.
  27834. MasterUsername *string `type:"string"`
  27835. // The interval, in seconds, between points when Enhanced Monitoring metrics
  27836. // are collected for the DB instance. To disable collecting Enhanced Monitoring
  27837. // metrics, specify 0.
  27838. //
  27839. // If MonitoringRoleArn is specified, then you must also set MonitoringInterval
  27840. // to a value other than 0.
  27841. //
  27842. // Valid Values: 0, 1, 5, 10, 15, 30, 60
  27843. //
  27844. // Default: 0
  27845. MonitoringInterval *int64 `type:"integer"`
  27846. // The ARN for the IAM role that permits RDS to send enhanced monitoring metrics
  27847. // to Amazon CloudWatch Logs. For example, arn:aws:iam:123456789012:role/emaccess.
  27848. // For information on creating a monitoring role, see Setting Up and Enabling
  27849. // Enhanced Monitoring (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling)
  27850. // in the Amazon RDS User Guide.
  27851. //
  27852. // If MonitoringInterval is set to a value other than 0, then you must supply
  27853. // a MonitoringRoleArn value.
  27854. MonitoringRoleArn *string `type:"string"`
  27855. // Specifies whether the DB instance is a Multi-AZ deployment. If MultiAZ is
  27856. // set to true, you can't set the AvailabilityZone parameter.
  27857. MultiAZ *bool `type:"boolean"`
  27858. // The name of the option group to associate with this DB instance. If this
  27859. // argument is omitted, the default option group for the specified engine is
  27860. // used.
  27861. OptionGroupName *string `type:"string"`
  27862. // The AWS KMS key identifier for encryption of Performance Insights data. The
  27863. // KMS key ID is the Amazon Resource Name (ARN), the KMS key identifier, or
  27864. // the KMS key alias for the KMS encryption key.
  27865. PerformanceInsightsKMSKeyId *string `type:"string"`
  27866. // The amount of time, in days, to retain Performance Insights data. Valid values
  27867. // are 7 or 731 (2 years).
  27868. PerformanceInsightsRetentionPeriod *int64 `type:"integer"`
  27869. // The port number on which the database accepts connections.
  27870. //
  27871. // Type: Integer
  27872. //
  27873. // Valid Values: 1150-65535
  27874. //
  27875. // Default: 3306
  27876. Port *int64 `type:"integer"`
  27877. // The time range each day during which automated backups are created if automated
  27878. // backups are enabled. For more information, see The Backup Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow)
  27879. // in the Amazon RDS User Guide.
  27880. //
  27881. // Constraints:
  27882. //
  27883. // * Must be in the format hh24:mi-hh24:mi.
  27884. //
  27885. // * Must be in Universal Coordinated Time (UTC).
  27886. //
  27887. // * Must not conflict with the preferred maintenance window.
  27888. //
  27889. // * Must be at least 30 minutes.
  27890. PreferredBackupWindow *string `type:"string"`
  27891. // The time range each week during which system maintenance can occur, in Universal
  27892. // Coordinated Time (UTC). For more information, see Amazon RDS Maintenance
  27893. // Window (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Maintenance.html#Concepts.DBMaintenance)
  27894. // in the Amazon RDS User Guide.
  27895. //
  27896. // Constraints:
  27897. //
  27898. // * Must be in the format ddd:hh24:mi-ddd:hh24:mi.
  27899. //
  27900. // * Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
  27901. //
  27902. // * Must be in Universal Coordinated Time (UTC).
  27903. //
  27904. // * Must not conflict with the preferred backup window.
  27905. //
  27906. // * Must be at least 30 minutes.
  27907. PreferredMaintenanceWindow *string `type:"string"`
  27908. // The number of CPU cores and the number of threads per core for the DB instance
  27909. // class of the DB instance.
  27910. ProcessorFeatures []*ProcessorFeature `locationNameList:"ProcessorFeature" type:"list"`
  27911. // Specifies the accessibility options for the DB instance. A value of true
  27912. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  27913. // which resolves to a public IP address. A value of false specifies an internal
  27914. // instance with a DNS name that resolves to a private IP address. For more
  27915. // information, see CreateDBInstance.
  27916. PubliclyAccessible *bool `type:"boolean"`
  27917. // The name of your Amazon S3 bucket that contains your database backup file.
  27918. //
  27919. // S3BucketName is a required field
  27920. S3BucketName *string `type:"string" required:"true"`
  27921. // An AWS Identity and Access Management (IAM) role to allow Amazon RDS to access
  27922. // your Amazon S3 bucket.
  27923. //
  27924. // S3IngestionRoleArn is a required field
  27925. S3IngestionRoleArn *string `type:"string" required:"true"`
  27926. // The prefix of your Amazon S3 bucket.
  27927. S3Prefix *string `type:"string"`
  27928. // The name of the engine of your source database.
  27929. //
  27930. // Valid Values: mysql
  27931. //
  27932. // SourceEngine is a required field
  27933. SourceEngine *string `type:"string" required:"true"`
  27934. // The engine version of your source database.
  27935. //
  27936. // Valid Values: 5.6
  27937. //
  27938. // SourceEngineVersion is a required field
  27939. SourceEngineVersion *string `type:"string" required:"true"`
  27940. // Specifies whether the new DB instance is encrypted or not.
  27941. StorageEncrypted *bool `type:"boolean"`
  27942. // Specifies the storage type to be associated with the DB instance.
  27943. //
  27944. // Valid values: standard | gp2 | io1
  27945. //
  27946. // If you specify io1, you must also include a value for the Iops parameter.
  27947. //
  27948. // Default: io1 if the Iops parameter is specified; otherwise standard
  27949. StorageType *string `type:"string"`
  27950. // A list of tags to associate with this DB instance. For more information,
  27951. // see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  27952. // in the Amazon RDS User Guide.
  27953. Tags []*Tag `locationNameList:"Tag" type:"list"`
  27954. // A value that specifies that the DB instance class of the DB instance uses
  27955. // its default processor features.
  27956. UseDefaultProcessorFeatures *bool `type:"boolean"`
  27957. // A list of VPC security groups to associate with this DB instance.
  27958. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  27959. }
  27960. // String returns the string representation
  27961. func (s RestoreDBInstanceFromS3Input) String() string {
  27962. return awsutil.Prettify(s)
  27963. }
  27964. // GoString returns the string representation
  27965. func (s RestoreDBInstanceFromS3Input) GoString() string {
  27966. return s.String()
  27967. }
  27968. // Validate inspects the fields of the type to determine if they are valid.
  27969. func (s *RestoreDBInstanceFromS3Input) Validate() error {
  27970. invalidParams := request.ErrInvalidParams{Context: "RestoreDBInstanceFromS3Input"}
  27971. if s.DBInstanceClass == nil {
  27972. invalidParams.Add(request.NewErrParamRequired("DBInstanceClass"))
  27973. }
  27974. if s.DBInstanceIdentifier == nil {
  27975. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  27976. }
  27977. if s.Engine == nil {
  27978. invalidParams.Add(request.NewErrParamRequired("Engine"))
  27979. }
  27980. if s.S3BucketName == nil {
  27981. invalidParams.Add(request.NewErrParamRequired("S3BucketName"))
  27982. }
  27983. if s.S3IngestionRoleArn == nil {
  27984. invalidParams.Add(request.NewErrParamRequired("S3IngestionRoleArn"))
  27985. }
  27986. if s.SourceEngine == nil {
  27987. invalidParams.Add(request.NewErrParamRequired("SourceEngine"))
  27988. }
  27989. if s.SourceEngineVersion == nil {
  27990. invalidParams.Add(request.NewErrParamRequired("SourceEngineVersion"))
  27991. }
  27992. if invalidParams.Len() > 0 {
  27993. return invalidParams
  27994. }
  27995. return nil
  27996. }
  27997. // SetAllocatedStorage sets the AllocatedStorage field's value.
  27998. func (s *RestoreDBInstanceFromS3Input) SetAllocatedStorage(v int64) *RestoreDBInstanceFromS3Input {
  27999. s.AllocatedStorage = &v
  28000. return s
  28001. }
  28002. // SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
  28003. func (s *RestoreDBInstanceFromS3Input) SetAutoMinorVersionUpgrade(v bool) *RestoreDBInstanceFromS3Input {
  28004. s.AutoMinorVersionUpgrade = &v
  28005. return s
  28006. }
  28007. // SetAvailabilityZone sets the AvailabilityZone field's value.
  28008. func (s *RestoreDBInstanceFromS3Input) SetAvailabilityZone(v string) *RestoreDBInstanceFromS3Input {
  28009. s.AvailabilityZone = &v
  28010. return s
  28011. }
  28012. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  28013. func (s *RestoreDBInstanceFromS3Input) SetBackupRetentionPeriod(v int64) *RestoreDBInstanceFromS3Input {
  28014. s.BackupRetentionPeriod = &v
  28015. return s
  28016. }
  28017. // SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value.
  28018. func (s *RestoreDBInstanceFromS3Input) SetCopyTagsToSnapshot(v bool) *RestoreDBInstanceFromS3Input {
  28019. s.CopyTagsToSnapshot = &v
  28020. return s
  28021. }
  28022. // SetDBInstanceClass sets the DBInstanceClass field's value.
  28023. func (s *RestoreDBInstanceFromS3Input) SetDBInstanceClass(v string) *RestoreDBInstanceFromS3Input {
  28024. s.DBInstanceClass = &v
  28025. return s
  28026. }
  28027. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  28028. func (s *RestoreDBInstanceFromS3Input) SetDBInstanceIdentifier(v string) *RestoreDBInstanceFromS3Input {
  28029. s.DBInstanceIdentifier = &v
  28030. return s
  28031. }
  28032. // SetDBName sets the DBName field's value.
  28033. func (s *RestoreDBInstanceFromS3Input) SetDBName(v string) *RestoreDBInstanceFromS3Input {
  28034. s.DBName = &v
  28035. return s
  28036. }
  28037. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  28038. func (s *RestoreDBInstanceFromS3Input) SetDBParameterGroupName(v string) *RestoreDBInstanceFromS3Input {
  28039. s.DBParameterGroupName = &v
  28040. return s
  28041. }
  28042. // SetDBSecurityGroups sets the DBSecurityGroups field's value.
  28043. func (s *RestoreDBInstanceFromS3Input) SetDBSecurityGroups(v []*string) *RestoreDBInstanceFromS3Input {
  28044. s.DBSecurityGroups = v
  28045. return s
  28046. }
  28047. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  28048. func (s *RestoreDBInstanceFromS3Input) SetDBSubnetGroupName(v string) *RestoreDBInstanceFromS3Input {
  28049. s.DBSubnetGroupName = &v
  28050. return s
  28051. }
  28052. // SetDeletionProtection sets the DeletionProtection field's value.
  28053. func (s *RestoreDBInstanceFromS3Input) SetDeletionProtection(v bool) *RestoreDBInstanceFromS3Input {
  28054. s.DeletionProtection = &v
  28055. return s
  28056. }
  28057. // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value.
  28058. func (s *RestoreDBInstanceFromS3Input) SetEnableCloudwatchLogsExports(v []*string) *RestoreDBInstanceFromS3Input {
  28059. s.EnableCloudwatchLogsExports = v
  28060. return s
  28061. }
  28062. // SetEnableIAMDatabaseAuthentication sets the EnableIAMDatabaseAuthentication field's value.
  28063. func (s *RestoreDBInstanceFromS3Input) SetEnableIAMDatabaseAuthentication(v bool) *RestoreDBInstanceFromS3Input {
  28064. s.EnableIAMDatabaseAuthentication = &v
  28065. return s
  28066. }
  28067. // SetEnablePerformanceInsights sets the EnablePerformanceInsights field's value.
  28068. func (s *RestoreDBInstanceFromS3Input) SetEnablePerformanceInsights(v bool) *RestoreDBInstanceFromS3Input {
  28069. s.EnablePerformanceInsights = &v
  28070. return s
  28071. }
  28072. // SetEngine sets the Engine field's value.
  28073. func (s *RestoreDBInstanceFromS3Input) SetEngine(v string) *RestoreDBInstanceFromS3Input {
  28074. s.Engine = &v
  28075. return s
  28076. }
  28077. // SetEngineVersion sets the EngineVersion field's value.
  28078. func (s *RestoreDBInstanceFromS3Input) SetEngineVersion(v string) *RestoreDBInstanceFromS3Input {
  28079. s.EngineVersion = &v
  28080. return s
  28081. }
  28082. // SetIops sets the Iops field's value.
  28083. func (s *RestoreDBInstanceFromS3Input) SetIops(v int64) *RestoreDBInstanceFromS3Input {
  28084. s.Iops = &v
  28085. return s
  28086. }
  28087. // SetKmsKeyId sets the KmsKeyId field's value.
  28088. func (s *RestoreDBInstanceFromS3Input) SetKmsKeyId(v string) *RestoreDBInstanceFromS3Input {
  28089. s.KmsKeyId = &v
  28090. return s
  28091. }
  28092. // SetLicenseModel sets the LicenseModel field's value.
  28093. func (s *RestoreDBInstanceFromS3Input) SetLicenseModel(v string) *RestoreDBInstanceFromS3Input {
  28094. s.LicenseModel = &v
  28095. return s
  28096. }
  28097. // SetMasterUserPassword sets the MasterUserPassword field's value.
  28098. func (s *RestoreDBInstanceFromS3Input) SetMasterUserPassword(v string) *RestoreDBInstanceFromS3Input {
  28099. s.MasterUserPassword = &v
  28100. return s
  28101. }
  28102. // SetMasterUsername sets the MasterUsername field's value.
  28103. func (s *RestoreDBInstanceFromS3Input) SetMasterUsername(v string) *RestoreDBInstanceFromS3Input {
  28104. s.MasterUsername = &v
  28105. return s
  28106. }
  28107. // SetMonitoringInterval sets the MonitoringInterval field's value.
  28108. func (s *RestoreDBInstanceFromS3Input) SetMonitoringInterval(v int64) *RestoreDBInstanceFromS3Input {
  28109. s.MonitoringInterval = &v
  28110. return s
  28111. }
  28112. // SetMonitoringRoleArn sets the MonitoringRoleArn field's value.
  28113. func (s *RestoreDBInstanceFromS3Input) SetMonitoringRoleArn(v string) *RestoreDBInstanceFromS3Input {
  28114. s.MonitoringRoleArn = &v
  28115. return s
  28116. }
  28117. // SetMultiAZ sets the MultiAZ field's value.
  28118. func (s *RestoreDBInstanceFromS3Input) SetMultiAZ(v bool) *RestoreDBInstanceFromS3Input {
  28119. s.MultiAZ = &v
  28120. return s
  28121. }
  28122. // SetOptionGroupName sets the OptionGroupName field's value.
  28123. func (s *RestoreDBInstanceFromS3Input) SetOptionGroupName(v string) *RestoreDBInstanceFromS3Input {
  28124. s.OptionGroupName = &v
  28125. return s
  28126. }
  28127. // SetPerformanceInsightsKMSKeyId sets the PerformanceInsightsKMSKeyId field's value.
  28128. func (s *RestoreDBInstanceFromS3Input) SetPerformanceInsightsKMSKeyId(v string) *RestoreDBInstanceFromS3Input {
  28129. s.PerformanceInsightsKMSKeyId = &v
  28130. return s
  28131. }
  28132. // SetPerformanceInsightsRetentionPeriod sets the PerformanceInsightsRetentionPeriod field's value.
  28133. func (s *RestoreDBInstanceFromS3Input) SetPerformanceInsightsRetentionPeriod(v int64) *RestoreDBInstanceFromS3Input {
  28134. s.PerformanceInsightsRetentionPeriod = &v
  28135. return s
  28136. }
  28137. // SetPort sets the Port field's value.
  28138. func (s *RestoreDBInstanceFromS3Input) SetPort(v int64) *RestoreDBInstanceFromS3Input {
  28139. s.Port = &v
  28140. return s
  28141. }
  28142. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  28143. func (s *RestoreDBInstanceFromS3Input) SetPreferredBackupWindow(v string) *RestoreDBInstanceFromS3Input {
  28144. s.PreferredBackupWindow = &v
  28145. return s
  28146. }
  28147. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  28148. func (s *RestoreDBInstanceFromS3Input) SetPreferredMaintenanceWindow(v string) *RestoreDBInstanceFromS3Input {
  28149. s.PreferredMaintenanceWindow = &v
  28150. return s
  28151. }
  28152. // SetProcessorFeatures sets the ProcessorFeatures field's value.
  28153. func (s *RestoreDBInstanceFromS3Input) SetProcessorFeatures(v []*ProcessorFeature) *RestoreDBInstanceFromS3Input {
  28154. s.ProcessorFeatures = v
  28155. return s
  28156. }
  28157. // SetPubliclyAccessible sets the PubliclyAccessible field's value.
  28158. func (s *RestoreDBInstanceFromS3Input) SetPubliclyAccessible(v bool) *RestoreDBInstanceFromS3Input {
  28159. s.PubliclyAccessible = &v
  28160. return s
  28161. }
  28162. // SetS3BucketName sets the S3BucketName field's value.
  28163. func (s *RestoreDBInstanceFromS3Input) SetS3BucketName(v string) *RestoreDBInstanceFromS3Input {
  28164. s.S3BucketName = &v
  28165. return s
  28166. }
  28167. // SetS3IngestionRoleArn sets the S3IngestionRoleArn field's value.
  28168. func (s *RestoreDBInstanceFromS3Input) SetS3IngestionRoleArn(v string) *RestoreDBInstanceFromS3Input {
  28169. s.S3IngestionRoleArn = &v
  28170. return s
  28171. }
  28172. // SetS3Prefix sets the S3Prefix field's value.
  28173. func (s *RestoreDBInstanceFromS3Input) SetS3Prefix(v string) *RestoreDBInstanceFromS3Input {
  28174. s.S3Prefix = &v
  28175. return s
  28176. }
  28177. // SetSourceEngine sets the SourceEngine field's value.
  28178. func (s *RestoreDBInstanceFromS3Input) SetSourceEngine(v string) *RestoreDBInstanceFromS3Input {
  28179. s.SourceEngine = &v
  28180. return s
  28181. }
  28182. // SetSourceEngineVersion sets the SourceEngineVersion field's value.
  28183. func (s *RestoreDBInstanceFromS3Input) SetSourceEngineVersion(v string) *RestoreDBInstanceFromS3Input {
  28184. s.SourceEngineVersion = &v
  28185. return s
  28186. }
  28187. // SetStorageEncrypted sets the StorageEncrypted field's value.
  28188. func (s *RestoreDBInstanceFromS3Input) SetStorageEncrypted(v bool) *RestoreDBInstanceFromS3Input {
  28189. s.StorageEncrypted = &v
  28190. return s
  28191. }
  28192. // SetStorageType sets the StorageType field's value.
  28193. func (s *RestoreDBInstanceFromS3Input) SetStorageType(v string) *RestoreDBInstanceFromS3Input {
  28194. s.StorageType = &v
  28195. return s
  28196. }
  28197. // SetTags sets the Tags field's value.
  28198. func (s *RestoreDBInstanceFromS3Input) SetTags(v []*Tag) *RestoreDBInstanceFromS3Input {
  28199. s.Tags = v
  28200. return s
  28201. }
  28202. // SetUseDefaultProcessorFeatures sets the UseDefaultProcessorFeatures field's value.
  28203. func (s *RestoreDBInstanceFromS3Input) SetUseDefaultProcessorFeatures(v bool) *RestoreDBInstanceFromS3Input {
  28204. s.UseDefaultProcessorFeatures = &v
  28205. return s
  28206. }
  28207. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  28208. func (s *RestoreDBInstanceFromS3Input) SetVpcSecurityGroupIds(v []*string) *RestoreDBInstanceFromS3Input {
  28209. s.VpcSecurityGroupIds = v
  28210. return s
  28211. }
  28212. type RestoreDBInstanceFromS3Output struct {
  28213. _ struct{} `type:"structure"`
  28214. // Contains the details of an Amazon RDS DB instance.
  28215. //
  28216. // This data type is used as a response element in the DescribeDBInstances action.
  28217. DBInstance *DBInstance `type:"structure"`
  28218. }
  28219. // String returns the string representation
  28220. func (s RestoreDBInstanceFromS3Output) String() string {
  28221. return awsutil.Prettify(s)
  28222. }
  28223. // GoString returns the string representation
  28224. func (s RestoreDBInstanceFromS3Output) GoString() string {
  28225. return s.String()
  28226. }
  28227. // SetDBInstance sets the DBInstance field's value.
  28228. func (s *RestoreDBInstanceFromS3Output) SetDBInstance(v *DBInstance) *RestoreDBInstanceFromS3Output {
  28229. s.DBInstance = v
  28230. return s
  28231. }
  28232. type RestoreDBInstanceToPointInTimeInput struct {
  28233. _ struct{} `type:"structure"`
  28234. // Indicates that minor version upgrades are applied automatically to the DB
  28235. // instance during the maintenance window.
  28236. AutoMinorVersionUpgrade *bool `type:"boolean"`
  28237. // The EC2 Availability Zone that the DB instance is created in.
  28238. //
  28239. // Default: A random, system-chosen Availability Zone.
  28240. //
  28241. // Constraint: You can't specify the AvailabilityZone parameter if the MultiAZ
  28242. // parameter is set to true.
  28243. //
  28244. // Example: us-east-1a
  28245. AvailabilityZone *string `type:"string"`
  28246. // True to copy all tags from the restored DB instance to snapshots of the DB
  28247. // instance, and otherwise false. The default is false.
  28248. CopyTagsToSnapshot *bool `type:"boolean"`
  28249. // The compute and memory capacity of the Amazon RDS DB instance, for example,
  28250. // db.m4.large. Not all DB instance classes are available in all AWS Regions,
  28251. // or for all database engines. For the full list of DB instance classes, and
  28252. // availability for your engine, see DB Instance Class (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html)
  28253. // in the Amazon RDS User Guide.
  28254. //
  28255. // Default: The same DBInstanceClass as the original DB instance.
  28256. DBInstanceClass *string `type:"string"`
  28257. // The database name for the restored DB instance.
  28258. //
  28259. // This parameter is not used for the MySQL or MariaDB engines.
  28260. DBName *string `type:"string"`
  28261. // The name of the DB parameter group to associate with this DB instance. If
  28262. // this argument is omitted, the default DBParameterGroup for the specified
  28263. // engine is used.
  28264. //
  28265. // Constraints:
  28266. //
  28267. // * If supplied, must match the name of an existing DBParameterGroup.
  28268. //
  28269. // * Must be 1 to 255 letters, numbers, or hyphens.
  28270. //
  28271. // * First character must be a letter.
  28272. //
  28273. // * Can't end with a hyphen or contain two consecutive hyphens.
  28274. DBParameterGroupName *string `type:"string"`
  28275. // The DB subnet group name to use for the new instance.
  28276. //
  28277. // Constraints: If supplied, must match the name of an existing DBSubnetGroup.
  28278. //
  28279. // Example: mySubnetgroup
  28280. DBSubnetGroupName *string `type:"string"`
  28281. // Indicates if the DB instance should have deletion protection enabled. The
  28282. // database can't be deleted when this value is set to true. The default is
  28283. // false. For more information, see Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html).
  28284. DeletionProtection *bool `type:"boolean"`
  28285. // Specify the Active Directory Domain to restore the instance in.
  28286. Domain *string `type:"string"`
  28287. // Specify the name of the IAM role to be used when making API calls to the
  28288. // Directory Service.
  28289. DomainIAMRoleName *string `type:"string"`
  28290. // The list of logs that the restored DB instance is to export to CloudWatch
  28291. // Logs. The values in the list depend on the DB engine being used. For more
  28292. // information, see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch)
  28293. // in the Amazon RDS User Guide.
  28294. EnableCloudwatchLogsExports []*string `type:"list"`
  28295. // True to enable mapping of AWS Identity and Access Management (IAM) accounts
  28296. // to database accounts, and otherwise false.
  28297. //
  28298. // You can enable IAM database authentication for the following database engines
  28299. //
  28300. // * For MySQL 5.6, minor version 5.6.34 or higher
  28301. //
  28302. // * For MySQL 5.7, minor version 5.7.16 or higher
  28303. //
  28304. // Default: false
  28305. EnableIAMDatabaseAuthentication *bool `type:"boolean"`
  28306. // The database engine to use for the new instance.
  28307. //
  28308. // Default: The same as source
  28309. //
  28310. // Constraint: Must be compatible with the engine of the source
  28311. //
  28312. // Valid Values:
  28313. //
  28314. // * mariadb
  28315. //
  28316. // * mysql
  28317. //
  28318. // * oracle-ee
  28319. //
  28320. // * oracle-se2
  28321. //
  28322. // * oracle-se1
  28323. //
  28324. // * oracle-se
  28325. //
  28326. // * postgres
  28327. //
  28328. // * sqlserver-ee
  28329. //
  28330. // * sqlserver-se
  28331. //
  28332. // * sqlserver-ex
  28333. //
  28334. // * sqlserver-web
  28335. Engine *string `type:"string"`
  28336. // The amount of Provisioned IOPS (input/output operations per second) to be
  28337. // initially allocated for the DB instance.
  28338. //
  28339. // Constraints: Must be an integer greater than 1000.
  28340. //
  28341. // SQL Server
  28342. //
  28343. // Setting the IOPS value for the SQL Server database engine is not supported.
  28344. Iops *int64 `type:"integer"`
  28345. // License model information for the restored DB instance.
  28346. //
  28347. // Default: Same as source.
  28348. //
  28349. // Valid values: license-included | bring-your-own-license | general-public-license
  28350. LicenseModel *string `type:"string"`
  28351. // Specifies if the DB instance is a Multi-AZ deployment.
  28352. //
  28353. // Constraint: You can't specify the AvailabilityZone parameter if the MultiAZ
  28354. // parameter is set to true.
  28355. MultiAZ *bool `type:"boolean"`
  28356. // The name of the option group to be used for the restored DB instance.
  28357. //
  28358. // Permanent options, such as the TDE option for Oracle Advanced Security TDE,
  28359. // can't be removed from an option group, and that option group can't be removed
  28360. // from a DB instance once it is associated with a DB instance
  28361. OptionGroupName *string `type:"string"`
  28362. // The port number on which the database accepts connections.
  28363. //
  28364. // Constraints: Value must be 1150-65535
  28365. //
  28366. // Default: The same port as the original DB instance.
  28367. Port *int64 `type:"integer"`
  28368. // The number of CPU cores and the number of threads per core for the DB instance
  28369. // class of the DB instance.
  28370. ProcessorFeatures []*ProcessorFeature `locationNameList:"ProcessorFeature" type:"list"`
  28371. // Specifies the accessibility options for the DB instance. A value of true
  28372. // specifies an Internet-facing instance with a publicly resolvable DNS name,
  28373. // which resolves to a public IP address. A value of false specifies an internal
  28374. // instance with a DNS name that resolves to a private IP address. For more
  28375. // information, see CreateDBInstance.
  28376. PubliclyAccessible *bool `type:"boolean"`
  28377. // The date and time to restore from.
  28378. //
  28379. // Valid Values: Value must be a time in Universal Coordinated Time (UTC) format
  28380. //
  28381. // Constraints:
  28382. //
  28383. // * Must be before the latest restorable time for the DB instance
  28384. //
  28385. // * Can't be specified if UseLatestRestorableTime parameter is true
  28386. //
  28387. // Example: 2009-09-07T23:45:00Z
  28388. RestoreTime *time.Time `type:"timestamp"`
  28389. // The identifier of the source DB instance from which to restore.
  28390. //
  28391. // Constraints:
  28392. //
  28393. // * Must match the identifier of an existing DB instance.
  28394. SourceDBInstanceIdentifier *string `type:"string"`
  28395. // The resource ID of the source DB instance from which to restore.
  28396. SourceDbiResourceId *string `type:"string"`
  28397. // Specifies the storage type to be associated with the DB instance.
  28398. //
  28399. // Valid values: standard | gp2 | io1
  28400. //
  28401. // If you specify io1, you must also include a value for the Iops parameter.
  28402. //
  28403. // Default: io1 if the Iops parameter is specified, otherwise standard
  28404. StorageType *string `type:"string"`
  28405. // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
  28406. // in the Amazon RDS User Guide.
  28407. Tags []*Tag `locationNameList:"Tag" type:"list"`
  28408. // The name of the new DB instance to be created.
  28409. //
  28410. // Constraints:
  28411. //
  28412. // * Must contain from 1 to 63 letters, numbers, or hyphens
  28413. //
  28414. // * First character must be a letter
  28415. //
  28416. // * Can't end with a hyphen or contain two consecutive hyphens
  28417. //
  28418. // TargetDBInstanceIdentifier is a required field
  28419. TargetDBInstanceIdentifier *string `type:"string" required:"true"`
  28420. // The ARN from the key store with which to associate the instance for TDE encryption.
  28421. TdeCredentialArn *string `type:"string"`
  28422. // The password for the given ARN from the key store in order to access the
  28423. // device.
  28424. TdeCredentialPassword *string `type:"string"`
  28425. // A value that specifies that the DB instance class of the DB instance uses
  28426. // its default processor features.
  28427. UseDefaultProcessorFeatures *bool `type:"boolean"`
  28428. // Specifies whether (true) or not (false) the DB instance is restored from
  28429. // the latest backup time.
  28430. //
  28431. // Default: false
  28432. //
  28433. // Constraints: Can't be specified if RestoreTime parameter is provided.
  28434. UseLatestRestorableTime *bool `type:"boolean"`
  28435. // A list of EC2 VPC security groups to associate with this DB instance.
  28436. //
  28437. // Default: The default EC2 VPC security group for the DB subnet group's VPC.
  28438. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  28439. }
  28440. // String returns the string representation
  28441. func (s RestoreDBInstanceToPointInTimeInput) String() string {
  28442. return awsutil.Prettify(s)
  28443. }
  28444. // GoString returns the string representation
  28445. func (s RestoreDBInstanceToPointInTimeInput) GoString() string {
  28446. return s.String()
  28447. }
  28448. // Validate inspects the fields of the type to determine if they are valid.
  28449. func (s *RestoreDBInstanceToPointInTimeInput) Validate() error {
  28450. invalidParams := request.ErrInvalidParams{Context: "RestoreDBInstanceToPointInTimeInput"}
  28451. if s.TargetDBInstanceIdentifier == nil {
  28452. invalidParams.Add(request.NewErrParamRequired("TargetDBInstanceIdentifier"))
  28453. }
  28454. if invalidParams.Len() > 0 {
  28455. return invalidParams
  28456. }
  28457. return nil
  28458. }
  28459. // SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
  28460. func (s *RestoreDBInstanceToPointInTimeInput) SetAutoMinorVersionUpgrade(v bool) *RestoreDBInstanceToPointInTimeInput {
  28461. s.AutoMinorVersionUpgrade = &v
  28462. return s
  28463. }
  28464. // SetAvailabilityZone sets the AvailabilityZone field's value.
  28465. func (s *RestoreDBInstanceToPointInTimeInput) SetAvailabilityZone(v string) *RestoreDBInstanceToPointInTimeInput {
  28466. s.AvailabilityZone = &v
  28467. return s
  28468. }
  28469. // SetCopyTagsToSnapshot sets the CopyTagsToSnapshot field's value.
  28470. func (s *RestoreDBInstanceToPointInTimeInput) SetCopyTagsToSnapshot(v bool) *RestoreDBInstanceToPointInTimeInput {
  28471. s.CopyTagsToSnapshot = &v
  28472. return s
  28473. }
  28474. // SetDBInstanceClass sets the DBInstanceClass field's value.
  28475. func (s *RestoreDBInstanceToPointInTimeInput) SetDBInstanceClass(v string) *RestoreDBInstanceToPointInTimeInput {
  28476. s.DBInstanceClass = &v
  28477. return s
  28478. }
  28479. // SetDBName sets the DBName field's value.
  28480. func (s *RestoreDBInstanceToPointInTimeInput) SetDBName(v string) *RestoreDBInstanceToPointInTimeInput {
  28481. s.DBName = &v
  28482. return s
  28483. }
  28484. // SetDBParameterGroupName sets the DBParameterGroupName field's value.
  28485. func (s *RestoreDBInstanceToPointInTimeInput) SetDBParameterGroupName(v string) *RestoreDBInstanceToPointInTimeInput {
  28486. s.DBParameterGroupName = &v
  28487. return s
  28488. }
  28489. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  28490. func (s *RestoreDBInstanceToPointInTimeInput) SetDBSubnetGroupName(v string) *RestoreDBInstanceToPointInTimeInput {
  28491. s.DBSubnetGroupName = &v
  28492. return s
  28493. }
  28494. // SetDeletionProtection sets the DeletionProtection field's value.
  28495. func (s *RestoreDBInstanceToPointInTimeInput) SetDeletionProtection(v bool) *RestoreDBInstanceToPointInTimeInput {
  28496. s.DeletionProtection = &v
  28497. return s
  28498. }
  28499. // SetDomain sets the Domain field's value.
  28500. func (s *RestoreDBInstanceToPointInTimeInput) SetDomain(v string) *RestoreDBInstanceToPointInTimeInput {
  28501. s.Domain = &v
  28502. return s
  28503. }
  28504. // SetDomainIAMRoleName sets the DomainIAMRoleName field's value.
  28505. func (s *RestoreDBInstanceToPointInTimeInput) SetDomainIAMRoleName(v string) *RestoreDBInstanceToPointInTimeInput {
  28506. s.DomainIAMRoleName = &v
  28507. return s
  28508. }
  28509. // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value.
  28510. func (s *RestoreDBInstanceToPointInTimeInput) SetEnableCloudwatchLogsExports(v []*string) *RestoreDBInstanceToPointInTimeInput {
  28511. s.EnableCloudwatchLogsExports = v
  28512. return s
  28513. }
  28514. // SetEnableIAMDatabaseAuthentication sets the EnableIAMDatabaseAuthentication field's value.
  28515. func (s *RestoreDBInstanceToPointInTimeInput) SetEnableIAMDatabaseAuthentication(v bool) *RestoreDBInstanceToPointInTimeInput {
  28516. s.EnableIAMDatabaseAuthentication = &v
  28517. return s
  28518. }
  28519. // SetEngine sets the Engine field's value.
  28520. func (s *RestoreDBInstanceToPointInTimeInput) SetEngine(v string) *RestoreDBInstanceToPointInTimeInput {
  28521. s.Engine = &v
  28522. return s
  28523. }
  28524. // SetIops sets the Iops field's value.
  28525. func (s *RestoreDBInstanceToPointInTimeInput) SetIops(v int64) *RestoreDBInstanceToPointInTimeInput {
  28526. s.Iops = &v
  28527. return s
  28528. }
  28529. // SetLicenseModel sets the LicenseModel field's value.
  28530. func (s *RestoreDBInstanceToPointInTimeInput) SetLicenseModel(v string) *RestoreDBInstanceToPointInTimeInput {
  28531. s.LicenseModel = &v
  28532. return s
  28533. }
  28534. // SetMultiAZ sets the MultiAZ field's value.
  28535. func (s *RestoreDBInstanceToPointInTimeInput) SetMultiAZ(v bool) *RestoreDBInstanceToPointInTimeInput {
  28536. s.MultiAZ = &v
  28537. return s
  28538. }
  28539. // SetOptionGroupName sets the OptionGroupName field's value.
  28540. func (s *RestoreDBInstanceToPointInTimeInput) SetOptionGroupName(v string) *RestoreDBInstanceToPointInTimeInput {
  28541. s.OptionGroupName = &v
  28542. return s
  28543. }
  28544. // SetPort sets the Port field's value.
  28545. func (s *RestoreDBInstanceToPointInTimeInput) SetPort(v int64) *RestoreDBInstanceToPointInTimeInput {
  28546. s.Port = &v
  28547. return s
  28548. }
  28549. // SetProcessorFeatures sets the ProcessorFeatures field's value.
  28550. func (s *RestoreDBInstanceToPointInTimeInput) SetProcessorFeatures(v []*ProcessorFeature) *RestoreDBInstanceToPointInTimeInput {
  28551. s.ProcessorFeatures = v
  28552. return s
  28553. }
  28554. // SetPubliclyAccessible sets the PubliclyAccessible field's value.
  28555. func (s *RestoreDBInstanceToPointInTimeInput) SetPubliclyAccessible(v bool) *RestoreDBInstanceToPointInTimeInput {
  28556. s.PubliclyAccessible = &v
  28557. return s
  28558. }
  28559. // SetRestoreTime sets the RestoreTime field's value.
  28560. func (s *RestoreDBInstanceToPointInTimeInput) SetRestoreTime(v time.Time) *RestoreDBInstanceToPointInTimeInput {
  28561. s.RestoreTime = &v
  28562. return s
  28563. }
  28564. // SetSourceDBInstanceIdentifier sets the SourceDBInstanceIdentifier field's value.
  28565. func (s *RestoreDBInstanceToPointInTimeInput) SetSourceDBInstanceIdentifier(v string) *RestoreDBInstanceToPointInTimeInput {
  28566. s.SourceDBInstanceIdentifier = &v
  28567. return s
  28568. }
  28569. // SetSourceDbiResourceId sets the SourceDbiResourceId field's value.
  28570. func (s *RestoreDBInstanceToPointInTimeInput) SetSourceDbiResourceId(v string) *RestoreDBInstanceToPointInTimeInput {
  28571. s.SourceDbiResourceId = &v
  28572. return s
  28573. }
  28574. // SetStorageType sets the StorageType field's value.
  28575. func (s *RestoreDBInstanceToPointInTimeInput) SetStorageType(v string) *RestoreDBInstanceToPointInTimeInput {
  28576. s.StorageType = &v
  28577. return s
  28578. }
  28579. // SetTags sets the Tags field's value.
  28580. func (s *RestoreDBInstanceToPointInTimeInput) SetTags(v []*Tag) *RestoreDBInstanceToPointInTimeInput {
  28581. s.Tags = v
  28582. return s
  28583. }
  28584. // SetTargetDBInstanceIdentifier sets the TargetDBInstanceIdentifier field's value.
  28585. func (s *RestoreDBInstanceToPointInTimeInput) SetTargetDBInstanceIdentifier(v string) *RestoreDBInstanceToPointInTimeInput {
  28586. s.TargetDBInstanceIdentifier = &v
  28587. return s
  28588. }
  28589. // SetTdeCredentialArn sets the TdeCredentialArn field's value.
  28590. func (s *RestoreDBInstanceToPointInTimeInput) SetTdeCredentialArn(v string) *RestoreDBInstanceToPointInTimeInput {
  28591. s.TdeCredentialArn = &v
  28592. return s
  28593. }
  28594. // SetTdeCredentialPassword sets the TdeCredentialPassword field's value.
  28595. func (s *RestoreDBInstanceToPointInTimeInput) SetTdeCredentialPassword(v string) *RestoreDBInstanceToPointInTimeInput {
  28596. s.TdeCredentialPassword = &v
  28597. return s
  28598. }
  28599. // SetUseDefaultProcessorFeatures sets the UseDefaultProcessorFeatures field's value.
  28600. func (s *RestoreDBInstanceToPointInTimeInput) SetUseDefaultProcessorFeatures(v bool) *RestoreDBInstanceToPointInTimeInput {
  28601. s.UseDefaultProcessorFeatures = &v
  28602. return s
  28603. }
  28604. // SetUseLatestRestorableTime sets the UseLatestRestorableTime field's value.
  28605. func (s *RestoreDBInstanceToPointInTimeInput) SetUseLatestRestorableTime(v bool) *RestoreDBInstanceToPointInTimeInput {
  28606. s.UseLatestRestorableTime = &v
  28607. return s
  28608. }
  28609. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  28610. func (s *RestoreDBInstanceToPointInTimeInput) SetVpcSecurityGroupIds(v []*string) *RestoreDBInstanceToPointInTimeInput {
  28611. s.VpcSecurityGroupIds = v
  28612. return s
  28613. }
  28614. type RestoreDBInstanceToPointInTimeOutput struct {
  28615. _ struct{} `type:"structure"`
  28616. // Contains the details of an Amazon RDS DB instance.
  28617. //
  28618. // This data type is used as a response element in the DescribeDBInstances action.
  28619. DBInstance *DBInstance `type:"structure"`
  28620. }
  28621. // String returns the string representation
  28622. func (s RestoreDBInstanceToPointInTimeOutput) String() string {
  28623. return awsutil.Prettify(s)
  28624. }
  28625. // GoString returns the string representation
  28626. func (s RestoreDBInstanceToPointInTimeOutput) GoString() string {
  28627. return s.String()
  28628. }
  28629. // SetDBInstance sets the DBInstance field's value.
  28630. func (s *RestoreDBInstanceToPointInTimeOutput) SetDBInstance(v *DBInstance) *RestoreDBInstanceToPointInTimeOutput {
  28631. s.DBInstance = v
  28632. return s
  28633. }
  28634. // Earliest and latest time an instance can be restored to:
  28635. type RestoreWindow struct {
  28636. _ struct{} `type:"structure"`
  28637. // The earliest time you can restore an instance to.
  28638. EarliestTime *time.Time `type:"timestamp"`
  28639. // The latest time you can restore an instance to.
  28640. LatestTime *time.Time `type:"timestamp"`
  28641. }
  28642. // String returns the string representation
  28643. func (s RestoreWindow) String() string {
  28644. return awsutil.Prettify(s)
  28645. }
  28646. // GoString returns the string representation
  28647. func (s RestoreWindow) GoString() string {
  28648. return s.String()
  28649. }
  28650. // SetEarliestTime sets the EarliestTime field's value.
  28651. func (s *RestoreWindow) SetEarliestTime(v time.Time) *RestoreWindow {
  28652. s.EarliestTime = &v
  28653. return s
  28654. }
  28655. // SetLatestTime sets the LatestTime field's value.
  28656. func (s *RestoreWindow) SetLatestTime(v time.Time) *RestoreWindow {
  28657. s.LatestTime = &v
  28658. return s
  28659. }
  28660. type RevokeDBSecurityGroupIngressInput struct {
  28661. _ struct{} `type:"structure"`
  28662. // The IP range to revoke access from. Must be a valid CIDR range. If CIDRIP
  28663. // is specified, EC2SecurityGroupName, EC2SecurityGroupId and EC2SecurityGroupOwnerId
  28664. // can't be provided.
  28665. CIDRIP *string `type:"string"`
  28666. // The name of the DB security group to revoke ingress from.
  28667. //
  28668. // DBSecurityGroupName is a required field
  28669. DBSecurityGroupName *string `type:"string" required:"true"`
  28670. // The id of the EC2 security group to revoke access from. For VPC DB security
  28671. // groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId
  28672. // and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
  28673. EC2SecurityGroupId *string `type:"string"`
  28674. // The name of the EC2 security group to revoke access from. For VPC DB security
  28675. // groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId
  28676. // and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
  28677. EC2SecurityGroupName *string `type:"string"`
  28678. // The AWS Account Number of the owner of the EC2 security group specified in
  28679. // the EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable
  28680. // value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise,
  28681. // EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId
  28682. // must be provided.
  28683. EC2SecurityGroupOwnerId *string `type:"string"`
  28684. }
  28685. // String returns the string representation
  28686. func (s RevokeDBSecurityGroupIngressInput) String() string {
  28687. return awsutil.Prettify(s)
  28688. }
  28689. // GoString returns the string representation
  28690. func (s RevokeDBSecurityGroupIngressInput) GoString() string {
  28691. return s.String()
  28692. }
  28693. // Validate inspects the fields of the type to determine if they are valid.
  28694. func (s *RevokeDBSecurityGroupIngressInput) Validate() error {
  28695. invalidParams := request.ErrInvalidParams{Context: "RevokeDBSecurityGroupIngressInput"}
  28696. if s.DBSecurityGroupName == nil {
  28697. invalidParams.Add(request.NewErrParamRequired("DBSecurityGroupName"))
  28698. }
  28699. if invalidParams.Len() > 0 {
  28700. return invalidParams
  28701. }
  28702. return nil
  28703. }
  28704. // SetCIDRIP sets the CIDRIP field's value.
  28705. func (s *RevokeDBSecurityGroupIngressInput) SetCIDRIP(v string) *RevokeDBSecurityGroupIngressInput {
  28706. s.CIDRIP = &v
  28707. return s
  28708. }
  28709. // SetDBSecurityGroupName sets the DBSecurityGroupName field's value.
  28710. func (s *RevokeDBSecurityGroupIngressInput) SetDBSecurityGroupName(v string) *RevokeDBSecurityGroupIngressInput {
  28711. s.DBSecurityGroupName = &v
  28712. return s
  28713. }
  28714. // SetEC2SecurityGroupId sets the EC2SecurityGroupId field's value.
  28715. func (s *RevokeDBSecurityGroupIngressInput) SetEC2SecurityGroupId(v string) *RevokeDBSecurityGroupIngressInput {
  28716. s.EC2SecurityGroupId = &v
  28717. return s
  28718. }
  28719. // SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value.
  28720. func (s *RevokeDBSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *RevokeDBSecurityGroupIngressInput {
  28721. s.EC2SecurityGroupName = &v
  28722. return s
  28723. }
  28724. // SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value.
  28725. func (s *RevokeDBSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *RevokeDBSecurityGroupIngressInput {
  28726. s.EC2SecurityGroupOwnerId = &v
  28727. return s
  28728. }
  28729. type RevokeDBSecurityGroupIngressOutput struct {
  28730. _ struct{} `type:"structure"`
  28731. // Contains the details for an Amazon RDS DB security group.
  28732. //
  28733. // This data type is used as a response element in the DescribeDBSecurityGroups
  28734. // action.
  28735. DBSecurityGroup *DBSecurityGroup `type:"structure"`
  28736. }
  28737. // String returns the string representation
  28738. func (s RevokeDBSecurityGroupIngressOutput) String() string {
  28739. return awsutil.Prettify(s)
  28740. }
  28741. // GoString returns the string representation
  28742. func (s RevokeDBSecurityGroupIngressOutput) GoString() string {
  28743. return s.String()
  28744. }
  28745. // SetDBSecurityGroup sets the DBSecurityGroup field's value.
  28746. func (s *RevokeDBSecurityGroupIngressOutput) SetDBSecurityGroup(v *DBSecurityGroup) *RevokeDBSecurityGroupIngressOutput {
  28747. s.DBSecurityGroup = v
  28748. return s
  28749. }
  28750. // Contains the scaling configuration of an Aurora Serverless DB cluster.
  28751. //
  28752. // For more information, see Using Amazon Aurora Serverless (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html)
  28753. // in the Amazon Aurora User Guide.
  28754. type ScalingConfiguration struct {
  28755. _ struct{} `type:"structure"`
  28756. // A value that specifies whether to allow or disallow automatic pause for an
  28757. // Aurora DB cluster in serverless DB engine mode. A DB cluster can be paused
  28758. // only when it's idle (it has no connections).
  28759. //
  28760. // If a DB cluster is paused for more than seven days, the DB cluster might
  28761. // be backed up with a snapshot. In this case, the DB cluster is restored when
  28762. // there is a request to connect to it.
  28763. AutoPause *bool `type:"boolean"`
  28764. // The maximum capacity for an Aurora DB cluster in serverless DB engine mode.
  28765. //
  28766. // Valid capacity values are 2, 4, 8, 16, 32, 64, 128, and 256.
  28767. //
  28768. // The maximum capacity must be greater than or equal to the minimum capacity.
  28769. MaxCapacity *int64 `type:"integer"`
  28770. // The minimum capacity for an Aurora DB cluster in serverless DB engine mode.
  28771. //
  28772. // Valid capacity values are 2, 4, 8, 16, 32, 64, 128, and 256.
  28773. //
  28774. // The minimum capacity must be less than or equal to the maximum capacity.
  28775. MinCapacity *int64 `type:"integer"`
  28776. // The time, in seconds, before an Aurora DB cluster in serverless mode is paused.
  28777. SecondsUntilAutoPause *int64 `type:"integer"`
  28778. }
  28779. // String returns the string representation
  28780. func (s ScalingConfiguration) String() string {
  28781. return awsutil.Prettify(s)
  28782. }
  28783. // GoString returns the string representation
  28784. func (s ScalingConfiguration) GoString() string {
  28785. return s.String()
  28786. }
  28787. // SetAutoPause sets the AutoPause field's value.
  28788. func (s *ScalingConfiguration) SetAutoPause(v bool) *ScalingConfiguration {
  28789. s.AutoPause = &v
  28790. return s
  28791. }
  28792. // SetMaxCapacity sets the MaxCapacity field's value.
  28793. func (s *ScalingConfiguration) SetMaxCapacity(v int64) *ScalingConfiguration {
  28794. s.MaxCapacity = &v
  28795. return s
  28796. }
  28797. // SetMinCapacity sets the MinCapacity field's value.
  28798. func (s *ScalingConfiguration) SetMinCapacity(v int64) *ScalingConfiguration {
  28799. s.MinCapacity = &v
  28800. return s
  28801. }
  28802. // SetSecondsUntilAutoPause sets the SecondsUntilAutoPause field's value.
  28803. func (s *ScalingConfiguration) SetSecondsUntilAutoPause(v int64) *ScalingConfiguration {
  28804. s.SecondsUntilAutoPause = &v
  28805. return s
  28806. }
  28807. // Shows the scaling configuration for an Aurora DB cluster in serverless DB
  28808. // engine mode.
  28809. //
  28810. // For more information, see Using Amazon Aurora Serverless (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html)
  28811. // in the Amazon Aurora User Guide.
  28812. type ScalingConfigurationInfo struct {
  28813. _ struct{} `type:"structure"`
  28814. // A value that indicates whether automatic pause is allowed for the Aurora
  28815. // DB cluster in serverless DB engine mode.
  28816. AutoPause *bool `type:"boolean"`
  28817. // The maximum capacity for an Aurora DB cluster in serverless DB engine mode.
  28818. MaxCapacity *int64 `type:"integer"`
  28819. // The maximum capacity for the Aurora DB cluster in serverless DB engine mode.
  28820. MinCapacity *int64 `type:"integer"`
  28821. // The remaining amount of time, in seconds, before the Aurora DB cluster in
  28822. // serverless mode is paused. A DB cluster can be paused only when it's idle
  28823. // (it has no connections).
  28824. SecondsUntilAutoPause *int64 `type:"integer"`
  28825. }
  28826. // String returns the string representation
  28827. func (s ScalingConfigurationInfo) String() string {
  28828. return awsutil.Prettify(s)
  28829. }
  28830. // GoString returns the string representation
  28831. func (s ScalingConfigurationInfo) GoString() string {
  28832. return s.String()
  28833. }
  28834. // SetAutoPause sets the AutoPause field's value.
  28835. func (s *ScalingConfigurationInfo) SetAutoPause(v bool) *ScalingConfigurationInfo {
  28836. s.AutoPause = &v
  28837. return s
  28838. }
  28839. // SetMaxCapacity sets the MaxCapacity field's value.
  28840. func (s *ScalingConfigurationInfo) SetMaxCapacity(v int64) *ScalingConfigurationInfo {
  28841. s.MaxCapacity = &v
  28842. return s
  28843. }
  28844. // SetMinCapacity sets the MinCapacity field's value.
  28845. func (s *ScalingConfigurationInfo) SetMinCapacity(v int64) *ScalingConfigurationInfo {
  28846. s.MinCapacity = &v
  28847. return s
  28848. }
  28849. // SetSecondsUntilAutoPause sets the SecondsUntilAutoPause field's value.
  28850. func (s *ScalingConfigurationInfo) SetSecondsUntilAutoPause(v int64) *ScalingConfigurationInfo {
  28851. s.SecondsUntilAutoPause = &v
  28852. return s
  28853. }
  28854. // Contains an AWS Region name as the result of a successful call to the DescribeSourceRegions
  28855. // action.
  28856. type SourceRegion struct {
  28857. _ struct{} `type:"structure"`
  28858. // The endpoint for the source AWS Region endpoint.
  28859. Endpoint *string `type:"string"`
  28860. // The name of the source AWS Region.
  28861. RegionName *string `type:"string"`
  28862. // The status of the source AWS Region.
  28863. Status *string `type:"string"`
  28864. }
  28865. // String returns the string representation
  28866. func (s SourceRegion) String() string {
  28867. return awsutil.Prettify(s)
  28868. }
  28869. // GoString returns the string representation
  28870. func (s SourceRegion) GoString() string {
  28871. return s.String()
  28872. }
  28873. // SetEndpoint sets the Endpoint field's value.
  28874. func (s *SourceRegion) SetEndpoint(v string) *SourceRegion {
  28875. s.Endpoint = &v
  28876. return s
  28877. }
  28878. // SetRegionName sets the RegionName field's value.
  28879. func (s *SourceRegion) SetRegionName(v string) *SourceRegion {
  28880. s.RegionName = &v
  28881. return s
  28882. }
  28883. // SetStatus sets the Status field's value.
  28884. func (s *SourceRegion) SetStatus(v string) *SourceRegion {
  28885. s.Status = &v
  28886. return s
  28887. }
  28888. type StartDBClusterInput struct {
  28889. _ struct{} `type:"structure"`
  28890. // The DB cluster identifier of the Amazon Aurora DB cluster to be started.
  28891. // This parameter is stored as a lowercase string.
  28892. //
  28893. // DBClusterIdentifier is a required field
  28894. DBClusterIdentifier *string `type:"string" required:"true"`
  28895. }
  28896. // String returns the string representation
  28897. func (s StartDBClusterInput) String() string {
  28898. return awsutil.Prettify(s)
  28899. }
  28900. // GoString returns the string representation
  28901. func (s StartDBClusterInput) GoString() string {
  28902. return s.String()
  28903. }
  28904. // Validate inspects the fields of the type to determine if they are valid.
  28905. func (s *StartDBClusterInput) Validate() error {
  28906. invalidParams := request.ErrInvalidParams{Context: "StartDBClusterInput"}
  28907. if s.DBClusterIdentifier == nil {
  28908. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  28909. }
  28910. if invalidParams.Len() > 0 {
  28911. return invalidParams
  28912. }
  28913. return nil
  28914. }
  28915. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  28916. func (s *StartDBClusterInput) SetDBClusterIdentifier(v string) *StartDBClusterInput {
  28917. s.DBClusterIdentifier = &v
  28918. return s
  28919. }
  28920. type StartDBClusterOutput struct {
  28921. _ struct{} `type:"structure"`
  28922. // Contains the details of an Amazon Aurora DB cluster.
  28923. //
  28924. // This data type is used as a response element in the DescribeDBClusters, StopDBCluster,
  28925. // and StartDBCluster actions.
  28926. DBCluster *DBCluster `type:"structure"`
  28927. }
  28928. // String returns the string representation
  28929. func (s StartDBClusterOutput) String() string {
  28930. return awsutil.Prettify(s)
  28931. }
  28932. // GoString returns the string representation
  28933. func (s StartDBClusterOutput) GoString() string {
  28934. return s.String()
  28935. }
  28936. // SetDBCluster sets the DBCluster field's value.
  28937. func (s *StartDBClusterOutput) SetDBCluster(v *DBCluster) *StartDBClusterOutput {
  28938. s.DBCluster = v
  28939. return s
  28940. }
  28941. type StartDBInstanceInput struct {
  28942. _ struct{} `type:"structure"`
  28943. // The user-supplied instance identifier.
  28944. //
  28945. // DBInstanceIdentifier is a required field
  28946. DBInstanceIdentifier *string `type:"string" required:"true"`
  28947. }
  28948. // String returns the string representation
  28949. func (s StartDBInstanceInput) String() string {
  28950. return awsutil.Prettify(s)
  28951. }
  28952. // GoString returns the string representation
  28953. func (s StartDBInstanceInput) GoString() string {
  28954. return s.String()
  28955. }
  28956. // Validate inspects the fields of the type to determine if they are valid.
  28957. func (s *StartDBInstanceInput) Validate() error {
  28958. invalidParams := request.ErrInvalidParams{Context: "StartDBInstanceInput"}
  28959. if s.DBInstanceIdentifier == nil {
  28960. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  28961. }
  28962. if invalidParams.Len() > 0 {
  28963. return invalidParams
  28964. }
  28965. return nil
  28966. }
  28967. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  28968. func (s *StartDBInstanceInput) SetDBInstanceIdentifier(v string) *StartDBInstanceInput {
  28969. s.DBInstanceIdentifier = &v
  28970. return s
  28971. }
  28972. type StartDBInstanceOutput struct {
  28973. _ struct{} `type:"structure"`
  28974. // Contains the details of an Amazon RDS DB instance.
  28975. //
  28976. // This data type is used as a response element in the DescribeDBInstances action.
  28977. DBInstance *DBInstance `type:"structure"`
  28978. }
  28979. // String returns the string representation
  28980. func (s StartDBInstanceOutput) String() string {
  28981. return awsutil.Prettify(s)
  28982. }
  28983. // GoString returns the string representation
  28984. func (s StartDBInstanceOutput) GoString() string {
  28985. return s.String()
  28986. }
  28987. // SetDBInstance sets the DBInstance field's value.
  28988. func (s *StartDBInstanceOutput) SetDBInstance(v *DBInstance) *StartDBInstanceOutput {
  28989. s.DBInstance = v
  28990. return s
  28991. }
  28992. type StopDBClusterInput struct {
  28993. _ struct{} `type:"structure"`
  28994. // The DB cluster identifier of the Amazon Aurora DB cluster to be stopped.
  28995. // This parameter is stored as a lowercase string.
  28996. //
  28997. // DBClusterIdentifier is a required field
  28998. DBClusterIdentifier *string `type:"string" required:"true"`
  28999. }
  29000. // String returns the string representation
  29001. func (s StopDBClusterInput) String() string {
  29002. return awsutil.Prettify(s)
  29003. }
  29004. // GoString returns the string representation
  29005. func (s StopDBClusterInput) GoString() string {
  29006. return s.String()
  29007. }
  29008. // Validate inspects the fields of the type to determine if they are valid.
  29009. func (s *StopDBClusterInput) Validate() error {
  29010. invalidParams := request.ErrInvalidParams{Context: "StopDBClusterInput"}
  29011. if s.DBClusterIdentifier == nil {
  29012. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  29013. }
  29014. if invalidParams.Len() > 0 {
  29015. return invalidParams
  29016. }
  29017. return nil
  29018. }
  29019. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  29020. func (s *StopDBClusterInput) SetDBClusterIdentifier(v string) *StopDBClusterInput {
  29021. s.DBClusterIdentifier = &v
  29022. return s
  29023. }
  29024. type StopDBClusterOutput struct {
  29025. _ struct{} `type:"structure"`
  29026. // Contains the details of an Amazon Aurora DB cluster.
  29027. //
  29028. // This data type is used as a response element in the DescribeDBClusters, StopDBCluster,
  29029. // and StartDBCluster actions.
  29030. DBCluster *DBCluster `type:"structure"`
  29031. }
  29032. // String returns the string representation
  29033. func (s StopDBClusterOutput) String() string {
  29034. return awsutil.Prettify(s)
  29035. }
  29036. // GoString returns the string representation
  29037. func (s StopDBClusterOutput) GoString() string {
  29038. return s.String()
  29039. }
  29040. // SetDBCluster sets the DBCluster field's value.
  29041. func (s *StopDBClusterOutput) SetDBCluster(v *DBCluster) *StopDBClusterOutput {
  29042. s.DBCluster = v
  29043. return s
  29044. }
  29045. type StopDBInstanceInput struct {
  29046. _ struct{} `type:"structure"`
  29047. // The user-supplied instance identifier.
  29048. //
  29049. // DBInstanceIdentifier is a required field
  29050. DBInstanceIdentifier *string `type:"string" required:"true"`
  29051. // The user-supplied instance identifier of the DB Snapshot created immediately
  29052. // before the DB instance is stopped.
  29053. DBSnapshotIdentifier *string `type:"string"`
  29054. }
  29055. // String returns the string representation
  29056. func (s StopDBInstanceInput) String() string {
  29057. return awsutil.Prettify(s)
  29058. }
  29059. // GoString returns the string representation
  29060. func (s StopDBInstanceInput) GoString() string {
  29061. return s.String()
  29062. }
  29063. // Validate inspects the fields of the type to determine if they are valid.
  29064. func (s *StopDBInstanceInput) Validate() error {
  29065. invalidParams := request.ErrInvalidParams{Context: "StopDBInstanceInput"}
  29066. if s.DBInstanceIdentifier == nil {
  29067. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  29068. }
  29069. if invalidParams.Len() > 0 {
  29070. return invalidParams
  29071. }
  29072. return nil
  29073. }
  29074. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  29075. func (s *StopDBInstanceInput) SetDBInstanceIdentifier(v string) *StopDBInstanceInput {
  29076. s.DBInstanceIdentifier = &v
  29077. return s
  29078. }
  29079. // SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value.
  29080. func (s *StopDBInstanceInput) SetDBSnapshotIdentifier(v string) *StopDBInstanceInput {
  29081. s.DBSnapshotIdentifier = &v
  29082. return s
  29083. }
  29084. type StopDBInstanceOutput struct {
  29085. _ struct{} `type:"structure"`
  29086. // Contains the details of an Amazon RDS DB instance.
  29087. //
  29088. // This data type is used as a response element in the DescribeDBInstances action.
  29089. DBInstance *DBInstance `type:"structure"`
  29090. }
  29091. // String returns the string representation
  29092. func (s StopDBInstanceOutput) String() string {
  29093. return awsutil.Prettify(s)
  29094. }
  29095. // GoString returns the string representation
  29096. func (s StopDBInstanceOutput) GoString() string {
  29097. return s.String()
  29098. }
  29099. // SetDBInstance sets the DBInstance field's value.
  29100. func (s *StopDBInstanceOutput) SetDBInstance(v *DBInstance) *StopDBInstanceOutput {
  29101. s.DBInstance = v
  29102. return s
  29103. }
  29104. // This data type is used as a response element in the DescribeDBSubnetGroups
  29105. // action.
  29106. type Subnet struct {
  29107. _ struct{} `type:"structure"`
  29108. // Contains Availability Zone information.
  29109. //
  29110. // This data type is used as an element in the following data type:
  29111. //
  29112. // * OrderableDBInstanceOption
  29113. SubnetAvailabilityZone *AvailabilityZone `type:"structure"`
  29114. // Specifies the identifier of the subnet.
  29115. SubnetIdentifier *string `type:"string"`
  29116. // Specifies the status of the subnet.
  29117. SubnetStatus *string `type:"string"`
  29118. }
  29119. // String returns the string representation
  29120. func (s Subnet) String() string {
  29121. return awsutil.Prettify(s)
  29122. }
  29123. // GoString returns the string representation
  29124. func (s Subnet) GoString() string {
  29125. return s.String()
  29126. }
  29127. // SetSubnetAvailabilityZone sets the SubnetAvailabilityZone field's value.
  29128. func (s *Subnet) SetSubnetAvailabilityZone(v *AvailabilityZone) *Subnet {
  29129. s.SubnetAvailabilityZone = v
  29130. return s
  29131. }
  29132. // SetSubnetIdentifier sets the SubnetIdentifier field's value.
  29133. func (s *Subnet) SetSubnetIdentifier(v string) *Subnet {
  29134. s.SubnetIdentifier = &v
  29135. return s
  29136. }
  29137. // SetSubnetStatus sets the SubnetStatus field's value.
  29138. func (s *Subnet) SetSubnetStatus(v string) *Subnet {
  29139. s.SubnetStatus = &v
  29140. return s
  29141. }
  29142. // Metadata assigned to an Amazon RDS resource consisting of a key-value pair.
  29143. type Tag struct {
  29144. _ struct{} `type:"structure"`
  29145. // A key is the required name of the tag. The string value can be from 1 to
  29146. // 128 Unicode characters in length and can't be prefixed with "aws:" or "rds:".
  29147. // The string can only contain only the set of Unicode letters, digits, white-space,
  29148. // '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
  29149. Key *string `type:"string"`
  29150. // A value is the optional value of the tag. The string value can be from 1
  29151. // to 256 Unicode characters in length and can't be prefixed with "aws:" or
  29152. // "rds:". The string can only contain only the set of Unicode letters, digits,
  29153. // white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
  29154. Value *string `type:"string"`
  29155. }
  29156. // String returns the string representation
  29157. func (s Tag) String() string {
  29158. return awsutil.Prettify(s)
  29159. }
  29160. // GoString returns the string representation
  29161. func (s Tag) GoString() string {
  29162. return s.String()
  29163. }
  29164. // SetKey sets the Key field's value.
  29165. func (s *Tag) SetKey(v string) *Tag {
  29166. s.Key = &v
  29167. return s
  29168. }
  29169. // SetValue sets the Value field's value.
  29170. func (s *Tag) SetValue(v string) *Tag {
  29171. s.Value = &v
  29172. return s
  29173. }
  29174. // A time zone associated with a DBInstance or a DBSnapshot. This data type
  29175. // is an element in the response to the DescribeDBInstances, the DescribeDBSnapshots,
  29176. // and the DescribeDBEngineVersions actions.
  29177. type Timezone struct {
  29178. _ struct{} `type:"structure"`
  29179. // The name of the time zone.
  29180. TimezoneName *string `type:"string"`
  29181. }
  29182. // String returns the string representation
  29183. func (s Timezone) String() string {
  29184. return awsutil.Prettify(s)
  29185. }
  29186. // GoString returns the string representation
  29187. func (s Timezone) GoString() string {
  29188. return s.String()
  29189. }
  29190. // SetTimezoneName sets the TimezoneName field's value.
  29191. func (s *Timezone) SetTimezoneName(v string) *Timezone {
  29192. s.TimezoneName = &v
  29193. return s
  29194. }
  29195. // The version of the database engine that a DB instance can be upgraded to.
  29196. type UpgradeTarget struct {
  29197. _ struct{} `type:"structure"`
  29198. // A value that indicates whether the target version is applied to any source
  29199. // DB instances that have AutoMinorVersionUpgrade set to true.
  29200. AutoUpgrade *bool `type:"boolean"`
  29201. // The version of the database engine that a DB instance can be upgraded to.
  29202. Description *string `type:"string"`
  29203. // The name of the upgrade target database engine.
  29204. Engine *string `type:"string"`
  29205. // The version number of the upgrade target database engine.
  29206. EngineVersion *string `type:"string"`
  29207. // A value that indicates whether a database engine is upgraded to a major version.
  29208. IsMajorVersionUpgrade *bool `type:"boolean"`
  29209. }
  29210. // String returns the string representation
  29211. func (s UpgradeTarget) String() string {
  29212. return awsutil.Prettify(s)
  29213. }
  29214. // GoString returns the string representation
  29215. func (s UpgradeTarget) GoString() string {
  29216. return s.String()
  29217. }
  29218. // SetAutoUpgrade sets the AutoUpgrade field's value.
  29219. func (s *UpgradeTarget) SetAutoUpgrade(v bool) *UpgradeTarget {
  29220. s.AutoUpgrade = &v
  29221. return s
  29222. }
  29223. // SetDescription sets the Description field's value.
  29224. func (s *UpgradeTarget) SetDescription(v string) *UpgradeTarget {
  29225. s.Description = &v
  29226. return s
  29227. }
  29228. // SetEngine sets the Engine field's value.
  29229. func (s *UpgradeTarget) SetEngine(v string) *UpgradeTarget {
  29230. s.Engine = &v
  29231. return s
  29232. }
  29233. // SetEngineVersion sets the EngineVersion field's value.
  29234. func (s *UpgradeTarget) SetEngineVersion(v string) *UpgradeTarget {
  29235. s.EngineVersion = &v
  29236. return s
  29237. }
  29238. // SetIsMajorVersionUpgrade sets the IsMajorVersionUpgrade field's value.
  29239. func (s *UpgradeTarget) SetIsMajorVersionUpgrade(v bool) *UpgradeTarget {
  29240. s.IsMajorVersionUpgrade = &v
  29241. return s
  29242. }
  29243. // Information about valid modifications that you can make to your DB instance.
  29244. // Contains the result of a successful call to the DescribeValidDBInstanceModifications
  29245. // action. You can use this information when you call ModifyDBInstance.
  29246. type ValidDBInstanceModificationsMessage struct {
  29247. _ struct{} `type:"structure"`
  29248. // Valid storage options for your DB instance.
  29249. Storage []*ValidStorageOptions `locationNameList:"ValidStorageOptions" type:"list"`
  29250. // Valid processor features for your DB instance.
  29251. ValidProcessorFeatures []*AvailableProcessorFeature `locationNameList:"AvailableProcessorFeature" type:"list"`
  29252. }
  29253. // String returns the string representation
  29254. func (s ValidDBInstanceModificationsMessage) String() string {
  29255. return awsutil.Prettify(s)
  29256. }
  29257. // GoString returns the string representation
  29258. func (s ValidDBInstanceModificationsMessage) GoString() string {
  29259. return s.String()
  29260. }
  29261. // SetStorage sets the Storage field's value.
  29262. func (s *ValidDBInstanceModificationsMessage) SetStorage(v []*ValidStorageOptions) *ValidDBInstanceModificationsMessage {
  29263. s.Storage = v
  29264. return s
  29265. }
  29266. // SetValidProcessorFeatures sets the ValidProcessorFeatures field's value.
  29267. func (s *ValidDBInstanceModificationsMessage) SetValidProcessorFeatures(v []*AvailableProcessorFeature) *ValidDBInstanceModificationsMessage {
  29268. s.ValidProcessorFeatures = v
  29269. return s
  29270. }
  29271. // Information about valid modifications that you can make to your DB instance.
  29272. // Contains the result of a successful call to the DescribeValidDBInstanceModifications
  29273. // action.
  29274. type ValidStorageOptions struct {
  29275. _ struct{} `type:"structure"`
  29276. // The valid range of Provisioned IOPS to gibibytes of storage multiplier. For
  29277. // example, 3-10, which means that provisioned IOPS can be between 3 and 10
  29278. // times storage.
  29279. IopsToStorageRatio []*DoubleRange `locationNameList:"DoubleRange" type:"list"`
  29280. // The valid range of provisioned IOPS. For example, 1000-20000.
  29281. ProvisionedIops []*Range `locationNameList:"Range" type:"list"`
  29282. // The valid range of storage in gibibytes. For example, 100 to 16384.
  29283. StorageSize []*Range `locationNameList:"Range" type:"list"`
  29284. // The valid storage types for your DB instance. For example, gp2, io1.
  29285. StorageType *string `type:"string"`
  29286. }
  29287. // String returns the string representation
  29288. func (s ValidStorageOptions) String() string {
  29289. return awsutil.Prettify(s)
  29290. }
  29291. // GoString returns the string representation
  29292. func (s ValidStorageOptions) GoString() string {
  29293. return s.String()
  29294. }
  29295. // SetIopsToStorageRatio sets the IopsToStorageRatio field's value.
  29296. func (s *ValidStorageOptions) SetIopsToStorageRatio(v []*DoubleRange) *ValidStorageOptions {
  29297. s.IopsToStorageRatio = v
  29298. return s
  29299. }
  29300. // SetProvisionedIops sets the ProvisionedIops field's value.
  29301. func (s *ValidStorageOptions) SetProvisionedIops(v []*Range) *ValidStorageOptions {
  29302. s.ProvisionedIops = v
  29303. return s
  29304. }
  29305. // SetStorageSize sets the StorageSize field's value.
  29306. func (s *ValidStorageOptions) SetStorageSize(v []*Range) *ValidStorageOptions {
  29307. s.StorageSize = v
  29308. return s
  29309. }
  29310. // SetStorageType sets the StorageType field's value.
  29311. func (s *ValidStorageOptions) SetStorageType(v string) *ValidStorageOptions {
  29312. s.StorageType = &v
  29313. return s
  29314. }
  29315. // This data type is used as a response element for queries on VPC security
  29316. // group membership.
  29317. type VpcSecurityGroupMembership struct {
  29318. _ struct{} `type:"structure"`
  29319. // The status of the VPC security group.
  29320. Status *string `type:"string"`
  29321. // The name of the VPC security group.
  29322. VpcSecurityGroupId *string `type:"string"`
  29323. }
  29324. // String returns the string representation
  29325. func (s VpcSecurityGroupMembership) String() string {
  29326. return awsutil.Prettify(s)
  29327. }
  29328. // GoString returns the string representation
  29329. func (s VpcSecurityGroupMembership) GoString() string {
  29330. return s.String()
  29331. }
  29332. // SetStatus sets the Status field's value.
  29333. func (s *VpcSecurityGroupMembership) SetStatus(v string) *VpcSecurityGroupMembership {
  29334. s.Status = &v
  29335. return s
  29336. }
  29337. // SetVpcSecurityGroupId sets the VpcSecurityGroupId field's value.
  29338. func (s *VpcSecurityGroupMembership) SetVpcSecurityGroupId(v string) *VpcSecurityGroupMembership {
  29339. s.VpcSecurityGroupId = &v
  29340. return s
  29341. }
  29342. const (
  29343. // ApplyMethodImmediate is a ApplyMethod enum value
  29344. ApplyMethodImmediate = "immediate"
  29345. // ApplyMethodPendingReboot is a ApplyMethod enum value
  29346. ApplyMethodPendingReboot = "pending-reboot"
  29347. )
  29348. const (
  29349. // SourceTypeDbInstance is a SourceType enum value
  29350. SourceTypeDbInstance = "db-instance"
  29351. // SourceTypeDbParameterGroup is a SourceType enum value
  29352. SourceTypeDbParameterGroup = "db-parameter-group"
  29353. // SourceTypeDbSecurityGroup is a SourceType enum value
  29354. SourceTypeDbSecurityGroup = "db-security-group"
  29355. // SourceTypeDbSnapshot is a SourceType enum value
  29356. SourceTypeDbSnapshot = "db-snapshot"
  29357. // SourceTypeDbCluster is a SourceType enum value
  29358. SourceTypeDbCluster = "db-cluster"
  29359. // SourceTypeDbClusterSnapshot is a SourceType enum value
  29360. SourceTypeDbClusterSnapshot = "db-cluster-snapshot"
  29361. )