api.go 387 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package docdb
  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 opAddTagsToResource = "AddTagsToResource"
  13. // AddTagsToResourceRequest generates a "aws/request.Request" representing the
  14. // client's request for the AddTagsToResource 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 AddTagsToResource for more information on using the AddTagsToResource
  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 AddTagsToResourceRequest method.
  29. // req, resp := client.AddTagsToResourceRequest(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/docdb-2014-10-31/AddTagsToResource
  37. func (c *DocDB) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) {
  38. op := &request.Operation{
  39. Name: opAddTagsToResource,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &AddTagsToResourceInput{}
  45. }
  46. output = &AddTagsToResourceOutput{}
  47. req = c.newRequest(op, input, output)
  48. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  49. return
  50. }
  51. // AddTagsToResource API operation for Amazon DocumentDB with MongoDB compatibility.
  52. //
  53. // Adds metadata tags to an Amazon DocumentDB resource. You can use these tags
  54. // with cost allocation reporting to track costs that are associated with Amazon
  55. // DocumentDB resources. or in a Condition statement in an AWS Identity and
  56. // Access Management (IAM) policy for Amazon DocumentDB.
  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 DocumentDB with MongoDB compatibility's
  63. // API operation AddTagsToResource for usage and error information.
  64. //
  65. // Returned Error Codes:
  66. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  67. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  68. //
  69. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  70. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  71. //
  72. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  73. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  74. //
  75. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/AddTagsToResource
  76. func (c *DocDB) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
  77. req, out := c.AddTagsToResourceRequest(input)
  78. return out, req.Send()
  79. }
  80. // AddTagsToResourceWithContext is the same as AddTagsToResource with the addition of
  81. // the ability to pass a context and additional request options.
  82. //
  83. // See AddTagsToResource for details on how to use this API operation.
  84. //
  85. // The context must be non-nil and will be used for request cancellation. If
  86. // the context is nil a panic will occur. In the future the SDK may create
  87. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  88. // for more information on using Contexts.
  89. func (c *DocDB) AddTagsToResourceWithContext(ctx aws.Context, input *AddTagsToResourceInput, opts ...request.Option) (*AddTagsToResourceOutput, error) {
  90. req, out := c.AddTagsToResourceRequest(input)
  91. req.SetContext(ctx)
  92. req.ApplyOptions(opts...)
  93. return out, req.Send()
  94. }
  95. const opApplyPendingMaintenanceAction = "ApplyPendingMaintenanceAction"
  96. // ApplyPendingMaintenanceActionRequest generates a "aws/request.Request" representing the
  97. // client's request for the ApplyPendingMaintenanceAction operation. The "output" return
  98. // value will be populated with the request's response once the request completes
  99. // successfully.
  100. //
  101. // Use "Send" method on the returned Request to send the API call to the service.
  102. // the "output" return value is not valid until after Send returns without error.
  103. //
  104. // See ApplyPendingMaintenanceAction for more information on using the ApplyPendingMaintenanceAction
  105. // API call, and error handling.
  106. //
  107. // This method is useful when you want to inject custom logic or configuration
  108. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  109. //
  110. //
  111. // // Example sending a request using the ApplyPendingMaintenanceActionRequest method.
  112. // req, resp := client.ApplyPendingMaintenanceActionRequest(params)
  113. //
  114. // err := req.Send()
  115. // if err == nil { // resp is now filled
  116. // fmt.Println(resp)
  117. // }
  118. //
  119. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ApplyPendingMaintenanceAction
  120. func (c *DocDB) ApplyPendingMaintenanceActionRequest(input *ApplyPendingMaintenanceActionInput) (req *request.Request, output *ApplyPendingMaintenanceActionOutput) {
  121. op := &request.Operation{
  122. Name: opApplyPendingMaintenanceAction,
  123. HTTPMethod: "POST",
  124. HTTPPath: "/",
  125. }
  126. if input == nil {
  127. input = &ApplyPendingMaintenanceActionInput{}
  128. }
  129. output = &ApplyPendingMaintenanceActionOutput{}
  130. req = c.newRequest(op, input, output)
  131. return
  132. }
  133. // ApplyPendingMaintenanceAction API operation for Amazon DocumentDB with MongoDB compatibility.
  134. //
  135. // Applies a pending maintenance action to a resource (for example, to a DB
  136. // instance).
  137. //
  138. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  139. // with awserr.Error's Code and Message methods to get detailed information about
  140. // the error.
  141. //
  142. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  143. // API operation ApplyPendingMaintenanceAction for usage and error information.
  144. //
  145. // Returned Error Codes:
  146. // * ErrCodeResourceNotFoundFault "ResourceNotFoundFault"
  147. // The specified resource ID was not found.
  148. //
  149. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ApplyPendingMaintenanceAction
  150. func (c *DocDB) ApplyPendingMaintenanceAction(input *ApplyPendingMaintenanceActionInput) (*ApplyPendingMaintenanceActionOutput, error) {
  151. req, out := c.ApplyPendingMaintenanceActionRequest(input)
  152. return out, req.Send()
  153. }
  154. // ApplyPendingMaintenanceActionWithContext is the same as ApplyPendingMaintenanceAction with the addition of
  155. // the ability to pass a context and additional request options.
  156. //
  157. // See ApplyPendingMaintenanceAction for details on how to use this API operation.
  158. //
  159. // The context must be non-nil and will be used for request cancellation. If
  160. // the context is nil a panic will occur. In the future the SDK may create
  161. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  162. // for more information on using Contexts.
  163. func (c *DocDB) ApplyPendingMaintenanceActionWithContext(ctx aws.Context, input *ApplyPendingMaintenanceActionInput, opts ...request.Option) (*ApplyPendingMaintenanceActionOutput, error) {
  164. req, out := c.ApplyPendingMaintenanceActionRequest(input)
  165. req.SetContext(ctx)
  166. req.ApplyOptions(opts...)
  167. return out, req.Send()
  168. }
  169. const opCopyDBClusterParameterGroup = "CopyDBClusterParameterGroup"
  170. // CopyDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  171. // client's request for the CopyDBClusterParameterGroup operation. The "output" return
  172. // value will be populated with the request's response once the request completes
  173. // successfully.
  174. //
  175. // Use "Send" method on the returned Request to send the API call to the service.
  176. // the "output" return value is not valid until after Send returns without error.
  177. //
  178. // See CopyDBClusterParameterGroup for more information on using the CopyDBClusterParameterGroup
  179. // API call, and error handling.
  180. //
  181. // This method is useful when you want to inject custom logic or configuration
  182. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  183. //
  184. //
  185. // // Example sending a request using the CopyDBClusterParameterGroupRequest method.
  186. // req, resp := client.CopyDBClusterParameterGroupRequest(params)
  187. //
  188. // err := req.Send()
  189. // if err == nil { // resp is now filled
  190. // fmt.Println(resp)
  191. // }
  192. //
  193. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CopyDBClusterParameterGroup
  194. func (c *DocDB) CopyDBClusterParameterGroupRequest(input *CopyDBClusterParameterGroupInput) (req *request.Request, output *CopyDBClusterParameterGroupOutput) {
  195. op := &request.Operation{
  196. Name: opCopyDBClusterParameterGroup,
  197. HTTPMethod: "POST",
  198. HTTPPath: "/",
  199. }
  200. if input == nil {
  201. input = &CopyDBClusterParameterGroupInput{}
  202. }
  203. output = &CopyDBClusterParameterGroupOutput{}
  204. req = c.newRequest(op, input, output)
  205. return
  206. }
  207. // CopyDBClusterParameterGroup API operation for Amazon DocumentDB with MongoDB compatibility.
  208. //
  209. // Copies the specified DB cluster parameter group.
  210. //
  211. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  212. // with awserr.Error's Code and Message methods to get detailed information about
  213. // the error.
  214. //
  215. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  216. // API operation CopyDBClusterParameterGroup for usage and error information.
  217. //
  218. // Returned Error Codes:
  219. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  220. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  221. //
  222. // * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded"
  223. // This request would cause you to exceed the allowed number of DB parameter
  224. // groups.
  225. //
  226. // * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists"
  227. // A DB parameter group with the same name already exists.
  228. //
  229. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CopyDBClusterParameterGroup
  230. func (c *DocDB) CopyDBClusterParameterGroup(input *CopyDBClusterParameterGroupInput) (*CopyDBClusterParameterGroupOutput, error) {
  231. req, out := c.CopyDBClusterParameterGroupRequest(input)
  232. return out, req.Send()
  233. }
  234. // CopyDBClusterParameterGroupWithContext is the same as CopyDBClusterParameterGroup with the addition of
  235. // the ability to pass a context and additional request options.
  236. //
  237. // See CopyDBClusterParameterGroup for details on how to use this API operation.
  238. //
  239. // The context must be non-nil and will be used for request cancellation. If
  240. // the context is nil a panic will occur. In the future the SDK may create
  241. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  242. // for more information on using Contexts.
  243. func (c *DocDB) CopyDBClusterParameterGroupWithContext(ctx aws.Context, input *CopyDBClusterParameterGroupInput, opts ...request.Option) (*CopyDBClusterParameterGroupOutput, error) {
  244. req, out := c.CopyDBClusterParameterGroupRequest(input)
  245. req.SetContext(ctx)
  246. req.ApplyOptions(opts...)
  247. return out, req.Send()
  248. }
  249. const opCopyDBClusterSnapshot = "CopyDBClusterSnapshot"
  250. // CopyDBClusterSnapshotRequest generates a "aws/request.Request" representing the
  251. // client's request for the CopyDBClusterSnapshot operation. The "output" return
  252. // value will be populated with the request's response once the request completes
  253. // successfully.
  254. //
  255. // Use "Send" method on the returned Request to send the API call to the service.
  256. // the "output" return value is not valid until after Send returns without error.
  257. //
  258. // See CopyDBClusterSnapshot for more information on using the CopyDBClusterSnapshot
  259. // API call, and error handling.
  260. //
  261. // This method is useful when you want to inject custom logic or configuration
  262. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  263. //
  264. //
  265. // // Example sending a request using the CopyDBClusterSnapshotRequest method.
  266. // req, resp := client.CopyDBClusterSnapshotRequest(params)
  267. //
  268. // err := req.Send()
  269. // if err == nil { // resp is now filled
  270. // fmt.Println(resp)
  271. // }
  272. //
  273. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CopyDBClusterSnapshot
  274. func (c *DocDB) CopyDBClusterSnapshotRequest(input *CopyDBClusterSnapshotInput) (req *request.Request, output *CopyDBClusterSnapshotOutput) {
  275. op := &request.Operation{
  276. Name: opCopyDBClusterSnapshot,
  277. HTTPMethod: "POST",
  278. HTTPPath: "/",
  279. }
  280. if input == nil {
  281. input = &CopyDBClusterSnapshotInput{}
  282. }
  283. output = &CopyDBClusterSnapshotOutput{}
  284. req = c.newRequest(op, input, output)
  285. return
  286. }
  287. // CopyDBClusterSnapshot API operation for Amazon DocumentDB with MongoDB compatibility.
  288. //
  289. // Copies a snapshot of a DB cluster.
  290. //
  291. // To copy a DB cluster snapshot from a shared manual DB cluster snapshot, SourceDBClusterSnapshotIdentifier
  292. // must be the Amazon Resource Name (ARN) of the shared DB cluster snapshot.
  293. //
  294. // To cancel the copy operation after it is in progress, delete the target DB
  295. // cluster snapshot identified by TargetDBClusterSnapshotIdentifier while that
  296. // DB cluster snapshot is in the copying status.
  297. //
  298. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  299. // with awserr.Error's Code and Message methods to get detailed information about
  300. // the error.
  301. //
  302. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  303. // API operation CopyDBClusterSnapshot for usage and error information.
  304. //
  305. // Returned Error Codes:
  306. // * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault"
  307. // You already have a DB cluster snapshot with the given identifier.
  308. //
  309. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  310. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  311. //
  312. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  313. // The DB cluster isn't in a valid state.
  314. //
  315. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  316. // The provided value isn't a valid DB cluster snapshot state.
  317. //
  318. // * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded"
  319. // The request would cause you to exceed the allowed number of DB snapshots.
  320. //
  321. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  322. // An error occurred when accessing an AWS KMS key.
  323. //
  324. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CopyDBClusterSnapshot
  325. func (c *DocDB) CopyDBClusterSnapshot(input *CopyDBClusterSnapshotInput) (*CopyDBClusterSnapshotOutput, error) {
  326. req, out := c.CopyDBClusterSnapshotRequest(input)
  327. return out, req.Send()
  328. }
  329. // CopyDBClusterSnapshotWithContext is the same as CopyDBClusterSnapshot with the addition of
  330. // the ability to pass a context and additional request options.
  331. //
  332. // See CopyDBClusterSnapshot for details on how to use this API operation.
  333. //
  334. // The context must be non-nil and will be used for request cancellation. If
  335. // the context is nil a panic will occur. In the future the SDK may create
  336. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  337. // for more information on using Contexts.
  338. func (c *DocDB) CopyDBClusterSnapshotWithContext(ctx aws.Context, input *CopyDBClusterSnapshotInput, opts ...request.Option) (*CopyDBClusterSnapshotOutput, error) {
  339. req, out := c.CopyDBClusterSnapshotRequest(input)
  340. req.SetContext(ctx)
  341. req.ApplyOptions(opts...)
  342. return out, req.Send()
  343. }
  344. const opCreateDBCluster = "CreateDBCluster"
  345. // CreateDBClusterRequest generates a "aws/request.Request" representing the
  346. // client's request for the CreateDBCluster operation. The "output" return
  347. // value will be populated with the request's response once the request completes
  348. // successfully.
  349. //
  350. // Use "Send" method on the returned Request to send the API call to the service.
  351. // the "output" return value is not valid until after Send returns without error.
  352. //
  353. // See CreateDBCluster for more information on using the CreateDBCluster
  354. // API call, and error handling.
  355. //
  356. // This method is useful when you want to inject custom logic or configuration
  357. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  358. //
  359. //
  360. // // Example sending a request using the CreateDBClusterRequest method.
  361. // req, resp := client.CreateDBClusterRequest(params)
  362. //
  363. // err := req.Send()
  364. // if err == nil { // resp is now filled
  365. // fmt.Println(resp)
  366. // }
  367. //
  368. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBCluster
  369. func (c *DocDB) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request.Request, output *CreateDBClusterOutput) {
  370. op := &request.Operation{
  371. Name: opCreateDBCluster,
  372. HTTPMethod: "POST",
  373. HTTPPath: "/",
  374. }
  375. if input == nil {
  376. input = &CreateDBClusterInput{}
  377. }
  378. output = &CreateDBClusterOutput{}
  379. req = c.newRequest(op, input, output)
  380. return
  381. }
  382. // CreateDBCluster API operation for Amazon DocumentDB with MongoDB compatibility.
  383. //
  384. // Creates a new Amazon DocumentDB DB cluster.
  385. //
  386. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  387. // with awserr.Error's Code and Message methods to get detailed information about
  388. // the error.
  389. //
  390. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  391. // API operation CreateDBCluster for usage and error information.
  392. //
  393. // Returned Error Codes:
  394. // * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault"
  395. // You already have a DB cluster with the given identifier.
  396. //
  397. // * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity"
  398. // There is not enough storage available for the current action. You might be
  399. // able to resolve this error by updating your subnet group to use different
  400. // Availability Zones that have more storage available.
  401. //
  402. // * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault"
  403. // The DB cluster can't be created because you have reached the maximum allowed
  404. // quota of DB clusters.
  405. //
  406. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  407. // The request would cause you to exceed the allowed amount of storage available
  408. // across all DB instances.
  409. //
  410. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  411. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  412. //
  413. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  414. // The DB subnet group doesn't cover all Availability Zones after it is created
  415. // because of changes that were made.
  416. //
  417. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  418. // The DB cluster isn't in a valid state.
  419. //
  420. // * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault"
  421. // The DB subnet group can't be deleted because it's in use.
  422. //
  423. // * ErrCodeInvalidSubnet "InvalidSubnet"
  424. // The requested subnet is not valid, or multiple subnets were requested that
  425. // are not all in a common virtual private cloud (VPC).
  426. //
  427. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  428. // The specified DB instance isn't in the available state.
  429. //
  430. // * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound"
  431. // DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter
  432. // group.
  433. //
  434. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  435. // An error occurred when accessing an AWS KMS key.
  436. //
  437. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  438. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  439. //
  440. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  441. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  442. //
  443. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  444. // Subnets in the DB subnet group should cover at least two Availability Zones
  445. // unless there is only one Availability Zone.
  446. //
  447. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBCluster
  448. func (c *DocDB) CreateDBCluster(input *CreateDBClusterInput) (*CreateDBClusterOutput, error) {
  449. req, out := c.CreateDBClusterRequest(input)
  450. return out, req.Send()
  451. }
  452. // CreateDBClusterWithContext is the same as CreateDBCluster with the addition of
  453. // the ability to pass a context and additional request options.
  454. //
  455. // See CreateDBCluster for details on how to use this API operation.
  456. //
  457. // The context must be non-nil and will be used for request cancellation. If
  458. // the context is nil a panic will occur. In the future the SDK may create
  459. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  460. // for more information on using Contexts.
  461. func (c *DocDB) CreateDBClusterWithContext(ctx aws.Context, input *CreateDBClusterInput, opts ...request.Option) (*CreateDBClusterOutput, error) {
  462. req, out := c.CreateDBClusterRequest(input)
  463. req.SetContext(ctx)
  464. req.ApplyOptions(opts...)
  465. return out, req.Send()
  466. }
  467. const opCreateDBClusterParameterGroup = "CreateDBClusterParameterGroup"
  468. // CreateDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  469. // client's request for the CreateDBClusterParameterGroup operation. The "output" return
  470. // value will be populated with the request's response once the request completes
  471. // successfully.
  472. //
  473. // Use "Send" method on the returned Request to send the API call to the service.
  474. // the "output" return value is not valid until after Send returns without error.
  475. //
  476. // See CreateDBClusterParameterGroup for more information on using the CreateDBClusterParameterGroup
  477. // API call, and error handling.
  478. //
  479. // This method is useful when you want to inject custom logic or configuration
  480. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  481. //
  482. //
  483. // // Example sending a request using the CreateDBClusterParameterGroupRequest method.
  484. // req, resp := client.CreateDBClusterParameterGroupRequest(params)
  485. //
  486. // err := req.Send()
  487. // if err == nil { // resp is now filled
  488. // fmt.Println(resp)
  489. // }
  490. //
  491. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBClusterParameterGroup
  492. func (c *DocDB) CreateDBClusterParameterGroupRequest(input *CreateDBClusterParameterGroupInput) (req *request.Request, output *CreateDBClusterParameterGroupOutput) {
  493. op := &request.Operation{
  494. Name: opCreateDBClusterParameterGroup,
  495. HTTPMethod: "POST",
  496. HTTPPath: "/",
  497. }
  498. if input == nil {
  499. input = &CreateDBClusterParameterGroupInput{}
  500. }
  501. output = &CreateDBClusterParameterGroupOutput{}
  502. req = c.newRequest(op, input, output)
  503. return
  504. }
  505. // CreateDBClusterParameterGroup API operation for Amazon DocumentDB with MongoDB compatibility.
  506. //
  507. // Creates a new DB cluster parameter group.
  508. //
  509. // Parameters in a DB cluster parameter group apply to all of the instances
  510. // in a DB cluster.
  511. //
  512. // A DB cluster parameter group is initially created with the default parameters
  513. // for the database engine used by instances in the DB cluster. To provide custom
  514. // values for any of the parameters, you must modify the group after you create
  515. // it. After you create a DB cluster parameter group, you must associate it
  516. // with your DB cluster. For the new DB cluster parameter group and associated
  517. // settings to take effect, you must then reboot the DB instances in the DB
  518. // cluster without failover.
  519. //
  520. // After you create a DB cluster parameter group, you should wait at least 5
  521. // minutes before creating your first DB cluster that uses that DB cluster parameter
  522. // group as the default parameter group. This allows Amazon DocumentDB to fully
  523. // complete the create action before the DB cluster parameter group is used
  524. // as the default for a new DB cluster. This step is especially important for
  525. // parameters that are critical when creating the default database for a DB
  526. // cluster, such as the character set for the default database defined by the
  527. // character_set_database parameter.
  528. //
  529. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  530. // with awserr.Error's Code and Message methods to get detailed information about
  531. // the error.
  532. //
  533. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  534. // API operation CreateDBClusterParameterGroup for usage and error information.
  535. //
  536. // Returned Error Codes:
  537. // * ErrCodeDBParameterGroupQuotaExceededFault "DBParameterGroupQuotaExceeded"
  538. // This request would cause you to exceed the allowed number of DB parameter
  539. // groups.
  540. //
  541. // * ErrCodeDBParameterGroupAlreadyExistsFault "DBParameterGroupAlreadyExists"
  542. // A DB parameter group with the same name already exists.
  543. //
  544. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBClusterParameterGroup
  545. func (c *DocDB) CreateDBClusterParameterGroup(input *CreateDBClusterParameterGroupInput) (*CreateDBClusterParameterGroupOutput, error) {
  546. req, out := c.CreateDBClusterParameterGroupRequest(input)
  547. return out, req.Send()
  548. }
  549. // CreateDBClusterParameterGroupWithContext is the same as CreateDBClusterParameterGroup with the addition of
  550. // the ability to pass a context and additional request options.
  551. //
  552. // See CreateDBClusterParameterGroup for details on how to use this API operation.
  553. //
  554. // The context must be non-nil and will be used for request cancellation. If
  555. // the context is nil a panic will occur. In the future the SDK may create
  556. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  557. // for more information on using Contexts.
  558. func (c *DocDB) CreateDBClusterParameterGroupWithContext(ctx aws.Context, input *CreateDBClusterParameterGroupInput, opts ...request.Option) (*CreateDBClusterParameterGroupOutput, error) {
  559. req, out := c.CreateDBClusterParameterGroupRequest(input)
  560. req.SetContext(ctx)
  561. req.ApplyOptions(opts...)
  562. return out, req.Send()
  563. }
  564. const opCreateDBClusterSnapshot = "CreateDBClusterSnapshot"
  565. // CreateDBClusterSnapshotRequest generates a "aws/request.Request" representing the
  566. // client's request for the CreateDBClusterSnapshot operation. The "output" return
  567. // value will be populated with the request's response once the request completes
  568. // successfully.
  569. //
  570. // Use "Send" method on the returned Request to send the API call to the service.
  571. // the "output" return value is not valid until after Send returns without error.
  572. //
  573. // See CreateDBClusterSnapshot for more information on using the CreateDBClusterSnapshot
  574. // API call, and error handling.
  575. //
  576. // This method is useful when you want to inject custom logic or configuration
  577. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  578. //
  579. //
  580. // // Example sending a request using the CreateDBClusterSnapshotRequest method.
  581. // req, resp := client.CreateDBClusterSnapshotRequest(params)
  582. //
  583. // err := req.Send()
  584. // if err == nil { // resp is now filled
  585. // fmt.Println(resp)
  586. // }
  587. //
  588. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBClusterSnapshot
  589. func (c *DocDB) CreateDBClusterSnapshotRequest(input *CreateDBClusterSnapshotInput) (req *request.Request, output *CreateDBClusterSnapshotOutput) {
  590. op := &request.Operation{
  591. Name: opCreateDBClusterSnapshot,
  592. HTTPMethod: "POST",
  593. HTTPPath: "/",
  594. }
  595. if input == nil {
  596. input = &CreateDBClusterSnapshotInput{}
  597. }
  598. output = &CreateDBClusterSnapshotOutput{}
  599. req = c.newRequest(op, input, output)
  600. return
  601. }
  602. // CreateDBClusterSnapshot API operation for Amazon DocumentDB with MongoDB compatibility.
  603. //
  604. // Creates a snapshot of a DB cluster.
  605. //
  606. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  607. // with awserr.Error's Code and Message methods to get detailed information about
  608. // the error.
  609. //
  610. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  611. // API operation CreateDBClusterSnapshot for usage and error information.
  612. //
  613. // Returned Error Codes:
  614. // * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault"
  615. // You already have a DB cluster snapshot with the given identifier.
  616. //
  617. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  618. // The DB cluster isn't in a valid state.
  619. //
  620. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  621. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  622. //
  623. // * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded"
  624. // The request would cause you to exceed the allowed number of DB snapshots.
  625. //
  626. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  627. // The provided value isn't a valid DB cluster snapshot state.
  628. //
  629. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBClusterSnapshot
  630. func (c *DocDB) CreateDBClusterSnapshot(input *CreateDBClusterSnapshotInput) (*CreateDBClusterSnapshotOutput, error) {
  631. req, out := c.CreateDBClusterSnapshotRequest(input)
  632. return out, req.Send()
  633. }
  634. // CreateDBClusterSnapshotWithContext is the same as CreateDBClusterSnapshot with the addition of
  635. // the ability to pass a context and additional request options.
  636. //
  637. // See CreateDBClusterSnapshot for details on how to use this API operation.
  638. //
  639. // The context must be non-nil and will be used for request cancellation. If
  640. // the context is nil a panic will occur. In the future the SDK may create
  641. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  642. // for more information on using Contexts.
  643. func (c *DocDB) CreateDBClusterSnapshotWithContext(ctx aws.Context, input *CreateDBClusterSnapshotInput, opts ...request.Option) (*CreateDBClusterSnapshotOutput, error) {
  644. req, out := c.CreateDBClusterSnapshotRequest(input)
  645. req.SetContext(ctx)
  646. req.ApplyOptions(opts...)
  647. return out, req.Send()
  648. }
  649. const opCreateDBInstance = "CreateDBInstance"
  650. // CreateDBInstanceRequest generates a "aws/request.Request" representing the
  651. // client's request for the CreateDBInstance operation. The "output" return
  652. // value will be populated with the request's response once the request completes
  653. // successfully.
  654. //
  655. // Use "Send" method on the returned Request to send the API call to the service.
  656. // the "output" return value is not valid until after Send returns without error.
  657. //
  658. // See CreateDBInstance for more information on using the CreateDBInstance
  659. // API call, and error handling.
  660. //
  661. // This method is useful when you want to inject custom logic or configuration
  662. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  663. //
  664. //
  665. // // Example sending a request using the CreateDBInstanceRequest method.
  666. // req, resp := client.CreateDBInstanceRequest(params)
  667. //
  668. // err := req.Send()
  669. // if err == nil { // resp is now filled
  670. // fmt.Println(resp)
  671. // }
  672. //
  673. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBInstance
  674. func (c *DocDB) CreateDBInstanceRequest(input *CreateDBInstanceInput) (req *request.Request, output *CreateDBInstanceOutput) {
  675. op := &request.Operation{
  676. Name: opCreateDBInstance,
  677. HTTPMethod: "POST",
  678. HTTPPath: "/",
  679. }
  680. if input == nil {
  681. input = &CreateDBInstanceInput{}
  682. }
  683. output = &CreateDBInstanceOutput{}
  684. req = c.newRequest(op, input, output)
  685. return
  686. }
  687. // CreateDBInstance API operation for Amazon DocumentDB with MongoDB compatibility.
  688. //
  689. // Creates a new DB instance.
  690. //
  691. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  692. // with awserr.Error's Code and Message methods to get detailed information about
  693. // the error.
  694. //
  695. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  696. // API operation CreateDBInstance for usage and error information.
  697. //
  698. // Returned Error Codes:
  699. // * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists"
  700. // You already have a DB instance with the given identifier.
  701. //
  702. // * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity"
  703. // The specified DB instance class isn't available in the specified Availability
  704. // Zone.
  705. //
  706. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  707. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  708. //
  709. // * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound"
  710. // DBSecurityGroupName doesn't refer to an existing DB security group.
  711. //
  712. // * ErrCodeInstanceQuotaExceededFault "InstanceQuotaExceeded"
  713. // The request would cause you to exceed the allowed number of DB instances.
  714. //
  715. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  716. // The request would cause you to exceed the allowed amount of storage available
  717. // across all DB instances.
  718. //
  719. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  720. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  721. //
  722. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  723. // Subnets in the DB subnet group should cover at least two Availability Zones
  724. // unless there is only one Availability Zone.
  725. //
  726. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  727. // The DB cluster isn't in a valid state.
  728. //
  729. // * ErrCodeInvalidSubnet "InvalidSubnet"
  730. // The requested subnet is not valid, or multiple subnets were requested that
  731. // are not all in a common virtual private cloud (VPC).
  732. //
  733. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  734. // The DB subnet group doesn't cover all Availability Zones after it is created
  735. // because of changes that were made.
  736. //
  737. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  738. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  739. //
  740. // * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported"
  741. // Storage of the specified StorageType can't be associated with the DB instance.
  742. //
  743. // * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
  744. // The specified CIDR IP or Amazon EC2 security group isn't authorized for the
  745. // specified DB security group.
  746. //
  747. // Amazon DocumentDB also might not be authorized to perform necessary actions
  748. // on your behalf using IAM.
  749. //
  750. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  751. // An error occurred when accessing an AWS KMS key.
  752. //
  753. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBInstance
  754. func (c *DocDB) CreateDBInstance(input *CreateDBInstanceInput) (*CreateDBInstanceOutput, error) {
  755. req, out := c.CreateDBInstanceRequest(input)
  756. return out, req.Send()
  757. }
  758. // CreateDBInstanceWithContext is the same as CreateDBInstance with the addition of
  759. // the ability to pass a context and additional request options.
  760. //
  761. // See CreateDBInstance for details on how to use this API operation.
  762. //
  763. // The context must be non-nil and will be used for request cancellation. If
  764. // the context is nil a panic will occur. In the future the SDK may create
  765. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  766. // for more information on using Contexts.
  767. func (c *DocDB) CreateDBInstanceWithContext(ctx aws.Context, input *CreateDBInstanceInput, opts ...request.Option) (*CreateDBInstanceOutput, error) {
  768. req, out := c.CreateDBInstanceRequest(input)
  769. req.SetContext(ctx)
  770. req.ApplyOptions(opts...)
  771. return out, req.Send()
  772. }
  773. const opCreateDBSubnetGroup = "CreateDBSubnetGroup"
  774. // CreateDBSubnetGroupRequest generates a "aws/request.Request" representing the
  775. // client's request for the CreateDBSubnetGroup operation. The "output" return
  776. // value will be populated with the request's response once the request completes
  777. // successfully.
  778. //
  779. // Use "Send" method on the returned Request to send the API call to the service.
  780. // the "output" return value is not valid until after Send returns without error.
  781. //
  782. // See CreateDBSubnetGroup for more information on using the CreateDBSubnetGroup
  783. // API call, and error handling.
  784. //
  785. // This method is useful when you want to inject custom logic or configuration
  786. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  787. //
  788. //
  789. // // Example sending a request using the CreateDBSubnetGroupRequest method.
  790. // req, resp := client.CreateDBSubnetGroupRequest(params)
  791. //
  792. // err := req.Send()
  793. // if err == nil { // resp is now filled
  794. // fmt.Println(resp)
  795. // }
  796. //
  797. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBSubnetGroup
  798. func (c *DocDB) CreateDBSubnetGroupRequest(input *CreateDBSubnetGroupInput) (req *request.Request, output *CreateDBSubnetGroupOutput) {
  799. op := &request.Operation{
  800. Name: opCreateDBSubnetGroup,
  801. HTTPMethod: "POST",
  802. HTTPPath: "/",
  803. }
  804. if input == nil {
  805. input = &CreateDBSubnetGroupInput{}
  806. }
  807. output = &CreateDBSubnetGroupOutput{}
  808. req = c.newRequest(op, input, output)
  809. return
  810. }
  811. // CreateDBSubnetGroup API operation for Amazon DocumentDB with MongoDB compatibility.
  812. //
  813. // Creates a new DB subnet group. DB subnet groups must contain at least one
  814. // subnet in at least two Availability Zones in the AWS Region.
  815. //
  816. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  817. // with awserr.Error's Code and Message methods to get detailed information about
  818. // the error.
  819. //
  820. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  821. // API operation CreateDBSubnetGroup for usage and error information.
  822. //
  823. // Returned Error Codes:
  824. // * ErrCodeDBSubnetGroupAlreadyExistsFault "DBSubnetGroupAlreadyExists"
  825. // DBSubnetGroupName is already being used by an existing DB subnet group.
  826. //
  827. // * ErrCodeDBSubnetGroupQuotaExceededFault "DBSubnetGroupQuotaExceeded"
  828. // The request would cause you to exceed the allowed number of DB subnet groups.
  829. //
  830. // * ErrCodeDBSubnetQuotaExceededFault "DBSubnetQuotaExceededFault"
  831. // The request would cause you to exceed the allowed number of subnets in a
  832. // DB subnet group.
  833. //
  834. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  835. // Subnets in the DB subnet group should cover at least two Availability Zones
  836. // unless there is only one Availability Zone.
  837. //
  838. // * ErrCodeInvalidSubnet "InvalidSubnet"
  839. // The requested subnet is not valid, or multiple subnets were requested that
  840. // are not all in a common virtual private cloud (VPC).
  841. //
  842. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBSubnetGroup
  843. func (c *DocDB) CreateDBSubnetGroup(input *CreateDBSubnetGroupInput) (*CreateDBSubnetGroupOutput, error) {
  844. req, out := c.CreateDBSubnetGroupRequest(input)
  845. return out, req.Send()
  846. }
  847. // CreateDBSubnetGroupWithContext is the same as CreateDBSubnetGroup with the addition of
  848. // the ability to pass a context and additional request options.
  849. //
  850. // See CreateDBSubnetGroup for details on how to use this API operation.
  851. //
  852. // The context must be non-nil and will be used for request cancellation. If
  853. // the context is nil a panic will occur. In the future the SDK may create
  854. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  855. // for more information on using Contexts.
  856. func (c *DocDB) CreateDBSubnetGroupWithContext(ctx aws.Context, input *CreateDBSubnetGroupInput, opts ...request.Option) (*CreateDBSubnetGroupOutput, error) {
  857. req, out := c.CreateDBSubnetGroupRequest(input)
  858. req.SetContext(ctx)
  859. req.ApplyOptions(opts...)
  860. return out, req.Send()
  861. }
  862. const opDeleteDBCluster = "DeleteDBCluster"
  863. // DeleteDBClusterRequest generates a "aws/request.Request" representing the
  864. // client's request for the DeleteDBCluster operation. The "output" return
  865. // value will be populated with the request's response once the request completes
  866. // successfully.
  867. //
  868. // Use "Send" method on the returned Request to send the API call to the service.
  869. // the "output" return value is not valid until after Send returns without error.
  870. //
  871. // See DeleteDBCluster for more information on using the DeleteDBCluster
  872. // API call, and error handling.
  873. //
  874. // This method is useful when you want to inject custom logic or configuration
  875. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  876. //
  877. //
  878. // // Example sending a request using the DeleteDBClusterRequest method.
  879. // req, resp := client.DeleteDBClusterRequest(params)
  880. //
  881. // err := req.Send()
  882. // if err == nil { // resp is now filled
  883. // fmt.Println(resp)
  884. // }
  885. //
  886. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DeleteDBCluster
  887. func (c *DocDB) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request.Request, output *DeleteDBClusterOutput) {
  888. op := &request.Operation{
  889. Name: opDeleteDBCluster,
  890. HTTPMethod: "POST",
  891. HTTPPath: "/",
  892. }
  893. if input == nil {
  894. input = &DeleteDBClusterInput{}
  895. }
  896. output = &DeleteDBClusterOutput{}
  897. req = c.newRequest(op, input, output)
  898. return
  899. }
  900. // DeleteDBCluster API operation for Amazon DocumentDB with MongoDB compatibility.
  901. //
  902. // Deletes a previously provisioned DB cluster. When you delete a DB cluster,
  903. // all automated backups for that DB cluster are deleted and can't be recovered.
  904. // Manual DB cluster snapshots of the specified DB cluster are not deleted.
  905. //
  906. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  907. // with awserr.Error's Code and Message methods to get detailed information about
  908. // the error.
  909. //
  910. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  911. // API operation DeleteDBCluster for usage and error information.
  912. //
  913. // Returned Error Codes:
  914. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  915. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  916. //
  917. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  918. // The DB cluster isn't in a valid state.
  919. //
  920. // * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault"
  921. // You already have a DB cluster snapshot with the given identifier.
  922. //
  923. // * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded"
  924. // The request would cause you to exceed the allowed number of DB snapshots.
  925. //
  926. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  927. // The provided value isn't a valid DB cluster snapshot state.
  928. //
  929. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DeleteDBCluster
  930. func (c *DocDB) DeleteDBCluster(input *DeleteDBClusterInput) (*DeleteDBClusterOutput, error) {
  931. req, out := c.DeleteDBClusterRequest(input)
  932. return out, req.Send()
  933. }
  934. // DeleteDBClusterWithContext is the same as DeleteDBCluster with the addition of
  935. // the ability to pass a context and additional request options.
  936. //
  937. // See DeleteDBCluster for details on how to use this API operation.
  938. //
  939. // The context must be non-nil and will be used for request cancellation. If
  940. // the context is nil a panic will occur. In the future the SDK may create
  941. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  942. // for more information on using Contexts.
  943. func (c *DocDB) DeleteDBClusterWithContext(ctx aws.Context, input *DeleteDBClusterInput, opts ...request.Option) (*DeleteDBClusterOutput, error) {
  944. req, out := c.DeleteDBClusterRequest(input)
  945. req.SetContext(ctx)
  946. req.ApplyOptions(opts...)
  947. return out, req.Send()
  948. }
  949. const opDeleteDBClusterParameterGroup = "DeleteDBClusterParameterGroup"
  950. // DeleteDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  951. // client's request for the DeleteDBClusterParameterGroup operation. The "output" return
  952. // value will be populated with the request's response once the request completes
  953. // successfully.
  954. //
  955. // Use "Send" method on the returned Request to send the API call to the service.
  956. // the "output" return value is not valid until after Send returns without error.
  957. //
  958. // See DeleteDBClusterParameterGroup for more information on using the DeleteDBClusterParameterGroup
  959. // API call, and error handling.
  960. //
  961. // This method is useful when you want to inject custom logic or configuration
  962. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  963. //
  964. //
  965. // // Example sending a request using the DeleteDBClusterParameterGroupRequest method.
  966. // req, resp := client.DeleteDBClusterParameterGroupRequest(params)
  967. //
  968. // err := req.Send()
  969. // if err == nil { // resp is now filled
  970. // fmt.Println(resp)
  971. // }
  972. //
  973. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DeleteDBClusterParameterGroup
  974. func (c *DocDB) DeleteDBClusterParameterGroupRequest(input *DeleteDBClusterParameterGroupInput) (req *request.Request, output *DeleteDBClusterParameterGroupOutput) {
  975. op := &request.Operation{
  976. Name: opDeleteDBClusterParameterGroup,
  977. HTTPMethod: "POST",
  978. HTTPPath: "/",
  979. }
  980. if input == nil {
  981. input = &DeleteDBClusterParameterGroupInput{}
  982. }
  983. output = &DeleteDBClusterParameterGroupOutput{}
  984. req = c.newRequest(op, input, output)
  985. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  986. return
  987. }
  988. // DeleteDBClusterParameterGroup API operation for Amazon DocumentDB with MongoDB compatibility.
  989. //
  990. // Deletes a specified DB cluster parameter group. The DB cluster parameter
  991. // group to be deleted can't be associated with any DB clusters.
  992. //
  993. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  994. // with awserr.Error's Code and Message methods to get detailed information about
  995. // the error.
  996. //
  997. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  998. // API operation DeleteDBClusterParameterGroup for usage and error information.
  999. //
  1000. // Returned Error Codes:
  1001. // * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState"
  1002. // The DB parameter group is in use, or it is in a state that is not valid.
  1003. // If you are trying to delete the parameter group, you can't delete it when
  1004. // the parameter group is in this state.
  1005. //
  1006. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  1007. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  1008. //
  1009. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DeleteDBClusterParameterGroup
  1010. func (c *DocDB) DeleteDBClusterParameterGroup(input *DeleteDBClusterParameterGroupInput) (*DeleteDBClusterParameterGroupOutput, error) {
  1011. req, out := c.DeleteDBClusterParameterGroupRequest(input)
  1012. return out, req.Send()
  1013. }
  1014. // DeleteDBClusterParameterGroupWithContext is the same as DeleteDBClusterParameterGroup with the addition of
  1015. // the ability to pass a context and additional request options.
  1016. //
  1017. // See DeleteDBClusterParameterGroup for details on how to use this API operation.
  1018. //
  1019. // The context must be non-nil and will be used for request cancellation. If
  1020. // the context is nil a panic will occur. In the future the SDK may create
  1021. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1022. // for more information on using Contexts.
  1023. func (c *DocDB) DeleteDBClusterParameterGroupWithContext(ctx aws.Context, input *DeleteDBClusterParameterGroupInput, opts ...request.Option) (*DeleteDBClusterParameterGroupOutput, error) {
  1024. req, out := c.DeleteDBClusterParameterGroupRequest(input)
  1025. req.SetContext(ctx)
  1026. req.ApplyOptions(opts...)
  1027. return out, req.Send()
  1028. }
  1029. const opDeleteDBClusterSnapshot = "DeleteDBClusterSnapshot"
  1030. // DeleteDBClusterSnapshotRequest generates a "aws/request.Request" representing the
  1031. // client's request for the DeleteDBClusterSnapshot operation. The "output" return
  1032. // value will be populated with the request's response once the request completes
  1033. // successfully.
  1034. //
  1035. // Use "Send" method on the returned Request to send the API call to the service.
  1036. // the "output" return value is not valid until after Send returns without error.
  1037. //
  1038. // See DeleteDBClusterSnapshot for more information on using the DeleteDBClusterSnapshot
  1039. // API call, and error handling.
  1040. //
  1041. // This method is useful when you want to inject custom logic or configuration
  1042. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1043. //
  1044. //
  1045. // // Example sending a request using the DeleteDBClusterSnapshotRequest method.
  1046. // req, resp := client.DeleteDBClusterSnapshotRequest(params)
  1047. //
  1048. // err := req.Send()
  1049. // if err == nil { // resp is now filled
  1050. // fmt.Println(resp)
  1051. // }
  1052. //
  1053. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DeleteDBClusterSnapshot
  1054. func (c *DocDB) DeleteDBClusterSnapshotRequest(input *DeleteDBClusterSnapshotInput) (req *request.Request, output *DeleteDBClusterSnapshotOutput) {
  1055. op := &request.Operation{
  1056. Name: opDeleteDBClusterSnapshot,
  1057. HTTPMethod: "POST",
  1058. HTTPPath: "/",
  1059. }
  1060. if input == nil {
  1061. input = &DeleteDBClusterSnapshotInput{}
  1062. }
  1063. output = &DeleteDBClusterSnapshotOutput{}
  1064. req = c.newRequest(op, input, output)
  1065. return
  1066. }
  1067. // DeleteDBClusterSnapshot API operation for Amazon DocumentDB with MongoDB compatibility.
  1068. //
  1069. // Deletes a DB cluster snapshot. If the snapshot is being copied, the copy
  1070. // operation is terminated.
  1071. //
  1072. // The DB cluster snapshot must be in the available state to be deleted.
  1073. //
  1074. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1075. // with awserr.Error's Code and Message methods to get detailed information about
  1076. // the error.
  1077. //
  1078. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  1079. // API operation DeleteDBClusterSnapshot for usage and error information.
  1080. //
  1081. // Returned Error Codes:
  1082. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  1083. // The provided value isn't a valid DB cluster snapshot state.
  1084. //
  1085. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  1086. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  1087. //
  1088. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DeleteDBClusterSnapshot
  1089. func (c *DocDB) DeleteDBClusterSnapshot(input *DeleteDBClusterSnapshotInput) (*DeleteDBClusterSnapshotOutput, error) {
  1090. req, out := c.DeleteDBClusterSnapshotRequest(input)
  1091. return out, req.Send()
  1092. }
  1093. // DeleteDBClusterSnapshotWithContext is the same as DeleteDBClusterSnapshot with the addition of
  1094. // the ability to pass a context and additional request options.
  1095. //
  1096. // See DeleteDBClusterSnapshot for details on how to use this API operation.
  1097. //
  1098. // The context must be non-nil and will be used for request cancellation. If
  1099. // the context is nil a panic will occur. In the future the SDK may create
  1100. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1101. // for more information on using Contexts.
  1102. func (c *DocDB) DeleteDBClusterSnapshotWithContext(ctx aws.Context, input *DeleteDBClusterSnapshotInput, opts ...request.Option) (*DeleteDBClusterSnapshotOutput, error) {
  1103. req, out := c.DeleteDBClusterSnapshotRequest(input)
  1104. req.SetContext(ctx)
  1105. req.ApplyOptions(opts...)
  1106. return out, req.Send()
  1107. }
  1108. const opDeleteDBInstance = "DeleteDBInstance"
  1109. // DeleteDBInstanceRequest generates a "aws/request.Request" representing the
  1110. // client's request for the DeleteDBInstance operation. The "output" return
  1111. // value will be populated with the request's response once the request completes
  1112. // successfully.
  1113. //
  1114. // Use "Send" method on the returned Request to send the API call to the service.
  1115. // the "output" return value is not valid until after Send returns without error.
  1116. //
  1117. // See DeleteDBInstance for more information on using the DeleteDBInstance
  1118. // API call, and error handling.
  1119. //
  1120. // This method is useful when you want to inject custom logic or configuration
  1121. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1122. //
  1123. //
  1124. // // Example sending a request using the DeleteDBInstanceRequest method.
  1125. // req, resp := client.DeleteDBInstanceRequest(params)
  1126. //
  1127. // err := req.Send()
  1128. // if err == nil { // resp is now filled
  1129. // fmt.Println(resp)
  1130. // }
  1131. //
  1132. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DeleteDBInstance
  1133. func (c *DocDB) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *request.Request, output *DeleteDBInstanceOutput) {
  1134. op := &request.Operation{
  1135. Name: opDeleteDBInstance,
  1136. HTTPMethod: "POST",
  1137. HTTPPath: "/",
  1138. }
  1139. if input == nil {
  1140. input = &DeleteDBInstanceInput{}
  1141. }
  1142. output = &DeleteDBInstanceOutput{}
  1143. req = c.newRequest(op, input, output)
  1144. return
  1145. }
  1146. // DeleteDBInstance API operation for Amazon DocumentDB with MongoDB compatibility.
  1147. //
  1148. // Deletes a previously provisioned DB instance.
  1149. //
  1150. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1151. // with awserr.Error's Code and Message methods to get detailed information about
  1152. // the error.
  1153. //
  1154. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  1155. // API operation DeleteDBInstance for usage and error information.
  1156. //
  1157. // Returned Error Codes:
  1158. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  1159. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  1160. //
  1161. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  1162. // The specified DB instance isn't in the available state.
  1163. //
  1164. // * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists"
  1165. // DBSnapshotIdentifier is already being used by an existing snapshot.
  1166. //
  1167. // * ErrCodeSnapshotQuotaExceededFault "SnapshotQuotaExceeded"
  1168. // The request would cause you to exceed the allowed number of DB snapshots.
  1169. //
  1170. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  1171. // The DB cluster isn't in a valid state.
  1172. //
  1173. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DeleteDBInstance
  1174. func (c *DocDB) DeleteDBInstance(input *DeleteDBInstanceInput) (*DeleteDBInstanceOutput, error) {
  1175. req, out := c.DeleteDBInstanceRequest(input)
  1176. return out, req.Send()
  1177. }
  1178. // DeleteDBInstanceWithContext is the same as DeleteDBInstance with the addition of
  1179. // the ability to pass a context and additional request options.
  1180. //
  1181. // See DeleteDBInstance for details on how to use this API operation.
  1182. //
  1183. // The context must be non-nil and will be used for request cancellation. If
  1184. // the context is nil a panic will occur. In the future the SDK may create
  1185. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1186. // for more information on using Contexts.
  1187. func (c *DocDB) DeleteDBInstanceWithContext(ctx aws.Context, input *DeleteDBInstanceInput, opts ...request.Option) (*DeleteDBInstanceOutput, error) {
  1188. req, out := c.DeleteDBInstanceRequest(input)
  1189. req.SetContext(ctx)
  1190. req.ApplyOptions(opts...)
  1191. return out, req.Send()
  1192. }
  1193. const opDeleteDBSubnetGroup = "DeleteDBSubnetGroup"
  1194. // DeleteDBSubnetGroupRequest generates a "aws/request.Request" representing the
  1195. // client's request for the DeleteDBSubnetGroup operation. The "output" return
  1196. // value will be populated with the request's response once the request completes
  1197. // successfully.
  1198. //
  1199. // Use "Send" method on the returned Request to send the API call to the service.
  1200. // the "output" return value is not valid until after Send returns without error.
  1201. //
  1202. // See DeleteDBSubnetGroup for more information on using the DeleteDBSubnetGroup
  1203. // API call, and error handling.
  1204. //
  1205. // This method is useful when you want to inject custom logic or configuration
  1206. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1207. //
  1208. //
  1209. // // Example sending a request using the DeleteDBSubnetGroupRequest method.
  1210. // req, resp := client.DeleteDBSubnetGroupRequest(params)
  1211. //
  1212. // err := req.Send()
  1213. // if err == nil { // resp is now filled
  1214. // fmt.Println(resp)
  1215. // }
  1216. //
  1217. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DeleteDBSubnetGroup
  1218. func (c *DocDB) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req *request.Request, output *DeleteDBSubnetGroupOutput) {
  1219. op := &request.Operation{
  1220. Name: opDeleteDBSubnetGroup,
  1221. HTTPMethod: "POST",
  1222. HTTPPath: "/",
  1223. }
  1224. if input == nil {
  1225. input = &DeleteDBSubnetGroupInput{}
  1226. }
  1227. output = &DeleteDBSubnetGroupOutput{}
  1228. req = c.newRequest(op, input, output)
  1229. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1230. return
  1231. }
  1232. // DeleteDBSubnetGroup API operation for Amazon DocumentDB with MongoDB compatibility.
  1233. //
  1234. // Deletes a DB subnet group.
  1235. //
  1236. // The specified database subnet group must not be associated with any DB instances.
  1237. //
  1238. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1239. // with awserr.Error's Code and Message methods to get detailed information about
  1240. // the error.
  1241. //
  1242. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  1243. // API operation DeleteDBSubnetGroup for usage and error information.
  1244. //
  1245. // Returned Error Codes:
  1246. // * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault"
  1247. // The DB subnet group can't be deleted because it's in use.
  1248. //
  1249. // * ErrCodeInvalidDBSubnetStateFault "InvalidDBSubnetStateFault"
  1250. // The DB subnet isn't in the available state.
  1251. //
  1252. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  1253. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  1254. //
  1255. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DeleteDBSubnetGroup
  1256. func (c *DocDB) DeleteDBSubnetGroup(input *DeleteDBSubnetGroupInput) (*DeleteDBSubnetGroupOutput, error) {
  1257. req, out := c.DeleteDBSubnetGroupRequest(input)
  1258. return out, req.Send()
  1259. }
  1260. // DeleteDBSubnetGroupWithContext is the same as DeleteDBSubnetGroup with the addition of
  1261. // the ability to pass a context and additional request options.
  1262. //
  1263. // See DeleteDBSubnetGroup for details on how to use this API operation.
  1264. //
  1265. // The context must be non-nil and will be used for request cancellation. If
  1266. // the context is nil a panic will occur. In the future the SDK may create
  1267. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1268. // for more information on using Contexts.
  1269. func (c *DocDB) DeleteDBSubnetGroupWithContext(ctx aws.Context, input *DeleteDBSubnetGroupInput, opts ...request.Option) (*DeleteDBSubnetGroupOutput, error) {
  1270. req, out := c.DeleteDBSubnetGroupRequest(input)
  1271. req.SetContext(ctx)
  1272. req.ApplyOptions(opts...)
  1273. return out, req.Send()
  1274. }
  1275. const opDescribeDBClusterParameterGroups = "DescribeDBClusterParameterGroups"
  1276. // DescribeDBClusterParameterGroupsRequest generates a "aws/request.Request" representing the
  1277. // client's request for the DescribeDBClusterParameterGroups operation. The "output" return
  1278. // value will be populated with the request's response once the request completes
  1279. // successfully.
  1280. //
  1281. // Use "Send" method on the returned Request to send the API call to the service.
  1282. // the "output" return value is not valid until after Send returns without error.
  1283. //
  1284. // See DescribeDBClusterParameterGroups for more information on using the DescribeDBClusterParameterGroups
  1285. // API call, and error handling.
  1286. //
  1287. // This method is useful when you want to inject custom logic or configuration
  1288. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1289. //
  1290. //
  1291. // // Example sending a request using the DescribeDBClusterParameterGroupsRequest method.
  1292. // req, resp := client.DescribeDBClusterParameterGroupsRequest(params)
  1293. //
  1294. // err := req.Send()
  1295. // if err == nil { // resp is now filled
  1296. // fmt.Println(resp)
  1297. // }
  1298. //
  1299. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBClusterParameterGroups
  1300. func (c *DocDB) DescribeDBClusterParameterGroupsRequest(input *DescribeDBClusterParameterGroupsInput) (req *request.Request, output *DescribeDBClusterParameterGroupsOutput) {
  1301. op := &request.Operation{
  1302. Name: opDescribeDBClusterParameterGroups,
  1303. HTTPMethod: "POST",
  1304. HTTPPath: "/",
  1305. }
  1306. if input == nil {
  1307. input = &DescribeDBClusterParameterGroupsInput{}
  1308. }
  1309. output = &DescribeDBClusterParameterGroupsOutput{}
  1310. req = c.newRequest(op, input, output)
  1311. return
  1312. }
  1313. // DescribeDBClusterParameterGroups API operation for Amazon DocumentDB with MongoDB compatibility.
  1314. //
  1315. // Returns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName
  1316. // parameter is specified, the list contains only the description of the specified
  1317. // DB cluster parameter group.
  1318. //
  1319. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1320. // with awserr.Error's Code and Message methods to get detailed information about
  1321. // the error.
  1322. //
  1323. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  1324. // API operation DescribeDBClusterParameterGroups for usage and error information.
  1325. //
  1326. // Returned Error Codes:
  1327. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  1328. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  1329. //
  1330. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBClusterParameterGroups
  1331. func (c *DocDB) DescribeDBClusterParameterGroups(input *DescribeDBClusterParameterGroupsInput) (*DescribeDBClusterParameterGroupsOutput, error) {
  1332. req, out := c.DescribeDBClusterParameterGroupsRequest(input)
  1333. return out, req.Send()
  1334. }
  1335. // DescribeDBClusterParameterGroupsWithContext is the same as DescribeDBClusterParameterGroups with the addition of
  1336. // the ability to pass a context and additional request options.
  1337. //
  1338. // See DescribeDBClusterParameterGroups for details on how to use this API operation.
  1339. //
  1340. // The context must be non-nil and will be used for request cancellation. If
  1341. // the context is nil a panic will occur. In the future the SDK may create
  1342. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1343. // for more information on using Contexts.
  1344. func (c *DocDB) DescribeDBClusterParameterGroupsWithContext(ctx aws.Context, input *DescribeDBClusterParameterGroupsInput, opts ...request.Option) (*DescribeDBClusterParameterGroupsOutput, error) {
  1345. req, out := c.DescribeDBClusterParameterGroupsRequest(input)
  1346. req.SetContext(ctx)
  1347. req.ApplyOptions(opts...)
  1348. return out, req.Send()
  1349. }
  1350. const opDescribeDBClusterParameters = "DescribeDBClusterParameters"
  1351. // DescribeDBClusterParametersRequest generates a "aws/request.Request" representing the
  1352. // client's request for the DescribeDBClusterParameters operation. The "output" return
  1353. // value will be populated with the request's response once the request completes
  1354. // successfully.
  1355. //
  1356. // Use "Send" method on the returned Request to send the API call to the service.
  1357. // the "output" return value is not valid until after Send returns without error.
  1358. //
  1359. // See DescribeDBClusterParameters for more information on using the DescribeDBClusterParameters
  1360. // API call, and error handling.
  1361. //
  1362. // This method is useful when you want to inject custom logic or configuration
  1363. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1364. //
  1365. //
  1366. // // Example sending a request using the DescribeDBClusterParametersRequest method.
  1367. // req, resp := client.DescribeDBClusterParametersRequest(params)
  1368. //
  1369. // err := req.Send()
  1370. // if err == nil { // resp is now filled
  1371. // fmt.Println(resp)
  1372. // }
  1373. //
  1374. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBClusterParameters
  1375. func (c *DocDB) DescribeDBClusterParametersRequest(input *DescribeDBClusterParametersInput) (req *request.Request, output *DescribeDBClusterParametersOutput) {
  1376. op := &request.Operation{
  1377. Name: opDescribeDBClusterParameters,
  1378. HTTPMethod: "POST",
  1379. HTTPPath: "/",
  1380. }
  1381. if input == nil {
  1382. input = &DescribeDBClusterParametersInput{}
  1383. }
  1384. output = &DescribeDBClusterParametersOutput{}
  1385. req = c.newRequest(op, input, output)
  1386. return
  1387. }
  1388. // DescribeDBClusterParameters API operation for Amazon DocumentDB with MongoDB compatibility.
  1389. //
  1390. // Returns the detailed parameter list for a particular DB cluster parameter
  1391. // group.
  1392. //
  1393. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1394. // with awserr.Error's Code and Message methods to get detailed information about
  1395. // the error.
  1396. //
  1397. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  1398. // API operation DescribeDBClusterParameters for usage and error information.
  1399. //
  1400. // Returned Error Codes:
  1401. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  1402. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  1403. //
  1404. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBClusterParameters
  1405. func (c *DocDB) DescribeDBClusterParameters(input *DescribeDBClusterParametersInput) (*DescribeDBClusterParametersOutput, error) {
  1406. req, out := c.DescribeDBClusterParametersRequest(input)
  1407. return out, req.Send()
  1408. }
  1409. // DescribeDBClusterParametersWithContext is the same as DescribeDBClusterParameters with the addition of
  1410. // the ability to pass a context and additional request options.
  1411. //
  1412. // See DescribeDBClusterParameters for details on how to use this API operation.
  1413. //
  1414. // The context must be non-nil and will be used for request cancellation. If
  1415. // the context is nil a panic will occur. In the future the SDK may create
  1416. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1417. // for more information on using Contexts.
  1418. func (c *DocDB) DescribeDBClusterParametersWithContext(ctx aws.Context, input *DescribeDBClusterParametersInput, opts ...request.Option) (*DescribeDBClusterParametersOutput, error) {
  1419. req, out := c.DescribeDBClusterParametersRequest(input)
  1420. req.SetContext(ctx)
  1421. req.ApplyOptions(opts...)
  1422. return out, req.Send()
  1423. }
  1424. const opDescribeDBClusterSnapshotAttributes = "DescribeDBClusterSnapshotAttributes"
  1425. // DescribeDBClusterSnapshotAttributesRequest generates a "aws/request.Request" representing the
  1426. // client's request for the DescribeDBClusterSnapshotAttributes operation. The "output" return
  1427. // value will be populated with the request's response once the request completes
  1428. // successfully.
  1429. //
  1430. // Use "Send" method on the returned Request to send the API call to the service.
  1431. // the "output" return value is not valid until after Send returns without error.
  1432. //
  1433. // See DescribeDBClusterSnapshotAttributes for more information on using the DescribeDBClusterSnapshotAttributes
  1434. // API call, and error handling.
  1435. //
  1436. // This method is useful when you want to inject custom logic or configuration
  1437. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1438. //
  1439. //
  1440. // // Example sending a request using the DescribeDBClusterSnapshotAttributesRequest method.
  1441. // req, resp := client.DescribeDBClusterSnapshotAttributesRequest(params)
  1442. //
  1443. // err := req.Send()
  1444. // if err == nil { // resp is now filled
  1445. // fmt.Println(resp)
  1446. // }
  1447. //
  1448. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBClusterSnapshotAttributes
  1449. func (c *DocDB) DescribeDBClusterSnapshotAttributesRequest(input *DescribeDBClusterSnapshotAttributesInput) (req *request.Request, output *DescribeDBClusterSnapshotAttributesOutput) {
  1450. op := &request.Operation{
  1451. Name: opDescribeDBClusterSnapshotAttributes,
  1452. HTTPMethod: "POST",
  1453. HTTPPath: "/",
  1454. }
  1455. if input == nil {
  1456. input = &DescribeDBClusterSnapshotAttributesInput{}
  1457. }
  1458. output = &DescribeDBClusterSnapshotAttributesOutput{}
  1459. req = c.newRequest(op, input, output)
  1460. return
  1461. }
  1462. // DescribeDBClusterSnapshotAttributes API operation for Amazon DocumentDB with MongoDB compatibility.
  1463. //
  1464. // Returns a list of DB cluster snapshot attribute names and values for a manual
  1465. // DB cluster snapshot.
  1466. //
  1467. // When you share snapshots with other AWS accounts, DescribeDBClusterSnapshotAttributes
  1468. // returns the restore attribute and a list of IDs for the AWS accounts that
  1469. // are authorized to copy or restore the manual DB cluster snapshot. If all
  1470. // is included in the list of values for the restore attribute, then the manual
  1471. // DB cluster snapshot is public and can be copied or restored by all AWS accounts.
  1472. //
  1473. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1474. // with awserr.Error's Code and Message methods to get detailed information about
  1475. // the error.
  1476. //
  1477. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  1478. // API operation DescribeDBClusterSnapshotAttributes for usage and error information.
  1479. //
  1480. // Returned Error Codes:
  1481. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  1482. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  1483. //
  1484. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBClusterSnapshotAttributes
  1485. func (c *DocDB) DescribeDBClusterSnapshotAttributes(input *DescribeDBClusterSnapshotAttributesInput) (*DescribeDBClusterSnapshotAttributesOutput, error) {
  1486. req, out := c.DescribeDBClusterSnapshotAttributesRequest(input)
  1487. return out, req.Send()
  1488. }
  1489. // DescribeDBClusterSnapshotAttributesWithContext is the same as DescribeDBClusterSnapshotAttributes with the addition of
  1490. // the ability to pass a context and additional request options.
  1491. //
  1492. // See DescribeDBClusterSnapshotAttributes for details on how to use this API operation.
  1493. //
  1494. // The context must be non-nil and will be used for request cancellation. If
  1495. // the context is nil a panic will occur. In the future the SDK may create
  1496. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1497. // for more information on using Contexts.
  1498. func (c *DocDB) DescribeDBClusterSnapshotAttributesWithContext(ctx aws.Context, input *DescribeDBClusterSnapshotAttributesInput, opts ...request.Option) (*DescribeDBClusterSnapshotAttributesOutput, error) {
  1499. req, out := c.DescribeDBClusterSnapshotAttributesRequest(input)
  1500. req.SetContext(ctx)
  1501. req.ApplyOptions(opts...)
  1502. return out, req.Send()
  1503. }
  1504. const opDescribeDBClusterSnapshots = "DescribeDBClusterSnapshots"
  1505. // DescribeDBClusterSnapshotsRequest generates a "aws/request.Request" representing the
  1506. // client's request for the DescribeDBClusterSnapshots operation. The "output" return
  1507. // value will be populated with the request's response once the request completes
  1508. // successfully.
  1509. //
  1510. // Use "Send" method on the returned Request to send the API call to the service.
  1511. // the "output" return value is not valid until after Send returns without error.
  1512. //
  1513. // See DescribeDBClusterSnapshots for more information on using the DescribeDBClusterSnapshots
  1514. // API call, and error handling.
  1515. //
  1516. // This method is useful when you want to inject custom logic or configuration
  1517. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1518. //
  1519. //
  1520. // // Example sending a request using the DescribeDBClusterSnapshotsRequest method.
  1521. // req, resp := client.DescribeDBClusterSnapshotsRequest(params)
  1522. //
  1523. // err := req.Send()
  1524. // if err == nil { // resp is now filled
  1525. // fmt.Println(resp)
  1526. // }
  1527. //
  1528. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBClusterSnapshots
  1529. func (c *DocDB) DescribeDBClusterSnapshotsRequest(input *DescribeDBClusterSnapshotsInput) (req *request.Request, output *DescribeDBClusterSnapshotsOutput) {
  1530. op := &request.Operation{
  1531. Name: opDescribeDBClusterSnapshots,
  1532. HTTPMethod: "POST",
  1533. HTTPPath: "/",
  1534. }
  1535. if input == nil {
  1536. input = &DescribeDBClusterSnapshotsInput{}
  1537. }
  1538. output = &DescribeDBClusterSnapshotsOutput{}
  1539. req = c.newRequest(op, input, output)
  1540. return
  1541. }
  1542. // DescribeDBClusterSnapshots API operation for Amazon DocumentDB with MongoDB compatibility.
  1543. //
  1544. // Returns information about DB cluster snapshots. This API operation supports
  1545. // pagination.
  1546. //
  1547. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1548. // with awserr.Error's Code and Message methods to get detailed information about
  1549. // the error.
  1550. //
  1551. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  1552. // API operation DescribeDBClusterSnapshots for usage and error information.
  1553. //
  1554. // Returned Error Codes:
  1555. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  1556. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  1557. //
  1558. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBClusterSnapshots
  1559. func (c *DocDB) DescribeDBClusterSnapshots(input *DescribeDBClusterSnapshotsInput) (*DescribeDBClusterSnapshotsOutput, error) {
  1560. req, out := c.DescribeDBClusterSnapshotsRequest(input)
  1561. return out, req.Send()
  1562. }
  1563. // DescribeDBClusterSnapshotsWithContext is the same as DescribeDBClusterSnapshots with the addition of
  1564. // the ability to pass a context and additional request options.
  1565. //
  1566. // See DescribeDBClusterSnapshots for details on how to use this API operation.
  1567. //
  1568. // The context must be non-nil and will be used for request cancellation. If
  1569. // the context is nil a panic will occur. In the future the SDK may create
  1570. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1571. // for more information on using Contexts.
  1572. func (c *DocDB) DescribeDBClusterSnapshotsWithContext(ctx aws.Context, input *DescribeDBClusterSnapshotsInput, opts ...request.Option) (*DescribeDBClusterSnapshotsOutput, error) {
  1573. req, out := c.DescribeDBClusterSnapshotsRequest(input)
  1574. req.SetContext(ctx)
  1575. req.ApplyOptions(opts...)
  1576. return out, req.Send()
  1577. }
  1578. const opDescribeDBClusters = "DescribeDBClusters"
  1579. // DescribeDBClustersRequest generates a "aws/request.Request" representing the
  1580. // client's request for the DescribeDBClusters operation. The "output" return
  1581. // value will be populated with the request's response once the request completes
  1582. // successfully.
  1583. //
  1584. // Use "Send" method on the returned Request to send the API call to the service.
  1585. // the "output" return value is not valid until after Send returns without error.
  1586. //
  1587. // See DescribeDBClusters for more information on using the DescribeDBClusters
  1588. // API call, and error handling.
  1589. //
  1590. // This method is useful when you want to inject custom logic or configuration
  1591. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1592. //
  1593. //
  1594. // // Example sending a request using the DescribeDBClustersRequest method.
  1595. // req, resp := client.DescribeDBClustersRequest(params)
  1596. //
  1597. // err := req.Send()
  1598. // if err == nil { // resp is now filled
  1599. // fmt.Println(resp)
  1600. // }
  1601. //
  1602. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBClusters
  1603. func (c *DocDB) DescribeDBClustersRequest(input *DescribeDBClustersInput) (req *request.Request, output *DescribeDBClustersOutput) {
  1604. op := &request.Operation{
  1605. Name: opDescribeDBClusters,
  1606. HTTPMethod: "POST",
  1607. HTTPPath: "/",
  1608. Paginator: &request.Paginator{
  1609. InputTokens: []string{"Marker"},
  1610. OutputTokens: []string{"Marker"},
  1611. LimitToken: "MaxRecords",
  1612. TruncationToken: "",
  1613. },
  1614. }
  1615. if input == nil {
  1616. input = &DescribeDBClustersInput{}
  1617. }
  1618. output = &DescribeDBClustersOutput{}
  1619. req = c.newRequest(op, input, output)
  1620. return
  1621. }
  1622. // DescribeDBClusters API operation for Amazon DocumentDB with MongoDB compatibility.
  1623. //
  1624. // Returns information about provisioned Amazon DocumentDB DB clusters. This
  1625. // API operation supports pagination.
  1626. //
  1627. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1628. // with awserr.Error's Code and Message methods to get detailed information about
  1629. // the error.
  1630. //
  1631. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  1632. // API operation DescribeDBClusters for usage and error information.
  1633. //
  1634. // Returned Error Codes:
  1635. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  1636. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  1637. //
  1638. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBClusters
  1639. func (c *DocDB) DescribeDBClusters(input *DescribeDBClustersInput) (*DescribeDBClustersOutput, error) {
  1640. req, out := c.DescribeDBClustersRequest(input)
  1641. return out, req.Send()
  1642. }
  1643. // DescribeDBClustersWithContext is the same as DescribeDBClusters with the addition of
  1644. // the ability to pass a context and additional request options.
  1645. //
  1646. // See DescribeDBClusters for details on how to use this API operation.
  1647. //
  1648. // The context must be non-nil and will be used for request cancellation. If
  1649. // the context is nil a panic will occur. In the future the SDK may create
  1650. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1651. // for more information on using Contexts.
  1652. func (c *DocDB) DescribeDBClustersWithContext(ctx aws.Context, input *DescribeDBClustersInput, opts ...request.Option) (*DescribeDBClustersOutput, error) {
  1653. req, out := c.DescribeDBClustersRequest(input)
  1654. req.SetContext(ctx)
  1655. req.ApplyOptions(opts...)
  1656. return out, req.Send()
  1657. }
  1658. // DescribeDBClustersPages iterates over the pages of a DescribeDBClusters operation,
  1659. // calling the "fn" function with the response data for each page. To stop
  1660. // iterating, return false from the fn function.
  1661. //
  1662. // See DescribeDBClusters method for more information on how to use this operation.
  1663. //
  1664. // Note: This operation can generate multiple requests to a service.
  1665. //
  1666. // // Example iterating over at most 3 pages of a DescribeDBClusters operation.
  1667. // pageNum := 0
  1668. // err := client.DescribeDBClustersPages(params,
  1669. // func(page *DescribeDBClustersOutput, lastPage bool) bool {
  1670. // pageNum++
  1671. // fmt.Println(page)
  1672. // return pageNum <= 3
  1673. // })
  1674. //
  1675. func (c *DocDB) DescribeDBClustersPages(input *DescribeDBClustersInput, fn func(*DescribeDBClustersOutput, bool) bool) error {
  1676. return c.DescribeDBClustersPagesWithContext(aws.BackgroundContext(), input, fn)
  1677. }
  1678. // DescribeDBClustersPagesWithContext same as DescribeDBClustersPages except
  1679. // it takes a Context and allows setting request options on the pages.
  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 *DocDB) DescribeDBClustersPagesWithContext(ctx aws.Context, input *DescribeDBClustersInput, fn func(*DescribeDBClustersOutput, bool) bool, opts ...request.Option) error {
  1686. p := request.Pagination{
  1687. NewRequest: func() (*request.Request, error) {
  1688. var inCpy *DescribeDBClustersInput
  1689. if input != nil {
  1690. tmp := *input
  1691. inCpy = &tmp
  1692. }
  1693. req, _ := c.DescribeDBClustersRequest(inCpy)
  1694. req.SetContext(ctx)
  1695. req.ApplyOptions(opts...)
  1696. return req, nil
  1697. },
  1698. }
  1699. cont := true
  1700. for p.Next() && cont {
  1701. cont = fn(p.Page().(*DescribeDBClustersOutput), !p.HasNextPage())
  1702. }
  1703. return p.Err()
  1704. }
  1705. const opDescribeDBEngineVersions = "DescribeDBEngineVersions"
  1706. // DescribeDBEngineVersionsRequest generates a "aws/request.Request" representing the
  1707. // client's request for the DescribeDBEngineVersions operation. The "output" return
  1708. // value will be populated with the request's response once the request completes
  1709. // successfully.
  1710. //
  1711. // Use "Send" method on the returned Request to send the API call to the service.
  1712. // the "output" return value is not valid until after Send returns without error.
  1713. //
  1714. // See DescribeDBEngineVersions for more information on using the DescribeDBEngineVersions
  1715. // API call, and error handling.
  1716. //
  1717. // This method is useful when you want to inject custom logic or configuration
  1718. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1719. //
  1720. //
  1721. // // Example sending a request using the DescribeDBEngineVersionsRequest method.
  1722. // req, resp := client.DescribeDBEngineVersionsRequest(params)
  1723. //
  1724. // err := req.Send()
  1725. // if err == nil { // resp is now filled
  1726. // fmt.Println(resp)
  1727. // }
  1728. //
  1729. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBEngineVersions
  1730. func (c *DocDB) DescribeDBEngineVersionsRequest(input *DescribeDBEngineVersionsInput) (req *request.Request, output *DescribeDBEngineVersionsOutput) {
  1731. op := &request.Operation{
  1732. Name: opDescribeDBEngineVersions,
  1733. HTTPMethod: "POST",
  1734. HTTPPath: "/",
  1735. Paginator: &request.Paginator{
  1736. InputTokens: []string{"Marker"},
  1737. OutputTokens: []string{"Marker"},
  1738. LimitToken: "MaxRecords",
  1739. TruncationToken: "",
  1740. },
  1741. }
  1742. if input == nil {
  1743. input = &DescribeDBEngineVersionsInput{}
  1744. }
  1745. output = &DescribeDBEngineVersionsOutput{}
  1746. req = c.newRequest(op, input, output)
  1747. return
  1748. }
  1749. // DescribeDBEngineVersions API operation for Amazon DocumentDB with MongoDB compatibility.
  1750. //
  1751. // Returns a list of the available DB engines.
  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 DocumentDB with MongoDB compatibility's
  1758. // API operation DescribeDBEngineVersions for usage and error information.
  1759. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBEngineVersions
  1760. func (c *DocDB) DescribeDBEngineVersions(input *DescribeDBEngineVersionsInput) (*DescribeDBEngineVersionsOutput, error) {
  1761. req, out := c.DescribeDBEngineVersionsRequest(input)
  1762. return out, req.Send()
  1763. }
  1764. // DescribeDBEngineVersionsWithContext is the same as DescribeDBEngineVersions with the addition of
  1765. // the ability to pass a context and additional request options.
  1766. //
  1767. // See DescribeDBEngineVersions for details on how to use this API operation.
  1768. //
  1769. // The context must be non-nil and will be used for request cancellation. If
  1770. // the context is nil a panic will occur. In the future the SDK may create
  1771. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1772. // for more information on using Contexts.
  1773. func (c *DocDB) DescribeDBEngineVersionsWithContext(ctx aws.Context, input *DescribeDBEngineVersionsInput, opts ...request.Option) (*DescribeDBEngineVersionsOutput, error) {
  1774. req, out := c.DescribeDBEngineVersionsRequest(input)
  1775. req.SetContext(ctx)
  1776. req.ApplyOptions(opts...)
  1777. return out, req.Send()
  1778. }
  1779. // DescribeDBEngineVersionsPages iterates over the pages of a DescribeDBEngineVersions operation,
  1780. // calling the "fn" function with the response data for each page. To stop
  1781. // iterating, return false from the fn function.
  1782. //
  1783. // See DescribeDBEngineVersions method for more information on how to use this operation.
  1784. //
  1785. // Note: This operation can generate multiple requests to a service.
  1786. //
  1787. // // Example iterating over at most 3 pages of a DescribeDBEngineVersions operation.
  1788. // pageNum := 0
  1789. // err := client.DescribeDBEngineVersionsPages(params,
  1790. // func(page *DescribeDBEngineVersionsOutput, lastPage bool) bool {
  1791. // pageNum++
  1792. // fmt.Println(page)
  1793. // return pageNum <= 3
  1794. // })
  1795. //
  1796. func (c *DocDB) DescribeDBEngineVersionsPages(input *DescribeDBEngineVersionsInput, fn func(*DescribeDBEngineVersionsOutput, bool) bool) error {
  1797. return c.DescribeDBEngineVersionsPagesWithContext(aws.BackgroundContext(), input, fn)
  1798. }
  1799. // DescribeDBEngineVersionsPagesWithContext same as DescribeDBEngineVersionsPages except
  1800. // it takes a Context and allows setting request options on the pages.
  1801. //
  1802. // The context must be non-nil and will be used for request cancellation. If
  1803. // the context is nil a panic will occur. In the future the SDK may create
  1804. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1805. // for more information on using Contexts.
  1806. func (c *DocDB) DescribeDBEngineVersionsPagesWithContext(ctx aws.Context, input *DescribeDBEngineVersionsInput, fn func(*DescribeDBEngineVersionsOutput, bool) bool, opts ...request.Option) error {
  1807. p := request.Pagination{
  1808. NewRequest: func() (*request.Request, error) {
  1809. var inCpy *DescribeDBEngineVersionsInput
  1810. if input != nil {
  1811. tmp := *input
  1812. inCpy = &tmp
  1813. }
  1814. req, _ := c.DescribeDBEngineVersionsRequest(inCpy)
  1815. req.SetContext(ctx)
  1816. req.ApplyOptions(opts...)
  1817. return req, nil
  1818. },
  1819. }
  1820. cont := true
  1821. for p.Next() && cont {
  1822. cont = fn(p.Page().(*DescribeDBEngineVersionsOutput), !p.HasNextPage())
  1823. }
  1824. return p.Err()
  1825. }
  1826. const opDescribeDBInstances = "DescribeDBInstances"
  1827. // DescribeDBInstancesRequest generates a "aws/request.Request" representing the
  1828. // client's request for the DescribeDBInstances operation. The "output" return
  1829. // value will be populated with the request's response once the request completes
  1830. // successfully.
  1831. //
  1832. // Use "Send" method on the returned Request to send the API call to the service.
  1833. // the "output" return value is not valid until after Send returns without error.
  1834. //
  1835. // See DescribeDBInstances for more information on using the DescribeDBInstances
  1836. // API call, and error handling.
  1837. //
  1838. // This method is useful when you want to inject custom logic or configuration
  1839. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1840. //
  1841. //
  1842. // // Example sending a request using the DescribeDBInstancesRequest method.
  1843. // req, resp := client.DescribeDBInstancesRequest(params)
  1844. //
  1845. // err := req.Send()
  1846. // if err == nil { // resp is now filled
  1847. // fmt.Println(resp)
  1848. // }
  1849. //
  1850. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBInstances
  1851. func (c *DocDB) DescribeDBInstancesRequest(input *DescribeDBInstancesInput) (req *request.Request, output *DescribeDBInstancesOutput) {
  1852. op := &request.Operation{
  1853. Name: opDescribeDBInstances,
  1854. HTTPMethod: "POST",
  1855. HTTPPath: "/",
  1856. Paginator: &request.Paginator{
  1857. InputTokens: []string{"Marker"},
  1858. OutputTokens: []string{"Marker"},
  1859. LimitToken: "MaxRecords",
  1860. TruncationToken: "",
  1861. },
  1862. }
  1863. if input == nil {
  1864. input = &DescribeDBInstancesInput{}
  1865. }
  1866. output = &DescribeDBInstancesOutput{}
  1867. req = c.newRequest(op, input, output)
  1868. return
  1869. }
  1870. // DescribeDBInstances API operation for Amazon DocumentDB with MongoDB compatibility.
  1871. //
  1872. // Returns information about provisioned Amazon DocumentDB instances. This API
  1873. // supports pagination.
  1874. //
  1875. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1876. // with awserr.Error's Code and Message methods to get detailed information about
  1877. // the error.
  1878. //
  1879. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  1880. // API operation DescribeDBInstances for usage and error information.
  1881. //
  1882. // Returned Error Codes:
  1883. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  1884. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  1885. //
  1886. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBInstances
  1887. func (c *DocDB) DescribeDBInstances(input *DescribeDBInstancesInput) (*DescribeDBInstancesOutput, error) {
  1888. req, out := c.DescribeDBInstancesRequest(input)
  1889. return out, req.Send()
  1890. }
  1891. // DescribeDBInstancesWithContext is the same as DescribeDBInstances with the addition of
  1892. // the ability to pass a context and additional request options.
  1893. //
  1894. // See DescribeDBInstances for details on how to use this API operation.
  1895. //
  1896. // The context must be non-nil and will be used for request cancellation. If
  1897. // the context is nil a panic will occur. In the future the SDK may create
  1898. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1899. // for more information on using Contexts.
  1900. func (c *DocDB) DescribeDBInstancesWithContext(ctx aws.Context, input *DescribeDBInstancesInput, opts ...request.Option) (*DescribeDBInstancesOutput, error) {
  1901. req, out := c.DescribeDBInstancesRequest(input)
  1902. req.SetContext(ctx)
  1903. req.ApplyOptions(opts...)
  1904. return out, req.Send()
  1905. }
  1906. // DescribeDBInstancesPages iterates over the pages of a DescribeDBInstances operation,
  1907. // calling the "fn" function with the response data for each page. To stop
  1908. // iterating, return false from the fn function.
  1909. //
  1910. // See DescribeDBInstances method for more information on how to use this operation.
  1911. //
  1912. // Note: This operation can generate multiple requests to a service.
  1913. //
  1914. // // Example iterating over at most 3 pages of a DescribeDBInstances operation.
  1915. // pageNum := 0
  1916. // err := client.DescribeDBInstancesPages(params,
  1917. // func(page *DescribeDBInstancesOutput, lastPage bool) bool {
  1918. // pageNum++
  1919. // fmt.Println(page)
  1920. // return pageNum <= 3
  1921. // })
  1922. //
  1923. func (c *DocDB) DescribeDBInstancesPages(input *DescribeDBInstancesInput, fn func(*DescribeDBInstancesOutput, bool) bool) error {
  1924. return c.DescribeDBInstancesPagesWithContext(aws.BackgroundContext(), input, fn)
  1925. }
  1926. // DescribeDBInstancesPagesWithContext same as DescribeDBInstancesPages except
  1927. // it takes a Context and allows setting request options on the pages.
  1928. //
  1929. // The context must be non-nil and will be used for request cancellation. If
  1930. // the context is nil a panic will occur. In the future the SDK may create
  1931. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1932. // for more information on using Contexts.
  1933. func (c *DocDB) DescribeDBInstancesPagesWithContext(ctx aws.Context, input *DescribeDBInstancesInput, fn func(*DescribeDBInstancesOutput, bool) bool, opts ...request.Option) error {
  1934. p := request.Pagination{
  1935. NewRequest: func() (*request.Request, error) {
  1936. var inCpy *DescribeDBInstancesInput
  1937. if input != nil {
  1938. tmp := *input
  1939. inCpy = &tmp
  1940. }
  1941. req, _ := c.DescribeDBInstancesRequest(inCpy)
  1942. req.SetContext(ctx)
  1943. req.ApplyOptions(opts...)
  1944. return req, nil
  1945. },
  1946. }
  1947. cont := true
  1948. for p.Next() && cont {
  1949. cont = fn(p.Page().(*DescribeDBInstancesOutput), !p.HasNextPage())
  1950. }
  1951. return p.Err()
  1952. }
  1953. const opDescribeDBSubnetGroups = "DescribeDBSubnetGroups"
  1954. // DescribeDBSubnetGroupsRequest generates a "aws/request.Request" representing the
  1955. // client's request for the DescribeDBSubnetGroups operation. The "output" return
  1956. // value will be populated with the request's response once the request completes
  1957. // successfully.
  1958. //
  1959. // Use "Send" method on the returned Request to send the API call to the service.
  1960. // the "output" return value is not valid until after Send returns without error.
  1961. //
  1962. // See DescribeDBSubnetGroups for more information on using the DescribeDBSubnetGroups
  1963. // API call, and error handling.
  1964. //
  1965. // This method is useful when you want to inject custom logic or configuration
  1966. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1967. //
  1968. //
  1969. // // Example sending a request using the DescribeDBSubnetGroupsRequest method.
  1970. // req, resp := client.DescribeDBSubnetGroupsRequest(params)
  1971. //
  1972. // err := req.Send()
  1973. // if err == nil { // resp is now filled
  1974. // fmt.Println(resp)
  1975. // }
  1976. //
  1977. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBSubnetGroups
  1978. func (c *DocDB) DescribeDBSubnetGroupsRequest(input *DescribeDBSubnetGroupsInput) (req *request.Request, output *DescribeDBSubnetGroupsOutput) {
  1979. op := &request.Operation{
  1980. Name: opDescribeDBSubnetGroups,
  1981. HTTPMethod: "POST",
  1982. HTTPPath: "/",
  1983. Paginator: &request.Paginator{
  1984. InputTokens: []string{"Marker"},
  1985. OutputTokens: []string{"Marker"},
  1986. LimitToken: "MaxRecords",
  1987. TruncationToken: "",
  1988. },
  1989. }
  1990. if input == nil {
  1991. input = &DescribeDBSubnetGroupsInput{}
  1992. }
  1993. output = &DescribeDBSubnetGroupsOutput{}
  1994. req = c.newRequest(op, input, output)
  1995. return
  1996. }
  1997. // DescribeDBSubnetGroups API operation for Amazon DocumentDB with MongoDB compatibility.
  1998. //
  1999. // Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified,
  2000. // the list will contain only the descriptions of the specified DBSubnetGroup.
  2001. //
  2002. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2003. // with awserr.Error's Code and Message methods to get detailed information about
  2004. // the error.
  2005. //
  2006. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  2007. // API operation DescribeDBSubnetGroups for usage and error information.
  2008. //
  2009. // Returned Error Codes:
  2010. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  2011. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  2012. //
  2013. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeDBSubnetGroups
  2014. func (c *DocDB) DescribeDBSubnetGroups(input *DescribeDBSubnetGroupsInput) (*DescribeDBSubnetGroupsOutput, error) {
  2015. req, out := c.DescribeDBSubnetGroupsRequest(input)
  2016. return out, req.Send()
  2017. }
  2018. // DescribeDBSubnetGroupsWithContext is the same as DescribeDBSubnetGroups with the addition of
  2019. // the ability to pass a context and additional request options.
  2020. //
  2021. // See DescribeDBSubnetGroups for details on how to use this API operation.
  2022. //
  2023. // The context must be non-nil and will be used for request cancellation. If
  2024. // the context is nil a panic will occur. In the future the SDK may create
  2025. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2026. // for more information on using Contexts.
  2027. func (c *DocDB) DescribeDBSubnetGroupsWithContext(ctx aws.Context, input *DescribeDBSubnetGroupsInput, opts ...request.Option) (*DescribeDBSubnetGroupsOutput, error) {
  2028. req, out := c.DescribeDBSubnetGroupsRequest(input)
  2029. req.SetContext(ctx)
  2030. req.ApplyOptions(opts...)
  2031. return out, req.Send()
  2032. }
  2033. // DescribeDBSubnetGroupsPages iterates over the pages of a DescribeDBSubnetGroups operation,
  2034. // calling the "fn" function with the response data for each page. To stop
  2035. // iterating, return false from the fn function.
  2036. //
  2037. // See DescribeDBSubnetGroups method for more information on how to use this operation.
  2038. //
  2039. // Note: This operation can generate multiple requests to a service.
  2040. //
  2041. // // Example iterating over at most 3 pages of a DescribeDBSubnetGroups operation.
  2042. // pageNum := 0
  2043. // err := client.DescribeDBSubnetGroupsPages(params,
  2044. // func(page *DescribeDBSubnetGroupsOutput, lastPage bool) bool {
  2045. // pageNum++
  2046. // fmt.Println(page)
  2047. // return pageNum <= 3
  2048. // })
  2049. //
  2050. func (c *DocDB) DescribeDBSubnetGroupsPages(input *DescribeDBSubnetGroupsInput, fn func(*DescribeDBSubnetGroupsOutput, bool) bool) error {
  2051. return c.DescribeDBSubnetGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
  2052. }
  2053. // DescribeDBSubnetGroupsPagesWithContext same as DescribeDBSubnetGroupsPages except
  2054. // it takes a Context and allows setting request options on the pages.
  2055. //
  2056. // The context must be non-nil and will be used for request cancellation. If
  2057. // the context is nil a panic will occur. In the future the SDK may create
  2058. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2059. // for more information on using Contexts.
  2060. func (c *DocDB) DescribeDBSubnetGroupsPagesWithContext(ctx aws.Context, input *DescribeDBSubnetGroupsInput, fn func(*DescribeDBSubnetGroupsOutput, bool) bool, opts ...request.Option) error {
  2061. p := request.Pagination{
  2062. NewRequest: func() (*request.Request, error) {
  2063. var inCpy *DescribeDBSubnetGroupsInput
  2064. if input != nil {
  2065. tmp := *input
  2066. inCpy = &tmp
  2067. }
  2068. req, _ := c.DescribeDBSubnetGroupsRequest(inCpy)
  2069. req.SetContext(ctx)
  2070. req.ApplyOptions(opts...)
  2071. return req, nil
  2072. },
  2073. }
  2074. cont := true
  2075. for p.Next() && cont {
  2076. cont = fn(p.Page().(*DescribeDBSubnetGroupsOutput), !p.HasNextPage())
  2077. }
  2078. return p.Err()
  2079. }
  2080. const opDescribeEngineDefaultClusterParameters = "DescribeEngineDefaultClusterParameters"
  2081. // DescribeEngineDefaultClusterParametersRequest generates a "aws/request.Request" representing the
  2082. // client's request for the DescribeEngineDefaultClusterParameters operation. The "output" return
  2083. // value will be populated with the request's response once the request completes
  2084. // successfully.
  2085. //
  2086. // Use "Send" method on the returned Request to send the API call to the service.
  2087. // the "output" return value is not valid until after Send returns without error.
  2088. //
  2089. // See DescribeEngineDefaultClusterParameters for more information on using the DescribeEngineDefaultClusterParameters
  2090. // API call, and error handling.
  2091. //
  2092. // This method is useful when you want to inject custom logic or configuration
  2093. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2094. //
  2095. //
  2096. // // Example sending a request using the DescribeEngineDefaultClusterParametersRequest method.
  2097. // req, resp := client.DescribeEngineDefaultClusterParametersRequest(params)
  2098. //
  2099. // err := req.Send()
  2100. // if err == nil { // resp is now filled
  2101. // fmt.Println(resp)
  2102. // }
  2103. //
  2104. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeEngineDefaultClusterParameters
  2105. func (c *DocDB) DescribeEngineDefaultClusterParametersRequest(input *DescribeEngineDefaultClusterParametersInput) (req *request.Request, output *DescribeEngineDefaultClusterParametersOutput) {
  2106. op := &request.Operation{
  2107. Name: opDescribeEngineDefaultClusterParameters,
  2108. HTTPMethod: "POST",
  2109. HTTPPath: "/",
  2110. }
  2111. if input == nil {
  2112. input = &DescribeEngineDefaultClusterParametersInput{}
  2113. }
  2114. output = &DescribeEngineDefaultClusterParametersOutput{}
  2115. req = c.newRequest(op, input, output)
  2116. return
  2117. }
  2118. // DescribeEngineDefaultClusterParameters API operation for Amazon DocumentDB with MongoDB compatibility.
  2119. //
  2120. // Returns the default engine and system parameter information for the cluster
  2121. // database engine.
  2122. //
  2123. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2124. // with awserr.Error's Code and Message methods to get detailed information about
  2125. // the error.
  2126. //
  2127. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  2128. // API operation DescribeEngineDefaultClusterParameters for usage and error information.
  2129. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeEngineDefaultClusterParameters
  2130. func (c *DocDB) DescribeEngineDefaultClusterParameters(input *DescribeEngineDefaultClusterParametersInput) (*DescribeEngineDefaultClusterParametersOutput, error) {
  2131. req, out := c.DescribeEngineDefaultClusterParametersRequest(input)
  2132. return out, req.Send()
  2133. }
  2134. // DescribeEngineDefaultClusterParametersWithContext is the same as DescribeEngineDefaultClusterParameters with the addition of
  2135. // the ability to pass a context and additional request options.
  2136. //
  2137. // See DescribeEngineDefaultClusterParameters for details on how to use this API operation.
  2138. //
  2139. // The context must be non-nil and will be used for request cancellation. If
  2140. // the context is nil a panic will occur. In the future the SDK may create
  2141. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2142. // for more information on using Contexts.
  2143. func (c *DocDB) DescribeEngineDefaultClusterParametersWithContext(ctx aws.Context, input *DescribeEngineDefaultClusterParametersInput, opts ...request.Option) (*DescribeEngineDefaultClusterParametersOutput, error) {
  2144. req, out := c.DescribeEngineDefaultClusterParametersRequest(input)
  2145. req.SetContext(ctx)
  2146. req.ApplyOptions(opts...)
  2147. return out, req.Send()
  2148. }
  2149. const opDescribeEventCategories = "DescribeEventCategories"
  2150. // DescribeEventCategoriesRequest generates a "aws/request.Request" representing the
  2151. // client's request for the DescribeEventCategories operation. The "output" return
  2152. // value will be populated with the request's response once the request completes
  2153. // successfully.
  2154. //
  2155. // Use "Send" method on the returned Request to send the API call to the service.
  2156. // the "output" return value is not valid until after Send returns without error.
  2157. //
  2158. // See DescribeEventCategories for more information on using the DescribeEventCategories
  2159. // API call, and error handling.
  2160. //
  2161. // This method is useful when you want to inject custom logic or configuration
  2162. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2163. //
  2164. //
  2165. // // Example sending a request using the DescribeEventCategoriesRequest method.
  2166. // req, resp := client.DescribeEventCategoriesRequest(params)
  2167. //
  2168. // err := req.Send()
  2169. // if err == nil { // resp is now filled
  2170. // fmt.Println(resp)
  2171. // }
  2172. //
  2173. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeEventCategories
  2174. func (c *DocDB) DescribeEventCategoriesRequest(input *DescribeEventCategoriesInput) (req *request.Request, output *DescribeEventCategoriesOutput) {
  2175. op := &request.Operation{
  2176. Name: opDescribeEventCategories,
  2177. HTTPMethod: "POST",
  2178. HTTPPath: "/",
  2179. }
  2180. if input == nil {
  2181. input = &DescribeEventCategoriesInput{}
  2182. }
  2183. output = &DescribeEventCategoriesOutput{}
  2184. req = c.newRequest(op, input, output)
  2185. return
  2186. }
  2187. // DescribeEventCategories API operation for Amazon DocumentDB with MongoDB compatibility.
  2188. //
  2189. // Displays a list of categories for all event source types, or, if specified,
  2190. // for a specified source type.
  2191. //
  2192. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2193. // with awserr.Error's Code and Message methods to get detailed information about
  2194. // the error.
  2195. //
  2196. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  2197. // API operation DescribeEventCategories for usage and error information.
  2198. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeEventCategories
  2199. func (c *DocDB) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error) {
  2200. req, out := c.DescribeEventCategoriesRequest(input)
  2201. return out, req.Send()
  2202. }
  2203. // DescribeEventCategoriesWithContext is the same as DescribeEventCategories with the addition of
  2204. // the ability to pass a context and additional request options.
  2205. //
  2206. // See DescribeEventCategories for details on how to use this API operation.
  2207. //
  2208. // The context must be non-nil and will be used for request cancellation. If
  2209. // the context is nil a panic will occur. In the future the SDK may create
  2210. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2211. // for more information on using Contexts.
  2212. func (c *DocDB) DescribeEventCategoriesWithContext(ctx aws.Context, input *DescribeEventCategoriesInput, opts ...request.Option) (*DescribeEventCategoriesOutput, error) {
  2213. req, out := c.DescribeEventCategoriesRequest(input)
  2214. req.SetContext(ctx)
  2215. req.ApplyOptions(opts...)
  2216. return out, req.Send()
  2217. }
  2218. const opDescribeEvents = "DescribeEvents"
  2219. // DescribeEventsRequest generates a "aws/request.Request" representing the
  2220. // client's request for the DescribeEvents operation. The "output" return
  2221. // value will be populated with the request's response once the request completes
  2222. // successfully.
  2223. //
  2224. // Use "Send" method on the returned Request to send the API call to the service.
  2225. // the "output" return value is not valid until after Send returns without error.
  2226. //
  2227. // See DescribeEvents for more information on using the DescribeEvents
  2228. // API call, and error handling.
  2229. //
  2230. // This method is useful when you want to inject custom logic or configuration
  2231. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2232. //
  2233. //
  2234. // // Example sending a request using the DescribeEventsRequest method.
  2235. // req, resp := client.DescribeEventsRequest(params)
  2236. //
  2237. // err := req.Send()
  2238. // if err == nil { // resp is now filled
  2239. // fmt.Println(resp)
  2240. // }
  2241. //
  2242. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeEvents
  2243. func (c *DocDB) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) {
  2244. op := &request.Operation{
  2245. Name: opDescribeEvents,
  2246. HTTPMethod: "POST",
  2247. HTTPPath: "/",
  2248. Paginator: &request.Paginator{
  2249. InputTokens: []string{"Marker"},
  2250. OutputTokens: []string{"Marker"},
  2251. LimitToken: "MaxRecords",
  2252. TruncationToken: "",
  2253. },
  2254. }
  2255. if input == nil {
  2256. input = &DescribeEventsInput{}
  2257. }
  2258. output = &DescribeEventsOutput{}
  2259. req = c.newRequest(op, input, output)
  2260. return
  2261. }
  2262. // DescribeEvents API operation for Amazon DocumentDB with MongoDB compatibility.
  2263. //
  2264. // Returns events related to DB instances, DB security groups, DB snapshots,
  2265. // and DB parameter groups for the past 14 days. You can obtain events specific
  2266. // to a particular DB instance, DB security group, DB snapshot, or DB parameter
  2267. // group by providing the name as a parameter. By default, the events of the
  2268. // past hour are returned.
  2269. //
  2270. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2271. // with awserr.Error's Code and Message methods to get detailed information about
  2272. // the error.
  2273. //
  2274. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  2275. // API operation DescribeEvents for usage and error information.
  2276. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeEvents
  2277. func (c *DocDB) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) {
  2278. req, out := c.DescribeEventsRequest(input)
  2279. return out, req.Send()
  2280. }
  2281. // DescribeEventsWithContext is the same as DescribeEvents with the addition of
  2282. // the ability to pass a context and additional request options.
  2283. //
  2284. // See DescribeEvents for details on how to use this API operation.
  2285. //
  2286. // The context must be non-nil and will be used for request cancellation. If
  2287. // the context is nil a panic will occur. In the future the SDK may create
  2288. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2289. // for more information on using Contexts.
  2290. func (c *DocDB) DescribeEventsWithContext(ctx aws.Context, input *DescribeEventsInput, opts ...request.Option) (*DescribeEventsOutput, error) {
  2291. req, out := c.DescribeEventsRequest(input)
  2292. req.SetContext(ctx)
  2293. req.ApplyOptions(opts...)
  2294. return out, req.Send()
  2295. }
  2296. // DescribeEventsPages iterates over the pages of a DescribeEvents operation,
  2297. // calling the "fn" function with the response data for each page. To stop
  2298. // iterating, return false from the fn function.
  2299. //
  2300. // See DescribeEvents method for more information on how to use this operation.
  2301. //
  2302. // Note: This operation can generate multiple requests to a service.
  2303. //
  2304. // // Example iterating over at most 3 pages of a DescribeEvents operation.
  2305. // pageNum := 0
  2306. // err := client.DescribeEventsPages(params,
  2307. // func(page *DescribeEventsOutput, lastPage bool) bool {
  2308. // pageNum++
  2309. // fmt.Println(page)
  2310. // return pageNum <= 3
  2311. // })
  2312. //
  2313. func (c *DocDB) DescribeEventsPages(input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool) error {
  2314. return c.DescribeEventsPagesWithContext(aws.BackgroundContext(), input, fn)
  2315. }
  2316. // DescribeEventsPagesWithContext same as DescribeEventsPages except
  2317. // it takes a Context and allows setting request options on the pages.
  2318. //
  2319. // The context must be non-nil and will be used for request cancellation. If
  2320. // the context is nil a panic will occur. In the future the SDK may create
  2321. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2322. // for more information on using Contexts.
  2323. func (c *DocDB) DescribeEventsPagesWithContext(ctx aws.Context, input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool, opts ...request.Option) error {
  2324. p := request.Pagination{
  2325. NewRequest: func() (*request.Request, error) {
  2326. var inCpy *DescribeEventsInput
  2327. if input != nil {
  2328. tmp := *input
  2329. inCpy = &tmp
  2330. }
  2331. req, _ := c.DescribeEventsRequest(inCpy)
  2332. req.SetContext(ctx)
  2333. req.ApplyOptions(opts...)
  2334. return req, nil
  2335. },
  2336. }
  2337. cont := true
  2338. for p.Next() && cont {
  2339. cont = fn(p.Page().(*DescribeEventsOutput), !p.HasNextPage())
  2340. }
  2341. return p.Err()
  2342. }
  2343. const opDescribeOrderableDBInstanceOptions = "DescribeOrderableDBInstanceOptions"
  2344. // DescribeOrderableDBInstanceOptionsRequest generates a "aws/request.Request" representing the
  2345. // client's request for the DescribeOrderableDBInstanceOptions operation. The "output" return
  2346. // value will be populated with the request's response once the request completes
  2347. // successfully.
  2348. //
  2349. // Use "Send" method on the returned Request to send the API call to the service.
  2350. // the "output" return value is not valid until after Send returns without error.
  2351. //
  2352. // See DescribeOrderableDBInstanceOptions for more information on using the DescribeOrderableDBInstanceOptions
  2353. // API call, and error handling.
  2354. //
  2355. // This method is useful when you want to inject custom logic or configuration
  2356. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2357. //
  2358. //
  2359. // // Example sending a request using the DescribeOrderableDBInstanceOptionsRequest method.
  2360. // req, resp := client.DescribeOrderableDBInstanceOptionsRequest(params)
  2361. //
  2362. // err := req.Send()
  2363. // if err == nil { // resp is now filled
  2364. // fmt.Println(resp)
  2365. // }
  2366. //
  2367. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeOrderableDBInstanceOptions
  2368. func (c *DocDB) DescribeOrderableDBInstanceOptionsRequest(input *DescribeOrderableDBInstanceOptionsInput) (req *request.Request, output *DescribeOrderableDBInstanceOptionsOutput) {
  2369. op := &request.Operation{
  2370. Name: opDescribeOrderableDBInstanceOptions,
  2371. HTTPMethod: "POST",
  2372. HTTPPath: "/",
  2373. Paginator: &request.Paginator{
  2374. InputTokens: []string{"Marker"},
  2375. OutputTokens: []string{"Marker"},
  2376. LimitToken: "MaxRecords",
  2377. TruncationToken: "",
  2378. },
  2379. }
  2380. if input == nil {
  2381. input = &DescribeOrderableDBInstanceOptionsInput{}
  2382. }
  2383. output = &DescribeOrderableDBInstanceOptionsOutput{}
  2384. req = c.newRequest(op, input, output)
  2385. return
  2386. }
  2387. // DescribeOrderableDBInstanceOptions API operation for Amazon DocumentDB with MongoDB compatibility.
  2388. //
  2389. // Returns a list of orderable DB instance options for the specified engine.
  2390. //
  2391. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2392. // with awserr.Error's Code and Message methods to get detailed information about
  2393. // the error.
  2394. //
  2395. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  2396. // API operation DescribeOrderableDBInstanceOptions for usage and error information.
  2397. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribeOrderableDBInstanceOptions
  2398. func (c *DocDB) DescribeOrderableDBInstanceOptions(input *DescribeOrderableDBInstanceOptionsInput) (*DescribeOrderableDBInstanceOptionsOutput, error) {
  2399. req, out := c.DescribeOrderableDBInstanceOptionsRequest(input)
  2400. return out, req.Send()
  2401. }
  2402. // DescribeOrderableDBInstanceOptionsWithContext is the same as DescribeOrderableDBInstanceOptions with the addition of
  2403. // the ability to pass a context and additional request options.
  2404. //
  2405. // See DescribeOrderableDBInstanceOptions for details on how to use this API operation.
  2406. //
  2407. // The context must be non-nil and will be used for request cancellation. If
  2408. // the context is nil a panic will occur. In the future the SDK may create
  2409. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2410. // for more information on using Contexts.
  2411. func (c *DocDB) DescribeOrderableDBInstanceOptionsWithContext(ctx aws.Context, input *DescribeOrderableDBInstanceOptionsInput, opts ...request.Option) (*DescribeOrderableDBInstanceOptionsOutput, error) {
  2412. req, out := c.DescribeOrderableDBInstanceOptionsRequest(input)
  2413. req.SetContext(ctx)
  2414. req.ApplyOptions(opts...)
  2415. return out, req.Send()
  2416. }
  2417. // DescribeOrderableDBInstanceOptionsPages iterates over the pages of a DescribeOrderableDBInstanceOptions operation,
  2418. // calling the "fn" function with the response data for each page. To stop
  2419. // iterating, return false from the fn function.
  2420. //
  2421. // See DescribeOrderableDBInstanceOptions method for more information on how to use this operation.
  2422. //
  2423. // Note: This operation can generate multiple requests to a service.
  2424. //
  2425. // // Example iterating over at most 3 pages of a DescribeOrderableDBInstanceOptions operation.
  2426. // pageNum := 0
  2427. // err := client.DescribeOrderableDBInstanceOptionsPages(params,
  2428. // func(page *DescribeOrderableDBInstanceOptionsOutput, lastPage bool) bool {
  2429. // pageNum++
  2430. // fmt.Println(page)
  2431. // return pageNum <= 3
  2432. // })
  2433. //
  2434. func (c *DocDB) DescribeOrderableDBInstanceOptionsPages(input *DescribeOrderableDBInstanceOptionsInput, fn func(*DescribeOrderableDBInstanceOptionsOutput, bool) bool) error {
  2435. return c.DescribeOrderableDBInstanceOptionsPagesWithContext(aws.BackgroundContext(), input, fn)
  2436. }
  2437. // DescribeOrderableDBInstanceOptionsPagesWithContext same as DescribeOrderableDBInstanceOptionsPages except
  2438. // it takes a Context and allows setting request options on the pages.
  2439. //
  2440. // The context must be non-nil and will be used for request cancellation. If
  2441. // the context is nil a panic will occur. In the future the SDK may create
  2442. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2443. // for more information on using Contexts.
  2444. func (c *DocDB) DescribeOrderableDBInstanceOptionsPagesWithContext(ctx aws.Context, input *DescribeOrderableDBInstanceOptionsInput, fn func(*DescribeOrderableDBInstanceOptionsOutput, bool) bool, opts ...request.Option) error {
  2445. p := request.Pagination{
  2446. NewRequest: func() (*request.Request, error) {
  2447. var inCpy *DescribeOrderableDBInstanceOptionsInput
  2448. if input != nil {
  2449. tmp := *input
  2450. inCpy = &tmp
  2451. }
  2452. req, _ := c.DescribeOrderableDBInstanceOptionsRequest(inCpy)
  2453. req.SetContext(ctx)
  2454. req.ApplyOptions(opts...)
  2455. return req, nil
  2456. },
  2457. }
  2458. cont := true
  2459. for p.Next() && cont {
  2460. cont = fn(p.Page().(*DescribeOrderableDBInstanceOptionsOutput), !p.HasNextPage())
  2461. }
  2462. return p.Err()
  2463. }
  2464. const opDescribePendingMaintenanceActions = "DescribePendingMaintenanceActions"
  2465. // DescribePendingMaintenanceActionsRequest generates a "aws/request.Request" representing the
  2466. // client's request for the DescribePendingMaintenanceActions operation. The "output" return
  2467. // value will be populated with the request's response once the request completes
  2468. // successfully.
  2469. //
  2470. // Use "Send" method on the returned Request to send the API call to the service.
  2471. // the "output" return value is not valid until after Send returns without error.
  2472. //
  2473. // See DescribePendingMaintenanceActions for more information on using the DescribePendingMaintenanceActions
  2474. // API call, and error handling.
  2475. //
  2476. // This method is useful when you want to inject custom logic or configuration
  2477. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2478. //
  2479. //
  2480. // // Example sending a request using the DescribePendingMaintenanceActionsRequest method.
  2481. // req, resp := client.DescribePendingMaintenanceActionsRequest(params)
  2482. //
  2483. // err := req.Send()
  2484. // if err == nil { // resp is now filled
  2485. // fmt.Println(resp)
  2486. // }
  2487. //
  2488. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribePendingMaintenanceActions
  2489. func (c *DocDB) DescribePendingMaintenanceActionsRequest(input *DescribePendingMaintenanceActionsInput) (req *request.Request, output *DescribePendingMaintenanceActionsOutput) {
  2490. op := &request.Operation{
  2491. Name: opDescribePendingMaintenanceActions,
  2492. HTTPMethod: "POST",
  2493. HTTPPath: "/",
  2494. }
  2495. if input == nil {
  2496. input = &DescribePendingMaintenanceActionsInput{}
  2497. }
  2498. output = &DescribePendingMaintenanceActionsOutput{}
  2499. req = c.newRequest(op, input, output)
  2500. return
  2501. }
  2502. // DescribePendingMaintenanceActions API operation for Amazon DocumentDB with MongoDB compatibility.
  2503. //
  2504. // Returns a list of resources (for example, DB instances) that have at least
  2505. // one pending maintenance action.
  2506. //
  2507. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2508. // with awserr.Error's Code and Message methods to get detailed information about
  2509. // the error.
  2510. //
  2511. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  2512. // API operation DescribePendingMaintenanceActions for usage and error information.
  2513. //
  2514. // Returned Error Codes:
  2515. // * ErrCodeResourceNotFoundFault "ResourceNotFoundFault"
  2516. // The specified resource ID was not found.
  2517. //
  2518. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DescribePendingMaintenanceActions
  2519. func (c *DocDB) DescribePendingMaintenanceActions(input *DescribePendingMaintenanceActionsInput) (*DescribePendingMaintenanceActionsOutput, error) {
  2520. req, out := c.DescribePendingMaintenanceActionsRequest(input)
  2521. return out, req.Send()
  2522. }
  2523. // DescribePendingMaintenanceActionsWithContext is the same as DescribePendingMaintenanceActions with the addition of
  2524. // the ability to pass a context and additional request options.
  2525. //
  2526. // See DescribePendingMaintenanceActions for details on how to use this API operation.
  2527. //
  2528. // The context must be non-nil and will be used for request cancellation. If
  2529. // the context is nil a panic will occur. In the future the SDK may create
  2530. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2531. // for more information on using Contexts.
  2532. func (c *DocDB) DescribePendingMaintenanceActionsWithContext(ctx aws.Context, input *DescribePendingMaintenanceActionsInput, opts ...request.Option) (*DescribePendingMaintenanceActionsOutput, error) {
  2533. req, out := c.DescribePendingMaintenanceActionsRequest(input)
  2534. req.SetContext(ctx)
  2535. req.ApplyOptions(opts...)
  2536. return out, req.Send()
  2537. }
  2538. const opFailoverDBCluster = "FailoverDBCluster"
  2539. // FailoverDBClusterRequest generates a "aws/request.Request" representing the
  2540. // client's request for the FailoverDBCluster operation. The "output" return
  2541. // value will be populated with the request's response once the request completes
  2542. // successfully.
  2543. //
  2544. // Use "Send" method on the returned Request to send the API call to the service.
  2545. // the "output" return value is not valid until after Send returns without error.
  2546. //
  2547. // See FailoverDBCluster for more information on using the FailoverDBCluster
  2548. // API call, and error handling.
  2549. //
  2550. // This method is useful when you want to inject custom logic or configuration
  2551. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2552. //
  2553. //
  2554. // // Example sending a request using the FailoverDBClusterRequest method.
  2555. // req, resp := client.FailoverDBClusterRequest(params)
  2556. //
  2557. // err := req.Send()
  2558. // if err == nil { // resp is now filled
  2559. // fmt.Println(resp)
  2560. // }
  2561. //
  2562. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/FailoverDBCluster
  2563. func (c *DocDB) FailoverDBClusterRequest(input *FailoverDBClusterInput) (req *request.Request, output *FailoverDBClusterOutput) {
  2564. op := &request.Operation{
  2565. Name: opFailoverDBCluster,
  2566. HTTPMethod: "POST",
  2567. HTTPPath: "/",
  2568. }
  2569. if input == nil {
  2570. input = &FailoverDBClusterInput{}
  2571. }
  2572. output = &FailoverDBClusterOutput{}
  2573. req = c.newRequest(op, input, output)
  2574. return
  2575. }
  2576. // FailoverDBCluster API operation for Amazon DocumentDB with MongoDB compatibility.
  2577. //
  2578. // Forces a failover for a DB cluster.
  2579. //
  2580. // A failover for a DB cluster promotes one of the Amazon DocumentDB replicas
  2581. // (read-only instances) in the DB cluster to be the primary instance (the cluster
  2582. // writer).
  2583. //
  2584. // If the primary instance fails, Amazon DocumentDB automatically fails over
  2585. // to an Amazon DocumentDB replica, if one exists. You can force a failover
  2586. // when you want to simulate a failure of a primary instance for testing.
  2587. //
  2588. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2589. // with awserr.Error's Code and Message methods to get detailed information about
  2590. // the error.
  2591. //
  2592. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  2593. // API operation FailoverDBCluster for usage and error information.
  2594. //
  2595. // Returned Error Codes:
  2596. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  2597. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  2598. //
  2599. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  2600. // The DB cluster isn't in a valid state.
  2601. //
  2602. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  2603. // The specified DB instance isn't in the available state.
  2604. //
  2605. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/FailoverDBCluster
  2606. func (c *DocDB) FailoverDBCluster(input *FailoverDBClusterInput) (*FailoverDBClusterOutput, error) {
  2607. req, out := c.FailoverDBClusterRequest(input)
  2608. return out, req.Send()
  2609. }
  2610. // FailoverDBClusterWithContext is the same as FailoverDBCluster with the addition of
  2611. // the ability to pass a context and additional request options.
  2612. //
  2613. // See FailoverDBCluster for details on how to use this API operation.
  2614. //
  2615. // The context must be non-nil and will be used for request cancellation. If
  2616. // the context is nil a panic will occur. In the future the SDK may create
  2617. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2618. // for more information on using Contexts.
  2619. func (c *DocDB) FailoverDBClusterWithContext(ctx aws.Context, input *FailoverDBClusterInput, opts ...request.Option) (*FailoverDBClusterOutput, error) {
  2620. req, out := c.FailoverDBClusterRequest(input)
  2621. req.SetContext(ctx)
  2622. req.ApplyOptions(opts...)
  2623. return out, req.Send()
  2624. }
  2625. const opListTagsForResource = "ListTagsForResource"
  2626. // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  2627. // client's request for the ListTagsForResource operation. The "output" return
  2628. // value will be populated with the request's response once the request completes
  2629. // successfully.
  2630. //
  2631. // Use "Send" method on the returned Request to send the API call to the service.
  2632. // the "output" return value is not valid until after Send returns without error.
  2633. //
  2634. // See ListTagsForResource for more information on using the ListTagsForResource
  2635. // API call, and error handling.
  2636. //
  2637. // This method is useful when you want to inject custom logic or configuration
  2638. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2639. //
  2640. //
  2641. // // Example sending a request using the ListTagsForResourceRequest method.
  2642. // req, resp := client.ListTagsForResourceRequest(params)
  2643. //
  2644. // err := req.Send()
  2645. // if err == nil { // resp is now filled
  2646. // fmt.Println(resp)
  2647. // }
  2648. //
  2649. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ListTagsForResource
  2650. func (c *DocDB) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  2651. op := &request.Operation{
  2652. Name: opListTagsForResource,
  2653. HTTPMethod: "POST",
  2654. HTTPPath: "/",
  2655. }
  2656. if input == nil {
  2657. input = &ListTagsForResourceInput{}
  2658. }
  2659. output = &ListTagsForResourceOutput{}
  2660. req = c.newRequest(op, input, output)
  2661. return
  2662. }
  2663. // ListTagsForResource API operation for Amazon DocumentDB with MongoDB compatibility.
  2664. //
  2665. // Lists all tags on an Amazon DocumentDB resource.
  2666. //
  2667. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2668. // with awserr.Error's Code and Message methods to get detailed information about
  2669. // the error.
  2670. //
  2671. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  2672. // API operation ListTagsForResource for usage and error information.
  2673. //
  2674. // Returned Error Codes:
  2675. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  2676. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  2677. //
  2678. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  2679. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  2680. //
  2681. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  2682. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  2683. //
  2684. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ListTagsForResource
  2685. func (c *DocDB) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  2686. req, out := c.ListTagsForResourceRequest(input)
  2687. return out, req.Send()
  2688. }
  2689. // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
  2690. // the ability to pass a context and additional request options.
  2691. //
  2692. // See ListTagsForResource for details on how to use this API operation.
  2693. //
  2694. // The context must be non-nil and will be used for request cancellation. If
  2695. // the context is nil a panic will occur. In the future the SDK may create
  2696. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2697. // for more information on using Contexts.
  2698. func (c *DocDB) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
  2699. req, out := c.ListTagsForResourceRequest(input)
  2700. req.SetContext(ctx)
  2701. req.ApplyOptions(opts...)
  2702. return out, req.Send()
  2703. }
  2704. const opModifyDBCluster = "ModifyDBCluster"
  2705. // ModifyDBClusterRequest generates a "aws/request.Request" representing the
  2706. // client's request for the ModifyDBCluster operation. The "output" return
  2707. // value will be populated with the request's response once the request completes
  2708. // successfully.
  2709. //
  2710. // Use "Send" method on the returned Request to send the API call to the service.
  2711. // the "output" return value is not valid until after Send returns without error.
  2712. //
  2713. // See ModifyDBCluster for more information on using the ModifyDBCluster
  2714. // API call, and error handling.
  2715. //
  2716. // This method is useful when you want to inject custom logic or configuration
  2717. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2718. //
  2719. //
  2720. // // Example sending a request using the ModifyDBClusterRequest method.
  2721. // req, resp := client.ModifyDBClusterRequest(params)
  2722. //
  2723. // err := req.Send()
  2724. // if err == nil { // resp is now filled
  2725. // fmt.Println(resp)
  2726. // }
  2727. //
  2728. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ModifyDBCluster
  2729. func (c *DocDB) ModifyDBClusterRequest(input *ModifyDBClusterInput) (req *request.Request, output *ModifyDBClusterOutput) {
  2730. op := &request.Operation{
  2731. Name: opModifyDBCluster,
  2732. HTTPMethod: "POST",
  2733. HTTPPath: "/",
  2734. }
  2735. if input == nil {
  2736. input = &ModifyDBClusterInput{}
  2737. }
  2738. output = &ModifyDBClusterOutput{}
  2739. req = c.newRequest(op, input, output)
  2740. return
  2741. }
  2742. // ModifyDBCluster API operation for Amazon DocumentDB with MongoDB compatibility.
  2743. //
  2744. // Modifies a setting for an Amazon DocumentDB DB cluster. You can change one
  2745. // or more database configuration parameters by specifying these parameters
  2746. // and the new values in the request.
  2747. //
  2748. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2749. // with awserr.Error's Code and Message methods to get detailed information about
  2750. // the error.
  2751. //
  2752. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  2753. // API operation ModifyDBCluster for usage and error information.
  2754. //
  2755. // Returned Error Codes:
  2756. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  2757. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  2758. //
  2759. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  2760. // The DB cluster isn't in a valid state.
  2761. //
  2762. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  2763. // The request would cause you to exceed the allowed amount of storage available
  2764. // across all DB instances.
  2765. //
  2766. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  2767. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  2768. //
  2769. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  2770. // The DB subnet group doesn't cover all Availability Zones after it is created
  2771. // because of changes that were made.
  2772. //
  2773. // * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault"
  2774. // The DB subnet group can't be deleted because it's in use.
  2775. //
  2776. // * ErrCodeInvalidSubnet "InvalidSubnet"
  2777. // The requested subnet is not valid, or multiple subnets were requested that
  2778. // are not all in a common virtual private cloud (VPC).
  2779. //
  2780. // * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound"
  2781. // DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter
  2782. // group.
  2783. //
  2784. // * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState"
  2785. // The state of the DB security group doesn't allow deletion.
  2786. //
  2787. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  2788. // The specified DB instance isn't in the available state.
  2789. //
  2790. // * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault"
  2791. // You already have a DB cluster with the given identifier.
  2792. //
  2793. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ModifyDBCluster
  2794. func (c *DocDB) ModifyDBCluster(input *ModifyDBClusterInput) (*ModifyDBClusterOutput, error) {
  2795. req, out := c.ModifyDBClusterRequest(input)
  2796. return out, req.Send()
  2797. }
  2798. // ModifyDBClusterWithContext is the same as ModifyDBCluster with the addition of
  2799. // the ability to pass a context and additional request options.
  2800. //
  2801. // See ModifyDBCluster for details on how to use this API operation.
  2802. //
  2803. // The context must be non-nil and will be used for request cancellation. If
  2804. // the context is nil a panic will occur. In the future the SDK may create
  2805. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2806. // for more information on using Contexts.
  2807. func (c *DocDB) ModifyDBClusterWithContext(ctx aws.Context, input *ModifyDBClusterInput, opts ...request.Option) (*ModifyDBClusterOutput, error) {
  2808. req, out := c.ModifyDBClusterRequest(input)
  2809. req.SetContext(ctx)
  2810. req.ApplyOptions(opts...)
  2811. return out, req.Send()
  2812. }
  2813. const opModifyDBClusterParameterGroup = "ModifyDBClusterParameterGroup"
  2814. // ModifyDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  2815. // client's request for the ModifyDBClusterParameterGroup operation. The "output" return
  2816. // value will be populated with the request's response once the request completes
  2817. // successfully.
  2818. //
  2819. // Use "Send" method on the returned Request to send the API call to the service.
  2820. // the "output" return value is not valid until after Send returns without error.
  2821. //
  2822. // See ModifyDBClusterParameterGroup for more information on using the ModifyDBClusterParameterGroup
  2823. // API call, and error handling.
  2824. //
  2825. // This method is useful when you want to inject custom logic or configuration
  2826. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2827. //
  2828. //
  2829. // // Example sending a request using the ModifyDBClusterParameterGroupRequest method.
  2830. // req, resp := client.ModifyDBClusterParameterGroupRequest(params)
  2831. //
  2832. // err := req.Send()
  2833. // if err == nil { // resp is now filled
  2834. // fmt.Println(resp)
  2835. // }
  2836. //
  2837. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ModifyDBClusterParameterGroup
  2838. func (c *DocDB) ModifyDBClusterParameterGroupRequest(input *ModifyDBClusterParameterGroupInput) (req *request.Request, output *ModifyDBClusterParameterGroupOutput) {
  2839. op := &request.Operation{
  2840. Name: opModifyDBClusterParameterGroup,
  2841. HTTPMethod: "POST",
  2842. HTTPPath: "/",
  2843. }
  2844. if input == nil {
  2845. input = &ModifyDBClusterParameterGroupInput{}
  2846. }
  2847. output = &ModifyDBClusterParameterGroupOutput{}
  2848. req = c.newRequest(op, input, output)
  2849. return
  2850. }
  2851. // ModifyDBClusterParameterGroup API operation for Amazon DocumentDB with MongoDB compatibility.
  2852. //
  2853. // Modifies the parameters of a DB cluster parameter group. To modify more than
  2854. // one parameter, submit a list of the following: ParameterName, ParameterValue,
  2855. // and ApplyMethod. A maximum of 20 parameters can be modified in a single request.
  2856. //
  2857. // Changes to dynamic parameters are applied immediately. Changes to static
  2858. // parameters require a reboot or maintenance window before the change can take
  2859. // effect.
  2860. //
  2861. // After you create a DB cluster parameter group, you should wait at least 5
  2862. // minutes before creating your first DB cluster that uses that DB cluster parameter
  2863. // group as the default parameter group. This allows Amazon DocumentDB to fully
  2864. // complete the create action before the parameter group is used as the default
  2865. // for a new DB cluster. This step is especially important for parameters that
  2866. // are critical when creating the default database for a DB cluster, such as
  2867. // the character set for the default database defined by the character_set_database
  2868. // parameter.
  2869. //
  2870. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2871. // with awserr.Error's Code and Message methods to get detailed information about
  2872. // the error.
  2873. //
  2874. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  2875. // API operation ModifyDBClusterParameterGroup for usage and error information.
  2876. //
  2877. // Returned Error Codes:
  2878. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  2879. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  2880. //
  2881. // * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState"
  2882. // The DB parameter group is in use, or it is in a state that is not valid.
  2883. // If you are trying to delete the parameter group, you can't delete it when
  2884. // the parameter group is in this state.
  2885. //
  2886. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ModifyDBClusterParameterGroup
  2887. func (c *DocDB) ModifyDBClusterParameterGroup(input *ModifyDBClusterParameterGroupInput) (*ModifyDBClusterParameterGroupOutput, error) {
  2888. req, out := c.ModifyDBClusterParameterGroupRequest(input)
  2889. return out, req.Send()
  2890. }
  2891. // ModifyDBClusterParameterGroupWithContext is the same as ModifyDBClusterParameterGroup with the addition of
  2892. // the ability to pass a context and additional request options.
  2893. //
  2894. // See ModifyDBClusterParameterGroup for details on how to use this API operation.
  2895. //
  2896. // The context must be non-nil and will be used for request cancellation. If
  2897. // the context is nil a panic will occur. In the future the SDK may create
  2898. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2899. // for more information on using Contexts.
  2900. func (c *DocDB) ModifyDBClusterParameterGroupWithContext(ctx aws.Context, input *ModifyDBClusterParameterGroupInput, opts ...request.Option) (*ModifyDBClusterParameterGroupOutput, error) {
  2901. req, out := c.ModifyDBClusterParameterGroupRequest(input)
  2902. req.SetContext(ctx)
  2903. req.ApplyOptions(opts...)
  2904. return out, req.Send()
  2905. }
  2906. const opModifyDBClusterSnapshotAttribute = "ModifyDBClusterSnapshotAttribute"
  2907. // ModifyDBClusterSnapshotAttributeRequest generates a "aws/request.Request" representing the
  2908. // client's request for the ModifyDBClusterSnapshotAttribute operation. The "output" return
  2909. // value will be populated with the request's response once the request completes
  2910. // successfully.
  2911. //
  2912. // Use "Send" method on the returned Request to send the API call to the service.
  2913. // the "output" return value is not valid until after Send returns without error.
  2914. //
  2915. // See ModifyDBClusterSnapshotAttribute for more information on using the ModifyDBClusterSnapshotAttribute
  2916. // API call, and error handling.
  2917. //
  2918. // This method is useful when you want to inject custom logic or configuration
  2919. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2920. //
  2921. //
  2922. // // Example sending a request using the ModifyDBClusterSnapshotAttributeRequest method.
  2923. // req, resp := client.ModifyDBClusterSnapshotAttributeRequest(params)
  2924. //
  2925. // err := req.Send()
  2926. // if err == nil { // resp is now filled
  2927. // fmt.Println(resp)
  2928. // }
  2929. //
  2930. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ModifyDBClusterSnapshotAttribute
  2931. func (c *DocDB) ModifyDBClusterSnapshotAttributeRequest(input *ModifyDBClusterSnapshotAttributeInput) (req *request.Request, output *ModifyDBClusterSnapshotAttributeOutput) {
  2932. op := &request.Operation{
  2933. Name: opModifyDBClusterSnapshotAttribute,
  2934. HTTPMethod: "POST",
  2935. HTTPPath: "/",
  2936. }
  2937. if input == nil {
  2938. input = &ModifyDBClusterSnapshotAttributeInput{}
  2939. }
  2940. output = &ModifyDBClusterSnapshotAttributeOutput{}
  2941. req = c.newRequest(op, input, output)
  2942. return
  2943. }
  2944. // ModifyDBClusterSnapshotAttribute API operation for Amazon DocumentDB with MongoDB compatibility.
  2945. //
  2946. // Adds an attribute and values to, or removes an attribute and values from,
  2947. // a manual DB cluster snapshot.
  2948. //
  2949. // To share a manual DB cluster snapshot with other AWS accounts, specify restore
  2950. // as the AttributeName, and use the ValuesToAdd parameter to add a list of
  2951. // IDs of the AWS accounts that are authorized to restore the manual DB cluster
  2952. // snapshot. Use the value all to make the manual DB cluster snapshot public,
  2953. // which means that it can be copied or restored by all AWS accounts. Do not
  2954. // add the all value for any manual DB cluster snapshots that contain private
  2955. // information that you don't want available to all AWS accounts. If a manual
  2956. // DB cluster snapshot is encrypted, it can be shared, but only by specifying
  2957. // a list of authorized AWS account IDs for the ValuesToAdd parameter. You can't
  2958. // use all as a value for that parameter in this case.
  2959. //
  2960. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2961. // with awserr.Error's Code and Message methods to get detailed information about
  2962. // the error.
  2963. //
  2964. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  2965. // API operation ModifyDBClusterSnapshotAttribute for usage and error information.
  2966. //
  2967. // Returned Error Codes:
  2968. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  2969. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  2970. //
  2971. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  2972. // The provided value isn't a valid DB cluster snapshot state.
  2973. //
  2974. // * ErrCodeSharedSnapshotQuotaExceededFault "SharedSnapshotQuotaExceeded"
  2975. // You have exceeded the maximum number of accounts that you can share a manual
  2976. // DB snapshot with.
  2977. //
  2978. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ModifyDBClusterSnapshotAttribute
  2979. func (c *DocDB) ModifyDBClusterSnapshotAttribute(input *ModifyDBClusterSnapshotAttributeInput) (*ModifyDBClusterSnapshotAttributeOutput, error) {
  2980. req, out := c.ModifyDBClusterSnapshotAttributeRequest(input)
  2981. return out, req.Send()
  2982. }
  2983. // ModifyDBClusterSnapshotAttributeWithContext is the same as ModifyDBClusterSnapshotAttribute with the addition of
  2984. // the ability to pass a context and additional request options.
  2985. //
  2986. // See ModifyDBClusterSnapshotAttribute for details on how to use this API operation.
  2987. //
  2988. // The context must be non-nil and will be used for request cancellation. If
  2989. // the context is nil a panic will occur. In the future the SDK may create
  2990. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2991. // for more information on using Contexts.
  2992. func (c *DocDB) ModifyDBClusterSnapshotAttributeWithContext(ctx aws.Context, input *ModifyDBClusterSnapshotAttributeInput, opts ...request.Option) (*ModifyDBClusterSnapshotAttributeOutput, error) {
  2993. req, out := c.ModifyDBClusterSnapshotAttributeRequest(input)
  2994. req.SetContext(ctx)
  2995. req.ApplyOptions(opts...)
  2996. return out, req.Send()
  2997. }
  2998. const opModifyDBInstance = "ModifyDBInstance"
  2999. // ModifyDBInstanceRequest generates a "aws/request.Request" representing the
  3000. // client's request for the ModifyDBInstance operation. The "output" return
  3001. // value will be populated with the request's response once the request completes
  3002. // successfully.
  3003. //
  3004. // Use "Send" method on the returned Request to send the API call to the service.
  3005. // the "output" return value is not valid until after Send returns without error.
  3006. //
  3007. // See ModifyDBInstance for more information on using the ModifyDBInstance
  3008. // API call, and error handling.
  3009. //
  3010. // This method is useful when you want to inject custom logic or configuration
  3011. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3012. //
  3013. //
  3014. // // Example sending a request using the ModifyDBInstanceRequest method.
  3015. // req, resp := client.ModifyDBInstanceRequest(params)
  3016. //
  3017. // err := req.Send()
  3018. // if err == nil { // resp is now filled
  3019. // fmt.Println(resp)
  3020. // }
  3021. //
  3022. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ModifyDBInstance
  3023. func (c *DocDB) ModifyDBInstanceRequest(input *ModifyDBInstanceInput) (req *request.Request, output *ModifyDBInstanceOutput) {
  3024. op := &request.Operation{
  3025. Name: opModifyDBInstance,
  3026. HTTPMethod: "POST",
  3027. HTTPPath: "/",
  3028. }
  3029. if input == nil {
  3030. input = &ModifyDBInstanceInput{}
  3031. }
  3032. output = &ModifyDBInstanceOutput{}
  3033. req = c.newRequest(op, input, output)
  3034. return
  3035. }
  3036. // ModifyDBInstance API operation for Amazon DocumentDB with MongoDB compatibility.
  3037. //
  3038. // Modifies settings for a DB instance. You can change one or more database
  3039. // configuration parameters by specifying these parameters and the new values
  3040. // in the request.
  3041. //
  3042. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3043. // with awserr.Error's Code and Message methods to get detailed information about
  3044. // the error.
  3045. //
  3046. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  3047. // API operation ModifyDBInstance for usage and error information.
  3048. //
  3049. // Returned Error Codes:
  3050. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  3051. // The specified DB instance isn't in the available state.
  3052. //
  3053. // * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState"
  3054. // The state of the DB security group doesn't allow deletion.
  3055. //
  3056. // * ErrCodeDBInstanceAlreadyExistsFault "DBInstanceAlreadyExists"
  3057. // You already have a DB instance with the given identifier.
  3058. //
  3059. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  3060. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  3061. //
  3062. // * ErrCodeDBSecurityGroupNotFoundFault "DBSecurityGroupNotFound"
  3063. // DBSecurityGroupName doesn't refer to an existing DB security group.
  3064. //
  3065. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  3066. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  3067. //
  3068. // * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity"
  3069. // The specified DB instance class isn't available in the specified Availability
  3070. // Zone.
  3071. //
  3072. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  3073. // The request would cause you to exceed the allowed amount of storage available
  3074. // across all DB instances.
  3075. //
  3076. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  3077. // The DB subnet group doesn't cover all Availability Zones after it is created
  3078. // because of changes that were made.
  3079. //
  3080. // * ErrCodeDBUpgradeDependencyFailureFault "DBUpgradeDependencyFailure"
  3081. // The DB upgrade failed because a resource that the DB depends on can't be
  3082. // modified.
  3083. //
  3084. // * ErrCodeStorageTypeNotSupportedFault "StorageTypeNotSupported"
  3085. // Storage of the specified StorageType can't be associated with the DB instance.
  3086. //
  3087. // * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
  3088. // The specified CIDR IP or Amazon EC2 security group isn't authorized for the
  3089. // specified DB security group.
  3090. //
  3091. // Amazon DocumentDB also might not be authorized to perform necessary actions
  3092. // on your behalf using IAM.
  3093. //
  3094. // * ErrCodeCertificateNotFoundFault "CertificateNotFound"
  3095. // CertificateIdentifier doesn't refer to an existing certificate.
  3096. //
  3097. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ModifyDBInstance
  3098. func (c *DocDB) ModifyDBInstance(input *ModifyDBInstanceInput) (*ModifyDBInstanceOutput, error) {
  3099. req, out := c.ModifyDBInstanceRequest(input)
  3100. return out, req.Send()
  3101. }
  3102. // ModifyDBInstanceWithContext is the same as ModifyDBInstance with the addition of
  3103. // the ability to pass a context and additional request options.
  3104. //
  3105. // See ModifyDBInstance for details on how to use this API operation.
  3106. //
  3107. // The context must be non-nil and will be used for request cancellation. If
  3108. // the context is nil a panic will occur. In the future the SDK may create
  3109. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3110. // for more information on using Contexts.
  3111. func (c *DocDB) ModifyDBInstanceWithContext(ctx aws.Context, input *ModifyDBInstanceInput, opts ...request.Option) (*ModifyDBInstanceOutput, error) {
  3112. req, out := c.ModifyDBInstanceRequest(input)
  3113. req.SetContext(ctx)
  3114. req.ApplyOptions(opts...)
  3115. return out, req.Send()
  3116. }
  3117. const opModifyDBSubnetGroup = "ModifyDBSubnetGroup"
  3118. // ModifyDBSubnetGroupRequest generates a "aws/request.Request" representing the
  3119. // client's request for the ModifyDBSubnetGroup operation. The "output" return
  3120. // value will be populated with the request's response once the request completes
  3121. // successfully.
  3122. //
  3123. // Use "Send" method on the returned Request to send the API call to the service.
  3124. // the "output" return value is not valid until after Send returns without error.
  3125. //
  3126. // See ModifyDBSubnetGroup for more information on using the ModifyDBSubnetGroup
  3127. // API call, and error handling.
  3128. //
  3129. // This method is useful when you want to inject custom logic or configuration
  3130. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3131. //
  3132. //
  3133. // // Example sending a request using the ModifyDBSubnetGroupRequest method.
  3134. // req, resp := client.ModifyDBSubnetGroupRequest(params)
  3135. //
  3136. // err := req.Send()
  3137. // if err == nil { // resp is now filled
  3138. // fmt.Println(resp)
  3139. // }
  3140. //
  3141. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ModifyDBSubnetGroup
  3142. func (c *DocDB) ModifyDBSubnetGroupRequest(input *ModifyDBSubnetGroupInput) (req *request.Request, output *ModifyDBSubnetGroupOutput) {
  3143. op := &request.Operation{
  3144. Name: opModifyDBSubnetGroup,
  3145. HTTPMethod: "POST",
  3146. HTTPPath: "/",
  3147. }
  3148. if input == nil {
  3149. input = &ModifyDBSubnetGroupInput{}
  3150. }
  3151. output = &ModifyDBSubnetGroupOutput{}
  3152. req = c.newRequest(op, input, output)
  3153. return
  3154. }
  3155. // ModifyDBSubnetGroup API operation for Amazon DocumentDB with MongoDB compatibility.
  3156. //
  3157. // Modifies an existing DB subnet group. DB subnet groups must contain at least
  3158. // one subnet in at least two Availability Zones in the AWS Region.
  3159. //
  3160. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3161. // with awserr.Error's Code and Message methods to get detailed information about
  3162. // the error.
  3163. //
  3164. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  3165. // API operation ModifyDBSubnetGroup for usage and error information.
  3166. //
  3167. // Returned Error Codes:
  3168. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  3169. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  3170. //
  3171. // * ErrCodeDBSubnetQuotaExceededFault "DBSubnetQuotaExceededFault"
  3172. // The request would cause you to exceed the allowed number of subnets in a
  3173. // DB subnet group.
  3174. //
  3175. // * ErrCodeSubnetAlreadyInUse "SubnetAlreadyInUse"
  3176. // The DB subnet is already in use in the Availability Zone.
  3177. //
  3178. // * ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs "DBSubnetGroupDoesNotCoverEnoughAZs"
  3179. // Subnets in the DB subnet group should cover at least two Availability Zones
  3180. // unless there is only one Availability Zone.
  3181. //
  3182. // * ErrCodeInvalidSubnet "InvalidSubnet"
  3183. // The requested subnet is not valid, or multiple subnets were requested that
  3184. // are not all in a common virtual private cloud (VPC).
  3185. //
  3186. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ModifyDBSubnetGroup
  3187. func (c *DocDB) ModifyDBSubnetGroup(input *ModifyDBSubnetGroupInput) (*ModifyDBSubnetGroupOutput, error) {
  3188. req, out := c.ModifyDBSubnetGroupRequest(input)
  3189. return out, req.Send()
  3190. }
  3191. // ModifyDBSubnetGroupWithContext is the same as ModifyDBSubnetGroup with the addition of
  3192. // the ability to pass a context and additional request options.
  3193. //
  3194. // See ModifyDBSubnetGroup for details on how to use this API operation.
  3195. //
  3196. // The context must be non-nil and will be used for request cancellation. If
  3197. // the context is nil a panic will occur. In the future the SDK may create
  3198. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3199. // for more information on using Contexts.
  3200. func (c *DocDB) ModifyDBSubnetGroupWithContext(ctx aws.Context, input *ModifyDBSubnetGroupInput, opts ...request.Option) (*ModifyDBSubnetGroupOutput, error) {
  3201. req, out := c.ModifyDBSubnetGroupRequest(input)
  3202. req.SetContext(ctx)
  3203. req.ApplyOptions(opts...)
  3204. return out, req.Send()
  3205. }
  3206. const opRebootDBInstance = "RebootDBInstance"
  3207. // RebootDBInstanceRequest generates a "aws/request.Request" representing the
  3208. // client's request for the RebootDBInstance operation. The "output" return
  3209. // value will be populated with the request's response once the request completes
  3210. // successfully.
  3211. //
  3212. // Use "Send" method on the returned Request to send the API call to the service.
  3213. // the "output" return value is not valid until after Send returns without error.
  3214. //
  3215. // See RebootDBInstance for more information on using the RebootDBInstance
  3216. // API call, and error handling.
  3217. //
  3218. // This method is useful when you want to inject custom logic or configuration
  3219. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3220. //
  3221. //
  3222. // // Example sending a request using the RebootDBInstanceRequest method.
  3223. // req, resp := client.RebootDBInstanceRequest(params)
  3224. //
  3225. // err := req.Send()
  3226. // if err == nil { // resp is now filled
  3227. // fmt.Println(resp)
  3228. // }
  3229. //
  3230. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RebootDBInstance
  3231. func (c *DocDB) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *request.Request, output *RebootDBInstanceOutput) {
  3232. op := &request.Operation{
  3233. Name: opRebootDBInstance,
  3234. HTTPMethod: "POST",
  3235. HTTPPath: "/",
  3236. }
  3237. if input == nil {
  3238. input = &RebootDBInstanceInput{}
  3239. }
  3240. output = &RebootDBInstanceOutput{}
  3241. req = c.newRequest(op, input, output)
  3242. return
  3243. }
  3244. // RebootDBInstance API operation for Amazon DocumentDB with MongoDB compatibility.
  3245. //
  3246. // You might need to reboot your DB instance, usually for maintenance reasons.
  3247. // For example, if you make certain changes, or if you change the DB cluster
  3248. // parameter group that is associated with the DB instance, you must reboot
  3249. // the instance for the changes to take effect.
  3250. //
  3251. // Rebooting a DB instance restarts the database engine service. Rebooting a
  3252. // DB instance results in a momentary outage, during which the DB instance status
  3253. // is set to rebooting.
  3254. //
  3255. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3256. // with awserr.Error's Code and Message methods to get detailed information about
  3257. // the error.
  3258. //
  3259. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  3260. // API operation RebootDBInstance for usage and error information.
  3261. //
  3262. // Returned Error Codes:
  3263. // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState"
  3264. // The specified DB instance isn't in the available state.
  3265. //
  3266. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  3267. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  3268. //
  3269. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RebootDBInstance
  3270. func (c *DocDB) RebootDBInstance(input *RebootDBInstanceInput) (*RebootDBInstanceOutput, error) {
  3271. req, out := c.RebootDBInstanceRequest(input)
  3272. return out, req.Send()
  3273. }
  3274. // RebootDBInstanceWithContext is the same as RebootDBInstance with the addition of
  3275. // the ability to pass a context and additional request options.
  3276. //
  3277. // See RebootDBInstance for details on how to use this API operation.
  3278. //
  3279. // The context must be non-nil and will be used for request cancellation. If
  3280. // the context is nil a panic will occur. In the future the SDK may create
  3281. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3282. // for more information on using Contexts.
  3283. func (c *DocDB) RebootDBInstanceWithContext(ctx aws.Context, input *RebootDBInstanceInput, opts ...request.Option) (*RebootDBInstanceOutput, error) {
  3284. req, out := c.RebootDBInstanceRequest(input)
  3285. req.SetContext(ctx)
  3286. req.ApplyOptions(opts...)
  3287. return out, req.Send()
  3288. }
  3289. const opRemoveTagsFromResource = "RemoveTagsFromResource"
  3290. // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
  3291. // client's request for the RemoveTagsFromResource operation. The "output" return
  3292. // value will be populated with the request's response once the request completes
  3293. // successfully.
  3294. //
  3295. // Use "Send" method on the returned Request to send the API call to the service.
  3296. // the "output" return value is not valid until after Send returns without error.
  3297. //
  3298. // See RemoveTagsFromResource for more information on using the RemoveTagsFromResource
  3299. // API call, and error handling.
  3300. //
  3301. // This method is useful when you want to inject custom logic or configuration
  3302. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3303. //
  3304. //
  3305. // // Example sending a request using the RemoveTagsFromResourceRequest method.
  3306. // req, resp := client.RemoveTagsFromResourceRequest(params)
  3307. //
  3308. // err := req.Send()
  3309. // if err == nil { // resp is now filled
  3310. // fmt.Println(resp)
  3311. // }
  3312. //
  3313. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RemoveTagsFromResource
  3314. func (c *DocDB) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
  3315. op := &request.Operation{
  3316. Name: opRemoveTagsFromResource,
  3317. HTTPMethod: "POST",
  3318. HTTPPath: "/",
  3319. }
  3320. if input == nil {
  3321. input = &RemoveTagsFromResourceInput{}
  3322. }
  3323. output = &RemoveTagsFromResourceOutput{}
  3324. req = c.newRequest(op, input, output)
  3325. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3326. return
  3327. }
  3328. // RemoveTagsFromResource API operation for Amazon DocumentDB with MongoDB compatibility.
  3329. //
  3330. // Removes metadata tags from an Amazon DocumentDB resource.
  3331. //
  3332. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3333. // with awserr.Error's Code and Message methods to get detailed information about
  3334. // the error.
  3335. //
  3336. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  3337. // API operation RemoveTagsFromResource for usage and error information.
  3338. //
  3339. // Returned Error Codes:
  3340. // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound"
  3341. // DBInstanceIdentifier doesn't refer to an existing DB instance.
  3342. //
  3343. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  3344. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  3345. //
  3346. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  3347. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  3348. //
  3349. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RemoveTagsFromResource
  3350. func (c *DocDB) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
  3351. req, out := c.RemoveTagsFromResourceRequest(input)
  3352. return out, req.Send()
  3353. }
  3354. // RemoveTagsFromResourceWithContext is the same as RemoveTagsFromResource with the addition of
  3355. // the ability to pass a context and additional request options.
  3356. //
  3357. // See RemoveTagsFromResource for details on how to use this API operation.
  3358. //
  3359. // The context must be non-nil and will be used for request cancellation. If
  3360. // the context is nil a panic will occur. In the future the SDK may create
  3361. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3362. // for more information on using Contexts.
  3363. func (c *DocDB) RemoveTagsFromResourceWithContext(ctx aws.Context, input *RemoveTagsFromResourceInput, opts ...request.Option) (*RemoveTagsFromResourceOutput, error) {
  3364. req, out := c.RemoveTagsFromResourceRequest(input)
  3365. req.SetContext(ctx)
  3366. req.ApplyOptions(opts...)
  3367. return out, req.Send()
  3368. }
  3369. const opResetDBClusterParameterGroup = "ResetDBClusterParameterGroup"
  3370. // ResetDBClusterParameterGroupRequest generates a "aws/request.Request" representing the
  3371. // client's request for the ResetDBClusterParameterGroup operation. The "output" return
  3372. // value will be populated with the request's response once the request completes
  3373. // successfully.
  3374. //
  3375. // Use "Send" method on the returned Request to send the API call to the service.
  3376. // the "output" return value is not valid until after Send returns without error.
  3377. //
  3378. // See ResetDBClusterParameterGroup for more information on using the ResetDBClusterParameterGroup
  3379. // API call, and error handling.
  3380. //
  3381. // This method is useful when you want to inject custom logic or configuration
  3382. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3383. //
  3384. //
  3385. // // Example sending a request using the ResetDBClusterParameterGroupRequest method.
  3386. // req, resp := client.ResetDBClusterParameterGroupRequest(params)
  3387. //
  3388. // err := req.Send()
  3389. // if err == nil { // resp is now filled
  3390. // fmt.Println(resp)
  3391. // }
  3392. //
  3393. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ResetDBClusterParameterGroup
  3394. func (c *DocDB) ResetDBClusterParameterGroupRequest(input *ResetDBClusterParameterGroupInput) (req *request.Request, output *ResetDBClusterParameterGroupOutput) {
  3395. op := &request.Operation{
  3396. Name: opResetDBClusterParameterGroup,
  3397. HTTPMethod: "POST",
  3398. HTTPPath: "/",
  3399. }
  3400. if input == nil {
  3401. input = &ResetDBClusterParameterGroupInput{}
  3402. }
  3403. output = &ResetDBClusterParameterGroupOutput{}
  3404. req = c.newRequest(op, input, output)
  3405. return
  3406. }
  3407. // ResetDBClusterParameterGroup API operation for Amazon DocumentDB with MongoDB compatibility.
  3408. //
  3409. // Modifies the parameters of a DB cluster parameter group to the default value.
  3410. // To reset specific parameters, submit a list of the following: ParameterName
  3411. // and ApplyMethod. To reset the entire DB cluster parameter group, specify
  3412. // the DBClusterParameterGroupName and ResetAllParameters parameters.
  3413. //
  3414. // When you reset the entire group, dynamic parameters are updated immediately
  3415. // and static parameters are set to pending-reboot to take effect on the next
  3416. // DB instance reboot.
  3417. //
  3418. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3419. // with awserr.Error's Code and Message methods to get detailed information about
  3420. // the error.
  3421. //
  3422. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  3423. // API operation ResetDBClusterParameterGroup for usage and error information.
  3424. //
  3425. // Returned Error Codes:
  3426. // * ErrCodeInvalidDBParameterGroupStateFault "InvalidDBParameterGroupState"
  3427. // The DB parameter group is in use, or it is in a state that is not valid.
  3428. // If you are trying to delete the parameter group, you can't delete it when
  3429. // the parameter group is in this state.
  3430. //
  3431. // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound"
  3432. // DBParameterGroupName doesn't refer to an existing DB parameter group.
  3433. //
  3434. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/ResetDBClusterParameterGroup
  3435. func (c *DocDB) ResetDBClusterParameterGroup(input *ResetDBClusterParameterGroupInput) (*ResetDBClusterParameterGroupOutput, error) {
  3436. req, out := c.ResetDBClusterParameterGroupRequest(input)
  3437. return out, req.Send()
  3438. }
  3439. // ResetDBClusterParameterGroupWithContext is the same as ResetDBClusterParameterGroup with the addition of
  3440. // the ability to pass a context and additional request options.
  3441. //
  3442. // See ResetDBClusterParameterGroup for details on how to use this API operation.
  3443. //
  3444. // The context must be non-nil and will be used for request cancellation. If
  3445. // the context is nil a panic will occur. In the future the SDK may create
  3446. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3447. // for more information on using Contexts.
  3448. func (c *DocDB) ResetDBClusterParameterGroupWithContext(ctx aws.Context, input *ResetDBClusterParameterGroupInput, opts ...request.Option) (*ResetDBClusterParameterGroupOutput, error) {
  3449. req, out := c.ResetDBClusterParameterGroupRequest(input)
  3450. req.SetContext(ctx)
  3451. req.ApplyOptions(opts...)
  3452. return out, req.Send()
  3453. }
  3454. const opRestoreDBClusterFromSnapshot = "RestoreDBClusterFromSnapshot"
  3455. // RestoreDBClusterFromSnapshotRequest generates a "aws/request.Request" representing the
  3456. // client's request for the RestoreDBClusterFromSnapshot operation. The "output" return
  3457. // value will be populated with the request's response once the request completes
  3458. // successfully.
  3459. //
  3460. // Use "Send" method on the returned Request to send the API call to the service.
  3461. // the "output" return value is not valid until after Send returns without error.
  3462. //
  3463. // See RestoreDBClusterFromSnapshot for more information on using the RestoreDBClusterFromSnapshot
  3464. // API call, and error handling.
  3465. //
  3466. // This method is useful when you want to inject custom logic or configuration
  3467. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3468. //
  3469. //
  3470. // // Example sending a request using the RestoreDBClusterFromSnapshotRequest method.
  3471. // req, resp := client.RestoreDBClusterFromSnapshotRequest(params)
  3472. //
  3473. // err := req.Send()
  3474. // if err == nil { // resp is now filled
  3475. // fmt.Println(resp)
  3476. // }
  3477. //
  3478. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RestoreDBClusterFromSnapshot
  3479. func (c *DocDB) RestoreDBClusterFromSnapshotRequest(input *RestoreDBClusterFromSnapshotInput) (req *request.Request, output *RestoreDBClusterFromSnapshotOutput) {
  3480. op := &request.Operation{
  3481. Name: opRestoreDBClusterFromSnapshot,
  3482. HTTPMethod: "POST",
  3483. HTTPPath: "/",
  3484. }
  3485. if input == nil {
  3486. input = &RestoreDBClusterFromSnapshotInput{}
  3487. }
  3488. output = &RestoreDBClusterFromSnapshotOutput{}
  3489. req = c.newRequest(op, input, output)
  3490. return
  3491. }
  3492. // RestoreDBClusterFromSnapshot API operation for Amazon DocumentDB with MongoDB compatibility.
  3493. //
  3494. // Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
  3495. //
  3496. // If a DB snapshot is specified, the target DB cluster is created from the
  3497. // source DB snapshot with a default configuration and default security group.
  3498. //
  3499. // If a DB cluster snapshot is specified, the target DB cluster is created from
  3500. // the source DB cluster restore point with the same configuration as the original
  3501. // source DB cluster, except that the new DB cluster is created with the default
  3502. // security group.
  3503. //
  3504. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3505. // with awserr.Error's Code and Message methods to get detailed information about
  3506. // the error.
  3507. //
  3508. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  3509. // API operation RestoreDBClusterFromSnapshot for usage and error information.
  3510. //
  3511. // Returned Error Codes:
  3512. // * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault"
  3513. // You already have a DB cluster with the given identifier.
  3514. //
  3515. // * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault"
  3516. // The DB cluster can't be created because you have reached the maximum allowed
  3517. // quota of DB clusters.
  3518. //
  3519. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  3520. // The request would cause you to exceed the allowed amount of storage available
  3521. // across all DB instances.
  3522. //
  3523. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  3524. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  3525. //
  3526. // * ErrCodeDBSnapshotNotFoundFault "DBSnapshotNotFound"
  3527. // DBSnapshotIdentifier doesn't refer to an existing DB snapshot.
  3528. //
  3529. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  3530. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  3531. //
  3532. // * ErrCodeInsufficientDBClusterCapacityFault "InsufficientDBClusterCapacityFault"
  3533. // The DB cluster doesn't have enough capacity for the current operation.
  3534. //
  3535. // * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity"
  3536. // There is not enough storage available for the current action. You might be
  3537. // able to resolve this error by updating your subnet group to use different
  3538. // Availability Zones that have more storage available.
  3539. //
  3540. // * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState"
  3541. // The state of the DB snapshot doesn't allow deletion.
  3542. //
  3543. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  3544. // The provided value isn't a valid DB cluster snapshot state.
  3545. //
  3546. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  3547. // The request would cause you to exceed the allowed amount of storage available
  3548. // across all DB instances.
  3549. //
  3550. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  3551. // The DB subnet group doesn't cover all Availability Zones after it is created
  3552. // because of changes that were made.
  3553. //
  3554. // * ErrCodeInvalidRestoreFault "InvalidRestoreFault"
  3555. // You cannot restore from a virtual private cloud (VPC) backup to a non-VPC
  3556. // DB instance.
  3557. //
  3558. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  3559. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  3560. //
  3561. // * ErrCodeInvalidSubnet "InvalidSubnet"
  3562. // The requested subnet is not valid, or multiple subnets were requested that
  3563. // are not all in a common virtual private cloud (VPC).
  3564. //
  3565. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  3566. // An error occurred when accessing an AWS KMS key.
  3567. //
  3568. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RestoreDBClusterFromSnapshot
  3569. func (c *DocDB) RestoreDBClusterFromSnapshot(input *RestoreDBClusterFromSnapshotInput) (*RestoreDBClusterFromSnapshotOutput, error) {
  3570. req, out := c.RestoreDBClusterFromSnapshotRequest(input)
  3571. return out, req.Send()
  3572. }
  3573. // RestoreDBClusterFromSnapshotWithContext is the same as RestoreDBClusterFromSnapshot with the addition of
  3574. // the ability to pass a context and additional request options.
  3575. //
  3576. // See RestoreDBClusterFromSnapshot for details on how to use this API operation.
  3577. //
  3578. // The context must be non-nil and will be used for request cancellation. If
  3579. // the context is nil a panic will occur. In the future the SDK may create
  3580. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3581. // for more information on using Contexts.
  3582. func (c *DocDB) RestoreDBClusterFromSnapshotWithContext(ctx aws.Context, input *RestoreDBClusterFromSnapshotInput, opts ...request.Option) (*RestoreDBClusterFromSnapshotOutput, error) {
  3583. req, out := c.RestoreDBClusterFromSnapshotRequest(input)
  3584. req.SetContext(ctx)
  3585. req.ApplyOptions(opts...)
  3586. return out, req.Send()
  3587. }
  3588. const opRestoreDBClusterToPointInTime = "RestoreDBClusterToPointInTime"
  3589. // RestoreDBClusterToPointInTimeRequest generates a "aws/request.Request" representing the
  3590. // client's request for the RestoreDBClusterToPointInTime operation. The "output" return
  3591. // value will be populated with the request's response once the request completes
  3592. // successfully.
  3593. //
  3594. // Use "Send" method on the returned Request to send the API call to the service.
  3595. // the "output" return value is not valid until after Send returns without error.
  3596. //
  3597. // See RestoreDBClusterToPointInTime for more information on using the RestoreDBClusterToPointInTime
  3598. // API call, and error handling.
  3599. //
  3600. // This method is useful when you want to inject custom logic or configuration
  3601. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3602. //
  3603. //
  3604. // // Example sending a request using the RestoreDBClusterToPointInTimeRequest method.
  3605. // req, resp := client.RestoreDBClusterToPointInTimeRequest(params)
  3606. //
  3607. // err := req.Send()
  3608. // if err == nil { // resp is now filled
  3609. // fmt.Println(resp)
  3610. // }
  3611. //
  3612. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RestoreDBClusterToPointInTime
  3613. func (c *DocDB) RestoreDBClusterToPointInTimeRequest(input *RestoreDBClusterToPointInTimeInput) (req *request.Request, output *RestoreDBClusterToPointInTimeOutput) {
  3614. op := &request.Operation{
  3615. Name: opRestoreDBClusterToPointInTime,
  3616. HTTPMethod: "POST",
  3617. HTTPPath: "/",
  3618. }
  3619. if input == nil {
  3620. input = &RestoreDBClusterToPointInTimeInput{}
  3621. }
  3622. output = &RestoreDBClusterToPointInTimeOutput{}
  3623. req = c.newRequest(op, input, output)
  3624. return
  3625. }
  3626. // RestoreDBClusterToPointInTime API operation for Amazon DocumentDB with MongoDB compatibility.
  3627. //
  3628. // Restores a DB cluster to an arbitrary point in time. Users can restore to
  3629. // any point in time before LatestRestorableTime for up to BackupRetentionPeriod
  3630. // days. The target DB cluster is created from the source DB cluster with the
  3631. // same configuration as the original DB cluster, except that the new DB cluster
  3632. // is created with the default DB security group.
  3633. //
  3634. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3635. // with awserr.Error's Code and Message methods to get detailed information about
  3636. // the error.
  3637. //
  3638. // See the AWS API reference guide for Amazon DocumentDB with MongoDB compatibility's
  3639. // API operation RestoreDBClusterToPointInTime for usage and error information.
  3640. //
  3641. // Returned Error Codes:
  3642. // * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault"
  3643. // You already have a DB cluster with the given identifier.
  3644. //
  3645. // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault"
  3646. // DBClusterIdentifier doesn't refer to an existing DB cluster.
  3647. //
  3648. // * ErrCodeDBClusterQuotaExceededFault "DBClusterQuotaExceededFault"
  3649. // The DB cluster can't be created because you have reached the maximum allowed
  3650. // quota of DB clusters.
  3651. //
  3652. // * ErrCodeDBClusterSnapshotNotFoundFault "DBClusterSnapshotNotFoundFault"
  3653. // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot.
  3654. //
  3655. // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault"
  3656. // DBSubnetGroupName doesn't refer to an existing DB subnet group.
  3657. //
  3658. // * ErrCodeInsufficientDBClusterCapacityFault "InsufficientDBClusterCapacityFault"
  3659. // The DB cluster doesn't have enough capacity for the current operation.
  3660. //
  3661. // * ErrCodeInsufficientStorageClusterCapacityFault "InsufficientStorageClusterCapacity"
  3662. // There is not enough storage available for the current action. You might be
  3663. // able to resolve this error by updating your subnet group to use different
  3664. // Availability Zones that have more storage available.
  3665. //
  3666. // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault"
  3667. // The provided value isn't a valid DB cluster snapshot state.
  3668. //
  3669. // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault"
  3670. // The DB cluster isn't in a valid state.
  3671. //
  3672. // * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState"
  3673. // The state of the DB snapshot doesn't allow deletion.
  3674. //
  3675. // * ErrCodeInvalidRestoreFault "InvalidRestoreFault"
  3676. // You cannot restore from a virtual private cloud (VPC) backup to a non-VPC
  3677. // DB instance.
  3678. //
  3679. // * ErrCodeInvalidSubnet "InvalidSubnet"
  3680. // The requested subnet is not valid, or multiple subnets were requested that
  3681. // are not all in a common virtual private cloud (VPC).
  3682. //
  3683. // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
  3684. // The DB subnet group doesn't cover all Availability Zones after it is created
  3685. // because of changes that were made.
  3686. //
  3687. // * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault"
  3688. // An error occurred when accessing an AWS KMS key.
  3689. //
  3690. // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded"
  3691. // The request would cause you to exceed the allowed amount of storage available
  3692. // across all DB instances.
  3693. //
  3694. // See also, https://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/RestoreDBClusterToPointInTime
  3695. func (c *DocDB) RestoreDBClusterToPointInTime(input *RestoreDBClusterToPointInTimeInput) (*RestoreDBClusterToPointInTimeOutput, error) {
  3696. req, out := c.RestoreDBClusterToPointInTimeRequest(input)
  3697. return out, req.Send()
  3698. }
  3699. // RestoreDBClusterToPointInTimeWithContext is the same as RestoreDBClusterToPointInTime with the addition of
  3700. // the ability to pass a context and additional request options.
  3701. //
  3702. // See RestoreDBClusterToPointInTime for details on how to use this API operation.
  3703. //
  3704. // The context must be non-nil and will be used for request cancellation. If
  3705. // the context is nil a panic will occur. In the future the SDK may create
  3706. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3707. // for more information on using Contexts.
  3708. func (c *DocDB) RestoreDBClusterToPointInTimeWithContext(ctx aws.Context, input *RestoreDBClusterToPointInTimeInput, opts ...request.Option) (*RestoreDBClusterToPointInTimeOutput, error) {
  3709. req, out := c.RestoreDBClusterToPointInTimeRequest(input)
  3710. req.SetContext(ctx)
  3711. req.ApplyOptions(opts...)
  3712. return out, req.Send()
  3713. }
  3714. // Represents the input to AddTagsToResource.
  3715. type AddTagsToResourceInput struct {
  3716. _ struct{} `type:"structure"`
  3717. // The Amazon DocumentDB resource that the tags are added to. This value is
  3718. // an Amazon Resource Name (ARN).
  3719. //
  3720. // ResourceName is a required field
  3721. ResourceName *string `type:"string" required:"true"`
  3722. // The tags to be assigned to the Amazon DocumentDB resource.
  3723. //
  3724. // Tags is a required field
  3725. Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"`
  3726. }
  3727. // String returns the string representation
  3728. func (s AddTagsToResourceInput) String() string {
  3729. return awsutil.Prettify(s)
  3730. }
  3731. // GoString returns the string representation
  3732. func (s AddTagsToResourceInput) GoString() string {
  3733. return s.String()
  3734. }
  3735. // Validate inspects the fields of the type to determine if they are valid.
  3736. func (s *AddTagsToResourceInput) Validate() error {
  3737. invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
  3738. if s.ResourceName == nil {
  3739. invalidParams.Add(request.NewErrParamRequired("ResourceName"))
  3740. }
  3741. if s.Tags == nil {
  3742. invalidParams.Add(request.NewErrParamRequired("Tags"))
  3743. }
  3744. if invalidParams.Len() > 0 {
  3745. return invalidParams
  3746. }
  3747. return nil
  3748. }
  3749. // SetResourceName sets the ResourceName field's value.
  3750. func (s *AddTagsToResourceInput) SetResourceName(v string) *AddTagsToResourceInput {
  3751. s.ResourceName = &v
  3752. return s
  3753. }
  3754. // SetTags sets the Tags field's value.
  3755. func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput {
  3756. s.Tags = v
  3757. return s
  3758. }
  3759. type AddTagsToResourceOutput struct {
  3760. _ struct{} `type:"structure"`
  3761. }
  3762. // String returns the string representation
  3763. func (s AddTagsToResourceOutput) String() string {
  3764. return awsutil.Prettify(s)
  3765. }
  3766. // GoString returns the string representation
  3767. func (s AddTagsToResourceOutput) GoString() string {
  3768. return s.String()
  3769. }
  3770. // Represents the input to ApplyPendingMaintenanceAction.
  3771. type ApplyPendingMaintenanceActionInput struct {
  3772. _ struct{} `type:"structure"`
  3773. // The pending maintenance action to apply to this resource.
  3774. //
  3775. // Valid values: system-update, db-upgrade
  3776. //
  3777. // ApplyAction is a required field
  3778. ApplyAction *string `type:"string" required:"true"`
  3779. // A value that specifies the type of opt-in request or undoes an opt-in request.
  3780. // An opt-in request of type immediate can't be undone.
  3781. //
  3782. // Valid values:
  3783. //
  3784. // * immediate - Apply the maintenance action immediately.
  3785. //
  3786. // * next-maintenance - Apply the maintenance action during the next maintenance
  3787. // window for the resource.
  3788. //
  3789. // * undo-opt-in - Cancel any existing next-maintenance opt-in requests.
  3790. //
  3791. // OptInType is a required field
  3792. OptInType *string `type:"string" required:"true"`
  3793. // The Amazon Resource Name (ARN) of the resource that the pending maintenance
  3794. // action applies to.
  3795. //
  3796. // ResourceIdentifier is a required field
  3797. ResourceIdentifier *string `type:"string" required:"true"`
  3798. }
  3799. // String returns the string representation
  3800. func (s ApplyPendingMaintenanceActionInput) String() string {
  3801. return awsutil.Prettify(s)
  3802. }
  3803. // GoString returns the string representation
  3804. func (s ApplyPendingMaintenanceActionInput) GoString() string {
  3805. return s.String()
  3806. }
  3807. // Validate inspects the fields of the type to determine if they are valid.
  3808. func (s *ApplyPendingMaintenanceActionInput) Validate() error {
  3809. invalidParams := request.ErrInvalidParams{Context: "ApplyPendingMaintenanceActionInput"}
  3810. if s.ApplyAction == nil {
  3811. invalidParams.Add(request.NewErrParamRequired("ApplyAction"))
  3812. }
  3813. if s.OptInType == nil {
  3814. invalidParams.Add(request.NewErrParamRequired("OptInType"))
  3815. }
  3816. if s.ResourceIdentifier == nil {
  3817. invalidParams.Add(request.NewErrParamRequired("ResourceIdentifier"))
  3818. }
  3819. if invalidParams.Len() > 0 {
  3820. return invalidParams
  3821. }
  3822. return nil
  3823. }
  3824. // SetApplyAction sets the ApplyAction field's value.
  3825. func (s *ApplyPendingMaintenanceActionInput) SetApplyAction(v string) *ApplyPendingMaintenanceActionInput {
  3826. s.ApplyAction = &v
  3827. return s
  3828. }
  3829. // SetOptInType sets the OptInType field's value.
  3830. func (s *ApplyPendingMaintenanceActionInput) SetOptInType(v string) *ApplyPendingMaintenanceActionInput {
  3831. s.OptInType = &v
  3832. return s
  3833. }
  3834. // SetResourceIdentifier sets the ResourceIdentifier field's value.
  3835. func (s *ApplyPendingMaintenanceActionInput) SetResourceIdentifier(v string) *ApplyPendingMaintenanceActionInput {
  3836. s.ResourceIdentifier = &v
  3837. return s
  3838. }
  3839. type ApplyPendingMaintenanceActionOutput struct {
  3840. _ struct{} `type:"structure"`
  3841. // Represents the output of ApplyPendingMaintenanceAction.
  3842. ResourcePendingMaintenanceActions *ResourcePendingMaintenanceActions `type:"structure"`
  3843. }
  3844. // String returns the string representation
  3845. func (s ApplyPendingMaintenanceActionOutput) String() string {
  3846. return awsutil.Prettify(s)
  3847. }
  3848. // GoString returns the string representation
  3849. func (s ApplyPendingMaintenanceActionOutput) GoString() string {
  3850. return s.String()
  3851. }
  3852. // SetResourcePendingMaintenanceActions sets the ResourcePendingMaintenanceActions field's value.
  3853. func (s *ApplyPendingMaintenanceActionOutput) SetResourcePendingMaintenanceActions(v *ResourcePendingMaintenanceActions) *ApplyPendingMaintenanceActionOutput {
  3854. s.ResourcePendingMaintenanceActions = v
  3855. return s
  3856. }
  3857. // Information about an Availability Zone.
  3858. type AvailabilityZone struct {
  3859. _ struct{} `type:"structure"`
  3860. // The name of the Availability Zone.
  3861. Name *string `type:"string"`
  3862. }
  3863. // String returns the string representation
  3864. func (s AvailabilityZone) String() string {
  3865. return awsutil.Prettify(s)
  3866. }
  3867. // GoString returns the string representation
  3868. func (s AvailabilityZone) GoString() string {
  3869. return s.String()
  3870. }
  3871. // SetName sets the Name field's value.
  3872. func (s *AvailabilityZone) SetName(v string) *AvailabilityZone {
  3873. s.Name = &v
  3874. return s
  3875. }
  3876. // The configuration setting for the log types to be enabled for export to Amazon
  3877. // CloudWatch Logs for a specific DB instance or DB cluster.
  3878. //
  3879. // The EnableLogTypes and DisableLogTypes arrays determine which logs are exported
  3880. // (or not exported) to CloudWatch Logs. The values within these arrays depend
  3881. // on the DB engine that is being used.
  3882. type CloudwatchLogsExportConfiguration struct {
  3883. _ struct{} `type:"structure"`
  3884. // The list of log types to disable.
  3885. DisableLogTypes []*string `type:"list"`
  3886. // The list of log types to enable.
  3887. EnableLogTypes []*string `type:"list"`
  3888. }
  3889. // String returns the string representation
  3890. func (s CloudwatchLogsExportConfiguration) String() string {
  3891. return awsutil.Prettify(s)
  3892. }
  3893. // GoString returns the string representation
  3894. func (s CloudwatchLogsExportConfiguration) GoString() string {
  3895. return s.String()
  3896. }
  3897. // SetDisableLogTypes sets the DisableLogTypes field's value.
  3898. func (s *CloudwatchLogsExportConfiguration) SetDisableLogTypes(v []*string) *CloudwatchLogsExportConfiguration {
  3899. s.DisableLogTypes = v
  3900. return s
  3901. }
  3902. // SetEnableLogTypes sets the EnableLogTypes field's value.
  3903. func (s *CloudwatchLogsExportConfiguration) SetEnableLogTypes(v []*string) *CloudwatchLogsExportConfiguration {
  3904. s.EnableLogTypes = v
  3905. return s
  3906. }
  3907. // Represents the input to CopyDBClusterParameterGroup.
  3908. type CopyDBClusterParameterGroupInput struct {
  3909. _ struct{} `type:"structure"`
  3910. // The identifier or Amazon Resource Name (ARN) for the source DB cluster parameter
  3911. // group.
  3912. //
  3913. // Constraints:
  3914. //
  3915. // * Must specify a valid DB cluster parameter group.
  3916. //
  3917. // * If the source DB cluster parameter group is in the same AWS Region as
  3918. // the copy, specify a valid DB parameter group identifier; for example,
  3919. // my-db-cluster-param-group, or a valid ARN.
  3920. //
  3921. // * If the source DB parameter group is in a different AWS Region than the
  3922. // copy, specify a valid DB cluster parameter group ARN; for example, arn:aws:rds:us-east-1:123456789012:cluster-pg:custom-cluster-group1.
  3923. //
  3924. // SourceDBClusterParameterGroupIdentifier is a required field
  3925. SourceDBClusterParameterGroupIdentifier *string `type:"string" required:"true"`
  3926. // The tags that are to be assigned to the parameter group.
  3927. Tags []*Tag `locationNameList:"Tag" type:"list"`
  3928. // A description for the copied DB cluster parameter group.
  3929. //
  3930. // TargetDBClusterParameterGroupDescription is a required field
  3931. TargetDBClusterParameterGroupDescription *string `type:"string" required:"true"`
  3932. // The identifier for the copied DB cluster parameter group.
  3933. //
  3934. // Constraints:
  3935. //
  3936. // * Cannot be null, empty, or blank.
  3937. //
  3938. // * Must contain from 1 to 255 letters, numbers, or hyphens.
  3939. //
  3940. // * The first character must be a letter.
  3941. //
  3942. // * Cannot end with a hyphen or contain two consecutive hyphens.
  3943. //
  3944. // Example: my-cluster-param-group1
  3945. //
  3946. // TargetDBClusterParameterGroupIdentifier is a required field
  3947. TargetDBClusterParameterGroupIdentifier *string `type:"string" required:"true"`
  3948. }
  3949. // String returns the string representation
  3950. func (s CopyDBClusterParameterGroupInput) String() string {
  3951. return awsutil.Prettify(s)
  3952. }
  3953. // GoString returns the string representation
  3954. func (s CopyDBClusterParameterGroupInput) GoString() string {
  3955. return s.String()
  3956. }
  3957. // Validate inspects the fields of the type to determine if they are valid.
  3958. func (s *CopyDBClusterParameterGroupInput) Validate() error {
  3959. invalidParams := request.ErrInvalidParams{Context: "CopyDBClusterParameterGroupInput"}
  3960. if s.SourceDBClusterParameterGroupIdentifier == nil {
  3961. invalidParams.Add(request.NewErrParamRequired("SourceDBClusterParameterGroupIdentifier"))
  3962. }
  3963. if s.TargetDBClusterParameterGroupDescription == nil {
  3964. invalidParams.Add(request.NewErrParamRequired("TargetDBClusterParameterGroupDescription"))
  3965. }
  3966. if s.TargetDBClusterParameterGroupIdentifier == nil {
  3967. invalidParams.Add(request.NewErrParamRequired("TargetDBClusterParameterGroupIdentifier"))
  3968. }
  3969. if invalidParams.Len() > 0 {
  3970. return invalidParams
  3971. }
  3972. return nil
  3973. }
  3974. // SetSourceDBClusterParameterGroupIdentifier sets the SourceDBClusterParameterGroupIdentifier field's value.
  3975. func (s *CopyDBClusterParameterGroupInput) SetSourceDBClusterParameterGroupIdentifier(v string) *CopyDBClusterParameterGroupInput {
  3976. s.SourceDBClusterParameterGroupIdentifier = &v
  3977. return s
  3978. }
  3979. // SetTags sets the Tags field's value.
  3980. func (s *CopyDBClusterParameterGroupInput) SetTags(v []*Tag) *CopyDBClusterParameterGroupInput {
  3981. s.Tags = v
  3982. return s
  3983. }
  3984. // SetTargetDBClusterParameterGroupDescription sets the TargetDBClusterParameterGroupDescription field's value.
  3985. func (s *CopyDBClusterParameterGroupInput) SetTargetDBClusterParameterGroupDescription(v string) *CopyDBClusterParameterGroupInput {
  3986. s.TargetDBClusterParameterGroupDescription = &v
  3987. return s
  3988. }
  3989. // SetTargetDBClusterParameterGroupIdentifier sets the TargetDBClusterParameterGroupIdentifier field's value.
  3990. func (s *CopyDBClusterParameterGroupInput) SetTargetDBClusterParameterGroupIdentifier(v string) *CopyDBClusterParameterGroupInput {
  3991. s.TargetDBClusterParameterGroupIdentifier = &v
  3992. return s
  3993. }
  3994. type CopyDBClusterParameterGroupOutput struct {
  3995. _ struct{} `type:"structure"`
  3996. // Detailed information about a DB cluster parameter group.
  3997. DBClusterParameterGroup *DBClusterParameterGroup `type:"structure"`
  3998. }
  3999. // String returns the string representation
  4000. func (s CopyDBClusterParameterGroupOutput) String() string {
  4001. return awsutil.Prettify(s)
  4002. }
  4003. // GoString returns the string representation
  4004. func (s CopyDBClusterParameterGroupOutput) GoString() string {
  4005. return s.String()
  4006. }
  4007. // SetDBClusterParameterGroup sets the DBClusterParameterGroup field's value.
  4008. func (s *CopyDBClusterParameterGroupOutput) SetDBClusterParameterGroup(v *DBClusterParameterGroup) *CopyDBClusterParameterGroupOutput {
  4009. s.DBClusterParameterGroup = v
  4010. return s
  4011. }
  4012. // Represents the input to CopyDBClusterSnapshot.
  4013. type CopyDBClusterSnapshotInput struct {
  4014. _ struct{} `type:"structure"`
  4015. // Set to true to copy all tags from the source DB cluster snapshot to the target
  4016. // DB cluster snapshot, and otherwise false. The default is false.
  4017. CopyTags *bool `type:"boolean"`
  4018. // The AWS KMS key ID for an encrypted DB cluster snapshot. The AWS KMS key
  4019. // ID is the Amazon Resource Name (ARN), AWS KMS key identifier, or the AWS
  4020. // KMS key alias for the AWS KMS encryption key.
  4021. //
  4022. // If you copy an encrypted DB cluster snapshot from your AWS account, you can
  4023. // specify a value for KmsKeyId to encrypt the copy with a new AWS KMS encryption
  4024. // key. If you don't specify a value for KmsKeyId, then the copy of the DB cluster
  4025. // snapshot is encrypted with the same AWS KMS key as the source DB cluster
  4026. // snapshot.
  4027. //
  4028. // If you copy an encrypted DB cluster snapshot that is shared from another
  4029. // AWS account, then you must specify a value for KmsKeyId.
  4030. //
  4031. // To copy an encrypted DB cluster snapshot to another AWS Region, set KmsKeyId
  4032. // to the AWS KMS key ID that you want to use to encrypt the copy of the DB
  4033. // cluster snapshot in the destination Region. AWS KMS encryption keys are specific
  4034. // to the AWS Region that they are created in, and you can't use encryption
  4035. // keys from one Region in another Region.
  4036. //
  4037. // If you copy an unencrypted DB cluster snapshot and specify a value for the
  4038. // KmsKeyId parameter, an error is returned.
  4039. KmsKeyId *string `type:"string"`
  4040. // The URL that contains a Signature Version 4 signed request for the CopyDBClusterSnapshot
  4041. // API action in the AWS Region that contains the source DB cluster snapshot
  4042. // to copy. You must use the PreSignedUrl parameter when copying an encrypted
  4043. // DB cluster snapshot from another AWS Region.
  4044. //
  4045. // The presigned URL must be a valid request for the CopyDBSClusterSnapshot
  4046. // API action that can be executed in the source AWS Region that contains the
  4047. // encrypted DB cluster snapshot to be copied. The presigned URL request must
  4048. // contain the following parameter values:
  4049. //
  4050. // * KmsKeyId - The AWS KMS key identifier for the key to use to encrypt
  4051. // the copy of the DB cluster snapshot in the destination AWS Region. This
  4052. // is the same identifier for both the CopyDBClusterSnapshot action that
  4053. // is called in the destination AWS Region, and the action contained in the
  4054. // presigned URL.
  4055. //
  4056. // * DestinationRegion - The name of the AWS Region that the DB cluster snapshot
  4057. // will be created in.
  4058. //
  4059. // * SourceDBClusterSnapshotIdentifier - The DB cluster snapshot identifier
  4060. // for the encrypted DB cluster snapshot to be copied. This identifier must
  4061. // be in the Amazon Resource Name (ARN) format for the source AWS Region.
  4062. // For example, if you are copying an encrypted DB cluster snapshot from
  4063. // the us-west-2 AWS Region, then your SourceDBClusterSnapshotIdentifier
  4064. // looks like the following example: arn:aws:rds:us-west-2:123456789012:cluster-snapshot:my-cluster-snapshot-20161115.
  4065. PreSignedUrl *string `type:"string"`
  4066. // The identifier of the DB cluster snapshot to copy. This parameter is not
  4067. // case sensitive.
  4068. //
  4069. // You can't copy an encrypted, shared DB cluster snapshot from one AWS Region
  4070. // to another.
  4071. //
  4072. // Constraints:
  4073. //
  4074. // * Must specify a valid system snapshot in the "available" state.
  4075. //
  4076. // * If the source snapshot is in the same AWS Region as the copy, specify
  4077. // a valid DB snapshot identifier.
  4078. //
  4079. // * If the source snapshot is in a different AWS Region than the copy, specify
  4080. // a valid DB cluster snapshot ARN.
  4081. //
  4082. // Example: my-cluster-snapshot1
  4083. //
  4084. // SourceDBClusterSnapshotIdentifier is a required field
  4085. SourceDBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  4086. // The tags to be assigned to the DB cluster snapshot.
  4087. Tags []*Tag `locationNameList:"Tag" type:"list"`
  4088. // The identifier of the new DB cluster snapshot to create from the source DB
  4089. // cluster snapshot. This parameter is not case sensitive.
  4090. //
  4091. // Constraints:
  4092. //
  4093. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  4094. //
  4095. // * The first character must be a letter.
  4096. //
  4097. // * Cannot end with a hyphen or contain two consecutive hyphens.
  4098. //
  4099. // Example: my-cluster-snapshot2
  4100. //
  4101. // TargetDBClusterSnapshotIdentifier is a required field
  4102. TargetDBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  4103. }
  4104. // String returns the string representation
  4105. func (s CopyDBClusterSnapshotInput) String() string {
  4106. return awsutil.Prettify(s)
  4107. }
  4108. // GoString returns the string representation
  4109. func (s CopyDBClusterSnapshotInput) GoString() string {
  4110. return s.String()
  4111. }
  4112. // Validate inspects the fields of the type to determine if they are valid.
  4113. func (s *CopyDBClusterSnapshotInput) Validate() error {
  4114. invalidParams := request.ErrInvalidParams{Context: "CopyDBClusterSnapshotInput"}
  4115. if s.SourceDBClusterSnapshotIdentifier == nil {
  4116. invalidParams.Add(request.NewErrParamRequired("SourceDBClusterSnapshotIdentifier"))
  4117. }
  4118. if s.TargetDBClusterSnapshotIdentifier == nil {
  4119. invalidParams.Add(request.NewErrParamRequired("TargetDBClusterSnapshotIdentifier"))
  4120. }
  4121. if invalidParams.Len() > 0 {
  4122. return invalidParams
  4123. }
  4124. return nil
  4125. }
  4126. // SetCopyTags sets the CopyTags field's value.
  4127. func (s *CopyDBClusterSnapshotInput) SetCopyTags(v bool) *CopyDBClusterSnapshotInput {
  4128. s.CopyTags = &v
  4129. return s
  4130. }
  4131. // SetKmsKeyId sets the KmsKeyId field's value.
  4132. func (s *CopyDBClusterSnapshotInput) SetKmsKeyId(v string) *CopyDBClusterSnapshotInput {
  4133. s.KmsKeyId = &v
  4134. return s
  4135. }
  4136. // SetPreSignedUrl sets the PreSignedUrl field's value.
  4137. func (s *CopyDBClusterSnapshotInput) SetPreSignedUrl(v string) *CopyDBClusterSnapshotInput {
  4138. s.PreSignedUrl = &v
  4139. return s
  4140. }
  4141. // SetSourceDBClusterSnapshotIdentifier sets the SourceDBClusterSnapshotIdentifier field's value.
  4142. func (s *CopyDBClusterSnapshotInput) SetSourceDBClusterSnapshotIdentifier(v string) *CopyDBClusterSnapshotInput {
  4143. s.SourceDBClusterSnapshotIdentifier = &v
  4144. return s
  4145. }
  4146. // SetTags sets the Tags field's value.
  4147. func (s *CopyDBClusterSnapshotInput) SetTags(v []*Tag) *CopyDBClusterSnapshotInput {
  4148. s.Tags = v
  4149. return s
  4150. }
  4151. // SetTargetDBClusterSnapshotIdentifier sets the TargetDBClusterSnapshotIdentifier field's value.
  4152. func (s *CopyDBClusterSnapshotInput) SetTargetDBClusterSnapshotIdentifier(v string) *CopyDBClusterSnapshotInput {
  4153. s.TargetDBClusterSnapshotIdentifier = &v
  4154. return s
  4155. }
  4156. type CopyDBClusterSnapshotOutput struct {
  4157. _ struct{} `type:"structure"`
  4158. // Detailed information about a DB cluster snapshot.
  4159. DBClusterSnapshot *DBClusterSnapshot `type:"structure"`
  4160. }
  4161. // String returns the string representation
  4162. func (s CopyDBClusterSnapshotOutput) String() string {
  4163. return awsutil.Prettify(s)
  4164. }
  4165. // GoString returns the string representation
  4166. func (s CopyDBClusterSnapshotOutput) GoString() string {
  4167. return s.String()
  4168. }
  4169. // SetDBClusterSnapshot sets the DBClusterSnapshot field's value.
  4170. func (s *CopyDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapshot) *CopyDBClusterSnapshotOutput {
  4171. s.DBClusterSnapshot = v
  4172. return s
  4173. }
  4174. // Represents the input to CreateDBCluster.
  4175. type CreateDBClusterInput struct {
  4176. _ struct{} `type:"structure"`
  4177. // A list of Amazon EC2 Availability Zones that instances in the DB cluster
  4178. // can be created in.
  4179. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  4180. // The number of days for which automated backups are retained. You must specify
  4181. // a minimum value of 1.
  4182. //
  4183. // Default: 1
  4184. //
  4185. // Constraints:
  4186. //
  4187. // * Must be a value from 1 to 35.
  4188. BackupRetentionPeriod *int64 `type:"integer"`
  4189. // The DB cluster identifier. This parameter is stored as a lowercase string.
  4190. //
  4191. // Constraints:
  4192. //
  4193. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  4194. //
  4195. // * The first character must be a letter.
  4196. //
  4197. // * Cannot end with a hyphen or contain two consecutive hyphens.
  4198. //
  4199. // Example: my-cluster
  4200. //
  4201. // DBClusterIdentifier is a required field
  4202. DBClusterIdentifier *string `type:"string" required:"true"`
  4203. // The name of the DB cluster parameter group to associate with this DB cluster.
  4204. DBClusterParameterGroupName *string `type:"string"`
  4205. // A DB subnet group to associate with this DB cluster.
  4206. //
  4207. // Constraints: Must match the name of an existing DBSubnetGroup. Must not be
  4208. // default.
  4209. //
  4210. // Example: mySubnetgroup
  4211. DBSubnetGroupName *string `type:"string"`
  4212. // A list of log types that need to be enabled for exporting to Amazon CloudWatch
  4213. // Logs.
  4214. EnableCloudwatchLogsExports []*string `type:"list"`
  4215. // The name of the database engine to be used for this DB cluster.
  4216. //
  4217. // Valid values: docdb
  4218. //
  4219. // Engine is a required field
  4220. Engine *string `type:"string" required:"true"`
  4221. // The version number of the database engine to use.
  4222. EngineVersion *string `type:"string"`
  4223. // The AWS KMS key identifier for an encrypted DB cluster.
  4224. //
  4225. // The AWS KMS key identifier is the Amazon Resource Name (ARN) for the AWS
  4226. // KMS encryption key. If you are creating a DB cluster using the same AWS account
  4227. // that owns the AWS KMS encryption key that is used to encrypt the new DB cluster,
  4228. // you can use the AWS KMS key alias instead of the ARN for the AWS KMS encryption
  4229. // key.
  4230. //
  4231. // If an encryption key is not specified in KmsKeyId:
  4232. //
  4233. // * If ReplicationSourceIdentifier identifies an encrypted source, then
  4234. // Amazon DocumentDB uses the encryption key that is used to encrypt the
  4235. // source. Otherwise, Amazon DocumentDB uses your default encryption key.
  4236. //
  4237. //
  4238. // * If the StorageEncrypted parameter is true and ReplicationSourceIdentifier
  4239. // is not specified, Amazon DocumentDB uses your default encryption key.
  4240. //
  4241. // AWS KMS creates the default encryption key for your AWS account. Your AWS
  4242. // account has a different default encryption key for each AWS Region.
  4243. //
  4244. // If you create a replica of an encrypted DB cluster in another AWS Region,
  4245. // you must set KmsKeyId to a KMS key ID that is valid in the destination AWS
  4246. // Region. This key is used to encrypt the replica in that AWS Region.
  4247. KmsKeyId *string `type:"string"`
  4248. // The password for the master database user. This password can contain any
  4249. // printable ASCII character except "/", """, or "@".
  4250. //
  4251. // Constraints: Must contain from 8 to 41 characters.
  4252. MasterUserPassword *string `type:"string"`
  4253. // The name of the master user for the DB cluster.
  4254. //
  4255. // Constraints:
  4256. //
  4257. // * Must be from 1 to 16 letters or numbers.
  4258. //
  4259. // * The first character must be a letter.
  4260. //
  4261. // * Cannot be a reserved word for the chosen database engine.
  4262. MasterUsername *string `type:"string"`
  4263. // The port number on which the instances in the DB cluster accept connections.
  4264. Port *int64 `type:"integer"`
  4265. // The daily time range during which automated backups are created if automated
  4266. // backups are enabled using the BackupRetentionPeriod parameter.
  4267. //
  4268. // The default is a 30-minute window selected at random from an 8-hour block
  4269. // of time for each AWS Region.
  4270. //
  4271. // Constraints:
  4272. //
  4273. // * Must be in the format hh24:mi-hh24:mi.
  4274. //
  4275. // * Must be in Universal Coordinated Time (UTC).
  4276. //
  4277. // * Must not conflict with the preferred maintenance window.
  4278. //
  4279. // * Must be at least 30 minutes.
  4280. PreferredBackupWindow *string `type:"string"`
  4281. // The weekly time range during which system maintenance can occur, in Universal
  4282. // Coordinated Time (UTC).
  4283. //
  4284. // Format: ddd:hh24:mi-ddd:hh24:mi
  4285. //
  4286. // The default is a 30-minute window selected at random from an 8-hour block
  4287. // of time for each AWS Region, occurring on a random day of the week.
  4288. //
  4289. // Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  4290. //
  4291. // Constraints: Minimum 30-minute window.
  4292. PreferredMaintenanceWindow *string `type:"string"`
  4293. // Specifies whether the DB cluster is encrypted.
  4294. StorageEncrypted *bool `type:"boolean"`
  4295. // The tags to be assigned to the DB cluster.
  4296. Tags []*Tag `locationNameList:"Tag" type:"list"`
  4297. // A list of EC2 VPC security groups to associate with this DB cluster.
  4298. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  4299. }
  4300. // String returns the string representation
  4301. func (s CreateDBClusterInput) String() string {
  4302. return awsutil.Prettify(s)
  4303. }
  4304. // GoString returns the string representation
  4305. func (s CreateDBClusterInput) GoString() string {
  4306. return s.String()
  4307. }
  4308. // Validate inspects the fields of the type to determine if they are valid.
  4309. func (s *CreateDBClusterInput) Validate() error {
  4310. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterInput"}
  4311. if s.DBClusterIdentifier == nil {
  4312. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  4313. }
  4314. if s.Engine == nil {
  4315. invalidParams.Add(request.NewErrParamRequired("Engine"))
  4316. }
  4317. if invalidParams.Len() > 0 {
  4318. return invalidParams
  4319. }
  4320. return nil
  4321. }
  4322. // SetAvailabilityZones sets the AvailabilityZones field's value.
  4323. func (s *CreateDBClusterInput) SetAvailabilityZones(v []*string) *CreateDBClusterInput {
  4324. s.AvailabilityZones = v
  4325. return s
  4326. }
  4327. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  4328. func (s *CreateDBClusterInput) SetBackupRetentionPeriod(v int64) *CreateDBClusterInput {
  4329. s.BackupRetentionPeriod = &v
  4330. return s
  4331. }
  4332. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  4333. func (s *CreateDBClusterInput) SetDBClusterIdentifier(v string) *CreateDBClusterInput {
  4334. s.DBClusterIdentifier = &v
  4335. return s
  4336. }
  4337. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  4338. func (s *CreateDBClusterInput) SetDBClusterParameterGroupName(v string) *CreateDBClusterInput {
  4339. s.DBClusterParameterGroupName = &v
  4340. return s
  4341. }
  4342. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  4343. func (s *CreateDBClusterInput) SetDBSubnetGroupName(v string) *CreateDBClusterInput {
  4344. s.DBSubnetGroupName = &v
  4345. return s
  4346. }
  4347. // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value.
  4348. func (s *CreateDBClusterInput) SetEnableCloudwatchLogsExports(v []*string) *CreateDBClusterInput {
  4349. s.EnableCloudwatchLogsExports = v
  4350. return s
  4351. }
  4352. // SetEngine sets the Engine field's value.
  4353. func (s *CreateDBClusterInput) SetEngine(v string) *CreateDBClusterInput {
  4354. s.Engine = &v
  4355. return s
  4356. }
  4357. // SetEngineVersion sets the EngineVersion field's value.
  4358. func (s *CreateDBClusterInput) SetEngineVersion(v string) *CreateDBClusterInput {
  4359. s.EngineVersion = &v
  4360. return s
  4361. }
  4362. // SetKmsKeyId sets the KmsKeyId field's value.
  4363. func (s *CreateDBClusterInput) SetKmsKeyId(v string) *CreateDBClusterInput {
  4364. s.KmsKeyId = &v
  4365. return s
  4366. }
  4367. // SetMasterUserPassword sets the MasterUserPassword field's value.
  4368. func (s *CreateDBClusterInput) SetMasterUserPassword(v string) *CreateDBClusterInput {
  4369. s.MasterUserPassword = &v
  4370. return s
  4371. }
  4372. // SetMasterUsername sets the MasterUsername field's value.
  4373. func (s *CreateDBClusterInput) SetMasterUsername(v string) *CreateDBClusterInput {
  4374. s.MasterUsername = &v
  4375. return s
  4376. }
  4377. // SetPort sets the Port field's value.
  4378. func (s *CreateDBClusterInput) SetPort(v int64) *CreateDBClusterInput {
  4379. s.Port = &v
  4380. return s
  4381. }
  4382. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  4383. func (s *CreateDBClusterInput) SetPreferredBackupWindow(v string) *CreateDBClusterInput {
  4384. s.PreferredBackupWindow = &v
  4385. return s
  4386. }
  4387. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  4388. func (s *CreateDBClusterInput) SetPreferredMaintenanceWindow(v string) *CreateDBClusterInput {
  4389. s.PreferredMaintenanceWindow = &v
  4390. return s
  4391. }
  4392. // SetStorageEncrypted sets the StorageEncrypted field's value.
  4393. func (s *CreateDBClusterInput) SetStorageEncrypted(v bool) *CreateDBClusterInput {
  4394. s.StorageEncrypted = &v
  4395. return s
  4396. }
  4397. // SetTags sets the Tags field's value.
  4398. func (s *CreateDBClusterInput) SetTags(v []*Tag) *CreateDBClusterInput {
  4399. s.Tags = v
  4400. return s
  4401. }
  4402. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  4403. func (s *CreateDBClusterInput) SetVpcSecurityGroupIds(v []*string) *CreateDBClusterInput {
  4404. s.VpcSecurityGroupIds = v
  4405. return s
  4406. }
  4407. type CreateDBClusterOutput struct {
  4408. _ struct{} `type:"structure"`
  4409. // Detailed information about a DB cluster.
  4410. DBCluster *DBCluster `type:"structure"`
  4411. }
  4412. // String returns the string representation
  4413. func (s CreateDBClusterOutput) String() string {
  4414. return awsutil.Prettify(s)
  4415. }
  4416. // GoString returns the string representation
  4417. func (s CreateDBClusterOutput) GoString() string {
  4418. return s.String()
  4419. }
  4420. // SetDBCluster sets the DBCluster field's value.
  4421. func (s *CreateDBClusterOutput) SetDBCluster(v *DBCluster) *CreateDBClusterOutput {
  4422. s.DBCluster = v
  4423. return s
  4424. }
  4425. // Represents the input of CreateDBClusterParameterGroup.
  4426. type CreateDBClusterParameterGroupInput struct {
  4427. _ struct{} `type:"structure"`
  4428. // The name of the DB cluster parameter group.
  4429. //
  4430. // Constraints:
  4431. //
  4432. // * Must match the name of an existing DBClusterParameterGroup.
  4433. //
  4434. // This value is stored as a lowercase string.
  4435. //
  4436. // DBClusterParameterGroupName is a required field
  4437. DBClusterParameterGroupName *string `type:"string" required:"true"`
  4438. // The DB cluster parameter group family name.
  4439. //
  4440. // DBParameterGroupFamily is a required field
  4441. DBParameterGroupFamily *string `type:"string" required:"true"`
  4442. // The description for the DB cluster parameter group.
  4443. //
  4444. // Description is a required field
  4445. Description *string `type:"string" required:"true"`
  4446. // The tags to be assigned to the DB cluster parameter group.
  4447. Tags []*Tag `locationNameList:"Tag" type:"list"`
  4448. }
  4449. // String returns the string representation
  4450. func (s CreateDBClusterParameterGroupInput) String() string {
  4451. return awsutil.Prettify(s)
  4452. }
  4453. // GoString returns the string representation
  4454. func (s CreateDBClusterParameterGroupInput) GoString() string {
  4455. return s.String()
  4456. }
  4457. // Validate inspects the fields of the type to determine if they are valid.
  4458. func (s *CreateDBClusterParameterGroupInput) Validate() error {
  4459. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterParameterGroupInput"}
  4460. if s.DBClusterParameterGroupName == nil {
  4461. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  4462. }
  4463. if s.DBParameterGroupFamily == nil {
  4464. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  4465. }
  4466. if s.Description == nil {
  4467. invalidParams.Add(request.NewErrParamRequired("Description"))
  4468. }
  4469. if invalidParams.Len() > 0 {
  4470. return invalidParams
  4471. }
  4472. return nil
  4473. }
  4474. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  4475. func (s *CreateDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *CreateDBClusterParameterGroupInput {
  4476. s.DBClusterParameterGroupName = &v
  4477. return s
  4478. }
  4479. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  4480. func (s *CreateDBClusterParameterGroupInput) SetDBParameterGroupFamily(v string) *CreateDBClusterParameterGroupInput {
  4481. s.DBParameterGroupFamily = &v
  4482. return s
  4483. }
  4484. // SetDescription sets the Description field's value.
  4485. func (s *CreateDBClusterParameterGroupInput) SetDescription(v string) *CreateDBClusterParameterGroupInput {
  4486. s.Description = &v
  4487. return s
  4488. }
  4489. // SetTags sets the Tags field's value.
  4490. func (s *CreateDBClusterParameterGroupInput) SetTags(v []*Tag) *CreateDBClusterParameterGroupInput {
  4491. s.Tags = v
  4492. return s
  4493. }
  4494. type CreateDBClusterParameterGroupOutput struct {
  4495. _ struct{} `type:"structure"`
  4496. // Detailed information about a DB cluster parameter group.
  4497. DBClusterParameterGroup *DBClusterParameterGroup `type:"structure"`
  4498. }
  4499. // String returns the string representation
  4500. func (s CreateDBClusterParameterGroupOutput) String() string {
  4501. return awsutil.Prettify(s)
  4502. }
  4503. // GoString returns the string representation
  4504. func (s CreateDBClusterParameterGroupOutput) GoString() string {
  4505. return s.String()
  4506. }
  4507. // SetDBClusterParameterGroup sets the DBClusterParameterGroup field's value.
  4508. func (s *CreateDBClusterParameterGroupOutput) SetDBClusterParameterGroup(v *DBClusterParameterGroup) *CreateDBClusterParameterGroupOutput {
  4509. s.DBClusterParameterGroup = v
  4510. return s
  4511. }
  4512. // Represents the input of CreateDBClusterSnapshot.
  4513. type CreateDBClusterSnapshotInput struct {
  4514. _ struct{} `type:"structure"`
  4515. // The identifier of the DB cluster to create a snapshot for. This parameter
  4516. // is not case sensitive.
  4517. //
  4518. // Constraints:
  4519. //
  4520. // * Must match the identifier of an existing DBCluster.
  4521. //
  4522. // Example: my-cluster
  4523. //
  4524. // DBClusterIdentifier is a required field
  4525. DBClusterIdentifier *string `type:"string" required:"true"`
  4526. // The identifier of the DB cluster snapshot. This parameter is stored as a
  4527. // lowercase string.
  4528. //
  4529. // Constraints:
  4530. //
  4531. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  4532. //
  4533. // * The first character must be a letter.
  4534. //
  4535. // * Cannot end with a hyphen or contain two consecutive hyphens.
  4536. //
  4537. // Example: my-cluster-snapshot1
  4538. //
  4539. // DBClusterSnapshotIdentifier is a required field
  4540. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  4541. // The tags to be assigned to the DB cluster snapshot.
  4542. Tags []*Tag `locationNameList:"Tag" type:"list"`
  4543. }
  4544. // String returns the string representation
  4545. func (s CreateDBClusterSnapshotInput) String() string {
  4546. return awsutil.Prettify(s)
  4547. }
  4548. // GoString returns the string representation
  4549. func (s CreateDBClusterSnapshotInput) GoString() string {
  4550. return s.String()
  4551. }
  4552. // Validate inspects the fields of the type to determine if they are valid.
  4553. func (s *CreateDBClusterSnapshotInput) Validate() error {
  4554. invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterSnapshotInput"}
  4555. if s.DBClusterIdentifier == nil {
  4556. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  4557. }
  4558. if s.DBClusterSnapshotIdentifier == nil {
  4559. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  4560. }
  4561. if invalidParams.Len() > 0 {
  4562. return invalidParams
  4563. }
  4564. return nil
  4565. }
  4566. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  4567. func (s *CreateDBClusterSnapshotInput) SetDBClusterIdentifier(v string) *CreateDBClusterSnapshotInput {
  4568. s.DBClusterIdentifier = &v
  4569. return s
  4570. }
  4571. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  4572. func (s *CreateDBClusterSnapshotInput) SetDBClusterSnapshotIdentifier(v string) *CreateDBClusterSnapshotInput {
  4573. s.DBClusterSnapshotIdentifier = &v
  4574. return s
  4575. }
  4576. // SetTags sets the Tags field's value.
  4577. func (s *CreateDBClusterSnapshotInput) SetTags(v []*Tag) *CreateDBClusterSnapshotInput {
  4578. s.Tags = v
  4579. return s
  4580. }
  4581. type CreateDBClusterSnapshotOutput struct {
  4582. _ struct{} `type:"structure"`
  4583. // Detailed information about a DB cluster snapshot.
  4584. DBClusterSnapshot *DBClusterSnapshot `type:"structure"`
  4585. }
  4586. // String returns the string representation
  4587. func (s CreateDBClusterSnapshotOutput) String() string {
  4588. return awsutil.Prettify(s)
  4589. }
  4590. // GoString returns the string representation
  4591. func (s CreateDBClusterSnapshotOutput) GoString() string {
  4592. return s.String()
  4593. }
  4594. // SetDBClusterSnapshot sets the DBClusterSnapshot field's value.
  4595. func (s *CreateDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapshot) *CreateDBClusterSnapshotOutput {
  4596. s.DBClusterSnapshot = v
  4597. return s
  4598. }
  4599. // Represents the input to CreateDBInstance.
  4600. type CreateDBInstanceInput struct {
  4601. _ struct{} `type:"structure"`
  4602. // Indicates that minor engine upgrades are applied automatically to the DB
  4603. // instance during the maintenance window.
  4604. //
  4605. // Default: true
  4606. AutoMinorVersionUpgrade *bool `type:"boolean"`
  4607. // The Amazon EC2 Availability Zone that the DB instance is created in.
  4608. //
  4609. // Default: A random, system-chosen Availability Zone in the endpoint's AWS
  4610. // Region.
  4611. //
  4612. // Example: us-east-1d
  4613. //
  4614. // Constraint: The AvailabilityZone parameter can't be specified if the MultiAZ
  4615. // parameter is set to true. The specified Availability Zone must be in the
  4616. // same AWS Region as the current endpoint.
  4617. AvailabilityZone *string `type:"string"`
  4618. // The identifier of the DB cluster that the instance will belong to.
  4619. //
  4620. // DBClusterIdentifier is a required field
  4621. DBClusterIdentifier *string `type:"string" required:"true"`
  4622. // The compute and memory capacity of the DB instance; for example, db.m4.large.
  4623. //
  4624. // DBInstanceClass is a required field
  4625. DBInstanceClass *string `type:"string" required:"true"`
  4626. // The DB instance identifier. This parameter is stored as a lowercase string.
  4627. //
  4628. // Constraints:
  4629. //
  4630. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  4631. //
  4632. // * The first character must be a letter.
  4633. //
  4634. // * Cannot end with a hyphen or contain two consecutive hyphens.
  4635. //
  4636. // Example: mydbinstance
  4637. //
  4638. // DBInstanceIdentifier is a required field
  4639. DBInstanceIdentifier *string `type:"string" required:"true"`
  4640. // The name of the database engine to be used for this instance.
  4641. //
  4642. // Valid value: docdb
  4643. //
  4644. // Engine is a required field
  4645. Engine *string `type:"string" required:"true"`
  4646. // The time range each week during which system maintenance can occur, in Universal
  4647. // Coordinated Time (UTC).
  4648. //
  4649. // Format: ddd:hh24:mi-ddd:hh24:mi
  4650. //
  4651. // The default is a 30-minute window selected at random from an 8-hour block
  4652. // of time for each AWS Region, occurring on a random day of the week.
  4653. //
  4654. // Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  4655. //
  4656. // Constraints: Minimum 30-minute window.
  4657. PreferredMaintenanceWindow *string `type:"string"`
  4658. // A value that specifies the order in which an Amazon DocumentDB replica is
  4659. // promoted to the primary instance after a failure of the existing primary
  4660. // instance.
  4661. //
  4662. // Default: 1
  4663. //
  4664. // Valid values: 0-15
  4665. PromotionTier *int64 `type:"integer"`
  4666. // The tags to be assigned to the DB instance.
  4667. Tags []*Tag `locationNameList:"Tag" type:"list"`
  4668. }
  4669. // String returns the string representation
  4670. func (s CreateDBInstanceInput) String() string {
  4671. return awsutil.Prettify(s)
  4672. }
  4673. // GoString returns the string representation
  4674. func (s CreateDBInstanceInput) GoString() string {
  4675. return s.String()
  4676. }
  4677. // Validate inspects the fields of the type to determine if they are valid.
  4678. func (s *CreateDBInstanceInput) Validate() error {
  4679. invalidParams := request.ErrInvalidParams{Context: "CreateDBInstanceInput"}
  4680. if s.DBClusterIdentifier == nil {
  4681. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  4682. }
  4683. if s.DBInstanceClass == nil {
  4684. invalidParams.Add(request.NewErrParamRequired("DBInstanceClass"))
  4685. }
  4686. if s.DBInstanceIdentifier == nil {
  4687. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  4688. }
  4689. if s.Engine == nil {
  4690. invalidParams.Add(request.NewErrParamRequired("Engine"))
  4691. }
  4692. if invalidParams.Len() > 0 {
  4693. return invalidParams
  4694. }
  4695. return nil
  4696. }
  4697. // SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
  4698. func (s *CreateDBInstanceInput) SetAutoMinorVersionUpgrade(v bool) *CreateDBInstanceInput {
  4699. s.AutoMinorVersionUpgrade = &v
  4700. return s
  4701. }
  4702. // SetAvailabilityZone sets the AvailabilityZone field's value.
  4703. func (s *CreateDBInstanceInput) SetAvailabilityZone(v string) *CreateDBInstanceInput {
  4704. s.AvailabilityZone = &v
  4705. return s
  4706. }
  4707. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  4708. func (s *CreateDBInstanceInput) SetDBClusterIdentifier(v string) *CreateDBInstanceInput {
  4709. s.DBClusterIdentifier = &v
  4710. return s
  4711. }
  4712. // SetDBInstanceClass sets the DBInstanceClass field's value.
  4713. func (s *CreateDBInstanceInput) SetDBInstanceClass(v string) *CreateDBInstanceInput {
  4714. s.DBInstanceClass = &v
  4715. return s
  4716. }
  4717. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  4718. func (s *CreateDBInstanceInput) SetDBInstanceIdentifier(v string) *CreateDBInstanceInput {
  4719. s.DBInstanceIdentifier = &v
  4720. return s
  4721. }
  4722. // SetEngine sets the Engine field's value.
  4723. func (s *CreateDBInstanceInput) SetEngine(v string) *CreateDBInstanceInput {
  4724. s.Engine = &v
  4725. return s
  4726. }
  4727. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  4728. func (s *CreateDBInstanceInput) SetPreferredMaintenanceWindow(v string) *CreateDBInstanceInput {
  4729. s.PreferredMaintenanceWindow = &v
  4730. return s
  4731. }
  4732. // SetPromotionTier sets the PromotionTier field's value.
  4733. func (s *CreateDBInstanceInput) SetPromotionTier(v int64) *CreateDBInstanceInput {
  4734. s.PromotionTier = &v
  4735. return s
  4736. }
  4737. // SetTags sets the Tags field's value.
  4738. func (s *CreateDBInstanceInput) SetTags(v []*Tag) *CreateDBInstanceInput {
  4739. s.Tags = v
  4740. return s
  4741. }
  4742. type CreateDBInstanceOutput struct {
  4743. _ struct{} `type:"structure"`
  4744. // Detailed information about a DB instance.
  4745. DBInstance *DBInstance `type:"structure"`
  4746. }
  4747. // String returns the string representation
  4748. func (s CreateDBInstanceOutput) String() string {
  4749. return awsutil.Prettify(s)
  4750. }
  4751. // GoString returns the string representation
  4752. func (s CreateDBInstanceOutput) GoString() string {
  4753. return s.String()
  4754. }
  4755. // SetDBInstance sets the DBInstance field's value.
  4756. func (s *CreateDBInstanceOutput) SetDBInstance(v *DBInstance) *CreateDBInstanceOutput {
  4757. s.DBInstance = v
  4758. return s
  4759. }
  4760. // Represents the input to CreateDBSubnetGroup.
  4761. type CreateDBSubnetGroupInput struct {
  4762. _ struct{} `type:"structure"`
  4763. // The description for the DB subnet group.
  4764. //
  4765. // DBSubnetGroupDescription is a required field
  4766. DBSubnetGroupDescription *string `type:"string" required:"true"`
  4767. // The name for the DB subnet group. This value is stored as a lowercase string.
  4768. //
  4769. // Constraints: Must contain no more than 255 letters, numbers, periods, underscores,
  4770. // spaces, or hyphens. Must not be default.
  4771. //
  4772. // Example: mySubnetgroup
  4773. //
  4774. // DBSubnetGroupName is a required field
  4775. DBSubnetGroupName *string `type:"string" required:"true"`
  4776. // The Amazon EC2 subnet IDs for the DB subnet group.
  4777. //
  4778. // SubnetIds is a required field
  4779. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
  4780. // The tags to be assigned to the DB subnet group.
  4781. Tags []*Tag `locationNameList:"Tag" type:"list"`
  4782. }
  4783. // String returns the string representation
  4784. func (s CreateDBSubnetGroupInput) String() string {
  4785. return awsutil.Prettify(s)
  4786. }
  4787. // GoString returns the string representation
  4788. func (s CreateDBSubnetGroupInput) GoString() string {
  4789. return s.String()
  4790. }
  4791. // Validate inspects the fields of the type to determine if they are valid.
  4792. func (s *CreateDBSubnetGroupInput) Validate() error {
  4793. invalidParams := request.ErrInvalidParams{Context: "CreateDBSubnetGroupInput"}
  4794. if s.DBSubnetGroupDescription == nil {
  4795. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupDescription"))
  4796. }
  4797. if s.DBSubnetGroupName == nil {
  4798. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName"))
  4799. }
  4800. if s.SubnetIds == nil {
  4801. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  4802. }
  4803. if invalidParams.Len() > 0 {
  4804. return invalidParams
  4805. }
  4806. return nil
  4807. }
  4808. // SetDBSubnetGroupDescription sets the DBSubnetGroupDescription field's value.
  4809. func (s *CreateDBSubnetGroupInput) SetDBSubnetGroupDescription(v string) *CreateDBSubnetGroupInput {
  4810. s.DBSubnetGroupDescription = &v
  4811. return s
  4812. }
  4813. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  4814. func (s *CreateDBSubnetGroupInput) SetDBSubnetGroupName(v string) *CreateDBSubnetGroupInput {
  4815. s.DBSubnetGroupName = &v
  4816. return s
  4817. }
  4818. // SetSubnetIds sets the SubnetIds field's value.
  4819. func (s *CreateDBSubnetGroupInput) SetSubnetIds(v []*string) *CreateDBSubnetGroupInput {
  4820. s.SubnetIds = v
  4821. return s
  4822. }
  4823. // SetTags sets the Tags field's value.
  4824. func (s *CreateDBSubnetGroupInput) SetTags(v []*Tag) *CreateDBSubnetGroupInput {
  4825. s.Tags = v
  4826. return s
  4827. }
  4828. type CreateDBSubnetGroupOutput struct {
  4829. _ struct{} `type:"structure"`
  4830. // Detailed information about a DB subnet group.
  4831. DBSubnetGroup *DBSubnetGroup `type:"structure"`
  4832. }
  4833. // String returns the string representation
  4834. func (s CreateDBSubnetGroupOutput) String() string {
  4835. return awsutil.Prettify(s)
  4836. }
  4837. // GoString returns the string representation
  4838. func (s CreateDBSubnetGroupOutput) GoString() string {
  4839. return s.String()
  4840. }
  4841. // SetDBSubnetGroup sets the DBSubnetGroup field's value.
  4842. func (s *CreateDBSubnetGroupOutput) SetDBSubnetGroup(v *DBSubnetGroup) *CreateDBSubnetGroupOutput {
  4843. s.DBSubnetGroup = v
  4844. return s
  4845. }
  4846. // Detailed information about a DB cluster.
  4847. type DBCluster struct {
  4848. _ struct{} `type:"structure"`
  4849. // Provides a list of the AWS Identity and Access Management (IAM) roles that
  4850. // are associated with the DB cluster. IAM roles that are associated with a
  4851. // DB cluster grant permission for the DB cluster to access other AWS services
  4852. // on your behalf.
  4853. AssociatedRoles []*DBClusterRole `locationNameList:"DBClusterRole" type:"list"`
  4854. // Provides the list of Amazon EC2 Availability Zones that instances in the
  4855. // DB cluster can be created in.
  4856. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  4857. // Specifies the number of days for which automatic DB snapshots are retained.
  4858. BackupRetentionPeriod *int64 `type:"integer"`
  4859. // Specifies the time when the DB cluster was created, in Universal Coordinated
  4860. // Time (UTC).
  4861. ClusterCreateTime *time.Time `type:"timestamp"`
  4862. // The Amazon Resource Name (ARN) for the DB cluster.
  4863. DBClusterArn *string `type:"string"`
  4864. // Contains a user-supplied DB cluster identifier. This identifier is the unique
  4865. // key that identifies a DB cluster.
  4866. DBClusterIdentifier *string `type:"string"`
  4867. // Provides the list of instances that make up the DB cluster.
  4868. DBClusterMembers []*DBClusterMember `locationNameList:"DBClusterMember" type:"list"`
  4869. // Specifies the name of the DB cluster parameter group for the DB cluster.
  4870. DBClusterParameterGroup *string `type:"string"`
  4871. // Specifies information on the subnet group that is associated with the DB
  4872. // cluster, including the name, description, and subnets in the subnet group.
  4873. DBSubnetGroup *string `type:"string"`
  4874. // The AWS Region-unique, immutable identifier for the DB cluster. This identifier
  4875. // is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB
  4876. // cluster is accessed.
  4877. DbClusterResourceId *string `type:"string"`
  4878. // The earliest time to which a database can be restored with point-in-time
  4879. // restore.
  4880. EarliestRestorableTime *time.Time `type:"timestamp"`
  4881. // A list of log types that this DB cluster is configured to export to Amazon
  4882. // CloudWatch Logs.
  4883. EnabledCloudwatchLogsExports []*string `type:"list"`
  4884. // Specifies the connection endpoint for the primary instance of the DB cluster.
  4885. Endpoint *string `type:"string"`
  4886. // Provides the name of the database engine to be used for this DB cluster.
  4887. Engine *string `type:"string"`
  4888. // Indicates the database engine version.
  4889. EngineVersion *string `type:"string"`
  4890. // Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
  4891. HostedZoneId *string `type:"string"`
  4892. // If StorageEncrypted is true, the AWS KMS key identifier for the encrypted
  4893. // DB cluster.
  4894. KmsKeyId *string `type:"string"`
  4895. // Specifies the latest time to which a database can be restored with point-in-time
  4896. // restore.
  4897. LatestRestorableTime *time.Time `type:"timestamp"`
  4898. // Contains the master user name for the DB cluster.
  4899. MasterUsername *string `type:"string"`
  4900. // Specifies whether the DB cluster has instances in multiple Availability Zones.
  4901. MultiAZ *bool `type:"boolean"`
  4902. // Specifies the progress of the operation as a percentage.
  4903. PercentProgress *string `type:"string"`
  4904. // Specifies the port that the database engine is listening on.
  4905. Port *int64 `type:"integer"`
  4906. // Specifies the daily time range during which automated backups are created
  4907. // if automated backups are enabled, as determined by the BackupRetentionPeriod.
  4908. PreferredBackupWindow *string `type:"string"`
  4909. // Specifies the weekly time range during which system maintenance can occur,
  4910. // in Universal Coordinated Time (UTC).
  4911. PreferredMaintenanceWindow *string `type:"string"`
  4912. // The reader endpoint for the DB cluster. The reader endpoint for a DB cluster
  4913. // load balances connections across the Amazon DocumentDB replicas that are
  4914. // available in a DB cluster. As clients request new connections to the reader
  4915. // endpoint, Amazon DocumentDB distributes the connection requests among the
  4916. // Amazon DocumentDB replicas in the DB cluster. This functionality can help
  4917. // balance your read workload across multiple Amazon DocumentDB replicas in
  4918. // your DB cluster.
  4919. //
  4920. // If a failover occurs, and the Amazon DocumentDB replica that you are connected
  4921. // to is promoted to be the primary instance, your connection is dropped. To
  4922. // continue sending your read workload to other Amazon DocumentDB replicas in
  4923. // the cluster, you can then reconnect to the reader endpoint.
  4924. ReaderEndpoint *string `type:"string"`
  4925. // Specifies the current state of this DB cluster.
  4926. Status *string `type:"string"`
  4927. // Specifies whether the DB cluster is encrypted.
  4928. StorageEncrypted *bool `type:"boolean"`
  4929. // Provides a list of virtual private cloud (VPC) security groups that the DB
  4930. // cluster belongs to.
  4931. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"`
  4932. }
  4933. // String returns the string representation
  4934. func (s DBCluster) String() string {
  4935. return awsutil.Prettify(s)
  4936. }
  4937. // GoString returns the string representation
  4938. func (s DBCluster) GoString() string {
  4939. return s.String()
  4940. }
  4941. // SetAssociatedRoles sets the AssociatedRoles field's value.
  4942. func (s *DBCluster) SetAssociatedRoles(v []*DBClusterRole) *DBCluster {
  4943. s.AssociatedRoles = v
  4944. return s
  4945. }
  4946. // SetAvailabilityZones sets the AvailabilityZones field's value.
  4947. func (s *DBCluster) SetAvailabilityZones(v []*string) *DBCluster {
  4948. s.AvailabilityZones = v
  4949. return s
  4950. }
  4951. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  4952. func (s *DBCluster) SetBackupRetentionPeriod(v int64) *DBCluster {
  4953. s.BackupRetentionPeriod = &v
  4954. return s
  4955. }
  4956. // SetClusterCreateTime sets the ClusterCreateTime field's value.
  4957. func (s *DBCluster) SetClusterCreateTime(v time.Time) *DBCluster {
  4958. s.ClusterCreateTime = &v
  4959. return s
  4960. }
  4961. // SetDBClusterArn sets the DBClusterArn field's value.
  4962. func (s *DBCluster) SetDBClusterArn(v string) *DBCluster {
  4963. s.DBClusterArn = &v
  4964. return s
  4965. }
  4966. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  4967. func (s *DBCluster) SetDBClusterIdentifier(v string) *DBCluster {
  4968. s.DBClusterIdentifier = &v
  4969. return s
  4970. }
  4971. // SetDBClusterMembers sets the DBClusterMembers field's value.
  4972. func (s *DBCluster) SetDBClusterMembers(v []*DBClusterMember) *DBCluster {
  4973. s.DBClusterMembers = v
  4974. return s
  4975. }
  4976. // SetDBClusterParameterGroup sets the DBClusterParameterGroup field's value.
  4977. func (s *DBCluster) SetDBClusterParameterGroup(v string) *DBCluster {
  4978. s.DBClusterParameterGroup = &v
  4979. return s
  4980. }
  4981. // SetDBSubnetGroup sets the DBSubnetGroup field's value.
  4982. func (s *DBCluster) SetDBSubnetGroup(v string) *DBCluster {
  4983. s.DBSubnetGroup = &v
  4984. return s
  4985. }
  4986. // SetDbClusterResourceId sets the DbClusterResourceId field's value.
  4987. func (s *DBCluster) SetDbClusterResourceId(v string) *DBCluster {
  4988. s.DbClusterResourceId = &v
  4989. return s
  4990. }
  4991. // SetEarliestRestorableTime sets the EarliestRestorableTime field's value.
  4992. func (s *DBCluster) SetEarliestRestorableTime(v time.Time) *DBCluster {
  4993. s.EarliestRestorableTime = &v
  4994. return s
  4995. }
  4996. // SetEnabledCloudwatchLogsExports sets the EnabledCloudwatchLogsExports field's value.
  4997. func (s *DBCluster) SetEnabledCloudwatchLogsExports(v []*string) *DBCluster {
  4998. s.EnabledCloudwatchLogsExports = v
  4999. return s
  5000. }
  5001. // SetEndpoint sets the Endpoint field's value.
  5002. func (s *DBCluster) SetEndpoint(v string) *DBCluster {
  5003. s.Endpoint = &v
  5004. return s
  5005. }
  5006. // SetEngine sets the Engine field's value.
  5007. func (s *DBCluster) SetEngine(v string) *DBCluster {
  5008. s.Engine = &v
  5009. return s
  5010. }
  5011. // SetEngineVersion sets the EngineVersion field's value.
  5012. func (s *DBCluster) SetEngineVersion(v string) *DBCluster {
  5013. s.EngineVersion = &v
  5014. return s
  5015. }
  5016. // SetHostedZoneId sets the HostedZoneId field's value.
  5017. func (s *DBCluster) SetHostedZoneId(v string) *DBCluster {
  5018. s.HostedZoneId = &v
  5019. return s
  5020. }
  5021. // SetKmsKeyId sets the KmsKeyId field's value.
  5022. func (s *DBCluster) SetKmsKeyId(v string) *DBCluster {
  5023. s.KmsKeyId = &v
  5024. return s
  5025. }
  5026. // SetLatestRestorableTime sets the LatestRestorableTime field's value.
  5027. func (s *DBCluster) SetLatestRestorableTime(v time.Time) *DBCluster {
  5028. s.LatestRestorableTime = &v
  5029. return s
  5030. }
  5031. // SetMasterUsername sets the MasterUsername field's value.
  5032. func (s *DBCluster) SetMasterUsername(v string) *DBCluster {
  5033. s.MasterUsername = &v
  5034. return s
  5035. }
  5036. // SetMultiAZ sets the MultiAZ field's value.
  5037. func (s *DBCluster) SetMultiAZ(v bool) *DBCluster {
  5038. s.MultiAZ = &v
  5039. return s
  5040. }
  5041. // SetPercentProgress sets the PercentProgress field's value.
  5042. func (s *DBCluster) SetPercentProgress(v string) *DBCluster {
  5043. s.PercentProgress = &v
  5044. return s
  5045. }
  5046. // SetPort sets the Port field's value.
  5047. func (s *DBCluster) SetPort(v int64) *DBCluster {
  5048. s.Port = &v
  5049. return s
  5050. }
  5051. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  5052. func (s *DBCluster) SetPreferredBackupWindow(v string) *DBCluster {
  5053. s.PreferredBackupWindow = &v
  5054. return s
  5055. }
  5056. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  5057. func (s *DBCluster) SetPreferredMaintenanceWindow(v string) *DBCluster {
  5058. s.PreferredMaintenanceWindow = &v
  5059. return s
  5060. }
  5061. // SetReaderEndpoint sets the ReaderEndpoint field's value.
  5062. func (s *DBCluster) SetReaderEndpoint(v string) *DBCluster {
  5063. s.ReaderEndpoint = &v
  5064. return s
  5065. }
  5066. // SetStatus sets the Status field's value.
  5067. func (s *DBCluster) SetStatus(v string) *DBCluster {
  5068. s.Status = &v
  5069. return s
  5070. }
  5071. // SetStorageEncrypted sets the StorageEncrypted field's value.
  5072. func (s *DBCluster) SetStorageEncrypted(v bool) *DBCluster {
  5073. s.StorageEncrypted = &v
  5074. return s
  5075. }
  5076. // SetVpcSecurityGroups sets the VpcSecurityGroups field's value.
  5077. func (s *DBCluster) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *DBCluster {
  5078. s.VpcSecurityGroups = v
  5079. return s
  5080. }
  5081. // Contains information about an instance that is part of a DB cluster.
  5082. type DBClusterMember struct {
  5083. _ struct{} `type:"structure"`
  5084. // Specifies the status of the DB cluster parameter group for this member of
  5085. // the DB cluster.
  5086. DBClusterParameterGroupStatus *string `type:"string"`
  5087. // Specifies the instance identifier for this member of the DB cluster.
  5088. DBInstanceIdentifier *string `type:"string"`
  5089. // A value that is true if the cluster member is the primary instance for the
  5090. // DB cluster and false otherwise.
  5091. IsClusterWriter *bool `type:"boolean"`
  5092. // A value that specifies the order in which an Amazon DocumentDB replica is
  5093. // promoted to the primary instance after a failure of the existing primary
  5094. // instance.
  5095. PromotionTier *int64 `type:"integer"`
  5096. }
  5097. // String returns the string representation
  5098. func (s DBClusterMember) String() string {
  5099. return awsutil.Prettify(s)
  5100. }
  5101. // GoString returns the string representation
  5102. func (s DBClusterMember) GoString() string {
  5103. return s.String()
  5104. }
  5105. // SetDBClusterParameterGroupStatus sets the DBClusterParameterGroupStatus field's value.
  5106. func (s *DBClusterMember) SetDBClusterParameterGroupStatus(v string) *DBClusterMember {
  5107. s.DBClusterParameterGroupStatus = &v
  5108. return s
  5109. }
  5110. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  5111. func (s *DBClusterMember) SetDBInstanceIdentifier(v string) *DBClusterMember {
  5112. s.DBInstanceIdentifier = &v
  5113. return s
  5114. }
  5115. // SetIsClusterWriter sets the IsClusterWriter field's value.
  5116. func (s *DBClusterMember) SetIsClusterWriter(v bool) *DBClusterMember {
  5117. s.IsClusterWriter = &v
  5118. return s
  5119. }
  5120. // SetPromotionTier sets the PromotionTier field's value.
  5121. func (s *DBClusterMember) SetPromotionTier(v int64) *DBClusterMember {
  5122. s.PromotionTier = &v
  5123. return s
  5124. }
  5125. // Detailed information about a DB cluster parameter group.
  5126. type DBClusterParameterGroup struct {
  5127. _ struct{} `type:"structure"`
  5128. // The Amazon Resource Name (ARN) for the DB cluster parameter group.
  5129. DBClusterParameterGroupArn *string `type:"string"`
  5130. // Provides the name of the DB cluster parameter group.
  5131. DBClusterParameterGroupName *string `type:"string"`
  5132. // Provides the name of the DB parameter group family that this DB cluster parameter
  5133. // group is compatible with.
  5134. DBParameterGroupFamily *string `type:"string"`
  5135. // Provides the customer-specified description for this DB cluster parameter
  5136. // group.
  5137. Description *string `type:"string"`
  5138. }
  5139. // String returns the string representation
  5140. func (s DBClusterParameterGroup) String() string {
  5141. return awsutil.Prettify(s)
  5142. }
  5143. // GoString returns the string representation
  5144. func (s DBClusterParameterGroup) GoString() string {
  5145. return s.String()
  5146. }
  5147. // SetDBClusterParameterGroupArn sets the DBClusterParameterGroupArn field's value.
  5148. func (s *DBClusterParameterGroup) SetDBClusterParameterGroupArn(v string) *DBClusterParameterGroup {
  5149. s.DBClusterParameterGroupArn = &v
  5150. return s
  5151. }
  5152. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  5153. func (s *DBClusterParameterGroup) SetDBClusterParameterGroupName(v string) *DBClusterParameterGroup {
  5154. s.DBClusterParameterGroupName = &v
  5155. return s
  5156. }
  5157. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  5158. func (s *DBClusterParameterGroup) SetDBParameterGroupFamily(v string) *DBClusterParameterGroup {
  5159. s.DBParameterGroupFamily = &v
  5160. return s
  5161. }
  5162. // SetDescription sets the Description field's value.
  5163. func (s *DBClusterParameterGroup) SetDescription(v string) *DBClusterParameterGroup {
  5164. s.Description = &v
  5165. return s
  5166. }
  5167. // Describes an AWS Identity and Access Management (IAM) role that is associated
  5168. // with a DB cluster.
  5169. type DBClusterRole struct {
  5170. _ struct{} `type:"structure"`
  5171. // The Amazon Resource Name (ARN) of the IAM role that is associated with the
  5172. // DB cluster.
  5173. RoleArn *string `type:"string"`
  5174. // Describes the state of association between the IAM role and the DB cluster.
  5175. // The Status property returns one of the following values:
  5176. //
  5177. // * ACTIVE - The IAM role ARN is associated with the DB cluster and can
  5178. // be used to access other AWS services on your behalf.
  5179. //
  5180. // * PENDING - The IAM role ARN is being associated with the DB cluster.
  5181. //
  5182. // * INVALID - The IAM role ARN is associated with the DB cluster, but the
  5183. // DB cluster cannot assume the IAM role to access other AWS services on
  5184. // your behalf.
  5185. Status *string `type:"string"`
  5186. }
  5187. // String returns the string representation
  5188. func (s DBClusterRole) String() string {
  5189. return awsutil.Prettify(s)
  5190. }
  5191. // GoString returns the string representation
  5192. func (s DBClusterRole) GoString() string {
  5193. return s.String()
  5194. }
  5195. // SetRoleArn sets the RoleArn field's value.
  5196. func (s *DBClusterRole) SetRoleArn(v string) *DBClusterRole {
  5197. s.RoleArn = &v
  5198. return s
  5199. }
  5200. // SetStatus sets the Status field's value.
  5201. func (s *DBClusterRole) SetStatus(v string) *DBClusterRole {
  5202. s.Status = &v
  5203. return s
  5204. }
  5205. // Detailed information about a DB cluster snapshot.
  5206. type DBClusterSnapshot struct {
  5207. _ struct{} `type:"structure"`
  5208. // Provides the list of Amazon EC2 Availability Zones that instances in the
  5209. // DB cluster snapshot can be restored in.
  5210. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  5211. // Specifies the time when the DB cluster was created, in Universal Coordinated
  5212. // Time (UTC).
  5213. ClusterCreateTime *time.Time `type:"timestamp"`
  5214. // Specifies the DB cluster identifier of the DB cluster that this DB cluster
  5215. // snapshot was created from.
  5216. DBClusterIdentifier *string `type:"string"`
  5217. // The Amazon Resource Name (ARN) for the DB cluster snapshot.
  5218. DBClusterSnapshotArn *string `type:"string"`
  5219. // Specifies the identifier for the DB cluster snapshot.
  5220. DBClusterSnapshotIdentifier *string `type:"string"`
  5221. // Specifies the name of the database engine.
  5222. Engine *string `type:"string"`
  5223. // Provides the version of the database engine for this DB cluster snapshot.
  5224. EngineVersion *string `type:"string"`
  5225. // If StorageEncrypted is true, the AWS KMS key identifier for the encrypted
  5226. // DB cluster snapshot.
  5227. KmsKeyId *string `type:"string"`
  5228. // Provides the master user name for the DB cluster snapshot.
  5229. MasterUsername *string `type:"string"`
  5230. // Specifies the percentage of the estimated data that has been transferred.
  5231. PercentProgress *int64 `type:"integer"`
  5232. // Specifies the port that the DB cluster was listening on at the time of the
  5233. // snapshot.
  5234. Port *int64 `type:"integer"`
  5235. // Provides the time when the snapshot was taken, in UTC.
  5236. SnapshotCreateTime *time.Time `type:"timestamp"`
  5237. // Provides the type of the DB cluster snapshot.
  5238. SnapshotType *string `type:"string"`
  5239. // If the DB cluster snapshot was copied from a source DB cluster snapshot,
  5240. // the ARN for the source DB cluster snapshot; otherwise, a null value.
  5241. SourceDBClusterSnapshotArn *string `type:"string"`
  5242. // Specifies the status of this DB cluster snapshot.
  5243. Status *string `type:"string"`
  5244. // Specifies whether the DB cluster snapshot is encrypted.
  5245. StorageEncrypted *bool `type:"boolean"`
  5246. // Provides the virtual private cloud (VPC) ID that is associated with the DB
  5247. // cluster snapshot.
  5248. VpcId *string `type:"string"`
  5249. }
  5250. // String returns the string representation
  5251. func (s DBClusterSnapshot) String() string {
  5252. return awsutil.Prettify(s)
  5253. }
  5254. // GoString returns the string representation
  5255. func (s DBClusterSnapshot) GoString() string {
  5256. return s.String()
  5257. }
  5258. // SetAvailabilityZones sets the AvailabilityZones field's value.
  5259. func (s *DBClusterSnapshot) SetAvailabilityZones(v []*string) *DBClusterSnapshot {
  5260. s.AvailabilityZones = v
  5261. return s
  5262. }
  5263. // SetClusterCreateTime sets the ClusterCreateTime field's value.
  5264. func (s *DBClusterSnapshot) SetClusterCreateTime(v time.Time) *DBClusterSnapshot {
  5265. s.ClusterCreateTime = &v
  5266. return s
  5267. }
  5268. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  5269. func (s *DBClusterSnapshot) SetDBClusterIdentifier(v string) *DBClusterSnapshot {
  5270. s.DBClusterIdentifier = &v
  5271. return s
  5272. }
  5273. // SetDBClusterSnapshotArn sets the DBClusterSnapshotArn field's value.
  5274. func (s *DBClusterSnapshot) SetDBClusterSnapshotArn(v string) *DBClusterSnapshot {
  5275. s.DBClusterSnapshotArn = &v
  5276. return s
  5277. }
  5278. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  5279. func (s *DBClusterSnapshot) SetDBClusterSnapshotIdentifier(v string) *DBClusterSnapshot {
  5280. s.DBClusterSnapshotIdentifier = &v
  5281. return s
  5282. }
  5283. // SetEngine sets the Engine field's value.
  5284. func (s *DBClusterSnapshot) SetEngine(v string) *DBClusterSnapshot {
  5285. s.Engine = &v
  5286. return s
  5287. }
  5288. // SetEngineVersion sets the EngineVersion field's value.
  5289. func (s *DBClusterSnapshot) SetEngineVersion(v string) *DBClusterSnapshot {
  5290. s.EngineVersion = &v
  5291. return s
  5292. }
  5293. // SetKmsKeyId sets the KmsKeyId field's value.
  5294. func (s *DBClusterSnapshot) SetKmsKeyId(v string) *DBClusterSnapshot {
  5295. s.KmsKeyId = &v
  5296. return s
  5297. }
  5298. // SetMasterUsername sets the MasterUsername field's value.
  5299. func (s *DBClusterSnapshot) SetMasterUsername(v string) *DBClusterSnapshot {
  5300. s.MasterUsername = &v
  5301. return s
  5302. }
  5303. // SetPercentProgress sets the PercentProgress field's value.
  5304. func (s *DBClusterSnapshot) SetPercentProgress(v int64) *DBClusterSnapshot {
  5305. s.PercentProgress = &v
  5306. return s
  5307. }
  5308. // SetPort sets the Port field's value.
  5309. func (s *DBClusterSnapshot) SetPort(v int64) *DBClusterSnapshot {
  5310. s.Port = &v
  5311. return s
  5312. }
  5313. // SetSnapshotCreateTime sets the SnapshotCreateTime field's value.
  5314. func (s *DBClusterSnapshot) SetSnapshotCreateTime(v time.Time) *DBClusterSnapshot {
  5315. s.SnapshotCreateTime = &v
  5316. return s
  5317. }
  5318. // SetSnapshotType sets the SnapshotType field's value.
  5319. func (s *DBClusterSnapshot) SetSnapshotType(v string) *DBClusterSnapshot {
  5320. s.SnapshotType = &v
  5321. return s
  5322. }
  5323. // SetSourceDBClusterSnapshotArn sets the SourceDBClusterSnapshotArn field's value.
  5324. func (s *DBClusterSnapshot) SetSourceDBClusterSnapshotArn(v string) *DBClusterSnapshot {
  5325. s.SourceDBClusterSnapshotArn = &v
  5326. return s
  5327. }
  5328. // SetStatus sets the Status field's value.
  5329. func (s *DBClusterSnapshot) SetStatus(v string) *DBClusterSnapshot {
  5330. s.Status = &v
  5331. return s
  5332. }
  5333. // SetStorageEncrypted sets the StorageEncrypted field's value.
  5334. func (s *DBClusterSnapshot) SetStorageEncrypted(v bool) *DBClusterSnapshot {
  5335. s.StorageEncrypted = &v
  5336. return s
  5337. }
  5338. // SetVpcId sets the VpcId field's value.
  5339. func (s *DBClusterSnapshot) SetVpcId(v string) *DBClusterSnapshot {
  5340. s.VpcId = &v
  5341. return s
  5342. }
  5343. // Contains the name and values of a manual DB cluster snapshot attribute.
  5344. //
  5345. // Manual DB cluster snapshot attributes are used to authorize other AWS accounts
  5346. // to restore a manual DB cluster snapshot.
  5347. type DBClusterSnapshotAttribute struct {
  5348. _ struct{} `type:"structure"`
  5349. // The name of the manual DB cluster snapshot attribute.
  5350. //
  5351. // The attribute named restore refers to the list of AWS accounts that have
  5352. // permission to copy or restore the manual DB cluster snapshot.
  5353. AttributeName *string `type:"string"`
  5354. // The values for the manual DB cluster snapshot attribute.
  5355. //
  5356. // If the AttributeName field is set to restore, then this element returns a
  5357. // list of IDs of the AWS accounts that are authorized to copy or restore the
  5358. // manual DB cluster snapshot. If a value of all is in the list, then the manual
  5359. // DB cluster snapshot is public and available for any AWS account to copy or
  5360. // restore.
  5361. AttributeValues []*string `locationNameList:"AttributeValue" type:"list"`
  5362. }
  5363. // String returns the string representation
  5364. func (s DBClusterSnapshotAttribute) String() string {
  5365. return awsutil.Prettify(s)
  5366. }
  5367. // GoString returns the string representation
  5368. func (s DBClusterSnapshotAttribute) GoString() string {
  5369. return s.String()
  5370. }
  5371. // SetAttributeName sets the AttributeName field's value.
  5372. func (s *DBClusterSnapshotAttribute) SetAttributeName(v string) *DBClusterSnapshotAttribute {
  5373. s.AttributeName = &v
  5374. return s
  5375. }
  5376. // SetAttributeValues sets the AttributeValues field's value.
  5377. func (s *DBClusterSnapshotAttribute) SetAttributeValues(v []*string) *DBClusterSnapshotAttribute {
  5378. s.AttributeValues = v
  5379. return s
  5380. }
  5381. // Detailed information about the attributes that are associated with a DB cluster
  5382. // snapshot.
  5383. type DBClusterSnapshotAttributesResult struct {
  5384. _ struct{} `type:"structure"`
  5385. // The list of attributes and values for the DB cluster snapshot.
  5386. DBClusterSnapshotAttributes []*DBClusterSnapshotAttribute `locationNameList:"DBClusterSnapshotAttribute" type:"list"`
  5387. // The identifier of the DB cluster snapshot that the attributes apply to.
  5388. DBClusterSnapshotIdentifier *string `type:"string"`
  5389. }
  5390. // String returns the string representation
  5391. func (s DBClusterSnapshotAttributesResult) String() string {
  5392. return awsutil.Prettify(s)
  5393. }
  5394. // GoString returns the string representation
  5395. func (s DBClusterSnapshotAttributesResult) GoString() string {
  5396. return s.String()
  5397. }
  5398. // SetDBClusterSnapshotAttributes sets the DBClusterSnapshotAttributes field's value.
  5399. func (s *DBClusterSnapshotAttributesResult) SetDBClusterSnapshotAttributes(v []*DBClusterSnapshotAttribute) *DBClusterSnapshotAttributesResult {
  5400. s.DBClusterSnapshotAttributes = v
  5401. return s
  5402. }
  5403. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  5404. func (s *DBClusterSnapshotAttributesResult) SetDBClusterSnapshotIdentifier(v string) *DBClusterSnapshotAttributesResult {
  5405. s.DBClusterSnapshotIdentifier = &v
  5406. return s
  5407. }
  5408. // Detailed information about a DB engine version.
  5409. type DBEngineVersion struct {
  5410. _ struct{} `type:"structure"`
  5411. // The description of the database engine.
  5412. DBEngineDescription *string `type:"string"`
  5413. // The description of the database engine version.
  5414. DBEngineVersionDescription *string `type:"string"`
  5415. // The name of the DB parameter group family for the database engine.
  5416. DBParameterGroupFamily *string `type:"string"`
  5417. // The name of the database engine.
  5418. Engine *string `type:"string"`
  5419. // The version number of the database engine.
  5420. EngineVersion *string `type:"string"`
  5421. // The types of logs that the database engine has available for export to Amazon
  5422. // CloudWatch Logs.
  5423. ExportableLogTypes []*string `type:"list"`
  5424. // A value that indicates whether the engine version supports exporting the
  5425. // log types specified by ExportableLogTypes to CloudWatch Logs.
  5426. SupportsLogExportsToCloudwatchLogs *bool `type:"boolean"`
  5427. // A list of engine versions that this database engine version can be upgraded
  5428. // to.
  5429. ValidUpgradeTarget []*UpgradeTarget `locationNameList:"UpgradeTarget" type:"list"`
  5430. }
  5431. // String returns the string representation
  5432. func (s DBEngineVersion) String() string {
  5433. return awsutil.Prettify(s)
  5434. }
  5435. // GoString returns the string representation
  5436. func (s DBEngineVersion) GoString() string {
  5437. return s.String()
  5438. }
  5439. // SetDBEngineDescription sets the DBEngineDescription field's value.
  5440. func (s *DBEngineVersion) SetDBEngineDescription(v string) *DBEngineVersion {
  5441. s.DBEngineDescription = &v
  5442. return s
  5443. }
  5444. // SetDBEngineVersionDescription sets the DBEngineVersionDescription field's value.
  5445. func (s *DBEngineVersion) SetDBEngineVersionDescription(v string) *DBEngineVersion {
  5446. s.DBEngineVersionDescription = &v
  5447. return s
  5448. }
  5449. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  5450. func (s *DBEngineVersion) SetDBParameterGroupFamily(v string) *DBEngineVersion {
  5451. s.DBParameterGroupFamily = &v
  5452. return s
  5453. }
  5454. // SetEngine sets the Engine field's value.
  5455. func (s *DBEngineVersion) SetEngine(v string) *DBEngineVersion {
  5456. s.Engine = &v
  5457. return s
  5458. }
  5459. // SetEngineVersion sets the EngineVersion field's value.
  5460. func (s *DBEngineVersion) SetEngineVersion(v string) *DBEngineVersion {
  5461. s.EngineVersion = &v
  5462. return s
  5463. }
  5464. // SetExportableLogTypes sets the ExportableLogTypes field's value.
  5465. func (s *DBEngineVersion) SetExportableLogTypes(v []*string) *DBEngineVersion {
  5466. s.ExportableLogTypes = v
  5467. return s
  5468. }
  5469. // SetSupportsLogExportsToCloudwatchLogs sets the SupportsLogExportsToCloudwatchLogs field's value.
  5470. func (s *DBEngineVersion) SetSupportsLogExportsToCloudwatchLogs(v bool) *DBEngineVersion {
  5471. s.SupportsLogExportsToCloudwatchLogs = &v
  5472. return s
  5473. }
  5474. // SetValidUpgradeTarget sets the ValidUpgradeTarget field's value.
  5475. func (s *DBEngineVersion) SetValidUpgradeTarget(v []*UpgradeTarget) *DBEngineVersion {
  5476. s.ValidUpgradeTarget = v
  5477. return s
  5478. }
  5479. // Detailed information about a DB instance.
  5480. type DBInstance struct {
  5481. _ struct{} `type:"structure"`
  5482. // Indicates that minor version patches are applied automatically.
  5483. AutoMinorVersionUpgrade *bool `type:"boolean"`
  5484. // Specifies the name of the Availability Zone that the DB instance is located
  5485. // in.
  5486. AvailabilityZone *string `type:"string"`
  5487. // Specifies the number of days for which automatic DB snapshots are retained.
  5488. BackupRetentionPeriod *int64 `type:"integer"`
  5489. // Contains the name of the DB cluster that the DB instance is a member of if
  5490. // the DB instance is a member of a DB cluster.
  5491. DBClusterIdentifier *string `type:"string"`
  5492. // The Amazon Resource Name (ARN) for the DB instance.
  5493. DBInstanceArn *string `type:"string"`
  5494. // Contains the name of the compute and memory capacity class of the DB instance.
  5495. DBInstanceClass *string `type:"string"`
  5496. // Contains a user-provided database identifier. This identifier is the unique
  5497. // key that identifies a DB instance.
  5498. DBInstanceIdentifier *string `type:"string"`
  5499. // Specifies the current state of this database.
  5500. DBInstanceStatus *string `type:"string"`
  5501. // Specifies information on the subnet group that is associated with the DB
  5502. // instance, including the name, description, and subnets in the subnet group.
  5503. DBSubnetGroup *DBSubnetGroup `type:"structure"`
  5504. // The AWS Region-unique, immutable identifier for the DB instance. This identifier
  5505. // is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB
  5506. // instance is accessed.
  5507. DbiResourceId *string `type:"string"`
  5508. // A list of log types that this DB instance is configured to export to Amazon
  5509. // CloudWatch Logs.
  5510. EnabledCloudwatchLogsExports []*string `type:"list"`
  5511. // Specifies the connection endpoint.
  5512. Endpoint *Endpoint `type:"structure"`
  5513. // Provides the name of the database engine to be used for this DB instance.
  5514. Engine *string `type:"string"`
  5515. // Indicates the database engine version.
  5516. EngineVersion *string `type:"string"`
  5517. // Provides the date and time that the DB instance was created.
  5518. InstanceCreateTime *time.Time `type:"timestamp"`
  5519. // If StorageEncrypted is true, the AWS KMS key identifier for the encrypted
  5520. // DB instance.
  5521. KmsKeyId *string `type:"string"`
  5522. // Specifies the latest time to which a database can be restored with point-in-time
  5523. // restore.
  5524. LatestRestorableTime *time.Time `type:"timestamp"`
  5525. // Specifies that changes to the DB instance are pending. This element is included
  5526. // only when changes are pending. Specific changes are identified by subelements.
  5527. PendingModifiedValues *PendingModifiedValues `type:"structure"`
  5528. // Specifies the daily time range during which automated backups are created
  5529. // if automated backups are enabled, as determined by the BackupRetentionPeriod.
  5530. PreferredBackupWindow *string `type:"string"`
  5531. // Specifies the weekly time range during which system maintenance can occur,
  5532. // in Universal Coordinated Time (UTC).
  5533. PreferredMaintenanceWindow *string `type:"string"`
  5534. // A value that specifies the order in which an Amazon DocumentDB replica is
  5535. // promoted to the primary instance after a failure of the existing primary
  5536. // instance.
  5537. PromotionTier *int64 `type:"integer"`
  5538. // Specifies the availability options for the DB instance. A value of true specifies
  5539. // an internet-facing instance with a publicly resolvable DNS name, which resolves
  5540. // to a public IP address. A value of false specifies an internal instance with
  5541. // a DNS name that resolves to a private IP address.
  5542. PubliclyAccessible *bool `type:"boolean"`
  5543. // The status of a read replica. If the instance is not a read replica, this
  5544. // is blank.
  5545. StatusInfos []*DBInstanceStatusInfo `locationNameList:"DBInstanceStatusInfo" type:"list"`
  5546. // Specifies whether the DB instance is encrypted.
  5547. StorageEncrypted *bool `type:"boolean"`
  5548. // Provides a list of VPC security group elements that the DB instance belongs
  5549. // to.
  5550. VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroupMembership" type:"list"`
  5551. }
  5552. // String returns the string representation
  5553. func (s DBInstance) String() string {
  5554. return awsutil.Prettify(s)
  5555. }
  5556. // GoString returns the string representation
  5557. func (s DBInstance) GoString() string {
  5558. return s.String()
  5559. }
  5560. // SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
  5561. func (s *DBInstance) SetAutoMinorVersionUpgrade(v bool) *DBInstance {
  5562. s.AutoMinorVersionUpgrade = &v
  5563. return s
  5564. }
  5565. // SetAvailabilityZone sets the AvailabilityZone field's value.
  5566. func (s *DBInstance) SetAvailabilityZone(v string) *DBInstance {
  5567. s.AvailabilityZone = &v
  5568. return s
  5569. }
  5570. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  5571. func (s *DBInstance) SetBackupRetentionPeriod(v int64) *DBInstance {
  5572. s.BackupRetentionPeriod = &v
  5573. return s
  5574. }
  5575. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  5576. func (s *DBInstance) SetDBClusterIdentifier(v string) *DBInstance {
  5577. s.DBClusterIdentifier = &v
  5578. return s
  5579. }
  5580. // SetDBInstanceArn sets the DBInstanceArn field's value.
  5581. func (s *DBInstance) SetDBInstanceArn(v string) *DBInstance {
  5582. s.DBInstanceArn = &v
  5583. return s
  5584. }
  5585. // SetDBInstanceClass sets the DBInstanceClass field's value.
  5586. func (s *DBInstance) SetDBInstanceClass(v string) *DBInstance {
  5587. s.DBInstanceClass = &v
  5588. return s
  5589. }
  5590. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  5591. func (s *DBInstance) SetDBInstanceIdentifier(v string) *DBInstance {
  5592. s.DBInstanceIdentifier = &v
  5593. return s
  5594. }
  5595. // SetDBInstanceStatus sets the DBInstanceStatus field's value.
  5596. func (s *DBInstance) SetDBInstanceStatus(v string) *DBInstance {
  5597. s.DBInstanceStatus = &v
  5598. return s
  5599. }
  5600. // SetDBSubnetGroup sets the DBSubnetGroup field's value.
  5601. func (s *DBInstance) SetDBSubnetGroup(v *DBSubnetGroup) *DBInstance {
  5602. s.DBSubnetGroup = v
  5603. return s
  5604. }
  5605. // SetDbiResourceId sets the DbiResourceId field's value.
  5606. func (s *DBInstance) SetDbiResourceId(v string) *DBInstance {
  5607. s.DbiResourceId = &v
  5608. return s
  5609. }
  5610. // SetEnabledCloudwatchLogsExports sets the EnabledCloudwatchLogsExports field's value.
  5611. func (s *DBInstance) SetEnabledCloudwatchLogsExports(v []*string) *DBInstance {
  5612. s.EnabledCloudwatchLogsExports = v
  5613. return s
  5614. }
  5615. // SetEndpoint sets the Endpoint field's value.
  5616. func (s *DBInstance) SetEndpoint(v *Endpoint) *DBInstance {
  5617. s.Endpoint = v
  5618. return s
  5619. }
  5620. // SetEngine sets the Engine field's value.
  5621. func (s *DBInstance) SetEngine(v string) *DBInstance {
  5622. s.Engine = &v
  5623. return s
  5624. }
  5625. // SetEngineVersion sets the EngineVersion field's value.
  5626. func (s *DBInstance) SetEngineVersion(v string) *DBInstance {
  5627. s.EngineVersion = &v
  5628. return s
  5629. }
  5630. // SetInstanceCreateTime sets the InstanceCreateTime field's value.
  5631. func (s *DBInstance) SetInstanceCreateTime(v time.Time) *DBInstance {
  5632. s.InstanceCreateTime = &v
  5633. return s
  5634. }
  5635. // SetKmsKeyId sets the KmsKeyId field's value.
  5636. func (s *DBInstance) SetKmsKeyId(v string) *DBInstance {
  5637. s.KmsKeyId = &v
  5638. return s
  5639. }
  5640. // SetLatestRestorableTime sets the LatestRestorableTime field's value.
  5641. func (s *DBInstance) SetLatestRestorableTime(v time.Time) *DBInstance {
  5642. s.LatestRestorableTime = &v
  5643. return s
  5644. }
  5645. // SetPendingModifiedValues sets the PendingModifiedValues field's value.
  5646. func (s *DBInstance) SetPendingModifiedValues(v *PendingModifiedValues) *DBInstance {
  5647. s.PendingModifiedValues = v
  5648. return s
  5649. }
  5650. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  5651. func (s *DBInstance) SetPreferredBackupWindow(v string) *DBInstance {
  5652. s.PreferredBackupWindow = &v
  5653. return s
  5654. }
  5655. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  5656. func (s *DBInstance) SetPreferredMaintenanceWindow(v string) *DBInstance {
  5657. s.PreferredMaintenanceWindow = &v
  5658. return s
  5659. }
  5660. // SetPromotionTier sets the PromotionTier field's value.
  5661. func (s *DBInstance) SetPromotionTier(v int64) *DBInstance {
  5662. s.PromotionTier = &v
  5663. return s
  5664. }
  5665. // SetPubliclyAccessible sets the PubliclyAccessible field's value.
  5666. func (s *DBInstance) SetPubliclyAccessible(v bool) *DBInstance {
  5667. s.PubliclyAccessible = &v
  5668. return s
  5669. }
  5670. // SetStatusInfos sets the StatusInfos field's value.
  5671. func (s *DBInstance) SetStatusInfos(v []*DBInstanceStatusInfo) *DBInstance {
  5672. s.StatusInfos = v
  5673. return s
  5674. }
  5675. // SetStorageEncrypted sets the StorageEncrypted field's value.
  5676. func (s *DBInstance) SetStorageEncrypted(v bool) *DBInstance {
  5677. s.StorageEncrypted = &v
  5678. return s
  5679. }
  5680. // SetVpcSecurityGroups sets the VpcSecurityGroups field's value.
  5681. func (s *DBInstance) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *DBInstance {
  5682. s.VpcSecurityGroups = v
  5683. return s
  5684. }
  5685. // Provides a list of status information for a DB instance.
  5686. type DBInstanceStatusInfo struct {
  5687. _ struct{} `type:"structure"`
  5688. // Details of the error if there is an error for the instance. If the instance
  5689. // is not in an error state, this value is blank.
  5690. Message *string `type:"string"`
  5691. // A Boolean value that is true if the instance is operating normally, or false
  5692. // if the instance is in an error state.
  5693. Normal *bool `type:"boolean"`
  5694. // Status of the DB instance. For a StatusType of read replica, the values can
  5695. // be replicating, error, stopped, or terminated.
  5696. Status *string `type:"string"`
  5697. // This value is currently "read replication."
  5698. StatusType *string `type:"string"`
  5699. }
  5700. // String returns the string representation
  5701. func (s DBInstanceStatusInfo) String() string {
  5702. return awsutil.Prettify(s)
  5703. }
  5704. // GoString returns the string representation
  5705. func (s DBInstanceStatusInfo) GoString() string {
  5706. return s.String()
  5707. }
  5708. // SetMessage sets the Message field's value.
  5709. func (s *DBInstanceStatusInfo) SetMessage(v string) *DBInstanceStatusInfo {
  5710. s.Message = &v
  5711. return s
  5712. }
  5713. // SetNormal sets the Normal field's value.
  5714. func (s *DBInstanceStatusInfo) SetNormal(v bool) *DBInstanceStatusInfo {
  5715. s.Normal = &v
  5716. return s
  5717. }
  5718. // SetStatus sets the Status field's value.
  5719. func (s *DBInstanceStatusInfo) SetStatus(v string) *DBInstanceStatusInfo {
  5720. s.Status = &v
  5721. return s
  5722. }
  5723. // SetStatusType sets the StatusType field's value.
  5724. func (s *DBInstanceStatusInfo) SetStatusType(v string) *DBInstanceStatusInfo {
  5725. s.StatusType = &v
  5726. return s
  5727. }
  5728. // Detailed information about a DB subnet group.
  5729. type DBSubnetGroup struct {
  5730. _ struct{} `type:"structure"`
  5731. // The Amazon Resource Identifier (ARN) for the DB subnet group.
  5732. DBSubnetGroupArn *string `type:"string"`
  5733. // Provides the description of the DB subnet group.
  5734. DBSubnetGroupDescription *string `type:"string"`
  5735. // The name of the DB subnet group.
  5736. DBSubnetGroupName *string `type:"string"`
  5737. // Provides the status of the DB subnet group.
  5738. SubnetGroupStatus *string `type:"string"`
  5739. // Detailed information about one or more subnets within a DB subnet group.
  5740. Subnets []*Subnet `locationNameList:"Subnet" type:"list"`
  5741. // Provides the virtual private cloud (VPC) ID of the DB subnet group.
  5742. VpcId *string `type:"string"`
  5743. }
  5744. // String returns the string representation
  5745. func (s DBSubnetGroup) String() string {
  5746. return awsutil.Prettify(s)
  5747. }
  5748. // GoString returns the string representation
  5749. func (s DBSubnetGroup) GoString() string {
  5750. return s.String()
  5751. }
  5752. // SetDBSubnetGroupArn sets the DBSubnetGroupArn field's value.
  5753. func (s *DBSubnetGroup) SetDBSubnetGroupArn(v string) *DBSubnetGroup {
  5754. s.DBSubnetGroupArn = &v
  5755. return s
  5756. }
  5757. // SetDBSubnetGroupDescription sets the DBSubnetGroupDescription field's value.
  5758. func (s *DBSubnetGroup) SetDBSubnetGroupDescription(v string) *DBSubnetGroup {
  5759. s.DBSubnetGroupDescription = &v
  5760. return s
  5761. }
  5762. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  5763. func (s *DBSubnetGroup) SetDBSubnetGroupName(v string) *DBSubnetGroup {
  5764. s.DBSubnetGroupName = &v
  5765. return s
  5766. }
  5767. // SetSubnetGroupStatus sets the SubnetGroupStatus field's value.
  5768. func (s *DBSubnetGroup) SetSubnetGroupStatus(v string) *DBSubnetGroup {
  5769. s.SubnetGroupStatus = &v
  5770. return s
  5771. }
  5772. // SetSubnets sets the Subnets field's value.
  5773. func (s *DBSubnetGroup) SetSubnets(v []*Subnet) *DBSubnetGroup {
  5774. s.Subnets = v
  5775. return s
  5776. }
  5777. // SetVpcId sets the VpcId field's value.
  5778. func (s *DBSubnetGroup) SetVpcId(v string) *DBSubnetGroup {
  5779. s.VpcId = &v
  5780. return s
  5781. }
  5782. // Represents the input to DeleteDBCluster.
  5783. type DeleteDBClusterInput struct {
  5784. _ struct{} `type:"structure"`
  5785. // The DB cluster identifier for the DB cluster to be deleted. This parameter
  5786. // isn't case sensitive.
  5787. //
  5788. // Constraints:
  5789. //
  5790. // * Must match an existing DBClusterIdentifier.
  5791. //
  5792. // DBClusterIdentifier is a required field
  5793. DBClusterIdentifier *string `type:"string" required:"true"`
  5794. // The DB cluster snapshot identifier of the new DB cluster snapshot created
  5795. // when SkipFinalSnapshot is set to false.
  5796. //
  5797. // Specifying this parameter and also setting the SkipFinalShapshot parameter
  5798. // to true results in an error.
  5799. //
  5800. // Constraints:
  5801. //
  5802. // * Must be from 1 to 255 letters, numbers, or hyphens.
  5803. //
  5804. // * The first character must be a letter.
  5805. //
  5806. // * Cannot end with a hyphen or contain two consecutive hyphens.
  5807. FinalDBSnapshotIdentifier *string `type:"string"`
  5808. // Determines whether a final DB cluster snapshot is created before the DB cluster
  5809. // is deleted. If true is specified, no DB cluster snapshot is created. If false
  5810. // is specified, a DB cluster snapshot is created before the DB cluster is deleted.
  5811. //
  5812. // If SkipFinalSnapshot is false, you must specify a FinalDBSnapshotIdentifier
  5813. // parameter.
  5814. //
  5815. // Default: false
  5816. SkipFinalSnapshot *bool `type:"boolean"`
  5817. }
  5818. // String returns the string representation
  5819. func (s DeleteDBClusterInput) String() string {
  5820. return awsutil.Prettify(s)
  5821. }
  5822. // GoString returns the string representation
  5823. func (s DeleteDBClusterInput) GoString() string {
  5824. return s.String()
  5825. }
  5826. // Validate inspects the fields of the type to determine if they are valid.
  5827. func (s *DeleteDBClusterInput) Validate() error {
  5828. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterInput"}
  5829. if s.DBClusterIdentifier == nil {
  5830. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  5831. }
  5832. if invalidParams.Len() > 0 {
  5833. return invalidParams
  5834. }
  5835. return nil
  5836. }
  5837. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  5838. func (s *DeleteDBClusterInput) SetDBClusterIdentifier(v string) *DeleteDBClusterInput {
  5839. s.DBClusterIdentifier = &v
  5840. return s
  5841. }
  5842. // SetFinalDBSnapshotIdentifier sets the FinalDBSnapshotIdentifier field's value.
  5843. func (s *DeleteDBClusterInput) SetFinalDBSnapshotIdentifier(v string) *DeleteDBClusterInput {
  5844. s.FinalDBSnapshotIdentifier = &v
  5845. return s
  5846. }
  5847. // SetSkipFinalSnapshot sets the SkipFinalSnapshot field's value.
  5848. func (s *DeleteDBClusterInput) SetSkipFinalSnapshot(v bool) *DeleteDBClusterInput {
  5849. s.SkipFinalSnapshot = &v
  5850. return s
  5851. }
  5852. type DeleteDBClusterOutput struct {
  5853. _ struct{} `type:"structure"`
  5854. // Detailed information about a DB cluster.
  5855. DBCluster *DBCluster `type:"structure"`
  5856. }
  5857. // String returns the string representation
  5858. func (s DeleteDBClusterOutput) String() string {
  5859. return awsutil.Prettify(s)
  5860. }
  5861. // GoString returns the string representation
  5862. func (s DeleteDBClusterOutput) GoString() string {
  5863. return s.String()
  5864. }
  5865. // SetDBCluster sets the DBCluster field's value.
  5866. func (s *DeleteDBClusterOutput) SetDBCluster(v *DBCluster) *DeleteDBClusterOutput {
  5867. s.DBCluster = v
  5868. return s
  5869. }
  5870. // Represents the input to DeleteDBClusterParameterGroup.
  5871. type DeleteDBClusterParameterGroupInput struct {
  5872. _ struct{} `type:"structure"`
  5873. // The name of the DB cluster parameter group.
  5874. //
  5875. // Constraints:
  5876. //
  5877. // * Must be the name of an existing DB cluster parameter group.
  5878. //
  5879. // * You can't delete a default DB cluster parameter group.
  5880. //
  5881. // * Cannot be associated with any DB clusters.
  5882. //
  5883. // DBClusterParameterGroupName is a required field
  5884. DBClusterParameterGroupName *string `type:"string" required:"true"`
  5885. }
  5886. // String returns the string representation
  5887. func (s DeleteDBClusterParameterGroupInput) String() string {
  5888. return awsutil.Prettify(s)
  5889. }
  5890. // GoString returns the string representation
  5891. func (s DeleteDBClusterParameterGroupInput) GoString() string {
  5892. return s.String()
  5893. }
  5894. // Validate inspects the fields of the type to determine if they are valid.
  5895. func (s *DeleteDBClusterParameterGroupInput) Validate() error {
  5896. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterParameterGroupInput"}
  5897. if s.DBClusterParameterGroupName == nil {
  5898. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  5899. }
  5900. if invalidParams.Len() > 0 {
  5901. return invalidParams
  5902. }
  5903. return nil
  5904. }
  5905. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  5906. func (s *DeleteDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *DeleteDBClusterParameterGroupInput {
  5907. s.DBClusterParameterGroupName = &v
  5908. return s
  5909. }
  5910. type DeleteDBClusterParameterGroupOutput struct {
  5911. _ struct{} `type:"structure"`
  5912. }
  5913. // String returns the string representation
  5914. func (s DeleteDBClusterParameterGroupOutput) String() string {
  5915. return awsutil.Prettify(s)
  5916. }
  5917. // GoString returns the string representation
  5918. func (s DeleteDBClusterParameterGroupOutput) GoString() string {
  5919. return s.String()
  5920. }
  5921. // Represents the input to DeleteDBClusterSnapshot.
  5922. type DeleteDBClusterSnapshotInput struct {
  5923. _ struct{} `type:"structure"`
  5924. // The identifier of the DB cluster snapshot to delete.
  5925. //
  5926. // Constraints: Must be the name of an existing DB cluster snapshot in the available
  5927. // state.
  5928. //
  5929. // DBClusterSnapshotIdentifier is a required field
  5930. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  5931. }
  5932. // String returns the string representation
  5933. func (s DeleteDBClusterSnapshotInput) String() string {
  5934. return awsutil.Prettify(s)
  5935. }
  5936. // GoString returns the string representation
  5937. func (s DeleteDBClusterSnapshotInput) GoString() string {
  5938. return s.String()
  5939. }
  5940. // Validate inspects the fields of the type to determine if they are valid.
  5941. func (s *DeleteDBClusterSnapshotInput) Validate() error {
  5942. invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterSnapshotInput"}
  5943. if s.DBClusterSnapshotIdentifier == nil {
  5944. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  5945. }
  5946. if invalidParams.Len() > 0 {
  5947. return invalidParams
  5948. }
  5949. return nil
  5950. }
  5951. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  5952. func (s *DeleteDBClusterSnapshotInput) SetDBClusterSnapshotIdentifier(v string) *DeleteDBClusterSnapshotInput {
  5953. s.DBClusterSnapshotIdentifier = &v
  5954. return s
  5955. }
  5956. type DeleteDBClusterSnapshotOutput struct {
  5957. _ struct{} `type:"structure"`
  5958. // Detailed information about a DB cluster snapshot.
  5959. DBClusterSnapshot *DBClusterSnapshot `type:"structure"`
  5960. }
  5961. // String returns the string representation
  5962. func (s DeleteDBClusterSnapshotOutput) String() string {
  5963. return awsutil.Prettify(s)
  5964. }
  5965. // GoString returns the string representation
  5966. func (s DeleteDBClusterSnapshotOutput) GoString() string {
  5967. return s.String()
  5968. }
  5969. // SetDBClusterSnapshot sets the DBClusterSnapshot field's value.
  5970. func (s *DeleteDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapshot) *DeleteDBClusterSnapshotOutput {
  5971. s.DBClusterSnapshot = v
  5972. return s
  5973. }
  5974. // Represents the input to DeleteDBInstance.
  5975. type DeleteDBInstanceInput struct {
  5976. _ struct{} `type:"structure"`
  5977. // The DB instance identifier for the DB instance to be deleted. This parameter
  5978. // isn't case sensitive.
  5979. //
  5980. // Constraints:
  5981. //
  5982. // * Must match the name of an existing DB instance.
  5983. //
  5984. // DBInstanceIdentifier is a required field
  5985. DBInstanceIdentifier *string `type:"string" required:"true"`
  5986. }
  5987. // String returns the string representation
  5988. func (s DeleteDBInstanceInput) String() string {
  5989. return awsutil.Prettify(s)
  5990. }
  5991. // GoString returns the string representation
  5992. func (s DeleteDBInstanceInput) GoString() string {
  5993. return s.String()
  5994. }
  5995. // Validate inspects the fields of the type to determine if they are valid.
  5996. func (s *DeleteDBInstanceInput) Validate() error {
  5997. invalidParams := request.ErrInvalidParams{Context: "DeleteDBInstanceInput"}
  5998. if s.DBInstanceIdentifier == nil {
  5999. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  6000. }
  6001. if invalidParams.Len() > 0 {
  6002. return invalidParams
  6003. }
  6004. return nil
  6005. }
  6006. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  6007. func (s *DeleteDBInstanceInput) SetDBInstanceIdentifier(v string) *DeleteDBInstanceInput {
  6008. s.DBInstanceIdentifier = &v
  6009. return s
  6010. }
  6011. type DeleteDBInstanceOutput struct {
  6012. _ struct{} `type:"structure"`
  6013. // Detailed information about a DB instance.
  6014. DBInstance *DBInstance `type:"structure"`
  6015. }
  6016. // String returns the string representation
  6017. func (s DeleteDBInstanceOutput) String() string {
  6018. return awsutil.Prettify(s)
  6019. }
  6020. // GoString returns the string representation
  6021. func (s DeleteDBInstanceOutput) GoString() string {
  6022. return s.String()
  6023. }
  6024. // SetDBInstance sets the DBInstance field's value.
  6025. func (s *DeleteDBInstanceOutput) SetDBInstance(v *DBInstance) *DeleteDBInstanceOutput {
  6026. s.DBInstance = v
  6027. return s
  6028. }
  6029. // Represents the input to DeleteDBSubnetGroup.
  6030. type DeleteDBSubnetGroupInput struct {
  6031. _ struct{} `type:"structure"`
  6032. // The name of the database subnet group to delete.
  6033. //
  6034. // You can't delete the default subnet group.
  6035. //
  6036. // Constraints:
  6037. //
  6038. // Must match the name of an existing DBSubnetGroup. Must not be default.
  6039. //
  6040. // Example: mySubnetgroup
  6041. //
  6042. // DBSubnetGroupName is a required field
  6043. DBSubnetGroupName *string `type:"string" required:"true"`
  6044. }
  6045. // String returns the string representation
  6046. func (s DeleteDBSubnetGroupInput) String() string {
  6047. return awsutil.Prettify(s)
  6048. }
  6049. // GoString returns the string representation
  6050. func (s DeleteDBSubnetGroupInput) GoString() string {
  6051. return s.String()
  6052. }
  6053. // Validate inspects the fields of the type to determine if they are valid.
  6054. func (s *DeleteDBSubnetGroupInput) Validate() error {
  6055. invalidParams := request.ErrInvalidParams{Context: "DeleteDBSubnetGroupInput"}
  6056. if s.DBSubnetGroupName == nil {
  6057. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName"))
  6058. }
  6059. if invalidParams.Len() > 0 {
  6060. return invalidParams
  6061. }
  6062. return nil
  6063. }
  6064. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  6065. func (s *DeleteDBSubnetGroupInput) SetDBSubnetGroupName(v string) *DeleteDBSubnetGroupInput {
  6066. s.DBSubnetGroupName = &v
  6067. return s
  6068. }
  6069. type DeleteDBSubnetGroupOutput struct {
  6070. _ struct{} `type:"structure"`
  6071. }
  6072. // String returns the string representation
  6073. func (s DeleteDBSubnetGroupOutput) String() string {
  6074. return awsutil.Prettify(s)
  6075. }
  6076. // GoString returns the string representation
  6077. func (s DeleteDBSubnetGroupOutput) GoString() string {
  6078. return s.String()
  6079. }
  6080. // Represents the input to DescribeDBClusterParameterGroups.
  6081. type DescribeDBClusterParameterGroupsInput struct {
  6082. _ struct{} `type:"structure"`
  6083. // The name of a specific DB cluster parameter group to return details for.
  6084. //
  6085. // Constraints:
  6086. //
  6087. // * If provided, must match the name of an existing DBClusterParameterGroup.
  6088. DBClusterParameterGroupName *string `type:"string"`
  6089. // This parameter is not currently supported.
  6090. Filters []*Filter `locationNameList:"Filter" type:"list"`
  6091. // An optional pagination token provided by a previous request. If this parameter
  6092. // is specified, the response includes only records beyond the marker, up to
  6093. // the value specified by MaxRecords.
  6094. Marker *string `type:"string"`
  6095. // The maximum number of records to include in the response. If more records
  6096. // exist than the specified MaxRecords value, a pagination token (marker) is
  6097. // included in the response so that the remaining results can be retrieved.
  6098. //
  6099. // Default: 100
  6100. //
  6101. // Constraints: Minimum 20, maximum 100.
  6102. MaxRecords *int64 `type:"integer"`
  6103. }
  6104. // String returns the string representation
  6105. func (s DescribeDBClusterParameterGroupsInput) String() string {
  6106. return awsutil.Prettify(s)
  6107. }
  6108. // GoString returns the string representation
  6109. func (s DescribeDBClusterParameterGroupsInput) GoString() string {
  6110. return s.String()
  6111. }
  6112. // Validate inspects the fields of the type to determine if they are valid.
  6113. func (s *DescribeDBClusterParameterGroupsInput) Validate() error {
  6114. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterParameterGroupsInput"}
  6115. if s.Filters != nil {
  6116. for i, v := range s.Filters {
  6117. if v == nil {
  6118. continue
  6119. }
  6120. if err := v.Validate(); err != nil {
  6121. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  6122. }
  6123. }
  6124. }
  6125. if invalidParams.Len() > 0 {
  6126. return invalidParams
  6127. }
  6128. return nil
  6129. }
  6130. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  6131. func (s *DescribeDBClusterParameterGroupsInput) SetDBClusterParameterGroupName(v string) *DescribeDBClusterParameterGroupsInput {
  6132. s.DBClusterParameterGroupName = &v
  6133. return s
  6134. }
  6135. // SetFilters sets the Filters field's value.
  6136. func (s *DescribeDBClusterParameterGroupsInput) SetFilters(v []*Filter) *DescribeDBClusterParameterGroupsInput {
  6137. s.Filters = v
  6138. return s
  6139. }
  6140. // SetMarker sets the Marker field's value.
  6141. func (s *DescribeDBClusterParameterGroupsInput) SetMarker(v string) *DescribeDBClusterParameterGroupsInput {
  6142. s.Marker = &v
  6143. return s
  6144. }
  6145. // SetMaxRecords sets the MaxRecords field's value.
  6146. func (s *DescribeDBClusterParameterGroupsInput) SetMaxRecords(v int64) *DescribeDBClusterParameterGroupsInput {
  6147. s.MaxRecords = &v
  6148. return s
  6149. }
  6150. // Represents the output of DBClusterParameterGroups.
  6151. type DescribeDBClusterParameterGroupsOutput struct {
  6152. _ struct{} `type:"structure"`
  6153. // A list of DB cluster parameter groups.
  6154. DBClusterParameterGroups []*DBClusterParameterGroup `locationNameList:"DBClusterParameterGroup" type:"list"`
  6155. // An optional pagination token provided by a previous request. If this parameter
  6156. // is specified, the response includes only records beyond the marker, up to
  6157. // the value specified by MaxRecords.
  6158. Marker *string `type:"string"`
  6159. }
  6160. // String returns the string representation
  6161. func (s DescribeDBClusterParameterGroupsOutput) String() string {
  6162. return awsutil.Prettify(s)
  6163. }
  6164. // GoString returns the string representation
  6165. func (s DescribeDBClusterParameterGroupsOutput) GoString() string {
  6166. return s.String()
  6167. }
  6168. // SetDBClusterParameterGroups sets the DBClusterParameterGroups field's value.
  6169. func (s *DescribeDBClusterParameterGroupsOutput) SetDBClusterParameterGroups(v []*DBClusterParameterGroup) *DescribeDBClusterParameterGroupsOutput {
  6170. s.DBClusterParameterGroups = v
  6171. return s
  6172. }
  6173. // SetMarker sets the Marker field's value.
  6174. func (s *DescribeDBClusterParameterGroupsOutput) SetMarker(v string) *DescribeDBClusterParameterGroupsOutput {
  6175. s.Marker = &v
  6176. return s
  6177. }
  6178. // Represents the input to DescribeDBClusterParameters.
  6179. type DescribeDBClusterParametersInput struct {
  6180. _ struct{} `type:"structure"`
  6181. // The name of a specific DB cluster parameter group to return parameter details
  6182. // for.
  6183. //
  6184. // Constraints:
  6185. //
  6186. // * If provided, must match the name of an existing DBClusterParameterGroup.
  6187. //
  6188. // DBClusterParameterGroupName is a required field
  6189. DBClusterParameterGroupName *string `type:"string" required:"true"`
  6190. // This parameter is not currently supported.
  6191. Filters []*Filter `locationNameList:"Filter" type:"list"`
  6192. // An optional pagination token provided by a previous request. If this parameter
  6193. // is specified, the response includes only records beyond the marker, up to
  6194. // the value specified by MaxRecords.
  6195. Marker *string `type:"string"`
  6196. // The maximum number of records to include in the response. If more records
  6197. // exist than the specified MaxRecords value, a pagination token (marker) is
  6198. // included in the response so that the remaining results can be retrieved.
  6199. //
  6200. // Default: 100
  6201. //
  6202. // Constraints: Minimum 20, maximum 100.
  6203. MaxRecords *int64 `type:"integer"`
  6204. // A value that indicates to return only parameters for a specific source. Parameter
  6205. // sources can be engine, service, or customer.
  6206. Source *string `type:"string"`
  6207. }
  6208. // String returns the string representation
  6209. func (s DescribeDBClusterParametersInput) String() string {
  6210. return awsutil.Prettify(s)
  6211. }
  6212. // GoString returns the string representation
  6213. func (s DescribeDBClusterParametersInput) GoString() string {
  6214. return s.String()
  6215. }
  6216. // Validate inspects the fields of the type to determine if they are valid.
  6217. func (s *DescribeDBClusterParametersInput) Validate() error {
  6218. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterParametersInput"}
  6219. if s.DBClusterParameterGroupName == nil {
  6220. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  6221. }
  6222. if s.Filters != nil {
  6223. for i, v := range s.Filters {
  6224. if v == nil {
  6225. continue
  6226. }
  6227. if err := v.Validate(); err != nil {
  6228. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  6229. }
  6230. }
  6231. }
  6232. if invalidParams.Len() > 0 {
  6233. return invalidParams
  6234. }
  6235. return nil
  6236. }
  6237. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  6238. func (s *DescribeDBClusterParametersInput) SetDBClusterParameterGroupName(v string) *DescribeDBClusterParametersInput {
  6239. s.DBClusterParameterGroupName = &v
  6240. return s
  6241. }
  6242. // SetFilters sets the Filters field's value.
  6243. func (s *DescribeDBClusterParametersInput) SetFilters(v []*Filter) *DescribeDBClusterParametersInput {
  6244. s.Filters = v
  6245. return s
  6246. }
  6247. // SetMarker sets the Marker field's value.
  6248. func (s *DescribeDBClusterParametersInput) SetMarker(v string) *DescribeDBClusterParametersInput {
  6249. s.Marker = &v
  6250. return s
  6251. }
  6252. // SetMaxRecords sets the MaxRecords field's value.
  6253. func (s *DescribeDBClusterParametersInput) SetMaxRecords(v int64) *DescribeDBClusterParametersInput {
  6254. s.MaxRecords = &v
  6255. return s
  6256. }
  6257. // SetSource sets the Source field's value.
  6258. func (s *DescribeDBClusterParametersInput) SetSource(v string) *DescribeDBClusterParametersInput {
  6259. s.Source = &v
  6260. return s
  6261. }
  6262. // Represents the output of DBClusterParameterGroup.
  6263. type DescribeDBClusterParametersOutput struct {
  6264. _ struct{} `type:"structure"`
  6265. // An optional pagination token provided by a previous request. If this parameter
  6266. // is specified, the response includes only records beyond the marker, up to
  6267. // the value specified by MaxRecords.
  6268. Marker *string `type:"string"`
  6269. // Provides a list of parameters for the DB cluster parameter group.
  6270. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  6271. }
  6272. // String returns the string representation
  6273. func (s DescribeDBClusterParametersOutput) String() string {
  6274. return awsutil.Prettify(s)
  6275. }
  6276. // GoString returns the string representation
  6277. func (s DescribeDBClusterParametersOutput) GoString() string {
  6278. return s.String()
  6279. }
  6280. // SetMarker sets the Marker field's value.
  6281. func (s *DescribeDBClusterParametersOutput) SetMarker(v string) *DescribeDBClusterParametersOutput {
  6282. s.Marker = &v
  6283. return s
  6284. }
  6285. // SetParameters sets the Parameters field's value.
  6286. func (s *DescribeDBClusterParametersOutput) SetParameters(v []*Parameter) *DescribeDBClusterParametersOutput {
  6287. s.Parameters = v
  6288. return s
  6289. }
  6290. // Represents the input to DescribeDBClusterSnapshotAttributes.
  6291. type DescribeDBClusterSnapshotAttributesInput struct {
  6292. _ struct{} `type:"structure"`
  6293. // The identifier for the DB cluster snapshot to describe the attributes for.
  6294. //
  6295. // DBClusterSnapshotIdentifier is a required field
  6296. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  6297. }
  6298. // String returns the string representation
  6299. func (s DescribeDBClusterSnapshotAttributesInput) String() string {
  6300. return awsutil.Prettify(s)
  6301. }
  6302. // GoString returns the string representation
  6303. func (s DescribeDBClusterSnapshotAttributesInput) GoString() string {
  6304. return s.String()
  6305. }
  6306. // Validate inspects the fields of the type to determine if they are valid.
  6307. func (s *DescribeDBClusterSnapshotAttributesInput) Validate() error {
  6308. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterSnapshotAttributesInput"}
  6309. if s.DBClusterSnapshotIdentifier == nil {
  6310. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  6311. }
  6312. if invalidParams.Len() > 0 {
  6313. return invalidParams
  6314. }
  6315. return nil
  6316. }
  6317. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  6318. func (s *DescribeDBClusterSnapshotAttributesInput) SetDBClusterSnapshotIdentifier(v string) *DescribeDBClusterSnapshotAttributesInput {
  6319. s.DBClusterSnapshotIdentifier = &v
  6320. return s
  6321. }
  6322. type DescribeDBClusterSnapshotAttributesOutput struct {
  6323. _ struct{} `type:"structure"`
  6324. // Detailed information about the attributes that are associated with a DB cluster
  6325. // snapshot.
  6326. DBClusterSnapshotAttributesResult *DBClusterSnapshotAttributesResult `type:"structure"`
  6327. }
  6328. // String returns the string representation
  6329. func (s DescribeDBClusterSnapshotAttributesOutput) String() string {
  6330. return awsutil.Prettify(s)
  6331. }
  6332. // GoString returns the string representation
  6333. func (s DescribeDBClusterSnapshotAttributesOutput) GoString() string {
  6334. return s.String()
  6335. }
  6336. // SetDBClusterSnapshotAttributesResult sets the DBClusterSnapshotAttributesResult field's value.
  6337. func (s *DescribeDBClusterSnapshotAttributesOutput) SetDBClusterSnapshotAttributesResult(v *DBClusterSnapshotAttributesResult) *DescribeDBClusterSnapshotAttributesOutput {
  6338. s.DBClusterSnapshotAttributesResult = v
  6339. return s
  6340. }
  6341. // Represents the input to DescribeDBClusterSnapshots.
  6342. type DescribeDBClusterSnapshotsInput struct {
  6343. _ struct{} `type:"structure"`
  6344. // The ID of the DB cluster to retrieve the list of DB cluster snapshots for.
  6345. // This parameter can't be used with the DBClusterSnapshotIdentifier parameter.
  6346. // This parameter is not case sensitive.
  6347. //
  6348. // Constraints:
  6349. //
  6350. // * If provided, must match the identifier of an existing DBCluster.
  6351. DBClusterIdentifier *string `type:"string"`
  6352. // A specific DB cluster snapshot identifier to describe. This parameter can't
  6353. // be used with the DBClusterIdentifier parameter. This value is stored as a
  6354. // lowercase string.
  6355. //
  6356. // Constraints:
  6357. //
  6358. // * If provided, must match the identifier of an existing DBClusterSnapshot.
  6359. //
  6360. // * If this identifier is for an automated snapshot, the SnapshotType parameter
  6361. // must also be specified.
  6362. DBClusterSnapshotIdentifier *string `type:"string"`
  6363. // This parameter is not currently supported.
  6364. Filters []*Filter `locationNameList:"Filter" type:"list"`
  6365. // Set to true to include manual DB cluster snapshots that are public and can
  6366. // be copied or restored by any AWS account, and otherwise false. The default
  6367. // is false.
  6368. IncludePublic *bool `type:"boolean"`
  6369. // Set to true to include shared manual DB cluster snapshots from other AWS
  6370. // accounts that this AWS account has been given permission to copy or restore,
  6371. // and otherwise false. The default is false.
  6372. IncludeShared *bool `type:"boolean"`
  6373. // An optional pagination token provided by a previous request. If this parameter
  6374. // is specified, the response includes only records beyond the marker, up to
  6375. // the value specified by MaxRecords.
  6376. Marker *string `type:"string"`
  6377. // The maximum number of records to include in the response. If more records
  6378. // exist than the specified MaxRecords value, a pagination token (marker) is
  6379. // included in the response so that the remaining results can be retrieved.
  6380. //
  6381. // Default: 100
  6382. //
  6383. // Constraints: Minimum 20, maximum 100.
  6384. MaxRecords *int64 `type:"integer"`
  6385. // The type of DB cluster snapshots to be returned. You can specify one of the
  6386. // following values:
  6387. //
  6388. // * automated - Return all DB cluster snapshots that Amazon DocumentDB has
  6389. // automatically created for your AWS account.
  6390. //
  6391. // * manual - Return all DB cluster snapshots that you have manually created
  6392. // for your AWS account.
  6393. //
  6394. // * shared - Return all manual DB cluster snapshots that have been shared
  6395. // to your AWS account.
  6396. //
  6397. // * public - Return all DB cluster snapshots that have been marked as public.
  6398. //
  6399. // If you don't specify a SnapshotType value, then both automated and manual
  6400. // DB cluster snapshots are returned. You can include shared DB cluster snapshots
  6401. // with these results by setting the IncludeShared parameter to true. You can
  6402. // include public DB cluster snapshots with these results by setting the IncludePublic
  6403. // parameter to true.
  6404. //
  6405. // The IncludeShared and IncludePublic parameters don't apply for SnapshotType
  6406. // values of manual or automated. The IncludePublic parameter doesn't apply
  6407. // when SnapshotType is set to shared. The IncludeShared parameter doesn't apply
  6408. // when SnapshotType is set to public.
  6409. SnapshotType *string `type:"string"`
  6410. }
  6411. // String returns the string representation
  6412. func (s DescribeDBClusterSnapshotsInput) String() string {
  6413. return awsutil.Prettify(s)
  6414. }
  6415. // GoString returns the string representation
  6416. func (s DescribeDBClusterSnapshotsInput) GoString() string {
  6417. return s.String()
  6418. }
  6419. // Validate inspects the fields of the type to determine if they are valid.
  6420. func (s *DescribeDBClusterSnapshotsInput) Validate() error {
  6421. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterSnapshotsInput"}
  6422. if s.Filters != nil {
  6423. for i, v := range s.Filters {
  6424. if v == nil {
  6425. continue
  6426. }
  6427. if err := v.Validate(); err != nil {
  6428. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  6429. }
  6430. }
  6431. }
  6432. if invalidParams.Len() > 0 {
  6433. return invalidParams
  6434. }
  6435. return nil
  6436. }
  6437. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  6438. func (s *DescribeDBClusterSnapshotsInput) SetDBClusterIdentifier(v string) *DescribeDBClusterSnapshotsInput {
  6439. s.DBClusterIdentifier = &v
  6440. return s
  6441. }
  6442. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  6443. func (s *DescribeDBClusterSnapshotsInput) SetDBClusterSnapshotIdentifier(v string) *DescribeDBClusterSnapshotsInput {
  6444. s.DBClusterSnapshotIdentifier = &v
  6445. return s
  6446. }
  6447. // SetFilters sets the Filters field's value.
  6448. func (s *DescribeDBClusterSnapshotsInput) SetFilters(v []*Filter) *DescribeDBClusterSnapshotsInput {
  6449. s.Filters = v
  6450. return s
  6451. }
  6452. // SetIncludePublic sets the IncludePublic field's value.
  6453. func (s *DescribeDBClusterSnapshotsInput) SetIncludePublic(v bool) *DescribeDBClusterSnapshotsInput {
  6454. s.IncludePublic = &v
  6455. return s
  6456. }
  6457. // SetIncludeShared sets the IncludeShared field's value.
  6458. func (s *DescribeDBClusterSnapshotsInput) SetIncludeShared(v bool) *DescribeDBClusterSnapshotsInput {
  6459. s.IncludeShared = &v
  6460. return s
  6461. }
  6462. // SetMarker sets the Marker field's value.
  6463. func (s *DescribeDBClusterSnapshotsInput) SetMarker(v string) *DescribeDBClusterSnapshotsInput {
  6464. s.Marker = &v
  6465. return s
  6466. }
  6467. // SetMaxRecords sets the MaxRecords field's value.
  6468. func (s *DescribeDBClusterSnapshotsInput) SetMaxRecords(v int64) *DescribeDBClusterSnapshotsInput {
  6469. s.MaxRecords = &v
  6470. return s
  6471. }
  6472. // SetSnapshotType sets the SnapshotType field's value.
  6473. func (s *DescribeDBClusterSnapshotsInput) SetSnapshotType(v string) *DescribeDBClusterSnapshotsInput {
  6474. s.SnapshotType = &v
  6475. return s
  6476. }
  6477. // Represents the output of DescribeDBClusterSnapshots.
  6478. type DescribeDBClusterSnapshotsOutput struct {
  6479. _ struct{} `type:"structure"`
  6480. // Provides a list of DB cluster snapshots.
  6481. DBClusterSnapshots []*DBClusterSnapshot `locationNameList:"DBClusterSnapshot" type:"list"`
  6482. // An optional pagination token provided by a previous request. If this parameter
  6483. // is specified, the response includes only records beyond the marker, up to
  6484. // the value specified by MaxRecords.
  6485. Marker *string `type:"string"`
  6486. }
  6487. // String returns the string representation
  6488. func (s DescribeDBClusterSnapshotsOutput) String() string {
  6489. return awsutil.Prettify(s)
  6490. }
  6491. // GoString returns the string representation
  6492. func (s DescribeDBClusterSnapshotsOutput) GoString() string {
  6493. return s.String()
  6494. }
  6495. // SetDBClusterSnapshots sets the DBClusterSnapshots field's value.
  6496. func (s *DescribeDBClusterSnapshotsOutput) SetDBClusterSnapshots(v []*DBClusterSnapshot) *DescribeDBClusterSnapshotsOutput {
  6497. s.DBClusterSnapshots = v
  6498. return s
  6499. }
  6500. // SetMarker sets the Marker field's value.
  6501. func (s *DescribeDBClusterSnapshotsOutput) SetMarker(v string) *DescribeDBClusterSnapshotsOutput {
  6502. s.Marker = &v
  6503. return s
  6504. }
  6505. // Represents the input to DescribeDBClusters.
  6506. type DescribeDBClustersInput struct {
  6507. _ struct{} `type:"structure"`
  6508. // The user-provided DB cluster identifier. If this parameter is specified,
  6509. // information from only the specific DB cluster is returned. This parameter
  6510. // isn't case sensitive.
  6511. //
  6512. // Constraints:
  6513. //
  6514. // * If provided, must match an existing DBClusterIdentifier.
  6515. DBClusterIdentifier *string `type:"string"`
  6516. // A filter that specifies one or more DB clusters to describe.
  6517. //
  6518. // Supported filters:
  6519. //
  6520. // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon
  6521. // Resource Names (ARNs). The results list only includes information about
  6522. // the DB clusters identified by these ARNs.
  6523. Filters []*Filter `locationNameList:"Filter" type:"list"`
  6524. // An optional pagination token provided by a previous request. If this parameter
  6525. // is specified, the response includes only records beyond the marker, up to
  6526. // the value specified by MaxRecords.
  6527. Marker *string `type:"string"`
  6528. // The maximum number of records to include in the response. If more records
  6529. // exist than the specified MaxRecords value, a pagination token (marker) is
  6530. // included in the response so that the remaining results can be retrieved.
  6531. //
  6532. // Default: 100
  6533. //
  6534. // Constraints: Minimum 20, maximum 100.
  6535. MaxRecords *int64 `type:"integer"`
  6536. }
  6537. // String returns the string representation
  6538. func (s DescribeDBClustersInput) String() string {
  6539. return awsutil.Prettify(s)
  6540. }
  6541. // GoString returns the string representation
  6542. func (s DescribeDBClustersInput) GoString() string {
  6543. return s.String()
  6544. }
  6545. // Validate inspects the fields of the type to determine if they are valid.
  6546. func (s *DescribeDBClustersInput) Validate() error {
  6547. invalidParams := request.ErrInvalidParams{Context: "DescribeDBClustersInput"}
  6548. if s.Filters != nil {
  6549. for i, v := range s.Filters {
  6550. if v == nil {
  6551. continue
  6552. }
  6553. if err := v.Validate(); err != nil {
  6554. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  6555. }
  6556. }
  6557. }
  6558. if invalidParams.Len() > 0 {
  6559. return invalidParams
  6560. }
  6561. return nil
  6562. }
  6563. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  6564. func (s *DescribeDBClustersInput) SetDBClusterIdentifier(v string) *DescribeDBClustersInput {
  6565. s.DBClusterIdentifier = &v
  6566. return s
  6567. }
  6568. // SetFilters sets the Filters field's value.
  6569. func (s *DescribeDBClustersInput) SetFilters(v []*Filter) *DescribeDBClustersInput {
  6570. s.Filters = v
  6571. return s
  6572. }
  6573. // SetMarker sets the Marker field's value.
  6574. func (s *DescribeDBClustersInput) SetMarker(v string) *DescribeDBClustersInput {
  6575. s.Marker = &v
  6576. return s
  6577. }
  6578. // SetMaxRecords sets the MaxRecords field's value.
  6579. func (s *DescribeDBClustersInput) SetMaxRecords(v int64) *DescribeDBClustersInput {
  6580. s.MaxRecords = &v
  6581. return s
  6582. }
  6583. // Represents the output of DescribeDBClusters.
  6584. type DescribeDBClustersOutput struct {
  6585. _ struct{} `type:"structure"`
  6586. // A list of DB clusters.
  6587. DBClusters []*DBCluster `locationNameList:"DBCluster" type:"list"`
  6588. // An optional pagination token provided by a previous request. If this parameter
  6589. // is specified, the response includes only records beyond the marker, up to
  6590. // the value specified by MaxRecords.
  6591. Marker *string `type:"string"`
  6592. }
  6593. // String returns the string representation
  6594. func (s DescribeDBClustersOutput) String() string {
  6595. return awsutil.Prettify(s)
  6596. }
  6597. // GoString returns the string representation
  6598. func (s DescribeDBClustersOutput) GoString() string {
  6599. return s.String()
  6600. }
  6601. // SetDBClusters sets the DBClusters field's value.
  6602. func (s *DescribeDBClustersOutput) SetDBClusters(v []*DBCluster) *DescribeDBClustersOutput {
  6603. s.DBClusters = v
  6604. return s
  6605. }
  6606. // SetMarker sets the Marker field's value.
  6607. func (s *DescribeDBClustersOutput) SetMarker(v string) *DescribeDBClustersOutput {
  6608. s.Marker = &v
  6609. return s
  6610. }
  6611. // Represents the input to DescribeDBEngineVersions.
  6612. type DescribeDBEngineVersionsInput struct {
  6613. _ struct{} `type:"structure"`
  6614. // The name of a specific DB parameter group family to return details for.
  6615. //
  6616. // Constraints:
  6617. //
  6618. // * If provided, must match an existing DBParameterGroupFamily.
  6619. DBParameterGroupFamily *string `type:"string"`
  6620. // Indicates that only the default version of the specified engine or engine
  6621. // and major version combination is returned.
  6622. DefaultOnly *bool `type:"boolean"`
  6623. // The database engine to return.
  6624. Engine *string `type:"string"`
  6625. // The database engine version to return.
  6626. //
  6627. // Example: 5.1.49
  6628. EngineVersion *string `type:"string"`
  6629. // This parameter is not currently supported.
  6630. Filters []*Filter `locationNameList:"Filter" type:"list"`
  6631. // If this parameter is specified and the requested engine supports the CharacterSetName
  6632. // parameter for CreateDBInstance, the response includes a list of supported
  6633. // character sets for each engine version.
  6634. ListSupportedCharacterSets *bool `type:"boolean"`
  6635. // If this parameter is specified and the requested engine supports the TimeZone
  6636. // parameter for CreateDBInstance, the response includes a list of supported
  6637. // time zones for each engine version.
  6638. ListSupportedTimezones *bool `type:"boolean"`
  6639. // An optional pagination token provided by a previous request. If this parameter
  6640. // is specified, the response includes only records beyond the marker, up to
  6641. // the value specified by MaxRecords.
  6642. Marker *string `type:"string"`
  6643. // The maximum number of records to include in the response. If more records
  6644. // exist than the specified MaxRecords value, a pagination token (marker) is
  6645. // included in the response so that the remaining results can be retrieved.
  6646. //
  6647. // Default: 100
  6648. //
  6649. // Constraints: Minimum 20, maximum 100.
  6650. MaxRecords *int64 `type:"integer"`
  6651. }
  6652. // String returns the string representation
  6653. func (s DescribeDBEngineVersionsInput) String() string {
  6654. return awsutil.Prettify(s)
  6655. }
  6656. // GoString returns the string representation
  6657. func (s DescribeDBEngineVersionsInput) GoString() string {
  6658. return s.String()
  6659. }
  6660. // Validate inspects the fields of the type to determine if they are valid.
  6661. func (s *DescribeDBEngineVersionsInput) Validate() error {
  6662. invalidParams := request.ErrInvalidParams{Context: "DescribeDBEngineVersionsInput"}
  6663. if s.Filters != nil {
  6664. for i, v := range s.Filters {
  6665. if v == nil {
  6666. continue
  6667. }
  6668. if err := v.Validate(); err != nil {
  6669. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  6670. }
  6671. }
  6672. }
  6673. if invalidParams.Len() > 0 {
  6674. return invalidParams
  6675. }
  6676. return nil
  6677. }
  6678. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  6679. func (s *DescribeDBEngineVersionsInput) SetDBParameterGroupFamily(v string) *DescribeDBEngineVersionsInput {
  6680. s.DBParameterGroupFamily = &v
  6681. return s
  6682. }
  6683. // SetDefaultOnly sets the DefaultOnly field's value.
  6684. func (s *DescribeDBEngineVersionsInput) SetDefaultOnly(v bool) *DescribeDBEngineVersionsInput {
  6685. s.DefaultOnly = &v
  6686. return s
  6687. }
  6688. // SetEngine sets the Engine field's value.
  6689. func (s *DescribeDBEngineVersionsInput) SetEngine(v string) *DescribeDBEngineVersionsInput {
  6690. s.Engine = &v
  6691. return s
  6692. }
  6693. // SetEngineVersion sets the EngineVersion field's value.
  6694. func (s *DescribeDBEngineVersionsInput) SetEngineVersion(v string) *DescribeDBEngineVersionsInput {
  6695. s.EngineVersion = &v
  6696. return s
  6697. }
  6698. // SetFilters sets the Filters field's value.
  6699. func (s *DescribeDBEngineVersionsInput) SetFilters(v []*Filter) *DescribeDBEngineVersionsInput {
  6700. s.Filters = v
  6701. return s
  6702. }
  6703. // SetListSupportedCharacterSets sets the ListSupportedCharacterSets field's value.
  6704. func (s *DescribeDBEngineVersionsInput) SetListSupportedCharacterSets(v bool) *DescribeDBEngineVersionsInput {
  6705. s.ListSupportedCharacterSets = &v
  6706. return s
  6707. }
  6708. // SetListSupportedTimezones sets the ListSupportedTimezones field's value.
  6709. func (s *DescribeDBEngineVersionsInput) SetListSupportedTimezones(v bool) *DescribeDBEngineVersionsInput {
  6710. s.ListSupportedTimezones = &v
  6711. return s
  6712. }
  6713. // SetMarker sets the Marker field's value.
  6714. func (s *DescribeDBEngineVersionsInput) SetMarker(v string) *DescribeDBEngineVersionsInput {
  6715. s.Marker = &v
  6716. return s
  6717. }
  6718. // SetMaxRecords sets the MaxRecords field's value.
  6719. func (s *DescribeDBEngineVersionsInput) SetMaxRecords(v int64) *DescribeDBEngineVersionsInput {
  6720. s.MaxRecords = &v
  6721. return s
  6722. }
  6723. // Represents the output of DescribeDBEngineVersions.
  6724. type DescribeDBEngineVersionsOutput struct {
  6725. _ struct{} `type:"structure"`
  6726. // Detailed information about one or more DB engine versions.
  6727. DBEngineVersions []*DBEngineVersion `locationNameList:"DBEngineVersion" type:"list"`
  6728. // An optional pagination token provided by a previous request. If this parameter
  6729. // is specified, the response includes only records beyond the marker, up to
  6730. // the value specified by MaxRecords.
  6731. Marker *string `type:"string"`
  6732. }
  6733. // String returns the string representation
  6734. func (s DescribeDBEngineVersionsOutput) String() string {
  6735. return awsutil.Prettify(s)
  6736. }
  6737. // GoString returns the string representation
  6738. func (s DescribeDBEngineVersionsOutput) GoString() string {
  6739. return s.String()
  6740. }
  6741. // SetDBEngineVersions sets the DBEngineVersions field's value.
  6742. func (s *DescribeDBEngineVersionsOutput) SetDBEngineVersions(v []*DBEngineVersion) *DescribeDBEngineVersionsOutput {
  6743. s.DBEngineVersions = v
  6744. return s
  6745. }
  6746. // SetMarker sets the Marker field's value.
  6747. func (s *DescribeDBEngineVersionsOutput) SetMarker(v string) *DescribeDBEngineVersionsOutput {
  6748. s.Marker = &v
  6749. return s
  6750. }
  6751. // Represents the input to DescribeDBInstances.
  6752. type DescribeDBInstancesInput struct {
  6753. _ struct{} `type:"structure"`
  6754. // The user-provided instance identifier. If this parameter is specified, information
  6755. // from only the specific DB instance is returned. This parameter isn't case
  6756. // sensitive.
  6757. //
  6758. // Constraints:
  6759. //
  6760. // * If provided, must match the identifier of an existing DBInstance.
  6761. DBInstanceIdentifier *string `type:"string"`
  6762. // A filter that specifies one or more DB instances to describe.
  6763. //
  6764. // Supported filters:
  6765. //
  6766. // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon
  6767. // Resource Names (ARNs). The results list includes only the information
  6768. // about the DB instances that are associated with the DB clusters that are
  6769. // identified by these ARNs.
  6770. //
  6771. // * db-instance-id - Accepts DB instance identifiers and DB instance ARNs.
  6772. // The results list includes only the information about the DB instances
  6773. // that are identified by these ARNs.
  6774. Filters []*Filter `locationNameList:"Filter" type:"list"`
  6775. // An optional pagination token provided by a previous request. If this parameter
  6776. // is specified, the response includes only records beyond the marker, up to
  6777. // the value specified by MaxRecords.
  6778. Marker *string `type:"string"`
  6779. // The maximum number of records to include in the response. If more records
  6780. // exist than the specified MaxRecords value, a pagination token (marker) is
  6781. // included in the response so that the remaining results can be retrieved.
  6782. //
  6783. // Default: 100
  6784. //
  6785. // Constraints: Minimum 20, maximum 100.
  6786. MaxRecords *int64 `type:"integer"`
  6787. }
  6788. // String returns the string representation
  6789. func (s DescribeDBInstancesInput) String() string {
  6790. return awsutil.Prettify(s)
  6791. }
  6792. // GoString returns the string representation
  6793. func (s DescribeDBInstancesInput) GoString() string {
  6794. return s.String()
  6795. }
  6796. // Validate inspects the fields of the type to determine if they are valid.
  6797. func (s *DescribeDBInstancesInput) Validate() error {
  6798. invalidParams := request.ErrInvalidParams{Context: "DescribeDBInstancesInput"}
  6799. if s.Filters != nil {
  6800. for i, v := range s.Filters {
  6801. if v == nil {
  6802. continue
  6803. }
  6804. if err := v.Validate(); err != nil {
  6805. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  6806. }
  6807. }
  6808. }
  6809. if invalidParams.Len() > 0 {
  6810. return invalidParams
  6811. }
  6812. return nil
  6813. }
  6814. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  6815. func (s *DescribeDBInstancesInput) SetDBInstanceIdentifier(v string) *DescribeDBInstancesInput {
  6816. s.DBInstanceIdentifier = &v
  6817. return s
  6818. }
  6819. // SetFilters sets the Filters field's value.
  6820. func (s *DescribeDBInstancesInput) SetFilters(v []*Filter) *DescribeDBInstancesInput {
  6821. s.Filters = v
  6822. return s
  6823. }
  6824. // SetMarker sets the Marker field's value.
  6825. func (s *DescribeDBInstancesInput) SetMarker(v string) *DescribeDBInstancesInput {
  6826. s.Marker = &v
  6827. return s
  6828. }
  6829. // SetMaxRecords sets the MaxRecords field's value.
  6830. func (s *DescribeDBInstancesInput) SetMaxRecords(v int64) *DescribeDBInstancesInput {
  6831. s.MaxRecords = &v
  6832. return s
  6833. }
  6834. // Represents the output of DescribeDBInstances.
  6835. type DescribeDBInstancesOutput struct {
  6836. _ struct{} `type:"structure"`
  6837. // Detailed information about one or more DB instances.
  6838. DBInstances []*DBInstance `locationNameList:"DBInstance" type:"list"`
  6839. // An optional pagination token provided by a previous request. If this parameter
  6840. // is specified, the response includes only records beyond the marker, up to
  6841. // the value specified by MaxRecords.
  6842. Marker *string `type:"string"`
  6843. }
  6844. // String returns the string representation
  6845. func (s DescribeDBInstancesOutput) String() string {
  6846. return awsutil.Prettify(s)
  6847. }
  6848. // GoString returns the string representation
  6849. func (s DescribeDBInstancesOutput) GoString() string {
  6850. return s.String()
  6851. }
  6852. // SetDBInstances sets the DBInstances field's value.
  6853. func (s *DescribeDBInstancesOutput) SetDBInstances(v []*DBInstance) *DescribeDBInstancesOutput {
  6854. s.DBInstances = v
  6855. return s
  6856. }
  6857. // SetMarker sets the Marker field's value.
  6858. func (s *DescribeDBInstancesOutput) SetMarker(v string) *DescribeDBInstancesOutput {
  6859. s.Marker = &v
  6860. return s
  6861. }
  6862. // Represents the input to DescribeDBSubnetGroups.
  6863. type DescribeDBSubnetGroupsInput struct {
  6864. _ struct{} `type:"structure"`
  6865. // The name of the DB subnet group to return details for.
  6866. DBSubnetGroupName *string `type:"string"`
  6867. // This parameter is not currently supported.
  6868. Filters []*Filter `locationNameList:"Filter" type:"list"`
  6869. // An optional pagination token provided by a previous request. If this parameter
  6870. // is specified, the response includes only records beyond the marker, up to
  6871. // the value specified by MaxRecords.
  6872. Marker *string `type:"string"`
  6873. // The maximum number of records to include in the response. If more records
  6874. // exist than the specified MaxRecords value, a pagination token (marker) is
  6875. // included in the response so that the remaining results can be retrieved.
  6876. //
  6877. // Default: 100
  6878. //
  6879. // Constraints: Minimum 20, maximum 100.
  6880. MaxRecords *int64 `type:"integer"`
  6881. }
  6882. // String returns the string representation
  6883. func (s DescribeDBSubnetGroupsInput) String() string {
  6884. return awsutil.Prettify(s)
  6885. }
  6886. // GoString returns the string representation
  6887. func (s DescribeDBSubnetGroupsInput) GoString() string {
  6888. return s.String()
  6889. }
  6890. // Validate inspects the fields of the type to determine if they are valid.
  6891. func (s *DescribeDBSubnetGroupsInput) Validate() error {
  6892. invalidParams := request.ErrInvalidParams{Context: "DescribeDBSubnetGroupsInput"}
  6893. if s.Filters != nil {
  6894. for i, v := range s.Filters {
  6895. if v == nil {
  6896. continue
  6897. }
  6898. if err := v.Validate(); err != nil {
  6899. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  6900. }
  6901. }
  6902. }
  6903. if invalidParams.Len() > 0 {
  6904. return invalidParams
  6905. }
  6906. return nil
  6907. }
  6908. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  6909. func (s *DescribeDBSubnetGroupsInput) SetDBSubnetGroupName(v string) *DescribeDBSubnetGroupsInput {
  6910. s.DBSubnetGroupName = &v
  6911. return s
  6912. }
  6913. // SetFilters sets the Filters field's value.
  6914. func (s *DescribeDBSubnetGroupsInput) SetFilters(v []*Filter) *DescribeDBSubnetGroupsInput {
  6915. s.Filters = v
  6916. return s
  6917. }
  6918. // SetMarker sets the Marker field's value.
  6919. func (s *DescribeDBSubnetGroupsInput) SetMarker(v string) *DescribeDBSubnetGroupsInput {
  6920. s.Marker = &v
  6921. return s
  6922. }
  6923. // SetMaxRecords sets the MaxRecords field's value.
  6924. func (s *DescribeDBSubnetGroupsInput) SetMaxRecords(v int64) *DescribeDBSubnetGroupsInput {
  6925. s.MaxRecords = &v
  6926. return s
  6927. }
  6928. // Represents the output of DescribeDBSubnetGroups.
  6929. type DescribeDBSubnetGroupsOutput struct {
  6930. _ struct{} `type:"structure"`
  6931. // Detailed information about one or more DB subnet groups.
  6932. DBSubnetGroups []*DBSubnetGroup `locationNameList:"DBSubnetGroup" type:"list"`
  6933. // An optional pagination token provided by a previous request. If this parameter
  6934. // is specified, the response includes only records beyond the marker, up to
  6935. // the value specified by MaxRecords.
  6936. Marker *string `type:"string"`
  6937. }
  6938. // String returns the string representation
  6939. func (s DescribeDBSubnetGroupsOutput) String() string {
  6940. return awsutil.Prettify(s)
  6941. }
  6942. // GoString returns the string representation
  6943. func (s DescribeDBSubnetGroupsOutput) GoString() string {
  6944. return s.String()
  6945. }
  6946. // SetDBSubnetGroups sets the DBSubnetGroups field's value.
  6947. func (s *DescribeDBSubnetGroupsOutput) SetDBSubnetGroups(v []*DBSubnetGroup) *DescribeDBSubnetGroupsOutput {
  6948. s.DBSubnetGroups = v
  6949. return s
  6950. }
  6951. // SetMarker sets the Marker field's value.
  6952. func (s *DescribeDBSubnetGroupsOutput) SetMarker(v string) *DescribeDBSubnetGroupsOutput {
  6953. s.Marker = &v
  6954. return s
  6955. }
  6956. // Represents the input to DescribeEngineDefaultClusterParameters.
  6957. type DescribeEngineDefaultClusterParametersInput struct {
  6958. _ struct{} `type:"structure"`
  6959. // The name of the DB cluster parameter group family to return the engine parameter
  6960. // information for.
  6961. //
  6962. // DBParameterGroupFamily is a required field
  6963. DBParameterGroupFamily *string `type:"string" required:"true"`
  6964. // This parameter is not currently supported.
  6965. Filters []*Filter `locationNameList:"Filter" type:"list"`
  6966. // An optional pagination token provided by a previous request. If this parameter
  6967. // is specified, the response includes only records beyond the marker, up to
  6968. // the value specified by MaxRecords.
  6969. Marker *string `type:"string"`
  6970. // The maximum number of records to include in the response. If more records
  6971. // exist than the specified MaxRecords value, a pagination token (marker) is
  6972. // included in the response so that the remaining results can be retrieved.
  6973. //
  6974. // Default: 100
  6975. //
  6976. // Constraints: Minimum 20, maximum 100.
  6977. MaxRecords *int64 `type:"integer"`
  6978. }
  6979. // String returns the string representation
  6980. func (s DescribeEngineDefaultClusterParametersInput) String() string {
  6981. return awsutil.Prettify(s)
  6982. }
  6983. // GoString returns the string representation
  6984. func (s DescribeEngineDefaultClusterParametersInput) GoString() string {
  6985. return s.String()
  6986. }
  6987. // Validate inspects the fields of the type to determine if they are valid.
  6988. func (s *DescribeEngineDefaultClusterParametersInput) Validate() error {
  6989. invalidParams := request.ErrInvalidParams{Context: "DescribeEngineDefaultClusterParametersInput"}
  6990. if s.DBParameterGroupFamily == nil {
  6991. invalidParams.Add(request.NewErrParamRequired("DBParameterGroupFamily"))
  6992. }
  6993. if s.Filters != nil {
  6994. for i, v := range s.Filters {
  6995. if v == nil {
  6996. continue
  6997. }
  6998. if err := v.Validate(); err != nil {
  6999. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  7000. }
  7001. }
  7002. }
  7003. if invalidParams.Len() > 0 {
  7004. return invalidParams
  7005. }
  7006. return nil
  7007. }
  7008. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  7009. func (s *DescribeEngineDefaultClusterParametersInput) SetDBParameterGroupFamily(v string) *DescribeEngineDefaultClusterParametersInput {
  7010. s.DBParameterGroupFamily = &v
  7011. return s
  7012. }
  7013. // SetFilters sets the Filters field's value.
  7014. func (s *DescribeEngineDefaultClusterParametersInput) SetFilters(v []*Filter) *DescribeEngineDefaultClusterParametersInput {
  7015. s.Filters = v
  7016. return s
  7017. }
  7018. // SetMarker sets the Marker field's value.
  7019. func (s *DescribeEngineDefaultClusterParametersInput) SetMarker(v string) *DescribeEngineDefaultClusterParametersInput {
  7020. s.Marker = &v
  7021. return s
  7022. }
  7023. // SetMaxRecords sets the MaxRecords field's value.
  7024. func (s *DescribeEngineDefaultClusterParametersInput) SetMaxRecords(v int64) *DescribeEngineDefaultClusterParametersInput {
  7025. s.MaxRecords = &v
  7026. return s
  7027. }
  7028. type DescribeEngineDefaultClusterParametersOutput struct {
  7029. _ struct{} `type:"structure"`
  7030. // Contains the result of a successful invocation of the DescribeEngineDefaultClusterParameters
  7031. // operation.
  7032. EngineDefaults *EngineDefaults `type:"structure"`
  7033. }
  7034. // String returns the string representation
  7035. func (s DescribeEngineDefaultClusterParametersOutput) String() string {
  7036. return awsutil.Prettify(s)
  7037. }
  7038. // GoString returns the string representation
  7039. func (s DescribeEngineDefaultClusterParametersOutput) GoString() string {
  7040. return s.String()
  7041. }
  7042. // SetEngineDefaults sets the EngineDefaults field's value.
  7043. func (s *DescribeEngineDefaultClusterParametersOutput) SetEngineDefaults(v *EngineDefaults) *DescribeEngineDefaultClusterParametersOutput {
  7044. s.EngineDefaults = v
  7045. return s
  7046. }
  7047. // Represents the input to DescribeEventCategories.
  7048. type DescribeEventCategoriesInput struct {
  7049. _ struct{} `type:"structure"`
  7050. // This parameter is not currently supported.
  7051. Filters []*Filter `locationNameList:"Filter" type:"list"`
  7052. // The type of source that is generating the events.
  7053. //
  7054. // Valid values: db-instance, db-parameter-group, db-security-group, db-snapshot
  7055. SourceType *string `type:"string"`
  7056. }
  7057. // String returns the string representation
  7058. func (s DescribeEventCategoriesInput) String() string {
  7059. return awsutil.Prettify(s)
  7060. }
  7061. // GoString returns the string representation
  7062. func (s DescribeEventCategoriesInput) GoString() string {
  7063. return s.String()
  7064. }
  7065. // Validate inspects the fields of the type to determine if they are valid.
  7066. func (s *DescribeEventCategoriesInput) Validate() error {
  7067. invalidParams := request.ErrInvalidParams{Context: "DescribeEventCategoriesInput"}
  7068. if s.Filters != nil {
  7069. for i, v := range s.Filters {
  7070. if v == nil {
  7071. continue
  7072. }
  7073. if err := v.Validate(); err != nil {
  7074. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  7075. }
  7076. }
  7077. }
  7078. if invalidParams.Len() > 0 {
  7079. return invalidParams
  7080. }
  7081. return nil
  7082. }
  7083. // SetFilters sets the Filters field's value.
  7084. func (s *DescribeEventCategoriesInput) SetFilters(v []*Filter) *DescribeEventCategoriesInput {
  7085. s.Filters = v
  7086. return s
  7087. }
  7088. // SetSourceType sets the SourceType field's value.
  7089. func (s *DescribeEventCategoriesInput) SetSourceType(v string) *DescribeEventCategoriesInput {
  7090. s.SourceType = &v
  7091. return s
  7092. }
  7093. // Represents the output of DescribeEventCategories.
  7094. type DescribeEventCategoriesOutput struct {
  7095. _ struct{} `type:"structure"`
  7096. // A list of event category maps.
  7097. EventCategoriesMapList []*EventCategoriesMap `locationNameList:"EventCategoriesMap" type:"list"`
  7098. }
  7099. // String returns the string representation
  7100. func (s DescribeEventCategoriesOutput) String() string {
  7101. return awsutil.Prettify(s)
  7102. }
  7103. // GoString returns the string representation
  7104. func (s DescribeEventCategoriesOutput) GoString() string {
  7105. return s.String()
  7106. }
  7107. // SetEventCategoriesMapList sets the EventCategoriesMapList field's value.
  7108. func (s *DescribeEventCategoriesOutput) SetEventCategoriesMapList(v []*EventCategoriesMap) *DescribeEventCategoriesOutput {
  7109. s.EventCategoriesMapList = v
  7110. return s
  7111. }
  7112. // Represents the input to DescribeEvents.
  7113. type DescribeEventsInput struct {
  7114. _ struct{} `type:"structure"`
  7115. // The number of minutes to retrieve events for.
  7116. //
  7117. // Default: 60
  7118. Duration *int64 `type:"integer"`
  7119. // The end of the time interval for which to retrieve events, specified in ISO
  7120. // 8601 format.
  7121. //
  7122. // Example: 2009-07-08T18:00Z
  7123. EndTime *time.Time `type:"timestamp"`
  7124. // A list of event categories that trigger notifications for an event notification
  7125. // subscription.
  7126. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  7127. // This parameter is not currently supported.
  7128. Filters []*Filter `locationNameList:"Filter" type:"list"`
  7129. // An optional pagination token provided by a previous request. If this parameter
  7130. // is specified, the response includes only records beyond the marker, up to
  7131. // the value specified by MaxRecords.
  7132. Marker *string `type:"string"`
  7133. // The maximum number of records to include in the response. If more records
  7134. // exist than the specified MaxRecords value, a pagination token (marker) is
  7135. // included in the response so that the remaining results can be retrieved.
  7136. //
  7137. // Default: 100
  7138. //
  7139. // Constraints: Minimum 20, maximum 100.
  7140. MaxRecords *int64 `type:"integer"`
  7141. // The identifier of the event source for which events are returned. If not
  7142. // specified, then all sources are included in the response.
  7143. //
  7144. // Constraints:
  7145. //
  7146. // * If SourceIdentifier is provided, SourceType must also be provided.
  7147. //
  7148. // * If the source type is DBInstance, a DBInstanceIdentifier must be provided.
  7149. //
  7150. // * If the source type is DBSecurityGroup, a DBSecurityGroupName must be
  7151. // provided.
  7152. //
  7153. // * If the source type is DBParameterGroup, a DBParameterGroupName must
  7154. // be provided.
  7155. //
  7156. // * If the source type is DBSnapshot, a DBSnapshotIdentifier must be provided.
  7157. //
  7158. // * Cannot end with a hyphen or contain two consecutive hyphens.
  7159. SourceIdentifier *string `type:"string"`
  7160. // The event source to retrieve events for. If no value is specified, all events
  7161. // are returned.
  7162. SourceType *string `type:"string" enum:"SourceType"`
  7163. // The beginning of the time interval to retrieve events for, specified in ISO
  7164. // 8601 format.
  7165. //
  7166. // Example: 2009-07-08T18:00Z
  7167. StartTime *time.Time `type:"timestamp"`
  7168. }
  7169. // String returns the string representation
  7170. func (s DescribeEventsInput) String() string {
  7171. return awsutil.Prettify(s)
  7172. }
  7173. // GoString returns the string representation
  7174. func (s DescribeEventsInput) GoString() string {
  7175. return s.String()
  7176. }
  7177. // Validate inspects the fields of the type to determine if they are valid.
  7178. func (s *DescribeEventsInput) Validate() error {
  7179. invalidParams := request.ErrInvalidParams{Context: "DescribeEventsInput"}
  7180. if s.Filters != nil {
  7181. for i, v := range s.Filters {
  7182. if v == nil {
  7183. continue
  7184. }
  7185. if err := v.Validate(); err != nil {
  7186. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  7187. }
  7188. }
  7189. }
  7190. if invalidParams.Len() > 0 {
  7191. return invalidParams
  7192. }
  7193. return nil
  7194. }
  7195. // SetDuration sets the Duration field's value.
  7196. func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput {
  7197. s.Duration = &v
  7198. return s
  7199. }
  7200. // SetEndTime sets the EndTime field's value.
  7201. func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput {
  7202. s.EndTime = &v
  7203. return s
  7204. }
  7205. // SetEventCategories sets the EventCategories field's value.
  7206. func (s *DescribeEventsInput) SetEventCategories(v []*string) *DescribeEventsInput {
  7207. s.EventCategories = v
  7208. return s
  7209. }
  7210. // SetFilters sets the Filters field's value.
  7211. func (s *DescribeEventsInput) SetFilters(v []*Filter) *DescribeEventsInput {
  7212. s.Filters = v
  7213. return s
  7214. }
  7215. // SetMarker sets the Marker field's value.
  7216. func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput {
  7217. s.Marker = &v
  7218. return s
  7219. }
  7220. // SetMaxRecords sets the MaxRecords field's value.
  7221. func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput {
  7222. s.MaxRecords = &v
  7223. return s
  7224. }
  7225. // SetSourceIdentifier sets the SourceIdentifier field's value.
  7226. func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput {
  7227. s.SourceIdentifier = &v
  7228. return s
  7229. }
  7230. // SetSourceType sets the SourceType field's value.
  7231. func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput {
  7232. s.SourceType = &v
  7233. return s
  7234. }
  7235. // SetStartTime sets the StartTime field's value.
  7236. func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput {
  7237. s.StartTime = &v
  7238. return s
  7239. }
  7240. // Represents the output of DescribeEvents.
  7241. type DescribeEventsOutput struct {
  7242. _ struct{} `type:"structure"`
  7243. // Detailed information about one or more events.
  7244. Events []*Event `locationNameList:"Event" type:"list"`
  7245. // An optional pagination token provided by a previous request. If this parameter
  7246. // is specified, the response includes only records beyond the marker, up to
  7247. // the value specified by MaxRecords.
  7248. Marker *string `type:"string"`
  7249. }
  7250. // String returns the string representation
  7251. func (s DescribeEventsOutput) String() string {
  7252. return awsutil.Prettify(s)
  7253. }
  7254. // GoString returns the string representation
  7255. func (s DescribeEventsOutput) GoString() string {
  7256. return s.String()
  7257. }
  7258. // SetEvents sets the Events field's value.
  7259. func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput {
  7260. s.Events = v
  7261. return s
  7262. }
  7263. // SetMarker sets the Marker field's value.
  7264. func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput {
  7265. s.Marker = &v
  7266. return s
  7267. }
  7268. // Represents the input to DescribeOrderableDBInstanceOptions.
  7269. type DescribeOrderableDBInstanceOptionsInput struct {
  7270. _ struct{} `type:"structure"`
  7271. // The DB instance class filter value. Specify this parameter to show only the
  7272. // available offerings that match the specified DB instance class.
  7273. DBInstanceClass *string `type:"string"`
  7274. // The name of the engine to retrieve DB instance options for.
  7275. //
  7276. // Engine is a required field
  7277. Engine *string `type:"string" required:"true"`
  7278. // The engine version filter value. Specify this parameter to show only the
  7279. // available offerings that match the specified engine version.
  7280. EngineVersion *string `type:"string"`
  7281. // This parameter is not currently supported.
  7282. Filters []*Filter `locationNameList:"Filter" type:"list"`
  7283. // The license model filter value. Specify this parameter to show only the available
  7284. // offerings that match the specified license model.
  7285. LicenseModel *string `type:"string"`
  7286. // An optional pagination token provided by a previous request. If this parameter
  7287. // is specified, the response includes only records beyond the marker, up to
  7288. // the value specified by MaxRecords.
  7289. Marker *string `type:"string"`
  7290. // The maximum number of records to include in the response. If more records
  7291. // exist than the specified MaxRecords value, a pagination token (marker) is
  7292. // included in the response so that the remaining results can be retrieved.
  7293. //
  7294. // Default: 100
  7295. //
  7296. // Constraints: Minimum 20, maximum 100.
  7297. MaxRecords *int64 `type:"integer"`
  7298. // The virtual private cloud (VPC) filter value. Specify this parameter to show
  7299. // only the available VPC or non-VPC offerings.
  7300. Vpc *bool `type:"boolean"`
  7301. }
  7302. // String returns the string representation
  7303. func (s DescribeOrderableDBInstanceOptionsInput) String() string {
  7304. return awsutil.Prettify(s)
  7305. }
  7306. // GoString returns the string representation
  7307. func (s DescribeOrderableDBInstanceOptionsInput) GoString() string {
  7308. return s.String()
  7309. }
  7310. // Validate inspects the fields of the type to determine if they are valid.
  7311. func (s *DescribeOrderableDBInstanceOptionsInput) Validate() error {
  7312. invalidParams := request.ErrInvalidParams{Context: "DescribeOrderableDBInstanceOptionsInput"}
  7313. if s.Engine == nil {
  7314. invalidParams.Add(request.NewErrParamRequired("Engine"))
  7315. }
  7316. if s.Filters != nil {
  7317. for i, v := range s.Filters {
  7318. if v == nil {
  7319. continue
  7320. }
  7321. if err := v.Validate(); err != nil {
  7322. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  7323. }
  7324. }
  7325. }
  7326. if invalidParams.Len() > 0 {
  7327. return invalidParams
  7328. }
  7329. return nil
  7330. }
  7331. // SetDBInstanceClass sets the DBInstanceClass field's value.
  7332. func (s *DescribeOrderableDBInstanceOptionsInput) SetDBInstanceClass(v string) *DescribeOrderableDBInstanceOptionsInput {
  7333. s.DBInstanceClass = &v
  7334. return s
  7335. }
  7336. // SetEngine sets the Engine field's value.
  7337. func (s *DescribeOrderableDBInstanceOptionsInput) SetEngine(v string) *DescribeOrderableDBInstanceOptionsInput {
  7338. s.Engine = &v
  7339. return s
  7340. }
  7341. // SetEngineVersion sets the EngineVersion field's value.
  7342. func (s *DescribeOrderableDBInstanceOptionsInput) SetEngineVersion(v string) *DescribeOrderableDBInstanceOptionsInput {
  7343. s.EngineVersion = &v
  7344. return s
  7345. }
  7346. // SetFilters sets the Filters field's value.
  7347. func (s *DescribeOrderableDBInstanceOptionsInput) SetFilters(v []*Filter) *DescribeOrderableDBInstanceOptionsInput {
  7348. s.Filters = v
  7349. return s
  7350. }
  7351. // SetLicenseModel sets the LicenseModel field's value.
  7352. func (s *DescribeOrderableDBInstanceOptionsInput) SetLicenseModel(v string) *DescribeOrderableDBInstanceOptionsInput {
  7353. s.LicenseModel = &v
  7354. return s
  7355. }
  7356. // SetMarker sets the Marker field's value.
  7357. func (s *DescribeOrderableDBInstanceOptionsInput) SetMarker(v string) *DescribeOrderableDBInstanceOptionsInput {
  7358. s.Marker = &v
  7359. return s
  7360. }
  7361. // SetMaxRecords sets the MaxRecords field's value.
  7362. func (s *DescribeOrderableDBInstanceOptionsInput) SetMaxRecords(v int64) *DescribeOrderableDBInstanceOptionsInput {
  7363. s.MaxRecords = &v
  7364. return s
  7365. }
  7366. // SetVpc sets the Vpc field's value.
  7367. func (s *DescribeOrderableDBInstanceOptionsInput) SetVpc(v bool) *DescribeOrderableDBInstanceOptionsInput {
  7368. s.Vpc = &v
  7369. return s
  7370. }
  7371. // Represents the output of DescribeOrderableDBInstanceOptions.
  7372. type DescribeOrderableDBInstanceOptionsOutput struct {
  7373. _ struct{} `type:"structure"`
  7374. // An optional pagination token provided by a previous request. If this parameter
  7375. // is specified, the response includes only records beyond the marker, up to
  7376. // the value specified by MaxRecords.
  7377. Marker *string `type:"string"`
  7378. // The options that are available for a particular orderable DB instance.
  7379. OrderableDBInstanceOptions []*OrderableDBInstanceOption `locationNameList:"OrderableDBInstanceOption" type:"list"`
  7380. }
  7381. // String returns the string representation
  7382. func (s DescribeOrderableDBInstanceOptionsOutput) String() string {
  7383. return awsutil.Prettify(s)
  7384. }
  7385. // GoString returns the string representation
  7386. func (s DescribeOrderableDBInstanceOptionsOutput) GoString() string {
  7387. return s.String()
  7388. }
  7389. // SetMarker sets the Marker field's value.
  7390. func (s *DescribeOrderableDBInstanceOptionsOutput) SetMarker(v string) *DescribeOrderableDBInstanceOptionsOutput {
  7391. s.Marker = &v
  7392. return s
  7393. }
  7394. // SetOrderableDBInstanceOptions sets the OrderableDBInstanceOptions field's value.
  7395. func (s *DescribeOrderableDBInstanceOptionsOutput) SetOrderableDBInstanceOptions(v []*OrderableDBInstanceOption) *DescribeOrderableDBInstanceOptionsOutput {
  7396. s.OrderableDBInstanceOptions = v
  7397. return s
  7398. }
  7399. // Represents the input to DescribePendingMaintenanceActions.
  7400. type DescribePendingMaintenanceActionsInput struct {
  7401. _ struct{} `type:"structure"`
  7402. // A filter that specifies one or more resources to return pending maintenance
  7403. // actions for.
  7404. //
  7405. // Supported filters:
  7406. //
  7407. // * db-cluster-id - Accepts DB cluster identifiers and DB cluster Amazon
  7408. // Resource Names (ARNs). The results list includes only pending maintenance
  7409. // actions for the DB clusters identified by these ARNs.
  7410. //
  7411. // * db-instance-id - Accepts DB instance identifiers and DB instance ARNs.
  7412. // The results list includes only pending maintenance actions for the DB
  7413. // instances identified by these ARNs.
  7414. Filters []*Filter `locationNameList:"Filter" type:"list"`
  7415. // An optional pagination token provided by a previous request. If this parameter
  7416. // is specified, the response includes only records beyond the marker, up to
  7417. // the value specified by MaxRecords.
  7418. Marker *string `type:"string"`
  7419. // The maximum number of records to include in the response. If more records
  7420. // exist than the specified MaxRecords value, a pagination token (marker) is
  7421. // included in the response so that the remaining results can be retrieved.
  7422. //
  7423. // Default: 100
  7424. //
  7425. // Constraints: Minimum 20, maximum 100.
  7426. MaxRecords *int64 `type:"integer"`
  7427. // The ARN of a resource to return pending maintenance actions for.
  7428. ResourceIdentifier *string `type:"string"`
  7429. }
  7430. // String returns the string representation
  7431. func (s DescribePendingMaintenanceActionsInput) String() string {
  7432. return awsutil.Prettify(s)
  7433. }
  7434. // GoString returns the string representation
  7435. func (s DescribePendingMaintenanceActionsInput) GoString() string {
  7436. return s.String()
  7437. }
  7438. // Validate inspects the fields of the type to determine if they are valid.
  7439. func (s *DescribePendingMaintenanceActionsInput) Validate() error {
  7440. invalidParams := request.ErrInvalidParams{Context: "DescribePendingMaintenanceActionsInput"}
  7441. if s.Filters != nil {
  7442. for i, v := range s.Filters {
  7443. if v == nil {
  7444. continue
  7445. }
  7446. if err := v.Validate(); err != nil {
  7447. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  7448. }
  7449. }
  7450. }
  7451. if invalidParams.Len() > 0 {
  7452. return invalidParams
  7453. }
  7454. return nil
  7455. }
  7456. // SetFilters sets the Filters field's value.
  7457. func (s *DescribePendingMaintenanceActionsInput) SetFilters(v []*Filter) *DescribePendingMaintenanceActionsInput {
  7458. s.Filters = v
  7459. return s
  7460. }
  7461. // SetMarker sets the Marker field's value.
  7462. func (s *DescribePendingMaintenanceActionsInput) SetMarker(v string) *DescribePendingMaintenanceActionsInput {
  7463. s.Marker = &v
  7464. return s
  7465. }
  7466. // SetMaxRecords sets the MaxRecords field's value.
  7467. func (s *DescribePendingMaintenanceActionsInput) SetMaxRecords(v int64) *DescribePendingMaintenanceActionsInput {
  7468. s.MaxRecords = &v
  7469. return s
  7470. }
  7471. // SetResourceIdentifier sets the ResourceIdentifier field's value.
  7472. func (s *DescribePendingMaintenanceActionsInput) SetResourceIdentifier(v string) *DescribePendingMaintenanceActionsInput {
  7473. s.ResourceIdentifier = &v
  7474. return s
  7475. }
  7476. // Represents the output of DescribePendingMaintenanceActions.
  7477. type DescribePendingMaintenanceActionsOutput struct {
  7478. _ struct{} `type:"structure"`
  7479. // An optional pagination token provided by a previous request. If this parameter
  7480. // is specified, the response includes only records beyond the marker, up to
  7481. // the value specified by MaxRecords.
  7482. Marker *string `type:"string"`
  7483. // The maintenance actions to be applied.
  7484. PendingMaintenanceActions []*ResourcePendingMaintenanceActions `locationNameList:"ResourcePendingMaintenanceActions" type:"list"`
  7485. }
  7486. // String returns the string representation
  7487. func (s DescribePendingMaintenanceActionsOutput) String() string {
  7488. return awsutil.Prettify(s)
  7489. }
  7490. // GoString returns the string representation
  7491. func (s DescribePendingMaintenanceActionsOutput) GoString() string {
  7492. return s.String()
  7493. }
  7494. // SetMarker sets the Marker field's value.
  7495. func (s *DescribePendingMaintenanceActionsOutput) SetMarker(v string) *DescribePendingMaintenanceActionsOutput {
  7496. s.Marker = &v
  7497. return s
  7498. }
  7499. // SetPendingMaintenanceActions sets the PendingMaintenanceActions field's value.
  7500. func (s *DescribePendingMaintenanceActionsOutput) SetPendingMaintenanceActions(v []*ResourcePendingMaintenanceActions) *DescribePendingMaintenanceActionsOutput {
  7501. s.PendingMaintenanceActions = v
  7502. return s
  7503. }
  7504. // Network information for accessing a DB cluster or DB instance. Client programs
  7505. // must specify a valid endpoint to access these Amazon DocumentDB resources.
  7506. type Endpoint struct {
  7507. _ struct{} `type:"structure"`
  7508. // Specifies the DNS address of the DB instance.
  7509. Address *string `type:"string"`
  7510. // Specifies the ID that Amazon Route 53 assigns when you create a hosted zone.
  7511. HostedZoneId *string `type:"string"`
  7512. // Specifies the port that the database engine is listening on.
  7513. Port *int64 `type:"integer"`
  7514. }
  7515. // String returns the string representation
  7516. func (s Endpoint) String() string {
  7517. return awsutil.Prettify(s)
  7518. }
  7519. // GoString returns the string representation
  7520. func (s Endpoint) GoString() string {
  7521. return s.String()
  7522. }
  7523. // SetAddress sets the Address field's value.
  7524. func (s *Endpoint) SetAddress(v string) *Endpoint {
  7525. s.Address = &v
  7526. return s
  7527. }
  7528. // SetHostedZoneId sets the HostedZoneId field's value.
  7529. func (s *Endpoint) SetHostedZoneId(v string) *Endpoint {
  7530. s.HostedZoneId = &v
  7531. return s
  7532. }
  7533. // SetPort sets the Port field's value.
  7534. func (s *Endpoint) SetPort(v int64) *Endpoint {
  7535. s.Port = &v
  7536. return s
  7537. }
  7538. // Contains the result of a successful invocation of the DescribeEngineDefaultClusterParameters
  7539. // operation.
  7540. type EngineDefaults struct {
  7541. _ struct{} `type:"structure"`
  7542. // The name of the DB cluster parameter group family to return the engine parameter
  7543. // information for.
  7544. DBParameterGroupFamily *string `type:"string"`
  7545. // An optional pagination token provided by a previous request. If this parameter
  7546. // is specified, the response includes only records beyond the marker, up to
  7547. // the value specified by MaxRecords.
  7548. Marker *string `type:"string"`
  7549. // The parameters of a particular DB cluster parameter group family.
  7550. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  7551. }
  7552. // String returns the string representation
  7553. func (s EngineDefaults) String() string {
  7554. return awsutil.Prettify(s)
  7555. }
  7556. // GoString returns the string representation
  7557. func (s EngineDefaults) GoString() string {
  7558. return s.String()
  7559. }
  7560. // SetDBParameterGroupFamily sets the DBParameterGroupFamily field's value.
  7561. func (s *EngineDefaults) SetDBParameterGroupFamily(v string) *EngineDefaults {
  7562. s.DBParameterGroupFamily = &v
  7563. return s
  7564. }
  7565. // SetMarker sets the Marker field's value.
  7566. func (s *EngineDefaults) SetMarker(v string) *EngineDefaults {
  7567. s.Marker = &v
  7568. return s
  7569. }
  7570. // SetParameters sets the Parameters field's value.
  7571. func (s *EngineDefaults) SetParameters(v []*Parameter) *EngineDefaults {
  7572. s.Parameters = v
  7573. return s
  7574. }
  7575. // Detailed information about an event.
  7576. type Event struct {
  7577. _ struct{} `type:"structure"`
  7578. // Specifies the date and time of the event.
  7579. Date *time.Time `type:"timestamp"`
  7580. // Specifies the category for the event.
  7581. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  7582. // Provides the text of this event.
  7583. Message *string `type:"string"`
  7584. // The Amazon Resource Name (ARN) for the event.
  7585. SourceArn *string `type:"string"`
  7586. // Provides the identifier for the source of the event.
  7587. SourceIdentifier *string `type:"string"`
  7588. // Specifies the source type for this event.
  7589. SourceType *string `type:"string" enum:"SourceType"`
  7590. }
  7591. // String returns the string representation
  7592. func (s Event) String() string {
  7593. return awsutil.Prettify(s)
  7594. }
  7595. // GoString returns the string representation
  7596. func (s Event) GoString() string {
  7597. return s.String()
  7598. }
  7599. // SetDate sets the Date field's value.
  7600. func (s *Event) SetDate(v time.Time) *Event {
  7601. s.Date = &v
  7602. return s
  7603. }
  7604. // SetEventCategories sets the EventCategories field's value.
  7605. func (s *Event) SetEventCategories(v []*string) *Event {
  7606. s.EventCategories = v
  7607. return s
  7608. }
  7609. // SetMessage sets the Message field's value.
  7610. func (s *Event) SetMessage(v string) *Event {
  7611. s.Message = &v
  7612. return s
  7613. }
  7614. // SetSourceArn sets the SourceArn field's value.
  7615. func (s *Event) SetSourceArn(v string) *Event {
  7616. s.SourceArn = &v
  7617. return s
  7618. }
  7619. // SetSourceIdentifier sets the SourceIdentifier field's value.
  7620. func (s *Event) SetSourceIdentifier(v string) *Event {
  7621. s.SourceIdentifier = &v
  7622. return s
  7623. }
  7624. // SetSourceType sets the SourceType field's value.
  7625. func (s *Event) SetSourceType(v string) *Event {
  7626. s.SourceType = &v
  7627. return s
  7628. }
  7629. // An event source type, accompanied by one or more event category names.
  7630. type EventCategoriesMap struct {
  7631. _ struct{} `type:"structure"`
  7632. // The event categories for the specified source type.
  7633. EventCategories []*string `locationNameList:"EventCategory" type:"list"`
  7634. // The source type that the returned categories belong to.
  7635. SourceType *string `type:"string"`
  7636. }
  7637. // String returns the string representation
  7638. func (s EventCategoriesMap) String() string {
  7639. return awsutil.Prettify(s)
  7640. }
  7641. // GoString returns the string representation
  7642. func (s EventCategoriesMap) GoString() string {
  7643. return s.String()
  7644. }
  7645. // SetEventCategories sets the EventCategories field's value.
  7646. func (s *EventCategoriesMap) SetEventCategories(v []*string) *EventCategoriesMap {
  7647. s.EventCategories = v
  7648. return s
  7649. }
  7650. // SetSourceType sets the SourceType field's value.
  7651. func (s *EventCategoriesMap) SetSourceType(v string) *EventCategoriesMap {
  7652. s.SourceType = &v
  7653. return s
  7654. }
  7655. // Represents the input to FailoverDBCluster.
  7656. type FailoverDBClusterInput struct {
  7657. _ struct{} `type:"structure"`
  7658. // A DB cluster identifier to force a failover for. This parameter is not case
  7659. // sensitive.
  7660. //
  7661. // Constraints:
  7662. //
  7663. // * Must match the identifier of an existing DBCluster.
  7664. DBClusterIdentifier *string `type:"string"`
  7665. // The name of the instance to promote to the primary instance.
  7666. //
  7667. // You must specify the instance identifier for an Amazon DocumentDB replica
  7668. // in the DB cluster. For example, mydbcluster-replica1.
  7669. TargetDBInstanceIdentifier *string `type:"string"`
  7670. }
  7671. // String returns the string representation
  7672. func (s FailoverDBClusterInput) String() string {
  7673. return awsutil.Prettify(s)
  7674. }
  7675. // GoString returns the string representation
  7676. func (s FailoverDBClusterInput) GoString() string {
  7677. return s.String()
  7678. }
  7679. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  7680. func (s *FailoverDBClusterInput) SetDBClusterIdentifier(v string) *FailoverDBClusterInput {
  7681. s.DBClusterIdentifier = &v
  7682. return s
  7683. }
  7684. // SetTargetDBInstanceIdentifier sets the TargetDBInstanceIdentifier field's value.
  7685. func (s *FailoverDBClusterInput) SetTargetDBInstanceIdentifier(v string) *FailoverDBClusterInput {
  7686. s.TargetDBInstanceIdentifier = &v
  7687. return s
  7688. }
  7689. type FailoverDBClusterOutput struct {
  7690. _ struct{} `type:"structure"`
  7691. // Detailed information about a DB cluster.
  7692. DBCluster *DBCluster `type:"structure"`
  7693. }
  7694. // String returns the string representation
  7695. func (s FailoverDBClusterOutput) String() string {
  7696. return awsutil.Prettify(s)
  7697. }
  7698. // GoString returns the string representation
  7699. func (s FailoverDBClusterOutput) GoString() string {
  7700. return s.String()
  7701. }
  7702. // SetDBCluster sets the DBCluster field's value.
  7703. func (s *FailoverDBClusterOutput) SetDBCluster(v *DBCluster) *FailoverDBClusterOutput {
  7704. s.DBCluster = v
  7705. return s
  7706. }
  7707. // A named set of filter values, used to return a more specific list of results.
  7708. // You can use a filter to match a set of resources by specific criteria, such
  7709. // as IDs.
  7710. //
  7711. // Wildcards are not supported in filters.
  7712. type Filter struct {
  7713. _ struct{} `type:"structure"`
  7714. // The name of the filter. Filter names are case sensitive.
  7715. //
  7716. // Name is a required field
  7717. Name *string `type:"string" required:"true"`
  7718. // One or more filter values. Filter values are case sensitive.
  7719. //
  7720. // Values is a required field
  7721. Values []*string `locationNameList:"Value" type:"list" required:"true"`
  7722. }
  7723. // String returns the string representation
  7724. func (s Filter) String() string {
  7725. return awsutil.Prettify(s)
  7726. }
  7727. // GoString returns the string representation
  7728. func (s Filter) GoString() string {
  7729. return s.String()
  7730. }
  7731. // Validate inspects the fields of the type to determine if they are valid.
  7732. func (s *Filter) Validate() error {
  7733. invalidParams := request.ErrInvalidParams{Context: "Filter"}
  7734. if s.Name == nil {
  7735. invalidParams.Add(request.NewErrParamRequired("Name"))
  7736. }
  7737. if s.Values == nil {
  7738. invalidParams.Add(request.NewErrParamRequired("Values"))
  7739. }
  7740. if invalidParams.Len() > 0 {
  7741. return invalidParams
  7742. }
  7743. return nil
  7744. }
  7745. // SetName sets the Name field's value.
  7746. func (s *Filter) SetName(v string) *Filter {
  7747. s.Name = &v
  7748. return s
  7749. }
  7750. // SetValues sets the Values field's value.
  7751. func (s *Filter) SetValues(v []*string) *Filter {
  7752. s.Values = v
  7753. return s
  7754. }
  7755. // Represents the input to ListTagsForResource.
  7756. type ListTagsForResourceInput struct {
  7757. _ struct{} `type:"structure"`
  7758. // This parameter is not currently supported.
  7759. Filters []*Filter `locationNameList:"Filter" type:"list"`
  7760. // The Amazon DocumentDB resource with tags to be listed. This value is an Amazon
  7761. // Resource Name (ARN).
  7762. //
  7763. // ResourceName is a required field
  7764. ResourceName *string `type:"string" required:"true"`
  7765. }
  7766. // String returns the string representation
  7767. func (s ListTagsForResourceInput) String() string {
  7768. return awsutil.Prettify(s)
  7769. }
  7770. // GoString returns the string representation
  7771. func (s ListTagsForResourceInput) GoString() string {
  7772. return s.String()
  7773. }
  7774. // Validate inspects the fields of the type to determine if they are valid.
  7775. func (s *ListTagsForResourceInput) Validate() error {
  7776. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  7777. if s.ResourceName == nil {
  7778. invalidParams.Add(request.NewErrParamRequired("ResourceName"))
  7779. }
  7780. if s.Filters != nil {
  7781. for i, v := range s.Filters {
  7782. if v == nil {
  7783. continue
  7784. }
  7785. if err := v.Validate(); err != nil {
  7786. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  7787. }
  7788. }
  7789. }
  7790. if invalidParams.Len() > 0 {
  7791. return invalidParams
  7792. }
  7793. return nil
  7794. }
  7795. // SetFilters sets the Filters field's value.
  7796. func (s *ListTagsForResourceInput) SetFilters(v []*Filter) *ListTagsForResourceInput {
  7797. s.Filters = v
  7798. return s
  7799. }
  7800. // SetResourceName sets the ResourceName field's value.
  7801. func (s *ListTagsForResourceInput) SetResourceName(v string) *ListTagsForResourceInput {
  7802. s.ResourceName = &v
  7803. return s
  7804. }
  7805. // Represents the output of ListTagsForResource.
  7806. type ListTagsForResourceOutput struct {
  7807. _ struct{} `type:"structure"`
  7808. // A list of one or more tags.
  7809. TagList []*Tag `locationNameList:"Tag" type:"list"`
  7810. }
  7811. // String returns the string representation
  7812. func (s ListTagsForResourceOutput) String() string {
  7813. return awsutil.Prettify(s)
  7814. }
  7815. // GoString returns the string representation
  7816. func (s ListTagsForResourceOutput) GoString() string {
  7817. return s.String()
  7818. }
  7819. // SetTagList sets the TagList field's value.
  7820. func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput {
  7821. s.TagList = v
  7822. return s
  7823. }
  7824. // Represents the input to ModifyDBCluster.
  7825. type ModifyDBClusterInput struct {
  7826. _ struct{} `type:"structure"`
  7827. // A value that specifies whether the changes in this request and any pending
  7828. // changes are asynchronously applied as soon as possible, regardless of the
  7829. // PreferredMaintenanceWindow setting for the DB cluster. If this parameter
  7830. // is set to false, changes to the DB cluster are applied during the next maintenance
  7831. // window.
  7832. //
  7833. // The ApplyImmediately parameter affects only the NewDBClusterIdentifier and
  7834. // MasterUserPassword values. If you set this parameter value to false, the
  7835. // changes to the NewDBClusterIdentifier and MasterUserPassword values are applied
  7836. // during the next maintenance window. All other changes are applied immediately,
  7837. // regardless of the value of the ApplyImmediately parameter.
  7838. //
  7839. // Default: false
  7840. ApplyImmediately *bool `type:"boolean"`
  7841. // The number of days for which automated backups are retained. You must specify
  7842. // a minimum value of 1.
  7843. //
  7844. // Default: 1
  7845. //
  7846. // Constraints:
  7847. //
  7848. // * Must be a value from 1 to 35.
  7849. BackupRetentionPeriod *int64 `type:"integer"`
  7850. // The configuration setting for the log types to be enabled for export to Amazon
  7851. // CloudWatch Logs for a specific DB instance or DB cluster. The EnableLogTypes
  7852. // and DisableLogTypes arrays determine which logs are exported (or not exported)
  7853. // to CloudWatch Logs.
  7854. CloudwatchLogsExportConfiguration *CloudwatchLogsExportConfiguration `type:"structure"`
  7855. // The DB cluster identifier for the cluster that is being modified. This parameter
  7856. // is not case sensitive.
  7857. //
  7858. // Constraints:
  7859. //
  7860. // * Must match the identifier of an existing DBCluster.
  7861. //
  7862. // DBClusterIdentifier is a required field
  7863. DBClusterIdentifier *string `type:"string" required:"true"`
  7864. // The name of the DB cluster parameter group to use for the DB cluster.
  7865. DBClusterParameterGroupName *string `type:"string"`
  7866. // The version number of the database engine to which you want to upgrade. Changing
  7867. // this parameter results in an outage. The change is applied during the next
  7868. // maintenance window unless the ApplyImmediately parameter is set to true.
  7869. EngineVersion *string `type:"string"`
  7870. // The new password for the master database user. This password can contain
  7871. // any printable ASCII character except "/", """, or "@".
  7872. //
  7873. // Constraints: Must contain from 8 to 41 characters.
  7874. MasterUserPassword *string `type:"string"`
  7875. // The new DB cluster identifier for the DB cluster when renaming a DB cluster.
  7876. // This value is stored as a lowercase string.
  7877. //
  7878. // Constraints:
  7879. //
  7880. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  7881. //
  7882. // * The first character must be a letter.
  7883. //
  7884. // * Cannot end with a hyphen or contain two consecutive hyphens.
  7885. //
  7886. // Example: my-cluster2
  7887. NewDBClusterIdentifier *string `type:"string"`
  7888. // The port number on which the DB cluster accepts connections.
  7889. //
  7890. // Constraints: Must be a value from 1150 to 65535.
  7891. //
  7892. // Default: The same port as the original DB cluster.
  7893. Port *int64 `type:"integer"`
  7894. // The daily time range during which automated backups are created if automated
  7895. // backups are enabled, using the BackupRetentionPeriod parameter.
  7896. //
  7897. // The default is a 30-minute window selected at random from an 8-hour block
  7898. // of time for each AWS Region.
  7899. //
  7900. // Constraints:
  7901. //
  7902. // * Must be in the format hh24:mi-hh24:mi.
  7903. //
  7904. // * Must be in Universal Coordinated Time (UTC).
  7905. //
  7906. // * Must not conflict with the preferred maintenance window.
  7907. //
  7908. // * Must be at least 30 minutes.
  7909. PreferredBackupWindow *string `type:"string"`
  7910. // The weekly time range during which system maintenance can occur, in Universal
  7911. // Coordinated Time (UTC).
  7912. //
  7913. // Format: ddd:hh24:mi-ddd:hh24:mi
  7914. //
  7915. // The default is a 30-minute window selected at random from an 8-hour block
  7916. // of time for each AWS Region, occurring on a random day of the week.
  7917. //
  7918. // Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  7919. //
  7920. // Constraints: Minimum 30-minute window.
  7921. PreferredMaintenanceWindow *string `type:"string"`
  7922. // A list of virtual private cloud (VPC) security groups that the DB cluster
  7923. // will belong to.
  7924. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  7925. }
  7926. // String returns the string representation
  7927. func (s ModifyDBClusterInput) String() string {
  7928. return awsutil.Prettify(s)
  7929. }
  7930. // GoString returns the string representation
  7931. func (s ModifyDBClusterInput) GoString() string {
  7932. return s.String()
  7933. }
  7934. // Validate inspects the fields of the type to determine if they are valid.
  7935. func (s *ModifyDBClusterInput) Validate() error {
  7936. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterInput"}
  7937. if s.DBClusterIdentifier == nil {
  7938. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  7939. }
  7940. if invalidParams.Len() > 0 {
  7941. return invalidParams
  7942. }
  7943. return nil
  7944. }
  7945. // SetApplyImmediately sets the ApplyImmediately field's value.
  7946. func (s *ModifyDBClusterInput) SetApplyImmediately(v bool) *ModifyDBClusterInput {
  7947. s.ApplyImmediately = &v
  7948. return s
  7949. }
  7950. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  7951. func (s *ModifyDBClusterInput) SetBackupRetentionPeriod(v int64) *ModifyDBClusterInput {
  7952. s.BackupRetentionPeriod = &v
  7953. return s
  7954. }
  7955. // SetCloudwatchLogsExportConfiguration sets the CloudwatchLogsExportConfiguration field's value.
  7956. func (s *ModifyDBClusterInput) SetCloudwatchLogsExportConfiguration(v *CloudwatchLogsExportConfiguration) *ModifyDBClusterInput {
  7957. s.CloudwatchLogsExportConfiguration = v
  7958. return s
  7959. }
  7960. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  7961. func (s *ModifyDBClusterInput) SetDBClusterIdentifier(v string) *ModifyDBClusterInput {
  7962. s.DBClusterIdentifier = &v
  7963. return s
  7964. }
  7965. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  7966. func (s *ModifyDBClusterInput) SetDBClusterParameterGroupName(v string) *ModifyDBClusterInput {
  7967. s.DBClusterParameterGroupName = &v
  7968. return s
  7969. }
  7970. // SetEngineVersion sets the EngineVersion field's value.
  7971. func (s *ModifyDBClusterInput) SetEngineVersion(v string) *ModifyDBClusterInput {
  7972. s.EngineVersion = &v
  7973. return s
  7974. }
  7975. // SetMasterUserPassword sets the MasterUserPassword field's value.
  7976. func (s *ModifyDBClusterInput) SetMasterUserPassword(v string) *ModifyDBClusterInput {
  7977. s.MasterUserPassword = &v
  7978. return s
  7979. }
  7980. // SetNewDBClusterIdentifier sets the NewDBClusterIdentifier field's value.
  7981. func (s *ModifyDBClusterInput) SetNewDBClusterIdentifier(v string) *ModifyDBClusterInput {
  7982. s.NewDBClusterIdentifier = &v
  7983. return s
  7984. }
  7985. // SetPort sets the Port field's value.
  7986. func (s *ModifyDBClusterInput) SetPort(v int64) *ModifyDBClusterInput {
  7987. s.Port = &v
  7988. return s
  7989. }
  7990. // SetPreferredBackupWindow sets the PreferredBackupWindow field's value.
  7991. func (s *ModifyDBClusterInput) SetPreferredBackupWindow(v string) *ModifyDBClusterInput {
  7992. s.PreferredBackupWindow = &v
  7993. return s
  7994. }
  7995. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  7996. func (s *ModifyDBClusterInput) SetPreferredMaintenanceWindow(v string) *ModifyDBClusterInput {
  7997. s.PreferredMaintenanceWindow = &v
  7998. return s
  7999. }
  8000. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  8001. func (s *ModifyDBClusterInput) SetVpcSecurityGroupIds(v []*string) *ModifyDBClusterInput {
  8002. s.VpcSecurityGroupIds = v
  8003. return s
  8004. }
  8005. type ModifyDBClusterOutput struct {
  8006. _ struct{} `type:"structure"`
  8007. // Detailed information about a DB cluster.
  8008. DBCluster *DBCluster `type:"structure"`
  8009. }
  8010. // String returns the string representation
  8011. func (s ModifyDBClusterOutput) String() string {
  8012. return awsutil.Prettify(s)
  8013. }
  8014. // GoString returns the string representation
  8015. func (s ModifyDBClusterOutput) GoString() string {
  8016. return s.String()
  8017. }
  8018. // SetDBCluster sets the DBCluster field's value.
  8019. func (s *ModifyDBClusterOutput) SetDBCluster(v *DBCluster) *ModifyDBClusterOutput {
  8020. s.DBCluster = v
  8021. return s
  8022. }
  8023. // Represents the input to ModifyDBClusterParameterGroup.
  8024. type ModifyDBClusterParameterGroupInput struct {
  8025. _ struct{} `type:"structure"`
  8026. // The name of the DB cluster parameter group to modify.
  8027. //
  8028. // DBClusterParameterGroupName is a required field
  8029. DBClusterParameterGroupName *string `type:"string" required:"true"`
  8030. // A list of parameters in the DB cluster parameter group to modify.
  8031. //
  8032. // Parameters is a required field
  8033. Parameters []*Parameter `locationNameList:"Parameter" type:"list" required:"true"`
  8034. }
  8035. // String returns the string representation
  8036. func (s ModifyDBClusterParameterGroupInput) String() string {
  8037. return awsutil.Prettify(s)
  8038. }
  8039. // GoString returns the string representation
  8040. func (s ModifyDBClusterParameterGroupInput) GoString() string {
  8041. return s.String()
  8042. }
  8043. // Validate inspects the fields of the type to determine if they are valid.
  8044. func (s *ModifyDBClusterParameterGroupInput) Validate() error {
  8045. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterParameterGroupInput"}
  8046. if s.DBClusterParameterGroupName == nil {
  8047. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  8048. }
  8049. if s.Parameters == nil {
  8050. invalidParams.Add(request.NewErrParamRequired("Parameters"))
  8051. }
  8052. if invalidParams.Len() > 0 {
  8053. return invalidParams
  8054. }
  8055. return nil
  8056. }
  8057. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  8058. func (s *ModifyDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *ModifyDBClusterParameterGroupInput {
  8059. s.DBClusterParameterGroupName = &v
  8060. return s
  8061. }
  8062. // SetParameters sets the Parameters field's value.
  8063. func (s *ModifyDBClusterParameterGroupInput) SetParameters(v []*Parameter) *ModifyDBClusterParameterGroupInput {
  8064. s.Parameters = v
  8065. return s
  8066. }
  8067. // Contains the name of a DB cluster parameter group.
  8068. type ModifyDBClusterParameterGroupOutput struct {
  8069. _ struct{} `type:"structure"`
  8070. // The name of a DB cluster parameter group.
  8071. //
  8072. // Constraints:
  8073. //
  8074. // * Must be from 1 to 255 letters or numbers.
  8075. //
  8076. // * The first character must be a letter.
  8077. //
  8078. // * Cannot end with a hyphen or contain two consecutive hyphens.
  8079. //
  8080. // This value is stored as a lowercase string.
  8081. DBClusterParameterGroupName *string `type:"string"`
  8082. }
  8083. // String returns the string representation
  8084. func (s ModifyDBClusterParameterGroupOutput) String() string {
  8085. return awsutil.Prettify(s)
  8086. }
  8087. // GoString returns the string representation
  8088. func (s ModifyDBClusterParameterGroupOutput) GoString() string {
  8089. return s.String()
  8090. }
  8091. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  8092. func (s *ModifyDBClusterParameterGroupOutput) SetDBClusterParameterGroupName(v string) *ModifyDBClusterParameterGroupOutput {
  8093. s.DBClusterParameterGroupName = &v
  8094. return s
  8095. }
  8096. // Represents the input to ModifyDBClusterSnapshotAttribute.
  8097. type ModifyDBClusterSnapshotAttributeInput struct {
  8098. _ struct{} `type:"structure"`
  8099. // The name of the DB cluster snapshot attribute to modify.
  8100. //
  8101. // To manage authorization for other AWS accounts to copy or restore a manual
  8102. // DB cluster snapshot, set this value to restore.
  8103. //
  8104. // AttributeName is a required field
  8105. AttributeName *string `type:"string" required:"true"`
  8106. // The identifier for the DB cluster snapshot to modify the attributes for.
  8107. //
  8108. // DBClusterSnapshotIdentifier is a required field
  8109. DBClusterSnapshotIdentifier *string `type:"string" required:"true"`
  8110. // A list of DB cluster snapshot attributes to add to the attribute specified
  8111. // by AttributeName.
  8112. //
  8113. // To authorize other AWS accounts to copy or restore a manual DB cluster snapshot,
  8114. // set this list to include one or more AWS account IDs. To make the manual
  8115. // DB cluster snapshot restorable by any AWS account, set it to all. Do not
  8116. // add the all value for any manual DB cluster snapshots that contain private
  8117. // information that you don't want to be available to all AWS accounts.
  8118. ValuesToAdd []*string `locationNameList:"AttributeValue" type:"list"`
  8119. // A list of DB cluster snapshot attributes to remove from the attribute specified
  8120. // by AttributeName.
  8121. //
  8122. // To remove authorization for other AWS accounts to copy or restore a manual
  8123. // DB cluster snapshot, set this list to include one or more AWS account identifiers.
  8124. // To remove authorization for any AWS account to copy or restore the DB cluster
  8125. // snapshot, set it to all . If you specify all, an AWS account whose account
  8126. // ID is explicitly added to the restore attribute can still copy or restore
  8127. // a manual DB cluster snapshot.
  8128. ValuesToRemove []*string `locationNameList:"AttributeValue" type:"list"`
  8129. }
  8130. // String returns the string representation
  8131. func (s ModifyDBClusterSnapshotAttributeInput) String() string {
  8132. return awsutil.Prettify(s)
  8133. }
  8134. // GoString returns the string representation
  8135. func (s ModifyDBClusterSnapshotAttributeInput) GoString() string {
  8136. return s.String()
  8137. }
  8138. // Validate inspects the fields of the type to determine if they are valid.
  8139. func (s *ModifyDBClusterSnapshotAttributeInput) Validate() error {
  8140. invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterSnapshotAttributeInput"}
  8141. if s.AttributeName == nil {
  8142. invalidParams.Add(request.NewErrParamRequired("AttributeName"))
  8143. }
  8144. if s.DBClusterSnapshotIdentifier == nil {
  8145. invalidParams.Add(request.NewErrParamRequired("DBClusterSnapshotIdentifier"))
  8146. }
  8147. if invalidParams.Len() > 0 {
  8148. return invalidParams
  8149. }
  8150. return nil
  8151. }
  8152. // SetAttributeName sets the AttributeName field's value.
  8153. func (s *ModifyDBClusterSnapshotAttributeInput) SetAttributeName(v string) *ModifyDBClusterSnapshotAttributeInput {
  8154. s.AttributeName = &v
  8155. return s
  8156. }
  8157. // SetDBClusterSnapshotIdentifier sets the DBClusterSnapshotIdentifier field's value.
  8158. func (s *ModifyDBClusterSnapshotAttributeInput) SetDBClusterSnapshotIdentifier(v string) *ModifyDBClusterSnapshotAttributeInput {
  8159. s.DBClusterSnapshotIdentifier = &v
  8160. return s
  8161. }
  8162. // SetValuesToAdd sets the ValuesToAdd field's value.
  8163. func (s *ModifyDBClusterSnapshotAttributeInput) SetValuesToAdd(v []*string) *ModifyDBClusterSnapshotAttributeInput {
  8164. s.ValuesToAdd = v
  8165. return s
  8166. }
  8167. // SetValuesToRemove sets the ValuesToRemove field's value.
  8168. func (s *ModifyDBClusterSnapshotAttributeInput) SetValuesToRemove(v []*string) *ModifyDBClusterSnapshotAttributeInput {
  8169. s.ValuesToRemove = v
  8170. return s
  8171. }
  8172. type ModifyDBClusterSnapshotAttributeOutput struct {
  8173. _ struct{} `type:"structure"`
  8174. // Detailed information about the attributes that are associated with a DB cluster
  8175. // snapshot.
  8176. DBClusterSnapshotAttributesResult *DBClusterSnapshotAttributesResult `type:"structure"`
  8177. }
  8178. // String returns the string representation
  8179. func (s ModifyDBClusterSnapshotAttributeOutput) String() string {
  8180. return awsutil.Prettify(s)
  8181. }
  8182. // GoString returns the string representation
  8183. func (s ModifyDBClusterSnapshotAttributeOutput) GoString() string {
  8184. return s.String()
  8185. }
  8186. // SetDBClusterSnapshotAttributesResult sets the DBClusterSnapshotAttributesResult field's value.
  8187. func (s *ModifyDBClusterSnapshotAttributeOutput) SetDBClusterSnapshotAttributesResult(v *DBClusterSnapshotAttributesResult) *ModifyDBClusterSnapshotAttributeOutput {
  8188. s.DBClusterSnapshotAttributesResult = v
  8189. return s
  8190. }
  8191. // Represents the input to ModifyDBInstance.
  8192. type ModifyDBInstanceInput struct {
  8193. _ struct{} `type:"structure"`
  8194. // Specifies whether the modifications in this request and any pending modifications
  8195. // are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow
  8196. // setting for the DB instance.
  8197. //
  8198. // If this parameter is set to false, changes to the DB instance are applied
  8199. // during the next maintenance window. Some parameter changes can cause an outage
  8200. // and are applied on the next reboot.
  8201. //
  8202. // Default: false
  8203. ApplyImmediately *bool `type:"boolean"`
  8204. // Indicates that minor version upgrades are applied automatically to the DB
  8205. // instance during the maintenance window. Changing this parameter doesn't result
  8206. // in an outage except in the following case, and the change is asynchronously
  8207. // applied as soon as possible. An outage results if this parameter is set to
  8208. // true during the maintenance window, and a newer minor version is available,
  8209. // and Amazon DocumentDB has enabled automatic patching for that engine version.
  8210. AutoMinorVersionUpgrade *bool `type:"boolean"`
  8211. // The new compute and memory capacity of the DB instance; for example, db.m4.large.
  8212. // Not all DB instance classes are available in all AWS Regions.
  8213. //
  8214. // If you modify the DB instance class, an outage occurs during the change.
  8215. // The change is applied during the next maintenance window, unless ApplyImmediately
  8216. // is specified as true for this request.
  8217. //
  8218. // Default: Uses existing setting.
  8219. DBInstanceClass *string `type:"string"`
  8220. // The DB instance identifier. This value is stored as a lowercase string.
  8221. //
  8222. // Constraints:
  8223. //
  8224. // * Must match the identifier of an existing DBInstance.
  8225. //
  8226. // DBInstanceIdentifier is a required field
  8227. DBInstanceIdentifier *string `type:"string" required:"true"`
  8228. // The new DB instance identifier for the DB instance when renaming a DB instance.
  8229. // When you change the DB instance identifier, an instance reboot occurs immediately
  8230. // if you set Apply Immediately to true. It occurs during the next maintenance
  8231. // window if you set Apply Immediately to false. This value is stored as a lowercase
  8232. // string.
  8233. //
  8234. // Constraints:
  8235. //
  8236. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  8237. //
  8238. // * The first character must be a letter.
  8239. //
  8240. // * Cannot end with a hyphen or contain two consecutive hyphens.
  8241. //
  8242. // Example: mydbinstance
  8243. NewDBInstanceIdentifier *string `type:"string"`
  8244. // The weekly time range (in UTC) during which system maintenance can occur,
  8245. // which might result in an outage. Changing this parameter doesn't result in
  8246. // an outage except in the following situation, and the change is asynchronously
  8247. // applied as soon as possible. If there are pending actions that cause a reboot,
  8248. // and the maintenance window is changed to include the current time, changing
  8249. // this parameter causes a reboot of the DB instance. If you are moving this
  8250. // window to the current time, there must be at least 30 minutes between the
  8251. // current time and end of the window to ensure that pending changes are applied.
  8252. //
  8253. // Default: Uses existing setting.
  8254. //
  8255. // Format: ddd:hh24:mi-ddd:hh24:mi
  8256. //
  8257. // Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
  8258. //
  8259. // Constraints: Must be at least 30 minutes.
  8260. PreferredMaintenanceWindow *string `type:"string"`
  8261. // A value that specifies the order in which an Amazon DocumentDB replica is
  8262. // promoted to the primary instance after a failure of the existing primary
  8263. // instance.
  8264. //
  8265. // Default: 1
  8266. //
  8267. // Valid values: 0-15
  8268. PromotionTier *int64 `type:"integer"`
  8269. }
  8270. // String returns the string representation
  8271. func (s ModifyDBInstanceInput) String() string {
  8272. return awsutil.Prettify(s)
  8273. }
  8274. // GoString returns the string representation
  8275. func (s ModifyDBInstanceInput) GoString() string {
  8276. return s.String()
  8277. }
  8278. // Validate inspects the fields of the type to determine if they are valid.
  8279. func (s *ModifyDBInstanceInput) Validate() error {
  8280. invalidParams := request.ErrInvalidParams{Context: "ModifyDBInstanceInput"}
  8281. if s.DBInstanceIdentifier == nil {
  8282. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  8283. }
  8284. if invalidParams.Len() > 0 {
  8285. return invalidParams
  8286. }
  8287. return nil
  8288. }
  8289. // SetApplyImmediately sets the ApplyImmediately field's value.
  8290. func (s *ModifyDBInstanceInput) SetApplyImmediately(v bool) *ModifyDBInstanceInput {
  8291. s.ApplyImmediately = &v
  8292. return s
  8293. }
  8294. // SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
  8295. func (s *ModifyDBInstanceInput) SetAutoMinorVersionUpgrade(v bool) *ModifyDBInstanceInput {
  8296. s.AutoMinorVersionUpgrade = &v
  8297. return s
  8298. }
  8299. // SetDBInstanceClass sets the DBInstanceClass field's value.
  8300. func (s *ModifyDBInstanceInput) SetDBInstanceClass(v string) *ModifyDBInstanceInput {
  8301. s.DBInstanceClass = &v
  8302. return s
  8303. }
  8304. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  8305. func (s *ModifyDBInstanceInput) SetDBInstanceIdentifier(v string) *ModifyDBInstanceInput {
  8306. s.DBInstanceIdentifier = &v
  8307. return s
  8308. }
  8309. // SetNewDBInstanceIdentifier sets the NewDBInstanceIdentifier field's value.
  8310. func (s *ModifyDBInstanceInput) SetNewDBInstanceIdentifier(v string) *ModifyDBInstanceInput {
  8311. s.NewDBInstanceIdentifier = &v
  8312. return s
  8313. }
  8314. // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
  8315. func (s *ModifyDBInstanceInput) SetPreferredMaintenanceWindow(v string) *ModifyDBInstanceInput {
  8316. s.PreferredMaintenanceWindow = &v
  8317. return s
  8318. }
  8319. // SetPromotionTier sets the PromotionTier field's value.
  8320. func (s *ModifyDBInstanceInput) SetPromotionTier(v int64) *ModifyDBInstanceInput {
  8321. s.PromotionTier = &v
  8322. return s
  8323. }
  8324. type ModifyDBInstanceOutput struct {
  8325. _ struct{} `type:"structure"`
  8326. // Detailed information about a DB instance.
  8327. DBInstance *DBInstance `type:"structure"`
  8328. }
  8329. // String returns the string representation
  8330. func (s ModifyDBInstanceOutput) String() string {
  8331. return awsutil.Prettify(s)
  8332. }
  8333. // GoString returns the string representation
  8334. func (s ModifyDBInstanceOutput) GoString() string {
  8335. return s.String()
  8336. }
  8337. // SetDBInstance sets the DBInstance field's value.
  8338. func (s *ModifyDBInstanceOutput) SetDBInstance(v *DBInstance) *ModifyDBInstanceOutput {
  8339. s.DBInstance = v
  8340. return s
  8341. }
  8342. // Represents the input to ModifyDBSubnetGroup.
  8343. type ModifyDBSubnetGroupInput struct {
  8344. _ struct{} `type:"structure"`
  8345. // The description for the DB subnet group.
  8346. DBSubnetGroupDescription *string `type:"string"`
  8347. // The name for the DB subnet group. This value is stored as a lowercase string.
  8348. // You can't modify the default subnet group.
  8349. //
  8350. // Constraints: Must match the name of an existing DBSubnetGroup. Must not be
  8351. // default.
  8352. //
  8353. // Example: mySubnetgroup
  8354. //
  8355. // DBSubnetGroupName is a required field
  8356. DBSubnetGroupName *string `type:"string" required:"true"`
  8357. // The Amazon EC2 subnet IDs for the DB subnet group.
  8358. //
  8359. // SubnetIds is a required field
  8360. SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
  8361. }
  8362. // String returns the string representation
  8363. func (s ModifyDBSubnetGroupInput) String() string {
  8364. return awsutil.Prettify(s)
  8365. }
  8366. // GoString returns the string representation
  8367. func (s ModifyDBSubnetGroupInput) GoString() string {
  8368. return s.String()
  8369. }
  8370. // Validate inspects the fields of the type to determine if they are valid.
  8371. func (s *ModifyDBSubnetGroupInput) Validate() error {
  8372. invalidParams := request.ErrInvalidParams{Context: "ModifyDBSubnetGroupInput"}
  8373. if s.DBSubnetGroupName == nil {
  8374. invalidParams.Add(request.NewErrParamRequired("DBSubnetGroupName"))
  8375. }
  8376. if s.SubnetIds == nil {
  8377. invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
  8378. }
  8379. if invalidParams.Len() > 0 {
  8380. return invalidParams
  8381. }
  8382. return nil
  8383. }
  8384. // SetDBSubnetGroupDescription sets the DBSubnetGroupDescription field's value.
  8385. func (s *ModifyDBSubnetGroupInput) SetDBSubnetGroupDescription(v string) *ModifyDBSubnetGroupInput {
  8386. s.DBSubnetGroupDescription = &v
  8387. return s
  8388. }
  8389. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  8390. func (s *ModifyDBSubnetGroupInput) SetDBSubnetGroupName(v string) *ModifyDBSubnetGroupInput {
  8391. s.DBSubnetGroupName = &v
  8392. return s
  8393. }
  8394. // SetSubnetIds sets the SubnetIds field's value.
  8395. func (s *ModifyDBSubnetGroupInput) SetSubnetIds(v []*string) *ModifyDBSubnetGroupInput {
  8396. s.SubnetIds = v
  8397. return s
  8398. }
  8399. type ModifyDBSubnetGroupOutput struct {
  8400. _ struct{} `type:"structure"`
  8401. // Detailed information about a DB subnet group.
  8402. DBSubnetGroup *DBSubnetGroup `type:"structure"`
  8403. }
  8404. // String returns the string representation
  8405. func (s ModifyDBSubnetGroupOutput) String() string {
  8406. return awsutil.Prettify(s)
  8407. }
  8408. // GoString returns the string representation
  8409. func (s ModifyDBSubnetGroupOutput) GoString() string {
  8410. return s.String()
  8411. }
  8412. // SetDBSubnetGroup sets the DBSubnetGroup field's value.
  8413. func (s *ModifyDBSubnetGroupOutput) SetDBSubnetGroup(v *DBSubnetGroup) *ModifyDBSubnetGroupOutput {
  8414. s.DBSubnetGroup = v
  8415. return s
  8416. }
  8417. // The options that are available for a DB instance.
  8418. type OrderableDBInstanceOption struct {
  8419. _ struct{} `type:"structure"`
  8420. // A list of Availability Zones for a DB instance.
  8421. AvailabilityZones []*AvailabilityZone `locationNameList:"AvailabilityZone" type:"list"`
  8422. // The DB instance class for a DB instance.
  8423. DBInstanceClass *string `type:"string"`
  8424. // The engine type of a DB instance.
  8425. Engine *string `type:"string"`
  8426. // The engine version of a DB instance.
  8427. EngineVersion *string `type:"string"`
  8428. // The license model for a DB instance.
  8429. LicenseModel *string `type:"string"`
  8430. // Indicates whether a DB instance is in a virtual private cloud (VPC).
  8431. Vpc *bool `type:"boolean"`
  8432. }
  8433. // String returns the string representation
  8434. func (s OrderableDBInstanceOption) String() string {
  8435. return awsutil.Prettify(s)
  8436. }
  8437. // GoString returns the string representation
  8438. func (s OrderableDBInstanceOption) GoString() string {
  8439. return s.String()
  8440. }
  8441. // SetAvailabilityZones sets the AvailabilityZones field's value.
  8442. func (s *OrderableDBInstanceOption) SetAvailabilityZones(v []*AvailabilityZone) *OrderableDBInstanceOption {
  8443. s.AvailabilityZones = v
  8444. return s
  8445. }
  8446. // SetDBInstanceClass sets the DBInstanceClass field's value.
  8447. func (s *OrderableDBInstanceOption) SetDBInstanceClass(v string) *OrderableDBInstanceOption {
  8448. s.DBInstanceClass = &v
  8449. return s
  8450. }
  8451. // SetEngine sets the Engine field's value.
  8452. func (s *OrderableDBInstanceOption) SetEngine(v string) *OrderableDBInstanceOption {
  8453. s.Engine = &v
  8454. return s
  8455. }
  8456. // SetEngineVersion sets the EngineVersion field's value.
  8457. func (s *OrderableDBInstanceOption) SetEngineVersion(v string) *OrderableDBInstanceOption {
  8458. s.EngineVersion = &v
  8459. return s
  8460. }
  8461. // SetLicenseModel sets the LicenseModel field's value.
  8462. func (s *OrderableDBInstanceOption) SetLicenseModel(v string) *OrderableDBInstanceOption {
  8463. s.LicenseModel = &v
  8464. return s
  8465. }
  8466. // SetVpc sets the Vpc field's value.
  8467. func (s *OrderableDBInstanceOption) SetVpc(v bool) *OrderableDBInstanceOption {
  8468. s.Vpc = &v
  8469. return s
  8470. }
  8471. // Detailed information about an individual parameter.
  8472. type Parameter struct {
  8473. _ struct{} `type:"structure"`
  8474. // Specifies the valid range of values for the parameter.
  8475. AllowedValues *string `type:"string"`
  8476. // Indicates when to apply parameter updates.
  8477. ApplyMethod *string `type:"string" enum:"ApplyMethod"`
  8478. // Specifies the engine-specific parameters type.
  8479. ApplyType *string `type:"string"`
  8480. // Specifies the valid data type for the parameter.
  8481. DataType *string `type:"string"`
  8482. // Provides a description of the parameter.
  8483. Description *string `type:"string"`
  8484. // Indicates whether (true) or not (false) the parameter can be modified. Some
  8485. // parameters have security or operational implications that prevent them from
  8486. // being changed.
  8487. IsModifiable *bool `type:"boolean"`
  8488. // The earliest engine version to which the parameter can apply.
  8489. MinimumEngineVersion *string `type:"string"`
  8490. // Specifies the name of the parameter.
  8491. ParameterName *string `type:"string"`
  8492. // Specifies the value of the parameter.
  8493. ParameterValue *string `type:"string"`
  8494. // Indicates the source of the parameter value.
  8495. Source *string `type:"string"`
  8496. }
  8497. // String returns the string representation
  8498. func (s Parameter) String() string {
  8499. return awsutil.Prettify(s)
  8500. }
  8501. // GoString returns the string representation
  8502. func (s Parameter) GoString() string {
  8503. return s.String()
  8504. }
  8505. // SetAllowedValues sets the AllowedValues field's value.
  8506. func (s *Parameter) SetAllowedValues(v string) *Parameter {
  8507. s.AllowedValues = &v
  8508. return s
  8509. }
  8510. // SetApplyMethod sets the ApplyMethod field's value.
  8511. func (s *Parameter) SetApplyMethod(v string) *Parameter {
  8512. s.ApplyMethod = &v
  8513. return s
  8514. }
  8515. // SetApplyType sets the ApplyType field's value.
  8516. func (s *Parameter) SetApplyType(v string) *Parameter {
  8517. s.ApplyType = &v
  8518. return s
  8519. }
  8520. // SetDataType sets the DataType field's value.
  8521. func (s *Parameter) SetDataType(v string) *Parameter {
  8522. s.DataType = &v
  8523. return s
  8524. }
  8525. // SetDescription sets the Description field's value.
  8526. func (s *Parameter) SetDescription(v string) *Parameter {
  8527. s.Description = &v
  8528. return s
  8529. }
  8530. // SetIsModifiable sets the IsModifiable field's value.
  8531. func (s *Parameter) SetIsModifiable(v bool) *Parameter {
  8532. s.IsModifiable = &v
  8533. return s
  8534. }
  8535. // SetMinimumEngineVersion sets the MinimumEngineVersion field's value.
  8536. func (s *Parameter) SetMinimumEngineVersion(v string) *Parameter {
  8537. s.MinimumEngineVersion = &v
  8538. return s
  8539. }
  8540. // SetParameterName sets the ParameterName field's value.
  8541. func (s *Parameter) SetParameterName(v string) *Parameter {
  8542. s.ParameterName = &v
  8543. return s
  8544. }
  8545. // SetParameterValue sets the ParameterValue field's value.
  8546. func (s *Parameter) SetParameterValue(v string) *Parameter {
  8547. s.ParameterValue = &v
  8548. return s
  8549. }
  8550. // SetSource sets the Source field's value.
  8551. func (s *Parameter) SetSource(v string) *Parameter {
  8552. s.Source = &v
  8553. return s
  8554. }
  8555. // A list of the log types whose configuration is still pending. These log types
  8556. // are in the process of being activated or deactivated.
  8557. type PendingCloudwatchLogsExports struct {
  8558. _ struct{} `type:"structure"`
  8559. // Log types that are in the process of being enabled. After they are enabled,
  8560. // these log types are exported to Amazon CloudWatch Logs.
  8561. LogTypesToDisable []*string `type:"list"`
  8562. // Log types that are in the process of being deactivated. After they are deactivated,
  8563. // these log types aren't exported to CloudWatch Logs.
  8564. LogTypesToEnable []*string `type:"list"`
  8565. }
  8566. // String returns the string representation
  8567. func (s PendingCloudwatchLogsExports) String() string {
  8568. return awsutil.Prettify(s)
  8569. }
  8570. // GoString returns the string representation
  8571. func (s PendingCloudwatchLogsExports) GoString() string {
  8572. return s.String()
  8573. }
  8574. // SetLogTypesToDisable sets the LogTypesToDisable field's value.
  8575. func (s *PendingCloudwatchLogsExports) SetLogTypesToDisable(v []*string) *PendingCloudwatchLogsExports {
  8576. s.LogTypesToDisable = v
  8577. return s
  8578. }
  8579. // SetLogTypesToEnable sets the LogTypesToEnable field's value.
  8580. func (s *PendingCloudwatchLogsExports) SetLogTypesToEnable(v []*string) *PendingCloudwatchLogsExports {
  8581. s.LogTypesToEnable = v
  8582. return s
  8583. }
  8584. // Provides information about a pending maintenance action for a resource.
  8585. type PendingMaintenanceAction struct {
  8586. _ struct{} `type:"structure"`
  8587. // The type of pending maintenance action that is available for the resource.
  8588. Action *string `type:"string"`
  8589. // The date of the maintenance window when the action is applied. The maintenance
  8590. // action is applied to the resource during its first maintenance window after
  8591. // this date. If this date is specified, any next-maintenance opt-in requests
  8592. // are ignored.
  8593. AutoAppliedAfterDate *time.Time `type:"timestamp"`
  8594. // The effective date when the pending maintenance action is applied to the
  8595. // resource.
  8596. CurrentApplyDate *time.Time `type:"timestamp"`
  8597. // A description providing more detail about the maintenance action.
  8598. Description *string `type:"string"`
  8599. // The date when the maintenance action is automatically applied. The maintenance
  8600. // action is applied to the resource on this date regardless of the maintenance
  8601. // window for the resource. If this date is specified, any immediate opt-in
  8602. // requests are ignored.
  8603. ForcedApplyDate *time.Time `type:"timestamp"`
  8604. // Indicates the type of opt-in request that has been received for the resource.
  8605. OptInStatus *string `type:"string"`
  8606. }
  8607. // String returns the string representation
  8608. func (s PendingMaintenanceAction) String() string {
  8609. return awsutil.Prettify(s)
  8610. }
  8611. // GoString returns the string representation
  8612. func (s PendingMaintenanceAction) GoString() string {
  8613. return s.String()
  8614. }
  8615. // SetAction sets the Action field's value.
  8616. func (s *PendingMaintenanceAction) SetAction(v string) *PendingMaintenanceAction {
  8617. s.Action = &v
  8618. return s
  8619. }
  8620. // SetAutoAppliedAfterDate sets the AutoAppliedAfterDate field's value.
  8621. func (s *PendingMaintenanceAction) SetAutoAppliedAfterDate(v time.Time) *PendingMaintenanceAction {
  8622. s.AutoAppliedAfterDate = &v
  8623. return s
  8624. }
  8625. // SetCurrentApplyDate sets the CurrentApplyDate field's value.
  8626. func (s *PendingMaintenanceAction) SetCurrentApplyDate(v time.Time) *PendingMaintenanceAction {
  8627. s.CurrentApplyDate = &v
  8628. return s
  8629. }
  8630. // SetDescription sets the Description field's value.
  8631. func (s *PendingMaintenanceAction) SetDescription(v string) *PendingMaintenanceAction {
  8632. s.Description = &v
  8633. return s
  8634. }
  8635. // SetForcedApplyDate sets the ForcedApplyDate field's value.
  8636. func (s *PendingMaintenanceAction) SetForcedApplyDate(v time.Time) *PendingMaintenanceAction {
  8637. s.ForcedApplyDate = &v
  8638. return s
  8639. }
  8640. // SetOptInStatus sets the OptInStatus field's value.
  8641. func (s *PendingMaintenanceAction) SetOptInStatus(v string) *PendingMaintenanceAction {
  8642. s.OptInStatus = &v
  8643. return s
  8644. }
  8645. // One or more modified settings for a DB instance. These modified settings
  8646. // have been requested, but haven't been applied yet.
  8647. type PendingModifiedValues struct {
  8648. _ struct{} `type:"structure"`
  8649. // Contains the new AllocatedStorage size for the DB instance that will be applied
  8650. // or is currently being applied.
  8651. AllocatedStorage *int64 `type:"integer"`
  8652. // Specifies the pending number of days for which automated backups are retained.
  8653. BackupRetentionPeriod *int64 `type:"integer"`
  8654. // Specifies the identifier of the certificate authority (CA) certificate for
  8655. // the DB instance.
  8656. CACertificateIdentifier *string `type:"string"`
  8657. // Contains the new DBInstanceClass for the DB instance that will be applied
  8658. // or is currently being applied.
  8659. DBInstanceClass *string `type:"string"`
  8660. // Contains the new DBInstanceIdentifier for the DB instance that will be applied
  8661. // or is currently being applied.
  8662. DBInstanceIdentifier *string `type:"string"`
  8663. // The new DB subnet group for the DB instance.
  8664. DBSubnetGroupName *string `type:"string"`
  8665. // Indicates the database engine version.
  8666. EngineVersion *string `type:"string"`
  8667. // Specifies the new Provisioned IOPS value for the DB instance that will be
  8668. // applied or is currently being applied.
  8669. Iops *int64 `type:"integer"`
  8670. // The license model for the DB instance.
  8671. //
  8672. // Valid values: license-included, bring-your-own-license, general-public-license
  8673. LicenseModel *string `type:"string"`
  8674. // Contains the pending or currently in-progress change of the master credentials
  8675. // for the DB instance.
  8676. MasterUserPassword *string `type:"string"`
  8677. // Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.
  8678. MultiAZ *bool `type:"boolean"`
  8679. // A list of the log types whose configuration is still pending. These log types
  8680. // are in the process of being activated or deactivated.
  8681. PendingCloudwatchLogsExports *PendingCloudwatchLogsExports `type:"structure"`
  8682. // Specifies the pending port for the DB instance.
  8683. Port *int64 `type:"integer"`
  8684. // Specifies the storage type to be associated with the DB instance.
  8685. StorageType *string `type:"string"`
  8686. }
  8687. // String returns the string representation
  8688. func (s PendingModifiedValues) String() string {
  8689. return awsutil.Prettify(s)
  8690. }
  8691. // GoString returns the string representation
  8692. func (s PendingModifiedValues) GoString() string {
  8693. return s.String()
  8694. }
  8695. // SetAllocatedStorage sets the AllocatedStorage field's value.
  8696. func (s *PendingModifiedValues) SetAllocatedStorage(v int64) *PendingModifiedValues {
  8697. s.AllocatedStorage = &v
  8698. return s
  8699. }
  8700. // SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value.
  8701. func (s *PendingModifiedValues) SetBackupRetentionPeriod(v int64) *PendingModifiedValues {
  8702. s.BackupRetentionPeriod = &v
  8703. return s
  8704. }
  8705. // SetCACertificateIdentifier sets the CACertificateIdentifier field's value.
  8706. func (s *PendingModifiedValues) SetCACertificateIdentifier(v string) *PendingModifiedValues {
  8707. s.CACertificateIdentifier = &v
  8708. return s
  8709. }
  8710. // SetDBInstanceClass sets the DBInstanceClass field's value.
  8711. func (s *PendingModifiedValues) SetDBInstanceClass(v string) *PendingModifiedValues {
  8712. s.DBInstanceClass = &v
  8713. return s
  8714. }
  8715. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  8716. func (s *PendingModifiedValues) SetDBInstanceIdentifier(v string) *PendingModifiedValues {
  8717. s.DBInstanceIdentifier = &v
  8718. return s
  8719. }
  8720. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  8721. func (s *PendingModifiedValues) SetDBSubnetGroupName(v string) *PendingModifiedValues {
  8722. s.DBSubnetGroupName = &v
  8723. return s
  8724. }
  8725. // SetEngineVersion sets the EngineVersion field's value.
  8726. func (s *PendingModifiedValues) SetEngineVersion(v string) *PendingModifiedValues {
  8727. s.EngineVersion = &v
  8728. return s
  8729. }
  8730. // SetIops sets the Iops field's value.
  8731. func (s *PendingModifiedValues) SetIops(v int64) *PendingModifiedValues {
  8732. s.Iops = &v
  8733. return s
  8734. }
  8735. // SetLicenseModel sets the LicenseModel field's value.
  8736. func (s *PendingModifiedValues) SetLicenseModel(v string) *PendingModifiedValues {
  8737. s.LicenseModel = &v
  8738. return s
  8739. }
  8740. // SetMasterUserPassword sets the MasterUserPassword field's value.
  8741. func (s *PendingModifiedValues) SetMasterUserPassword(v string) *PendingModifiedValues {
  8742. s.MasterUserPassword = &v
  8743. return s
  8744. }
  8745. // SetMultiAZ sets the MultiAZ field's value.
  8746. func (s *PendingModifiedValues) SetMultiAZ(v bool) *PendingModifiedValues {
  8747. s.MultiAZ = &v
  8748. return s
  8749. }
  8750. // SetPendingCloudwatchLogsExports sets the PendingCloudwatchLogsExports field's value.
  8751. func (s *PendingModifiedValues) SetPendingCloudwatchLogsExports(v *PendingCloudwatchLogsExports) *PendingModifiedValues {
  8752. s.PendingCloudwatchLogsExports = v
  8753. return s
  8754. }
  8755. // SetPort sets the Port field's value.
  8756. func (s *PendingModifiedValues) SetPort(v int64) *PendingModifiedValues {
  8757. s.Port = &v
  8758. return s
  8759. }
  8760. // SetStorageType sets the StorageType field's value.
  8761. func (s *PendingModifiedValues) SetStorageType(v string) *PendingModifiedValues {
  8762. s.StorageType = &v
  8763. return s
  8764. }
  8765. // Represents the input to RebootDBInstance.
  8766. type RebootDBInstanceInput struct {
  8767. _ struct{} `type:"structure"`
  8768. // The DB instance identifier. This parameter is stored as a lowercase string.
  8769. //
  8770. // Constraints:
  8771. //
  8772. // * Must match the identifier of an existing DBInstance.
  8773. //
  8774. // DBInstanceIdentifier is a required field
  8775. DBInstanceIdentifier *string `type:"string" required:"true"`
  8776. // When true, the reboot is conducted through a Multi-AZ failover.
  8777. //
  8778. // Constraint: You can't specify true if the instance is not configured for
  8779. // Multi-AZ.
  8780. ForceFailover *bool `type:"boolean"`
  8781. }
  8782. // String returns the string representation
  8783. func (s RebootDBInstanceInput) String() string {
  8784. return awsutil.Prettify(s)
  8785. }
  8786. // GoString returns the string representation
  8787. func (s RebootDBInstanceInput) GoString() string {
  8788. return s.String()
  8789. }
  8790. // Validate inspects the fields of the type to determine if they are valid.
  8791. func (s *RebootDBInstanceInput) Validate() error {
  8792. invalidParams := request.ErrInvalidParams{Context: "RebootDBInstanceInput"}
  8793. if s.DBInstanceIdentifier == nil {
  8794. invalidParams.Add(request.NewErrParamRequired("DBInstanceIdentifier"))
  8795. }
  8796. if invalidParams.Len() > 0 {
  8797. return invalidParams
  8798. }
  8799. return nil
  8800. }
  8801. // SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value.
  8802. func (s *RebootDBInstanceInput) SetDBInstanceIdentifier(v string) *RebootDBInstanceInput {
  8803. s.DBInstanceIdentifier = &v
  8804. return s
  8805. }
  8806. // SetForceFailover sets the ForceFailover field's value.
  8807. func (s *RebootDBInstanceInput) SetForceFailover(v bool) *RebootDBInstanceInput {
  8808. s.ForceFailover = &v
  8809. return s
  8810. }
  8811. type RebootDBInstanceOutput struct {
  8812. _ struct{} `type:"structure"`
  8813. // Detailed information about a DB instance.
  8814. DBInstance *DBInstance `type:"structure"`
  8815. }
  8816. // String returns the string representation
  8817. func (s RebootDBInstanceOutput) String() string {
  8818. return awsutil.Prettify(s)
  8819. }
  8820. // GoString returns the string representation
  8821. func (s RebootDBInstanceOutput) GoString() string {
  8822. return s.String()
  8823. }
  8824. // SetDBInstance sets the DBInstance field's value.
  8825. func (s *RebootDBInstanceOutput) SetDBInstance(v *DBInstance) *RebootDBInstanceOutput {
  8826. s.DBInstance = v
  8827. return s
  8828. }
  8829. // Represents the input to RemoveTagsFromResource.
  8830. type RemoveTagsFromResourceInput struct {
  8831. _ struct{} `type:"structure"`
  8832. // The Amazon DocumentDB resource that the tags are removed from. This value
  8833. // is an Amazon Resource Name (ARN).
  8834. //
  8835. // ResourceName is a required field
  8836. ResourceName *string `type:"string" required:"true"`
  8837. // The tag key (name) of the tag to be removed.
  8838. //
  8839. // TagKeys is a required field
  8840. TagKeys []*string `type:"list" required:"true"`
  8841. }
  8842. // String returns the string representation
  8843. func (s RemoveTagsFromResourceInput) String() string {
  8844. return awsutil.Prettify(s)
  8845. }
  8846. // GoString returns the string representation
  8847. func (s RemoveTagsFromResourceInput) GoString() string {
  8848. return s.String()
  8849. }
  8850. // Validate inspects the fields of the type to determine if they are valid.
  8851. func (s *RemoveTagsFromResourceInput) Validate() error {
  8852. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
  8853. if s.ResourceName == nil {
  8854. invalidParams.Add(request.NewErrParamRequired("ResourceName"))
  8855. }
  8856. if s.TagKeys == nil {
  8857. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  8858. }
  8859. if invalidParams.Len() > 0 {
  8860. return invalidParams
  8861. }
  8862. return nil
  8863. }
  8864. // SetResourceName sets the ResourceName field's value.
  8865. func (s *RemoveTagsFromResourceInput) SetResourceName(v string) *RemoveTagsFromResourceInput {
  8866. s.ResourceName = &v
  8867. return s
  8868. }
  8869. // SetTagKeys sets the TagKeys field's value.
  8870. func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput {
  8871. s.TagKeys = v
  8872. return s
  8873. }
  8874. type RemoveTagsFromResourceOutput struct {
  8875. _ struct{} `type:"structure"`
  8876. }
  8877. // String returns the string representation
  8878. func (s RemoveTagsFromResourceOutput) String() string {
  8879. return awsutil.Prettify(s)
  8880. }
  8881. // GoString returns the string representation
  8882. func (s RemoveTagsFromResourceOutput) GoString() string {
  8883. return s.String()
  8884. }
  8885. // Represents the input to ResetDBClusterParameterGroup.
  8886. type ResetDBClusterParameterGroupInput struct {
  8887. _ struct{} `type:"structure"`
  8888. // The name of the DB cluster parameter group to reset.
  8889. //
  8890. // DBClusterParameterGroupName is a required field
  8891. DBClusterParameterGroupName *string `type:"string" required:"true"`
  8892. // A list of parameter names in the DB cluster parameter group to reset to the
  8893. // default values. You can't use this parameter if the ResetAllParameters parameter
  8894. // is set to true.
  8895. Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
  8896. // A value that is set to true to reset all parameters in the DB cluster parameter
  8897. // group to their default values, and false otherwise. You can't use this parameter
  8898. // if there is a list of parameter names specified for the Parameters parameter.
  8899. ResetAllParameters *bool `type:"boolean"`
  8900. }
  8901. // String returns the string representation
  8902. func (s ResetDBClusterParameterGroupInput) String() string {
  8903. return awsutil.Prettify(s)
  8904. }
  8905. // GoString returns the string representation
  8906. func (s ResetDBClusterParameterGroupInput) GoString() string {
  8907. return s.String()
  8908. }
  8909. // Validate inspects the fields of the type to determine if they are valid.
  8910. func (s *ResetDBClusterParameterGroupInput) Validate() error {
  8911. invalidParams := request.ErrInvalidParams{Context: "ResetDBClusterParameterGroupInput"}
  8912. if s.DBClusterParameterGroupName == nil {
  8913. invalidParams.Add(request.NewErrParamRequired("DBClusterParameterGroupName"))
  8914. }
  8915. if invalidParams.Len() > 0 {
  8916. return invalidParams
  8917. }
  8918. return nil
  8919. }
  8920. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  8921. func (s *ResetDBClusterParameterGroupInput) SetDBClusterParameterGroupName(v string) *ResetDBClusterParameterGroupInput {
  8922. s.DBClusterParameterGroupName = &v
  8923. return s
  8924. }
  8925. // SetParameters sets the Parameters field's value.
  8926. func (s *ResetDBClusterParameterGroupInput) SetParameters(v []*Parameter) *ResetDBClusterParameterGroupInput {
  8927. s.Parameters = v
  8928. return s
  8929. }
  8930. // SetResetAllParameters sets the ResetAllParameters field's value.
  8931. func (s *ResetDBClusterParameterGroupInput) SetResetAllParameters(v bool) *ResetDBClusterParameterGroupInput {
  8932. s.ResetAllParameters = &v
  8933. return s
  8934. }
  8935. // Contains the name of a DB cluster parameter group.
  8936. type ResetDBClusterParameterGroupOutput struct {
  8937. _ struct{} `type:"structure"`
  8938. // The name of a DB cluster parameter group.
  8939. //
  8940. // Constraints:
  8941. //
  8942. // * Must be from 1 to 255 letters or numbers.
  8943. //
  8944. // * The first character must be a letter.
  8945. //
  8946. // * Cannot end with a hyphen or contain two consecutive hyphens.
  8947. //
  8948. // This value is stored as a lowercase string.
  8949. DBClusterParameterGroupName *string `type:"string"`
  8950. }
  8951. // String returns the string representation
  8952. func (s ResetDBClusterParameterGroupOutput) String() string {
  8953. return awsutil.Prettify(s)
  8954. }
  8955. // GoString returns the string representation
  8956. func (s ResetDBClusterParameterGroupOutput) GoString() string {
  8957. return s.String()
  8958. }
  8959. // SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value.
  8960. func (s *ResetDBClusterParameterGroupOutput) SetDBClusterParameterGroupName(v string) *ResetDBClusterParameterGroupOutput {
  8961. s.DBClusterParameterGroupName = &v
  8962. return s
  8963. }
  8964. // Represents the output of ApplyPendingMaintenanceAction.
  8965. type ResourcePendingMaintenanceActions struct {
  8966. _ struct{} `type:"structure"`
  8967. // A list that provides details about the pending maintenance actions for the
  8968. // resource.
  8969. PendingMaintenanceActionDetails []*PendingMaintenanceAction `locationNameList:"PendingMaintenanceAction" type:"list"`
  8970. // The Amazon Resource Name (ARN) of the resource that has pending maintenance
  8971. // actions.
  8972. ResourceIdentifier *string `type:"string"`
  8973. }
  8974. // String returns the string representation
  8975. func (s ResourcePendingMaintenanceActions) String() string {
  8976. return awsutil.Prettify(s)
  8977. }
  8978. // GoString returns the string representation
  8979. func (s ResourcePendingMaintenanceActions) GoString() string {
  8980. return s.String()
  8981. }
  8982. // SetPendingMaintenanceActionDetails sets the PendingMaintenanceActionDetails field's value.
  8983. func (s *ResourcePendingMaintenanceActions) SetPendingMaintenanceActionDetails(v []*PendingMaintenanceAction) *ResourcePendingMaintenanceActions {
  8984. s.PendingMaintenanceActionDetails = v
  8985. return s
  8986. }
  8987. // SetResourceIdentifier sets the ResourceIdentifier field's value.
  8988. func (s *ResourcePendingMaintenanceActions) SetResourceIdentifier(v string) *ResourcePendingMaintenanceActions {
  8989. s.ResourceIdentifier = &v
  8990. return s
  8991. }
  8992. // Represents the input to RestoreDBClusterFromSnapshot.
  8993. type RestoreDBClusterFromSnapshotInput struct {
  8994. _ struct{} `type:"structure"`
  8995. // Provides the list of Amazon EC2 Availability Zones that instances in the
  8996. // restored DB cluster can be created in.
  8997. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"`
  8998. // The name of the DB cluster to create from the DB snapshot or DB cluster snapshot.
  8999. // This parameter isn't case sensitive.
  9000. //
  9001. // Constraints:
  9002. //
  9003. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  9004. //
  9005. // * The first character must be a letter.
  9006. //
  9007. // * Cannot end with a hyphen or contain two consecutive hyphens.
  9008. //
  9009. // Example: my-snapshot-id
  9010. //
  9011. // DBClusterIdentifier is a required field
  9012. DBClusterIdentifier *string `type:"string" required:"true"`
  9013. // The name of the DB subnet group to use for the new DB cluster.
  9014. //
  9015. // Constraints: If provided, must match the name of an existing DBSubnetGroup.
  9016. //
  9017. // Example: mySubnetgroup
  9018. DBSubnetGroupName *string `type:"string"`
  9019. // A list of log types that must be enabled for exporting to Amazon CloudWatch
  9020. // Logs.
  9021. EnableCloudwatchLogsExports []*string `type:"list"`
  9022. // The database engine to use for the new DB cluster.
  9023. //
  9024. // Default: The same as source.
  9025. //
  9026. // Constraint: Must be compatible with the engine of the source.
  9027. //
  9028. // Engine is a required field
  9029. Engine *string `type:"string" required:"true"`
  9030. // The version of the database engine to use for the new DB cluster.
  9031. EngineVersion *string `type:"string"`
  9032. // The AWS KMS key identifier to use when restoring an encrypted DB cluster
  9033. // from a DB snapshot or DB cluster snapshot.
  9034. //
  9035. // The AWS KMS key identifier is the Amazon Resource Name (ARN) for the AWS
  9036. // KMS encryption key. If you are restoring a DB cluster with the same AWS account
  9037. // that owns the AWS KMS encryption key used to encrypt the new DB cluster,
  9038. // then you can use the AWS KMS key alias instead of the ARN for the AWS KMS
  9039. // encryption key.
  9040. //
  9041. // If you do not specify a value for the KmsKeyId parameter, then the following
  9042. // occurs:
  9043. //
  9044. // * If the DB snapshot or DB cluster snapshot in SnapshotIdentifier is encrypted,
  9045. // then the restored DB cluster is encrypted using the AWS KMS key that was
  9046. // used to encrypt the DB snapshot or the DB cluster snapshot.
  9047. //
  9048. // * If the DB snapshot or the DB cluster snapshot in SnapshotIdentifier
  9049. // is not encrypted, then the restored DB cluster is not encrypted.
  9050. KmsKeyId *string `type:"string"`
  9051. // The port number on which the new DB cluster accepts connections.
  9052. //
  9053. // Constraints: Must be a value from 1150 to 65535.
  9054. //
  9055. // Default: The same port as the original DB cluster.
  9056. Port *int64 `type:"integer"`
  9057. // The identifier for the DB snapshot or DB cluster snapshot to restore from.
  9058. //
  9059. // You can use either the name or the Amazon Resource Name (ARN) to specify
  9060. // a DB cluster snapshot. However, you can use only the ARN to specify a DB
  9061. // snapshot.
  9062. //
  9063. // Constraints:
  9064. //
  9065. // * Must match the identifier of an existing snapshot.
  9066. //
  9067. // SnapshotIdentifier is a required field
  9068. SnapshotIdentifier *string `type:"string" required:"true"`
  9069. // The tags to be assigned to the restored DB cluster.
  9070. Tags []*Tag `locationNameList:"Tag" type:"list"`
  9071. // A list of virtual private cloud (VPC) security groups that the new DB cluster
  9072. // will belong to.
  9073. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  9074. }
  9075. // String returns the string representation
  9076. func (s RestoreDBClusterFromSnapshotInput) String() string {
  9077. return awsutil.Prettify(s)
  9078. }
  9079. // GoString returns the string representation
  9080. func (s RestoreDBClusterFromSnapshotInput) GoString() string {
  9081. return s.String()
  9082. }
  9083. // Validate inspects the fields of the type to determine if they are valid.
  9084. func (s *RestoreDBClusterFromSnapshotInput) Validate() error {
  9085. invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterFromSnapshotInput"}
  9086. if s.DBClusterIdentifier == nil {
  9087. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  9088. }
  9089. if s.Engine == nil {
  9090. invalidParams.Add(request.NewErrParamRequired("Engine"))
  9091. }
  9092. if s.SnapshotIdentifier == nil {
  9093. invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier"))
  9094. }
  9095. if invalidParams.Len() > 0 {
  9096. return invalidParams
  9097. }
  9098. return nil
  9099. }
  9100. // SetAvailabilityZones sets the AvailabilityZones field's value.
  9101. func (s *RestoreDBClusterFromSnapshotInput) SetAvailabilityZones(v []*string) *RestoreDBClusterFromSnapshotInput {
  9102. s.AvailabilityZones = v
  9103. return s
  9104. }
  9105. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  9106. func (s *RestoreDBClusterFromSnapshotInput) SetDBClusterIdentifier(v string) *RestoreDBClusterFromSnapshotInput {
  9107. s.DBClusterIdentifier = &v
  9108. return s
  9109. }
  9110. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  9111. func (s *RestoreDBClusterFromSnapshotInput) SetDBSubnetGroupName(v string) *RestoreDBClusterFromSnapshotInput {
  9112. s.DBSubnetGroupName = &v
  9113. return s
  9114. }
  9115. // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value.
  9116. func (s *RestoreDBClusterFromSnapshotInput) SetEnableCloudwatchLogsExports(v []*string) *RestoreDBClusterFromSnapshotInput {
  9117. s.EnableCloudwatchLogsExports = v
  9118. return s
  9119. }
  9120. // SetEngine sets the Engine field's value.
  9121. func (s *RestoreDBClusterFromSnapshotInput) SetEngine(v string) *RestoreDBClusterFromSnapshotInput {
  9122. s.Engine = &v
  9123. return s
  9124. }
  9125. // SetEngineVersion sets the EngineVersion field's value.
  9126. func (s *RestoreDBClusterFromSnapshotInput) SetEngineVersion(v string) *RestoreDBClusterFromSnapshotInput {
  9127. s.EngineVersion = &v
  9128. return s
  9129. }
  9130. // SetKmsKeyId sets the KmsKeyId field's value.
  9131. func (s *RestoreDBClusterFromSnapshotInput) SetKmsKeyId(v string) *RestoreDBClusterFromSnapshotInput {
  9132. s.KmsKeyId = &v
  9133. return s
  9134. }
  9135. // SetPort sets the Port field's value.
  9136. func (s *RestoreDBClusterFromSnapshotInput) SetPort(v int64) *RestoreDBClusterFromSnapshotInput {
  9137. s.Port = &v
  9138. return s
  9139. }
  9140. // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
  9141. func (s *RestoreDBClusterFromSnapshotInput) SetSnapshotIdentifier(v string) *RestoreDBClusterFromSnapshotInput {
  9142. s.SnapshotIdentifier = &v
  9143. return s
  9144. }
  9145. // SetTags sets the Tags field's value.
  9146. func (s *RestoreDBClusterFromSnapshotInput) SetTags(v []*Tag) *RestoreDBClusterFromSnapshotInput {
  9147. s.Tags = v
  9148. return s
  9149. }
  9150. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  9151. func (s *RestoreDBClusterFromSnapshotInput) SetVpcSecurityGroupIds(v []*string) *RestoreDBClusterFromSnapshotInput {
  9152. s.VpcSecurityGroupIds = v
  9153. return s
  9154. }
  9155. type RestoreDBClusterFromSnapshotOutput struct {
  9156. _ struct{} `type:"structure"`
  9157. // Detailed information about a DB cluster.
  9158. DBCluster *DBCluster `type:"structure"`
  9159. }
  9160. // String returns the string representation
  9161. func (s RestoreDBClusterFromSnapshotOutput) String() string {
  9162. return awsutil.Prettify(s)
  9163. }
  9164. // GoString returns the string representation
  9165. func (s RestoreDBClusterFromSnapshotOutput) GoString() string {
  9166. return s.String()
  9167. }
  9168. // SetDBCluster sets the DBCluster field's value.
  9169. func (s *RestoreDBClusterFromSnapshotOutput) SetDBCluster(v *DBCluster) *RestoreDBClusterFromSnapshotOutput {
  9170. s.DBCluster = v
  9171. return s
  9172. }
  9173. // Represents the input to RestoreDBClusterToPointInTime.
  9174. type RestoreDBClusterToPointInTimeInput struct {
  9175. _ struct{} `type:"structure"`
  9176. // The name of the new DB cluster to be created.
  9177. //
  9178. // Constraints:
  9179. //
  9180. // * Must contain from 1 to 63 letters, numbers, or hyphens.
  9181. //
  9182. // * The first character must be a letter.
  9183. //
  9184. // * Cannot end with a hyphen or contain two consecutive hyphens.
  9185. //
  9186. // DBClusterIdentifier is a required field
  9187. DBClusterIdentifier *string `type:"string" required:"true"`
  9188. // The DB subnet group name to use for the new DB cluster.
  9189. //
  9190. // Constraints: If provided, must match the name of an existing DBSubnetGroup.
  9191. //
  9192. // Example: mySubnetgroup
  9193. DBSubnetGroupName *string `type:"string"`
  9194. // A list of log types that must be enabled for exporting to Amazon CloudWatch
  9195. // Logs.
  9196. EnableCloudwatchLogsExports []*string `type:"list"`
  9197. // The AWS KMS key identifier to use when restoring an encrypted DB cluster
  9198. // from an encrypted DB cluster.
  9199. //
  9200. // The AWS KMS key identifier is the Amazon Resource Name (ARN) for the AWS
  9201. // KMS encryption key. If you are restoring a DB cluster with the same AWS account
  9202. // that owns the AWS KMS encryption key used to encrypt the new DB cluster,
  9203. // then you can use the AWS KMS key alias instead of the ARN for the AWS KMS
  9204. // encryption key.
  9205. //
  9206. // You can restore to a new DB cluster and encrypt the new DB cluster with an
  9207. // AWS KMS key that is different from the AWS KMS key used to encrypt the source
  9208. // DB cluster. The new DB cluster is encrypted with the AWS KMS key identified
  9209. // by the KmsKeyId parameter.
  9210. //
  9211. // If you do not specify a value for the KmsKeyId parameter, then the following
  9212. // occurs:
  9213. //
  9214. // * If the DB cluster is encrypted, then the restored DB cluster is encrypted
  9215. // using the AWS KMS key that was used to encrypt the source DB cluster.
  9216. //
  9217. // * If the DB cluster is not encrypted, then the restored DB cluster is
  9218. // not encrypted.
  9219. //
  9220. // If DBClusterIdentifier refers to a DB cluster that is not encrypted, then
  9221. // the restore request is rejected.
  9222. KmsKeyId *string `type:"string"`
  9223. // The port number on which the new DB cluster accepts connections.
  9224. //
  9225. // Constraints: Must be a value from 1150 to 65535.
  9226. //
  9227. // Default: The default port for the engine.
  9228. Port *int64 `type:"integer"`
  9229. // The date and time to restore the DB cluster to.
  9230. //
  9231. // Valid values: A time in Universal Coordinated Time (UTC) format.
  9232. //
  9233. // Constraints:
  9234. //
  9235. // * Must be before the latest restorable time for the DB instance.
  9236. //
  9237. // * Must be specified if the UseLatestRestorableTime parameter is not provided.
  9238. //
  9239. // * Cannot be specified if the UseLatestRestorableTime parameter is true.
  9240. //
  9241. // * Cannot be specified if the RestoreType parameter is copy-on-write.
  9242. //
  9243. // Example: 2015-03-07T23:45:00Z
  9244. RestoreToTime *time.Time `type:"timestamp"`
  9245. // The identifier of the source DB cluster from which to restore.
  9246. //
  9247. // Constraints:
  9248. //
  9249. // * Must match the identifier of an existing DBCluster.
  9250. //
  9251. // SourceDBClusterIdentifier is a required field
  9252. SourceDBClusterIdentifier *string `type:"string" required:"true"`
  9253. // The tags to be assigned to the restored DB cluster.
  9254. Tags []*Tag `locationNameList:"Tag" type:"list"`
  9255. // A value that is set to true to restore the DB cluster to the latest restorable
  9256. // backup time, and false otherwise.
  9257. //
  9258. // Default: false
  9259. //
  9260. // Constraints: Cannot be specified if the RestoreToTime parameter is provided.
  9261. UseLatestRestorableTime *bool `type:"boolean"`
  9262. // A list of VPC security groups that the new DB cluster belongs to.
  9263. VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
  9264. }
  9265. // String returns the string representation
  9266. func (s RestoreDBClusterToPointInTimeInput) String() string {
  9267. return awsutil.Prettify(s)
  9268. }
  9269. // GoString returns the string representation
  9270. func (s RestoreDBClusterToPointInTimeInput) GoString() string {
  9271. return s.String()
  9272. }
  9273. // Validate inspects the fields of the type to determine if they are valid.
  9274. func (s *RestoreDBClusterToPointInTimeInput) Validate() error {
  9275. invalidParams := request.ErrInvalidParams{Context: "RestoreDBClusterToPointInTimeInput"}
  9276. if s.DBClusterIdentifier == nil {
  9277. invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier"))
  9278. }
  9279. if s.SourceDBClusterIdentifier == nil {
  9280. invalidParams.Add(request.NewErrParamRequired("SourceDBClusterIdentifier"))
  9281. }
  9282. if invalidParams.Len() > 0 {
  9283. return invalidParams
  9284. }
  9285. return nil
  9286. }
  9287. // SetDBClusterIdentifier sets the DBClusterIdentifier field's value.
  9288. func (s *RestoreDBClusterToPointInTimeInput) SetDBClusterIdentifier(v string) *RestoreDBClusterToPointInTimeInput {
  9289. s.DBClusterIdentifier = &v
  9290. return s
  9291. }
  9292. // SetDBSubnetGroupName sets the DBSubnetGroupName field's value.
  9293. func (s *RestoreDBClusterToPointInTimeInput) SetDBSubnetGroupName(v string) *RestoreDBClusterToPointInTimeInput {
  9294. s.DBSubnetGroupName = &v
  9295. return s
  9296. }
  9297. // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value.
  9298. func (s *RestoreDBClusterToPointInTimeInput) SetEnableCloudwatchLogsExports(v []*string) *RestoreDBClusterToPointInTimeInput {
  9299. s.EnableCloudwatchLogsExports = v
  9300. return s
  9301. }
  9302. // SetKmsKeyId sets the KmsKeyId field's value.
  9303. func (s *RestoreDBClusterToPointInTimeInput) SetKmsKeyId(v string) *RestoreDBClusterToPointInTimeInput {
  9304. s.KmsKeyId = &v
  9305. return s
  9306. }
  9307. // SetPort sets the Port field's value.
  9308. func (s *RestoreDBClusterToPointInTimeInput) SetPort(v int64) *RestoreDBClusterToPointInTimeInput {
  9309. s.Port = &v
  9310. return s
  9311. }
  9312. // SetRestoreToTime sets the RestoreToTime field's value.
  9313. func (s *RestoreDBClusterToPointInTimeInput) SetRestoreToTime(v time.Time) *RestoreDBClusterToPointInTimeInput {
  9314. s.RestoreToTime = &v
  9315. return s
  9316. }
  9317. // SetSourceDBClusterIdentifier sets the SourceDBClusterIdentifier field's value.
  9318. func (s *RestoreDBClusterToPointInTimeInput) SetSourceDBClusterIdentifier(v string) *RestoreDBClusterToPointInTimeInput {
  9319. s.SourceDBClusterIdentifier = &v
  9320. return s
  9321. }
  9322. // SetTags sets the Tags field's value.
  9323. func (s *RestoreDBClusterToPointInTimeInput) SetTags(v []*Tag) *RestoreDBClusterToPointInTimeInput {
  9324. s.Tags = v
  9325. return s
  9326. }
  9327. // SetUseLatestRestorableTime sets the UseLatestRestorableTime field's value.
  9328. func (s *RestoreDBClusterToPointInTimeInput) SetUseLatestRestorableTime(v bool) *RestoreDBClusterToPointInTimeInput {
  9329. s.UseLatestRestorableTime = &v
  9330. return s
  9331. }
  9332. // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
  9333. func (s *RestoreDBClusterToPointInTimeInput) SetVpcSecurityGroupIds(v []*string) *RestoreDBClusterToPointInTimeInput {
  9334. s.VpcSecurityGroupIds = v
  9335. return s
  9336. }
  9337. type RestoreDBClusterToPointInTimeOutput struct {
  9338. _ struct{} `type:"structure"`
  9339. // Detailed information about a DB cluster.
  9340. DBCluster *DBCluster `type:"structure"`
  9341. }
  9342. // String returns the string representation
  9343. func (s RestoreDBClusterToPointInTimeOutput) String() string {
  9344. return awsutil.Prettify(s)
  9345. }
  9346. // GoString returns the string representation
  9347. func (s RestoreDBClusterToPointInTimeOutput) GoString() string {
  9348. return s.String()
  9349. }
  9350. // SetDBCluster sets the DBCluster field's value.
  9351. func (s *RestoreDBClusterToPointInTimeOutput) SetDBCluster(v *DBCluster) *RestoreDBClusterToPointInTimeOutput {
  9352. s.DBCluster = v
  9353. return s
  9354. }
  9355. // Detailed information about a subnet.
  9356. type Subnet struct {
  9357. _ struct{} `type:"structure"`
  9358. // Specifies the Availability Zone for the subnet.
  9359. SubnetAvailabilityZone *AvailabilityZone `type:"structure"`
  9360. // Specifies the identifier of the subnet.
  9361. SubnetIdentifier *string `type:"string"`
  9362. // Specifies the status of the subnet.
  9363. SubnetStatus *string `type:"string"`
  9364. }
  9365. // String returns the string representation
  9366. func (s Subnet) String() string {
  9367. return awsutil.Prettify(s)
  9368. }
  9369. // GoString returns the string representation
  9370. func (s Subnet) GoString() string {
  9371. return s.String()
  9372. }
  9373. // SetSubnetAvailabilityZone sets the SubnetAvailabilityZone field's value.
  9374. func (s *Subnet) SetSubnetAvailabilityZone(v *AvailabilityZone) *Subnet {
  9375. s.SubnetAvailabilityZone = v
  9376. return s
  9377. }
  9378. // SetSubnetIdentifier sets the SubnetIdentifier field's value.
  9379. func (s *Subnet) SetSubnetIdentifier(v string) *Subnet {
  9380. s.SubnetIdentifier = &v
  9381. return s
  9382. }
  9383. // SetSubnetStatus sets the SubnetStatus field's value.
  9384. func (s *Subnet) SetSubnetStatus(v string) *Subnet {
  9385. s.SubnetStatus = &v
  9386. return s
  9387. }
  9388. // Metadata assigned to an Amazon DocumentDB resource consisting of a key-value
  9389. // pair.
  9390. type Tag struct {
  9391. _ struct{} `type:"structure"`
  9392. // The required name of the tag. The string value can be from 1 to 128 Unicode
  9393. // characters in length and can't be prefixed with "aws:" or "rds:". The string
  9394. // can contain only the set of Unicode letters, digits, white space, '_', '.',
  9395. // '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
  9396. Key *string `type:"string"`
  9397. // The optional value of the tag. The string value can be from 1 to 256 Unicode
  9398. // characters in length and can't be prefixed with "aws:" or "rds:". The string
  9399. // can contain only the set of Unicode letters, digits, white space, '_', '.',
  9400. // '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
  9401. Value *string `type:"string"`
  9402. }
  9403. // String returns the string representation
  9404. func (s Tag) String() string {
  9405. return awsutil.Prettify(s)
  9406. }
  9407. // GoString returns the string representation
  9408. func (s Tag) GoString() string {
  9409. return s.String()
  9410. }
  9411. // SetKey sets the Key field's value.
  9412. func (s *Tag) SetKey(v string) *Tag {
  9413. s.Key = &v
  9414. return s
  9415. }
  9416. // SetValue sets the Value field's value.
  9417. func (s *Tag) SetValue(v string) *Tag {
  9418. s.Value = &v
  9419. return s
  9420. }
  9421. // The version of the database engine that a DB instance can be upgraded to.
  9422. type UpgradeTarget struct {
  9423. _ struct{} `type:"structure"`
  9424. // A value that indicates whether the target version is applied to any source
  9425. // DB instances that have AutoMinorVersionUpgrade set to true.
  9426. AutoUpgrade *bool `type:"boolean"`
  9427. // The version of the database engine that a DB instance can be upgraded to.
  9428. Description *string `type:"string"`
  9429. // The name of the upgrade target database engine.
  9430. Engine *string `type:"string"`
  9431. // The version number of the upgrade target database engine.
  9432. EngineVersion *string `type:"string"`
  9433. // A value that indicates whether a database engine is upgraded to a major version.
  9434. IsMajorVersionUpgrade *bool `type:"boolean"`
  9435. }
  9436. // String returns the string representation
  9437. func (s UpgradeTarget) String() string {
  9438. return awsutil.Prettify(s)
  9439. }
  9440. // GoString returns the string representation
  9441. func (s UpgradeTarget) GoString() string {
  9442. return s.String()
  9443. }
  9444. // SetAutoUpgrade sets the AutoUpgrade field's value.
  9445. func (s *UpgradeTarget) SetAutoUpgrade(v bool) *UpgradeTarget {
  9446. s.AutoUpgrade = &v
  9447. return s
  9448. }
  9449. // SetDescription sets the Description field's value.
  9450. func (s *UpgradeTarget) SetDescription(v string) *UpgradeTarget {
  9451. s.Description = &v
  9452. return s
  9453. }
  9454. // SetEngine sets the Engine field's value.
  9455. func (s *UpgradeTarget) SetEngine(v string) *UpgradeTarget {
  9456. s.Engine = &v
  9457. return s
  9458. }
  9459. // SetEngineVersion sets the EngineVersion field's value.
  9460. func (s *UpgradeTarget) SetEngineVersion(v string) *UpgradeTarget {
  9461. s.EngineVersion = &v
  9462. return s
  9463. }
  9464. // SetIsMajorVersionUpgrade sets the IsMajorVersionUpgrade field's value.
  9465. func (s *UpgradeTarget) SetIsMajorVersionUpgrade(v bool) *UpgradeTarget {
  9466. s.IsMajorVersionUpgrade = &v
  9467. return s
  9468. }
  9469. // Used as a response element for queries on virtual private cloud (VPC) security
  9470. // group membership.
  9471. type VpcSecurityGroupMembership struct {
  9472. _ struct{} `type:"structure"`
  9473. // The status of the VPC security group.
  9474. Status *string `type:"string"`
  9475. // The name of the VPC security group.
  9476. VpcSecurityGroupId *string `type:"string"`
  9477. }
  9478. // String returns the string representation
  9479. func (s VpcSecurityGroupMembership) String() string {
  9480. return awsutil.Prettify(s)
  9481. }
  9482. // GoString returns the string representation
  9483. func (s VpcSecurityGroupMembership) GoString() string {
  9484. return s.String()
  9485. }
  9486. // SetStatus sets the Status field's value.
  9487. func (s *VpcSecurityGroupMembership) SetStatus(v string) *VpcSecurityGroupMembership {
  9488. s.Status = &v
  9489. return s
  9490. }
  9491. // SetVpcSecurityGroupId sets the VpcSecurityGroupId field's value.
  9492. func (s *VpcSecurityGroupMembership) SetVpcSecurityGroupId(v string) *VpcSecurityGroupMembership {
  9493. s.VpcSecurityGroupId = &v
  9494. return s
  9495. }
  9496. const (
  9497. // ApplyMethodImmediate is a ApplyMethod enum value
  9498. ApplyMethodImmediate = "immediate"
  9499. // ApplyMethodPendingReboot is a ApplyMethod enum value
  9500. ApplyMethodPendingReboot = "pending-reboot"
  9501. )
  9502. const (
  9503. // SourceTypeDbInstance is a SourceType enum value
  9504. SourceTypeDbInstance = "db-instance"
  9505. // SourceTypeDbParameterGroup is a SourceType enum value
  9506. SourceTypeDbParameterGroup = "db-parameter-group"
  9507. // SourceTypeDbSecurityGroup is a SourceType enum value
  9508. SourceTypeDbSecurityGroup = "db-security-group"
  9509. // SourceTypeDbSnapshot is a SourceType enum value
  9510. SourceTypeDbSnapshot = "db-snapshot"
  9511. // SourceTypeDbCluster is a SourceType enum value
  9512. SourceTypeDbCluster = "db-cluster"
  9513. // SourceTypeDbClusterSnapshot is a SourceType enum value
  9514. SourceTypeDbClusterSnapshot = "db-cluster-snapshot"
  9515. )