| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package redshift
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/query"
- )
- const opAcceptReservedNodeExchange = "AcceptReservedNodeExchange"
- // AcceptReservedNodeExchangeRequest generates a "aws/request.Request" representing the
- // client's request for the AcceptReservedNodeExchange operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AcceptReservedNodeExchange for more information on using the AcceptReservedNodeExchange
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AcceptReservedNodeExchangeRequest method.
- // req, resp := client.AcceptReservedNodeExchangeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AcceptReservedNodeExchange
- func (c *Redshift) AcceptReservedNodeExchangeRequest(input *AcceptReservedNodeExchangeInput) (req *request.Request, output *AcceptReservedNodeExchangeOutput) {
- op := &request.Operation{
- Name: opAcceptReservedNodeExchange,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AcceptReservedNodeExchangeInput{}
- }
- output = &AcceptReservedNodeExchangeOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // AcceptReservedNodeExchange API operation for Amazon Redshift.
- //
- // Exchanges a DC1 Reserved Node for a DC2 Reserved Node with no changes to
- // the configuration (term, payment type, or number of nodes) and no additional
- // costs.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation AcceptReservedNodeExchange for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeReservedNodeNotFoundFault "ReservedNodeNotFound"
- // The specified reserved compute node not found.
- //
- // * ErrCodeInvalidReservedNodeStateFault "InvalidReservedNodeState"
- // Indicates that the Reserved Node being exchanged is not in an active state.
- //
- // * ErrCodeReservedNodeAlreadyMigratedFault "ReservedNodeAlreadyMigrated"
- // Indicates that the reserved node has already been exchanged.
- //
- // * ErrCodeReservedNodeOfferingNotFoundFault "ReservedNodeOfferingNotFound"
- // Specified offering does not exist.
- //
- // * ErrCodeUnsupportedOperationFault "UnsupportedOperation"
- // The requested operation isn't supported.
- //
- // * ErrCodeDependentServiceUnavailableFault "DependentServiceUnavailableFault"
- // Your request cannot be completed because a dependent internal service is
- // temporarily unavailable. Wait 30 to 60 seconds and try again.
- //
- // * ErrCodeReservedNodeAlreadyExistsFault "ReservedNodeAlreadyExists"
- // User already has a reservation with the given identifier.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AcceptReservedNodeExchange
- func (c *Redshift) AcceptReservedNodeExchange(input *AcceptReservedNodeExchangeInput) (*AcceptReservedNodeExchangeOutput, error) {
- req, out := c.AcceptReservedNodeExchangeRequest(input)
- return out, req.Send()
- }
- // AcceptReservedNodeExchangeWithContext is the same as AcceptReservedNodeExchange with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AcceptReservedNodeExchange for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) AcceptReservedNodeExchangeWithContext(ctx aws.Context, input *AcceptReservedNodeExchangeInput, opts ...request.Option) (*AcceptReservedNodeExchangeOutput, error) {
- req, out := c.AcceptReservedNodeExchangeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAuthorizeClusterSecurityGroupIngress = "AuthorizeClusterSecurityGroupIngress"
- // AuthorizeClusterSecurityGroupIngressRequest generates a "aws/request.Request" representing the
- // client's request for the AuthorizeClusterSecurityGroupIngress operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AuthorizeClusterSecurityGroupIngress for more information on using the AuthorizeClusterSecurityGroupIngress
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AuthorizeClusterSecurityGroupIngressRequest method.
- // req, resp := client.AuthorizeClusterSecurityGroupIngressRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeClusterSecurityGroupIngress
- func (c *Redshift) AuthorizeClusterSecurityGroupIngressRequest(input *AuthorizeClusterSecurityGroupIngressInput) (req *request.Request, output *AuthorizeClusterSecurityGroupIngressOutput) {
- op := &request.Operation{
- Name: opAuthorizeClusterSecurityGroupIngress,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AuthorizeClusterSecurityGroupIngressInput{}
- }
- output = &AuthorizeClusterSecurityGroupIngressOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // AuthorizeClusterSecurityGroupIngress API operation for Amazon Redshift.
- //
- // Adds an inbound (ingress) rule to an Amazon Redshift security group. Depending
- // on whether the application accessing your cluster is running on the Internet
- // or an Amazon EC2 instance, you can authorize inbound access to either a Classless
- // Interdomain Routing (CIDR)/Internet Protocol (IP) range or to an Amazon EC2
- // security group. You can add as many as 20 ingress rules to an Amazon Redshift
- // security group.
- //
- // If you authorize access to an Amazon EC2 security group, specify EC2SecurityGroupName
- // and EC2SecurityGroupOwnerId. The Amazon EC2 security group and Amazon Redshift
- // cluster must be in the same AWS Region.
- //
- // If you authorize access to a CIDR/IP address range, specify CIDRIP. For an
- // overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain
- // Routing (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing).
- //
- // You must also associate the security group with a cluster so that clients
- // running on these IP addresses or the EC2 instance are authorized to connect
- // to the cluster. For information about managing security groups, go to Working
- // with Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation AuthorizeClusterSecurityGroupIngress for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound"
- // The cluster security group name does not refer to an existing cluster security
- // group.
- //
- // * ErrCodeInvalidClusterSecurityGroupStateFault "InvalidClusterSecurityGroupState"
- // The state of the cluster security group is not available.
- //
- // * ErrCodeAuthorizationAlreadyExistsFault "AuthorizationAlreadyExists"
- // The specified CIDR block or EC2 security group is already authorized for
- // the specified cluster security group.
- //
- // * ErrCodeAuthorizationQuotaExceededFault "AuthorizationQuotaExceeded"
- // The authorization quota for the cluster security group has been reached.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeClusterSecurityGroupIngress
- func (c *Redshift) AuthorizeClusterSecurityGroupIngress(input *AuthorizeClusterSecurityGroupIngressInput) (*AuthorizeClusterSecurityGroupIngressOutput, error) {
- req, out := c.AuthorizeClusterSecurityGroupIngressRequest(input)
- return out, req.Send()
- }
- // AuthorizeClusterSecurityGroupIngressWithContext is the same as AuthorizeClusterSecurityGroupIngress with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AuthorizeClusterSecurityGroupIngress for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) AuthorizeClusterSecurityGroupIngressWithContext(ctx aws.Context, input *AuthorizeClusterSecurityGroupIngressInput, opts ...request.Option) (*AuthorizeClusterSecurityGroupIngressOutput, error) {
- req, out := c.AuthorizeClusterSecurityGroupIngressRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAuthorizeSnapshotAccess = "AuthorizeSnapshotAccess"
- // AuthorizeSnapshotAccessRequest generates a "aws/request.Request" representing the
- // client's request for the AuthorizeSnapshotAccess operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AuthorizeSnapshotAccess for more information on using the AuthorizeSnapshotAccess
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AuthorizeSnapshotAccessRequest method.
- // req, resp := client.AuthorizeSnapshotAccessRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeSnapshotAccess
- func (c *Redshift) AuthorizeSnapshotAccessRequest(input *AuthorizeSnapshotAccessInput) (req *request.Request, output *AuthorizeSnapshotAccessOutput) {
- op := &request.Operation{
- Name: opAuthorizeSnapshotAccess,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AuthorizeSnapshotAccessInput{}
- }
- output = &AuthorizeSnapshotAccessOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // AuthorizeSnapshotAccess API operation for Amazon Redshift.
- //
- // Authorizes the specified AWS customer account to restore the specified snapshot.
- //
- // For more information about working with snapshots, go to Amazon Redshift
- // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation AuthorizeSnapshotAccess for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound"
- // The snapshot identifier does not refer to an existing cluster snapshot.
- //
- // * ErrCodeAuthorizationAlreadyExistsFault "AuthorizationAlreadyExists"
- // The specified CIDR block or EC2 security group is already authorized for
- // the specified cluster security group.
- //
- // * ErrCodeAuthorizationQuotaExceededFault "AuthorizationQuotaExceeded"
- // The authorization quota for the cluster security group has been reached.
- //
- // * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault"
- // The request cannot be completed because a dependent service is throttling
- // requests made by Amazon Redshift on your behalf. Wait and retry the request.
- //
- // * ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState"
- // The specified cluster snapshot is not in the available state, or other accounts
- // are authorized to access the snapshot.
- //
- // * ErrCodeLimitExceededFault "LimitExceededFault"
- // The encryption key has exceeded its grant limit in AWS KMS.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/AuthorizeSnapshotAccess
- func (c *Redshift) AuthorizeSnapshotAccess(input *AuthorizeSnapshotAccessInput) (*AuthorizeSnapshotAccessOutput, error) {
- req, out := c.AuthorizeSnapshotAccessRequest(input)
- return out, req.Send()
- }
- // AuthorizeSnapshotAccessWithContext is the same as AuthorizeSnapshotAccess with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AuthorizeSnapshotAccess for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) AuthorizeSnapshotAccessWithContext(ctx aws.Context, input *AuthorizeSnapshotAccessInput, opts ...request.Option) (*AuthorizeSnapshotAccessOutput, error) {
- req, out := c.AuthorizeSnapshotAccessRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opBatchDeleteClusterSnapshots = "BatchDeleteClusterSnapshots"
- // BatchDeleteClusterSnapshotsRequest generates a "aws/request.Request" representing the
- // client's request for the BatchDeleteClusterSnapshots operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See BatchDeleteClusterSnapshots for more information on using the BatchDeleteClusterSnapshots
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the BatchDeleteClusterSnapshotsRequest method.
- // req, resp := client.BatchDeleteClusterSnapshotsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/BatchDeleteClusterSnapshots
- func (c *Redshift) BatchDeleteClusterSnapshotsRequest(input *BatchDeleteClusterSnapshotsInput) (req *request.Request, output *BatchDeleteClusterSnapshotsOutput) {
- op := &request.Operation{
- Name: opBatchDeleteClusterSnapshots,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &BatchDeleteClusterSnapshotsInput{}
- }
- output = &BatchDeleteClusterSnapshotsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // BatchDeleteClusterSnapshots API operation for Amazon Redshift.
- //
- // Deletes a set of cluster snapshots.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation BatchDeleteClusterSnapshots for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeBatchDeleteRequestSizeExceededFault "BatchDeleteRequestSizeExceeded"
- // The maximum number for a batch delete of snapshots has been reached. The
- // limit is 100.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/BatchDeleteClusterSnapshots
- func (c *Redshift) BatchDeleteClusterSnapshots(input *BatchDeleteClusterSnapshotsInput) (*BatchDeleteClusterSnapshotsOutput, error) {
- req, out := c.BatchDeleteClusterSnapshotsRequest(input)
- return out, req.Send()
- }
- // BatchDeleteClusterSnapshotsWithContext is the same as BatchDeleteClusterSnapshots with the addition of
- // the ability to pass a context and additional request options.
- //
- // See BatchDeleteClusterSnapshots for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) BatchDeleteClusterSnapshotsWithContext(ctx aws.Context, input *BatchDeleteClusterSnapshotsInput, opts ...request.Option) (*BatchDeleteClusterSnapshotsOutput, error) {
- req, out := c.BatchDeleteClusterSnapshotsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opBatchModifyClusterSnapshots = "BatchModifyClusterSnapshots"
- // BatchModifyClusterSnapshotsRequest generates a "aws/request.Request" representing the
- // client's request for the BatchModifyClusterSnapshots operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See BatchModifyClusterSnapshots for more information on using the BatchModifyClusterSnapshots
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the BatchModifyClusterSnapshotsRequest method.
- // req, resp := client.BatchModifyClusterSnapshotsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/BatchModifyClusterSnapshots
- func (c *Redshift) BatchModifyClusterSnapshotsRequest(input *BatchModifyClusterSnapshotsInput) (req *request.Request, output *BatchModifyClusterSnapshotsOutput) {
- op := &request.Operation{
- Name: opBatchModifyClusterSnapshots,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &BatchModifyClusterSnapshotsInput{}
- }
- output = &BatchModifyClusterSnapshotsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // BatchModifyClusterSnapshots API operation for Amazon Redshift.
- //
- // Modifies the settings for a list of snapshots.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation BatchModifyClusterSnapshots for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault"
- // The retention period specified is either in the past or is not a valid value.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // * ErrCodeBatchModifyClusterSnapshotsLimitExceededFault "BatchModifyClusterSnapshotsLimitExceededFault"
- // The maximum number for snapshot identifiers has been reached. The limit is
- // 100.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/BatchModifyClusterSnapshots
- func (c *Redshift) BatchModifyClusterSnapshots(input *BatchModifyClusterSnapshotsInput) (*BatchModifyClusterSnapshotsOutput, error) {
- req, out := c.BatchModifyClusterSnapshotsRequest(input)
- return out, req.Send()
- }
- // BatchModifyClusterSnapshotsWithContext is the same as BatchModifyClusterSnapshots with the addition of
- // the ability to pass a context and additional request options.
- //
- // See BatchModifyClusterSnapshots for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) BatchModifyClusterSnapshotsWithContext(ctx aws.Context, input *BatchModifyClusterSnapshotsInput, opts ...request.Option) (*BatchModifyClusterSnapshotsOutput, error) {
- req, out := c.BatchModifyClusterSnapshotsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCancelResize = "CancelResize"
- // CancelResizeRequest generates a "aws/request.Request" representing the
- // client's request for the CancelResize operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CancelResize for more information on using the CancelResize
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CancelResizeRequest method.
- // req, resp := client.CancelResizeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CancelResize
- func (c *Redshift) CancelResizeRequest(input *CancelResizeInput) (req *request.Request, output *CancelResizeOutput) {
- op := &request.Operation{
- Name: opCancelResize,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CancelResizeInput{}
- }
- output = &CancelResizeOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CancelResize API operation for Amazon Redshift.
- //
- // Cancels a resize operation.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CancelResize for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeResizeNotFoundFault "ResizeNotFound"
- // A resize operation for the specified cluster is not found.
- //
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // * ErrCodeUnsupportedOperationFault "UnsupportedOperation"
- // The requested operation isn't supported.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CancelResize
- func (c *Redshift) CancelResize(input *CancelResizeInput) (*CancelResizeOutput, error) {
- req, out := c.CancelResizeRequest(input)
- return out, req.Send()
- }
- // CancelResizeWithContext is the same as CancelResize with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CancelResize for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CancelResizeWithContext(ctx aws.Context, input *CancelResizeInput, opts ...request.Option) (*CancelResizeOutput, error) {
- req, out := c.CancelResizeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCopyClusterSnapshot = "CopyClusterSnapshot"
- // CopyClusterSnapshotRequest generates a "aws/request.Request" representing the
- // client's request for the CopyClusterSnapshot operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CopyClusterSnapshot for more information on using the CopyClusterSnapshot
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CopyClusterSnapshotRequest method.
- // req, resp := client.CopyClusterSnapshotRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CopyClusterSnapshot
- func (c *Redshift) CopyClusterSnapshotRequest(input *CopyClusterSnapshotInput) (req *request.Request, output *CopyClusterSnapshotOutput) {
- op := &request.Operation{
- Name: opCopyClusterSnapshot,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CopyClusterSnapshotInput{}
- }
- output = &CopyClusterSnapshotOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CopyClusterSnapshot API operation for Amazon Redshift.
- //
- // Copies the specified automated cluster snapshot to a new manual cluster snapshot.
- // The source must be an automated snapshot and it must be in the available
- // state.
- //
- // When you delete a cluster, Amazon Redshift deletes any automated snapshots
- // of the cluster. Also, when the retention period of the snapshot expires,
- // Amazon Redshift automatically deletes it. If you want to keep an automated
- // snapshot for a longer period, you can make a manual copy of the snapshot.
- // Manual snapshots are retained until you delete them.
- //
- // For more information about working with snapshots, go to Amazon Redshift
- // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CopyClusterSnapshot for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterSnapshotAlreadyExistsFault "ClusterSnapshotAlreadyExists"
- // The value specified as a snapshot identifier is already used by an existing
- // snapshot.
- //
- // * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound"
- // The snapshot identifier does not refer to an existing cluster snapshot.
- //
- // * ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState"
- // The specified cluster snapshot is not in the available state, or other accounts
- // are authorized to access the snapshot.
- //
- // * ErrCodeClusterSnapshotQuotaExceededFault "ClusterSnapshotQuotaExceeded"
- // The request would result in the user exceeding the allowed number of cluster
- // snapshots.
- //
- // * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault"
- // The retention period specified is either in the past or is not a valid value.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CopyClusterSnapshot
- func (c *Redshift) CopyClusterSnapshot(input *CopyClusterSnapshotInput) (*CopyClusterSnapshotOutput, error) {
- req, out := c.CopyClusterSnapshotRequest(input)
- return out, req.Send()
- }
- // CopyClusterSnapshotWithContext is the same as CopyClusterSnapshot with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CopyClusterSnapshot for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CopyClusterSnapshotWithContext(ctx aws.Context, input *CopyClusterSnapshotInput, opts ...request.Option) (*CopyClusterSnapshotOutput, error) {
- req, out := c.CopyClusterSnapshotRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateCluster = "CreateCluster"
- // CreateClusterRequest generates a "aws/request.Request" representing the
- // client's request for the CreateCluster operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateCluster for more information on using the CreateCluster
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateClusterRequest method.
- // req, resp := client.CreateClusterRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateCluster
- func (c *Redshift) CreateClusterRequest(input *CreateClusterInput) (req *request.Request, output *CreateClusterOutput) {
- op := &request.Operation{
- Name: opCreateCluster,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateClusterInput{}
- }
- output = &CreateClusterOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateCluster API operation for Amazon Redshift.
- //
- // Creates a new cluster.
- //
- // To create a cluster in Virtual Private Cloud (VPC), you must provide a cluster
- // subnet group name. The cluster subnet group identifies the subnets of your
- // VPC that Amazon Redshift uses when creating the cluster. For more information
- // about managing clusters, go to Amazon Redshift Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CreateCluster for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterAlreadyExistsFault "ClusterAlreadyExists"
- // The account already has a cluster with the given identifier.
- //
- // * ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacity"
- // The number of nodes specified exceeds the allotted capacity of the cluster.
- //
- // * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound"
- // The parameter group name does not refer to an existing parameter group.
- //
- // * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound"
- // The cluster security group name does not refer to an existing cluster security
- // group.
- //
- // * ErrCodeClusterQuotaExceededFault "ClusterQuotaExceeded"
- // The request would exceed the allowed number of cluster instances for this
- // account. For information about increasing your quota, go to Limits in Amazon
- // Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeNumberOfNodesQuotaExceededFault "NumberOfNodesQuotaExceeded"
- // The operation would exceed the number of nodes allotted to the account. For
- // information about increasing your quota, go to Limits in Amazon Redshift
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeNumberOfNodesPerClusterLimitExceededFault "NumberOfNodesPerClusterLimitExceeded"
- // The operation would exceed the number of nodes allowed for a cluster.
- //
- // * ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault"
- // The cluster subnet group name does not refer to an existing cluster subnet
- // group.
- //
- // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
- // The cluster subnet group does not cover all Availability Zones.
- //
- // * ErrCodeInvalidClusterSubnetGroupStateFault "InvalidClusterSubnetGroupStateFault"
- // The cluster subnet group cannot be deleted because it is in use.
- //
- // * ErrCodeInvalidSubnet "InvalidSubnet"
- // The requested subnet is not valid, or not all of the subnets are in the same
- // VPC.
- //
- // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
- // Your account is not authorized to perform the requested operation.
- //
- // * ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault"
- // There is no Amazon Redshift HSM client certificate with the specified identifier.
- //
- // * ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault"
- // There is no Amazon Redshift HSM configuration with the specified identifier.
- //
- // * ErrCodeInvalidElasticIpFault "InvalidElasticIpFault"
- // The Elastic IP (EIP) is invalid or cannot be found.
- //
- // * ErrCodeTagLimitExceededFault "TagLimitExceededFault"
- // You have exceeded the number of tags allowed.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // * ErrCodeLimitExceededFault "LimitExceededFault"
- // The encryption key has exceeded its grant limit in AWS KMS.
- //
- // * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault"
- // The request cannot be completed because a dependent service is throttling
- // requests made by Amazon Redshift on your behalf. Wait and retry the request.
- //
- // * ErrCodeInvalidClusterTrackFault "InvalidClusterTrack"
- // The provided cluster track name is not valid.
- //
- // * ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound"
- // We could not find the specified snapshot schedule.
- //
- // * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault"
- // The retention period specified is either in the past or is not a valid value.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateCluster
- func (c *Redshift) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) {
- req, out := c.CreateClusterRequest(input)
- return out, req.Send()
- }
- // CreateClusterWithContext is the same as CreateCluster with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateCluster for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CreateClusterWithContext(ctx aws.Context, input *CreateClusterInput, opts ...request.Option) (*CreateClusterOutput, error) {
- req, out := c.CreateClusterRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateClusterParameterGroup = "CreateClusterParameterGroup"
- // CreateClusterParameterGroupRequest generates a "aws/request.Request" representing the
- // client's request for the CreateClusterParameterGroup operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateClusterParameterGroup for more information on using the CreateClusterParameterGroup
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateClusterParameterGroupRequest method.
- // req, resp := client.CreateClusterParameterGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterParameterGroup
- func (c *Redshift) CreateClusterParameterGroupRequest(input *CreateClusterParameterGroupInput) (req *request.Request, output *CreateClusterParameterGroupOutput) {
- op := &request.Operation{
- Name: opCreateClusterParameterGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateClusterParameterGroupInput{}
- }
- output = &CreateClusterParameterGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateClusterParameterGroup API operation for Amazon Redshift.
- //
- // Creates an Amazon Redshift parameter group.
- //
- // Creating parameter groups is independent of creating clusters. You can associate
- // a cluster with a parameter group when you create the cluster. You can also
- // associate an existing cluster with a parameter group after the cluster is
- // created by using ModifyCluster.
- //
- // Parameters in the parameter group define specific behavior that applies to
- // the databases you create on the cluster. For more information about parameters
- // and parameter groups, go to Amazon Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CreateClusterParameterGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterParameterGroupQuotaExceededFault "ClusterParameterGroupQuotaExceeded"
- // The request would result in the user exceeding the allowed number of cluster
- // parameter groups. For information about increasing your quota, go to Limits
- // in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeClusterParameterGroupAlreadyExistsFault "ClusterParameterGroupAlreadyExists"
- // A cluster parameter group with the same name already exists.
- //
- // * ErrCodeTagLimitExceededFault "TagLimitExceededFault"
- // You have exceeded the number of tags allowed.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterParameterGroup
- func (c *Redshift) CreateClusterParameterGroup(input *CreateClusterParameterGroupInput) (*CreateClusterParameterGroupOutput, error) {
- req, out := c.CreateClusterParameterGroupRequest(input)
- return out, req.Send()
- }
- // CreateClusterParameterGroupWithContext is the same as CreateClusterParameterGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateClusterParameterGroup for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CreateClusterParameterGroupWithContext(ctx aws.Context, input *CreateClusterParameterGroupInput, opts ...request.Option) (*CreateClusterParameterGroupOutput, error) {
- req, out := c.CreateClusterParameterGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateClusterSecurityGroup = "CreateClusterSecurityGroup"
- // CreateClusterSecurityGroupRequest generates a "aws/request.Request" representing the
- // client's request for the CreateClusterSecurityGroup operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateClusterSecurityGroup for more information on using the CreateClusterSecurityGroup
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateClusterSecurityGroupRequest method.
- // req, resp := client.CreateClusterSecurityGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSecurityGroup
- func (c *Redshift) CreateClusterSecurityGroupRequest(input *CreateClusterSecurityGroupInput) (req *request.Request, output *CreateClusterSecurityGroupOutput) {
- op := &request.Operation{
- Name: opCreateClusterSecurityGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateClusterSecurityGroupInput{}
- }
- output = &CreateClusterSecurityGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateClusterSecurityGroup API operation for Amazon Redshift.
- //
- // Creates a new Amazon Redshift security group. You use security groups to
- // control access to non-VPC clusters.
- //
- // For information about managing security groups, go to Amazon Redshift Cluster
- // Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CreateClusterSecurityGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterSecurityGroupAlreadyExistsFault "ClusterSecurityGroupAlreadyExists"
- // A cluster security group with the same name already exists.
- //
- // * ErrCodeClusterSecurityGroupQuotaExceededFault "QuotaExceeded.ClusterSecurityGroup"
- // The request would result in the user exceeding the allowed number of cluster
- // security groups. For information about increasing your quota, go to Limits
- // in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeTagLimitExceededFault "TagLimitExceededFault"
- // You have exceeded the number of tags allowed.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSecurityGroup
- func (c *Redshift) CreateClusterSecurityGroup(input *CreateClusterSecurityGroupInput) (*CreateClusterSecurityGroupOutput, error) {
- req, out := c.CreateClusterSecurityGroupRequest(input)
- return out, req.Send()
- }
- // CreateClusterSecurityGroupWithContext is the same as CreateClusterSecurityGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateClusterSecurityGroup for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CreateClusterSecurityGroupWithContext(ctx aws.Context, input *CreateClusterSecurityGroupInput, opts ...request.Option) (*CreateClusterSecurityGroupOutput, error) {
- req, out := c.CreateClusterSecurityGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateClusterSnapshot = "CreateClusterSnapshot"
- // CreateClusterSnapshotRequest generates a "aws/request.Request" representing the
- // client's request for the CreateClusterSnapshot operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateClusterSnapshot for more information on using the CreateClusterSnapshot
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateClusterSnapshotRequest method.
- // req, resp := client.CreateClusterSnapshotRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSnapshot
- func (c *Redshift) CreateClusterSnapshotRequest(input *CreateClusterSnapshotInput) (req *request.Request, output *CreateClusterSnapshotOutput) {
- op := &request.Operation{
- Name: opCreateClusterSnapshot,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateClusterSnapshotInput{}
- }
- output = &CreateClusterSnapshotOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateClusterSnapshot API operation for Amazon Redshift.
- //
- // Creates a manual snapshot of the specified cluster. The cluster must be in
- // the available state.
- //
- // For more information about working with snapshots, go to Amazon Redshift
- // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CreateClusterSnapshot for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterSnapshotAlreadyExistsFault "ClusterSnapshotAlreadyExists"
- // The value specified as a snapshot identifier is already used by an existing
- // snapshot.
- //
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeClusterSnapshotQuotaExceededFault "ClusterSnapshotQuotaExceeded"
- // The request would result in the user exceeding the allowed number of cluster
- // snapshots.
- //
- // * ErrCodeTagLimitExceededFault "TagLimitExceededFault"
- // You have exceeded the number of tags allowed.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault"
- // The retention period specified is either in the past or is not a valid value.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSnapshot
- func (c *Redshift) CreateClusterSnapshot(input *CreateClusterSnapshotInput) (*CreateClusterSnapshotOutput, error) {
- req, out := c.CreateClusterSnapshotRequest(input)
- return out, req.Send()
- }
- // CreateClusterSnapshotWithContext is the same as CreateClusterSnapshot with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateClusterSnapshot for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CreateClusterSnapshotWithContext(ctx aws.Context, input *CreateClusterSnapshotInput, opts ...request.Option) (*CreateClusterSnapshotOutput, error) {
- req, out := c.CreateClusterSnapshotRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateClusterSubnetGroup = "CreateClusterSubnetGroup"
- // CreateClusterSubnetGroupRequest generates a "aws/request.Request" representing the
- // client's request for the CreateClusterSubnetGroup operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateClusterSubnetGroup for more information on using the CreateClusterSubnetGroup
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateClusterSubnetGroupRequest method.
- // req, resp := client.CreateClusterSubnetGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSubnetGroup
- func (c *Redshift) CreateClusterSubnetGroupRequest(input *CreateClusterSubnetGroupInput) (req *request.Request, output *CreateClusterSubnetGroupOutput) {
- op := &request.Operation{
- Name: opCreateClusterSubnetGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateClusterSubnetGroupInput{}
- }
- output = &CreateClusterSubnetGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateClusterSubnetGroup API operation for Amazon Redshift.
- //
- // Creates a new Amazon Redshift subnet group. You must provide a list of one
- // or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC)
- // when creating Amazon Redshift subnet group.
- //
- // For information about subnet groups, go to Amazon Redshift Cluster Subnet
- // Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-cluster-subnet-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CreateClusterSubnetGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterSubnetGroupAlreadyExistsFault "ClusterSubnetGroupAlreadyExists"
- // A ClusterSubnetGroupName is already used by an existing cluster subnet group.
- //
- // * ErrCodeClusterSubnetGroupQuotaExceededFault "ClusterSubnetGroupQuotaExceeded"
- // The request would result in user exceeding the allowed number of cluster
- // subnet groups. For information about increasing your quota, go to Limits
- // in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeClusterSubnetQuotaExceededFault "ClusterSubnetQuotaExceededFault"
- // The request would result in user exceeding the allowed number of subnets
- // in a cluster subnet groups. For information about increasing your quota,
- // go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeInvalidSubnet "InvalidSubnet"
- // The requested subnet is not valid, or not all of the subnets are in the same
- // VPC.
- //
- // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
- // Your account is not authorized to perform the requested operation.
- //
- // * ErrCodeTagLimitExceededFault "TagLimitExceededFault"
- // You have exceeded the number of tags allowed.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault"
- // The request cannot be completed because a dependent service is throttling
- // requests made by Amazon Redshift on your behalf. Wait and retry the request.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateClusterSubnetGroup
- func (c *Redshift) CreateClusterSubnetGroup(input *CreateClusterSubnetGroupInput) (*CreateClusterSubnetGroupOutput, error) {
- req, out := c.CreateClusterSubnetGroupRequest(input)
- return out, req.Send()
- }
- // CreateClusterSubnetGroupWithContext is the same as CreateClusterSubnetGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateClusterSubnetGroup for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CreateClusterSubnetGroupWithContext(ctx aws.Context, input *CreateClusterSubnetGroupInput, opts ...request.Option) (*CreateClusterSubnetGroupOutput, error) {
- req, out := c.CreateClusterSubnetGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateEventSubscription = "CreateEventSubscription"
- // CreateEventSubscriptionRequest generates a "aws/request.Request" representing the
- // client's request for the CreateEventSubscription operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateEventSubscription for more information on using the CreateEventSubscription
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateEventSubscriptionRequest method.
- // req, resp := client.CreateEventSubscriptionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateEventSubscription
- func (c *Redshift) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput) (req *request.Request, output *CreateEventSubscriptionOutput) {
- op := &request.Operation{
- Name: opCreateEventSubscription,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateEventSubscriptionInput{}
- }
- output = &CreateEventSubscriptionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateEventSubscription API operation for Amazon Redshift.
- //
- // Creates an Amazon Redshift event notification subscription. This action requires
- // an ARN (Amazon Resource Name) of an Amazon SNS topic created by either the
- // Amazon Redshift console, the Amazon SNS console, or the Amazon SNS API. To
- // obtain an ARN with Amazon SNS, you must create a topic in Amazon SNS and
- // subscribe to the topic. The ARN is displayed in the SNS console.
- //
- // You can specify the source type, and lists of Amazon Redshift source IDs,
- // event categories, and event severities. Notifications will be sent for all
- // events you want that match those criteria. For example, you can specify source
- // type = cluster, source ID = my-cluster-1 and mycluster2, event categories
- // = Availability, Backup, and severity = ERROR. The subscription will only
- // send notifications for those ERROR events in the Availability and Backup
- // categories for the specified clusters.
- //
- // If you specify both the source type and source IDs, such as source type =
- // cluster and source identifier = my-cluster-1, notifications will be sent
- // for all the cluster events for my-cluster-1. If you specify a source type
- // but do not specify a source identifier, you will receive notice of the events
- // for the objects of that type in your AWS account. If you do not specify either
- // the SourceType nor the SourceIdentifier, you will be notified of events generated
- // from all Amazon Redshift sources belonging to your AWS account. You must
- // specify a source type if you specify a source ID.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CreateEventSubscription for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeEventSubscriptionQuotaExceededFault "EventSubscriptionQuotaExceeded"
- // The request would exceed the allowed number of event subscriptions for this
- // account. For information about increasing your quota, go to Limits in Amazon
- // Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeSubscriptionAlreadyExistFault "SubscriptionAlreadyExist"
- // There is already an existing event notification subscription with the specified
- // name.
- //
- // * ErrCodeSNSInvalidTopicFault "SNSInvalidTopic"
- // Amazon SNS has responded that there is a problem with the specified Amazon
- // SNS topic.
- //
- // * ErrCodeSNSNoAuthorizationFault "SNSNoAuthorization"
- // You do not have permission to publish to the specified Amazon SNS topic.
- //
- // * ErrCodeSNSTopicArnNotFoundFault "SNSTopicArnNotFound"
- // An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not
- // exist.
- //
- // * ErrCodeSubscriptionEventIdNotFoundFault "SubscriptionEventIdNotFound"
- // An Amazon Redshift event with the specified event ID does not exist.
- //
- // * ErrCodeSubscriptionCategoryNotFoundFault "SubscriptionCategoryNotFound"
- // The value specified for the event category was not one of the allowed values,
- // or it specified a category that does not apply to the specified source type.
- // The allowed values are Configuration, Management, Monitoring, and Security.
- //
- // * ErrCodeSubscriptionSeverityNotFoundFault "SubscriptionSeverityNotFound"
- // The value specified for the event severity was not one of the allowed values,
- // or it specified a severity that does not apply to the specified source type.
- // The allowed values are ERROR and INFO.
- //
- // * ErrCodeSourceNotFoundFault "SourceNotFound"
- // The specified Amazon Redshift event source could not be found.
- //
- // * ErrCodeTagLimitExceededFault "TagLimitExceededFault"
- // You have exceeded the number of tags allowed.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateEventSubscription
- func (c *Redshift) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error) {
- req, out := c.CreateEventSubscriptionRequest(input)
- return out, req.Send()
- }
- // CreateEventSubscriptionWithContext is the same as CreateEventSubscription with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateEventSubscription for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CreateEventSubscriptionWithContext(ctx aws.Context, input *CreateEventSubscriptionInput, opts ...request.Option) (*CreateEventSubscriptionOutput, error) {
- req, out := c.CreateEventSubscriptionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateHsmClientCertificate = "CreateHsmClientCertificate"
- // CreateHsmClientCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the CreateHsmClientCertificate operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateHsmClientCertificate for more information on using the CreateHsmClientCertificate
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateHsmClientCertificateRequest method.
- // req, resp := client.CreateHsmClientCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmClientCertificate
- func (c *Redshift) CreateHsmClientCertificateRequest(input *CreateHsmClientCertificateInput) (req *request.Request, output *CreateHsmClientCertificateOutput) {
- op := &request.Operation{
- Name: opCreateHsmClientCertificate,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateHsmClientCertificateInput{}
- }
- output = &CreateHsmClientCertificateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateHsmClientCertificate API operation for Amazon Redshift.
- //
- // Creates an HSM client certificate that an Amazon Redshift cluster will use
- // to connect to the client's HSM in order to store and retrieve the keys used
- // to encrypt the cluster databases.
- //
- // The command returns a public key, which you must store in the HSM. In addition
- // to creating the HSM certificate, you must create an Amazon Redshift HSM configuration
- // that provides a cluster the information needed to store and use encryption
- // keys in the HSM. For more information, go to Hardware Security Modules (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-HSM.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CreateHsmClientCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeHsmClientCertificateAlreadyExistsFault "HsmClientCertificateAlreadyExistsFault"
- // There is already an existing Amazon Redshift HSM client certificate with
- // the specified identifier.
- //
- // * ErrCodeHsmClientCertificateQuotaExceededFault "HsmClientCertificateQuotaExceededFault"
- // The quota for HSM client certificates has been reached. For information about
- // increasing your quota, go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeTagLimitExceededFault "TagLimitExceededFault"
- // You have exceeded the number of tags allowed.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmClientCertificate
- func (c *Redshift) CreateHsmClientCertificate(input *CreateHsmClientCertificateInput) (*CreateHsmClientCertificateOutput, error) {
- req, out := c.CreateHsmClientCertificateRequest(input)
- return out, req.Send()
- }
- // CreateHsmClientCertificateWithContext is the same as CreateHsmClientCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateHsmClientCertificate for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CreateHsmClientCertificateWithContext(ctx aws.Context, input *CreateHsmClientCertificateInput, opts ...request.Option) (*CreateHsmClientCertificateOutput, error) {
- req, out := c.CreateHsmClientCertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateHsmConfiguration = "CreateHsmConfiguration"
- // CreateHsmConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the CreateHsmConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateHsmConfiguration for more information on using the CreateHsmConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateHsmConfigurationRequest method.
- // req, resp := client.CreateHsmConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmConfiguration
- func (c *Redshift) CreateHsmConfigurationRequest(input *CreateHsmConfigurationInput) (req *request.Request, output *CreateHsmConfigurationOutput) {
- op := &request.Operation{
- Name: opCreateHsmConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateHsmConfigurationInput{}
- }
- output = &CreateHsmConfigurationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateHsmConfiguration API operation for Amazon Redshift.
- //
- // Creates an HSM configuration that contains the information required by an
- // Amazon Redshift cluster to store and use database encryption keys in a Hardware
- // Security Module (HSM). After creating the HSM configuration, you can specify
- // it as a parameter when creating a cluster. The cluster will then store its
- // encryption keys in the HSM.
- //
- // In addition to creating an HSM configuration, you must also create an HSM
- // client certificate. For more information, go to Hardware Security Modules
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-HSM.html) in
- // the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CreateHsmConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeHsmConfigurationAlreadyExistsFault "HsmConfigurationAlreadyExistsFault"
- // There is already an existing Amazon Redshift HSM configuration with the specified
- // identifier.
- //
- // * ErrCodeHsmConfigurationQuotaExceededFault "HsmConfigurationQuotaExceededFault"
- // The quota for HSM configurations has been reached. For information about
- // increasing your quota, go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeTagLimitExceededFault "TagLimitExceededFault"
- // You have exceeded the number of tags allowed.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateHsmConfiguration
- func (c *Redshift) CreateHsmConfiguration(input *CreateHsmConfigurationInput) (*CreateHsmConfigurationOutput, error) {
- req, out := c.CreateHsmConfigurationRequest(input)
- return out, req.Send()
- }
- // CreateHsmConfigurationWithContext is the same as CreateHsmConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateHsmConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CreateHsmConfigurationWithContext(ctx aws.Context, input *CreateHsmConfigurationInput, opts ...request.Option) (*CreateHsmConfigurationOutput, error) {
- req, out := c.CreateHsmConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateSnapshotCopyGrant = "CreateSnapshotCopyGrant"
- // CreateSnapshotCopyGrantRequest generates a "aws/request.Request" representing the
- // client's request for the CreateSnapshotCopyGrant operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateSnapshotCopyGrant for more information on using the CreateSnapshotCopyGrant
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateSnapshotCopyGrantRequest method.
- // req, resp := client.CreateSnapshotCopyGrantRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotCopyGrant
- func (c *Redshift) CreateSnapshotCopyGrantRequest(input *CreateSnapshotCopyGrantInput) (req *request.Request, output *CreateSnapshotCopyGrantOutput) {
- op := &request.Operation{
- Name: opCreateSnapshotCopyGrant,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateSnapshotCopyGrantInput{}
- }
- output = &CreateSnapshotCopyGrantOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateSnapshotCopyGrant API operation for Amazon Redshift.
- //
- // Creates a snapshot copy grant that permits Amazon Redshift to use a customer
- // master key (CMK) from AWS Key Management Service (AWS KMS) to encrypt copied
- // snapshots in a destination region.
- //
- // For more information about managing snapshot copy grants, go to Amazon Redshift
- // Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CreateSnapshotCopyGrant for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeSnapshotCopyGrantAlreadyExistsFault "SnapshotCopyGrantAlreadyExistsFault"
- // The snapshot copy grant can't be created because a grant with the same name
- // already exists.
- //
- // * ErrCodeSnapshotCopyGrantQuotaExceededFault "SnapshotCopyGrantQuotaExceededFault"
- // The AWS account has exceeded the maximum number of snapshot copy grants in
- // this region.
- //
- // * ErrCodeLimitExceededFault "LimitExceededFault"
- // The encryption key has exceeded its grant limit in AWS KMS.
- //
- // * ErrCodeTagLimitExceededFault "TagLimitExceededFault"
- // You have exceeded the number of tags allowed.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault"
- // The request cannot be completed because a dependent service is throttling
- // requests made by Amazon Redshift on your behalf. Wait and retry the request.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotCopyGrant
- func (c *Redshift) CreateSnapshotCopyGrant(input *CreateSnapshotCopyGrantInput) (*CreateSnapshotCopyGrantOutput, error) {
- req, out := c.CreateSnapshotCopyGrantRequest(input)
- return out, req.Send()
- }
- // CreateSnapshotCopyGrantWithContext is the same as CreateSnapshotCopyGrant with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateSnapshotCopyGrant for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CreateSnapshotCopyGrantWithContext(ctx aws.Context, input *CreateSnapshotCopyGrantInput, opts ...request.Option) (*CreateSnapshotCopyGrantOutput, error) {
- req, out := c.CreateSnapshotCopyGrantRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateSnapshotSchedule = "CreateSnapshotSchedule"
- // CreateSnapshotScheduleRequest generates a "aws/request.Request" representing the
- // client's request for the CreateSnapshotSchedule operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateSnapshotSchedule for more information on using the CreateSnapshotSchedule
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateSnapshotScheduleRequest method.
- // req, resp := client.CreateSnapshotScheduleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotSchedule
- func (c *Redshift) CreateSnapshotScheduleRequest(input *CreateSnapshotScheduleInput) (req *request.Request, output *CreateSnapshotScheduleOutput) {
- op := &request.Operation{
- Name: opCreateSnapshotSchedule,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateSnapshotScheduleInput{}
- }
- output = &CreateSnapshotScheduleOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateSnapshotSchedule API operation for Amazon Redshift.
- //
- // Creates a new snapshot schedule.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CreateSnapshotSchedule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeSnapshotScheduleAlreadyExistsFault "SnapshotScheduleAlreadyExists"
- // The specified snapshot schedule already exists.
- //
- // * ErrCodeInvalidScheduleFault "InvalidSchedule"
- // The schedule you submitted isn't valid.
- //
- // * ErrCodeSnapshotScheduleQuotaExceededFault "SnapshotScheduleQuotaExceeded"
- // You have exceeded the quota of snapshot schedules.
- //
- // * ErrCodeTagLimitExceededFault "TagLimitExceededFault"
- // You have exceeded the number of tags allowed.
- //
- // * ErrCodeScheduleDefinitionTypeUnsupportedFault "ScheduleDefinitionTypeUnsupported"
- // The definition you submitted is not supported.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotSchedule
- func (c *Redshift) CreateSnapshotSchedule(input *CreateSnapshotScheduleInput) (*CreateSnapshotScheduleOutput, error) {
- req, out := c.CreateSnapshotScheduleRequest(input)
- return out, req.Send()
- }
- // CreateSnapshotScheduleWithContext is the same as CreateSnapshotSchedule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateSnapshotSchedule for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CreateSnapshotScheduleWithContext(ctx aws.Context, input *CreateSnapshotScheduleInput, opts ...request.Option) (*CreateSnapshotScheduleOutput, error) {
- req, out := c.CreateSnapshotScheduleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateTags = "CreateTags"
- // CreateTagsRequest generates a "aws/request.Request" representing the
- // client's request for the CreateTags operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateTags for more information on using the CreateTags
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateTagsRequest method.
- // req, resp := client.CreateTagsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateTags
- func (c *Redshift) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) {
- op := &request.Operation{
- Name: opCreateTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateTagsInput{}
- }
- output = &CreateTagsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // CreateTags API operation for Amazon Redshift.
- //
- // Adds one or more tags to a specified resource.
- //
- // A resource can have up to 50 tags. If you try to create more than 50 tags
- // for a resource, you will receive an error and the attempt will fail.
- //
- // If you specify a key that already exists for the resource, the value for
- // that key will be updated with the new value.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation CreateTags for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeTagLimitExceededFault "TagLimitExceededFault"
- // You have exceeded the number of tags allowed.
- //
- // * ErrCodeResourceNotFoundFault "ResourceNotFoundFault"
- // The resource could not be found.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateTags
- func (c *Redshift) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) {
- req, out := c.CreateTagsRequest(input)
- return out, req.Send()
- }
- // CreateTagsWithContext is the same as CreateTags with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateTags for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) CreateTagsWithContext(ctx aws.Context, input *CreateTagsInput, opts ...request.Option) (*CreateTagsOutput, error) {
- req, out := c.CreateTagsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteCluster = "DeleteCluster"
- // DeleteClusterRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteCluster operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteCluster for more information on using the DeleteCluster
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteClusterRequest method.
- // req, resp := client.DeleteClusterRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteCluster
- func (c *Redshift) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Request, output *DeleteClusterOutput) {
- op := &request.Operation{
- Name: opDeleteCluster,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteClusterInput{}
- }
- output = &DeleteClusterOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DeleteCluster API operation for Amazon Redshift.
- //
- // Deletes a previously provisioned cluster. A successful response from the
- // web service indicates that the request was received correctly. Use DescribeClusters
- // to monitor the status of the deletion. The delete operation cannot be canceled
- // or reverted once submitted. For more information about managing clusters,
- // go to Amazon Redshift Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // If you want to shut down the cluster and retain it for future use, set SkipFinalClusterSnapshot
- // to false and specify a name for FinalClusterSnapshotIdentifier. You can later
- // restore this snapshot to resume using the cluster. If a final cluster snapshot
- // is requested, the status of the cluster will be "final-snapshot" while the
- // snapshot is being taken, then it's "deleting" once Amazon Redshift begins
- // deleting the cluster.
- //
- // For more information about managing clusters, go to Amazon Redshift Clusters
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DeleteCluster for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // * ErrCodeClusterSnapshotAlreadyExistsFault "ClusterSnapshotAlreadyExists"
- // The value specified as a snapshot identifier is already used by an existing
- // snapshot.
- //
- // * ErrCodeClusterSnapshotQuotaExceededFault "ClusterSnapshotQuotaExceeded"
- // The request would result in the user exceeding the allowed number of cluster
- // snapshots.
- //
- // * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault"
- // The retention period specified is either in the past or is not a valid value.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteCluster
- func (c *Redshift) DeleteCluster(input *DeleteClusterInput) (*DeleteClusterOutput, error) {
- req, out := c.DeleteClusterRequest(input)
- return out, req.Send()
- }
- // DeleteClusterWithContext is the same as DeleteCluster with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteCluster for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DeleteClusterWithContext(ctx aws.Context, input *DeleteClusterInput, opts ...request.Option) (*DeleteClusterOutput, error) {
- req, out := c.DeleteClusterRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteClusterParameterGroup = "DeleteClusterParameterGroup"
- // DeleteClusterParameterGroupRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteClusterParameterGroup operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteClusterParameterGroup for more information on using the DeleteClusterParameterGroup
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteClusterParameterGroupRequest method.
- // req, resp := client.DeleteClusterParameterGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterParameterGroup
- func (c *Redshift) DeleteClusterParameterGroupRequest(input *DeleteClusterParameterGroupInput) (req *request.Request, output *DeleteClusterParameterGroupOutput) {
- op := &request.Operation{
- Name: opDeleteClusterParameterGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteClusterParameterGroupInput{}
- }
- output = &DeleteClusterParameterGroupOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteClusterParameterGroup API operation for Amazon Redshift.
- //
- // Deletes a specified Amazon Redshift parameter group.
- //
- // You cannot delete a parameter group if it is associated with a cluster.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DeleteClusterParameterGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidClusterParameterGroupStateFault "InvalidClusterParameterGroupState"
- // The cluster parameter group action can not be completed because another task
- // is in progress that involves the parameter group. Wait a few moments and
- // try the operation again.
- //
- // * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound"
- // The parameter group name does not refer to an existing parameter group.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterParameterGroup
- func (c *Redshift) DeleteClusterParameterGroup(input *DeleteClusterParameterGroupInput) (*DeleteClusterParameterGroupOutput, error) {
- req, out := c.DeleteClusterParameterGroupRequest(input)
- return out, req.Send()
- }
- // DeleteClusterParameterGroupWithContext is the same as DeleteClusterParameterGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteClusterParameterGroup for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DeleteClusterParameterGroupWithContext(ctx aws.Context, input *DeleteClusterParameterGroupInput, opts ...request.Option) (*DeleteClusterParameterGroupOutput, error) {
- req, out := c.DeleteClusterParameterGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteClusterSecurityGroup = "DeleteClusterSecurityGroup"
- // DeleteClusterSecurityGroupRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteClusterSecurityGroup operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteClusterSecurityGroup for more information on using the DeleteClusterSecurityGroup
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteClusterSecurityGroupRequest method.
- // req, resp := client.DeleteClusterSecurityGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSecurityGroup
- func (c *Redshift) DeleteClusterSecurityGroupRequest(input *DeleteClusterSecurityGroupInput) (req *request.Request, output *DeleteClusterSecurityGroupOutput) {
- op := &request.Operation{
- Name: opDeleteClusterSecurityGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteClusterSecurityGroupInput{}
- }
- output = &DeleteClusterSecurityGroupOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteClusterSecurityGroup API operation for Amazon Redshift.
- //
- // Deletes an Amazon Redshift security group.
- //
- // You cannot delete a security group that is associated with any clusters.
- // You cannot delete the default security group.
- //
- // For information about managing security groups, go to Amazon Redshift Cluster
- // Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DeleteClusterSecurityGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidClusterSecurityGroupStateFault "InvalidClusterSecurityGroupState"
- // The state of the cluster security group is not available.
- //
- // * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound"
- // The cluster security group name does not refer to an existing cluster security
- // group.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSecurityGroup
- func (c *Redshift) DeleteClusterSecurityGroup(input *DeleteClusterSecurityGroupInput) (*DeleteClusterSecurityGroupOutput, error) {
- req, out := c.DeleteClusterSecurityGroupRequest(input)
- return out, req.Send()
- }
- // DeleteClusterSecurityGroupWithContext is the same as DeleteClusterSecurityGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteClusterSecurityGroup for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DeleteClusterSecurityGroupWithContext(ctx aws.Context, input *DeleteClusterSecurityGroupInput, opts ...request.Option) (*DeleteClusterSecurityGroupOutput, error) {
- req, out := c.DeleteClusterSecurityGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteClusterSnapshot = "DeleteClusterSnapshot"
- // DeleteClusterSnapshotRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteClusterSnapshot operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteClusterSnapshot for more information on using the DeleteClusterSnapshot
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteClusterSnapshotRequest method.
- // req, resp := client.DeleteClusterSnapshotRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSnapshot
- func (c *Redshift) DeleteClusterSnapshotRequest(input *DeleteClusterSnapshotInput) (req *request.Request, output *DeleteClusterSnapshotOutput) {
- op := &request.Operation{
- Name: opDeleteClusterSnapshot,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteClusterSnapshotInput{}
- }
- output = &DeleteClusterSnapshotOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DeleteClusterSnapshot API operation for Amazon Redshift.
- //
- // Deletes the specified manual snapshot. The snapshot must be in the available
- // state, with no other users authorized to access the snapshot.
- //
- // Unlike automated snapshots, manual snapshots are retained even after you
- // delete your cluster. Amazon Redshift does not delete your manual snapshots.
- // You must delete manual snapshot explicitly to avoid getting charged. If other
- // accounts are authorized to access the snapshot, you must revoke all of the
- // authorizations before you can delete the snapshot.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DeleteClusterSnapshot for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState"
- // The specified cluster snapshot is not in the available state, or other accounts
- // are authorized to access the snapshot.
- //
- // * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound"
- // The snapshot identifier does not refer to an existing cluster snapshot.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSnapshot
- func (c *Redshift) DeleteClusterSnapshot(input *DeleteClusterSnapshotInput) (*DeleteClusterSnapshotOutput, error) {
- req, out := c.DeleteClusterSnapshotRequest(input)
- return out, req.Send()
- }
- // DeleteClusterSnapshotWithContext is the same as DeleteClusterSnapshot with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteClusterSnapshot for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DeleteClusterSnapshotWithContext(ctx aws.Context, input *DeleteClusterSnapshotInput, opts ...request.Option) (*DeleteClusterSnapshotOutput, error) {
- req, out := c.DeleteClusterSnapshotRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteClusterSubnetGroup = "DeleteClusterSubnetGroup"
- // DeleteClusterSubnetGroupRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteClusterSubnetGroup operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteClusterSubnetGroup for more information on using the DeleteClusterSubnetGroup
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteClusterSubnetGroupRequest method.
- // req, resp := client.DeleteClusterSubnetGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSubnetGroup
- func (c *Redshift) DeleteClusterSubnetGroupRequest(input *DeleteClusterSubnetGroupInput) (req *request.Request, output *DeleteClusterSubnetGroupOutput) {
- op := &request.Operation{
- Name: opDeleteClusterSubnetGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteClusterSubnetGroupInput{}
- }
- output = &DeleteClusterSubnetGroupOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteClusterSubnetGroup API operation for Amazon Redshift.
- //
- // Deletes the specified cluster subnet group.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DeleteClusterSubnetGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidClusterSubnetGroupStateFault "InvalidClusterSubnetGroupStateFault"
- // The cluster subnet group cannot be deleted because it is in use.
- //
- // * ErrCodeInvalidClusterSubnetStateFault "InvalidClusterSubnetStateFault"
- // The state of the subnet is invalid.
- //
- // * ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault"
- // The cluster subnet group name does not refer to an existing cluster subnet
- // group.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteClusterSubnetGroup
- func (c *Redshift) DeleteClusterSubnetGroup(input *DeleteClusterSubnetGroupInput) (*DeleteClusterSubnetGroupOutput, error) {
- req, out := c.DeleteClusterSubnetGroupRequest(input)
- return out, req.Send()
- }
- // DeleteClusterSubnetGroupWithContext is the same as DeleteClusterSubnetGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteClusterSubnetGroup for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DeleteClusterSubnetGroupWithContext(ctx aws.Context, input *DeleteClusterSubnetGroupInput, opts ...request.Option) (*DeleteClusterSubnetGroupOutput, error) {
- req, out := c.DeleteClusterSubnetGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteEventSubscription = "DeleteEventSubscription"
- // DeleteEventSubscriptionRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteEventSubscription operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteEventSubscription for more information on using the DeleteEventSubscription
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteEventSubscriptionRequest method.
- // req, resp := client.DeleteEventSubscriptionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteEventSubscription
- func (c *Redshift) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput) (req *request.Request, output *DeleteEventSubscriptionOutput) {
- op := &request.Operation{
- Name: opDeleteEventSubscription,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteEventSubscriptionInput{}
- }
- output = &DeleteEventSubscriptionOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteEventSubscription API operation for Amazon Redshift.
- //
- // Deletes an Amazon Redshift event notification subscription.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DeleteEventSubscription for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound"
- // An Amazon Redshift event notification subscription with the specified name
- // does not exist.
- //
- // * ErrCodeInvalidSubscriptionStateFault "InvalidSubscriptionStateFault"
- // The subscription request is invalid because it is a duplicate request. This
- // subscription request is already in progress.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteEventSubscription
- func (c *Redshift) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error) {
- req, out := c.DeleteEventSubscriptionRequest(input)
- return out, req.Send()
- }
- // DeleteEventSubscriptionWithContext is the same as DeleteEventSubscription with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteEventSubscription for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DeleteEventSubscriptionWithContext(ctx aws.Context, input *DeleteEventSubscriptionInput, opts ...request.Option) (*DeleteEventSubscriptionOutput, error) {
- req, out := c.DeleteEventSubscriptionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteHsmClientCertificate = "DeleteHsmClientCertificate"
- // DeleteHsmClientCertificateRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteHsmClientCertificate operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteHsmClientCertificate for more information on using the DeleteHsmClientCertificate
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteHsmClientCertificateRequest method.
- // req, resp := client.DeleteHsmClientCertificateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmClientCertificate
- func (c *Redshift) DeleteHsmClientCertificateRequest(input *DeleteHsmClientCertificateInput) (req *request.Request, output *DeleteHsmClientCertificateOutput) {
- op := &request.Operation{
- Name: opDeleteHsmClientCertificate,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteHsmClientCertificateInput{}
- }
- output = &DeleteHsmClientCertificateOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteHsmClientCertificate API operation for Amazon Redshift.
- //
- // Deletes the specified HSM client certificate.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DeleteHsmClientCertificate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidHsmClientCertificateStateFault "InvalidHsmClientCertificateStateFault"
- // The specified HSM client certificate is not in the available state, or it
- // is still in use by one or more Amazon Redshift clusters.
- //
- // * ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault"
- // There is no Amazon Redshift HSM client certificate with the specified identifier.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmClientCertificate
- func (c *Redshift) DeleteHsmClientCertificate(input *DeleteHsmClientCertificateInput) (*DeleteHsmClientCertificateOutput, error) {
- req, out := c.DeleteHsmClientCertificateRequest(input)
- return out, req.Send()
- }
- // DeleteHsmClientCertificateWithContext is the same as DeleteHsmClientCertificate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteHsmClientCertificate for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DeleteHsmClientCertificateWithContext(ctx aws.Context, input *DeleteHsmClientCertificateInput, opts ...request.Option) (*DeleteHsmClientCertificateOutput, error) {
- req, out := c.DeleteHsmClientCertificateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteHsmConfiguration = "DeleteHsmConfiguration"
- // DeleteHsmConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteHsmConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteHsmConfiguration for more information on using the DeleteHsmConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteHsmConfigurationRequest method.
- // req, resp := client.DeleteHsmConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmConfiguration
- func (c *Redshift) DeleteHsmConfigurationRequest(input *DeleteHsmConfigurationInput) (req *request.Request, output *DeleteHsmConfigurationOutput) {
- op := &request.Operation{
- Name: opDeleteHsmConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteHsmConfigurationInput{}
- }
- output = &DeleteHsmConfigurationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteHsmConfiguration API operation for Amazon Redshift.
- //
- // Deletes the specified Amazon Redshift HSM configuration.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DeleteHsmConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidHsmConfigurationStateFault "InvalidHsmConfigurationStateFault"
- // The specified HSM configuration is not in the available state, or it is still
- // in use by one or more Amazon Redshift clusters.
- //
- // * ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault"
- // There is no Amazon Redshift HSM configuration with the specified identifier.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteHsmConfiguration
- func (c *Redshift) DeleteHsmConfiguration(input *DeleteHsmConfigurationInput) (*DeleteHsmConfigurationOutput, error) {
- req, out := c.DeleteHsmConfigurationRequest(input)
- return out, req.Send()
- }
- // DeleteHsmConfigurationWithContext is the same as DeleteHsmConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteHsmConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DeleteHsmConfigurationWithContext(ctx aws.Context, input *DeleteHsmConfigurationInput, opts ...request.Option) (*DeleteHsmConfigurationOutput, error) {
- req, out := c.DeleteHsmConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteSnapshotCopyGrant = "DeleteSnapshotCopyGrant"
- // DeleteSnapshotCopyGrantRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteSnapshotCopyGrant operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteSnapshotCopyGrant for more information on using the DeleteSnapshotCopyGrant
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteSnapshotCopyGrantRequest method.
- // req, resp := client.DeleteSnapshotCopyGrantRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotCopyGrant
- func (c *Redshift) DeleteSnapshotCopyGrantRequest(input *DeleteSnapshotCopyGrantInput) (req *request.Request, output *DeleteSnapshotCopyGrantOutput) {
- op := &request.Operation{
- Name: opDeleteSnapshotCopyGrant,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteSnapshotCopyGrantInput{}
- }
- output = &DeleteSnapshotCopyGrantOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteSnapshotCopyGrant API operation for Amazon Redshift.
- //
- // Deletes the specified snapshot copy grant.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DeleteSnapshotCopyGrant for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidSnapshotCopyGrantStateFault "InvalidSnapshotCopyGrantStateFault"
- // The snapshot copy grant can't be deleted because it is used by one or more
- // clusters.
- //
- // * ErrCodeSnapshotCopyGrantNotFoundFault "SnapshotCopyGrantNotFoundFault"
- // The specified snapshot copy grant can't be found. Make sure that the name
- // is typed correctly and that the grant exists in the destination region.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotCopyGrant
- func (c *Redshift) DeleteSnapshotCopyGrant(input *DeleteSnapshotCopyGrantInput) (*DeleteSnapshotCopyGrantOutput, error) {
- req, out := c.DeleteSnapshotCopyGrantRequest(input)
- return out, req.Send()
- }
- // DeleteSnapshotCopyGrantWithContext is the same as DeleteSnapshotCopyGrant with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteSnapshotCopyGrant for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DeleteSnapshotCopyGrantWithContext(ctx aws.Context, input *DeleteSnapshotCopyGrantInput, opts ...request.Option) (*DeleteSnapshotCopyGrantOutput, error) {
- req, out := c.DeleteSnapshotCopyGrantRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteSnapshotSchedule = "DeleteSnapshotSchedule"
- // DeleteSnapshotScheduleRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteSnapshotSchedule operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteSnapshotSchedule for more information on using the DeleteSnapshotSchedule
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteSnapshotScheduleRequest method.
- // req, resp := client.DeleteSnapshotScheduleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotSchedule
- func (c *Redshift) DeleteSnapshotScheduleRequest(input *DeleteSnapshotScheduleInput) (req *request.Request, output *DeleteSnapshotScheduleOutput) {
- op := &request.Operation{
- Name: opDeleteSnapshotSchedule,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteSnapshotScheduleInput{}
- }
- output = &DeleteSnapshotScheduleOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteSnapshotSchedule API operation for Amazon Redshift.
- //
- // Deletes a snapshot schedule.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DeleteSnapshotSchedule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidClusterSnapshotScheduleStateFault "InvalidClusterSnapshotScheduleState"
- // The cluster snapshot schedule state is not valid.
- //
- // * ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound"
- // We could not find the specified snapshot schedule.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotSchedule
- func (c *Redshift) DeleteSnapshotSchedule(input *DeleteSnapshotScheduleInput) (*DeleteSnapshotScheduleOutput, error) {
- req, out := c.DeleteSnapshotScheduleRequest(input)
- return out, req.Send()
- }
- // DeleteSnapshotScheduleWithContext is the same as DeleteSnapshotSchedule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteSnapshotSchedule for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DeleteSnapshotScheduleWithContext(ctx aws.Context, input *DeleteSnapshotScheduleInput, opts ...request.Option) (*DeleteSnapshotScheduleOutput, error) {
- req, out := c.DeleteSnapshotScheduleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteTags = "DeleteTags"
- // DeleteTagsRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteTags operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteTags for more information on using the DeleteTags
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteTagsRequest method.
- // req, resp := client.DeleteTagsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteTags
- func (c *Redshift) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
- op := &request.Operation{
- Name: opDeleteTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteTagsInput{}
- }
- output = &DeleteTagsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteTags API operation for Amazon Redshift.
- //
- // Deletes a tag or tags from a resource. You must provide the ARN of the resource
- // from which you want to delete the tag or tags.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DeleteTags for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundFault "ResourceNotFoundFault"
- // The resource could not be found.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteTags
- func (c *Redshift) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
- req, out := c.DeleteTagsRequest(input)
- return out, req.Send()
- }
- // DeleteTagsWithContext is the same as DeleteTags with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteTags for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) {
- req, out := c.DeleteTagsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeAccountAttributes = "DescribeAccountAttributes"
- // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeAccountAttributes operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeAccountAttributes for more information on using the DescribeAccountAttributes
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeAccountAttributesRequest method.
- // req, resp := client.DescribeAccountAttributesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeAccountAttributes
- func (c *Redshift) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) {
- op := &request.Operation{
- Name: opDescribeAccountAttributes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeAccountAttributesInput{}
- }
- output = &DescribeAccountAttributesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeAccountAttributes API operation for Amazon Redshift.
- //
- // Returns a list of attributes attached to an account
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeAccountAttributes for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeAccountAttributes
- func (c *Redshift) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) {
- req, out := c.DescribeAccountAttributesRequest(input)
- return out, req.Send()
- }
- // DescribeAccountAttributesWithContext is the same as DescribeAccountAttributes with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeAccountAttributes for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeAccountAttributesWithContext(ctx aws.Context, input *DescribeAccountAttributesInput, opts ...request.Option) (*DescribeAccountAttributesOutput, error) {
- req, out := c.DescribeAccountAttributesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeClusterDbRevisions = "DescribeClusterDbRevisions"
- // DescribeClusterDbRevisionsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeClusterDbRevisions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeClusterDbRevisions for more information on using the DescribeClusterDbRevisions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeClusterDbRevisionsRequest method.
- // req, resp := client.DescribeClusterDbRevisionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterDbRevisions
- func (c *Redshift) DescribeClusterDbRevisionsRequest(input *DescribeClusterDbRevisionsInput) (req *request.Request, output *DescribeClusterDbRevisionsOutput) {
- op := &request.Operation{
- Name: opDescribeClusterDbRevisions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeClusterDbRevisionsInput{}
- }
- output = &DescribeClusterDbRevisionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeClusterDbRevisions API operation for Amazon Redshift.
- //
- // Returns an array of ClusterDbRevision objects.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeClusterDbRevisions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterDbRevisions
- func (c *Redshift) DescribeClusterDbRevisions(input *DescribeClusterDbRevisionsInput) (*DescribeClusterDbRevisionsOutput, error) {
- req, out := c.DescribeClusterDbRevisionsRequest(input)
- return out, req.Send()
- }
- // DescribeClusterDbRevisionsWithContext is the same as DescribeClusterDbRevisions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeClusterDbRevisions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterDbRevisionsWithContext(ctx aws.Context, input *DescribeClusterDbRevisionsInput, opts ...request.Option) (*DescribeClusterDbRevisionsOutput, error) {
- req, out := c.DescribeClusterDbRevisionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeClusterParameterGroups = "DescribeClusterParameterGroups"
- // DescribeClusterParameterGroupsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeClusterParameterGroups operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeClusterParameterGroups for more information on using the DescribeClusterParameterGroups
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeClusterParameterGroupsRequest method.
- // req, resp := client.DescribeClusterParameterGroupsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameterGroups
- func (c *Redshift) DescribeClusterParameterGroupsRequest(input *DescribeClusterParameterGroupsInput) (req *request.Request, output *DescribeClusterParameterGroupsOutput) {
- op := &request.Operation{
- Name: opDescribeClusterParameterGroups,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeClusterParameterGroupsInput{}
- }
- output = &DescribeClusterParameterGroupsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeClusterParameterGroups API operation for Amazon Redshift.
- //
- // Returns a list of Amazon Redshift parameter groups, including parameter groups
- // you created and the default parameter group. For each parameter group, the
- // response includes the parameter group name, description, and parameter group
- // family name. You can optionally specify a name to retrieve the description
- // of a specific parameter group.
- //
- // For more information about parameters and parameter groups, go to Amazon
- // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // If you specify both tag keys and tag values in the same request, Amazon Redshift
- // returns all parameter groups that match any combination of the specified
- // keys and values. For example, if you have owner and environment for tag keys,
- // and admin and test for tag values, all parameter groups that have any combination
- // of those values are returned.
- //
- // If both tag keys and values are omitted from the request, parameter groups
- // are returned regardless of whether they have tag keys or values associated
- // with them.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeClusterParameterGroups for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound"
- // The parameter group name does not refer to an existing parameter group.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameterGroups
- func (c *Redshift) DescribeClusterParameterGroups(input *DescribeClusterParameterGroupsInput) (*DescribeClusterParameterGroupsOutput, error) {
- req, out := c.DescribeClusterParameterGroupsRequest(input)
- return out, req.Send()
- }
- // DescribeClusterParameterGroupsWithContext is the same as DescribeClusterParameterGroups with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeClusterParameterGroups for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterParameterGroupsWithContext(ctx aws.Context, input *DescribeClusterParameterGroupsInput, opts ...request.Option) (*DescribeClusterParameterGroupsOutput, error) {
- req, out := c.DescribeClusterParameterGroupsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeClusterParameterGroupsPages iterates over the pages of a DescribeClusterParameterGroups operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeClusterParameterGroups method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeClusterParameterGroups operation.
- // pageNum := 0
- // err := client.DescribeClusterParameterGroupsPages(params,
- // func(page *DescribeClusterParameterGroupsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeClusterParameterGroupsPages(input *DescribeClusterParameterGroupsInput, fn func(*DescribeClusterParameterGroupsOutput, bool) bool) error {
- return c.DescribeClusterParameterGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeClusterParameterGroupsPagesWithContext same as DescribeClusterParameterGroupsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterParameterGroupsPagesWithContext(ctx aws.Context, input *DescribeClusterParameterGroupsInput, fn func(*DescribeClusterParameterGroupsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeClusterParameterGroupsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeClusterParameterGroupsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeClusterParameterGroupsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeClusterParameters = "DescribeClusterParameters"
- // DescribeClusterParametersRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeClusterParameters operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeClusterParameters for more information on using the DescribeClusterParameters
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeClusterParametersRequest method.
- // req, resp := client.DescribeClusterParametersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameters
- func (c *Redshift) DescribeClusterParametersRequest(input *DescribeClusterParametersInput) (req *request.Request, output *DescribeClusterParametersOutput) {
- op := &request.Operation{
- Name: opDescribeClusterParameters,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeClusterParametersInput{}
- }
- output = &DescribeClusterParametersOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeClusterParameters API operation for Amazon Redshift.
- //
- // Returns a detailed list of parameters contained within the specified Amazon
- // Redshift parameter group. For each parameter the response includes information
- // such as parameter name, description, data type, value, whether the parameter
- // value is modifiable, and so on.
- //
- // You can specify source filter to retrieve parameters of only specific type.
- // For example, to retrieve parameters that were modified by a user action such
- // as from ModifyClusterParameterGroup, you can specify source equal to user.
- //
- // For more information about parameters and parameter groups, go to Amazon
- // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeClusterParameters for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound"
- // The parameter group name does not refer to an existing parameter group.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterParameters
- func (c *Redshift) DescribeClusterParameters(input *DescribeClusterParametersInput) (*DescribeClusterParametersOutput, error) {
- req, out := c.DescribeClusterParametersRequest(input)
- return out, req.Send()
- }
- // DescribeClusterParametersWithContext is the same as DescribeClusterParameters with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeClusterParameters for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterParametersWithContext(ctx aws.Context, input *DescribeClusterParametersInput, opts ...request.Option) (*DescribeClusterParametersOutput, error) {
- req, out := c.DescribeClusterParametersRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeClusterParametersPages iterates over the pages of a DescribeClusterParameters operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeClusterParameters method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeClusterParameters operation.
- // pageNum := 0
- // err := client.DescribeClusterParametersPages(params,
- // func(page *DescribeClusterParametersOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeClusterParametersPages(input *DescribeClusterParametersInput, fn func(*DescribeClusterParametersOutput, bool) bool) error {
- return c.DescribeClusterParametersPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeClusterParametersPagesWithContext same as DescribeClusterParametersPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterParametersPagesWithContext(ctx aws.Context, input *DescribeClusterParametersInput, fn func(*DescribeClusterParametersOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeClusterParametersInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeClusterParametersRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeClusterParametersOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeClusterSecurityGroups = "DescribeClusterSecurityGroups"
- // DescribeClusterSecurityGroupsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeClusterSecurityGroups operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeClusterSecurityGroups for more information on using the DescribeClusterSecurityGroups
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeClusterSecurityGroupsRequest method.
- // req, resp := client.DescribeClusterSecurityGroupsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSecurityGroups
- func (c *Redshift) DescribeClusterSecurityGroupsRequest(input *DescribeClusterSecurityGroupsInput) (req *request.Request, output *DescribeClusterSecurityGroupsOutput) {
- op := &request.Operation{
- Name: opDescribeClusterSecurityGroups,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeClusterSecurityGroupsInput{}
- }
- output = &DescribeClusterSecurityGroupsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeClusterSecurityGroups API operation for Amazon Redshift.
- //
- // Returns information about Amazon Redshift security groups. If the name of
- // a security group is specified, the response will contain only information
- // about only that security group.
- //
- // For information about managing security groups, go to Amazon Redshift Cluster
- // Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // If you specify both tag keys and tag values in the same request, Amazon Redshift
- // returns all security groups that match any combination of the specified keys
- // and values. For example, if you have owner and environment for tag keys,
- // and admin and test for tag values, all security groups that have any combination
- // of those values are returned.
- //
- // If both tag keys and values are omitted from the request, security groups
- // are returned regardless of whether they have tag keys or values associated
- // with them.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeClusterSecurityGroups for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound"
- // The cluster security group name does not refer to an existing cluster security
- // group.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSecurityGroups
- func (c *Redshift) DescribeClusterSecurityGroups(input *DescribeClusterSecurityGroupsInput) (*DescribeClusterSecurityGroupsOutput, error) {
- req, out := c.DescribeClusterSecurityGroupsRequest(input)
- return out, req.Send()
- }
- // DescribeClusterSecurityGroupsWithContext is the same as DescribeClusterSecurityGroups with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeClusterSecurityGroups for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterSecurityGroupsWithContext(ctx aws.Context, input *DescribeClusterSecurityGroupsInput, opts ...request.Option) (*DescribeClusterSecurityGroupsOutput, error) {
- req, out := c.DescribeClusterSecurityGroupsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeClusterSecurityGroupsPages iterates over the pages of a DescribeClusterSecurityGroups operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeClusterSecurityGroups method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeClusterSecurityGroups operation.
- // pageNum := 0
- // err := client.DescribeClusterSecurityGroupsPages(params,
- // func(page *DescribeClusterSecurityGroupsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeClusterSecurityGroupsPages(input *DescribeClusterSecurityGroupsInput, fn func(*DescribeClusterSecurityGroupsOutput, bool) bool) error {
- return c.DescribeClusterSecurityGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeClusterSecurityGroupsPagesWithContext same as DescribeClusterSecurityGroupsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterSecurityGroupsPagesWithContext(ctx aws.Context, input *DescribeClusterSecurityGroupsInput, fn func(*DescribeClusterSecurityGroupsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeClusterSecurityGroupsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeClusterSecurityGroupsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeClusterSecurityGroupsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeClusterSnapshots = "DescribeClusterSnapshots"
- // DescribeClusterSnapshotsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeClusterSnapshots operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeClusterSnapshots for more information on using the DescribeClusterSnapshots
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeClusterSnapshotsRequest method.
- // req, resp := client.DescribeClusterSnapshotsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSnapshots
- func (c *Redshift) DescribeClusterSnapshotsRequest(input *DescribeClusterSnapshotsInput) (req *request.Request, output *DescribeClusterSnapshotsOutput) {
- op := &request.Operation{
- Name: opDescribeClusterSnapshots,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeClusterSnapshotsInput{}
- }
- output = &DescribeClusterSnapshotsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeClusterSnapshots API operation for Amazon Redshift.
- //
- // Returns one or more snapshot objects, which contain metadata about your cluster
- // snapshots. By default, this operation returns information about all snapshots
- // of all clusters that are owned by you AWS customer account. No information
- // is returned for snapshots owned by inactive AWS customer accounts.
- //
- // If you specify both tag keys and tag values in the same request, Amazon Redshift
- // returns all snapshots that match any combination of the specified keys and
- // values. For example, if you have owner and environment for tag keys, and
- // admin and test for tag values, all snapshots that have any combination of
- // those values are returned. Only snapshots that you own are returned in the
- // response; shared snapshots are not returned with the tag key and tag value
- // request parameters.
- //
- // If both tag keys and values are omitted from the request, snapshots are returned
- // regardless of whether they have tag keys or values associated with them.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeClusterSnapshots for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound"
- // The snapshot identifier does not refer to an existing cluster snapshot.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSnapshots
- func (c *Redshift) DescribeClusterSnapshots(input *DescribeClusterSnapshotsInput) (*DescribeClusterSnapshotsOutput, error) {
- req, out := c.DescribeClusterSnapshotsRequest(input)
- return out, req.Send()
- }
- // DescribeClusterSnapshotsWithContext is the same as DescribeClusterSnapshots with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeClusterSnapshots for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterSnapshotsWithContext(ctx aws.Context, input *DescribeClusterSnapshotsInput, opts ...request.Option) (*DescribeClusterSnapshotsOutput, error) {
- req, out := c.DescribeClusterSnapshotsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeClusterSnapshotsPages iterates over the pages of a DescribeClusterSnapshots operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeClusterSnapshots method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeClusterSnapshots operation.
- // pageNum := 0
- // err := client.DescribeClusterSnapshotsPages(params,
- // func(page *DescribeClusterSnapshotsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeClusterSnapshotsPages(input *DescribeClusterSnapshotsInput, fn func(*DescribeClusterSnapshotsOutput, bool) bool) error {
- return c.DescribeClusterSnapshotsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeClusterSnapshotsPagesWithContext same as DescribeClusterSnapshotsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterSnapshotsPagesWithContext(ctx aws.Context, input *DescribeClusterSnapshotsInput, fn func(*DescribeClusterSnapshotsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeClusterSnapshotsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeClusterSnapshotsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeClusterSnapshotsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeClusterSubnetGroups = "DescribeClusterSubnetGroups"
- // DescribeClusterSubnetGroupsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeClusterSubnetGroups operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeClusterSubnetGroups for more information on using the DescribeClusterSubnetGroups
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeClusterSubnetGroupsRequest method.
- // req, resp := client.DescribeClusterSubnetGroupsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSubnetGroups
- func (c *Redshift) DescribeClusterSubnetGroupsRequest(input *DescribeClusterSubnetGroupsInput) (req *request.Request, output *DescribeClusterSubnetGroupsOutput) {
- op := &request.Operation{
- Name: opDescribeClusterSubnetGroups,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeClusterSubnetGroupsInput{}
- }
- output = &DescribeClusterSubnetGroupsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeClusterSubnetGroups API operation for Amazon Redshift.
- //
- // Returns one or more cluster subnet group objects, which contain metadata
- // about your cluster subnet groups. By default, this operation returns information
- // about all cluster subnet groups that are defined in you AWS account.
- //
- // If you specify both tag keys and tag values in the same request, Amazon Redshift
- // returns all subnet groups that match any combination of the specified keys
- // and values. For example, if you have owner and environment for tag keys,
- // and admin and test for tag values, all subnet groups that have any combination
- // of those values are returned.
- //
- // If both tag keys and values are omitted from the request, subnet groups are
- // returned regardless of whether they have tag keys or values associated with
- // them.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeClusterSubnetGroups for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault"
- // The cluster subnet group name does not refer to an existing cluster subnet
- // group.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterSubnetGroups
- func (c *Redshift) DescribeClusterSubnetGroups(input *DescribeClusterSubnetGroupsInput) (*DescribeClusterSubnetGroupsOutput, error) {
- req, out := c.DescribeClusterSubnetGroupsRequest(input)
- return out, req.Send()
- }
- // DescribeClusterSubnetGroupsWithContext is the same as DescribeClusterSubnetGroups with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeClusterSubnetGroups for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterSubnetGroupsWithContext(ctx aws.Context, input *DescribeClusterSubnetGroupsInput, opts ...request.Option) (*DescribeClusterSubnetGroupsOutput, error) {
- req, out := c.DescribeClusterSubnetGroupsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeClusterSubnetGroupsPages iterates over the pages of a DescribeClusterSubnetGroups operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeClusterSubnetGroups method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeClusterSubnetGroups operation.
- // pageNum := 0
- // err := client.DescribeClusterSubnetGroupsPages(params,
- // func(page *DescribeClusterSubnetGroupsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeClusterSubnetGroupsPages(input *DescribeClusterSubnetGroupsInput, fn func(*DescribeClusterSubnetGroupsOutput, bool) bool) error {
- return c.DescribeClusterSubnetGroupsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeClusterSubnetGroupsPagesWithContext same as DescribeClusterSubnetGroupsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterSubnetGroupsPagesWithContext(ctx aws.Context, input *DescribeClusterSubnetGroupsInput, fn func(*DescribeClusterSubnetGroupsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeClusterSubnetGroupsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeClusterSubnetGroupsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeClusterSubnetGroupsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeClusterTracks = "DescribeClusterTracks"
- // DescribeClusterTracksRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeClusterTracks operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeClusterTracks for more information on using the DescribeClusterTracks
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeClusterTracksRequest method.
- // req, resp := client.DescribeClusterTracksRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterTracks
- func (c *Redshift) DescribeClusterTracksRequest(input *DescribeClusterTracksInput) (req *request.Request, output *DescribeClusterTracksOutput) {
- op := &request.Operation{
- Name: opDescribeClusterTracks,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeClusterTracksInput{}
- }
- output = &DescribeClusterTracksOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeClusterTracks API operation for Amazon Redshift.
- //
- // Returns a list of all the available maintenance tracks.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeClusterTracks for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidClusterTrackFault "InvalidClusterTrack"
- // The provided cluster track name is not valid.
- //
- // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
- // Your account is not authorized to perform the requested operation.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterTracks
- func (c *Redshift) DescribeClusterTracks(input *DescribeClusterTracksInput) (*DescribeClusterTracksOutput, error) {
- req, out := c.DescribeClusterTracksRequest(input)
- return out, req.Send()
- }
- // DescribeClusterTracksWithContext is the same as DescribeClusterTracks with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeClusterTracks for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterTracksWithContext(ctx aws.Context, input *DescribeClusterTracksInput, opts ...request.Option) (*DescribeClusterTracksOutput, error) {
- req, out := c.DescribeClusterTracksRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeClusterVersions = "DescribeClusterVersions"
- // DescribeClusterVersionsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeClusterVersions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeClusterVersions for more information on using the DescribeClusterVersions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeClusterVersionsRequest method.
- // req, resp := client.DescribeClusterVersionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterVersions
- func (c *Redshift) DescribeClusterVersionsRequest(input *DescribeClusterVersionsInput) (req *request.Request, output *DescribeClusterVersionsOutput) {
- op := &request.Operation{
- Name: opDescribeClusterVersions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeClusterVersionsInput{}
- }
- output = &DescribeClusterVersionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeClusterVersions API operation for Amazon Redshift.
- //
- // Returns descriptions of the available Amazon Redshift cluster versions. You
- // can call this operation even before creating any clusters to learn more about
- // the Amazon Redshift versions. For more information about managing clusters,
- // go to Amazon Redshift Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeClusterVersions for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterVersions
- func (c *Redshift) DescribeClusterVersions(input *DescribeClusterVersionsInput) (*DescribeClusterVersionsOutput, error) {
- req, out := c.DescribeClusterVersionsRequest(input)
- return out, req.Send()
- }
- // DescribeClusterVersionsWithContext is the same as DescribeClusterVersions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeClusterVersions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterVersionsWithContext(ctx aws.Context, input *DescribeClusterVersionsInput, opts ...request.Option) (*DescribeClusterVersionsOutput, error) {
- req, out := c.DescribeClusterVersionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeClusterVersionsPages iterates over the pages of a DescribeClusterVersions operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeClusterVersions method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeClusterVersions operation.
- // pageNum := 0
- // err := client.DescribeClusterVersionsPages(params,
- // func(page *DescribeClusterVersionsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeClusterVersionsPages(input *DescribeClusterVersionsInput, fn func(*DescribeClusterVersionsOutput, bool) bool) error {
- return c.DescribeClusterVersionsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeClusterVersionsPagesWithContext same as DescribeClusterVersionsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClusterVersionsPagesWithContext(ctx aws.Context, input *DescribeClusterVersionsInput, fn func(*DescribeClusterVersionsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeClusterVersionsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeClusterVersionsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeClusterVersionsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeClusters = "DescribeClusters"
- // DescribeClustersRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeClusters operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeClusters for more information on using the DescribeClusters
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeClustersRequest method.
- // req, resp := client.DescribeClustersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusters
- func (c *Redshift) DescribeClustersRequest(input *DescribeClustersInput) (req *request.Request, output *DescribeClustersOutput) {
- op := &request.Operation{
- Name: opDescribeClusters,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeClustersInput{}
- }
- output = &DescribeClustersOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeClusters API operation for Amazon Redshift.
- //
- // Returns properties of provisioned clusters including general cluster properties,
- // cluster database properties, maintenance and backup properties, and security
- // and access properties. This operation supports pagination. For more information
- // about managing clusters, go to Amazon Redshift Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // If you specify both tag keys and tag values in the same request, Amazon Redshift
- // returns all clusters that match any combination of the specified keys and
- // values. For example, if you have owner and environment for tag keys, and
- // admin and test for tag values, all clusters that have any combination of
- // those values are returned.
- //
- // If both tag keys and values are omitted from the request, clusters are returned
- // regardless of whether they have tag keys or values associated with them.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeClusters for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusters
- func (c *Redshift) DescribeClusters(input *DescribeClustersInput) (*DescribeClustersOutput, error) {
- req, out := c.DescribeClustersRequest(input)
- return out, req.Send()
- }
- // DescribeClustersWithContext is the same as DescribeClusters with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeClusters for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClustersWithContext(ctx aws.Context, input *DescribeClustersInput, opts ...request.Option) (*DescribeClustersOutput, error) {
- req, out := c.DescribeClustersRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeClustersPages iterates over the pages of a DescribeClusters operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeClusters method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeClusters operation.
- // pageNum := 0
- // err := client.DescribeClustersPages(params,
- // func(page *DescribeClustersOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeClustersPages(input *DescribeClustersInput, fn func(*DescribeClustersOutput, bool) bool) error {
- return c.DescribeClustersPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeClustersPagesWithContext same as DescribeClustersPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeClustersPagesWithContext(ctx aws.Context, input *DescribeClustersInput, fn func(*DescribeClustersOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeClustersInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeClustersRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeClustersOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeDefaultClusterParameters = "DescribeDefaultClusterParameters"
- // DescribeDefaultClusterParametersRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeDefaultClusterParameters operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeDefaultClusterParameters for more information on using the DescribeDefaultClusterParameters
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeDefaultClusterParametersRequest method.
- // req, resp := client.DescribeDefaultClusterParametersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeDefaultClusterParameters
- func (c *Redshift) DescribeDefaultClusterParametersRequest(input *DescribeDefaultClusterParametersInput) (req *request.Request, output *DescribeDefaultClusterParametersOutput) {
- op := &request.Operation{
- Name: opDescribeDefaultClusterParameters,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"DefaultClusterParameters.Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeDefaultClusterParametersInput{}
- }
- output = &DescribeDefaultClusterParametersOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeDefaultClusterParameters API operation for Amazon Redshift.
- //
- // Returns a list of parameter settings for the specified parameter group family.
- //
- // For more information about parameters and parameter groups, go to Amazon
- // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeDefaultClusterParameters for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeDefaultClusterParameters
- func (c *Redshift) DescribeDefaultClusterParameters(input *DescribeDefaultClusterParametersInput) (*DescribeDefaultClusterParametersOutput, error) {
- req, out := c.DescribeDefaultClusterParametersRequest(input)
- return out, req.Send()
- }
- // DescribeDefaultClusterParametersWithContext is the same as DescribeDefaultClusterParameters with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeDefaultClusterParameters for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeDefaultClusterParametersWithContext(ctx aws.Context, input *DescribeDefaultClusterParametersInput, opts ...request.Option) (*DescribeDefaultClusterParametersOutput, error) {
- req, out := c.DescribeDefaultClusterParametersRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeDefaultClusterParametersPages iterates over the pages of a DescribeDefaultClusterParameters operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeDefaultClusterParameters method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeDefaultClusterParameters operation.
- // pageNum := 0
- // err := client.DescribeDefaultClusterParametersPages(params,
- // func(page *DescribeDefaultClusterParametersOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeDefaultClusterParametersPages(input *DescribeDefaultClusterParametersInput, fn func(*DescribeDefaultClusterParametersOutput, bool) bool) error {
- return c.DescribeDefaultClusterParametersPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeDefaultClusterParametersPagesWithContext same as DescribeDefaultClusterParametersPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeDefaultClusterParametersPagesWithContext(ctx aws.Context, input *DescribeDefaultClusterParametersInput, fn func(*DescribeDefaultClusterParametersOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeDefaultClusterParametersInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeDefaultClusterParametersRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeDefaultClusterParametersOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeEventCategories = "DescribeEventCategories"
- // DescribeEventCategoriesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeEventCategories operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeEventCategories for more information on using the DescribeEventCategories
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeEventCategoriesRequest method.
- // req, resp := client.DescribeEventCategoriesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventCategories
- func (c *Redshift) DescribeEventCategoriesRequest(input *DescribeEventCategoriesInput) (req *request.Request, output *DescribeEventCategoriesOutput) {
- op := &request.Operation{
- Name: opDescribeEventCategories,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeEventCategoriesInput{}
- }
- output = &DescribeEventCategoriesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeEventCategories API operation for Amazon Redshift.
- //
- // Displays a list of event categories for all event source types, or for a
- // specified source type. For a list of the event categories and source types,
- // go to Amazon Redshift Event Notifications (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-event-notifications.html).
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeEventCategories for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventCategories
- func (c *Redshift) DescribeEventCategories(input *DescribeEventCategoriesInput) (*DescribeEventCategoriesOutput, error) {
- req, out := c.DescribeEventCategoriesRequest(input)
- return out, req.Send()
- }
- // DescribeEventCategoriesWithContext is the same as DescribeEventCategories with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeEventCategories for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeEventCategoriesWithContext(ctx aws.Context, input *DescribeEventCategoriesInput, opts ...request.Option) (*DescribeEventCategoriesOutput, error) {
- req, out := c.DescribeEventCategoriesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeEventSubscriptions = "DescribeEventSubscriptions"
- // DescribeEventSubscriptionsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeEventSubscriptions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeEventSubscriptions for more information on using the DescribeEventSubscriptions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeEventSubscriptionsRequest method.
- // req, resp := client.DescribeEventSubscriptionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventSubscriptions
- func (c *Redshift) DescribeEventSubscriptionsRequest(input *DescribeEventSubscriptionsInput) (req *request.Request, output *DescribeEventSubscriptionsOutput) {
- op := &request.Operation{
- Name: opDescribeEventSubscriptions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeEventSubscriptionsInput{}
- }
- output = &DescribeEventSubscriptionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeEventSubscriptions API operation for Amazon Redshift.
- //
- // Lists descriptions of all the Amazon Redshift event notification subscriptions
- // for a customer account. If you specify a subscription name, lists the description
- // for that subscription.
- //
- // If you specify both tag keys and tag values in the same request, Amazon Redshift
- // returns all event notification subscriptions that match any combination of
- // the specified keys and values. For example, if you have owner and environment
- // for tag keys, and admin and test for tag values, all subscriptions that have
- // any combination of those values are returned.
- //
- // If both tag keys and values are omitted from the request, subscriptions are
- // returned regardless of whether they have tag keys or values associated with
- // them.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeEventSubscriptions for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound"
- // An Amazon Redshift event notification subscription with the specified name
- // does not exist.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEventSubscriptions
- func (c *Redshift) DescribeEventSubscriptions(input *DescribeEventSubscriptionsInput) (*DescribeEventSubscriptionsOutput, error) {
- req, out := c.DescribeEventSubscriptionsRequest(input)
- return out, req.Send()
- }
- // DescribeEventSubscriptionsWithContext is the same as DescribeEventSubscriptions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeEventSubscriptions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeEventSubscriptionsWithContext(ctx aws.Context, input *DescribeEventSubscriptionsInput, opts ...request.Option) (*DescribeEventSubscriptionsOutput, error) {
- req, out := c.DescribeEventSubscriptionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeEventSubscriptionsPages iterates over the pages of a DescribeEventSubscriptions operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeEventSubscriptions method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeEventSubscriptions operation.
- // pageNum := 0
- // err := client.DescribeEventSubscriptionsPages(params,
- // func(page *DescribeEventSubscriptionsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeEventSubscriptionsPages(input *DescribeEventSubscriptionsInput, fn func(*DescribeEventSubscriptionsOutput, bool) bool) error {
- return c.DescribeEventSubscriptionsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeEventSubscriptionsPagesWithContext same as DescribeEventSubscriptionsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeEventSubscriptionsPagesWithContext(ctx aws.Context, input *DescribeEventSubscriptionsInput, fn func(*DescribeEventSubscriptionsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeEventSubscriptionsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeEventSubscriptionsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeEventSubscriptionsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeEvents = "DescribeEvents"
- // DescribeEventsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeEvents operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeEvents for more information on using the DescribeEvents
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeEventsRequest method.
- // req, resp := client.DescribeEventsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEvents
- func (c *Redshift) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Request, output *DescribeEventsOutput) {
- op := &request.Operation{
- Name: opDescribeEvents,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeEventsInput{}
- }
- output = &DescribeEventsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeEvents API operation for Amazon Redshift.
- //
- // Returns events related to clusters, security groups, snapshots, and parameter
- // groups for the past 14 days. Events specific to a particular cluster, security
- // group, snapshot or parameter group can be obtained by providing the name
- // as a parameter. By default, the past hour of events are returned.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeEvents for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeEvents
- func (c *Redshift) DescribeEvents(input *DescribeEventsInput) (*DescribeEventsOutput, error) {
- req, out := c.DescribeEventsRequest(input)
- return out, req.Send()
- }
- // DescribeEventsWithContext is the same as DescribeEvents with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeEvents for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeEventsWithContext(ctx aws.Context, input *DescribeEventsInput, opts ...request.Option) (*DescribeEventsOutput, error) {
- req, out := c.DescribeEventsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeEventsPages iterates over the pages of a DescribeEvents operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeEvents method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeEvents operation.
- // pageNum := 0
- // err := client.DescribeEventsPages(params,
- // func(page *DescribeEventsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeEventsPages(input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool) error {
- return c.DescribeEventsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeEventsPagesWithContext same as DescribeEventsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeEventsPagesWithContext(ctx aws.Context, input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeEventsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeEventsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeEventsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeHsmClientCertificates = "DescribeHsmClientCertificates"
- // DescribeHsmClientCertificatesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeHsmClientCertificates operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeHsmClientCertificates for more information on using the DescribeHsmClientCertificates
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeHsmClientCertificatesRequest method.
- // req, resp := client.DescribeHsmClientCertificatesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmClientCertificates
- func (c *Redshift) DescribeHsmClientCertificatesRequest(input *DescribeHsmClientCertificatesInput) (req *request.Request, output *DescribeHsmClientCertificatesOutput) {
- op := &request.Operation{
- Name: opDescribeHsmClientCertificates,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeHsmClientCertificatesInput{}
- }
- output = &DescribeHsmClientCertificatesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeHsmClientCertificates API operation for Amazon Redshift.
- //
- // Returns information about the specified HSM client certificate. If no certificate
- // ID is specified, returns information about all the HSM certificates owned
- // by your AWS customer account.
- //
- // If you specify both tag keys and tag values in the same request, Amazon Redshift
- // returns all HSM client certificates that match any combination of the specified
- // keys and values. For example, if you have owner and environment for tag keys,
- // and admin and test for tag values, all HSM client certificates that have
- // any combination of those values are returned.
- //
- // If both tag keys and values are omitted from the request, HSM client certificates
- // are returned regardless of whether they have tag keys or values associated
- // with them.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeHsmClientCertificates for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault"
- // There is no Amazon Redshift HSM client certificate with the specified identifier.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmClientCertificates
- func (c *Redshift) DescribeHsmClientCertificates(input *DescribeHsmClientCertificatesInput) (*DescribeHsmClientCertificatesOutput, error) {
- req, out := c.DescribeHsmClientCertificatesRequest(input)
- return out, req.Send()
- }
- // DescribeHsmClientCertificatesWithContext is the same as DescribeHsmClientCertificates with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeHsmClientCertificates for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeHsmClientCertificatesWithContext(ctx aws.Context, input *DescribeHsmClientCertificatesInput, opts ...request.Option) (*DescribeHsmClientCertificatesOutput, error) {
- req, out := c.DescribeHsmClientCertificatesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeHsmClientCertificatesPages iterates over the pages of a DescribeHsmClientCertificates operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeHsmClientCertificates method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeHsmClientCertificates operation.
- // pageNum := 0
- // err := client.DescribeHsmClientCertificatesPages(params,
- // func(page *DescribeHsmClientCertificatesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeHsmClientCertificatesPages(input *DescribeHsmClientCertificatesInput, fn func(*DescribeHsmClientCertificatesOutput, bool) bool) error {
- return c.DescribeHsmClientCertificatesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeHsmClientCertificatesPagesWithContext same as DescribeHsmClientCertificatesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeHsmClientCertificatesPagesWithContext(ctx aws.Context, input *DescribeHsmClientCertificatesInput, fn func(*DescribeHsmClientCertificatesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeHsmClientCertificatesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeHsmClientCertificatesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeHsmClientCertificatesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeHsmConfigurations = "DescribeHsmConfigurations"
- // DescribeHsmConfigurationsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeHsmConfigurations operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeHsmConfigurations for more information on using the DescribeHsmConfigurations
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeHsmConfigurationsRequest method.
- // req, resp := client.DescribeHsmConfigurationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmConfigurations
- func (c *Redshift) DescribeHsmConfigurationsRequest(input *DescribeHsmConfigurationsInput) (req *request.Request, output *DescribeHsmConfigurationsOutput) {
- op := &request.Operation{
- Name: opDescribeHsmConfigurations,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeHsmConfigurationsInput{}
- }
- output = &DescribeHsmConfigurationsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeHsmConfigurations API operation for Amazon Redshift.
- //
- // Returns information about the specified Amazon Redshift HSM configuration.
- // If no configuration ID is specified, returns information about all the HSM
- // configurations owned by your AWS customer account.
- //
- // If you specify both tag keys and tag values in the same request, Amazon Redshift
- // returns all HSM connections that match any combination of the specified keys
- // and values. For example, if you have owner and environment for tag keys,
- // and admin and test for tag values, all HSM connections that have any combination
- // of those values are returned.
- //
- // If both tag keys and values are omitted from the request, HSM connections
- // are returned regardless of whether they have tag keys or values associated
- // with them.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeHsmConfigurations for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault"
- // There is no Amazon Redshift HSM configuration with the specified identifier.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeHsmConfigurations
- func (c *Redshift) DescribeHsmConfigurations(input *DescribeHsmConfigurationsInput) (*DescribeHsmConfigurationsOutput, error) {
- req, out := c.DescribeHsmConfigurationsRequest(input)
- return out, req.Send()
- }
- // DescribeHsmConfigurationsWithContext is the same as DescribeHsmConfigurations with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeHsmConfigurations for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeHsmConfigurationsWithContext(ctx aws.Context, input *DescribeHsmConfigurationsInput, opts ...request.Option) (*DescribeHsmConfigurationsOutput, error) {
- req, out := c.DescribeHsmConfigurationsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeHsmConfigurationsPages iterates over the pages of a DescribeHsmConfigurations operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeHsmConfigurations method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeHsmConfigurations operation.
- // pageNum := 0
- // err := client.DescribeHsmConfigurationsPages(params,
- // func(page *DescribeHsmConfigurationsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeHsmConfigurationsPages(input *DescribeHsmConfigurationsInput, fn func(*DescribeHsmConfigurationsOutput, bool) bool) error {
- return c.DescribeHsmConfigurationsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeHsmConfigurationsPagesWithContext same as DescribeHsmConfigurationsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeHsmConfigurationsPagesWithContext(ctx aws.Context, input *DescribeHsmConfigurationsInput, fn func(*DescribeHsmConfigurationsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeHsmConfigurationsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeHsmConfigurationsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeHsmConfigurationsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeLoggingStatus = "DescribeLoggingStatus"
- // DescribeLoggingStatusRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeLoggingStatus operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeLoggingStatus for more information on using the DescribeLoggingStatus
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeLoggingStatusRequest method.
- // req, resp := client.DescribeLoggingStatusRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeLoggingStatus
- func (c *Redshift) DescribeLoggingStatusRequest(input *DescribeLoggingStatusInput) (req *request.Request, output *LoggingStatus) {
- op := &request.Operation{
- Name: opDescribeLoggingStatus,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeLoggingStatusInput{}
- }
- output = &LoggingStatus{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeLoggingStatus API operation for Amazon Redshift.
- //
- // Describes whether information, such as queries and connection attempts, is
- // being logged for the specified Amazon Redshift cluster.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeLoggingStatus for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeLoggingStatus
- func (c *Redshift) DescribeLoggingStatus(input *DescribeLoggingStatusInput) (*LoggingStatus, error) {
- req, out := c.DescribeLoggingStatusRequest(input)
- return out, req.Send()
- }
- // DescribeLoggingStatusWithContext is the same as DescribeLoggingStatus with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeLoggingStatus for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeLoggingStatusWithContext(ctx aws.Context, input *DescribeLoggingStatusInput, opts ...request.Option) (*LoggingStatus, error) {
- req, out := c.DescribeLoggingStatusRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeOrderableClusterOptions = "DescribeOrderableClusterOptions"
- // DescribeOrderableClusterOptionsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeOrderableClusterOptions operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeOrderableClusterOptions for more information on using the DescribeOrderableClusterOptions
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeOrderableClusterOptionsRequest method.
- // req, resp := client.DescribeOrderableClusterOptionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeOrderableClusterOptions
- func (c *Redshift) DescribeOrderableClusterOptionsRequest(input *DescribeOrderableClusterOptionsInput) (req *request.Request, output *DescribeOrderableClusterOptionsOutput) {
- op := &request.Operation{
- Name: opDescribeOrderableClusterOptions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeOrderableClusterOptionsInput{}
- }
- output = &DescribeOrderableClusterOptionsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeOrderableClusterOptions API operation for Amazon Redshift.
- //
- // Returns a list of orderable cluster options. Before you create a new cluster
- // you can use this operation to find what options are available, such as the
- // EC2 Availability Zones (AZ) in the specific AWS Region that you can specify,
- // and the node types you can request. The node types differ by available storage,
- // memory, CPU and price. With the cost involved you might want to obtain a
- // list of cluster options in the specific region and specify values when creating
- // a cluster. For more information about managing clusters, go to Amazon Redshift
- // Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeOrderableClusterOptions for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeOrderableClusterOptions
- func (c *Redshift) DescribeOrderableClusterOptions(input *DescribeOrderableClusterOptionsInput) (*DescribeOrderableClusterOptionsOutput, error) {
- req, out := c.DescribeOrderableClusterOptionsRequest(input)
- return out, req.Send()
- }
- // DescribeOrderableClusterOptionsWithContext is the same as DescribeOrderableClusterOptions with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeOrderableClusterOptions for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeOrderableClusterOptionsWithContext(ctx aws.Context, input *DescribeOrderableClusterOptionsInput, opts ...request.Option) (*DescribeOrderableClusterOptionsOutput, error) {
- req, out := c.DescribeOrderableClusterOptionsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeOrderableClusterOptionsPages iterates over the pages of a DescribeOrderableClusterOptions operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeOrderableClusterOptions method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeOrderableClusterOptions operation.
- // pageNum := 0
- // err := client.DescribeOrderableClusterOptionsPages(params,
- // func(page *DescribeOrderableClusterOptionsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeOrderableClusterOptionsPages(input *DescribeOrderableClusterOptionsInput, fn func(*DescribeOrderableClusterOptionsOutput, bool) bool) error {
- return c.DescribeOrderableClusterOptionsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeOrderableClusterOptionsPagesWithContext same as DescribeOrderableClusterOptionsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeOrderableClusterOptionsPagesWithContext(ctx aws.Context, input *DescribeOrderableClusterOptionsInput, fn func(*DescribeOrderableClusterOptionsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeOrderableClusterOptionsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeOrderableClusterOptionsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeOrderableClusterOptionsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeReservedNodeOfferings = "DescribeReservedNodeOfferings"
- // DescribeReservedNodeOfferingsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeReservedNodeOfferings operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeReservedNodeOfferings for more information on using the DescribeReservedNodeOfferings
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeReservedNodeOfferingsRequest method.
- // req, resp := client.DescribeReservedNodeOfferingsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodeOfferings
- func (c *Redshift) DescribeReservedNodeOfferingsRequest(input *DescribeReservedNodeOfferingsInput) (req *request.Request, output *DescribeReservedNodeOfferingsOutput) {
- op := &request.Operation{
- Name: opDescribeReservedNodeOfferings,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeReservedNodeOfferingsInput{}
- }
- output = &DescribeReservedNodeOfferingsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeReservedNodeOfferings API operation for Amazon Redshift.
- //
- // Returns a list of the available reserved node offerings by Amazon Redshift
- // with their descriptions including the node type, the fixed and recurring
- // costs of reserving the node and duration the node will be reserved for you.
- // These descriptions help you determine which reserve node offering you want
- // to purchase. You then use the unique offering ID in you call to PurchaseReservedNodeOffering
- // to reserve one or more nodes for your Amazon Redshift cluster.
- //
- // For more information about reserved node offerings, go to Purchasing Reserved
- // Nodes (http://docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeReservedNodeOfferings for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeReservedNodeOfferingNotFoundFault "ReservedNodeOfferingNotFound"
- // Specified offering does not exist.
- //
- // * ErrCodeUnsupportedOperationFault "UnsupportedOperation"
- // The requested operation isn't supported.
- //
- // * ErrCodeDependentServiceUnavailableFault "DependentServiceUnavailableFault"
- // Your request cannot be completed because a dependent internal service is
- // temporarily unavailable. Wait 30 to 60 seconds and try again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodeOfferings
- func (c *Redshift) DescribeReservedNodeOfferings(input *DescribeReservedNodeOfferingsInput) (*DescribeReservedNodeOfferingsOutput, error) {
- req, out := c.DescribeReservedNodeOfferingsRequest(input)
- return out, req.Send()
- }
- // DescribeReservedNodeOfferingsWithContext is the same as DescribeReservedNodeOfferings with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeReservedNodeOfferings for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeReservedNodeOfferingsWithContext(ctx aws.Context, input *DescribeReservedNodeOfferingsInput, opts ...request.Option) (*DescribeReservedNodeOfferingsOutput, error) {
- req, out := c.DescribeReservedNodeOfferingsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeReservedNodeOfferingsPages iterates over the pages of a DescribeReservedNodeOfferings operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeReservedNodeOfferings method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeReservedNodeOfferings operation.
- // pageNum := 0
- // err := client.DescribeReservedNodeOfferingsPages(params,
- // func(page *DescribeReservedNodeOfferingsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeReservedNodeOfferingsPages(input *DescribeReservedNodeOfferingsInput, fn func(*DescribeReservedNodeOfferingsOutput, bool) bool) error {
- return c.DescribeReservedNodeOfferingsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeReservedNodeOfferingsPagesWithContext same as DescribeReservedNodeOfferingsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeReservedNodeOfferingsPagesWithContext(ctx aws.Context, input *DescribeReservedNodeOfferingsInput, fn func(*DescribeReservedNodeOfferingsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeReservedNodeOfferingsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeReservedNodeOfferingsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeReservedNodeOfferingsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeReservedNodes = "DescribeReservedNodes"
- // DescribeReservedNodesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeReservedNodes operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeReservedNodes for more information on using the DescribeReservedNodes
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeReservedNodesRequest method.
- // req, resp := client.DescribeReservedNodesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodes
- func (c *Redshift) DescribeReservedNodesRequest(input *DescribeReservedNodesInput) (req *request.Request, output *DescribeReservedNodesOutput) {
- op := &request.Operation{
- Name: opDescribeReservedNodes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "MaxRecords",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeReservedNodesInput{}
- }
- output = &DescribeReservedNodesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeReservedNodes API operation for Amazon Redshift.
- //
- // Returns the descriptions of the reserved nodes.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeReservedNodes for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeReservedNodeNotFoundFault "ReservedNodeNotFound"
- // The specified reserved compute node not found.
- //
- // * ErrCodeDependentServiceUnavailableFault "DependentServiceUnavailableFault"
- // Your request cannot be completed because a dependent internal service is
- // temporarily unavailable. Wait 30 to 60 seconds and try again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeReservedNodes
- func (c *Redshift) DescribeReservedNodes(input *DescribeReservedNodesInput) (*DescribeReservedNodesOutput, error) {
- req, out := c.DescribeReservedNodesRequest(input)
- return out, req.Send()
- }
- // DescribeReservedNodesWithContext is the same as DescribeReservedNodes with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeReservedNodes for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeReservedNodesWithContext(ctx aws.Context, input *DescribeReservedNodesInput, opts ...request.Option) (*DescribeReservedNodesOutput, error) {
- req, out := c.DescribeReservedNodesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeReservedNodesPages iterates over the pages of a DescribeReservedNodes operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeReservedNodes method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeReservedNodes operation.
- // pageNum := 0
- // err := client.DescribeReservedNodesPages(params,
- // func(page *DescribeReservedNodesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *Redshift) DescribeReservedNodesPages(input *DescribeReservedNodesInput, fn func(*DescribeReservedNodesOutput, bool) bool) error {
- return c.DescribeReservedNodesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeReservedNodesPagesWithContext same as DescribeReservedNodesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeReservedNodesPagesWithContext(ctx aws.Context, input *DescribeReservedNodesInput, fn func(*DescribeReservedNodesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeReservedNodesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeReservedNodesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeReservedNodesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribeResize = "DescribeResize"
- // DescribeResizeRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeResize operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeResize for more information on using the DescribeResize
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeResizeRequest method.
- // req, resp := client.DescribeResizeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeResize
- func (c *Redshift) DescribeResizeRequest(input *DescribeResizeInput) (req *request.Request, output *DescribeResizeOutput) {
- op := &request.Operation{
- Name: opDescribeResize,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeResizeInput{}
- }
- output = &DescribeResizeOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeResize API operation for Amazon Redshift.
- //
- // Returns information about the last resize operation for the specified cluster.
- // If no resize operation has ever been initiated for the specified cluster,
- // a HTTP 404 error is returned. If a resize operation was initiated and completed,
- // the status of the resize remains as SUCCEEDED until the next resize.
- //
- // A resize operation can be requested using ModifyCluster and specifying a
- // different number or type of nodes for the cluster.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeResize for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeResizeNotFoundFault "ResizeNotFound"
- // A resize operation for the specified cluster is not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeResize
- func (c *Redshift) DescribeResize(input *DescribeResizeInput) (*DescribeResizeOutput, error) {
- req, out := c.DescribeResizeRequest(input)
- return out, req.Send()
- }
- // DescribeResizeWithContext is the same as DescribeResize with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeResize for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeResizeWithContext(ctx aws.Context, input *DescribeResizeInput, opts ...request.Option) (*DescribeResizeOutput, error) {
- req, out := c.DescribeResizeRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeSnapshotCopyGrants = "DescribeSnapshotCopyGrants"
- // DescribeSnapshotCopyGrantsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeSnapshotCopyGrants operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeSnapshotCopyGrants for more information on using the DescribeSnapshotCopyGrants
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeSnapshotCopyGrantsRequest method.
- // req, resp := client.DescribeSnapshotCopyGrantsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotCopyGrants
- func (c *Redshift) DescribeSnapshotCopyGrantsRequest(input *DescribeSnapshotCopyGrantsInput) (req *request.Request, output *DescribeSnapshotCopyGrantsOutput) {
- op := &request.Operation{
- Name: opDescribeSnapshotCopyGrants,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeSnapshotCopyGrantsInput{}
- }
- output = &DescribeSnapshotCopyGrantsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeSnapshotCopyGrants API operation for Amazon Redshift.
- //
- // Returns a list of snapshot copy grants owned by the AWS account in the destination
- // region.
- //
- // For more information about managing snapshot copy grants, go to Amazon Redshift
- // Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeSnapshotCopyGrants for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeSnapshotCopyGrantNotFoundFault "SnapshotCopyGrantNotFoundFault"
- // The specified snapshot copy grant can't be found. Make sure that the name
- // is typed correctly and that the grant exists in the destination region.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotCopyGrants
- func (c *Redshift) DescribeSnapshotCopyGrants(input *DescribeSnapshotCopyGrantsInput) (*DescribeSnapshotCopyGrantsOutput, error) {
- req, out := c.DescribeSnapshotCopyGrantsRequest(input)
- return out, req.Send()
- }
- // DescribeSnapshotCopyGrantsWithContext is the same as DescribeSnapshotCopyGrants with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeSnapshotCopyGrants for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeSnapshotCopyGrantsWithContext(ctx aws.Context, input *DescribeSnapshotCopyGrantsInput, opts ...request.Option) (*DescribeSnapshotCopyGrantsOutput, error) {
- req, out := c.DescribeSnapshotCopyGrantsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeSnapshotSchedules = "DescribeSnapshotSchedules"
- // DescribeSnapshotSchedulesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeSnapshotSchedules operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeSnapshotSchedules for more information on using the DescribeSnapshotSchedules
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeSnapshotSchedulesRequest method.
- // req, resp := client.DescribeSnapshotSchedulesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotSchedules
- func (c *Redshift) DescribeSnapshotSchedulesRequest(input *DescribeSnapshotSchedulesInput) (req *request.Request, output *DescribeSnapshotSchedulesOutput) {
- op := &request.Operation{
- Name: opDescribeSnapshotSchedules,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeSnapshotSchedulesInput{}
- }
- output = &DescribeSnapshotSchedulesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeSnapshotSchedules API operation for Amazon Redshift.
- //
- // Returns a list of snapshot schedules.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeSnapshotSchedules for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotSchedules
- func (c *Redshift) DescribeSnapshotSchedules(input *DescribeSnapshotSchedulesInput) (*DescribeSnapshotSchedulesOutput, error) {
- req, out := c.DescribeSnapshotSchedulesRequest(input)
- return out, req.Send()
- }
- // DescribeSnapshotSchedulesWithContext is the same as DescribeSnapshotSchedules with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeSnapshotSchedules for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeSnapshotSchedulesWithContext(ctx aws.Context, input *DescribeSnapshotSchedulesInput, opts ...request.Option) (*DescribeSnapshotSchedulesOutput, error) {
- req, out := c.DescribeSnapshotSchedulesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeStorage = "DescribeStorage"
- // DescribeStorageRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeStorage operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeStorage for more information on using the DescribeStorage
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeStorageRequest method.
- // req, resp := client.DescribeStorageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeStorage
- func (c *Redshift) DescribeStorageRequest(input *DescribeStorageInput) (req *request.Request, output *DescribeStorageOutput) {
- op := &request.Operation{
- Name: opDescribeStorage,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeStorageInput{}
- }
- output = &DescribeStorageOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeStorage API operation for Amazon Redshift.
- //
- // Returns the total amount of snapshot usage and provisioned storage for a
- // user in megabytes.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeStorage for usage and error information.
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeStorage
- func (c *Redshift) DescribeStorage(input *DescribeStorageInput) (*DescribeStorageOutput, error) {
- req, out := c.DescribeStorageRequest(input)
- return out, req.Send()
- }
- // DescribeStorageWithContext is the same as DescribeStorage with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeStorage for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeStorageWithContext(ctx aws.Context, input *DescribeStorageInput, opts ...request.Option) (*DescribeStorageOutput, error) {
- req, out := c.DescribeStorageRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeTableRestoreStatus = "DescribeTableRestoreStatus"
- // DescribeTableRestoreStatusRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeTableRestoreStatus operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeTableRestoreStatus for more information on using the DescribeTableRestoreStatus
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeTableRestoreStatusRequest method.
- // req, resp := client.DescribeTableRestoreStatusRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTableRestoreStatus
- func (c *Redshift) DescribeTableRestoreStatusRequest(input *DescribeTableRestoreStatusInput) (req *request.Request, output *DescribeTableRestoreStatusOutput) {
- op := &request.Operation{
- Name: opDescribeTableRestoreStatus,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeTableRestoreStatusInput{}
- }
- output = &DescribeTableRestoreStatusOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeTableRestoreStatus API operation for Amazon Redshift.
- //
- // Lists the status of one or more table restore requests made using the RestoreTableFromClusterSnapshot
- // API action. If you don't specify a value for the TableRestoreRequestId parameter,
- // then DescribeTableRestoreStatus returns the status of all table restore requests
- // ordered by the date and time of the request in ascending order. Otherwise
- // DescribeTableRestoreStatus returns the status of the table specified by TableRestoreRequestId.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeTableRestoreStatus for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeTableRestoreNotFoundFault "TableRestoreNotFoundFault"
- // The specified TableRestoreRequestId value was not found.
- //
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTableRestoreStatus
- func (c *Redshift) DescribeTableRestoreStatus(input *DescribeTableRestoreStatusInput) (*DescribeTableRestoreStatusOutput, error) {
- req, out := c.DescribeTableRestoreStatusRequest(input)
- return out, req.Send()
- }
- // DescribeTableRestoreStatusWithContext is the same as DescribeTableRestoreStatus with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeTableRestoreStatus for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeTableRestoreStatusWithContext(ctx aws.Context, input *DescribeTableRestoreStatusInput, opts ...request.Option) (*DescribeTableRestoreStatusOutput, error) {
- req, out := c.DescribeTableRestoreStatusRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeTags = "DescribeTags"
- // DescribeTagsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeTags operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeTags for more information on using the DescribeTags
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeTagsRequest method.
- // req, resp := client.DescribeTagsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTags
- func (c *Redshift) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
- op := &request.Operation{
- Name: opDescribeTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeTagsInput{}
- }
- output = &DescribeTagsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeTags API operation for Amazon Redshift.
- //
- // Returns a list of tags. You can return tags from a specific resource by specifying
- // an ARN, or you can return all tags for a given type of resource, such as
- // clusters, snapshots, and so on.
- //
- // The following are limitations for DescribeTags:
- //
- // * You cannot specify an ARN and a resource-type value together in the
- // same request.
- //
- // * You cannot use the MaxRecords and Marker parameters together with the
- // ARN parameter.
- //
- // * The MaxRecords parameter can be a range from 10 to 50 results to return
- // in a request.
- //
- // If you specify both tag keys and tag values in the same request, Amazon Redshift
- // returns all resources that match any combination of the specified keys and
- // values. For example, if you have owner and environment for tag keys, and
- // admin and test for tag values, all resources that have any combination of
- // those values are returned.
- //
- // If both tag keys and values are omitted from the request, resources are returned
- // regardless of whether they have tag keys or values associated with them.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DescribeTags for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeResourceNotFoundFault "ResourceNotFoundFault"
- // The resource could not be found.
- //
- // * ErrCodeInvalidTagFault "InvalidTagFault"
- // The tag is invalid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeTags
- func (c *Redshift) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
- req, out := c.DescribeTagsRequest(input)
- return out, req.Send()
- }
- // DescribeTagsWithContext is the same as DescribeTags with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeTags for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) {
- req, out := c.DescribeTagsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDisableLogging = "DisableLogging"
- // DisableLoggingRequest generates a "aws/request.Request" representing the
- // client's request for the DisableLogging operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DisableLogging for more information on using the DisableLogging
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DisableLoggingRequest method.
- // req, resp := client.DisableLoggingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableLogging
- func (c *Redshift) DisableLoggingRequest(input *DisableLoggingInput) (req *request.Request, output *LoggingStatus) {
- op := &request.Operation{
- Name: opDisableLogging,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DisableLoggingInput{}
- }
- output = &LoggingStatus{}
- req = c.newRequest(op, input, output)
- return
- }
- // DisableLogging API operation for Amazon Redshift.
- //
- // Stops logging information, such as queries and connection attempts, for the
- // specified Amazon Redshift cluster.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DisableLogging for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableLogging
- func (c *Redshift) DisableLogging(input *DisableLoggingInput) (*LoggingStatus, error) {
- req, out := c.DisableLoggingRequest(input)
- return out, req.Send()
- }
- // DisableLoggingWithContext is the same as DisableLogging with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DisableLogging for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DisableLoggingWithContext(ctx aws.Context, input *DisableLoggingInput, opts ...request.Option) (*LoggingStatus, error) {
- req, out := c.DisableLoggingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDisableSnapshotCopy = "DisableSnapshotCopy"
- // DisableSnapshotCopyRequest generates a "aws/request.Request" representing the
- // client's request for the DisableSnapshotCopy operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DisableSnapshotCopy for more information on using the DisableSnapshotCopy
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DisableSnapshotCopyRequest method.
- // req, resp := client.DisableSnapshotCopyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableSnapshotCopy
- func (c *Redshift) DisableSnapshotCopyRequest(input *DisableSnapshotCopyInput) (req *request.Request, output *DisableSnapshotCopyOutput) {
- op := &request.Operation{
- Name: opDisableSnapshotCopy,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DisableSnapshotCopyInput{}
- }
- output = &DisableSnapshotCopyOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DisableSnapshotCopy API operation for Amazon Redshift.
- //
- // Disables the automatic copying of snapshots from one region to another region
- // for a specified cluster.
- //
- // If your cluster and its snapshots are encrypted using a customer master key
- // (CMK) from AWS KMS, use DeleteSnapshotCopyGrant to delete the grant that
- // grants Amazon Redshift permission to the CMK in the destination region.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation DisableSnapshotCopy for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeSnapshotCopyAlreadyDisabledFault "SnapshotCopyAlreadyDisabledFault"
- // The cluster already has cross-region snapshot copy disabled.
- //
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
- // Your account is not authorized to perform the requested operation.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DisableSnapshotCopy
- func (c *Redshift) DisableSnapshotCopy(input *DisableSnapshotCopyInput) (*DisableSnapshotCopyOutput, error) {
- req, out := c.DisableSnapshotCopyRequest(input)
- return out, req.Send()
- }
- // DisableSnapshotCopyWithContext is the same as DisableSnapshotCopy with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DisableSnapshotCopy for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) DisableSnapshotCopyWithContext(ctx aws.Context, input *DisableSnapshotCopyInput, opts ...request.Option) (*DisableSnapshotCopyOutput, error) {
- req, out := c.DisableSnapshotCopyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opEnableLogging = "EnableLogging"
- // EnableLoggingRequest generates a "aws/request.Request" representing the
- // client's request for the EnableLogging operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See EnableLogging for more information on using the EnableLogging
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the EnableLoggingRequest method.
- // req, resp := client.EnableLoggingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableLogging
- func (c *Redshift) EnableLoggingRequest(input *EnableLoggingInput) (req *request.Request, output *LoggingStatus) {
- op := &request.Operation{
- Name: opEnableLogging,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &EnableLoggingInput{}
- }
- output = &LoggingStatus{}
- req = c.newRequest(op, input, output)
- return
- }
- // EnableLogging API operation for Amazon Redshift.
- //
- // Starts logging information, such as queries and connection attempts, for
- // the specified Amazon Redshift cluster.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation EnableLogging for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeBucketNotFoundFault "BucketNotFoundFault"
- // Could not find the specified S3 bucket.
- //
- // * ErrCodeInsufficientS3BucketPolicyFault "InsufficientS3BucketPolicyFault"
- // The cluster does not have read bucket or put object permissions on the S3
- // bucket specified when enabling logging.
- //
- // * ErrCodeInvalidS3KeyPrefixFault "InvalidS3KeyPrefixFault"
- // The string specified for the logging S3 key prefix does not comply with the
- // documented constraints.
- //
- // * ErrCodeInvalidS3BucketNameFault "InvalidS3BucketNameFault"
- // The S3 bucket name is invalid. For more information about naming rules, go
- // to Bucket Restrictions and Limitations (http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html)
- // in the Amazon Simple Storage Service (S3) Developer Guide.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableLogging
- func (c *Redshift) EnableLogging(input *EnableLoggingInput) (*LoggingStatus, error) {
- req, out := c.EnableLoggingRequest(input)
- return out, req.Send()
- }
- // EnableLoggingWithContext is the same as EnableLogging with the addition of
- // the ability to pass a context and additional request options.
- //
- // See EnableLogging for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) EnableLoggingWithContext(ctx aws.Context, input *EnableLoggingInput, opts ...request.Option) (*LoggingStatus, error) {
- req, out := c.EnableLoggingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opEnableSnapshotCopy = "EnableSnapshotCopy"
- // EnableSnapshotCopyRequest generates a "aws/request.Request" representing the
- // client's request for the EnableSnapshotCopy operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See EnableSnapshotCopy for more information on using the EnableSnapshotCopy
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the EnableSnapshotCopyRequest method.
- // req, resp := client.EnableSnapshotCopyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableSnapshotCopy
- func (c *Redshift) EnableSnapshotCopyRequest(input *EnableSnapshotCopyInput) (req *request.Request, output *EnableSnapshotCopyOutput) {
- op := &request.Operation{
- Name: opEnableSnapshotCopy,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &EnableSnapshotCopyInput{}
- }
- output = &EnableSnapshotCopyOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // EnableSnapshotCopy API operation for Amazon Redshift.
- //
- // Enables the automatic copy of snapshots from one region to another region
- // for a specified cluster.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation EnableSnapshotCopy for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeIncompatibleOrderableOptions "IncompatibleOrderableOptions"
- // The specified options are incompatible.
- //
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeCopyToRegionDisabledFault "CopyToRegionDisabledFault"
- // Cross-region snapshot copy was temporarily disabled. Try your request again.
- //
- // * ErrCodeSnapshotCopyAlreadyEnabledFault "SnapshotCopyAlreadyEnabledFault"
- // The cluster already has cross-region snapshot copy enabled.
- //
- // * ErrCodeUnknownSnapshotCopyRegionFault "UnknownSnapshotCopyRegionFault"
- // The specified region is incorrect or does not exist.
- //
- // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
- // Your account is not authorized to perform the requested operation.
- //
- // * ErrCodeSnapshotCopyGrantNotFoundFault "SnapshotCopyGrantNotFoundFault"
- // The specified snapshot copy grant can't be found. Make sure that the name
- // is typed correctly and that the grant exists in the destination region.
- //
- // * ErrCodeLimitExceededFault "LimitExceededFault"
- // The encryption key has exceeded its grant limit in AWS KMS.
- //
- // * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault"
- // The request cannot be completed because a dependent service is throttling
- // requests made by Amazon Redshift on your behalf. Wait and retry the request.
- //
- // * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault"
- // The retention period specified is either in the past or is not a valid value.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/EnableSnapshotCopy
- func (c *Redshift) EnableSnapshotCopy(input *EnableSnapshotCopyInput) (*EnableSnapshotCopyOutput, error) {
- req, out := c.EnableSnapshotCopyRequest(input)
- return out, req.Send()
- }
- // EnableSnapshotCopyWithContext is the same as EnableSnapshotCopy with the addition of
- // the ability to pass a context and additional request options.
- //
- // See EnableSnapshotCopy for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) EnableSnapshotCopyWithContext(ctx aws.Context, input *EnableSnapshotCopyInput, opts ...request.Option) (*EnableSnapshotCopyOutput, error) {
- req, out := c.EnableSnapshotCopyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetClusterCredentials = "GetClusterCredentials"
- // GetClusterCredentialsRequest generates a "aws/request.Request" representing the
- // client's request for the GetClusterCredentials operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetClusterCredentials for more information on using the GetClusterCredentials
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetClusterCredentialsRequest method.
- // req, resp := client.GetClusterCredentialsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/GetClusterCredentials
- func (c *Redshift) GetClusterCredentialsRequest(input *GetClusterCredentialsInput) (req *request.Request, output *GetClusterCredentialsOutput) {
- op := &request.Operation{
- Name: opGetClusterCredentials,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetClusterCredentialsInput{}
- }
- output = &GetClusterCredentialsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetClusterCredentials API operation for Amazon Redshift.
- //
- // Returns a database user name and temporary password with temporary authorization
- // to log on to an Amazon Redshift database. The action returns the database
- // user name prefixed with IAM: if AutoCreate is False or IAMA: if AutoCreate
- // is True. You can optionally specify one or more database user groups that
- // the user will join at log on. By default, the temporary credentials expire
- // in 900 seconds. You can optionally specify a duration between 900 seconds
- // (15 minutes) and 3600 seconds (60 minutes). For more information, see Using
- // IAM Authentication to Generate Database User Credentials (http://docs.aws.amazon.com/redshift/latest/mgmt/generating-user-credentials.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // The AWS Identity and Access Management (IAM)user or role that executes GetClusterCredentials
- // must have an IAM policy attached that allows access to all necessary actions
- // and resources. For more information about permissions, see Resource Policies
- // for GetClusterCredentials (http://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-identity-based.html#redshift-policy-resources.getclustercredentials-resources)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // If the DbGroups parameter is specified, the IAM policy must allow the redshift:JoinGroup
- // action with access to the listed dbgroups.
- //
- // In addition, if the AutoCreate parameter is set to True, then the policy
- // must include the redshift:CreateClusterUser privilege.
- //
- // If the DbName parameter is specified, the IAM policy must allow access to
- // the resource dbname for the specified database name.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation GetClusterCredentials for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeUnsupportedOperationFault "UnsupportedOperation"
- // The requested operation isn't supported.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/GetClusterCredentials
- func (c *Redshift) GetClusterCredentials(input *GetClusterCredentialsInput) (*GetClusterCredentialsOutput, error) {
- req, out := c.GetClusterCredentialsRequest(input)
- return out, req.Send()
- }
- // GetClusterCredentialsWithContext is the same as GetClusterCredentials with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetClusterCredentials for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) GetClusterCredentialsWithContext(ctx aws.Context, input *GetClusterCredentialsInput, opts ...request.Option) (*GetClusterCredentialsOutput, error) {
- req, out := c.GetClusterCredentialsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetReservedNodeExchangeOfferings = "GetReservedNodeExchangeOfferings"
- // GetReservedNodeExchangeOfferingsRequest generates a "aws/request.Request" representing the
- // client's request for the GetReservedNodeExchangeOfferings operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetReservedNodeExchangeOfferings for more information on using the GetReservedNodeExchangeOfferings
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetReservedNodeExchangeOfferingsRequest method.
- // req, resp := client.GetReservedNodeExchangeOfferingsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/GetReservedNodeExchangeOfferings
- func (c *Redshift) GetReservedNodeExchangeOfferingsRequest(input *GetReservedNodeExchangeOfferingsInput) (req *request.Request, output *GetReservedNodeExchangeOfferingsOutput) {
- op := &request.Operation{
- Name: opGetReservedNodeExchangeOfferings,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetReservedNodeExchangeOfferingsInput{}
- }
- output = &GetReservedNodeExchangeOfferingsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetReservedNodeExchangeOfferings API operation for Amazon Redshift.
- //
- // Returns an array of DC2 ReservedNodeOfferings that matches the payment type,
- // term, and usage price of the given DC1 reserved node.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation GetReservedNodeExchangeOfferings for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeReservedNodeNotFoundFault "ReservedNodeNotFound"
- // The specified reserved compute node not found.
- //
- // * ErrCodeInvalidReservedNodeStateFault "InvalidReservedNodeState"
- // Indicates that the Reserved Node being exchanged is not in an active state.
- //
- // * ErrCodeReservedNodeAlreadyMigratedFault "ReservedNodeAlreadyMigrated"
- // Indicates that the reserved node has already been exchanged.
- //
- // * ErrCodeReservedNodeOfferingNotFoundFault "ReservedNodeOfferingNotFound"
- // Specified offering does not exist.
- //
- // * ErrCodeUnsupportedOperationFault "UnsupportedOperation"
- // The requested operation isn't supported.
- //
- // * ErrCodeDependentServiceUnavailableFault "DependentServiceUnavailableFault"
- // Your request cannot be completed because a dependent internal service is
- // temporarily unavailable. Wait 30 to 60 seconds and try again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/GetReservedNodeExchangeOfferings
- func (c *Redshift) GetReservedNodeExchangeOfferings(input *GetReservedNodeExchangeOfferingsInput) (*GetReservedNodeExchangeOfferingsOutput, error) {
- req, out := c.GetReservedNodeExchangeOfferingsRequest(input)
- return out, req.Send()
- }
- // GetReservedNodeExchangeOfferingsWithContext is the same as GetReservedNodeExchangeOfferings with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetReservedNodeExchangeOfferings for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) GetReservedNodeExchangeOfferingsWithContext(ctx aws.Context, input *GetReservedNodeExchangeOfferingsInput, opts ...request.Option) (*GetReservedNodeExchangeOfferingsOutput, error) {
- req, out := c.GetReservedNodeExchangeOfferingsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyCluster = "ModifyCluster"
- // ModifyClusterRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyCluster operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyCluster for more information on using the ModifyCluster
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyClusterRequest method.
- // req, resp := client.ModifyClusterRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyCluster
- func (c *Redshift) ModifyClusterRequest(input *ModifyClusterInput) (req *request.Request, output *ModifyClusterOutput) {
- op := &request.Operation{
- Name: opModifyCluster,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyClusterInput{}
- }
- output = &ModifyClusterOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyCluster API operation for Amazon Redshift.
- //
- // Modifies the settings for a cluster. For example, you can add another security
- // or parameter group, update the preferred maintenance window, or change the
- // master user password. Resetting a cluster password or modifying the security
- // groups associated with a cluster do not need a reboot. However, modifying
- // a parameter group requires a reboot for parameters to take effect. For more
- // information about managing clusters, go to Amazon Redshift Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // You can also change node type and the number of nodes to scale up or down
- // the cluster. When resizing a cluster, you must specify both the number of
- // nodes and the node type even if one of the parameters does not change.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ModifyCluster for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // * ErrCodeInvalidClusterSecurityGroupStateFault "InvalidClusterSecurityGroupState"
- // The state of the cluster security group is not available.
- //
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeNumberOfNodesQuotaExceededFault "NumberOfNodesQuotaExceeded"
- // The operation would exceed the number of nodes allotted to the account. For
- // information about increasing your quota, go to Limits in Amazon Redshift
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeNumberOfNodesPerClusterLimitExceededFault "NumberOfNodesPerClusterLimitExceeded"
- // The operation would exceed the number of nodes allowed for a cluster.
- //
- // * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound"
- // The cluster security group name does not refer to an existing cluster security
- // group.
- //
- // * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound"
- // The parameter group name does not refer to an existing parameter group.
- //
- // * ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacity"
- // The number of nodes specified exceeds the allotted capacity of the cluster.
- //
- // * ErrCodeUnsupportedOptionFault "UnsupportedOptionFault"
- // A request option was specified that is not supported.
- //
- // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
- // Your account is not authorized to perform the requested operation.
- //
- // * ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault"
- // There is no Amazon Redshift HSM client certificate with the specified identifier.
- //
- // * ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault"
- // There is no Amazon Redshift HSM configuration with the specified identifier.
- //
- // * ErrCodeClusterAlreadyExistsFault "ClusterAlreadyExists"
- // The account already has a cluster with the given identifier.
- //
- // * ErrCodeLimitExceededFault "LimitExceededFault"
- // The encryption key has exceeded its grant limit in AWS KMS.
- //
- // * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault"
- // The request cannot be completed because a dependent service is throttling
- // requests made by Amazon Redshift on your behalf. Wait and retry the request.
- //
- // * ErrCodeInvalidElasticIpFault "InvalidElasticIpFault"
- // The Elastic IP (EIP) is invalid or cannot be found.
- //
- // * ErrCodeTableLimitExceededFault "TableLimitExceeded"
- // The number of tables in the cluster exceeds the limit for the requested new
- // cluster node type.
- //
- // * ErrCodeInvalidClusterTrackFault "InvalidClusterTrack"
- // The provided cluster track name is not valid.
- //
- // * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault"
- // The retention period specified is either in the past or is not a valid value.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyCluster
- func (c *Redshift) ModifyCluster(input *ModifyClusterInput) (*ModifyClusterOutput, error) {
- req, out := c.ModifyClusterRequest(input)
- return out, req.Send()
- }
- // ModifyClusterWithContext is the same as ModifyCluster with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyCluster for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ModifyClusterWithContext(ctx aws.Context, input *ModifyClusterInput, opts ...request.Option) (*ModifyClusterOutput, error) {
- req, out := c.ModifyClusterRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyClusterDbRevision = "ModifyClusterDbRevision"
- // ModifyClusterDbRevisionRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyClusterDbRevision operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyClusterDbRevision for more information on using the ModifyClusterDbRevision
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyClusterDbRevisionRequest method.
- // req, resp := client.ModifyClusterDbRevisionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterDbRevision
- func (c *Redshift) ModifyClusterDbRevisionRequest(input *ModifyClusterDbRevisionInput) (req *request.Request, output *ModifyClusterDbRevisionOutput) {
- op := &request.Operation{
- Name: opModifyClusterDbRevision,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyClusterDbRevisionInput{}
- }
- output = &ModifyClusterDbRevisionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyClusterDbRevision API operation for Amazon Redshift.
- //
- // Modifies the database revision of a cluster. The database revision is a unique
- // revision of the database running in a cluster.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ModifyClusterDbRevision for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeClusterOnLatestRevisionFault "ClusterOnLatestRevision"
- // Cluster is already on the latest database revision.
- //
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterDbRevision
- func (c *Redshift) ModifyClusterDbRevision(input *ModifyClusterDbRevisionInput) (*ModifyClusterDbRevisionOutput, error) {
- req, out := c.ModifyClusterDbRevisionRequest(input)
- return out, req.Send()
- }
- // ModifyClusterDbRevisionWithContext is the same as ModifyClusterDbRevision with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyClusterDbRevision for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ModifyClusterDbRevisionWithContext(ctx aws.Context, input *ModifyClusterDbRevisionInput, opts ...request.Option) (*ModifyClusterDbRevisionOutput, error) {
- req, out := c.ModifyClusterDbRevisionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyClusterIamRoles = "ModifyClusterIamRoles"
- // ModifyClusterIamRolesRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyClusterIamRoles operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyClusterIamRoles for more information on using the ModifyClusterIamRoles
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyClusterIamRolesRequest method.
- // req, resp := client.ModifyClusterIamRolesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterIamRoles
- func (c *Redshift) ModifyClusterIamRolesRequest(input *ModifyClusterIamRolesInput) (req *request.Request, output *ModifyClusterIamRolesOutput) {
- op := &request.Operation{
- Name: opModifyClusterIamRoles,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyClusterIamRolesInput{}
- }
- output = &ModifyClusterIamRolesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyClusterIamRoles API operation for Amazon Redshift.
- //
- // Modifies the list of AWS Identity and Access Management (IAM) roles that
- // can be used by the cluster to access other AWS services.
- //
- // A cluster can have up to 10 IAM roles associated at any time.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ModifyClusterIamRoles for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterIamRoles
- func (c *Redshift) ModifyClusterIamRoles(input *ModifyClusterIamRolesInput) (*ModifyClusterIamRolesOutput, error) {
- req, out := c.ModifyClusterIamRolesRequest(input)
- return out, req.Send()
- }
- // ModifyClusterIamRolesWithContext is the same as ModifyClusterIamRoles with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyClusterIamRoles for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ModifyClusterIamRolesWithContext(ctx aws.Context, input *ModifyClusterIamRolesInput, opts ...request.Option) (*ModifyClusterIamRolesOutput, error) {
- req, out := c.ModifyClusterIamRolesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyClusterMaintenance = "ModifyClusterMaintenance"
- // ModifyClusterMaintenanceRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyClusterMaintenance operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyClusterMaintenance for more information on using the ModifyClusterMaintenance
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyClusterMaintenanceRequest method.
- // req, resp := client.ModifyClusterMaintenanceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterMaintenance
- func (c *Redshift) ModifyClusterMaintenanceRequest(input *ModifyClusterMaintenanceInput) (req *request.Request, output *ModifyClusterMaintenanceOutput) {
- op := &request.Operation{
- Name: opModifyClusterMaintenance,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyClusterMaintenanceInput{}
- }
- output = &ModifyClusterMaintenanceOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyClusterMaintenance API operation for Amazon Redshift.
- //
- // Modifies the maintenance settings of a cluster. For example, you can defer
- // a maintenance window. You can also update or cancel a deferment.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ModifyClusterMaintenance for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterMaintenance
- func (c *Redshift) ModifyClusterMaintenance(input *ModifyClusterMaintenanceInput) (*ModifyClusterMaintenanceOutput, error) {
- req, out := c.ModifyClusterMaintenanceRequest(input)
- return out, req.Send()
- }
- // ModifyClusterMaintenanceWithContext is the same as ModifyClusterMaintenance with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyClusterMaintenance for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ModifyClusterMaintenanceWithContext(ctx aws.Context, input *ModifyClusterMaintenanceInput, opts ...request.Option) (*ModifyClusterMaintenanceOutput, error) {
- req, out := c.ModifyClusterMaintenanceRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyClusterParameterGroup = "ModifyClusterParameterGroup"
- // ModifyClusterParameterGroupRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyClusterParameterGroup operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyClusterParameterGroup for more information on using the ModifyClusterParameterGroup
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyClusterParameterGroupRequest method.
- // req, resp := client.ModifyClusterParameterGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterParameterGroup
- func (c *Redshift) ModifyClusterParameterGroupRequest(input *ModifyClusterParameterGroupInput) (req *request.Request, output *ClusterParameterGroupNameMessage) {
- op := &request.Operation{
- Name: opModifyClusterParameterGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyClusterParameterGroupInput{}
- }
- output = &ClusterParameterGroupNameMessage{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyClusterParameterGroup API operation for Amazon Redshift.
- //
- // Modifies the parameters of a parameter group.
- //
- // For more information about parameters and parameter groups, go to Amazon
- // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ModifyClusterParameterGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound"
- // The parameter group name does not refer to an existing parameter group.
- //
- // * ErrCodeInvalidClusterParameterGroupStateFault "InvalidClusterParameterGroupState"
- // The cluster parameter group action can not be completed because another task
- // is in progress that involves the parameter group. Wait a few moments and
- // try the operation again.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterParameterGroup
- func (c *Redshift) ModifyClusterParameterGroup(input *ModifyClusterParameterGroupInput) (*ClusterParameterGroupNameMessage, error) {
- req, out := c.ModifyClusterParameterGroupRequest(input)
- return out, req.Send()
- }
- // ModifyClusterParameterGroupWithContext is the same as ModifyClusterParameterGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyClusterParameterGroup for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ModifyClusterParameterGroupWithContext(ctx aws.Context, input *ModifyClusterParameterGroupInput, opts ...request.Option) (*ClusterParameterGroupNameMessage, error) {
- req, out := c.ModifyClusterParameterGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyClusterSnapshot = "ModifyClusterSnapshot"
- // ModifyClusterSnapshotRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyClusterSnapshot operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyClusterSnapshot for more information on using the ModifyClusterSnapshot
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyClusterSnapshotRequest method.
- // req, resp := client.ModifyClusterSnapshotRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSnapshot
- func (c *Redshift) ModifyClusterSnapshotRequest(input *ModifyClusterSnapshotInput) (req *request.Request, output *ModifyClusterSnapshotOutput) {
- op := &request.Operation{
- Name: opModifyClusterSnapshot,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyClusterSnapshotInput{}
- }
- output = &ModifyClusterSnapshotOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyClusterSnapshot API operation for Amazon Redshift.
- //
- // Modifies the settings for a snapshot.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ModifyClusterSnapshot for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState"
- // The specified cluster snapshot is not in the available state, or other accounts
- // are authorized to access the snapshot.
- //
- // * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound"
- // The snapshot identifier does not refer to an existing cluster snapshot.
- //
- // * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault"
- // The retention period specified is either in the past or is not a valid value.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSnapshot
- func (c *Redshift) ModifyClusterSnapshot(input *ModifyClusterSnapshotInput) (*ModifyClusterSnapshotOutput, error) {
- req, out := c.ModifyClusterSnapshotRequest(input)
- return out, req.Send()
- }
- // ModifyClusterSnapshotWithContext is the same as ModifyClusterSnapshot with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyClusterSnapshot for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ModifyClusterSnapshotWithContext(ctx aws.Context, input *ModifyClusterSnapshotInput, opts ...request.Option) (*ModifyClusterSnapshotOutput, error) {
- req, out := c.ModifyClusterSnapshotRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyClusterSnapshotSchedule = "ModifyClusterSnapshotSchedule"
- // ModifyClusterSnapshotScheduleRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyClusterSnapshotSchedule operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyClusterSnapshotSchedule for more information on using the ModifyClusterSnapshotSchedule
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyClusterSnapshotScheduleRequest method.
- // req, resp := client.ModifyClusterSnapshotScheduleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSnapshotSchedule
- func (c *Redshift) ModifyClusterSnapshotScheduleRequest(input *ModifyClusterSnapshotScheduleInput) (req *request.Request, output *ModifyClusterSnapshotScheduleOutput) {
- op := &request.Operation{
- Name: opModifyClusterSnapshotSchedule,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyClusterSnapshotScheduleInput{}
- }
- output = &ModifyClusterSnapshotScheduleOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // ModifyClusterSnapshotSchedule API operation for Amazon Redshift.
- //
- // Modifies a snapshot schedule for a cluster.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ModifyClusterSnapshotSchedule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound"
- // We could not find the specified snapshot schedule.
- //
- // * ErrCodeInvalidClusterSnapshotScheduleStateFault "InvalidClusterSnapshotScheduleState"
- // The cluster snapshot schedule state is not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSnapshotSchedule
- func (c *Redshift) ModifyClusterSnapshotSchedule(input *ModifyClusterSnapshotScheduleInput) (*ModifyClusterSnapshotScheduleOutput, error) {
- req, out := c.ModifyClusterSnapshotScheduleRequest(input)
- return out, req.Send()
- }
- // ModifyClusterSnapshotScheduleWithContext is the same as ModifyClusterSnapshotSchedule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyClusterSnapshotSchedule for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ModifyClusterSnapshotScheduleWithContext(ctx aws.Context, input *ModifyClusterSnapshotScheduleInput, opts ...request.Option) (*ModifyClusterSnapshotScheduleOutput, error) {
- req, out := c.ModifyClusterSnapshotScheduleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyClusterSubnetGroup = "ModifyClusterSubnetGroup"
- // ModifyClusterSubnetGroupRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyClusterSubnetGroup operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyClusterSubnetGroup for more information on using the ModifyClusterSubnetGroup
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyClusterSubnetGroupRequest method.
- // req, resp := client.ModifyClusterSubnetGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSubnetGroup
- func (c *Redshift) ModifyClusterSubnetGroupRequest(input *ModifyClusterSubnetGroupInput) (req *request.Request, output *ModifyClusterSubnetGroupOutput) {
- op := &request.Operation{
- Name: opModifyClusterSubnetGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyClusterSubnetGroupInput{}
- }
- output = &ModifyClusterSubnetGroupOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyClusterSubnetGroup API operation for Amazon Redshift.
- //
- // Modifies a cluster subnet group to include the specified list of VPC subnets.
- // The operation replaces the existing list of subnets with the new list of
- // subnets.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ModifyClusterSubnetGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault"
- // The cluster subnet group name does not refer to an existing cluster subnet
- // group.
- //
- // * ErrCodeClusterSubnetQuotaExceededFault "ClusterSubnetQuotaExceededFault"
- // The request would result in user exceeding the allowed number of subnets
- // in a cluster subnet groups. For information about increasing your quota,
- // go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeSubnetAlreadyInUse "SubnetAlreadyInUse"
- // A specified subnet is already in use by another cluster.
- //
- // * ErrCodeInvalidSubnet "InvalidSubnet"
- // The requested subnet is not valid, or not all of the subnets are in the same
- // VPC.
- //
- // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
- // Your account is not authorized to perform the requested operation.
- //
- // * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault"
- // The request cannot be completed because a dependent service is throttling
- // requests made by Amazon Redshift on your behalf. Wait and retry the request.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSubnetGroup
- func (c *Redshift) ModifyClusterSubnetGroup(input *ModifyClusterSubnetGroupInput) (*ModifyClusterSubnetGroupOutput, error) {
- req, out := c.ModifyClusterSubnetGroupRequest(input)
- return out, req.Send()
- }
- // ModifyClusterSubnetGroupWithContext is the same as ModifyClusterSubnetGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyClusterSubnetGroup for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ModifyClusterSubnetGroupWithContext(ctx aws.Context, input *ModifyClusterSubnetGroupInput, opts ...request.Option) (*ModifyClusterSubnetGroupOutput, error) {
- req, out := c.ModifyClusterSubnetGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifyEventSubscription = "ModifyEventSubscription"
- // ModifyEventSubscriptionRequest generates a "aws/request.Request" representing the
- // client's request for the ModifyEventSubscription operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifyEventSubscription for more information on using the ModifyEventSubscription
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifyEventSubscriptionRequest method.
- // req, resp := client.ModifyEventSubscriptionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyEventSubscription
- func (c *Redshift) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput) (req *request.Request, output *ModifyEventSubscriptionOutput) {
- op := &request.Operation{
- Name: opModifyEventSubscription,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifyEventSubscriptionInput{}
- }
- output = &ModifyEventSubscriptionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifyEventSubscription API operation for Amazon Redshift.
- //
- // Modifies an existing Amazon Redshift event notification subscription.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ModifyEventSubscription for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeSubscriptionNotFoundFault "SubscriptionNotFound"
- // An Amazon Redshift event notification subscription with the specified name
- // does not exist.
- //
- // * ErrCodeSNSInvalidTopicFault "SNSInvalidTopic"
- // Amazon SNS has responded that there is a problem with the specified Amazon
- // SNS topic.
- //
- // * ErrCodeSNSNoAuthorizationFault "SNSNoAuthorization"
- // You do not have permission to publish to the specified Amazon SNS topic.
- //
- // * ErrCodeSNSTopicArnNotFoundFault "SNSTopicArnNotFound"
- // An Amazon SNS topic with the specified Amazon Resource Name (ARN) does not
- // exist.
- //
- // * ErrCodeSubscriptionEventIdNotFoundFault "SubscriptionEventIdNotFound"
- // An Amazon Redshift event with the specified event ID does not exist.
- //
- // * ErrCodeSubscriptionCategoryNotFoundFault "SubscriptionCategoryNotFound"
- // The value specified for the event category was not one of the allowed values,
- // or it specified a category that does not apply to the specified source type.
- // The allowed values are Configuration, Management, Monitoring, and Security.
- //
- // * ErrCodeSubscriptionSeverityNotFoundFault "SubscriptionSeverityNotFound"
- // The value specified for the event severity was not one of the allowed values,
- // or it specified a severity that does not apply to the specified source type.
- // The allowed values are ERROR and INFO.
- //
- // * ErrCodeSourceNotFoundFault "SourceNotFound"
- // The specified Amazon Redshift event source could not be found.
- //
- // * ErrCodeInvalidSubscriptionStateFault "InvalidSubscriptionStateFault"
- // The subscription request is invalid because it is a duplicate request. This
- // subscription request is already in progress.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyEventSubscription
- func (c *Redshift) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error) {
- req, out := c.ModifyEventSubscriptionRequest(input)
- return out, req.Send()
- }
- // ModifyEventSubscriptionWithContext is the same as ModifyEventSubscription with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifyEventSubscription for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ModifyEventSubscriptionWithContext(ctx aws.Context, input *ModifyEventSubscriptionInput, opts ...request.Option) (*ModifyEventSubscriptionOutput, error) {
- req, out := c.ModifyEventSubscriptionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifySnapshotCopyRetentionPeriod = "ModifySnapshotCopyRetentionPeriod"
- // ModifySnapshotCopyRetentionPeriodRequest generates a "aws/request.Request" representing the
- // client's request for the ModifySnapshotCopyRetentionPeriod operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifySnapshotCopyRetentionPeriod for more information on using the ModifySnapshotCopyRetentionPeriod
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifySnapshotCopyRetentionPeriodRequest method.
- // req, resp := client.ModifySnapshotCopyRetentionPeriodRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotCopyRetentionPeriod
- func (c *Redshift) ModifySnapshotCopyRetentionPeriodRequest(input *ModifySnapshotCopyRetentionPeriodInput) (req *request.Request, output *ModifySnapshotCopyRetentionPeriodOutput) {
- op := &request.Operation{
- Name: opModifySnapshotCopyRetentionPeriod,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifySnapshotCopyRetentionPeriodInput{}
- }
- output = &ModifySnapshotCopyRetentionPeriodOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifySnapshotCopyRetentionPeriod API operation for Amazon Redshift.
- //
- // Modifies the number of days to retain snapshots in the destination AWS Region
- // after they are copied from the source AWS Region. By default, this operation
- // only changes the retention period of copied automated snapshots. The retention
- // periods for both new and existing copied automated snapshots are updated
- // with the new retention period. You can set the manual option to change only
- // the retention periods of copied manual snapshots. If you set this option,
- // only newly copied manual snapshots have the new retention period.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ModifySnapshotCopyRetentionPeriod for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeSnapshotCopyDisabledFault "SnapshotCopyDisabledFault"
- // Cross-region snapshot copy was temporarily disabled. Try your request again.
- //
- // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
- // Your account is not authorized to perform the requested operation.
- //
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault"
- // The retention period specified is either in the past or is not a valid value.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotCopyRetentionPeriod
- func (c *Redshift) ModifySnapshotCopyRetentionPeriod(input *ModifySnapshotCopyRetentionPeriodInput) (*ModifySnapshotCopyRetentionPeriodOutput, error) {
- req, out := c.ModifySnapshotCopyRetentionPeriodRequest(input)
- return out, req.Send()
- }
- // ModifySnapshotCopyRetentionPeriodWithContext is the same as ModifySnapshotCopyRetentionPeriod with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifySnapshotCopyRetentionPeriod for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ModifySnapshotCopyRetentionPeriodWithContext(ctx aws.Context, input *ModifySnapshotCopyRetentionPeriodInput, opts ...request.Option) (*ModifySnapshotCopyRetentionPeriodOutput, error) {
- req, out := c.ModifySnapshotCopyRetentionPeriodRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opModifySnapshotSchedule = "ModifySnapshotSchedule"
- // ModifySnapshotScheduleRequest generates a "aws/request.Request" representing the
- // client's request for the ModifySnapshotSchedule operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ModifySnapshotSchedule for more information on using the ModifySnapshotSchedule
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ModifySnapshotScheduleRequest method.
- // req, resp := client.ModifySnapshotScheduleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotSchedule
- func (c *Redshift) ModifySnapshotScheduleRequest(input *ModifySnapshotScheduleInput) (req *request.Request, output *ModifySnapshotScheduleOutput) {
- op := &request.Operation{
- Name: opModifySnapshotSchedule,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ModifySnapshotScheduleInput{}
- }
- output = &ModifySnapshotScheduleOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ModifySnapshotSchedule API operation for Amazon Redshift.
- //
- // Modifies a snapshot schedule. Any schedule associated with a cluster is modified
- // asynchronously.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ModifySnapshotSchedule for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidScheduleFault "InvalidSchedule"
- // The schedule you submitted isn't valid.
- //
- // * ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound"
- // We could not find the specified snapshot schedule.
- //
- // * ErrCodeSnapshotScheduleUpdateInProgressFault "SnapshotScheduleUpdateInProgress"
- // The specified snapshot schedule is already being updated.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotSchedule
- func (c *Redshift) ModifySnapshotSchedule(input *ModifySnapshotScheduleInput) (*ModifySnapshotScheduleOutput, error) {
- req, out := c.ModifySnapshotScheduleRequest(input)
- return out, req.Send()
- }
- // ModifySnapshotScheduleWithContext is the same as ModifySnapshotSchedule with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ModifySnapshotSchedule for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ModifySnapshotScheduleWithContext(ctx aws.Context, input *ModifySnapshotScheduleInput, opts ...request.Option) (*ModifySnapshotScheduleOutput, error) {
- req, out := c.ModifySnapshotScheduleRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPurchaseReservedNodeOffering = "PurchaseReservedNodeOffering"
- // PurchaseReservedNodeOfferingRequest generates a "aws/request.Request" representing the
- // client's request for the PurchaseReservedNodeOffering operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PurchaseReservedNodeOffering for more information on using the PurchaseReservedNodeOffering
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PurchaseReservedNodeOfferingRequest method.
- // req, resp := client.PurchaseReservedNodeOfferingRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PurchaseReservedNodeOffering
- func (c *Redshift) PurchaseReservedNodeOfferingRequest(input *PurchaseReservedNodeOfferingInput) (req *request.Request, output *PurchaseReservedNodeOfferingOutput) {
- op := &request.Operation{
- Name: opPurchaseReservedNodeOffering,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PurchaseReservedNodeOfferingInput{}
- }
- output = &PurchaseReservedNodeOfferingOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PurchaseReservedNodeOffering API operation for Amazon Redshift.
- //
- // Allows you to purchase reserved nodes. Amazon Redshift offers a predefined
- // set of reserved node offerings. You can purchase one or more of the offerings.
- // You can call the DescribeReservedNodeOfferings API to obtain the available
- // reserved node offerings. You can call this API by providing a specific reserved
- // node offering and the number of nodes you want to reserve.
- //
- // For more information about reserved node offerings, go to Purchasing Reserved
- // Nodes (http://docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation PurchaseReservedNodeOffering for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeReservedNodeOfferingNotFoundFault "ReservedNodeOfferingNotFound"
- // Specified offering does not exist.
- //
- // * ErrCodeReservedNodeAlreadyExistsFault "ReservedNodeAlreadyExists"
- // User already has a reservation with the given identifier.
- //
- // * ErrCodeReservedNodeQuotaExceededFault "ReservedNodeQuotaExceeded"
- // Request would exceed the user's compute node quota. For information about
- // increasing your quota, go to Limits in Amazon Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeUnsupportedOperationFault "UnsupportedOperation"
- // The requested operation isn't supported.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PurchaseReservedNodeOffering
- func (c *Redshift) PurchaseReservedNodeOffering(input *PurchaseReservedNodeOfferingInput) (*PurchaseReservedNodeOfferingOutput, error) {
- req, out := c.PurchaseReservedNodeOfferingRequest(input)
- return out, req.Send()
- }
- // PurchaseReservedNodeOfferingWithContext is the same as PurchaseReservedNodeOffering with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PurchaseReservedNodeOffering for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) PurchaseReservedNodeOfferingWithContext(ctx aws.Context, input *PurchaseReservedNodeOfferingInput, opts ...request.Option) (*PurchaseReservedNodeOfferingOutput, error) {
- req, out := c.PurchaseReservedNodeOfferingRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRebootCluster = "RebootCluster"
- // RebootClusterRequest generates a "aws/request.Request" representing the
- // client's request for the RebootCluster operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RebootCluster for more information on using the RebootCluster
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RebootClusterRequest method.
- // req, resp := client.RebootClusterRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RebootCluster
- func (c *Redshift) RebootClusterRequest(input *RebootClusterInput) (req *request.Request, output *RebootClusterOutput) {
- op := &request.Operation{
- Name: opRebootCluster,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RebootClusterInput{}
- }
- output = &RebootClusterOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RebootCluster API operation for Amazon Redshift.
- //
- // Reboots a cluster. This action is taken as soon as possible. It results in
- // a momentary outage to the cluster, during which the cluster status is set
- // to rebooting. A cluster event is created when the reboot is completed. Any
- // pending cluster modifications (see ModifyCluster) are applied at this reboot.
- // For more information about managing clusters, go to Amazon Redshift Clusters
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation RebootCluster for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RebootCluster
- func (c *Redshift) RebootCluster(input *RebootClusterInput) (*RebootClusterOutput, error) {
- req, out := c.RebootClusterRequest(input)
- return out, req.Send()
- }
- // RebootClusterWithContext is the same as RebootCluster with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RebootCluster for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) RebootClusterWithContext(ctx aws.Context, input *RebootClusterInput, opts ...request.Option) (*RebootClusterOutput, error) {
- req, out := c.RebootClusterRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opResetClusterParameterGroup = "ResetClusterParameterGroup"
- // ResetClusterParameterGroupRequest generates a "aws/request.Request" representing the
- // client's request for the ResetClusterParameterGroup operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ResetClusterParameterGroup for more information on using the ResetClusterParameterGroup
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ResetClusterParameterGroupRequest method.
- // req, resp := client.ResetClusterParameterGroupRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResetClusterParameterGroup
- func (c *Redshift) ResetClusterParameterGroupRequest(input *ResetClusterParameterGroupInput) (req *request.Request, output *ClusterParameterGroupNameMessage) {
- op := &request.Operation{
- Name: opResetClusterParameterGroup,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ResetClusterParameterGroupInput{}
- }
- output = &ClusterParameterGroupNameMessage{}
- req = c.newRequest(op, input, output)
- return
- }
- // ResetClusterParameterGroup API operation for Amazon Redshift.
- //
- // Sets one or more parameters of the specified parameter group to their default
- // values and sets the source values of the parameters to "engine-default".
- // To reset the entire parameter group specify the ResetAllParameters parameter.
- // For parameter changes to take effect you must reboot any associated clusters.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ResetClusterParameterGroup for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidClusterParameterGroupStateFault "InvalidClusterParameterGroupState"
- // The cluster parameter group action can not be completed because another task
- // is in progress that involves the parameter group. Wait a few moments and
- // try the operation again.
- //
- // * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound"
- // The parameter group name does not refer to an existing parameter group.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResetClusterParameterGroup
- func (c *Redshift) ResetClusterParameterGroup(input *ResetClusterParameterGroupInput) (*ClusterParameterGroupNameMessage, error) {
- req, out := c.ResetClusterParameterGroupRequest(input)
- return out, req.Send()
- }
- // ResetClusterParameterGroupWithContext is the same as ResetClusterParameterGroup with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ResetClusterParameterGroup for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ResetClusterParameterGroupWithContext(ctx aws.Context, input *ResetClusterParameterGroupInput, opts ...request.Option) (*ClusterParameterGroupNameMessage, error) {
- req, out := c.ResetClusterParameterGroupRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opResizeCluster = "ResizeCluster"
- // ResizeClusterRequest generates a "aws/request.Request" representing the
- // client's request for the ResizeCluster operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ResizeCluster for more information on using the ResizeCluster
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ResizeClusterRequest method.
- // req, resp := client.ResizeClusterRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResizeCluster
- func (c *Redshift) ResizeClusterRequest(input *ResizeClusterInput) (req *request.Request, output *ResizeClusterOutput) {
- op := &request.Operation{
- Name: opResizeCluster,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ResizeClusterInput{}
- }
- output = &ResizeClusterOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ResizeCluster API operation for Amazon Redshift.
- //
- // Changes the size of the cluster. You can change the cluster's type, or change
- // the number or type of nodes. The default behavior is to use the elastic resize
- // method. With an elastic resize, your cluster is available for read and write
- // operations more quickly than with the classic resize method.
- //
- // Elastic resize operations have the following restrictions:
- //
- // * You can only resize clusters of the following types:
- //
- // dc2.large
- //
- // dc2.8xlarge
- //
- // ds2.xlarge
- //
- // ds2.8xlarge
- //
- // * The type of nodes that you add must match the node type for the cluster.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation ResizeCluster for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeNumberOfNodesQuotaExceededFault "NumberOfNodesQuotaExceeded"
- // The operation would exceed the number of nodes allotted to the account. For
- // information about increasing your quota, go to Limits in Amazon Redshift
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeNumberOfNodesPerClusterLimitExceededFault "NumberOfNodesPerClusterLimitExceeded"
- // The operation would exceed the number of nodes allowed for a cluster.
- //
- // * ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacity"
- // The number of nodes specified exceeds the allotted capacity of the cluster.
- //
- // * ErrCodeUnsupportedOptionFault "UnsupportedOptionFault"
- // A request option was specified that is not supported.
- //
- // * ErrCodeUnsupportedOperationFault "UnsupportedOperation"
- // The requested operation isn't supported.
- //
- // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
- // Your account is not authorized to perform the requested operation.
- //
- // * ErrCodeLimitExceededFault "LimitExceededFault"
- // The encryption key has exceeded its grant limit in AWS KMS.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ResizeCluster
- func (c *Redshift) ResizeCluster(input *ResizeClusterInput) (*ResizeClusterOutput, error) {
- req, out := c.ResizeClusterRequest(input)
- return out, req.Send()
- }
- // ResizeClusterWithContext is the same as ResizeCluster with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ResizeCluster for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) ResizeClusterWithContext(ctx aws.Context, input *ResizeClusterInput, opts ...request.Option) (*ResizeClusterOutput, error) {
- req, out := c.ResizeClusterRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRestoreFromClusterSnapshot = "RestoreFromClusterSnapshot"
- // RestoreFromClusterSnapshotRequest generates a "aws/request.Request" representing the
- // client's request for the RestoreFromClusterSnapshot operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RestoreFromClusterSnapshot for more information on using the RestoreFromClusterSnapshot
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RestoreFromClusterSnapshotRequest method.
- // req, resp := client.RestoreFromClusterSnapshotRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreFromClusterSnapshot
- func (c *Redshift) RestoreFromClusterSnapshotRequest(input *RestoreFromClusterSnapshotInput) (req *request.Request, output *RestoreFromClusterSnapshotOutput) {
- op := &request.Operation{
- Name: opRestoreFromClusterSnapshot,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RestoreFromClusterSnapshotInput{}
- }
- output = &RestoreFromClusterSnapshotOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RestoreFromClusterSnapshot API operation for Amazon Redshift.
- //
- // Creates a new cluster from a snapshot. By default, Amazon Redshift creates
- // the resulting cluster with the same configuration as the original cluster
- // from which the snapshot was created, except that the new cluster is created
- // with the default cluster security and parameter groups. After Amazon Redshift
- // creates the cluster, you can use the ModifyCluster API to associate a different
- // security group and different parameter group with the restored cluster. If
- // you are using a DS node type, you can also choose to change to another DS
- // node type of the same size during restore.
- //
- // If you restore a cluster into a VPC, you must provide a cluster subnet group
- // where you want the cluster restored.
- //
- // For more information about working with snapshots, go to Amazon Redshift
- // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation RestoreFromClusterSnapshot for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeAccessToSnapshotDeniedFault "AccessToSnapshotDenied"
- // The owner of the specified snapshot has not authorized your account to access
- // the snapshot.
- //
- // * ErrCodeClusterAlreadyExistsFault "ClusterAlreadyExists"
- // The account already has a cluster with the given identifier.
- //
- // * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound"
- // The snapshot identifier does not refer to an existing cluster snapshot.
- //
- // * ErrCodeClusterQuotaExceededFault "ClusterQuotaExceeded"
- // The request would exceed the allowed number of cluster instances for this
- // account. For information about increasing your quota, go to Limits in Amazon
- // Redshift (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacity"
- // The number of nodes specified exceeds the allotted capacity of the cluster.
- //
- // * ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState"
- // The specified cluster snapshot is not in the available state, or other accounts
- // are authorized to access the snapshot.
- //
- // * ErrCodeInvalidRestoreFault "InvalidRestore"
- // The restore is invalid.
- //
- // * ErrCodeNumberOfNodesQuotaExceededFault "NumberOfNodesQuotaExceeded"
- // The operation would exceed the number of nodes allotted to the account. For
- // information about increasing your quota, go to Limits in Amazon Redshift
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // * ErrCodeNumberOfNodesPerClusterLimitExceededFault "NumberOfNodesPerClusterLimitExceeded"
- // The operation would exceed the number of nodes allowed for a cluster.
- //
- // * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault"
- // The cluster subnet group does not cover all Availability Zones.
- //
- // * ErrCodeInvalidClusterSubnetGroupStateFault "InvalidClusterSubnetGroupStateFault"
- // The cluster subnet group cannot be deleted because it is in use.
- //
- // * ErrCodeInvalidSubnet "InvalidSubnet"
- // The requested subnet is not valid, or not all of the subnets are in the same
- // VPC.
- //
- // * ErrCodeClusterSubnetGroupNotFoundFault "ClusterSubnetGroupNotFoundFault"
- // The cluster subnet group name does not refer to an existing cluster subnet
- // group.
- //
- // * ErrCodeUnauthorizedOperation "UnauthorizedOperation"
- // Your account is not authorized to perform the requested operation.
- //
- // * ErrCodeHsmClientCertificateNotFoundFault "HsmClientCertificateNotFoundFault"
- // There is no Amazon Redshift HSM client certificate with the specified identifier.
- //
- // * ErrCodeHsmConfigurationNotFoundFault "HsmConfigurationNotFoundFault"
- // There is no Amazon Redshift HSM configuration with the specified identifier.
- //
- // * ErrCodeInvalidElasticIpFault "InvalidElasticIpFault"
- // The Elastic IP (EIP) is invalid or cannot be found.
- //
- // * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound"
- // The parameter group name does not refer to an existing parameter group.
- //
- // * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound"
- // The cluster security group name does not refer to an existing cluster security
- // group.
- //
- // * ErrCodeLimitExceededFault "LimitExceededFault"
- // The encryption key has exceeded its grant limit in AWS KMS.
- //
- // * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault"
- // The request cannot be completed because a dependent service is throttling
- // requests made by Amazon Redshift on your behalf. Wait and retry the request.
- //
- // * ErrCodeInvalidClusterTrackFault "InvalidClusterTrack"
- // The provided cluster track name is not valid.
- //
- // * ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound"
- // We could not find the specified snapshot schedule.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreFromClusterSnapshot
- func (c *Redshift) RestoreFromClusterSnapshot(input *RestoreFromClusterSnapshotInput) (*RestoreFromClusterSnapshotOutput, error) {
- req, out := c.RestoreFromClusterSnapshotRequest(input)
- return out, req.Send()
- }
- // RestoreFromClusterSnapshotWithContext is the same as RestoreFromClusterSnapshot with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RestoreFromClusterSnapshot for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) RestoreFromClusterSnapshotWithContext(ctx aws.Context, input *RestoreFromClusterSnapshotInput, opts ...request.Option) (*RestoreFromClusterSnapshotOutput, error) {
- req, out := c.RestoreFromClusterSnapshotRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRestoreTableFromClusterSnapshot = "RestoreTableFromClusterSnapshot"
- // RestoreTableFromClusterSnapshotRequest generates a "aws/request.Request" representing the
- // client's request for the RestoreTableFromClusterSnapshot operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RestoreTableFromClusterSnapshot for more information on using the RestoreTableFromClusterSnapshot
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RestoreTableFromClusterSnapshotRequest method.
- // req, resp := client.RestoreTableFromClusterSnapshotRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreTableFromClusterSnapshot
- func (c *Redshift) RestoreTableFromClusterSnapshotRequest(input *RestoreTableFromClusterSnapshotInput) (req *request.Request, output *RestoreTableFromClusterSnapshotOutput) {
- op := &request.Operation{
- Name: opRestoreTableFromClusterSnapshot,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RestoreTableFromClusterSnapshotInput{}
- }
- output = &RestoreTableFromClusterSnapshotOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RestoreTableFromClusterSnapshot API operation for Amazon Redshift.
- //
- // Creates a new table from a table in an Amazon Redshift cluster snapshot.
- // You must create the new table within the Amazon Redshift cluster that the
- // snapshot was taken from.
- //
- // You cannot use RestoreTableFromClusterSnapshot to restore a table with the
- // same name as an existing table in an Amazon Redshift cluster. That is, you
- // cannot overwrite an existing table in a cluster with a restored table. If
- // you want to replace your original table with a new, restored table, then
- // rename or drop your original table before you call RestoreTableFromClusterSnapshot.
- // When you have renamed your original table, then you can pass the original
- // name of the table as the NewTableName parameter value in the call to RestoreTableFromClusterSnapshot.
- // This way, you can replace the original table with the table created from
- // the snapshot.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation RestoreTableFromClusterSnapshot for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound"
- // The snapshot identifier does not refer to an existing cluster snapshot.
- //
- // * ErrCodeInProgressTableRestoreQuotaExceededFault "InProgressTableRestoreQuotaExceededFault"
- // You have exceeded the allowed number of table restore requests. Wait for
- // your current table restore requests to complete before making a new request.
- //
- // * ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState"
- // The specified cluster snapshot is not in the available state, or other accounts
- // are authorized to access the snapshot.
- //
- // * ErrCodeInvalidTableRestoreArgumentFault "InvalidTableRestoreArgument"
- // The value specified for the sourceDatabaseName, sourceSchemaName, or sourceTableName
- // parameter, or a combination of these, doesn't exist in the snapshot.
- //
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // * ErrCodeUnsupportedOperationFault "UnsupportedOperation"
- // The requested operation isn't supported.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreTableFromClusterSnapshot
- func (c *Redshift) RestoreTableFromClusterSnapshot(input *RestoreTableFromClusterSnapshotInput) (*RestoreTableFromClusterSnapshotOutput, error) {
- req, out := c.RestoreTableFromClusterSnapshotRequest(input)
- return out, req.Send()
- }
- // RestoreTableFromClusterSnapshotWithContext is the same as RestoreTableFromClusterSnapshot with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RestoreTableFromClusterSnapshot for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) RestoreTableFromClusterSnapshotWithContext(ctx aws.Context, input *RestoreTableFromClusterSnapshotInput, opts ...request.Option) (*RestoreTableFromClusterSnapshotOutput, error) {
- req, out := c.RestoreTableFromClusterSnapshotRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRevokeClusterSecurityGroupIngress = "RevokeClusterSecurityGroupIngress"
- // RevokeClusterSecurityGroupIngressRequest generates a "aws/request.Request" representing the
- // client's request for the RevokeClusterSecurityGroupIngress operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RevokeClusterSecurityGroupIngress for more information on using the RevokeClusterSecurityGroupIngress
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RevokeClusterSecurityGroupIngressRequest method.
- // req, resp := client.RevokeClusterSecurityGroupIngressRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeClusterSecurityGroupIngress
- func (c *Redshift) RevokeClusterSecurityGroupIngressRequest(input *RevokeClusterSecurityGroupIngressInput) (req *request.Request, output *RevokeClusterSecurityGroupIngressOutput) {
- op := &request.Operation{
- Name: opRevokeClusterSecurityGroupIngress,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RevokeClusterSecurityGroupIngressInput{}
- }
- output = &RevokeClusterSecurityGroupIngressOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RevokeClusterSecurityGroupIngress API operation for Amazon Redshift.
- //
- // Revokes an ingress rule in an Amazon Redshift security group for a previously
- // authorized IP range or Amazon EC2 security group. To add an ingress rule,
- // see AuthorizeClusterSecurityGroupIngress. For information about managing
- // security groups, go to Amazon Redshift Cluster Security Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-security-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation RevokeClusterSecurityGroupIngress for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterSecurityGroupNotFoundFault "ClusterSecurityGroupNotFound"
- // The cluster security group name does not refer to an existing cluster security
- // group.
- //
- // * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
- // The specified CIDR IP range or EC2 security group is not authorized for the
- // specified cluster security group.
- //
- // * ErrCodeInvalidClusterSecurityGroupStateFault "InvalidClusterSecurityGroupState"
- // The state of the cluster security group is not available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeClusterSecurityGroupIngress
- func (c *Redshift) RevokeClusterSecurityGroupIngress(input *RevokeClusterSecurityGroupIngressInput) (*RevokeClusterSecurityGroupIngressOutput, error) {
- req, out := c.RevokeClusterSecurityGroupIngressRequest(input)
- return out, req.Send()
- }
- // RevokeClusterSecurityGroupIngressWithContext is the same as RevokeClusterSecurityGroupIngress with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RevokeClusterSecurityGroupIngress for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) RevokeClusterSecurityGroupIngressWithContext(ctx aws.Context, input *RevokeClusterSecurityGroupIngressInput, opts ...request.Option) (*RevokeClusterSecurityGroupIngressOutput, error) {
- req, out := c.RevokeClusterSecurityGroupIngressRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRevokeSnapshotAccess = "RevokeSnapshotAccess"
- // RevokeSnapshotAccessRequest generates a "aws/request.Request" representing the
- // client's request for the RevokeSnapshotAccess operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RevokeSnapshotAccess for more information on using the RevokeSnapshotAccess
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RevokeSnapshotAccessRequest method.
- // req, resp := client.RevokeSnapshotAccessRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeSnapshotAccess
- func (c *Redshift) RevokeSnapshotAccessRequest(input *RevokeSnapshotAccessInput) (req *request.Request, output *RevokeSnapshotAccessOutput) {
- op := &request.Operation{
- Name: opRevokeSnapshotAccess,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RevokeSnapshotAccessInput{}
- }
- output = &RevokeSnapshotAccessOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RevokeSnapshotAccess API operation for Amazon Redshift.
- //
- // Removes the ability of the specified AWS customer account to restore the
- // specified snapshot. If the account is currently restoring the snapshot, the
- // restore will run to completion.
- //
- // For more information about working with snapshots, go to Amazon Redshift
- // Snapshots (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshots.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation RevokeSnapshotAccess for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeAccessToSnapshotDeniedFault "AccessToSnapshotDenied"
- // The owner of the specified snapshot has not authorized your account to access
- // the snapshot.
- //
- // * ErrCodeAuthorizationNotFoundFault "AuthorizationNotFound"
- // The specified CIDR IP range or EC2 security group is not authorized for the
- // specified cluster security group.
- //
- // * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound"
- // The snapshot identifier does not refer to an existing cluster snapshot.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RevokeSnapshotAccess
- func (c *Redshift) RevokeSnapshotAccess(input *RevokeSnapshotAccessInput) (*RevokeSnapshotAccessOutput, error) {
- req, out := c.RevokeSnapshotAccessRequest(input)
- return out, req.Send()
- }
- // RevokeSnapshotAccessWithContext is the same as RevokeSnapshotAccess with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RevokeSnapshotAccess for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) RevokeSnapshotAccessWithContext(ctx aws.Context, input *RevokeSnapshotAccessInput, opts ...request.Option) (*RevokeSnapshotAccessOutput, error) {
- req, out := c.RevokeSnapshotAccessRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opRotateEncryptionKey = "RotateEncryptionKey"
- // RotateEncryptionKeyRequest generates a "aws/request.Request" representing the
- // client's request for the RotateEncryptionKey operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RotateEncryptionKey for more information on using the RotateEncryptionKey
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RotateEncryptionKeyRequest method.
- // req, resp := client.RotateEncryptionKeyRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RotateEncryptionKey
- func (c *Redshift) RotateEncryptionKeyRequest(input *RotateEncryptionKeyInput) (req *request.Request, output *RotateEncryptionKeyOutput) {
- op := &request.Operation{
- Name: opRotateEncryptionKey,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RotateEncryptionKeyInput{}
- }
- output = &RotateEncryptionKeyOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // RotateEncryptionKey API operation for Amazon Redshift.
- //
- // Rotates the encryption keys for a cluster.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for Amazon Redshift's
- // API operation RotateEncryptionKey for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeClusterNotFoundFault "ClusterNotFound"
- // The ClusterIdentifier parameter does not refer to an existing cluster.
- //
- // * ErrCodeInvalidClusterStateFault "InvalidClusterState"
- // The specified cluster is not in the available state.
- //
- // * ErrCodeDependentServiceRequestThrottlingFault "DependentServiceRequestThrottlingFault"
- // The request cannot be completed because a dependent service is throttling
- // requests made by Amazon Redshift on your behalf. Wait and retry the request.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RotateEncryptionKey
- func (c *Redshift) RotateEncryptionKey(input *RotateEncryptionKeyInput) (*RotateEncryptionKeyOutput, error) {
- req, out := c.RotateEncryptionKeyRequest(input)
- return out, req.Send()
- }
- // RotateEncryptionKeyWithContext is the same as RotateEncryptionKey with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RotateEncryptionKey for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *Redshift) RotateEncryptionKeyWithContext(ctx aws.Context, input *RotateEncryptionKeyInput, opts ...request.Option) (*RotateEncryptionKeyOutput, error) {
- req, out := c.RotateEncryptionKeyRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- type AcceptReservedNodeExchangeInput struct {
- _ struct{} `type:"structure"`
- // A string representing the node identifier of the DC1 Reserved Node to be
- // exchanged.
- //
- // ReservedNodeId is a required field
- ReservedNodeId *string `type:"string" required:"true"`
- // The unique identifier of the DC2 Reserved Node offering to be used for the
- // exchange. You can obtain the value for the parameter by calling GetReservedNodeExchangeOfferings
- //
- // TargetReservedNodeOfferingId is a required field
- TargetReservedNodeOfferingId *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AcceptReservedNodeExchangeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcceptReservedNodeExchangeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AcceptReservedNodeExchangeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AcceptReservedNodeExchangeInput"}
- if s.ReservedNodeId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReservedNodeId"))
- }
- if s.TargetReservedNodeOfferingId == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetReservedNodeOfferingId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetReservedNodeId sets the ReservedNodeId field's value.
- func (s *AcceptReservedNodeExchangeInput) SetReservedNodeId(v string) *AcceptReservedNodeExchangeInput {
- s.ReservedNodeId = &v
- return s
- }
- // SetTargetReservedNodeOfferingId sets the TargetReservedNodeOfferingId field's value.
- func (s *AcceptReservedNodeExchangeInput) SetTargetReservedNodeOfferingId(v string) *AcceptReservedNodeExchangeInput {
- s.TargetReservedNodeOfferingId = &v
- return s
- }
- type AcceptReservedNodeExchangeOutput struct {
- _ struct{} `type:"structure"`
- // Describes a reserved node. You can call the DescribeReservedNodeOfferings
- // API to obtain the available reserved node offerings.
- ExchangedReservedNode *ReservedNode `type:"structure"`
- }
- // String returns the string representation
- func (s AcceptReservedNodeExchangeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AcceptReservedNodeExchangeOutput) GoString() string {
- return s.String()
- }
- // SetExchangedReservedNode sets the ExchangedReservedNode field's value.
- func (s *AcceptReservedNodeExchangeOutput) SetExchangedReservedNode(v *ReservedNode) *AcceptReservedNodeExchangeOutput {
- s.ExchangedReservedNode = v
- return s
- }
- // A name value pair that describes an aspect of an account.
- type AccountAttribute struct {
- _ struct{} `type:"structure"`
- // The name of the attribute.
- AttributeName *string `type:"string"`
- // A list of attribute values.
- AttributeValues []*AttributeValueTarget `locationNameList:"AttributeValueTarget" type:"list"`
- }
- // String returns the string representation
- func (s AccountAttribute) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AccountAttribute) GoString() string {
- return s.String()
- }
- // SetAttributeName sets the AttributeName field's value.
- func (s *AccountAttribute) SetAttributeName(v string) *AccountAttribute {
- s.AttributeName = &v
- return s
- }
- // SetAttributeValues sets the AttributeValues field's value.
- func (s *AccountAttribute) SetAttributeValues(v []*AttributeValueTarget) *AccountAttribute {
- s.AttributeValues = v
- return s
- }
- // Describes an AWS customer account authorized to restore a snapshot.
- type AccountWithRestoreAccess struct {
- _ struct{} `type:"structure"`
- // The identifier of an AWS support account authorized to restore a snapshot.
- // For AWS support, the identifier is amazon-redshift-support.
- AccountAlias *string `type:"string"`
- // The identifier of an AWS customer account authorized to restore a snapshot.
- AccountId *string `type:"string"`
- }
- // String returns the string representation
- func (s AccountWithRestoreAccess) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AccountWithRestoreAccess) GoString() string {
- return s.String()
- }
- // SetAccountAlias sets the AccountAlias field's value.
- func (s *AccountWithRestoreAccess) SetAccountAlias(v string) *AccountWithRestoreAccess {
- s.AccountAlias = &v
- return s
- }
- // SetAccountId sets the AccountId field's value.
- func (s *AccountWithRestoreAccess) SetAccountId(v string) *AccountWithRestoreAccess {
- s.AccountId = &v
- return s
- }
- // Describes an attribute value.
- type AttributeValueTarget struct {
- _ struct{} `type:"structure"`
- // The value of the attribute.
- AttributeValue *string `type:"string"`
- }
- // String returns the string representation
- func (s AttributeValueTarget) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AttributeValueTarget) GoString() string {
- return s.String()
- }
- // SetAttributeValue sets the AttributeValue field's value.
- func (s *AttributeValueTarget) SetAttributeValue(v string) *AttributeValueTarget {
- s.AttributeValue = &v
- return s
- }
- type AuthorizeClusterSecurityGroupIngressInput struct {
- _ struct{} `type:"structure"`
- // The IP range to be added the Amazon Redshift security group.
- CIDRIP *string `type:"string"`
- // The name of the security group to which the ingress rule is added.
- //
- // ClusterSecurityGroupName is a required field
- ClusterSecurityGroupName *string `type:"string" required:"true"`
- // The EC2 security group to be added the Amazon Redshift security group.
- EC2SecurityGroupName *string `type:"string"`
- // The AWS account number of the owner of the security group specified by the
- // EC2SecurityGroupName parameter. The AWS Access Key ID is not an acceptable
- // value.
- //
- // Example: 111122223333
- EC2SecurityGroupOwnerId *string `type:"string"`
- }
- // String returns the string representation
- func (s AuthorizeClusterSecurityGroupIngressInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuthorizeClusterSecurityGroupIngressInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AuthorizeClusterSecurityGroupIngressInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AuthorizeClusterSecurityGroupIngressInput"}
- if s.ClusterSecurityGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterSecurityGroupName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCIDRIP sets the CIDRIP field's value.
- func (s *AuthorizeClusterSecurityGroupIngressInput) SetCIDRIP(v string) *AuthorizeClusterSecurityGroupIngressInput {
- s.CIDRIP = &v
- return s
- }
- // SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value.
- func (s *AuthorizeClusterSecurityGroupIngressInput) SetClusterSecurityGroupName(v string) *AuthorizeClusterSecurityGroupIngressInput {
- s.ClusterSecurityGroupName = &v
- return s
- }
- // SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value.
- func (s *AuthorizeClusterSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *AuthorizeClusterSecurityGroupIngressInput {
- s.EC2SecurityGroupName = &v
- return s
- }
- // SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value.
- func (s *AuthorizeClusterSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *AuthorizeClusterSecurityGroupIngressInput {
- s.EC2SecurityGroupOwnerId = &v
- return s
- }
- type AuthorizeClusterSecurityGroupIngressOutput struct {
- _ struct{} `type:"structure"`
- // Describes a security group.
- ClusterSecurityGroup *ClusterSecurityGroup `type:"structure"`
- }
- // String returns the string representation
- func (s AuthorizeClusterSecurityGroupIngressOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuthorizeClusterSecurityGroupIngressOutput) GoString() string {
- return s.String()
- }
- // SetClusterSecurityGroup sets the ClusterSecurityGroup field's value.
- func (s *AuthorizeClusterSecurityGroupIngressOutput) SetClusterSecurityGroup(v *ClusterSecurityGroup) *AuthorizeClusterSecurityGroupIngressOutput {
- s.ClusterSecurityGroup = v
- return s
- }
- type AuthorizeSnapshotAccessInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the AWS customer account authorized to restore the specified
- // snapshot.
- //
- // To share a snapshot with AWS support, specify amazon-redshift-support.
- //
- // AccountWithRestoreAccess is a required field
- AccountWithRestoreAccess *string `type:"string" required:"true"`
- // The identifier of the cluster the snapshot was created from. This parameter
- // is required if your IAM user has a policy containing a snapshot resource
- // element that specifies anything other than * for the cluster name.
- SnapshotClusterIdentifier *string `type:"string"`
- // The identifier of the snapshot the account is authorized to restore.
- //
- // SnapshotIdentifier is a required field
- SnapshotIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AuthorizeSnapshotAccessInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuthorizeSnapshotAccessInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AuthorizeSnapshotAccessInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AuthorizeSnapshotAccessInput"}
- if s.AccountWithRestoreAccess == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountWithRestoreAccess"))
- }
- if s.SnapshotIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAccountWithRestoreAccess sets the AccountWithRestoreAccess field's value.
- func (s *AuthorizeSnapshotAccessInput) SetAccountWithRestoreAccess(v string) *AuthorizeSnapshotAccessInput {
- s.AccountWithRestoreAccess = &v
- return s
- }
- // SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value.
- func (s *AuthorizeSnapshotAccessInput) SetSnapshotClusterIdentifier(v string) *AuthorizeSnapshotAccessInput {
- s.SnapshotClusterIdentifier = &v
- return s
- }
- // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
- func (s *AuthorizeSnapshotAccessInput) SetSnapshotIdentifier(v string) *AuthorizeSnapshotAccessInput {
- s.SnapshotIdentifier = &v
- return s
- }
- type AuthorizeSnapshotAccessOutput struct {
- _ struct{} `type:"structure"`
- // Describes a snapshot.
- Snapshot *Snapshot `type:"structure"`
- }
- // String returns the string representation
- func (s AuthorizeSnapshotAccessOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AuthorizeSnapshotAccessOutput) GoString() string {
- return s.String()
- }
- // SetSnapshot sets the Snapshot field's value.
- func (s *AuthorizeSnapshotAccessOutput) SetSnapshot(v *Snapshot) *AuthorizeSnapshotAccessOutput {
- s.Snapshot = v
- return s
- }
- // Describes an availability zone.
- type AvailabilityZone struct {
- _ struct{} `type:"structure"`
- // The name of the availability zone.
- Name *string `type:"string"`
- SupportedPlatforms []*SupportedPlatform `locationNameList:"SupportedPlatform" type:"list"`
- }
- // String returns the string representation
- func (s AvailabilityZone) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AvailabilityZone) GoString() string {
- return s.String()
- }
- // SetName sets the Name field's value.
- func (s *AvailabilityZone) SetName(v string) *AvailabilityZone {
- s.Name = &v
- return s
- }
- // SetSupportedPlatforms sets the SupportedPlatforms field's value.
- func (s *AvailabilityZone) SetSupportedPlatforms(v []*SupportedPlatform) *AvailabilityZone {
- s.SupportedPlatforms = v
- return s
- }
- type BatchDeleteClusterSnapshotsInput struct {
- _ struct{} `type:"structure"`
- // A list of identifiers for the snapshots that you want to delete.
- //
- // Identifiers is a required field
- Identifiers []*DeleteClusterSnapshotMessage `locationNameList:"DeleteClusterSnapshotMessage" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s BatchDeleteClusterSnapshotsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchDeleteClusterSnapshotsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *BatchDeleteClusterSnapshotsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BatchDeleteClusterSnapshotsInput"}
- if s.Identifiers == nil {
- invalidParams.Add(request.NewErrParamRequired("Identifiers"))
- }
- if s.Identifiers != nil {
- for i, v := range s.Identifiers {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Identifiers", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetIdentifiers sets the Identifiers field's value.
- func (s *BatchDeleteClusterSnapshotsInput) SetIdentifiers(v []*DeleteClusterSnapshotMessage) *BatchDeleteClusterSnapshotsInput {
- s.Identifiers = v
- return s
- }
- type BatchDeleteClusterSnapshotsOutput struct {
- _ struct{} `type:"structure"`
- // A list of any errors returned.
- Errors []*SnapshotErrorMessage `locationNameList:"SnapshotErrorMessage" type:"list"`
- // A list of the snapshot identifiers that were deleted.
- Resources []*string `locationNameList:"String" type:"list"`
- }
- // String returns the string representation
- func (s BatchDeleteClusterSnapshotsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchDeleteClusterSnapshotsOutput) GoString() string {
- return s.String()
- }
- // SetErrors sets the Errors field's value.
- func (s *BatchDeleteClusterSnapshotsOutput) SetErrors(v []*SnapshotErrorMessage) *BatchDeleteClusterSnapshotsOutput {
- s.Errors = v
- return s
- }
- // SetResources sets the Resources field's value.
- func (s *BatchDeleteClusterSnapshotsOutput) SetResources(v []*string) *BatchDeleteClusterSnapshotsOutput {
- s.Resources = v
- return s
- }
- type BatchModifyClusterSnapshotsInput struct {
- _ struct{} `type:"structure"`
- // A boolean value indicating whether to override an exception if the retention
- // period has passed.
- Force *bool `type:"boolean"`
- // The number of days that a manual snapshot is retained. If you specify the
- // value -1, the manual snapshot is retained indefinitely.
- //
- // The number must be either -1 or an integer between 1 and 3,653.
- //
- // If you decrease the manual snapshot retention period from its current value,
- // existing manual snapshots that fall outside of the new retention period will
- // return an error. If you want to suppress the errors and delete the snapshots,
- // use the force option.
- ManualSnapshotRetentionPeriod *int64 `type:"integer"`
- // A list of snapshot identifiers you want to modify.
- //
- // SnapshotIdentifierList is a required field
- SnapshotIdentifierList []*string `locationNameList:"String" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s BatchModifyClusterSnapshotsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchModifyClusterSnapshotsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *BatchModifyClusterSnapshotsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BatchModifyClusterSnapshotsInput"}
- if s.SnapshotIdentifierList == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifierList"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetForce sets the Force field's value.
- func (s *BatchModifyClusterSnapshotsInput) SetForce(v bool) *BatchModifyClusterSnapshotsInput {
- s.Force = &v
- return s
- }
- // SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.
- func (s *BatchModifyClusterSnapshotsInput) SetManualSnapshotRetentionPeriod(v int64) *BatchModifyClusterSnapshotsInput {
- s.ManualSnapshotRetentionPeriod = &v
- return s
- }
- // SetSnapshotIdentifierList sets the SnapshotIdentifierList field's value.
- func (s *BatchModifyClusterSnapshotsInput) SetSnapshotIdentifierList(v []*string) *BatchModifyClusterSnapshotsInput {
- s.SnapshotIdentifierList = v
- return s
- }
- type BatchModifyClusterSnapshotsOutput struct {
- _ struct{} `type:"structure"`
- // A list of any errors returned.
- Errors []*SnapshotErrorMessage `locationNameList:"SnapshotErrorMessage" type:"list"`
- // A list of the snapshots that were modified.
- Resources []*string `locationNameList:"String" type:"list"`
- }
- // String returns the string representation
- func (s BatchModifyClusterSnapshotsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BatchModifyClusterSnapshotsOutput) GoString() string {
- return s.String()
- }
- // SetErrors sets the Errors field's value.
- func (s *BatchModifyClusterSnapshotsOutput) SetErrors(v []*SnapshotErrorMessage) *BatchModifyClusterSnapshotsOutput {
- s.Errors = v
- return s
- }
- // SetResources sets the Resources field's value.
- func (s *BatchModifyClusterSnapshotsOutput) SetResources(v []*string) *BatchModifyClusterSnapshotsOutput {
- s.Resources = v
- return s
- }
- type CancelResizeInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier for the cluster that you want to cancel a resize operation
- // for.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CancelResizeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelResizeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CancelResizeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CancelResizeInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *CancelResizeInput) SetClusterIdentifier(v string) *CancelResizeInput {
- s.ClusterIdentifier = &v
- return s
- }
- // Describes the result of a cluster resize operation.
- type CancelResizeOutput struct {
- _ struct{} `type:"structure"`
- // The average rate of the resize operation over the last few minutes, measured
- // in megabytes per second. After the resize operation completes, this value
- // shows the average rate of the entire resize operation.
- AvgResizeRateInMegaBytesPerSecond *float64 `type:"double"`
- // The amount of seconds that have elapsed since the resize operation began.
- // After the resize operation completes, this value shows the total actual time,
- // in seconds, for the resize operation.
- ElapsedTimeInSeconds *int64 `type:"long"`
- // The estimated time remaining, in seconds, until the resize operation is complete.
- // This value is calculated based on the average resize rate and the estimated
- // amount of data remaining to be processed. Once the resize operation is complete,
- // this value will be 0.
- EstimatedTimeToCompletionInSeconds *int64 `type:"long"`
- // The names of tables that have been completely imported .
- //
- // Valid Values: List of table names.
- ImportTablesCompleted []*string `type:"list"`
- // The names of tables that are being currently imported.
- //
- // Valid Values: List of table names.
- ImportTablesInProgress []*string `type:"list"`
- // The names of tables that have not been yet imported.
- //
- // Valid Values: List of table names
- ImportTablesNotStarted []*string `type:"list"`
- // An optional string to provide additional details about the resize action.
- Message *string `type:"string"`
- // While the resize operation is in progress, this value shows the current amount
- // of data, in megabytes, that has been processed so far. When the resize operation
- // is complete, this value shows the total amount of data, in megabytes, on
- // the cluster, which may be more or less than TotalResizeDataInMegaBytes (the
- // estimated total amount of data before resize).
- ProgressInMegaBytes *int64 `type:"long"`
- // An enum with possible values of ClassicResize and ElasticResize. These values
- // describe the type of resize operation being performed.
- ResizeType *string `type:"string"`
- // The status of the resize operation.
- //
- // Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED | CANCELLING
- Status *string `type:"string"`
- // The cluster type after the resize operation is complete.
- //
- // Valid Values: multi-node | single-node
- TargetClusterType *string `type:"string"`
- // The type of encryption for the cluster after the resize is complete.
- //
- // Possible values are KMS and None. In the China region possible values are:
- // Legacy and None.
- TargetEncryptionType *string `type:"string"`
- // The node type that the cluster will have after the resize operation is complete.
- TargetNodeType *string `type:"string"`
- // The number of nodes that the cluster will have after the resize operation
- // is complete.
- TargetNumberOfNodes *int64 `type:"integer"`
- // The estimated total amount of data, in megabytes, on the cluster before the
- // resize operation began.
- TotalResizeDataInMegaBytes *int64 `type:"long"`
- }
- // String returns the string representation
- func (s CancelResizeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelResizeOutput) GoString() string {
- return s.String()
- }
- // SetAvgResizeRateInMegaBytesPerSecond sets the AvgResizeRateInMegaBytesPerSecond field's value.
- func (s *CancelResizeOutput) SetAvgResizeRateInMegaBytesPerSecond(v float64) *CancelResizeOutput {
- s.AvgResizeRateInMegaBytesPerSecond = &v
- return s
- }
- // SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value.
- func (s *CancelResizeOutput) SetElapsedTimeInSeconds(v int64) *CancelResizeOutput {
- s.ElapsedTimeInSeconds = &v
- return s
- }
- // SetEstimatedTimeToCompletionInSeconds sets the EstimatedTimeToCompletionInSeconds field's value.
- func (s *CancelResizeOutput) SetEstimatedTimeToCompletionInSeconds(v int64) *CancelResizeOutput {
- s.EstimatedTimeToCompletionInSeconds = &v
- return s
- }
- // SetImportTablesCompleted sets the ImportTablesCompleted field's value.
- func (s *CancelResizeOutput) SetImportTablesCompleted(v []*string) *CancelResizeOutput {
- s.ImportTablesCompleted = v
- return s
- }
- // SetImportTablesInProgress sets the ImportTablesInProgress field's value.
- func (s *CancelResizeOutput) SetImportTablesInProgress(v []*string) *CancelResizeOutput {
- s.ImportTablesInProgress = v
- return s
- }
- // SetImportTablesNotStarted sets the ImportTablesNotStarted field's value.
- func (s *CancelResizeOutput) SetImportTablesNotStarted(v []*string) *CancelResizeOutput {
- s.ImportTablesNotStarted = v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *CancelResizeOutput) SetMessage(v string) *CancelResizeOutput {
- s.Message = &v
- return s
- }
- // SetProgressInMegaBytes sets the ProgressInMegaBytes field's value.
- func (s *CancelResizeOutput) SetProgressInMegaBytes(v int64) *CancelResizeOutput {
- s.ProgressInMegaBytes = &v
- return s
- }
- // SetResizeType sets the ResizeType field's value.
- func (s *CancelResizeOutput) SetResizeType(v string) *CancelResizeOutput {
- s.ResizeType = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *CancelResizeOutput) SetStatus(v string) *CancelResizeOutput {
- s.Status = &v
- return s
- }
- // SetTargetClusterType sets the TargetClusterType field's value.
- func (s *CancelResizeOutput) SetTargetClusterType(v string) *CancelResizeOutput {
- s.TargetClusterType = &v
- return s
- }
- // SetTargetEncryptionType sets the TargetEncryptionType field's value.
- func (s *CancelResizeOutput) SetTargetEncryptionType(v string) *CancelResizeOutput {
- s.TargetEncryptionType = &v
- return s
- }
- // SetTargetNodeType sets the TargetNodeType field's value.
- func (s *CancelResizeOutput) SetTargetNodeType(v string) *CancelResizeOutput {
- s.TargetNodeType = &v
- return s
- }
- // SetTargetNumberOfNodes sets the TargetNumberOfNodes field's value.
- func (s *CancelResizeOutput) SetTargetNumberOfNodes(v int64) *CancelResizeOutput {
- s.TargetNumberOfNodes = &v
- return s
- }
- // SetTotalResizeDataInMegaBytes sets the TotalResizeDataInMegaBytes field's value.
- func (s *CancelResizeOutput) SetTotalResizeDataInMegaBytes(v int64) *CancelResizeOutput {
- s.TotalResizeDataInMegaBytes = &v
- return s
- }
- // Describes a cluster.
- type Cluster struct {
- _ struct{} `type:"structure"`
- // A boolean value that, if true, indicates that major version upgrades will
- // be applied automatically to the cluster during the maintenance window.
- AllowVersionUpgrade *bool `type:"boolean"`
- // The number of days that automatic cluster snapshots are retained.
- AutomatedSnapshotRetentionPeriod *int64 `type:"integer"`
- // The name of the Availability Zone in which the cluster is located.
- AvailabilityZone *string `type:"string"`
- // The date and time that the cluster was created.
- ClusterCreateTime *time.Time `type:"timestamp"`
- // The unique identifier of the cluster.
- ClusterIdentifier *string `type:"string"`
- // The nodes in the cluster.
- ClusterNodes []*ClusterNode `type:"list"`
- // The list of cluster parameter groups that are associated with this cluster.
- // Each parameter group in the list is returned with its status.
- ClusterParameterGroups []*ClusterParameterGroupStatus `locationNameList:"ClusterParameterGroup" type:"list"`
- // The public key for the cluster.
- ClusterPublicKey *string `type:"string"`
- // The specific revision number of the database in the cluster.
- ClusterRevisionNumber *string `type:"string"`
- // A list of cluster security group that are associated with the cluster. Each
- // security group is represented by an element that contains ClusterSecurityGroup.Name
- // and ClusterSecurityGroup.Status subelements.
- //
- // Cluster security groups are used when the cluster is not created in an Amazon
- // Virtual Private Cloud (VPC). Clusters that are created in a VPC use VPC security
- // groups, which are listed by the VpcSecurityGroups parameter.
- ClusterSecurityGroups []*ClusterSecurityGroupMembership `locationNameList:"ClusterSecurityGroup" type:"list"`
- // A value that returns the destination region and retention period that are
- // configured for cross-region snapshot copy.
- ClusterSnapshotCopyStatus *ClusterSnapshotCopyStatus `type:"structure"`
- // The current state of the cluster. Possible values are the following:
- //
- // * available
- //
- // * available, prep-for-resize
- //
- // * available, resize-cleanup
- //
- // * cancelling-resize
- //
- // * creating
- //
- // * deleting
- //
- // * final-snapshot
- //
- // * hardware-failure
- //
- // * incompatible-hsm
- //
- // * incompatible-network
- //
- // * incompatible-parameters
- //
- // * incompatible-restore
- //
- // * modifying
- //
- // * rebooting
- //
- // * renaming
- //
- // * resizing
- //
- // * rotating-keys
- //
- // * storage-full
- //
- // * updating-hsm
- ClusterStatus *string `type:"string"`
- // The name of the subnet group that is associated with the cluster. This parameter
- // is valid only when the cluster is in a VPC.
- ClusterSubnetGroupName *string `type:"string"`
- // The version ID of the Amazon Redshift engine that is running on the cluster.
- ClusterVersion *string `type:"string"`
- // The name of the initial database that was created when the cluster was created.
- // This same name is returned for the life of the cluster. If an initial database
- // was not specified, a database named devdev was created by default.
- DBName *string `type:"string"`
- // Describes the status of a cluster while it is in the process of resizing
- // with an incremental resize.
- DataTransferProgress *DataTransferProgress `type:"structure"`
- // Describes a group of DeferredMaintenanceWindow objects.
- DeferredMaintenanceWindows []*DeferredMaintenanceWindow `locationNameList:"DeferredMaintenanceWindow" type:"list"`
- // The status of the elastic IP (EIP) address.
- ElasticIpStatus *ElasticIpStatus `type:"structure"`
- // The number of nodes that you can resize the cluster to with the elastic resize
- // method.
- ElasticResizeNumberOfNodeOptions *string `type:"string"`
- // A boolean value that, if true, indicates that data in the cluster is encrypted
- // at rest.
- Encrypted *bool `type:"boolean"`
- // The connection endpoint.
- Endpoint *Endpoint `type:"structure"`
- // An option that specifies whether to create the cluster with enhanced VPC
- // routing enabled. To create a cluster that uses enhanced VPC routing, the
- // cluster must be in a VPC. For more information, see Enhanced VPC Routing
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // If this option is true, enhanced VPC routing is enabled.
- //
- // Default: false
- EnhancedVpcRouting *bool `type:"boolean"`
- // A value that reports whether the Amazon Redshift cluster has finished applying
- // any hardware security module (HSM) settings changes specified in a modify
- // cluster command.
- //
- // Values: active, applying
- HsmStatus *HsmStatus `type:"structure"`
- // A list of AWS Identity and Access Management (IAM) roles that can be used
- // by the cluster to access other AWS services.
- IamRoles []*ClusterIamRole `locationNameList:"ClusterIamRole" type:"list"`
- // The AWS Key Management Service (AWS KMS) key ID of the encryption key used
- // to encrypt data in the cluster.
- KmsKeyId *string `type:"string"`
- // The name of the maintenance track for the cluster.
- MaintenanceTrackName *string `type:"string"`
- // The default number of days to retain a manual snapshot. If the value is -1,
- // the snapshot is retained indefinitely. This setting doesn't change the retention
- // period of existing snapshots.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- ManualSnapshotRetentionPeriod *int64 `type:"integer"`
- // The master user name for the cluster. This name is used to connect to the
- // database that is specified in the DBName parameter.
- MasterUsername *string `type:"string"`
- // The status of a modify operation, if any, initiated for the cluster.
- ModifyStatus *string `type:"string"`
- // The node type for the nodes in the cluster.
- NodeType *string `type:"string"`
- // The number of compute nodes in the cluster.
- NumberOfNodes *int64 `type:"integer"`
- // Cluster operations that are waiting to be started.
- PendingActions []*string `type:"list"`
- // A value that, if present, indicates that changes to the cluster are pending.
- // Specific pending changes are identified by subelements.
- PendingModifiedValues *PendingModifiedValues `type:"structure"`
- // The weekly time range, in Universal Coordinated Time (UTC), during which
- // system maintenance can occur.
- PreferredMaintenanceWindow *string `type:"string"`
- // A boolean value that, if true, indicates that the cluster can be accessed
- // from a public network.
- PubliclyAccessible *bool `type:"boolean"`
- // Returns the following:
- //
- // * AllowCancelResize: a boolean value indicating if the resize operation
- // can be cancelled.
- //
- // * ResizeType: Returns ClassicResize
- ResizeInfo *ResizeInfo `type:"structure"`
- // A value that describes the status of a cluster restore action. This parameter
- // returns null if the cluster was not created by restoring a snapshot.
- RestoreStatus *RestoreStatus `type:"structure"`
- // A unique identifier for the cluster snapshot schedule.
- SnapshotScheduleIdentifier *string `type:"string"`
- // The current state of the cluster snapshot schedule.
- SnapshotScheduleState *string `type:"string" enum:"ScheduleState"`
- // The list of tags for the cluster.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- // The identifier of the VPC the cluster is in, if the cluster is in a VPC.
- VpcId *string `type:"string"`
- // A list of Amazon Virtual Private Cloud (Amazon VPC) security groups that
- // are associated with the cluster. This parameter is returned only if the cluster
- // is in a VPC.
- VpcSecurityGroups []*VpcSecurityGroupMembership `locationNameList:"VpcSecurityGroup" type:"list"`
- }
- // String returns the string representation
- func (s Cluster) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Cluster) GoString() string {
- return s.String()
- }
- // SetAllowVersionUpgrade sets the AllowVersionUpgrade field's value.
- func (s *Cluster) SetAllowVersionUpgrade(v bool) *Cluster {
- s.AllowVersionUpgrade = &v
- return s
- }
- // SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value.
- func (s *Cluster) SetAutomatedSnapshotRetentionPeriod(v int64) *Cluster {
- s.AutomatedSnapshotRetentionPeriod = &v
- return s
- }
- // SetAvailabilityZone sets the AvailabilityZone field's value.
- func (s *Cluster) SetAvailabilityZone(v string) *Cluster {
- s.AvailabilityZone = &v
- return s
- }
- // SetClusterCreateTime sets the ClusterCreateTime field's value.
- func (s *Cluster) SetClusterCreateTime(v time.Time) *Cluster {
- s.ClusterCreateTime = &v
- return s
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *Cluster) SetClusterIdentifier(v string) *Cluster {
- s.ClusterIdentifier = &v
- return s
- }
- // SetClusterNodes sets the ClusterNodes field's value.
- func (s *Cluster) SetClusterNodes(v []*ClusterNode) *Cluster {
- s.ClusterNodes = v
- return s
- }
- // SetClusterParameterGroups sets the ClusterParameterGroups field's value.
- func (s *Cluster) SetClusterParameterGroups(v []*ClusterParameterGroupStatus) *Cluster {
- s.ClusterParameterGroups = v
- return s
- }
- // SetClusterPublicKey sets the ClusterPublicKey field's value.
- func (s *Cluster) SetClusterPublicKey(v string) *Cluster {
- s.ClusterPublicKey = &v
- return s
- }
- // SetClusterRevisionNumber sets the ClusterRevisionNumber field's value.
- func (s *Cluster) SetClusterRevisionNumber(v string) *Cluster {
- s.ClusterRevisionNumber = &v
- return s
- }
- // SetClusterSecurityGroups sets the ClusterSecurityGroups field's value.
- func (s *Cluster) SetClusterSecurityGroups(v []*ClusterSecurityGroupMembership) *Cluster {
- s.ClusterSecurityGroups = v
- return s
- }
- // SetClusterSnapshotCopyStatus sets the ClusterSnapshotCopyStatus field's value.
- func (s *Cluster) SetClusterSnapshotCopyStatus(v *ClusterSnapshotCopyStatus) *Cluster {
- s.ClusterSnapshotCopyStatus = v
- return s
- }
- // SetClusterStatus sets the ClusterStatus field's value.
- func (s *Cluster) SetClusterStatus(v string) *Cluster {
- s.ClusterStatus = &v
- return s
- }
- // SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value.
- func (s *Cluster) SetClusterSubnetGroupName(v string) *Cluster {
- s.ClusterSubnetGroupName = &v
- return s
- }
- // SetClusterVersion sets the ClusterVersion field's value.
- func (s *Cluster) SetClusterVersion(v string) *Cluster {
- s.ClusterVersion = &v
- return s
- }
- // SetDBName sets the DBName field's value.
- func (s *Cluster) SetDBName(v string) *Cluster {
- s.DBName = &v
- return s
- }
- // SetDataTransferProgress sets the DataTransferProgress field's value.
- func (s *Cluster) SetDataTransferProgress(v *DataTransferProgress) *Cluster {
- s.DataTransferProgress = v
- return s
- }
- // SetDeferredMaintenanceWindows sets the DeferredMaintenanceWindows field's value.
- func (s *Cluster) SetDeferredMaintenanceWindows(v []*DeferredMaintenanceWindow) *Cluster {
- s.DeferredMaintenanceWindows = v
- return s
- }
- // SetElasticIpStatus sets the ElasticIpStatus field's value.
- func (s *Cluster) SetElasticIpStatus(v *ElasticIpStatus) *Cluster {
- s.ElasticIpStatus = v
- return s
- }
- // SetElasticResizeNumberOfNodeOptions sets the ElasticResizeNumberOfNodeOptions field's value.
- func (s *Cluster) SetElasticResizeNumberOfNodeOptions(v string) *Cluster {
- s.ElasticResizeNumberOfNodeOptions = &v
- return s
- }
- // SetEncrypted sets the Encrypted field's value.
- func (s *Cluster) SetEncrypted(v bool) *Cluster {
- s.Encrypted = &v
- return s
- }
- // SetEndpoint sets the Endpoint field's value.
- func (s *Cluster) SetEndpoint(v *Endpoint) *Cluster {
- s.Endpoint = v
- return s
- }
- // SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value.
- func (s *Cluster) SetEnhancedVpcRouting(v bool) *Cluster {
- s.EnhancedVpcRouting = &v
- return s
- }
- // SetHsmStatus sets the HsmStatus field's value.
- func (s *Cluster) SetHsmStatus(v *HsmStatus) *Cluster {
- s.HsmStatus = v
- return s
- }
- // SetIamRoles sets the IamRoles field's value.
- func (s *Cluster) SetIamRoles(v []*ClusterIamRole) *Cluster {
- s.IamRoles = v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *Cluster) SetKmsKeyId(v string) *Cluster {
- s.KmsKeyId = &v
- return s
- }
- // SetMaintenanceTrackName sets the MaintenanceTrackName field's value.
- func (s *Cluster) SetMaintenanceTrackName(v string) *Cluster {
- s.MaintenanceTrackName = &v
- return s
- }
- // SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.
- func (s *Cluster) SetManualSnapshotRetentionPeriod(v int64) *Cluster {
- s.ManualSnapshotRetentionPeriod = &v
- return s
- }
- // SetMasterUsername sets the MasterUsername field's value.
- func (s *Cluster) SetMasterUsername(v string) *Cluster {
- s.MasterUsername = &v
- return s
- }
- // SetModifyStatus sets the ModifyStatus field's value.
- func (s *Cluster) SetModifyStatus(v string) *Cluster {
- s.ModifyStatus = &v
- return s
- }
- // SetNodeType sets the NodeType field's value.
- func (s *Cluster) SetNodeType(v string) *Cluster {
- s.NodeType = &v
- return s
- }
- // SetNumberOfNodes sets the NumberOfNodes field's value.
- func (s *Cluster) SetNumberOfNodes(v int64) *Cluster {
- s.NumberOfNodes = &v
- return s
- }
- // SetPendingActions sets the PendingActions field's value.
- func (s *Cluster) SetPendingActions(v []*string) *Cluster {
- s.PendingActions = v
- return s
- }
- // SetPendingModifiedValues sets the PendingModifiedValues field's value.
- func (s *Cluster) SetPendingModifiedValues(v *PendingModifiedValues) *Cluster {
- s.PendingModifiedValues = v
- return s
- }
- // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
- func (s *Cluster) SetPreferredMaintenanceWindow(v string) *Cluster {
- s.PreferredMaintenanceWindow = &v
- return s
- }
- // SetPubliclyAccessible sets the PubliclyAccessible field's value.
- func (s *Cluster) SetPubliclyAccessible(v bool) *Cluster {
- s.PubliclyAccessible = &v
- return s
- }
- // SetResizeInfo sets the ResizeInfo field's value.
- func (s *Cluster) SetResizeInfo(v *ResizeInfo) *Cluster {
- s.ResizeInfo = v
- return s
- }
- // SetRestoreStatus sets the RestoreStatus field's value.
- func (s *Cluster) SetRestoreStatus(v *RestoreStatus) *Cluster {
- s.RestoreStatus = v
- return s
- }
- // SetSnapshotScheduleIdentifier sets the SnapshotScheduleIdentifier field's value.
- func (s *Cluster) SetSnapshotScheduleIdentifier(v string) *Cluster {
- s.SnapshotScheduleIdentifier = &v
- return s
- }
- // SetSnapshotScheduleState sets the SnapshotScheduleState field's value.
- func (s *Cluster) SetSnapshotScheduleState(v string) *Cluster {
- s.SnapshotScheduleState = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *Cluster) SetTags(v []*Tag) *Cluster {
- s.Tags = v
- return s
- }
- // SetVpcId sets the VpcId field's value.
- func (s *Cluster) SetVpcId(v string) *Cluster {
- s.VpcId = &v
- return s
- }
- // SetVpcSecurityGroups sets the VpcSecurityGroups field's value.
- func (s *Cluster) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *Cluster {
- s.VpcSecurityGroups = v
- return s
- }
- type ClusterAssociatedToSchedule struct {
- _ struct{} `type:"structure"`
- ClusterIdentifier *string `type:"string"`
- ScheduleAssociationState *string `type:"string" enum:"ScheduleState"`
- }
- // String returns the string representation
- func (s ClusterAssociatedToSchedule) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterAssociatedToSchedule) GoString() string {
- return s.String()
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *ClusterAssociatedToSchedule) SetClusterIdentifier(v string) *ClusterAssociatedToSchedule {
- s.ClusterIdentifier = &v
- return s
- }
- // SetScheduleAssociationState sets the ScheduleAssociationState field's value.
- func (s *ClusterAssociatedToSchedule) SetScheduleAssociationState(v string) *ClusterAssociatedToSchedule {
- s.ScheduleAssociationState = &v
- return s
- }
- // Describes a ClusterDbRevision.
- type ClusterDbRevision struct {
- _ struct{} `type:"structure"`
- // The unique identifier of the cluster.
- ClusterIdentifier *string `type:"string"`
- // A string representing the current cluster version.
- CurrentDatabaseRevision *string `type:"string"`
- // The date on which the database revision was released.
- DatabaseRevisionReleaseDate *time.Time `type:"timestamp"`
- // A list of RevisionTarget objects, where each object describes the database
- // revision that a cluster can be updated to.
- RevisionTargets []*RevisionTarget `locationNameList:"RevisionTarget" type:"list"`
- }
- // String returns the string representation
- func (s ClusterDbRevision) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterDbRevision) GoString() string {
- return s.String()
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *ClusterDbRevision) SetClusterIdentifier(v string) *ClusterDbRevision {
- s.ClusterIdentifier = &v
- return s
- }
- // SetCurrentDatabaseRevision sets the CurrentDatabaseRevision field's value.
- func (s *ClusterDbRevision) SetCurrentDatabaseRevision(v string) *ClusterDbRevision {
- s.CurrentDatabaseRevision = &v
- return s
- }
- // SetDatabaseRevisionReleaseDate sets the DatabaseRevisionReleaseDate field's value.
- func (s *ClusterDbRevision) SetDatabaseRevisionReleaseDate(v time.Time) *ClusterDbRevision {
- s.DatabaseRevisionReleaseDate = &v
- return s
- }
- // SetRevisionTargets sets the RevisionTargets field's value.
- func (s *ClusterDbRevision) SetRevisionTargets(v []*RevisionTarget) *ClusterDbRevision {
- s.RevisionTargets = v
- return s
- }
- // An AWS Identity and Access Management (IAM) role that can be used by the
- // associated Amazon Redshift cluster to access other AWS services.
- type ClusterIamRole struct {
- _ struct{} `type:"structure"`
- // A value that describes the status of the IAM role's association with an Amazon
- // Redshift cluster.
- //
- // The following are possible statuses and descriptions.
- //
- // * in-sync: The role is available for use by the cluster.
- //
- // * adding: The role is in the process of being associated with the cluster.
- //
- // * removing: The role is in the process of being disassociated with the
- // cluster.
- ApplyStatus *string `type:"string"`
- // The Amazon Resource Name (ARN) of the IAM role, for example, arn:aws:iam::123456789012:role/RedshiftCopyUnload.
- IamRoleArn *string `type:"string"`
- }
- // String returns the string representation
- func (s ClusterIamRole) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterIamRole) GoString() string {
- return s.String()
- }
- // SetApplyStatus sets the ApplyStatus field's value.
- func (s *ClusterIamRole) SetApplyStatus(v string) *ClusterIamRole {
- s.ApplyStatus = &v
- return s
- }
- // SetIamRoleArn sets the IamRoleArn field's value.
- func (s *ClusterIamRole) SetIamRoleArn(v string) *ClusterIamRole {
- s.IamRoleArn = &v
- return s
- }
- // The identifier of a node in a cluster.
- type ClusterNode struct {
- _ struct{} `type:"structure"`
- // Whether the node is a leader node or a compute node.
- NodeRole *string `type:"string"`
- // The private IP address of a node within a cluster.
- PrivateIPAddress *string `type:"string"`
- // The public IP address of a node within a cluster.
- PublicIPAddress *string `type:"string"`
- }
- // String returns the string representation
- func (s ClusterNode) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterNode) GoString() string {
- return s.String()
- }
- // SetNodeRole sets the NodeRole field's value.
- func (s *ClusterNode) SetNodeRole(v string) *ClusterNode {
- s.NodeRole = &v
- return s
- }
- // SetPrivateIPAddress sets the PrivateIPAddress field's value.
- func (s *ClusterNode) SetPrivateIPAddress(v string) *ClusterNode {
- s.PrivateIPAddress = &v
- return s
- }
- // SetPublicIPAddress sets the PublicIPAddress field's value.
- func (s *ClusterNode) SetPublicIPAddress(v string) *ClusterNode {
- s.PublicIPAddress = &v
- return s
- }
- // Describes a parameter group.
- type ClusterParameterGroup struct {
- _ struct{} `type:"structure"`
- // The description of the parameter group.
- Description *string `type:"string"`
- // The name of the cluster parameter group family that this cluster parameter
- // group is compatible with.
- ParameterGroupFamily *string `type:"string"`
- // The name of the cluster parameter group.
- ParameterGroupName *string `type:"string"`
- // The list of tags for the cluster parameter group.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s ClusterParameterGroup) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterParameterGroup) GoString() string {
- return s.String()
- }
- // SetDescription sets the Description field's value.
- func (s *ClusterParameterGroup) SetDescription(v string) *ClusterParameterGroup {
- s.Description = &v
- return s
- }
- // SetParameterGroupFamily sets the ParameterGroupFamily field's value.
- func (s *ClusterParameterGroup) SetParameterGroupFamily(v string) *ClusterParameterGroup {
- s.ParameterGroupFamily = &v
- return s
- }
- // SetParameterGroupName sets the ParameterGroupName field's value.
- func (s *ClusterParameterGroup) SetParameterGroupName(v string) *ClusterParameterGroup {
- s.ParameterGroupName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *ClusterParameterGroup) SetTags(v []*Tag) *ClusterParameterGroup {
- s.Tags = v
- return s
- }
- type ClusterParameterGroupNameMessage struct {
- _ struct{} `type:"structure"`
- // The name of the cluster parameter group.
- ParameterGroupName *string `type:"string"`
- // The status of the parameter group. For example, if you made a change to a
- // parameter group name-value pair, then the change could be pending a reboot
- // of an associated cluster.
- ParameterGroupStatus *string `type:"string"`
- }
- // String returns the string representation
- func (s ClusterParameterGroupNameMessage) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterParameterGroupNameMessage) GoString() string {
- return s.String()
- }
- // SetParameterGroupName sets the ParameterGroupName field's value.
- func (s *ClusterParameterGroupNameMessage) SetParameterGroupName(v string) *ClusterParameterGroupNameMessage {
- s.ParameterGroupName = &v
- return s
- }
- // SetParameterGroupStatus sets the ParameterGroupStatus field's value.
- func (s *ClusterParameterGroupNameMessage) SetParameterGroupStatus(v string) *ClusterParameterGroupNameMessage {
- s.ParameterGroupStatus = &v
- return s
- }
- // Describes the status of a parameter group.
- type ClusterParameterGroupStatus struct {
- _ struct{} `type:"structure"`
- // The list of parameter statuses.
- //
- // For more information about parameters and parameter groups, go to Amazon
- // Redshift Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- ClusterParameterStatusList []*ClusterParameterStatus `type:"list"`
- // The status of parameter updates.
- ParameterApplyStatus *string `type:"string"`
- // The name of the cluster parameter group.
- ParameterGroupName *string `type:"string"`
- }
- // String returns the string representation
- func (s ClusterParameterGroupStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterParameterGroupStatus) GoString() string {
- return s.String()
- }
- // SetClusterParameterStatusList sets the ClusterParameterStatusList field's value.
- func (s *ClusterParameterGroupStatus) SetClusterParameterStatusList(v []*ClusterParameterStatus) *ClusterParameterGroupStatus {
- s.ClusterParameterStatusList = v
- return s
- }
- // SetParameterApplyStatus sets the ParameterApplyStatus field's value.
- func (s *ClusterParameterGroupStatus) SetParameterApplyStatus(v string) *ClusterParameterGroupStatus {
- s.ParameterApplyStatus = &v
- return s
- }
- // SetParameterGroupName sets the ParameterGroupName field's value.
- func (s *ClusterParameterGroupStatus) SetParameterGroupName(v string) *ClusterParameterGroupStatus {
- s.ParameterGroupName = &v
- return s
- }
- // Describes the status of a parameter group.
- type ClusterParameterStatus struct {
- _ struct{} `type:"structure"`
- // The error that prevented the parameter from being applied to the database.
- ParameterApplyErrorDescription *string `type:"string"`
- // The status of the parameter that indicates whether the parameter is in sync
- // with the database, waiting for a cluster reboot, or encountered an error
- // when being applied.
- //
- // The following are possible statuses and descriptions.
- //
- // * in-sync: The parameter value is in sync with the database.
- //
- // * pending-reboot: The parameter value will be applied after the cluster
- // reboots.
- //
- // * applying: The parameter value is being applied to the database.
- //
- // * invalid-parameter: Cannot apply the parameter value because it has an
- // invalid value or syntax.
- //
- // * apply-deferred: The parameter contains static property changes. The
- // changes are deferred until the cluster reboots.
- //
- // * apply-error: Cannot connect to the cluster. The parameter change will
- // be applied after the cluster reboots.
- //
- // * unknown-error: Cannot apply the parameter change right now. The change
- // will be applied after the cluster reboots.
- ParameterApplyStatus *string `type:"string"`
- // The name of the parameter.
- ParameterName *string `type:"string"`
- }
- // String returns the string representation
- func (s ClusterParameterStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterParameterStatus) GoString() string {
- return s.String()
- }
- // SetParameterApplyErrorDescription sets the ParameterApplyErrorDescription field's value.
- func (s *ClusterParameterStatus) SetParameterApplyErrorDescription(v string) *ClusterParameterStatus {
- s.ParameterApplyErrorDescription = &v
- return s
- }
- // SetParameterApplyStatus sets the ParameterApplyStatus field's value.
- func (s *ClusterParameterStatus) SetParameterApplyStatus(v string) *ClusterParameterStatus {
- s.ParameterApplyStatus = &v
- return s
- }
- // SetParameterName sets the ParameterName field's value.
- func (s *ClusterParameterStatus) SetParameterName(v string) *ClusterParameterStatus {
- s.ParameterName = &v
- return s
- }
- // Describes a security group.
- type ClusterSecurityGroup struct {
- _ struct{} `type:"structure"`
- // The name of the cluster security group to which the operation was applied.
- ClusterSecurityGroupName *string `type:"string"`
- // A description of the security group.
- Description *string `type:"string"`
- // A list of EC2 security groups that are permitted to access clusters associated
- // with this cluster security group.
- EC2SecurityGroups []*EC2SecurityGroup `locationNameList:"EC2SecurityGroup" type:"list"`
- // A list of IP ranges (CIDR blocks) that are permitted to access clusters associated
- // with this cluster security group.
- IPRanges []*IPRange `locationNameList:"IPRange" type:"list"`
- // The list of tags for the cluster security group.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s ClusterSecurityGroup) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterSecurityGroup) GoString() string {
- return s.String()
- }
- // SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value.
- func (s *ClusterSecurityGroup) SetClusterSecurityGroupName(v string) *ClusterSecurityGroup {
- s.ClusterSecurityGroupName = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *ClusterSecurityGroup) SetDescription(v string) *ClusterSecurityGroup {
- s.Description = &v
- return s
- }
- // SetEC2SecurityGroups sets the EC2SecurityGroups field's value.
- func (s *ClusterSecurityGroup) SetEC2SecurityGroups(v []*EC2SecurityGroup) *ClusterSecurityGroup {
- s.EC2SecurityGroups = v
- return s
- }
- // SetIPRanges sets the IPRanges field's value.
- func (s *ClusterSecurityGroup) SetIPRanges(v []*IPRange) *ClusterSecurityGroup {
- s.IPRanges = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *ClusterSecurityGroup) SetTags(v []*Tag) *ClusterSecurityGroup {
- s.Tags = v
- return s
- }
- // Describes a cluster security group.
- type ClusterSecurityGroupMembership struct {
- _ struct{} `type:"structure"`
- // The name of the cluster security group.
- ClusterSecurityGroupName *string `type:"string"`
- // The status of the cluster security group.
- Status *string `type:"string"`
- }
- // String returns the string representation
- func (s ClusterSecurityGroupMembership) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterSecurityGroupMembership) GoString() string {
- return s.String()
- }
- // SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value.
- func (s *ClusterSecurityGroupMembership) SetClusterSecurityGroupName(v string) *ClusterSecurityGroupMembership {
- s.ClusterSecurityGroupName = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ClusterSecurityGroupMembership) SetStatus(v string) *ClusterSecurityGroupMembership {
- s.Status = &v
- return s
- }
- // Returns the destination region and retention period that are configured for
- // cross-region snapshot copy.
- type ClusterSnapshotCopyStatus struct {
- _ struct{} `type:"structure"`
- // The destination region that snapshots are automatically copied to when cross-region
- // snapshot copy is enabled.
- DestinationRegion *string `type:"string"`
- // The number of days that automated snapshots are retained in the destination
- // region after they are copied from a source region. If the value is -1, the
- // manual snapshot is retained indefinitely.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- ManualSnapshotRetentionPeriod *int64 `type:"integer"`
- // The number of days that automated snapshots are retained in the destination
- // region after they are copied from a source region.
- RetentionPeriod *int64 `type:"long"`
- // The name of the snapshot copy grant.
- SnapshotCopyGrantName *string `type:"string"`
- }
- // String returns the string representation
- func (s ClusterSnapshotCopyStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterSnapshotCopyStatus) GoString() string {
- return s.String()
- }
- // SetDestinationRegion sets the DestinationRegion field's value.
- func (s *ClusterSnapshotCopyStatus) SetDestinationRegion(v string) *ClusterSnapshotCopyStatus {
- s.DestinationRegion = &v
- return s
- }
- // SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.
- func (s *ClusterSnapshotCopyStatus) SetManualSnapshotRetentionPeriod(v int64) *ClusterSnapshotCopyStatus {
- s.ManualSnapshotRetentionPeriod = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *ClusterSnapshotCopyStatus) SetRetentionPeriod(v int64) *ClusterSnapshotCopyStatus {
- s.RetentionPeriod = &v
- return s
- }
- // SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value.
- func (s *ClusterSnapshotCopyStatus) SetSnapshotCopyGrantName(v string) *ClusterSnapshotCopyStatus {
- s.SnapshotCopyGrantName = &v
- return s
- }
- // Describes a subnet group.
- type ClusterSubnetGroup struct {
- _ struct{} `type:"structure"`
- // The name of the cluster subnet group.
- ClusterSubnetGroupName *string `type:"string"`
- // The description of the cluster subnet group.
- Description *string `type:"string"`
- // The status of the cluster subnet group. Possible values are Complete, Incomplete
- // and Invalid.
- SubnetGroupStatus *string `type:"string"`
- // A list of the VPC Subnet elements.
- Subnets []*Subnet `locationNameList:"Subnet" type:"list"`
- // The list of tags for the cluster subnet group.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- // The VPC ID of the cluster subnet group.
- VpcId *string `type:"string"`
- }
- // String returns the string representation
- func (s ClusterSubnetGroup) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterSubnetGroup) GoString() string {
- return s.String()
- }
- // SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value.
- func (s *ClusterSubnetGroup) SetClusterSubnetGroupName(v string) *ClusterSubnetGroup {
- s.ClusterSubnetGroupName = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *ClusterSubnetGroup) SetDescription(v string) *ClusterSubnetGroup {
- s.Description = &v
- return s
- }
- // SetSubnetGroupStatus sets the SubnetGroupStatus field's value.
- func (s *ClusterSubnetGroup) SetSubnetGroupStatus(v string) *ClusterSubnetGroup {
- s.SubnetGroupStatus = &v
- return s
- }
- // SetSubnets sets the Subnets field's value.
- func (s *ClusterSubnetGroup) SetSubnets(v []*Subnet) *ClusterSubnetGroup {
- s.Subnets = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *ClusterSubnetGroup) SetTags(v []*Tag) *ClusterSubnetGroup {
- s.Tags = v
- return s
- }
- // SetVpcId sets the VpcId field's value.
- func (s *ClusterSubnetGroup) SetVpcId(v string) *ClusterSubnetGroup {
- s.VpcId = &v
- return s
- }
- // Describes a cluster version, including the parameter group family and description
- // of the version.
- type ClusterVersion struct {
- _ struct{} `type:"structure"`
- // The name of the cluster parameter group family for the cluster.
- ClusterParameterGroupFamily *string `type:"string"`
- // The version number used by the cluster.
- ClusterVersion *string `type:"string"`
- // The description of the cluster version.
- Description *string `type:"string"`
- }
- // String returns the string representation
- func (s ClusterVersion) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ClusterVersion) GoString() string {
- return s.String()
- }
- // SetClusterParameterGroupFamily sets the ClusterParameterGroupFamily field's value.
- func (s *ClusterVersion) SetClusterParameterGroupFamily(v string) *ClusterVersion {
- s.ClusterParameterGroupFamily = &v
- return s
- }
- // SetClusterVersion sets the ClusterVersion field's value.
- func (s *ClusterVersion) SetClusterVersion(v string) *ClusterVersion {
- s.ClusterVersion = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *ClusterVersion) SetDescription(v string) *ClusterVersion {
- s.Description = &v
- return s
- }
- type CopyClusterSnapshotInput struct {
- _ struct{} `type:"structure"`
- // The number of days that a manual snapshot is retained. If the value is -1,
- // the manual snapshot is retained indefinitely.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // The default value is -1.
- ManualSnapshotRetentionPeriod *int64 `type:"integer"`
- // The identifier of the cluster the source snapshot was created from. This
- // parameter is required if your IAM user has a policy containing a snapshot
- // resource element that specifies anything other than * for the cluster name.
- //
- // Constraints:
- //
- // * Must be the identifier for a valid cluster.
- SourceSnapshotClusterIdentifier *string `type:"string"`
- // The identifier for the source snapshot.
- //
- // Constraints:
- //
- // * Must be the identifier for a valid automated snapshot whose state is
- // available.
- //
- // SourceSnapshotIdentifier is a required field
- SourceSnapshotIdentifier *string `type:"string" required:"true"`
- // The identifier given to the new manual snapshot.
- //
- // Constraints:
- //
- // * Cannot be null, empty, or blank.
- //
- // * Must contain from 1 to 255 alphanumeric characters or hyphens.
- //
- // * First character must be a letter.
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens.
- //
- // * Must be unique for the AWS account that is making the request.
- //
- // TargetSnapshotIdentifier is a required field
- TargetSnapshotIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CopyClusterSnapshotInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CopyClusterSnapshotInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CopyClusterSnapshotInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CopyClusterSnapshotInput"}
- if s.SourceSnapshotIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("SourceSnapshotIdentifier"))
- }
- if s.TargetSnapshotIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetSnapshotIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.
- func (s *CopyClusterSnapshotInput) SetManualSnapshotRetentionPeriod(v int64) *CopyClusterSnapshotInput {
- s.ManualSnapshotRetentionPeriod = &v
- return s
- }
- // SetSourceSnapshotClusterIdentifier sets the SourceSnapshotClusterIdentifier field's value.
- func (s *CopyClusterSnapshotInput) SetSourceSnapshotClusterIdentifier(v string) *CopyClusterSnapshotInput {
- s.SourceSnapshotClusterIdentifier = &v
- return s
- }
- // SetSourceSnapshotIdentifier sets the SourceSnapshotIdentifier field's value.
- func (s *CopyClusterSnapshotInput) SetSourceSnapshotIdentifier(v string) *CopyClusterSnapshotInput {
- s.SourceSnapshotIdentifier = &v
- return s
- }
- // SetTargetSnapshotIdentifier sets the TargetSnapshotIdentifier field's value.
- func (s *CopyClusterSnapshotInput) SetTargetSnapshotIdentifier(v string) *CopyClusterSnapshotInput {
- s.TargetSnapshotIdentifier = &v
- return s
- }
- type CopyClusterSnapshotOutput struct {
- _ struct{} `type:"structure"`
- // Describes a snapshot.
- Snapshot *Snapshot `type:"structure"`
- }
- // String returns the string representation
- func (s CopyClusterSnapshotOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CopyClusterSnapshotOutput) GoString() string {
- return s.String()
- }
- // SetSnapshot sets the Snapshot field's value.
- func (s *CopyClusterSnapshotOutput) SetSnapshot(v *Snapshot) *CopyClusterSnapshotOutput {
- s.Snapshot = v
- return s
- }
- type CreateClusterInput struct {
- _ struct{} `type:"structure"`
- // Reserved.
- AdditionalInfo *string `type:"string"`
- // If true, major version upgrades can be applied during the maintenance window
- // to the Amazon Redshift engine that is running on the cluster.
- //
- // When a new major version of the Amazon Redshift engine is released, you can
- // request that the service automatically apply upgrades during the maintenance
- // window to the Amazon Redshift engine that is running on your cluster.
- //
- // Default: true
- AllowVersionUpgrade *bool `type:"boolean"`
- // The number of days that automated snapshots are retained. If the value is
- // 0, automated snapshots are disabled. Even if automated snapshots are disabled,
- // you can still create manual snapshots when you want with CreateClusterSnapshot.
- //
- // Default: 1
- //
- // Constraints: Must be a value from 0 to 35.
- AutomatedSnapshotRetentionPeriod *int64 `type:"integer"`
- // The EC2 Availability Zone (AZ) in which you want Amazon Redshift to provision
- // the cluster. For example, if you have several EC2 instances running in a
- // specific Availability Zone, then you might want the cluster to be provisioned
- // in the same zone in order to decrease network latency.
- //
- // Default: A random, system-chosen Availability Zone in the region that is
- // specified by the endpoint.
- //
- // Example: us-east-1d
- //
- // Constraint: The specified Availability Zone must be in the same region as
- // the current endpoint.
- AvailabilityZone *string `type:"string"`
- // A unique identifier for the cluster. You use this identifier to refer to
- // the cluster for any subsequent cluster operations such as deleting or modifying.
- // The identifier also appears in the Amazon Redshift console.
- //
- // Constraints:
- //
- // * Must contain from 1 to 63 alphanumeric characters or hyphens.
- //
- // * Alphabetic characters must be lowercase.
- //
- // * First character must be a letter.
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens.
- //
- // * Must be unique for all clusters within an AWS account.
- //
- // Example: myexamplecluster
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // The name of the parameter group to be associated with this cluster.
- //
- // Default: The default Amazon Redshift cluster parameter group. For information
- // about the default parameter group, go to Working with Amazon Redshift Parameter
- // Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html)
- //
- // Constraints:
- //
- // * Must be 1 to 255 alphanumeric characters or hyphens.
- //
- // * First character must be a letter.
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens.
- ClusterParameterGroupName *string `type:"string"`
- // A list of security groups to be associated with this cluster.
- //
- // Default: The default cluster security group for Amazon Redshift.
- ClusterSecurityGroups []*string `locationNameList:"ClusterSecurityGroupName" type:"list"`
- // The name of a cluster subnet group to be associated with this cluster.
- //
- // If this parameter is not provided the resulting cluster will be deployed
- // outside virtual private cloud (VPC).
- ClusterSubnetGroupName *string `type:"string"`
- // The type of the cluster. When cluster type is specified as
- //
- // * single-node, the NumberOfNodes parameter is not required.
- //
- // * multi-node, the NumberOfNodes parameter is required.
- //
- // Valid Values: multi-node | single-node
- //
- // Default: multi-node
- ClusterType *string `type:"string"`
- // The version of the Amazon Redshift engine software that you want to deploy
- // on the cluster.
- //
- // The version selected runs on all the nodes in the cluster.
- //
- // Constraints: Only version 1.0 is currently available.
- //
- // Example: 1.0
- ClusterVersion *string `type:"string"`
- // The name of the first database to be created when the cluster is created.
- //
- // To create additional databases after the cluster is created, connect to the
- // cluster with a SQL client and use SQL commands to create a database. For
- // more information, go to Create a Database (http://docs.aws.amazon.com/redshift/latest/dg/t_creating_database.html)
- // in the Amazon Redshift Database Developer Guide.
- //
- // Default: dev
- //
- // Constraints:
- //
- // * Must contain 1 to 64 alphanumeric characters.
- //
- // * Must contain only lowercase letters.
- //
- // * Cannot be a word that is reserved by the service. A list of reserved
- // words can be found in Reserved Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html)
- // in the Amazon Redshift Database Developer Guide.
- DBName *string `type:"string"`
- // The Elastic IP (EIP) address for the cluster.
- //
- // Constraints: The cluster must be provisioned in EC2-VPC and publicly-accessible
- // through an Internet gateway. For more information about provisioning clusters
- // in EC2-VPC, go to Supported Platforms to Launch Your Cluster (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#cluster-platforms)
- // in the Amazon Redshift Cluster Management Guide.
- ElasticIp *string `type:"string"`
- // If true, the data in the cluster is encrypted at rest.
- //
- // Default: false
- Encrypted *bool `type:"boolean"`
- // An option that specifies whether to create the cluster with enhanced VPC
- // routing enabled. To create a cluster that uses enhanced VPC routing, the
- // cluster must be in a VPC. For more information, see Enhanced VPC Routing
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // If this option is true, enhanced VPC routing is enabled.
- //
- // Default: false
- EnhancedVpcRouting *bool `type:"boolean"`
- // Specifies the name of the HSM client certificate the Amazon Redshift cluster
- // uses to retrieve the data encryption keys stored in an HSM.
- HsmClientCertificateIdentifier *string `type:"string"`
- // Specifies the name of the HSM configuration that contains the information
- // the Amazon Redshift cluster can use to retrieve and store keys in an HSM.
- HsmConfigurationIdentifier *string `type:"string"`
- // A list of AWS Identity and Access Management (IAM) roles that can be used
- // by the cluster to access other AWS services. You must supply the IAM roles
- // in their Amazon Resource Name (ARN) format. You can supply up to 10 IAM roles
- // in a single request.
- //
- // A cluster can have up to 10 IAM roles associated with it at any time.
- IamRoles []*string `locationNameList:"IamRoleArn" type:"list"`
- // The AWS Key Management Service (KMS) key ID of the encryption key that you
- // want to use to encrypt data in the cluster.
- KmsKeyId *string `type:"string"`
- // An optional parameter for the name of the maintenance track for the cluster.
- // If you don't provide a maintenance track name, the cluster is assigned to
- // the current track.
- MaintenanceTrackName *string `type:"string"`
- // The default number of days to retain a manual snapshot. If the value is -1,
- // the snapshot is retained indefinitely. This setting doesn't change the retention
- // period of existing snapshots.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- ManualSnapshotRetentionPeriod *int64 `type:"integer"`
- // The password associated with the master user account for the cluster that
- // is being created.
- //
- // Constraints:
- //
- // * Must be between 8 and 64 characters in length.
- //
- // * Must contain at least one uppercase letter.
- //
- // * Must contain at least one lowercase letter.
- //
- // * Must contain one number.
- //
- // * Can be any printable ASCII character (ASCII code 33 to 126) except '
- // (single quote), " (double quote), \, /, @, or space.
- //
- // MasterUserPassword is a required field
- MasterUserPassword *string `type:"string" required:"true"`
- // The user name associated with the master user account for the cluster that
- // is being created.
- //
- // Constraints:
- //
- // * Must be 1 - 128 alphanumeric characters. The user name can't be PUBLIC.
- //
- // * First character must be a letter.
- //
- // * Cannot be a reserved word. A list of reserved words can be found in
- // Reserved Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html)
- // in the Amazon Redshift Database Developer Guide.
- //
- // MasterUsername is a required field
- MasterUsername *string `type:"string" required:"true"`
- // The node type to be provisioned for the cluster. For information about node
- // types, go to Working with Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Valid Values: ds2.xlarge | ds2.8xlarge | ds2.xlarge | ds2.8xlarge | dc1.large
- // | dc1.8xlarge | dc2.large | dc2.8xlarge
- //
- // NodeType is a required field
- NodeType *string `type:"string" required:"true"`
- // The number of compute nodes in the cluster. This parameter is required when
- // the ClusterType parameter is specified as multi-node.
- //
- // For information about determining how many nodes you need, go to Working
- // with Clusters (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#how-many-nodes)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // If you don't specify this parameter, you get a single-node cluster. When
- // requesting a multi-node cluster, you must specify the number of nodes that
- // you want in the cluster.
- //
- // Default: 1
- //
- // Constraints: Value must be at least 1 and no more than 100.
- NumberOfNodes *int64 `type:"integer"`
- // The port number on which the cluster accepts incoming connections.
- //
- // The cluster is accessible only via the JDBC and ODBC connection strings.
- // Part of the connection string requires the port on which the cluster will
- // listen for incoming connections.
- //
- // Default: 5439
- //
- // Valid Values: 1150-65535
- Port *int64 `type:"integer"`
- // The weekly time range (in UTC) during which automated cluster maintenance
- // can occur.
- //
- // Format: ddd:hh24:mi-ddd:hh24:mi
- //
- // Default: A 30-minute window selected at random from an 8-hour block of time
- // per region, occurring on a random day of the week. For more information about
- // the time blocks for each region, see Maintenance Windows (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#rs-maintenance-windows)
- // in Amazon Redshift Cluster Management Guide.
- //
- // Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
- //
- // Constraints: Minimum 30-minute window.
- PreferredMaintenanceWindow *string `type:"string"`
- // If true, the cluster can be accessed from a public network.
- PubliclyAccessible *bool `type:"boolean"`
- // A unique identifier for the snapshot schedule.
- SnapshotScheduleIdentifier *string `type:"string"`
- // A list of tag instances.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- // A list of Virtual Private Cloud (VPC) security groups to be associated with
- // the cluster.
- //
- // Default: The default VPC security group is associated with the cluster.
- VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
- }
- // String returns the string representation
- func (s CreateClusterInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateClusterInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateClusterInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateClusterInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if s.MasterUserPassword == nil {
- invalidParams.Add(request.NewErrParamRequired("MasterUserPassword"))
- }
- if s.MasterUsername == nil {
- invalidParams.Add(request.NewErrParamRequired("MasterUsername"))
- }
- if s.NodeType == nil {
- invalidParams.Add(request.NewErrParamRequired("NodeType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAdditionalInfo sets the AdditionalInfo field's value.
- func (s *CreateClusterInput) SetAdditionalInfo(v string) *CreateClusterInput {
- s.AdditionalInfo = &v
- return s
- }
- // SetAllowVersionUpgrade sets the AllowVersionUpgrade field's value.
- func (s *CreateClusterInput) SetAllowVersionUpgrade(v bool) *CreateClusterInput {
- s.AllowVersionUpgrade = &v
- return s
- }
- // SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value.
- func (s *CreateClusterInput) SetAutomatedSnapshotRetentionPeriod(v int64) *CreateClusterInput {
- s.AutomatedSnapshotRetentionPeriod = &v
- return s
- }
- // SetAvailabilityZone sets the AvailabilityZone field's value.
- func (s *CreateClusterInput) SetAvailabilityZone(v string) *CreateClusterInput {
- s.AvailabilityZone = &v
- return s
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *CreateClusterInput) SetClusterIdentifier(v string) *CreateClusterInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetClusterParameterGroupName sets the ClusterParameterGroupName field's value.
- func (s *CreateClusterInput) SetClusterParameterGroupName(v string) *CreateClusterInput {
- s.ClusterParameterGroupName = &v
- return s
- }
- // SetClusterSecurityGroups sets the ClusterSecurityGroups field's value.
- func (s *CreateClusterInput) SetClusterSecurityGroups(v []*string) *CreateClusterInput {
- s.ClusterSecurityGroups = v
- return s
- }
- // SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value.
- func (s *CreateClusterInput) SetClusterSubnetGroupName(v string) *CreateClusterInput {
- s.ClusterSubnetGroupName = &v
- return s
- }
- // SetClusterType sets the ClusterType field's value.
- func (s *CreateClusterInput) SetClusterType(v string) *CreateClusterInput {
- s.ClusterType = &v
- return s
- }
- // SetClusterVersion sets the ClusterVersion field's value.
- func (s *CreateClusterInput) SetClusterVersion(v string) *CreateClusterInput {
- s.ClusterVersion = &v
- return s
- }
- // SetDBName sets the DBName field's value.
- func (s *CreateClusterInput) SetDBName(v string) *CreateClusterInput {
- s.DBName = &v
- return s
- }
- // SetElasticIp sets the ElasticIp field's value.
- func (s *CreateClusterInput) SetElasticIp(v string) *CreateClusterInput {
- s.ElasticIp = &v
- return s
- }
- // SetEncrypted sets the Encrypted field's value.
- func (s *CreateClusterInput) SetEncrypted(v bool) *CreateClusterInput {
- s.Encrypted = &v
- return s
- }
- // SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value.
- func (s *CreateClusterInput) SetEnhancedVpcRouting(v bool) *CreateClusterInput {
- s.EnhancedVpcRouting = &v
- return s
- }
- // SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value.
- func (s *CreateClusterInput) SetHsmClientCertificateIdentifier(v string) *CreateClusterInput {
- s.HsmClientCertificateIdentifier = &v
- return s
- }
- // SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value.
- func (s *CreateClusterInput) SetHsmConfigurationIdentifier(v string) *CreateClusterInput {
- s.HsmConfigurationIdentifier = &v
- return s
- }
- // SetIamRoles sets the IamRoles field's value.
- func (s *CreateClusterInput) SetIamRoles(v []*string) *CreateClusterInput {
- s.IamRoles = v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *CreateClusterInput) SetKmsKeyId(v string) *CreateClusterInput {
- s.KmsKeyId = &v
- return s
- }
- // SetMaintenanceTrackName sets the MaintenanceTrackName field's value.
- func (s *CreateClusterInput) SetMaintenanceTrackName(v string) *CreateClusterInput {
- s.MaintenanceTrackName = &v
- return s
- }
- // SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.
- func (s *CreateClusterInput) SetManualSnapshotRetentionPeriod(v int64) *CreateClusterInput {
- s.ManualSnapshotRetentionPeriod = &v
- return s
- }
- // SetMasterUserPassword sets the MasterUserPassword field's value.
- func (s *CreateClusterInput) SetMasterUserPassword(v string) *CreateClusterInput {
- s.MasterUserPassword = &v
- return s
- }
- // SetMasterUsername sets the MasterUsername field's value.
- func (s *CreateClusterInput) SetMasterUsername(v string) *CreateClusterInput {
- s.MasterUsername = &v
- return s
- }
- // SetNodeType sets the NodeType field's value.
- func (s *CreateClusterInput) SetNodeType(v string) *CreateClusterInput {
- s.NodeType = &v
- return s
- }
- // SetNumberOfNodes sets the NumberOfNodes field's value.
- func (s *CreateClusterInput) SetNumberOfNodes(v int64) *CreateClusterInput {
- s.NumberOfNodes = &v
- return s
- }
- // SetPort sets the Port field's value.
- func (s *CreateClusterInput) SetPort(v int64) *CreateClusterInput {
- s.Port = &v
- return s
- }
- // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
- func (s *CreateClusterInput) SetPreferredMaintenanceWindow(v string) *CreateClusterInput {
- s.PreferredMaintenanceWindow = &v
- return s
- }
- // SetPubliclyAccessible sets the PubliclyAccessible field's value.
- func (s *CreateClusterInput) SetPubliclyAccessible(v bool) *CreateClusterInput {
- s.PubliclyAccessible = &v
- return s
- }
- // SetSnapshotScheduleIdentifier sets the SnapshotScheduleIdentifier field's value.
- func (s *CreateClusterInput) SetSnapshotScheduleIdentifier(v string) *CreateClusterInput {
- s.SnapshotScheduleIdentifier = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateClusterInput) SetTags(v []*Tag) *CreateClusterInput {
- s.Tags = v
- return s
- }
- // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
- func (s *CreateClusterInput) SetVpcSecurityGroupIds(v []*string) *CreateClusterInput {
- s.VpcSecurityGroupIds = v
- return s
- }
- type CreateClusterOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s CreateClusterOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateClusterOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *CreateClusterOutput) SetCluster(v *Cluster) *CreateClusterOutput {
- s.Cluster = v
- return s
- }
- type CreateClusterParameterGroupInput struct {
- _ struct{} `type:"structure"`
- // A description of the parameter group.
- //
- // Description is a required field
- Description *string `type:"string" required:"true"`
- // The Amazon Redshift engine version to which the cluster parameter group applies.
- // The cluster engine version determines the set of parameters.
- //
- // To get a list of valid parameter group family names, you can call DescribeClusterParameterGroups.
- // By default, Amazon Redshift returns a list of all the parameter groups that
- // are owned by your AWS account, including the default parameter groups for
- // each Amazon Redshift engine version. The parameter group family names associated
- // with the default parameter groups provide you the valid values. For example,
- // a valid family name is "redshift-1.0".
- //
- // ParameterGroupFamily is a required field
- ParameterGroupFamily *string `type:"string" required:"true"`
- // The name of the cluster parameter group.
- //
- // Constraints:
- //
- // * Must be 1 to 255 alphanumeric characters or hyphens
- //
- // * First character must be a letter.
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens.
- //
- // * Must be unique withing your AWS account.
- //
- // This value is stored as a lower-case string.
- //
- // ParameterGroupName is a required field
- ParameterGroupName *string `type:"string" required:"true"`
- // A list of tag instances.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s CreateClusterParameterGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateClusterParameterGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateClusterParameterGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateClusterParameterGroupInput"}
- if s.Description == nil {
- invalidParams.Add(request.NewErrParamRequired("Description"))
- }
- if s.ParameterGroupFamily == nil {
- invalidParams.Add(request.NewErrParamRequired("ParameterGroupFamily"))
- }
- if s.ParameterGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ParameterGroupName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *CreateClusterParameterGroupInput) SetDescription(v string) *CreateClusterParameterGroupInput {
- s.Description = &v
- return s
- }
- // SetParameterGroupFamily sets the ParameterGroupFamily field's value.
- func (s *CreateClusterParameterGroupInput) SetParameterGroupFamily(v string) *CreateClusterParameterGroupInput {
- s.ParameterGroupFamily = &v
- return s
- }
- // SetParameterGroupName sets the ParameterGroupName field's value.
- func (s *CreateClusterParameterGroupInput) SetParameterGroupName(v string) *CreateClusterParameterGroupInput {
- s.ParameterGroupName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateClusterParameterGroupInput) SetTags(v []*Tag) *CreateClusterParameterGroupInput {
- s.Tags = v
- return s
- }
- type CreateClusterParameterGroupOutput struct {
- _ struct{} `type:"structure"`
- // Describes a parameter group.
- ClusterParameterGroup *ClusterParameterGroup `type:"structure"`
- }
- // String returns the string representation
- func (s CreateClusterParameterGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateClusterParameterGroupOutput) GoString() string {
- return s.String()
- }
- // SetClusterParameterGroup sets the ClusterParameterGroup field's value.
- func (s *CreateClusterParameterGroupOutput) SetClusterParameterGroup(v *ClusterParameterGroup) *CreateClusterParameterGroupOutput {
- s.ClusterParameterGroup = v
- return s
- }
- type CreateClusterSecurityGroupInput struct {
- _ struct{} `type:"structure"`
- // The name for the security group. Amazon Redshift stores the value as a lowercase
- // string.
- //
- // Constraints:
- //
- // * Must contain no more than 255 alphanumeric characters or hyphens.
- //
- // * Must not be "Default".
- //
- // * Must be unique for all security groups that are created by your AWS
- // account.
- //
- // Example: examplesecuritygroup
- //
- // ClusterSecurityGroupName is a required field
- ClusterSecurityGroupName *string `type:"string" required:"true"`
- // A description for the security group.
- //
- // Description is a required field
- Description *string `type:"string" required:"true"`
- // A list of tag instances.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s CreateClusterSecurityGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateClusterSecurityGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateClusterSecurityGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateClusterSecurityGroupInput"}
- if s.ClusterSecurityGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterSecurityGroupName"))
- }
- if s.Description == nil {
- invalidParams.Add(request.NewErrParamRequired("Description"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value.
- func (s *CreateClusterSecurityGroupInput) SetClusterSecurityGroupName(v string) *CreateClusterSecurityGroupInput {
- s.ClusterSecurityGroupName = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *CreateClusterSecurityGroupInput) SetDescription(v string) *CreateClusterSecurityGroupInput {
- s.Description = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateClusterSecurityGroupInput) SetTags(v []*Tag) *CreateClusterSecurityGroupInput {
- s.Tags = v
- return s
- }
- type CreateClusterSecurityGroupOutput struct {
- _ struct{} `type:"structure"`
- // Describes a security group.
- ClusterSecurityGroup *ClusterSecurityGroup `type:"structure"`
- }
- // String returns the string representation
- func (s CreateClusterSecurityGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateClusterSecurityGroupOutput) GoString() string {
- return s.String()
- }
- // SetClusterSecurityGroup sets the ClusterSecurityGroup field's value.
- func (s *CreateClusterSecurityGroupOutput) SetClusterSecurityGroup(v *ClusterSecurityGroup) *CreateClusterSecurityGroupOutput {
- s.ClusterSecurityGroup = v
- return s
- }
- type CreateClusterSnapshotInput struct {
- _ struct{} `type:"structure"`
- // The cluster identifier for which you want a snapshot.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // The number of days that a manual snapshot is retained. If the value is -1,
- // the manual snapshot is retained indefinitely.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // The default value is -1.
- ManualSnapshotRetentionPeriod *int64 `type:"integer"`
- // A unique identifier for the snapshot that you are requesting. This identifier
- // must be unique for all snapshots within the AWS account.
- //
- // Constraints:
- //
- // * Cannot be null, empty, or blank
- //
- // * Must contain from 1 to 255 alphanumeric characters or hyphens
- //
- // * First character must be a letter
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens
- //
- // Example: my-snapshot-id
- //
- // SnapshotIdentifier is a required field
- SnapshotIdentifier *string `type:"string" required:"true"`
- // A list of tag instances.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s CreateClusterSnapshotInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateClusterSnapshotInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateClusterSnapshotInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateClusterSnapshotInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if s.SnapshotIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *CreateClusterSnapshotInput) SetClusterIdentifier(v string) *CreateClusterSnapshotInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.
- func (s *CreateClusterSnapshotInput) SetManualSnapshotRetentionPeriod(v int64) *CreateClusterSnapshotInput {
- s.ManualSnapshotRetentionPeriod = &v
- return s
- }
- // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
- func (s *CreateClusterSnapshotInput) SetSnapshotIdentifier(v string) *CreateClusterSnapshotInput {
- s.SnapshotIdentifier = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateClusterSnapshotInput) SetTags(v []*Tag) *CreateClusterSnapshotInput {
- s.Tags = v
- return s
- }
- type CreateClusterSnapshotOutput struct {
- _ struct{} `type:"structure"`
- // Describes a snapshot.
- Snapshot *Snapshot `type:"structure"`
- }
- // String returns the string representation
- func (s CreateClusterSnapshotOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateClusterSnapshotOutput) GoString() string {
- return s.String()
- }
- // SetSnapshot sets the Snapshot field's value.
- func (s *CreateClusterSnapshotOutput) SetSnapshot(v *Snapshot) *CreateClusterSnapshotOutput {
- s.Snapshot = v
- return s
- }
- type CreateClusterSubnetGroupInput struct {
- _ struct{} `type:"structure"`
- // The name for the subnet group. Amazon Redshift stores the value as a lowercase
- // string.
- //
- // Constraints:
- //
- // * Must contain no more than 255 alphanumeric characters or hyphens.
- //
- // * Must not be "Default".
- //
- // * Must be unique for all subnet groups that are created by your AWS account.
- //
- // Example: examplesubnetgroup
- //
- // ClusterSubnetGroupName is a required field
- ClusterSubnetGroupName *string `type:"string" required:"true"`
- // A description for the subnet group.
- //
- // Description is a required field
- Description *string `type:"string" required:"true"`
- // An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a
- // single request.
- //
- // SubnetIds is a required field
- SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
- // A list of tag instances.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s CreateClusterSubnetGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateClusterSubnetGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateClusterSubnetGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateClusterSubnetGroupInput"}
- if s.ClusterSubnetGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterSubnetGroupName"))
- }
- if s.Description == nil {
- invalidParams.Add(request.NewErrParamRequired("Description"))
- }
- if s.SubnetIds == nil {
- invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value.
- func (s *CreateClusterSubnetGroupInput) SetClusterSubnetGroupName(v string) *CreateClusterSubnetGroupInput {
- s.ClusterSubnetGroupName = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *CreateClusterSubnetGroupInput) SetDescription(v string) *CreateClusterSubnetGroupInput {
- s.Description = &v
- return s
- }
- // SetSubnetIds sets the SubnetIds field's value.
- func (s *CreateClusterSubnetGroupInput) SetSubnetIds(v []*string) *CreateClusterSubnetGroupInput {
- s.SubnetIds = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateClusterSubnetGroupInput) SetTags(v []*Tag) *CreateClusterSubnetGroupInput {
- s.Tags = v
- return s
- }
- type CreateClusterSubnetGroupOutput struct {
- _ struct{} `type:"structure"`
- // Describes a subnet group.
- ClusterSubnetGroup *ClusterSubnetGroup `type:"structure"`
- }
- // String returns the string representation
- func (s CreateClusterSubnetGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateClusterSubnetGroupOutput) GoString() string {
- return s.String()
- }
- // SetClusterSubnetGroup sets the ClusterSubnetGroup field's value.
- func (s *CreateClusterSubnetGroupOutput) SetClusterSubnetGroup(v *ClusterSubnetGroup) *CreateClusterSubnetGroupOutput {
- s.ClusterSubnetGroup = v
- return s
- }
- type CreateEventSubscriptionInput struct {
- _ struct{} `type:"structure"`
- // A boolean value; set to true to activate the subscription, and set to false
- // to create the subscription but not activate it.
- Enabled *bool `type:"boolean"`
- // Specifies the Amazon Redshift event categories to be published by the event
- // notification subscription.
- //
- // Values: configuration, management, monitoring, security
- EventCategories []*string `locationNameList:"EventCategory" type:"list"`
- // Specifies the Amazon Redshift event severity to be published by the event
- // notification subscription.
- //
- // Values: ERROR, INFO
- Severity *string `type:"string"`
- // The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the
- // event notifications. The ARN is created by Amazon SNS when you create a topic
- // and subscribe to it.
- //
- // SnsTopicArn is a required field
- SnsTopicArn *string `type:"string" required:"true"`
- // A list of one or more identifiers of Amazon Redshift source objects. All
- // of the objects must be of the same type as was specified in the source type
- // parameter. The event subscription will return only events generated by the
- // specified objects. If not specified, then events are returned for all objects
- // within the source type specified.
- //
- // Example: my-cluster-1, my-cluster-2
- //
- // Example: my-snapshot-20131010
- SourceIds []*string `locationNameList:"SourceId" type:"list"`
- // The type of source that will be generating the events. For example, if you
- // want to be notified of events generated by a cluster, you would set this
- // parameter to cluster. If this value is not specified, events are returned
- // for all Amazon Redshift objects in your AWS account. You must specify a source
- // type in order to specify source IDs.
- //
- // Valid values: cluster, cluster-parameter-group, cluster-security-group, and
- // cluster-snapshot.
- SourceType *string `type:"string"`
- // The name of the event subscription to be created.
- //
- // Constraints:
- //
- // * Cannot be null, empty, or blank.
- //
- // * Must contain from 1 to 255 alphanumeric characters or hyphens.
- //
- // * First character must be a letter.
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens.
- //
- // SubscriptionName is a required field
- SubscriptionName *string `type:"string" required:"true"`
- // A list of tag instances.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s CreateEventSubscriptionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateEventSubscriptionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateEventSubscriptionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateEventSubscriptionInput"}
- if s.SnsTopicArn == nil {
- invalidParams.Add(request.NewErrParamRequired("SnsTopicArn"))
- }
- if s.SubscriptionName == nil {
- invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEnabled sets the Enabled field's value.
- func (s *CreateEventSubscriptionInput) SetEnabled(v bool) *CreateEventSubscriptionInput {
- s.Enabled = &v
- return s
- }
- // SetEventCategories sets the EventCategories field's value.
- func (s *CreateEventSubscriptionInput) SetEventCategories(v []*string) *CreateEventSubscriptionInput {
- s.EventCategories = v
- return s
- }
- // SetSeverity sets the Severity field's value.
- func (s *CreateEventSubscriptionInput) SetSeverity(v string) *CreateEventSubscriptionInput {
- s.Severity = &v
- return s
- }
- // SetSnsTopicArn sets the SnsTopicArn field's value.
- func (s *CreateEventSubscriptionInput) SetSnsTopicArn(v string) *CreateEventSubscriptionInput {
- s.SnsTopicArn = &v
- return s
- }
- // SetSourceIds sets the SourceIds field's value.
- func (s *CreateEventSubscriptionInput) SetSourceIds(v []*string) *CreateEventSubscriptionInput {
- s.SourceIds = v
- return s
- }
- // SetSourceType sets the SourceType field's value.
- func (s *CreateEventSubscriptionInput) SetSourceType(v string) *CreateEventSubscriptionInput {
- s.SourceType = &v
- return s
- }
- // SetSubscriptionName sets the SubscriptionName field's value.
- func (s *CreateEventSubscriptionInput) SetSubscriptionName(v string) *CreateEventSubscriptionInput {
- s.SubscriptionName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateEventSubscriptionInput) SetTags(v []*Tag) *CreateEventSubscriptionInput {
- s.Tags = v
- return s
- }
- type CreateEventSubscriptionOutput struct {
- _ struct{} `type:"structure"`
- // Describes event subscriptions.
- EventSubscription *EventSubscription `type:"structure"`
- }
- // String returns the string representation
- func (s CreateEventSubscriptionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateEventSubscriptionOutput) GoString() string {
- return s.String()
- }
- // SetEventSubscription sets the EventSubscription field's value.
- func (s *CreateEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *CreateEventSubscriptionOutput {
- s.EventSubscription = v
- return s
- }
- type CreateHsmClientCertificateInput struct {
- _ struct{} `type:"structure"`
- // The identifier to be assigned to the new HSM client certificate that the
- // cluster will use to connect to the HSM to use the database encryption keys.
- //
- // HsmClientCertificateIdentifier is a required field
- HsmClientCertificateIdentifier *string `type:"string" required:"true"`
- // A list of tag instances.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s CreateHsmClientCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHsmClientCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateHsmClientCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateHsmClientCertificateInput"}
- if s.HsmClientCertificateIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("HsmClientCertificateIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value.
- func (s *CreateHsmClientCertificateInput) SetHsmClientCertificateIdentifier(v string) *CreateHsmClientCertificateInput {
- s.HsmClientCertificateIdentifier = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateHsmClientCertificateInput) SetTags(v []*Tag) *CreateHsmClientCertificateInput {
- s.Tags = v
- return s
- }
- type CreateHsmClientCertificateOutput struct {
- _ struct{} `type:"structure"`
- // Returns information about an HSM client certificate. The certificate is stored
- // in a secure Hardware Storage Module (HSM), and used by the Amazon Redshift
- // cluster to encrypt data files.
- HsmClientCertificate *HsmClientCertificate `type:"structure"`
- }
- // String returns the string representation
- func (s CreateHsmClientCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHsmClientCertificateOutput) GoString() string {
- return s.String()
- }
- // SetHsmClientCertificate sets the HsmClientCertificate field's value.
- func (s *CreateHsmClientCertificateOutput) SetHsmClientCertificate(v *HsmClientCertificate) *CreateHsmClientCertificateOutput {
- s.HsmClientCertificate = v
- return s
- }
- type CreateHsmConfigurationInput struct {
- _ struct{} `type:"structure"`
- // A text description of the HSM configuration to be created.
- //
- // Description is a required field
- Description *string `type:"string" required:"true"`
- // The identifier to be assigned to the new Amazon Redshift HSM configuration.
- //
- // HsmConfigurationIdentifier is a required field
- HsmConfigurationIdentifier *string `type:"string" required:"true"`
- // The IP address that the Amazon Redshift cluster must use to access the HSM.
- //
- // HsmIpAddress is a required field
- HsmIpAddress *string `type:"string" required:"true"`
- // The name of the partition in the HSM where the Amazon Redshift clusters will
- // store their database encryption keys.
- //
- // HsmPartitionName is a required field
- HsmPartitionName *string `type:"string" required:"true"`
- // The password required to access the HSM partition.
- //
- // HsmPartitionPassword is a required field
- HsmPartitionPassword *string `type:"string" required:"true"`
- // The HSMs public certificate file. When using Cloud HSM, the file name is
- // server.pem.
- //
- // HsmServerPublicCertificate is a required field
- HsmServerPublicCertificate *string `type:"string" required:"true"`
- // A list of tag instances.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s CreateHsmConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHsmConfigurationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateHsmConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateHsmConfigurationInput"}
- if s.Description == nil {
- invalidParams.Add(request.NewErrParamRequired("Description"))
- }
- if s.HsmConfigurationIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("HsmConfigurationIdentifier"))
- }
- if s.HsmIpAddress == nil {
- invalidParams.Add(request.NewErrParamRequired("HsmIpAddress"))
- }
- if s.HsmPartitionName == nil {
- invalidParams.Add(request.NewErrParamRequired("HsmPartitionName"))
- }
- if s.HsmPartitionPassword == nil {
- invalidParams.Add(request.NewErrParamRequired("HsmPartitionPassword"))
- }
- if s.HsmServerPublicCertificate == nil {
- invalidParams.Add(request.NewErrParamRequired("HsmServerPublicCertificate"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *CreateHsmConfigurationInput) SetDescription(v string) *CreateHsmConfigurationInput {
- s.Description = &v
- return s
- }
- // SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value.
- func (s *CreateHsmConfigurationInput) SetHsmConfigurationIdentifier(v string) *CreateHsmConfigurationInput {
- s.HsmConfigurationIdentifier = &v
- return s
- }
- // SetHsmIpAddress sets the HsmIpAddress field's value.
- func (s *CreateHsmConfigurationInput) SetHsmIpAddress(v string) *CreateHsmConfigurationInput {
- s.HsmIpAddress = &v
- return s
- }
- // SetHsmPartitionName sets the HsmPartitionName field's value.
- func (s *CreateHsmConfigurationInput) SetHsmPartitionName(v string) *CreateHsmConfigurationInput {
- s.HsmPartitionName = &v
- return s
- }
- // SetHsmPartitionPassword sets the HsmPartitionPassword field's value.
- func (s *CreateHsmConfigurationInput) SetHsmPartitionPassword(v string) *CreateHsmConfigurationInput {
- s.HsmPartitionPassword = &v
- return s
- }
- // SetHsmServerPublicCertificate sets the HsmServerPublicCertificate field's value.
- func (s *CreateHsmConfigurationInput) SetHsmServerPublicCertificate(v string) *CreateHsmConfigurationInput {
- s.HsmServerPublicCertificate = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateHsmConfigurationInput) SetTags(v []*Tag) *CreateHsmConfigurationInput {
- s.Tags = v
- return s
- }
- type CreateHsmConfigurationOutput struct {
- _ struct{} `type:"structure"`
- // Returns information about an HSM configuration, which is an object that describes
- // to Amazon Redshift clusters the information they require to connect to an
- // HSM where they can store database encryption keys.
- HsmConfiguration *HsmConfiguration `type:"structure"`
- }
- // String returns the string representation
- func (s CreateHsmConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateHsmConfigurationOutput) GoString() string {
- return s.String()
- }
- // SetHsmConfiguration sets the HsmConfiguration field's value.
- func (s *CreateHsmConfigurationOutput) SetHsmConfiguration(v *HsmConfiguration) *CreateHsmConfigurationOutput {
- s.HsmConfiguration = v
- return s
- }
- // The result of the CreateSnapshotCopyGrant action.
- type CreateSnapshotCopyGrantInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier of the customer master key (CMK) to which to grant
- // Amazon Redshift permission. If no key is specified, the default key is used.
- KmsKeyId *string `type:"string"`
- // The name of the snapshot copy grant. This name must be unique in the region
- // for the AWS account.
- //
- // Constraints:
- //
- // * Must contain from 1 to 63 alphanumeric characters or hyphens.
- //
- // * Alphabetic characters must be lowercase.
- //
- // * First character must be a letter.
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens.
- //
- // * Must be unique for all clusters within an AWS account.
- //
- // SnapshotCopyGrantName is a required field
- SnapshotCopyGrantName *string `type:"string" required:"true"`
- // A list of tag instances.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s CreateSnapshotCopyGrantInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateSnapshotCopyGrantInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateSnapshotCopyGrantInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotCopyGrantInput"}
- if s.SnapshotCopyGrantName == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotCopyGrantName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *CreateSnapshotCopyGrantInput) SetKmsKeyId(v string) *CreateSnapshotCopyGrantInput {
- s.KmsKeyId = &v
- return s
- }
- // SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value.
- func (s *CreateSnapshotCopyGrantInput) SetSnapshotCopyGrantName(v string) *CreateSnapshotCopyGrantInput {
- s.SnapshotCopyGrantName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateSnapshotCopyGrantInput) SetTags(v []*Tag) *CreateSnapshotCopyGrantInput {
- s.Tags = v
- return s
- }
- type CreateSnapshotCopyGrantOutput struct {
- _ struct{} `type:"structure"`
- // The snapshot copy grant that grants Amazon Redshift permission to encrypt
- // copied snapshots with the specified customer master key (CMK) from AWS KMS
- // in the destination region.
- //
- // For more information about managing snapshot copy grants, go to Amazon Redshift
- // Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html)
- // in the Amazon Redshift Cluster Management Guide.
- SnapshotCopyGrant *SnapshotCopyGrant `type:"structure"`
- }
- // String returns the string representation
- func (s CreateSnapshotCopyGrantOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateSnapshotCopyGrantOutput) GoString() string {
- return s.String()
- }
- // SetSnapshotCopyGrant sets the SnapshotCopyGrant field's value.
- func (s *CreateSnapshotCopyGrantOutput) SetSnapshotCopyGrant(v *SnapshotCopyGrant) *CreateSnapshotCopyGrantOutput {
- s.SnapshotCopyGrant = v
- return s
- }
- type CreateSnapshotScheduleInput struct {
- _ struct{} `type:"structure"`
- DryRun *bool `type:"boolean"`
- NextInvocations *int64 `type:"integer"`
- // The definition of the snapshot schedule. The definition is made up of schedule
- // expressions, for example "cron(30 12 *)" or "rate(12 hours)".
- ScheduleDefinitions []*string `locationNameList:"ScheduleDefinition" type:"list"`
- // The description of the snapshot schedule.
- ScheduleDescription *string `type:"string"`
- // A unique identifier for a snapshot schedule. Only alphanumeric characters
- // are allowed for the identifier.
- ScheduleIdentifier *string `type:"string"`
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s CreateSnapshotScheduleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateSnapshotScheduleInput) GoString() string {
- return s.String()
- }
- // SetDryRun sets the DryRun field's value.
- func (s *CreateSnapshotScheduleInput) SetDryRun(v bool) *CreateSnapshotScheduleInput {
- s.DryRun = &v
- return s
- }
- // SetNextInvocations sets the NextInvocations field's value.
- func (s *CreateSnapshotScheduleInput) SetNextInvocations(v int64) *CreateSnapshotScheduleInput {
- s.NextInvocations = &v
- return s
- }
- // SetScheduleDefinitions sets the ScheduleDefinitions field's value.
- func (s *CreateSnapshotScheduleInput) SetScheduleDefinitions(v []*string) *CreateSnapshotScheduleInput {
- s.ScheduleDefinitions = v
- return s
- }
- // SetScheduleDescription sets the ScheduleDescription field's value.
- func (s *CreateSnapshotScheduleInput) SetScheduleDescription(v string) *CreateSnapshotScheduleInput {
- s.ScheduleDescription = &v
- return s
- }
- // SetScheduleIdentifier sets the ScheduleIdentifier field's value.
- func (s *CreateSnapshotScheduleInput) SetScheduleIdentifier(v string) *CreateSnapshotScheduleInput {
- s.ScheduleIdentifier = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateSnapshotScheduleInput) SetTags(v []*Tag) *CreateSnapshotScheduleInput {
- s.Tags = v
- return s
- }
- // Describes a snapshot schedule. You can set a regular interval for creating
- // snapshots of a cluster. You can also schedule snapshots for specific dates.
- type CreateSnapshotScheduleOutput struct {
- _ struct{} `type:"structure"`
- AssociatedClusterCount *int64 `type:"integer"`
- AssociatedClusters []*ClusterAssociatedToSchedule `locationNameList:"ClusterAssociatedToSchedule" type:"list"`
- NextInvocations []*time.Time `locationNameList:"SnapshotTime" type:"list"`
- // A list of ScheduleDefinitions
- ScheduleDefinitions []*string `locationNameList:"ScheduleDefinition" type:"list"`
- // The description of the schedule.
- ScheduleDescription *string `type:"string"`
- // A unique identifier for the schedule.
- ScheduleIdentifier *string `type:"string"`
- // An optional set of tags describing the schedule.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s CreateSnapshotScheduleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateSnapshotScheduleOutput) GoString() string {
- return s.String()
- }
- // SetAssociatedClusterCount sets the AssociatedClusterCount field's value.
- func (s *CreateSnapshotScheduleOutput) SetAssociatedClusterCount(v int64) *CreateSnapshotScheduleOutput {
- s.AssociatedClusterCount = &v
- return s
- }
- // SetAssociatedClusters sets the AssociatedClusters field's value.
- func (s *CreateSnapshotScheduleOutput) SetAssociatedClusters(v []*ClusterAssociatedToSchedule) *CreateSnapshotScheduleOutput {
- s.AssociatedClusters = v
- return s
- }
- // SetNextInvocations sets the NextInvocations field's value.
- func (s *CreateSnapshotScheduleOutput) SetNextInvocations(v []*time.Time) *CreateSnapshotScheduleOutput {
- s.NextInvocations = v
- return s
- }
- // SetScheduleDefinitions sets the ScheduleDefinitions field's value.
- func (s *CreateSnapshotScheduleOutput) SetScheduleDefinitions(v []*string) *CreateSnapshotScheduleOutput {
- s.ScheduleDefinitions = v
- return s
- }
- // SetScheduleDescription sets the ScheduleDescription field's value.
- func (s *CreateSnapshotScheduleOutput) SetScheduleDescription(v string) *CreateSnapshotScheduleOutput {
- s.ScheduleDescription = &v
- return s
- }
- // SetScheduleIdentifier sets the ScheduleIdentifier field's value.
- func (s *CreateSnapshotScheduleOutput) SetScheduleIdentifier(v string) *CreateSnapshotScheduleOutput {
- s.ScheduleIdentifier = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateSnapshotScheduleOutput) SetTags(v []*Tag) *CreateSnapshotScheduleOutput {
- s.Tags = v
- return s
- }
- // Contains the output from the CreateTags action.
- type CreateTagsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) to which you want to add the tag or tags.
- // For example, arn:aws:redshift:us-east-1:123456789:cluster:t1.
- //
- // ResourceName is a required field
- ResourceName *string `type:"string" required:"true"`
- // One or more name/value pairs to add as tags to the specified resource. Each
- // tag name is passed in with the parameter Key and the corresponding value
- // is passed in with the parameter Value. The Key and Value parameters are separated
- // by a comma (,). Separate multiple tags with a space. For example, --tags
- // "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0".
- //
- // Tags is a required field
- Tags []*Tag `locationNameList:"Tag" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s CreateTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTagsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateTagsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"}
- if s.ResourceName == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceName"))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceName sets the ResourceName field's value.
- func (s *CreateTagsInput) SetResourceName(v string) *CreateTagsInput {
- s.ResourceName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput {
- s.Tags = v
- return s
- }
- type CreateTagsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s CreateTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTagsOutput) GoString() string {
- return s.String()
- }
- // Describes the status of a cluster while it is in the process of resizing
- // with an incremental resize.
- type DataTransferProgress struct {
- _ struct{} `type:"structure"`
- // Describes the data transfer rate in MB's per second.
- CurrentRateInMegaBytesPerSecond *float64 `type:"double"`
- // Describes the total amount of data that has been transfered in MB's.
- DataTransferredInMegaBytes *int64 `type:"long"`
- // Describes the number of seconds that have elapsed during the data transfer.
- ElapsedTimeInSeconds *int64 `type:"long"`
- // Describes the estimated number of seconds remaining to complete the transfer.
- EstimatedTimeToCompletionInSeconds *int64 `type:"long"`
- // Describes the status of the cluster. While the transfer is in progress the
- // status is transferringdata.
- Status *string `type:"string"`
- // Describes the total amount of data to be transfered in megabytes.
- TotalDataInMegaBytes *int64 `type:"long"`
- }
- // String returns the string representation
- func (s DataTransferProgress) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DataTransferProgress) GoString() string {
- return s.String()
- }
- // SetCurrentRateInMegaBytesPerSecond sets the CurrentRateInMegaBytesPerSecond field's value.
- func (s *DataTransferProgress) SetCurrentRateInMegaBytesPerSecond(v float64) *DataTransferProgress {
- s.CurrentRateInMegaBytesPerSecond = &v
- return s
- }
- // SetDataTransferredInMegaBytes sets the DataTransferredInMegaBytes field's value.
- func (s *DataTransferProgress) SetDataTransferredInMegaBytes(v int64) *DataTransferProgress {
- s.DataTransferredInMegaBytes = &v
- return s
- }
- // SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value.
- func (s *DataTransferProgress) SetElapsedTimeInSeconds(v int64) *DataTransferProgress {
- s.ElapsedTimeInSeconds = &v
- return s
- }
- // SetEstimatedTimeToCompletionInSeconds sets the EstimatedTimeToCompletionInSeconds field's value.
- func (s *DataTransferProgress) SetEstimatedTimeToCompletionInSeconds(v int64) *DataTransferProgress {
- s.EstimatedTimeToCompletionInSeconds = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *DataTransferProgress) SetStatus(v string) *DataTransferProgress {
- s.Status = &v
- return s
- }
- // SetTotalDataInMegaBytes sets the TotalDataInMegaBytes field's value.
- func (s *DataTransferProgress) SetTotalDataInMegaBytes(v int64) *DataTransferProgress {
- s.TotalDataInMegaBytes = &v
- return s
- }
- // Describes the default cluster parameters for a parameter group family.
- type DefaultClusterParameters struct {
- _ struct{} `type:"structure"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- // The name of the cluster parameter group family to which the engine default
- // parameters apply.
- ParameterGroupFamily *string `type:"string"`
- // The list of cluster default parameters.
- Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
- }
- // String returns the string representation
- func (s DefaultClusterParameters) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DefaultClusterParameters) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DefaultClusterParameters) SetMarker(v string) *DefaultClusterParameters {
- s.Marker = &v
- return s
- }
- // SetParameterGroupFamily sets the ParameterGroupFamily field's value.
- func (s *DefaultClusterParameters) SetParameterGroupFamily(v string) *DefaultClusterParameters {
- s.ParameterGroupFamily = &v
- return s
- }
- // SetParameters sets the Parameters field's value.
- func (s *DefaultClusterParameters) SetParameters(v []*Parameter) *DefaultClusterParameters {
- s.Parameters = v
- return s
- }
- // Describes a deferred maintenance window
- type DeferredMaintenanceWindow struct {
- _ struct{} `type:"structure"`
- // A timestamp for the end of the time period when we defer maintenance.
- DeferMaintenanceEndTime *time.Time `type:"timestamp"`
- // A unique identifier for the maintenance window.
- DeferMaintenanceIdentifier *string `type:"string"`
- // A timestamp for the beginning of the time period when we defer maintenance.
- DeferMaintenanceStartTime *time.Time `type:"timestamp"`
- }
- // String returns the string representation
- func (s DeferredMaintenanceWindow) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeferredMaintenanceWindow) GoString() string {
- return s.String()
- }
- // SetDeferMaintenanceEndTime sets the DeferMaintenanceEndTime field's value.
- func (s *DeferredMaintenanceWindow) SetDeferMaintenanceEndTime(v time.Time) *DeferredMaintenanceWindow {
- s.DeferMaintenanceEndTime = &v
- return s
- }
- // SetDeferMaintenanceIdentifier sets the DeferMaintenanceIdentifier field's value.
- func (s *DeferredMaintenanceWindow) SetDeferMaintenanceIdentifier(v string) *DeferredMaintenanceWindow {
- s.DeferMaintenanceIdentifier = &v
- return s
- }
- // SetDeferMaintenanceStartTime sets the DeferMaintenanceStartTime field's value.
- func (s *DeferredMaintenanceWindow) SetDeferMaintenanceStartTime(v time.Time) *DeferredMaintenanceWindow {
- s.DeferMaintenanceStartTime = &v
- return s
- }
- type DeleteClusterInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the cluster to be deleted.
- //
- // Constraints:
- //
- // * Must contain lowercase characters.
- //
- // * Must contain from 1 to 63 alphanumeric characters or hyphens.
- //
- // * First character must be a letter.
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // The identifier of the final snapshot that is to be created immediately before
- // deleting the cluster. If this parameter is provided, SkipFinalClusterSnapshot
- // must be false.
- //
- // Constraints:
- //
- // * Must be 1 to 255 alphanumeric characters.
- //
- // * First character must be a letter.
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens.
- FinalClusterSnapshotIdentifier *string `type:"string"`
- // The number of days that a manual snapshot is retained. If the value is -1,
- // the manual snapshot is retained indefinitely.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // The default value is -1.
- FinalClusterSnapshotRetentionPeriod *int64 `type:"integer"`
- // Determines whether a final snapshot of the cluster is created before Amazon
- // Redshift deletes the cluster. If true, a final cluster snapshot is not created.
- // If false, a final cluster snapshot is created before the cluster is deleted.
- //
- // The FinalClusterSnapshotIdentifier parameter must be specified if SkipFinalClusterSnapshot
- // is false.
- //
- // Default: false
- SkipFinalClusterSnapshot *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s DeleteClusterInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClusterInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteClusterInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteClusterInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *DeleteClusterInput) SetClusterIdentifier(v string) *DeleteClusterInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetFinalClusterSnapshotIdentifier sets the FinalClusterSnapshotIdentifier field's value.
- func (s *DeleteClusterInput) SetFinalClusterSnapshotIdentifier(v string) *DeleteClusterInput {
- s.FinalClusterSnapshotIdentifier = &v
- return s
- }
- // SetFinalClusterSnapshotRetentionPeriod sets the FinalClusterSnapshotRetentionPeriod field's value.
- func (s *DeleteClusterInput) SetFinalClusterSnapshotRetentionPeriod(v int64) *DeleteClusterInput {
- s.FinalClusterSnapshotRetentionPeriod = &v
- return s
- }
- // SetSkipFinalClusterSnapshot sets the SkipFinalClusterSnapshot field's value.
- func (s *DeleteClusterInput) SetSkipFinalClusterSnapshot(v bool) *DeleteClusterInput {
- s.SkipFinalClusterSnapshot = &v
- return s
- }
- type DeleteClusterOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteClusterOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClusterOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *DeleteClusterOutput) SetCluster(v *Cluster) *DeleteClusterOutput {
- s.Cluster = v
- return s
- }
- type DeleteClusterParameterGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of the parameter group to be deleted.
- //
- // Constraints:
- //
- // * Must be the name of an existing cluster parameter group.
- //
- // * Cannot delete a default cluster parameter group.
- //
- // ParameterGroupName is a required field
- ParameterGroupName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteClusterParameterGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClusterParameterGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteClusterParameterGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteClusterParameterGroupInput"}
- if s.ParameterGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ParameterGroupName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetParameterGroupName sets the ParameterGroupName field's value.
- func (s *DeleteClusterParameterGroupInput) SetParameterGroupName(v string) *DeleteClusterParameterGroupInput {
- s.ParameterGroupName = &v
- return s
- }
- type DeleteClusterParameterGroupOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteClusterParameterGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClusterParameterGroupOutput) GoString() string {
- return s.String()
- }
- type DeleteClusterSecurityGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of the cluster security group to be deleted.
- //
- // ClusterSecurityGroupName is a required field
- ClusterSecurityGroupName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteClusterSecurityGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClusterSecurityGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteClusterSecurityGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteClusterSecurityGroupInput"}
- if s.ClusterSecurityGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterSecurityGroupName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value.
- func (s *DeleteClusterSecurityGroupInput) SetClusterSecurityGroupName(v string) *DeleteClusterSecurityGroupInput {
- s.ClusterSecurityGroupName = &v
- return s
- }
- type DeleteClusterSecurityGroupOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteClusterSecurityGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClusterSecurityGroupOutput) GoString() string {
- return s.String()
- }
- type DeleteClusterSnapshotInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier of the cluster the snapshot was created from. This
- // parameter is required if your IAM user has a policy containing a snapshot
- // resource element that specifies anything other than * for the cluster name.
- //
- // Constraints: Must be the name of valid cluster.
- SnapshotClusterIdentifier *string `type:"string"`
- // The unique identifier of the manual snapshot to be deleted.
- //
- // Constraints: Must be the name of an existing snapshot that is in the available,
- // failed, or cancelled state.
- //
- // SnapshotIdentifier is a required field
- SnapshotIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteClusterSnapshotInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClusterSnapshotInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteClusterSnapshotInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteClusterSnapshotInput"}
- if s.SnapshotIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value.
- func (s *DeleteClusterSnapshotInput) SetSnapshotClusterIdentifier(v string) *DeleteClusterSnapshotInput {
- s.SnapshotClusterIdentifier = &v
- return s
- }
- // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
- func (s *DeleteClusterSnapshotInput) SetSnapshotIdentifier(v string) *DeleteClusterSnapshotInput {
- s.SnapshotIdentifier = &v
- return s
- }
- type DeleteClusterSnapshotMessage struct {
- _ struct{} `type:"structure"`
- // The unique identifier of the cluster the snapshot was created from. This
- // parameter is required if your IAM user has a policy containing a snapshot
- // resource element that specifies anything other than * for the cluster name.
- //
- // Constraints: Must be the name of valid cluster.
- SnapshotClusterIdentifier *string `type:"string"`
- // The unique identifier of the manual snapshot to be deleted.
- //
- // Constraints: Must be the name of an existing snapshot that is in the available,
- // failed, or cancelled state.
- //
- // SnapshotIdentifier is a required field
- SnapshotIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteClusterSnapshotMessage) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClusterSnapshotMessage) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteClusterSnapshotMessage) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteClusterSnapshotMessage"}
- if s.SnapshotIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value.
- func (s *DeleteClusterSnapshotMessage) SetSnapshotClusterIdentifier(v string) *DeleteClusterSnapshotMessage {
- s.SnapshotClusterIdentifier = &v
- return s
- }
- // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
- func (s *DeleteClusterSnapshotMessage) SetSnapshotIdentifier(v string) *DeleteClusterSnapshotMessage {
- s.SnapshotIdentifier = &v
- return s
- }
- type DeleteClusterSnapshotOutput struct {
- _ struct{} `type:"structure"`
- // Describes a snapshot.
- Snapshot *Snapshot `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteClusterSnapshotOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClusterSnapshotOutput) GoString() string {
- return s.String()
- }
- // SetSnapshot sets the Snapshot field's value.
- func (s *DeleteClusterSnapshotOutput) SetSnapshot(v *Snapshot) *DeleteClusterSnapshotOutput {
- s.Snapshot = v
- return s
- }
- type DeleteClusterSubnetGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of the cluster subnet group name to be deleted.
- //
- // ClusterSubnetGroupName is a required field
- ClusterSubnetGroupName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteClusterSubnetGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClusterSubnetGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteClusterSubnetGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteClusterSubnetGroupInput"}
- if s.ClusterSubnetGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterSubnetGroupName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value.
- func (s *DeleteClusterSubnetGroupInput) SetClusterSubnetGroupName(v string) *DeleteClusterSubnetGroupInput {
- s.ClusterSubnetGroupName = &v
- return s
- }
- type DeleteClusterSubnetGroupOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteClusterSubnetGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteClusterSubnetGroupOutput) GoString() string {
- return s.String()
- }
- type DeleteEventSubscriptionInput struct {
- _ struct{} `type:"structure"`
- // The name of the Amazon Redshift event notification subscription to be deleted.
- //
- // SubscriptionName is a required field
- SubscriptionName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteEventSubscriptionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteEventSubscriptionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteEventSubscriptionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteEventSubscriptionInput"}
- if s.SubscriptionName == nil {
- invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetSubscriptionName sets the SubscriptionName field's value.
- func (s *DeleteEventSubscriptionInput) SetSubscriptionName(v string) *DeleteEventSubscriptionInput {
- s.SubscriptionName = &v
- return s
- }
- type DeleteEventSubscriptionOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteEventSubscriptionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteEventSubscriptionOutput) GoString() string {
- return s.String()
- }
- type DeleteHsmClientCertificateInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the HSM client certificate to be deleted.
- //
- // HsmClientCertificateIdentifier is a required field
- HsmClientCertificateIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteHsmClientCertificateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteHsmClientCertificateInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteHsmClientCertificateInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteHsmClientCertificateInput"}
- if s.HsmClientCertificateIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("HsmClientCertificateIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value.
- func (s *DeleteHsmClientCertificateInput) SetHsmClientCertificateIdentifier(v string) *DeleteHsmClientCertificateInput {
- s.HsmClientCertificateIdentifier = &v
- return s
- }
- type DeleteHsmClientCertificateOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteHsmClientCertificateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteHsmClientCertificateOutput) GoString() string {
- return s.String()
- }
- type DeleteHsmConfigurationInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the Amazon Redshift HSM configuration to be deleted.
- //
- // HsmConfigurationIdentifier is a required field
- HsmConfigurationIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteHsmConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteHsmConfigurationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteHsmConfigurationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteHsmConfigurationInput"}
- if s.HsmConfigurationIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("HsmConfigurationIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value.
- func (s *DeleteHsmConfigurationInput) SetHsmConfigurationIdentifier(v string) *DeleteHsmConfigurationInput {
- s.HsmConfigurationIdentifier = &v
- return s
- }
- type DeleteHsmConfigurationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteHsmConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteHsmConfigurationOutput) GoString() string {
- return s.String()
- }
- // The result of the DeleteSnapshotCopyGrant action.
- type DeleteSnapshotCopyGrantInput struct {
- _ struct{} `type:"structure"`
- // The name of the snapshot copy grant to delete.
- //
- // SnapshotCopyGrantName is a required field
- SnapshotCopyGrantName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteSnapshotCopyGrantInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteSnapshotCopyGrantInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteSnapshotCopyGrantInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotCopyGrantInput"}
- if s.SnapshotCopyGrantName == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotCopyGrantName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value.
- func (s *DeleteSnapshotCopyGrantInput) SetSnapshotCopyGrantName(v string) *DeleteSnapshotCopyGrantInput {
- s.SnapshotCopyGrantName = &v
- return s
- }
- type DeleteSnapshotCopyGrantOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteSnapshotCopyGrantOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteSnapshotCopyGrantOutput) GoString() string {
- return s.String()
- }
- type DeleteSnapshotScheduleInput struct {
- _ struct{} `type:"structure"`
- // A unique identifier of the snapshot schedule to delete.
- //
- // ScheduleIdentifier is a required field
- ScheduleIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteSnapshotScheduleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteSnapshotScheduleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteSnapshotScheduleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotScheduleInput"}
- if s.ScheduleIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ScheduleIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetScheduleIdentifier sets the ScheduleIdentifier field's value.
- func (s *DeleteSnapshotScheduleInput) SetScheduleIdentifier(v string) *DeleteSnapshotScheduleInput {
- s.ScheduleIdentifier = &v
- return s
- }
- type DeleteSnapshotScheduleOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteSnapshotScheduleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteSnapshotScheduleOutput) GoString() string {
- return s.String()
- }
- // Contains the output from the DeleteTags action.
- type DeleteTagsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) from which you want to remove the tag or tags.
- // For example, arn:aws:redshift:us-east-1:123456789:cluster:t1.
- //
- // ResourceName is a required field
- ResourceName *string `type:"string" required:"true"`
- // The tag key that you want to delete.
- //
- // TagKeys is a required field
- TagKeys []*string `locationNameList:"TagKey" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DeleteTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTagsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteTagsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
- if s.ResourceName == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceName"))
- }
- if s.TagKeys == nil {
- invalidParams.Add(request.NewErrParamRequired("TagKeys"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetResourceName sets the ResourceName field's value.
- func (s *DeleteTagsInput) SetResourceName(v string) *DeleteTagsInput {
- s.ResourceName = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput {
- s.TagKeys = v
- return s
- }
- type DeleteTagsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTagsOutput) GoString() string {
- return s.String()
- }
- type DescribeAccountAttributesInput struct {
- _ struct{} `type:"structure"`
- // A list of attribute names.
- AttributeNames []*string `locationNameList:"AttributeName" type:"list"`
- }
- // String returns the string representation
- func (s DescribeAccountAttributesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAccountAttributesInput) GoString() string {
- return s.String()
- }
- // SetAttributeNames sets the AttributeNames field's value.
- func (s *DescribeAccountAttributesInput) SetAttributeNames(v []*string) *DescribeAccountAttributesInput {
- s.AttributeNames = v
- return s
- }
- type DescribeAccountAttributesOutput struct {
- _ struct{} `type:"structure"`
- // A list of attributes assigned to an account.
- AccountAttributes []*AccountAttribute `locationNameList:"AccountAttribute" type:"list"`
- }
- // String returns the string representation
- func (s DescribeAccountAttributesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAccountAttributesOutput) GoString() string {
- return s.String()
- }
- // SetAccountAttributes sets the AccountAttributes field's value.
- func (s *DescribeAccountAttributesOutput) SetAccountAttributes(v []*AccountAttribute) *DescribeAccountAttributesOutput {
- s.AccountAttributes = v
- return s
- }
- type DescribeClusterDbRevisionsInput struct {
- _ struct{} `type:"structure"`
- // A unique identifier for a cluster whose ClusterDbRevisions you are requesting.
- // This parameter is case sensitive. All clusters defined for an account are
- // returned by default.
- ClusterIdentifier *string `type:"string"`
- // An optional parameter that specifies the starting point for returning a set
- // of response records. When the results of a DescribeClusterDbRevisions request
- // exceed the value specified in MaxRecords, Amazon Redshift returns a value
- // in the marker field of the response. You can retrieve the next set of response
- // records by providing the returned marker value in the marker parameter and
- // retrying the request.
- //
- // Constraints: You can specify either the ClusterIdentifier parameter, or the
- // marker parameter, but not both.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in the marker field of the response. You can retrieve the next
- // set of response records by providing the returned marker value in the marker
- // parameter and retrying the request.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s DescribeClusterDbRevisionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterDbRevisionsInput) GoString() string {
- return s.String()
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *DescribeClusterDbRevisionsInput) SetClusterIdentifier(v string) *DescribeClusterDbRevisionsInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterDbRevisionsInput) SetMarker(v string) *DescribeClusterDbRevisionsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeClusterDbRevisionsInput) SetMaxRecords(v int64) *DescribeClusterDbRevisionsInput {
- s.MaxRecords = &v
- return s
- }
- type DescribeClusterDbRevisionsOutput struct {
- _ struct{} `type:"structure"`
- // A list of revisions.
- ClusterDbRevisions []*ClusterDbRevision `locationNameList:"ClusterDbRevision" type:"list"`
- // A string representing the starting point for the next set of revisions. If
- // a value is returned in a response, you can retrieve the next set of revisions
- // by providing the value in the marker parameter and retrying the command.
- // If the marker field is empty, all revisions have already been returned.
- Marker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeClusterDbRevisionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterDbRevisionsOutput) GoString() string {
- return s.String()
- }
- // SetClusterDbRevisions sets the ClusterDbRevisions field's value.
- func (s *DescribeClusterDbRevisionsOutput) SetClusterDbRevisions(v []*ClusterDbRevision) *DescribeClusterDbRevisionsOutput {
- s.ClusterDbRevisions = v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterDbRevisionsOutput) SetMarker(v string) *DescribeClusterDbRevisionsOutput {
- s.Marker = &v
- return s
- }
- type DescribeClusterParameterGroupsInput struct {
- _ struct{} `type:"structure"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeClusterParameterGroups request
- // exceed the value specified in MaxRecords, AWS returns a value in the Marker
- // field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // The name of a specific parameter group for which to return details. By default,
- // details about all parameter groups and the default parameter group are returned.
- ParameterGroupName *string `type:"string"`
- // A tag key or keys for which you want to return all matching cluster parameter
- // groups that are associated with the specified key or keys. For example, suppose
- // that you have parameter groups that are tagged with keys called owner and
- // environment. If you specify both of these tag keys in the request, Amazon
- // Redshift returns a response with the parameter groups that have either or
- // both of these tag keys associated with them.
- TagKeys []*string `locationNameList:"TagKey" type:"list"`
- // A tag value or values for which you want to return all matching cluster parameter
- // groups that are associated with the specified tag value or values. For example,
- // suppose that you have parameter groups that are tagged with values called
- // admin and test. If you specify both of these tag values in the request, Amazon
- // Redshift returns a response with the parameter groups that have either or
- // both of these tag values associated with them.
- TagValues []*string `locationNameList:"TagValue" type:"list"`
- }
- // String returns the string representation
- func (s DescribeClusterParameterGroupsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterParameterGroupsInput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterParameterGroupsInput) SetMarker(v string) *DescribeClusterParameterGroupsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeClusterParameterGroupsInput) SetMaxRecords(v int64) *DescribeClusterParameterGroupsInput {
- s.MaxRecords = &v
- return s
- }
- // SetParameterGroupName sets the ParameterGroupName field's value.
- func (s *DescribeClusterParameterGroupsInput) SetParameterGroupName(v string) *DescribeClusterParameterGroupsInput {
- s.ParameterGroupName = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DescribeClusterParameterGroupsInput) SetTagKeys(v []*string) *DescribeClusterParameterGroupsInput {
- s.TagKeys = v
- return s
- }
- // SetTagValues sets the TagValues field's value.
- func (s *DescribeClusterParameterGroupsInput) SetTagValues(v []*string) *DescribeClusterParameterGroupsInput {
- s.TagValues = v
- return s
- }
- // Contains the output from the DescribeClusterParameterGroups action.
- type DescribeClusterParameterGroupsOutput struct {
- _ struct{} `type:"structure"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- // A list of ClusterParameterGroup instances. Each instance describes one cluster
- // parameter group.
- ParameterGroups []*ClusterParameterGroup `locationNameList:"ClusterParameterGroup" type:"list"`
- }
- // String returns the string representation
- func (s DescribeClusterParameterGroupsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterParameterGroupsOutput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterParameterGroupsOutput) SetMarker(v string) *DescribeClusterParameterGroupsOutput {
- s.Marker = &v
- return s
- }
- // SetParameterGroups sets the ParameterGroups field's value.
- func (s *DescribeClusterParameterGroupsOutput) SetParameterGroups(v []*ClusterParameterGroup) *DescribeClusterParameterGroupsOutput {
- s.ParameterGroups = v
- return s
- }
- type DescribeClusterParametersInput struct {
- _ struct{} `type:"structure"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeClusterParameters request
- // exceed the value specified in MaxRecords, AWS returns a value in the Marker
- // field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // The name of a cluster parameter group for which to return details.
- //
- // ParameterGroupName is a required field
- ParameterGroupName *string `type:"string" required:"true"`
- // The parameter types to return. Specify user to show parameters that are different
- // form the default. Similarly, specify engine-default to show parameters that
- // are the same as the default parameter group.
- //
- // Default: All parameter types returned.
- //
- // Valid Values: user | engine-default
- Source *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeClusterParametersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterParametersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeClusterParametersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeClusterParametersInput"}
- if s.ParameterGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ParameterGroupName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterParametersInput) SetMarker(v string) *DescribeClusterParametersInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeClusterParametersInput) SetMaxRecords(v int64) *DescribeClusterParametersInput {
- s.MaxRecords = &v
- return s
- }
- // SetParameterGroupName sets the ParameterGroupName field's value.
- func (s *DescribeClusterParametersInput) SetParameterGroupName(v string) *DescribeClusterParametersInput {
- s.ParameterGroupName = &v
- return s
- }
- // SetSource sets the Source field's value.
- func (s *DescribeClusterParametersInput) SetSource(v string) *DescribeClusterParametersInput {
- s.Source = &v
- return s
- }
- // Contains the output from the DescribeClusterParameters action.
- type DescribeClusterParametersOutput struct {
- _ struct{} `type:"structure"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- // A list of Parameter instances. Each instance lists the parameters of one
- // cluster parameter group.
- Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
- }
- // String returns the string representation
- func (s DescribeClusterParametersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterParametersOutput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterParametersOutput) SetMarker(v string) *DescribeClusterParametersOutput {
- s.Marker = &v
- return s
- }
- // SetParameters sets the Parameters field's value.
- func (s *DescribeClusterParametersOutput) SetParameters(v []*Parameter) *DescribeClusterParametersOutput {
- s.Parameters = v
- return s
- }
- type DescribeClusterSecurityGroupsInput struct {
- _ struct{} `type:"structure"`
- // The name of a cluster security group for which you are requesting details.
- // You can specify either the Marker parameter or a ClusterSecurityGroupName
- // parameter, but not both.
- //
- // Example: securitygroup1
- ClusterSecurityGroupName *string `type:"string"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeClusterSecurityGroups request
- // exceed the value specified in MaxRecords, AWS returns a value in the Marker
- // field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- //
- // Constraints: You can specify either the ClusterSecurityGroupName parameter
- // or the Marker parameter, but not both.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // A tag key or keys for which you want to return all matching cluster security
- // groups that are associated with the specified key or keys. For example, suppose
- // that you have security groups that are tagged with keys called owner and
- // environment. If you specify both of these tag keys in the request, Amazon
- // Redshift returns a response with the security groups that have either or
- // both of these tag keys associated with them.
- TagKeys []*string `locationNameList:"TagKey" type:"list"`
- // A tag value or values for which you want to return all matching cluster security
- // groups that are associated with the specified tag value or values. For example,
- // suppose that you have security groups that are tagged with values called
- // admin and test. If you specify both of these tag values in the request, Amazon
- // Redshift returns a response with the security groups that have either or
- // both of these tag values associated with them.
- TagValues []*string `locationNameList:"TagValue" type:"list"`
- }
- // String returns the string representation
- func (s DescribeClusterSecurityGroupsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterSecurityGroupsInput) GoString() string {
- return s.String()
- }
- // SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value.
- func (s *DescribeClusterSecurityGroupsInput) SetClusterSecurityGroupName(v string) *DescribeClusterSecurityGroupsInput {
- s.ClusterSecurityGroupName = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterSecurityGroupsInput) SetMarker(v string) *DescribeClusterSecurityGroupsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeClusterSecurityGroupsInput) SetMaxRecords(v int64) *DescribeClusterSecurityGroupsInput {
- s.MaxRecords = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DescribeClusterSecurityGroupsInput) SetTagKeys(v []*string) *DescribeClusterSecurityGroupsInput {
- s.TagKeys = v
- return s
- }
- // SetTagValues sets the TagValues field's value.
- func (s *DescribeClusterSecurityGroupsInput) SetTagValues(v []*string) *DescribeClusterSecurityGroupsInput {
- s.TagValues = v
- return s
- }
- type DescribeClusterSecurityGroupsOutput struct {
- _ struct{} `type:"structure"`
- // A list of ClusterSecurityGroup instances.
- ClusterSecurityGroups []*ClusterSecurityGroup `locationNameList:"ClusterSecurityGroup" type:"list"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeClusterSecurityGroupsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterSecurityGroupsOutput) GoString() string {
- return s.String()
- }
- // SetClusterSecurityGroups sets the ClusterSecurityGroups field's value.
- func (s *DescribeClusterSecurityGroupsOutput) SetClusterSecurityGroups(v []*ClusterSecurityGroup) *DescribeClusterSecurityGroupsOutput {
- s.ClusterSecurityGroups = v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterSecurityGroupsOutput) SetMarker(v string) *DescribeClusterSecurityGroupsOutput {
- s.Marker = &v
- return s
- }
- type DescribeClusterSnapshotsInput struct {
- _ struct{} `type:"structure"`
- // A value that indicates whether to return snapshots only for an existing cluster.
- // Table-level restore can be performed only using a snapshot of an existing
- // cluster, that is, a cluster that has not been deleted. If ClusterExists is
- // set to true, ClusterIdentifier is required.
- ClusterExists *bool `type:"boolean"`
- // The identifier of the cluster for which information about snapshots is requested.
- ClusterIdentifier *string `type:"string"`
- // A time value that requests only snapshots created at or before the specified
- // time. The time value is specified in ISO 8601 format. For more information
- // about ISO 8601, go to the ISO8601 Wikipedia page. (http://en.wikipedia.org/wiki/ISO_8601)
- //
- // Example: 2012-07-16T18:00:00Z
- EndTime *time.Time `type:"timestamp"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeClusterSnapshots request
- // exceed the value specified in MaxRecords, AWS returns a value in the Marker
- // field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // The AWS customer account used to create or copy the snapshot. Use this field
- // to filter the results to snapshots owned by a particular account. To describe
- // snapshots you own, either specify your AWS customer account, or do not specify
- // the parameter.
- OwnerAccount *string `type:"string"`
- // The snapshot identifier of the snapshot about which to return information.
- SnapshotIdentifier *string `type:"string"`
- // The type of snapshots for which you are requesting information. By default,
- // snapshots of all types are returned.
- //
- // Valid Values: automated | manual
- SnapshotType *string `type:"string"`
- SortingEntities []*SnapshotSortingEntity `locationNameList:"SnapshotSortingEntity" type:"list"`
- // A value that requests only snapshots created at or after the specified time.
- // The time value is specified in ISO 8601 format. For more information about
- // ISO 8601, go to the ISO8601 Wikipedia page. (http://en.wikipedia.org/wiki/ISO_8601)
- //
- // Example: 2012-07-16T18:00:00Z
- StartTime *time.Time `type:"timestamp"`
- // A tag key or keys for which you want to return all matching cluster snapshots
- // that are associated with the specified key or keys. For example, suppose
- // that you have snapshots that are tagged with keys called owner and environment.
- // If you specify both of these tag keys in the request, Amazon Redshift returns
- // a response with the snapshots that have either or both of these tag keys
- // associated with them.
- TagKeys []*string `locationNameList:"TagKey" type:"list"`
- // A tag value or values for which you want to return all matching cluster snapshots
- // that are associated with the specified tag value or values. For example,
- // suppose that you have snapshots that are tagged with values called admin
- // and test. If you specify both of these tag values in the request, Amazon
- // Redshift returns a response with the snapshots that have either or both of
- // these tag values associated with them.
- TagValues []*string `locationNameList:"TagValue" type:"list"`
- }
- // String returns the string representation
- func (s DescribeClusterSnapshotsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterSnapshotsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeClusterSnapshotsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeClusterSnapshotsInput"}
- if s.SortingEntities != nil {
- for i, v := range s.SortingEntities {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SortingEntities", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterExists sets the ClusterExists field's value.
- func (s *DescribeClusterSnapshotsInput) SetClusterExists(v bool) *DescribeClusterSnapshotsInput {
- s.ClusterExists = &v
- return s
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *DescribeClusterSnapshotsInput) SetClusterIdentifier(v string) *DescribeClusterSnapshotsInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetEndTime sets the EndTime field's value.
- func (s *DescribeClusterSnapshotsInput) SetEndTime(v time.Time) *DescribeClusterSnapshotsInput {
- s.EndTime = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterSnapshotsInput) SetMarker(v string) *DescribeClusterSnapshotsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeClusterSnapshotsInput) SetMaxRecords(v int64) *DescribeClusterSnapshotsInput {
- s.MaxRecords = &v
- return s
- }
- // SetOwnerAccount sets the OwnerAccount field's value.
- func (s *DescribeClusterSnapshotsInput) SetOwnerAccount(v string) *DescribeClusterSnapshotsInput {
- s.OwnerAccount = &v
- return s
- }
- // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
- func (s *DescribeClusterSnapshotsInput) SetSnapshotIdentifier(v string) *DescribeClusterSnapshotsInput {
- s.SnapshotIdentifier = &v
- return s
- }
- // SetSnapshotType sets the SnapshotType field's value.
- func (s *DescribeClusterSnapshotsInput) SetSnapshotType(v string) *DescribeClusterSnapshotsInput {
- s.SnapshotType = &v
- return s
- }
- // SetSortingEntities sets the SortingEntities field's value.
- func (s *DescribeClusterSnapshotsInput) SetSortingEntities(v []*SnapshotSortingEntity) *DescribeClusterSnapshotsInput {
- s.SortingEntities = v
- return s
- }
- // SetStartTime sets the StartTime field's value.
- func (s *DescribeClusterSnapshotsInput) SetStartTime(v time.Time) *DescribeClusterSnapshotsInput {
- s.StartTime = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DescribeClusterSnapshotsInput) SetTagKeys(v []*string) *DescribeClusterSnapshotsInput {
- s.TagKeys = v
- return s
- }
- // SetTagValues sets the TagValues field's value.
- func (s *DescribeClusterSnapshotsInput) SetTagValues(v []*string) *DescribeClusterSnapshotsInput {
- s.TagValues = v
- return s
- }
- // Contains the output from the DescribeClusterSnapshots action.
- type DescribeClusterSnapshotsOutput struct {
- _ struct{} `type:"structure"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- // A list of Snapshot instances.
- Snapshots []*Snapshot `locationNameList:"Snapshot" type:"list"`
- }
- // String returns the string representation
- func (s DescribeClusterSnapshotsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterSnapshotsOutput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterSnapshotsOutput) SetMarker(v string) *DescribeClusterSnapshotsOutput {
- s.Marker = &v
- return s
- }
- // SetSnapshots sets the Snapshots field's value.
- func (s *DescribeClusterSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeClusterSnapshotsOutput {
- s.Snapshots = v
- return s
- }
- type DescribeClusterSubnetGroupsInput struct {
- _ struct{} `type:"structure"`
- // The name of the cluster subnet group for which information is requested.
- ClusterSubnetGroupName *string `type:"string"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeClusterSubnetGroups request
- // exceed the value specified in MaxRecords, AWS returns a value in the Marker
- // field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // A tag key or keys for which you want to return all matching cluster subnet
- // groups that are associated with the specified key or keys. For example, suppose
- // that you have subnet groups that are tagged with keys called owner and environment.
- // If you specify both of these tag keys in the request, Amazon Redshift returns
- // a response with the subnet groups that have either or both of these tag keys
- // associated with them.
- TagKeys []*string `locationNameList:"TagKey" type:"list"`
- // A tag value or values for which you want to return all matching cluster subnet
- // groups that are associated with the specified tag value or values. For example,
- // suppose that you have subnet groups that are tagged with values called admin
- // and test. If you specify both of these tag values in the request, Amazon
- // Redshift returns a response with the subnet groups that have either or both
- // of these tag values associated with them.
- TagValues []*string `locationNameList:"TagValue" type:"list"`
- }
- // String returns the string representation
- func (s DescribeClusterSubnetGroupsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterSubnetGroupsInput) GoString() string {
- return s.String()
- }
- // SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value.
- func (s *DescribeClusterSubnetGroupsInput) SetClusterSubnetGroupName(v string) *DescribeClusterSubnetGroupsInput {
- s.ClusterSubnetGroupName = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterSubnetGroupsInput) SetMarker(v string) *DescribeClusterSubnetGroupsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeClusterSubnetGroupsInput) SetMaxRecords(v int64) *DescribeClusterSubnetGroupsInput {
- s.MaxRecords = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DescribeClusterSubnetGroupsInput) SetTagKeys(v []*string) *DescribeClusterSubnetGroupsInput {
- s.TagKeys = v
- return s
- }
- // SetTagValues sets the TagValues field's value.
- func (s *DescribeClusterSubnetGroupsInput) SetTagValues(v []*string) *DescribeClusterSubnetGroupsInput {
- s.TagValues = v
- return s
- }
- // Contains the output from the DescribeClusterSubnetGroups action.
- type DescribeClusterSubnetGroupsOutput struct {
- _ struct{} `type:"structure"`
- // A list of ClusterSubnetGroup instances.
- ClusterSubnetGroups []*ClusterSubnetGroup `locationNameList:"ClusterSubnetGroup" type:"list"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeClusterSubnetGroupsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterSubnetGroupsOutput) GoString() string {
- return s.String()
- }
- // SetClusterSubnetGroups sets the ClusterSubnetGroups field's value.
- func (s *DescribeClusterSubnetGroupsOutput) SetClusterSubnetGroups(v []*ClusterSubnetGroup) *DescribeClusterSubnetGroupsOutput {
- s.ClusterSubnetGroups = v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterSubnetGroupsOutput) SetMarker(v string) *DescribeClusterSubnetGroupsOutput {
- s.Marker = &v
- return s
- }
- type DescribeClusterTracksInput struct {
- _ struct{} `type:"structure"`
- // The name of the maintenance track.
- MaintenanceTrackName *string `type:"string"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeClusterTracks request exceed
- // the value specified in MaxRecords, Amazon Redshift returns a value in the
- // Marker field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- Marker *string `type:"string"`
- // An integer value for the maximum number of maintenance tracks to return.
- MaxRecords *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s DescribeClusterTracksInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterTracksInput) GoString() string {
- return s.String()
- }
- // SetMaintenanceTrackName sets the MaintenanceTrackName field's value.
- func (s *DescribeClusterTracksInput) SetMaintenanceTrackName(v string) *DescribeClusterTracksInput {
- s.MaintenanceTrackName = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterTracksInput) SetMarker(v string) *DescribeClusterTracksInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeClusterTracksInput) SetMaxRecords(v int64) *DescribeClusterTracksInput {
- s.MaxRecords = &v
- return s
- }
- type DescribeClusterTracksOutput struct {
- _ struct{} `type:"structure"`
- // A list of maintenance tracks output by the DescribeClusterTracks operation.
- MaintenanceTracks []*MaintenanceTrack `locationNameList:"MaintenanceTrack" type:"list"`
- // The starting point to return a set of response tracklist records. You can
- // retrieve the next set of response records by providing the returned marker
- // value in the Marker parameter and retrying the request.
- Marker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeClusterTracksOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterTracksOutput) GoString() string {
- return s.String()
- }
- // SetMaintenanceTracks sets the MaintenanceTracks field's value.
- func (s *DescribeClusterTracksOutput) SetMaintenanceTracks(v []*MaintenanceTrack) *DescribeClusterTracksOutput {
- s.MaintenanceTracks = v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterTracksOutput) SetMarker(v string) *DescribeClusterTracksOutput {
- s.Marker = &v
- return s
- }
- type DescribeClusterVersionsInput struct {
- _ struct{} `type:"structure"`
- // The name of a specific cluster parameter group family to return details for.
- //
- // Constraints:
- //
- // * Must be 1 to 255 alphanumeric characters
- //
- // * First character must be a letter
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens
- ClusterParameterGroupFamily *string `type:"string"`
- // The specific cluster version to return.
- //
- // Example: 1.0
- ClusterVersion *string `type:"string"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeClusterVersions request exceed
- // the value specified in MaxRecords, AWS returns a value in the Marker field
- // of the response. You can retrieve the next set of response records by providing
- // the returned marker value in the Marker parameter and retrying the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s DescribeClusterVersionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterVersionsInput) GoString() string {
- return s.String()
- }
- // SetClusterParameterGroupFamily sets the ClusterParameterGroupFamily field's value.
- func (s *DescribeClusterVersionsInput) SetClusterParameterGroupFamily(v string) *DescribeClusterVersionsInput {
- s.ClusterParameterGroupFamily = &v
- return s
- }
- // SetClusterVersion sets the ClusterVersion field's value.
- func (s *DescribeClusterVersionsInput) SetClusterVersion(v string) *DescribeClusterVersionsInput {
- s.ClusterVersion = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterVersionsInput) SetMarker(v string) *DescribeClusterVersionsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeClusterVersionsInput) SetMaxRecords(v int64) *DescribeClusterVersionsInput {
- s.MaxRecords = &v
- return s
- }
- // Contains the output from the DescribeClusterVersions action.
- type DescribeClusterVersionsOutput struct {
- _ struct{} `type:"structure"`
- // A list of Version elements.
- ClusterVersions []*ClusterVersion `locationNameList:"ClusterVersion" type:"list"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeClusterVersionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClusterVersionsOutput) GoString() string {
- return s.String()
- }
- // SetClusterVersions sets the ClusterVersions field's value.
- func (s *DescribeClusterVersionsOutput) SetClusterVersions(v []*ClusterVersion) *DescribeClusterVersionsOutput {
- s.ClusterVersions = v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClusterVersionsOutput) SetMarker(v string) *DescribeClusterVersionsOutput {
- s.Marker = &v
- return s
- }
- type DescribeClustersInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier of a cluster whose properties you are requesting. This
- // parameter is case sensitive.
- //
- // The default is that all clusters defined for an account are returned.
- ClusterIdentifier *string `type:"string"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeClusters request exceed the
- // value specified in MaxRecords, AWS returns a value in the Marker field of
- // the response. You can retrieve the next set of response records by providing
- // the returned marker value in the Marker parameter and retrying the request.
- //
- // Constraints: You can specify either the ClusterIdentifier parameter or the
- // Marker parameter, but not both.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // A tag key or keys for which you want to return all matching clusters that
- // are associated with the specified key or keys. For example, suppose that
- // you have clusters that are tagged with keys called owner and environment.
- // If you specify both of these tag keys in the request, Amazon Redshift returns
- // a response with the clusters that have either or both of these tag keys associated
- // with them.
- TagKeys []*string `locationNameList:"TagKey" type:"list"`
- // A tag value or values for which you want to return all matching clusters
- // that are associated with the specified tag value or values. For example,
- // suppose that you have clusters that are tagged with values called admin and
- // test. If you specify both of these tag values in the request, Amazon Redshift
- // returns a response with the clusters that have either or both of these tag
- // values associated with them.
- TagValues []*string `locationNameList:"TagValue" type:"list"`
- }
- // String returns the string representation
- func (s DescribeClustersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClustersInput) GoString() string {
- return s.String()
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *DescribeClustersInput) SetClusterIdentifier(v string) *DescribeClustersInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClustersInput) SetMarker(v string) *DescribeClustersInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeClustersInput) SetMaxRecords(v int64) *DescribeClustersInput {
- s.MaxRecords = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DescribeClustersInput) SetTagKeys(v []*string) *DescribeClustersInput {
- s.TagKeys = v
- return s
- }
- // SetTagValues sets the TagValues field's value.
- func (s *DescribeClustersInput) SetTagValues(v []*string) *DescribeClustersInput {
- s.TagValues = v
- return s
- }
- // Contains the output from the DescribeClusters action.
- type DescribeClustersOutput struct {
- _ struct{} `type:"structure"`
- // A list of Cluster objects, where each object describes one cluster.
- Clusters []*Cluster `locationNameList:"Cluster" type:"list"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeClustersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeClustersOutput) GoString() string {
- return s.String()
- }
- // SetClusters sets the Clusters field's value.
- func (s *DescribeClustersOutput) SetClusters(v []*Cluster) *DescribeClustersOutput {
- s.Clusters = v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeClustersOutput) SetMarker(v string) *DescribeClustersOutput {
- s.Marker = &v
- return s
- }
- type DescribeDefaultClusterParametersInput struct {
- _ struct{} `type:"structure"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeDefaultClusterParameters
- // request exceed the value specified in MaxRecords, AWS returns a value in
- // the Marker field of the response. You can retrieve the next set of response
- // records by providing the returned marker value in the Marker parameter and
- // retrying the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // The name of the cluster parameter group family.
- //
- // ParameterGroupFamily is a required field
- ParameterGroupFamily *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeDefaultClusterParametersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDefaultClusterParametersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeDefaultClusterParametersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeDefaultClusterParametersInput"}
- if s.ParameterGroupFamily == nil {
- invalidParams.Add(request.NewErrParamRequired("ParameterGroupFamily"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeDefaultClusterParametersInput) SetMarker(v string) *DescribeDefaultClusterParametersInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeDefaultClusterParametersInput) SetMaxRecords(v int64) *DescribeDefaultClusterParametersInput {
- s.MaxRecords = &v
- return s
- }
- // SetParameterGroupFamily sets the ParameterGroupFamily field's value.
- func (s *DescribeDefaultClusterParametersInput) SetParameterGroupFamily(v string) *DescribeDefaultClusterParametersInput {
- s.ParameterGroupFamily = &v
- return s
- }
- type DescribeDefaultClusterParametersOutput struct {
- _ struct{} `type:"structure"`
- // Describes the default cluster parameters for a parameter group family.
- DefaultClusterParameters *DefaultClusterParameters `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeDefaultClusterParametersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDefaultClusterParametersOutput) GoString() string {
- return s.String()
- }
- // SetDefaultClusterParameters sets the DefaultClusterParameters field's value.
- func (s *DescribeDefaultClusterParametersOutput) SetDefaultClusterParameters(v *DefaultClusterParameters) *DescribeDefaultClusterParametersOutput {
- s.DefaultClusterParameters = v
- return s
- }
- type DescribeEventCategoriesInput struct {
- _ struct{} `type:"structure"`
- // The source type, such as cluster or parameter group, to which the described
- // event categories apply.
- //
- // Valid values: cluster, cluster-snapshot, cluster-parameter-group, and cluster-security-group.
- SourceType *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeEventCategoriesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEventCategoriesInput) GoString() string {
- return s.String()
- }
- // SetSourceType sets the SourceType field's value.
- func (s *DescribeEventCategoriesInput) SetSourceType(v string) *DescribeEventCategoriesInput {
- s.SourceType = &v
- return s
- }
- type DescribeEventCategoriesOutput struct {
- _ struct{} `type:"structure"`
- // A list of event categories descriptions.
- EventCategoriesMapList []*EventCategoriesMap `locationNameList:"EventCategoriesMap" type:"list"`
- }
- // String returns the string representation
- func (s DescribeEventCategoriesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEventCategoriesOutput) GoString() string {
- return s.String()
- }
- // SetEventCategoriesMapList sets the EventCategoriesMapList field's value.
- func (s *DescribeEventCategoriesOutput) SetEventCategoriesMapList(v []*EventCategoriesMap) *DescribeEventCategoriesOutput {
- s.EventCategoriesMapList = v
- return s
- }
- type DescribeEventSubscriptionsInput struct {
- _ struct{} `type:"structure"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeEventSubscriptions request
- // exceed the value specified in MaxRecords, AWS returns a value in the Marker
- // field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // The name of the Amazon Redshift event notification subscription to be described.
- SubscriptionName *string `type:"string"`
- // A tag key or keys for which you want to return all matching event notification
- // subscriptions that are associated with the specified key or keys. For example,
- // suppose that you have subscriptions that are tagged with keys called owner
- // and environment. If you specify both of these tag keys in the request, Amazon
- // Redshift returns a response with the subscriptions that have either or both
- // of these tag keys associated with them.
- TagKeys []*string `locationNameList:"TagKey" type:"list"`
- // A tag value or values for which you want to return all matching event notification
- // subscriptions that are associated with the specified tag value or values.
- // For example, suppose that you have subscriptions that are tagged with values
- // called admin and test. If you specify both of these tag values in the request,
- // Amazon Redshift returns a response with the subscriptions that have either
- // or both of these tag values associated with them.
- TagValues []*string `locationNameList:"TagValue" type:"list"`
- }
- // String returns the string representation
- func (s DescribeEventSubscriptionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEventSubscriptionsInput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeEventSubscriptionsInput) SetMarker(v string) *DescribeEventSubscriptionsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeEventSubscriptionsInput) SetMaxRecords(v int64) *DescribeEventSubscriptionsInput {
- s.MaxRecords = &v
- return s
- }
- // SetSubscriptionName sets the SubscriptionName field's value.
- func (s *DescribeEventSubscriptionsInput) SetSubscriptionName(v string) *DescribeEventSubscriptionsInput {
- s.SubscriptionName = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DescribeEventSubscriptionsInput) SetTagKeys(v []*string) *DescribeEventSubscriptionsInput {
- s.TagKeys = v
- return s
- }
- // SetTagValues sets the TagValues field's value.
- func (s *DescribeEventSubscriptionsInput) SetTagValues(v []*string) *DescribeEventSubscriptionsInput {
- s.TagValues = v
- return s
- }
- type DescribeEventSubscriptionsOutput struct {
- _ struct{} `type:"structure"`
- // A list of event subscriptions.
- EventSubscriptionsList []*EventSubscription `locationNameList:"EventSubscription" type:"list"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeEventSubscriptionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEventSubscriptionsOutput) GoString() string {
- return s.String()
- }
- // SetEventSubscriptionsList sets the EventSubscriptionsList field's value.
- func (s *DescribeEventSubscriptionsOutput) SetEventSubscriptionsList(v []*EventSubscription) *DescribeEventSubscriptionsOutput {
- s.EventSubscriptionsList = v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeEventSubscriptionsOutput) SetMarker(v string) *DescribeEventSubscriptionsOutput {
- s.Marker = &v
- return s
- }
- type DescribeEventsInput struct {
- _ struct{} `type:"structure"`
- // The number of minutes prior to the time of the request for which to retrieve
- // events. For example, if the request is sent at 18:00 and you specify a duration
- // of 60, then only events which have occurred after 17:00 will be returned.
- //
- // Default: 60
- Duration *int64 `type:"integer"`
- // The end of the time interval for which to retrieve events, specified in ISO
- // 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia
- // page. (http://en.wikipedia.org/wiki/ISO_8601)
- //
- // Example: 2009-07-08T18:00Z
- EndTime *time.Time `type:"timestamp"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeEvents request exceed the
- // value specified in MaxRecords, AWS returns a value in the Marker field of
- // the response. You can retrieve the next set of response records by providing
- // the returned marker value in the Marker parameter and retrying the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // The identifier of the event source for which events will be returned. If
- // this parameter is not specified, then all sources are included in the response.
- //
- // Constraints:
- //
- // If SourceIdentifier is supplied, SourceType must also be provided.
- //
- // * Specify a cluster identifier when SourceType is cluster.
- //
- // * Specify a cluster security group name when SourceType is cluster-security-group.
- //
- // * Specify a cluster parameter group name when SourceType is cluster-parameter-group.
- //
- // * Specify a cluster snapshot identifier when SourceType is cluster-snapshot.
- SourceIdentifier *string `type:"string"`
- // The event source to retrieve events for. If no value is specified, all events
- // are returned.
- //
- // Constraints:
- //
- // If SourceType is supplied, SourceIdentifier must also be provided.
- //
- // * Specify cluster when SourceIdentifier is a cluster identifier.
- //
- // * Specify cluster-security-group when SourceIdentifier is a cluster security
- // group name.
- //
- // * Specify cluster-parameter-group when SourceIdentifier is a cluster parameter
- // group name.
- //
- // * Specify cluster-snapshot when SourceIdentifier is a cluster snapshot
- // identifier.
- SourceType *string `type:"string" enum:"SourceType"`
- // The beginning of the time interval to retrieve events for, specified in ISO
- // 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia
- // page. (http://en.wikipedia.org/wiki/ISO_8601)
- //
- // Example: 2009-07-08T18:00Z
- StartTime *time.Time `type:"timestamp"`
- }
- // String returns the string representation
- func (s DescribeEventsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEventsInput) GoString() string {
- return s.String()
- }
- // SetDuration sets the Duration field's value.
- func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput {
- s.Duration = &v
- return s
- }
- // SetEndTime sets the EndTime field's value.
- func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput {
- s.EndTime = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput {
- s.MaxRecords = &v
- return s
- }
- // SetSourceIdentifier sets the SourceIdentifier field's value.
- func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput {
- s.SourceIdentifier = &v
- return s
- }
- // SetSourceType sets the SourceType field's value.
- func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput {
- s.SourceType = &v
- return s
- }
- // SetStartTime sets the StartTime field's value.
- func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput {
- s.StartTime = &v
- return s
- }
- type DescribeEventsOutput struct {
- _ struct{} `type:"structure"`
- // A list of Event instances.
- Events []*Event `locationNameList:"Event" type:"list"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeEventsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeEventsOutput) GoString() string {
- return s.String()
- }
- // SetEvents sets the Events field's value.
- func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput {
- s.Events = v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput {
- s.Marker = &v
- return s
- }
- type DescribeHsmClientCertificatesInput struct {
- _ struct{} `type:"structure"`
- // The identifier of a specific HSM client certificate for which you want information.
- // If no identifier is specified, information is returned for all HSM client
- // certificates owned by your AWS customer account.
- HsmClientCertificateIdentifier *string `type:"string"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeHsmClientCertificates request
- // exceed the value specified in MaxRecords, AWS returns a value in the Marker
- // field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // A tag key or keys for which you want to return all matching HSM client certificates
- // that are associated with the specified key or keys. For example, suppose
- // that you have HSM client certificates that are tagged with keys called owner
- // and environment. If you specify both of these tag keys in the request, Amazon
- // Redshift returns a response with the HSM client certificates that have either
- // or both of these tag keys associated with them.
- TagKeys []*string `locationNameList:"TagKey" type:"list"`
- // A tag value or values for which you want to return all matching HSM client
- // certificates that are associated with the specified tag value or values.
- // For example, suppose that you have HSM client certificates that are tagged
- // with values called admin and test. If you specify both of these tag values
- // in the request, Amazon Redshift returns a response with the HSM client certificates
- // that have either or both of these tag values associated with them.
- TagValues []*string `locationNameList:"TagValue" type:"list"`
- }
- // String returns the string representation
- func (s DescribeHsmClientCertificatesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeHsmClientCertificatesInput) GoString() string {
- return s.String()
- }
- // SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value.
- func (s *DescribeHsmClientCertificatesInput) SetHsmClientCertificateIdentifier(v string) *DescribeHsmClientCertificatesInput {
- s.HsmClientCertificateIdentifier = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeHsmClientCertificatesInput) SetMarker(v string) *DescribeHsmClientCertificatesInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeHsmClientCertificatesInput) SetMaxRecords(v int64) *DescribeHsmClientCertificatesInput {
- s.MaxRecords = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DescribeHsmClientCertificatesInput) SetTagKeys(v []*string) *DescribeHsmClientCertificatesInput {
- s.TagKeys = v
- return s
- }
- // SetTagValues sets the TagValues field's value.
- func (s *DescribeHsmClientCertificatesInput) SetTagValues(v []*string) *DescribeHsmClientCertificatesInput {
- s.TagValues = v
- return s
- }
- type DescribeHsmClientCertificatesOutput struct {
- _ struct{} `type:"structure"`
- // A list of the identifiers for one or more HSM client certificates used by
- // Amazon Redshift clusters to store and retrieve database encryption keys in
- // an HSM.
- HsmClientCertificates []*HsmClientCertificate `locationNameList:"HsmClientCertificate" type:"list"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeHsmClientCertificatesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeHsmClientCertificatesOutput) GoString() string {
- return s.String()
- }
- // SetHsmClientCertificates sets the HsmClientCertificates field's value.
- func (s *DescribeHsmClientCertificatesOutput) SetHsmClientCertificates(v []*HsmClientCertificate) *DescribeHsmClientCertificatesOutput {
- s.HsmClientCertificates = v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeHsmClientCertificatesOutput) SetMarker(v string) *DescribeHsmClientCertificatesOutput {
- s.Marker = &v
- return s
- }
- type DescribeHsmConfigurationsInput struct {
- _ struct{} `type:"structure"`
- // The identifier of a specific Amazon Redshift HSM configuration to be described.
- // If no identifier is specified, information is returned for all HSM configurations
- // owned by your AWS customer account.
- HsmConfigurationIdentifier *string `type:"string"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeHsmConfigurations request
- // exceed the value specified in MaxRecords, AWS returns a value in the Marker
- // field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // A tag key or keys for which you want to return all matching HSM configurations
- // that are associated with the specified key or keys. For example, suppose
- // that you have HSM configurations that are tagged with keys called owner and
- // environment. If you specify both of these tag keys in the request, Amazon
- // Redshift returns a response with the HSM configurations that have either
- // or both of these tag keys associated with them.
- TagKeys []*string `locationNameList:"TagKey" type:"list"`
- // A tag value or values for which you want to return all matching HSM configurations
- // that are associated with the specified tag value or values. For example,
- // suppose that you have HSM configurations that are tagged with values called
- // admin and test. If you specify both of these tag values in the request, Amazon
- // Redshift returns a response with the HSM configurations that have either
- // or both of these tag values associated with them.
- TagValues []*string `locationNameList:"TagValue" type:"list"`
- }
- // String returns the string representation
- func (s DescribeHsmConfigurationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeHsmConfigurationsInput) GoString() string {
- return s.String()
- }
- // SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value.
- func (s *DescribeHsmConfigurationsInput) SetHsmConfigurationIdentifier(v string) *DescribeHsmConfigurationsInput {
- s.HsmConfigurationIdentifier = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeHsmConfigurationsInput) SetMarker(v string) *DescribeHsmConfigurationsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeHsmConfigurationsInput) SetMaxRecords(v int64) *DescribeHsmConfigurationsInput {
- s.MaxRecords = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DescribeHsmConfigurationsInput) SetTagKeys(v []*string) *DescribeHsmConfigurationsInput {
- s.TagKeys = v
- return s
- }
- // SetTagValues sets the TagValues field's value.
- func (s *DescribeHsmConfigurationsInput) SetTagValues(v []*string) *DescribeHsmConfigurationsInput {
- s.TagValues = v
- return s
- }
- type DescribeHsmConfigurationsOutput struct {
- _ struct{} `type:"structure"`
- // A list of HsmConfiguration objects.
- HsmConfigurations []*HsmConfiguration `locationNameList:"HsmConfiguration" type:"list"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeHsmConfigurationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeHsmConfigurationsOutput) GoString() string {
- return s.String()
- }
- // SetHsmConfigurations sets the HsmConfigurations field's value.
- func (s *DescribeHsmConfigurationsOutput) SetHsmConfigurations(v []*HsmConfiguration) *DescribeHsmConfigurationsOutput {
- s.HsmConfigurations = v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeHsmConfigurationsOutput) SetMarker(v string) *DescribeHsmConfigurationsOutput {
- s.Marker = &v
- return s
- }
- type DescribeLoggingStatusInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the cluster from which to get the logging status.
- //
- // Example: examplecluster
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeLoggingStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeLoggingStatusInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeLoggingStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeLoggingStatusInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *DescribeLoggingStatusInput) SetClusterIdentifier(v string) *DescribeLoggingStatusInput {
- s.ClusterIdentifier = &v
- return s
- }
- type DescribeOrderableClusterOptionsInput struct {
- _ struct{} `type:"structure"`
- // The version filter value. Specify this parameter to show only the available
- // offerings matching the specified version.
- //
- // Default: All versions.
- //
- // Constraints: Must be one of the version returned from DescribeClusterVersions.
- ClusterVersion *string `type:"string"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeOrderableClusterOptions request
- // exceed the value specified in MaxRecords, AWS returns a value in the Marker
- // field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // The node type filter value. Specify this parameter to show only the available
- // offerings matching the specified node type.
- NodeType *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeOrderableClusterOptionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeOrderableClusterOptionsInput) GoString() string {
- return s.String()
- }
- // SetClusterVersion sets the ClusterVersion field's value.
- func (s *DescribeOrderableClusterOptionsInput) SetClusterVersion(v string) *DescribeOrderableClusterOptionsInput {
- s.ClusterVersion = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeOrderableClusterOptionsInput) SetMarker(v string) *DescribeOrderableClusterOptionsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeOrderableClusterOptionsInput) SetMaxRecords(v int64) *DescribeOrderableClusterOptionsInput {
- s.MaxRecords = &v
- return s
- }
- // SetNodeType sets the NodeType field's value.
- func (s *DescribeOrderableClusterOptionsInput) SetNodeType(v string) *DescribeOrderableClusterOptionsInput {
- s.NodeType = &v
- return s
- }
- // Contains the output from the DescribeOrderableClusterOptions action.
- type DescribeOrderableClusterOptionsOutput struct {
- _ struct{} `type:"structure"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- // An OrderableClusterOption structure containing information about orderable
- // options for the cluster.
- OrderableClusterOptions []*OrderableClusterOption `locationNameList:"OrderableClusterOption" type:"list"`
- }
- // String returns the string representation
- func (s DescribeOrderableClusterOptionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeOrderableClusterOptionsOutput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeOrderableClusterOptionsOutput) SetMarker(v string) *DescribeOrderableClusterOptionsOutput {
- s.Marker = &v
- return s
- }
- // SetOrderableClusterOptions sets the OrderableClusterOptions field's value.
- func (s *DescribeOrderableClusterOptionsOutput) SetOrderableClusterOptions(v []*OrderableClusterOption) *DescribeOrderableClusterOptionsOutput {
- s.OrderableClusterOptions = v
- return s
- }
- type DescribeReservedNodeOfferingsInput struct {
- _ struct{} `type:"structure"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeReservedNodeOfferings request
- // exceed the value specified in MaxRecords, AWS returns a value in the Marker
- // field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // The unique identifier for the offering.
- ReservedNodeOfferingId *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeReservedNodeOfferingsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeReservedNodeOfferingsInput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeReservedNodeOfferingsInput) SetMarker(v string) *DescribeReservedNodeOfferingsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeReservedNodeOfferingsInput) SetMaxRecords(v int64) *DescribeReservedNodeOfferingsInput {
- s.MaxRecords = &v
- return s
- }
- // SetReservedNodeOfferingId sets the ReservedNodeOfferingId field's value.
- func (s *DescribeReservedNodeOfferingsInput) SetReservedNodeOfferingId(v string) *DescribeReservedNodeOfferingsInput {
- s.ReservedNodeOfferingId = &v
- return s
- }
- type DescribeReservedNodeOfferingsOutput struct {
- _ struct{} `type:"structure"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- // A list of ReservedNodeOffering objects.
- ReservedNodeOfferings []*ReservedNodeOffering `locationNameList:"ReservedNodeOffering" type:"list"`
- }
- // String returns the string representation
- func (s DescribeReservedNodeOfferingsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeReservedNodeOfferingsOutput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeReservedNodeOfferingsOutput) SetMarker(v string) *DescribeReservedNodeOfferingsOutput {
- s.Marker = &v
- return s
- }
- // SetReservedNodeOfferings sets the ReservedNodeOfferings field's value.
- func (s *DescribeReservedNodeOfferingsOutput) SetReservedNodeOfferings(v []*ReservedNodeOffering) *DescribeReservedNodeOfferingsOutput {
- s.ReservedNodeOfferings = v
- return s
- }
- type DescribeReservedNodesInput struct {
- _ struct{} `type:"structure"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeReservedNodes request exceed
- // the value specified in MaxRecords, AWS returns a value in the Marker field
- // of the response. You can retrieve the next set of response records by providing
- // the returned marker value in the Marker parameter and retrying the request.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // Identifier for the node reservation.
- ReservedNodeId *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeReservedNodesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeReservedNodesInput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeReservedNodesInput) SetMarker(v string) *DescribeReservedNodesInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeReservedNodesInput) SetMaxRecords(v int64) *DescribeReservedNodesInput {
- s.MaxRecords = &v
- return s
- }
- // SetReservedNodeId sets the ReservedNodeId field's value.
- func (s *DescribeReservedNodesInput) SetReservedNodeId(v string) *DescribeReservedNodesInput {
- s.ReservedNodeId = &v
- return s
- }
- type DescribeReservedNodesOutput struct {
- _ struct{} `type:"structure"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- // The list of ReservedNode objects.
- ReservedNodes []*ReservedNode `locationNameList:"ReservedNode" type:"list"`
- }
- // String returns the string representation
- func (s DescribeReservedNodesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeReservedNodesOutput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeReservedNodesOutput) SetMarker(v string) *DescribeReservedNodesOutput {
- s.Marker = &v
- return s
- }
- // SetReservedNodes sets the ReservedNodes field's value.
- func (s *DescribeReservedNodesOutput) SetReservedNodes(v []*ReservedNode) *DescribeReservedNodesOutput {
- s.ReservedNodes = v
- return s
- }
- type DescribeResizeInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier of a cluster whose resize progress you are requesting.
- // This parameter is case-sensitive.
- //
- // By default, resize operations for all clusters defined for an AWS account
- // are returned.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeResizeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeResizeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeResizeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeResizeInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *DescribeResizeInput) SetClusterIdentifier(v string) *DescribeResizeInput {
- s.ClusterIdentifier = &v
- return s
- }
- // Describes the result of a cluster resize operation.
- type DescribeResizeOutput struct {
- _ struct{} `type:"structure"`
- // The average rate of the resize operation over the last few minutes, measured
- // in megabytes per second. After the resize operation completes, this value
- // shows the average rate of the entire resize operation.
- AvgResizeRateInMegaBytesPerSecond *float64 `type:"double"`
- // The amount of seconds that have elapsed since the resize operation began.
- // After the resize operation completes, this value shows the total actual time,
- // in seconds, for the resize operation.
- ElapsedTimeInSeconds *int64 `type:"long"`
- // The estimated time remaining, in seconds, until the resize operation is complete.
- // This value is calculated based on the average resize rate and the estimated
- // amount of data remaining to be processed. Once the resize operation is complete,
- // this value will be 0.
- EstimatedTimeToCompletionInSeconds *int64 `type:"long"`
- // The names of tables that have been completely imported .
- //
- // Valid Values: List of table names.
- ImportTablesCompleted []*string `type:"list"`
- // The names of tables that are being currently imported.
- //
- // Valid Values: List of table names.
- ImportTablesInProgress []*string `type:"list"`
- // The names of tables that have not been yet imported.
- //
- // Valid Values: List of table names
- ImportTablesNotStarted []*string `type:"list"`
- // An optional string to provide additional details about the resize action.
- Message *string `type:"string"`
- // While the resize operation is in progress, this value shows the current amount
- // of data, in megabytes, that has been processed so far. When the resize operation
- // is complete, this value shows the total amount of data, in megabytes, on
- // the cluster, which may be more or less than TotalResizeDataInMegaBytes (the
- // estimated total amount of data before resize).
- ProgressInMegaBytes *int64 `type:"long"`
- // An enum with possible values of ClassicResize and ElasticResize. These values
- // describe the type of resize operation being performed.
- ResizeType *string `type:"string"`
- // The status of the resize operation.
- //
- // Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED | CANCELLING
- Status *string `type:"string"`
- // The cluster type after the resize operation is complete.
- //
- // Valid Values: multi-node | single-node
- TargetClusterType *string `type:"string"`
- // The type of encryption for the cluster after the resize is complete.
- //
- // Possible values are KMS and None. In the China region possible values are:
- // Legacy and None.
- TargetEncryptionType *string `type:"string"`
- // The node type that the cluster will have after the resize operation is complete.
- TargetNodeType *string `type:"string"`
- // The number of nodes that the cluster will have after the resize operation
- // is complete.
- TargetNumberOfNodes *int64 `type:"integer"`
- // The estimated total amount of data, in megabytes, on the cluster before the
- // resize operation began.
- TotalResizeDataInMegaBytes *int64 `type:"long"`
- }
- // String returns the string representation
- func (s DescribeResizeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeResizeOutput) GoString() string {
- return s.String()
- }
- // SetAvgResizeRateInMegaBytesPerSecond sets the AvgResizeRateInMegaBytesPerSecond field's value.
- func (s *DescribeResizeOutput) SetAvgResizeRateInMegaBytesPerSecond(v float64) *DescribeResizeOutput {
- s.AvgResizeRateInMegaBytesPerSecond = &v
- return s
- }
- // SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value.
- func (s *DescribeResizeOutput) SetElapsedTimeInSeconds(v int64) *DescribeResizeOutput {
- s.ElapsedTimeInSeconds = &v
- return s
- }
- // SetEstimatedTimeToCompletionInSeconds sets the EstimatedTimeToCompletionInSeconds field's value.
- func (s *DescribeResizeOutput) SetEstimatedTimeToCompletionInSeconds(v int64) *DescribeResizeOutput {
- s.EstimatedTimeToCompletionInSeconds = &v
- return s
- }
- // SetImportTablesCompleted sets the ImportTablesCompleted field's value.
- func (s *DescribeResizeOutput) SetImportTablesCompleted(v []*string) *DescribeResizeOutput {
- s.ImportTablesCompleted = v
- return s
- }
- // SetImportTablesInProgress sets the ImportTablesInProgress field's value.
- func (s *DescribeResizeOutput) SetImportTablesInProgress(v []*string) *DescribeResizeOutput {
- s.ImportTablesInProgress = v
- return s
- }
- // SetImportTablesNotStarted sets the ImportTablesNotStarted field's value.
- func (s *DescribeResizeOutput) SetImportTablesNotStarted(v []*string) *DescribeResizeOutput {
- s.ImportTablesNotStarted = v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *DescribeResizeOutput) SetMessage(v string) *DescribeResizeOutput {
- s.Message = &v
- return s
- }
- // SetProgressInMegaBytes sets the ProgressInMegaBytes field's value.
- func (s *DescribeResizeOutput) SetProgressInMegaBytes(v int64) *DescribeResizeOutput {
- s.ProgressInMegaBytes = &v
- return s
- }
- // SetResizeType sets the ResizeType field's value.
- func (s *DescribeResizeOutput) SetResizeType(v string) *DescribeResizeOutput {
- s.ResizeType = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *DescribeResizeOutput) SetStatus(v string) *DescribeResizeOutput {
- s.Status = &v
- return s
- }
- // SetTargetClusterType sets the TargetClusterType field's value.
- func (s *DescribeResizeOutput) SetTargetClusterType(v string) *DescribeResizeOutput {
- s.TargetClusterType = &v
- return s
- }
- // SetTargetEncryptionType sets the TargetEncryptionType field's value.
- func (s *DescribeResizeOutput) SetTargetEncryptionType(v string) *DescribeResizeOutput {
- s.TargetEncryptionType = &v
- return s
- }
- // SetTargetNodeType sets the TargetNodeType field's value.
- func (s *DescribeResizeOutput) SetTargetNodeType(v string) *DescribeResizeOutput {
- s.TargetNodeType = &v
- return s
- }
- // SetTargetNumberOfNodes sets the TargetNumberOfNodes field's value.
- func (s *DescribeResizeOutput) SetTargetNumberOfNodes(v int64) *DescribeResizeOutput {
- s.TargetNumberOfNodes = &v
- return s
- }
- // SetTotalResizeDataInMegaBytes sets the TotalResizeDataInMegaBytes field's value.
- func (s *DescribeResizeOutput) SetTotalResizeDataInMegaBytes(v int64) *DescribeResizeOutput {
- s.TotalResizeDataInMegaBytes = &v
- return s
- }
- // The result of the DescribeSnapshotCopyGrants action.
- type DescribeSnapshotCopyGrantsInput struct {
- _ struct{} `type:"structure"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeSnapshotCopyGrant request
- // exceed the value specified in MaxRecords, AWS returns a value in the Marker
- // field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- //
- // Constraints: You can specify either the SnapshotCopyGrantName parameter or
- // the Marker parameter, but not both.
- Marker *string `type:"string"`
- // The maximum number of response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- //
- // Default: 100
- //
- // Constraints: minimum 20, maximum 100.
- MaxRecords *int64 `type:"integer"`
- // The name of the snapshot copy grant.
- SnapshotCopyGrantName *string `type:"string"`
- // A tag key or keys for which you want to return all matching resources that
- // are associated with the specified key or keys. For example, suppose that
- // you have resources tagged with keys called owner and environment. If you
- // specify both of these tag keys in the request, Amazon Redshift returns a
- // response with all resources that have either or both of these tag keys associated
- // with them.
- TagKeys []*string `locationNameList:"TagKey" type:"list"`
- // A tag value or values for which you want to return all matching resources
- // that are associated with the specified value or values. For example, suppose
- // that you have resources tagged with values called admin and test. If you
- // specify both of these tag values in the request, Amazon Redshift returns
- // a response with all resources that have either or both of these tag values
- // associated with them.
- TagValues []*string `locationNameList:"TagValue" type:"list"`
- }
- // String returns the string representation
- func (s DescribeSnapshotCopyGrantsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSnapshotCopyGrantsInput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeSnapshotCopyGrantsInput) SetMarker(v string) *DescribeSnapshotCopyGrantsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeSnapshotCopyGrantsInput) SetMaxRecords(v int64) *DescribeSnapshotCopyGrantsInput {
- s.MaxRecords = &v
- return s
- }
- // SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value.
- func (s *DescribeSnapshotCopyGrantsInput) SetSnapshotCopyGrantName(v string) *DescribeSnapshotCopyGrantsInput {
- s.SnapshotCopyGrantName = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DescribeSnapshotCopyGrantsInput) SetTagKeys(v []*string) *DescribeSnapshotCopyGrantsInput {
- s.TagKeys = v
- return s
- }
- // SetTagValues sets the TagValues field's value.
- func (s *DescribeSnapshotCopyGrantsInput) SetTagValues(v []*string) *DescribeSnapshotCopyGrantsInput {
- s.TagValues = v
- return s
- }
- type DescribeSnapshotCopyGrantsOutput struct {
- _ struct{} `type:"structure"`
- // An optional parameter that specifies the starting point to return a set of
- // response records. When the results of a DescribeSnapshotCopyGrant request
- // exceed the value specified in MaxRecords, AWS returns a value in the Marker
- // field of the response. You can retrieve the next set of response records
- // by providing the returned marker value in the Marker parameter and retrying
- // the request.
- //
- // Constraints: You can specify either the SnapshotCopyGrantName parameter or
- // the Marker parameter, but not both.
- Marker *string `type:"string"`
- // The list of SnapshotCopyGrant objects.
- SnapshotCopyGrants []*SnapshotCopyGrant `locationNameList:"SnapshotCopyGrant" type:"list"`
- }
- // String returns the string representation
- func (s DescribeSnapshotCopyGrantsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSnapshotCopyGrantsOutput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeSnapshotCopyGrantsOutput) SetMarker(v string) *DescribeSnapshotCopyGrantsOutput {
- s.Marker = &v
- return s
- }
- // SetSnapshotCopyGrants sets the SnapshotCopyGrants field's value.
- func (s *DescribeSnapshotCopyGrantsOutput) SetSnapshotCopyGrants(v []*SnapshotCopyGrant) *DescribeSnapshotCopyGrantsOutput {
- s.SnapshotCopyGrants = v
- return s
- }
- type DescribeSnapshotSchedulesInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier for the cluster whose snapshot schedules you want to
- // view.
- ClusterIdentifier *string `type:"string"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the marker
- // parameter and retrying the command. If the marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- // The maximum number or response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- MaxRecords *int64 `type:"integer"`
- // A unique identifier for a snapshot schedule.
- ScheduleIdentifier *string `type:"string"`
- // The key value for a snapshot schedule tag.
- TagKeys []*string `locationNameList:"TagKey" type:"list"`
- // The value corresponding to the key of the snapshot schedule tag.
- TagValues []*string `locationNameList:"TagValue" type:"list"`
- }
- // String returns the string representation
- func (s DescribeSnapshotSchedulesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSnapshotSchedulesInput) GoString() string {
- return s.String()
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *DescribeSnapshotSchedulesInput) SetClusterIdentifier(v string) *DescribeSnapshotSchedulesInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeSnapshotSchedulesInput) SetMarker(v string) *DescribeSnapshotSchedulesInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeSnapshotSchedulesInput) SetMaxRecords(v int64) *DescribeSnapshotSchedulesInput {
- s.MaxRecords = &v
- return s
- }
- // SetScheduleIdentifier sets the ScheduleIdentifier field's value.
- func (s *DescribeSnapshotSchedulesInput) SetScheduleIdentifier(v string) *DescribeSnapshotSchedulesInput {
- s.ScheduleIdentifier = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DescribeSnapshotSchedulesInput) SetTagKeys(v []*string) *DescribeSnapshotSchedulesInput {
- s.TagKeys = v
- return s
- }
- // SetTagValues sets the TagValues field's value.
- func (s *DescribeSnapshotSchedulesInput) SetTagValues(v []*string) *DescribeSnapshotSchedulesInput {
- s.TagValues = v
- return s
- }
- type DescribeSnapshotSchedulesOutput struct {
- _ struct{} `type:"structure"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the marker
- // parameter and retrying the command. If the marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- // A list of SnapshotSchedules.
- SnapshotSchedules []*SnapshotSchedule `locationNameList:"SnapshotSchedule" type:"list"`
- }
- // String returns the string representation
- func (s DescribeSnapshotSchedulesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSnapshotSchedulesOutput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeSnapshotSchedulesOutput) SetMarker(v string) *DescribeSnapshotSchedulesOutput {
- s.Marker = &v
- return s
- }
- // SetSnapshotSchedules sets the SnapshotSchedules field's value.
- func (s *DescribeSnapshotSchedulesOutput) SetSnapshotSchedules(v []*SnapshotSchedule) *DescribeSnapshotSchedulesOutput {
- s.SnapshotSchedules = v
- return s
- }
- type DescribeStorageInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeStorageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeStorageInput) GoString() string {
- return s.String()
- }
- type DescribeStorageOutput struct {
- _ struct{} `type:"structure"`
- // The total amount of storage currently used for snapshots.
- TotalBackupSizeInMegaBytes *float64 `type:"double"`
- // The total amount of storage currently provisioned.
- TotalProvisionedStorageInMegaBytes *float64 `type:"double"`
- }
- // String returns the string representation
- func (s DescribeStorageOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeStorageOutput) GoString() string {
- return s.String()
- }
- // SetTotalBackupSizeInMegaBytes sets the TotalBackupSizeInMegaBytes field's value.
- func (s *DescribeStorageOutput) SetTotalBackupSizeInMegaBytes(v float64) *DescribeStorageOutput {
- s.TotalBackupSizeInMegaBytes = &v
- return s
- }
- // SetTotalProvisionedStorageInMegaBytes sets the TotalProvisionedStorageInMegaBytes field's value.
- func (s *DescribeStorageOutput) SetTotalProvisionedStorageInMegaBytes(v float64) *DescribeStorageOutput {
- s.TotalProvisionedStorageInMegaBytes = &v
- return s
- }
- type DescribeTableRestoreStatusInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Redshift cluster that the table is being restored to.
- ClusterIdentifier *string `type:"string"`
- // An optional pagination token provided by a previous DescribeTableRestoreStatus
- // request. If this parameter is specified, the response includes only records
- // beyond the marker, up to the value specified by the MaxRecords parameter.
- Marker *string `type:"string"`
- // The maximum number of records to include in the response. If more records
- // exist than the specified MaxRecords value, a pagination token called a marker
- // is included in the response so that the remaining results can be retrieved.
- MaxRecords *int64 `type:"integer"`
- // The identifier of the table restore request to return status for. If you
- // don't specify a TableRestoreRequestId value, then DescribeTableRestoreStatus
- // returns the status of all in-progress table restore requests.
- TableRestoreRequestId *string `type:"string"`
- }
- // String returns the string representation
- func (s DescribeTableRestoreStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTableRestoreStatusInput) GoString() string {
- return s.String()
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *DescribeTableRestoreStatusInput) SetClusterIdentifier(v string) *DescribeTableRestoreStatusInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeTableRestoreStatusInput) SetMarker(v string) *DescribeTableRestoreStatusInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeTableRestoreStatusInput) SetMaxRecords(v int64) *DescribeTableRestoreStatusInput {
- s.MaxRecords = &v
- return s
- }
- // SetTableRestoreRequestId sets the TableRestoreRequestId field's value.
- func (s *DescribeTableRestoreStatusInput) SetTableRestoreRequestId(v string) *DescribeTableRestoreStatusInput {
- s.TableRestoreRequestId = &v
- return s
- }
- type DescribeTableRestoreStatusOutput struct {
- _ struct{} `type:"structure"`
- // A pagination token that can be used in a subsequent DescribeTableRestoreStatus
- // request.
- Marker *string `type:"string"`
- // A list of status details for one or more table restore requests.
- TableRestoreStatusDetails []*TableRestoreStatus `locationNameList:"TableRestoreStatus" type:"list"`
- }
- // String returns the string representation
- func (s DescribeTableRestoreStatusOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTableRestoreStatusOutput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeTableRestoreStatusOutput) SetMarker(v string) *DescribeTableRestoreStatusOutput {
- s.Marker = &v
- return s
- }
- // SetTableRestoreStatusDetails sets the TableRestoreStatusDetails field's value.
- func (s *DescribeTableRestoreStatusOutput) SetTableRestoreStatusDetails(v []*TableRestoreStatus) *DescribeTableRestoreStatusOutput {
- s.TableRestoreStatusDetails = v
- return s
- }
- type DescribeTagsInput struct {
- _ struct{} `type:"structure"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the marker
- // parameter and retrying the command. If the marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- // The maximum number or response records to return in each call. If the number
- // of remaining response records exceeds the specified MaxRecords value, a value
- // is returned in a marker field of the response. You can retrieve the next
- // set of records by retrying the command with the returned marker value.
- MaxRecords *int64 `type:"integer"`
- // The Amazon Resource Name (ARN) for which you want to describe the tag or
- // tags. For example, arn:aws:redshift:us-east-1:123456789:cluster:t1.
- ResourceName *string `type:"string"`
- // The type of resource with which you want to view tags. Valid resource types
- // are:
- //
- // * Cluster
- //
- // * CIDR/IP
- //
- // * EC2 security group
- //
- // * Snapshot
- //
- // * Cluster security group
- //
- // * Subnet group
- //
- // * HSM connection
- //
- // * HSM certificate
- //
- // * Parameter group
- //
- // * Snapshot copy grant
- //
- // For more information about Amazon Redshift resource types and constructing
- // ARNs, go to Specifying Policy Elements: Actions, Effects, Resources, and
- // Principals (http://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-overview.html#redshift-iam-access-control-specify-actions)
- // in the Amazon Redshift Cluster Management Guide.
- ResourceType *string `type:"string"`
- // A tag key or keys for which you want to return all matching resources that
- // are associated with the specified key or keys. For example, suppose that
- // you have resources tagged with keys called owner and environment. If you
- // specify both of these tag keys in the request, Amazon Redshift returns a
- // response with all resources that have either or both of these tag keys associated
- // with them.
- TagKeys []*string `locationNameList:"TagKey" type:"list"`
- // A tag value or values for which you want to return all matching resources
- // that are associated with the specified value or values. For example, suppose
- // that you have resources tagged with values called admin and test. If you
- // specify both of these tag values in the request, Amazon Redshift returns
- // a response with all resources that have either or both of these tag values
- // associated with them.
- TagValues []*string `locationNameList:"TagValue" type:"list"`
- }
- // String returns the string representation
- func (s DescribeTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTagsInput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeTagsInput) SetMarker(v string) *DescribeTagsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *DescribeTagsInput) SetMaxRecords(v int64) *DescribeTagsInput {
- s.MaxRecords = &v
- return s
- }
- // SetResourceName sets the ResourceName field's value.
- func (s *DescribeTagsInput) SetResourceName(v string) *DescribeTagsInput {
- s.ResourceName = &v
- return s
- }
- // SetResourceType sets the ResourceType field's value.
- func (s *DescribeTagsInput) SetResourceType(v string) *DescribeTagsInput {
- s.ResourceType = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *DescribeTagsInput) SetTagKeys(v []*string) *DescribeTagsInput {
- s.TagKeys = v
- return s
- }
- // SetTagValues sets the TagValues field's value.
- func (s *DescribeTagsInput) SetTagValues(v []*string) *DescribeTagsInput {
- s.TagValues = v
- return s
- }
- type DescribeTagsOutput struct {
- _ struct{} `type:"structure"`
- // A value that indicates the starting point for the next set of response records
- // in a subsequent request. If a value is returned in a response, you can retrieve
- // the next set of records by providing this returned marker value in the Marker
- // parameter and retrying the command. If the Marker field is empty, all response
- // records have been retrieved for the request.
- Marker *string `type:"string"`
- // A list of tags with their associated resources.
- TaggedResources []*TaggedResource `locationNameList:"TaggedResource" type:"list"`
- }
- // String returns the string representation
- func (s DescribeTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTagsOutput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeTagsOutput) SetMarker(v string) *DescribeTagsOutput {
- s.Marker = &v
- return s
- }
- // SetTaggedResources sets the TaggedResources field's value.
- func (s *DescribeTagsOutput) SetTaggedResources(v []*TaggedResource) *DescribeTagsOutput {
- s.TaggedResources = v
- return s
- }
- type DisableLoggingInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the cluster on which logging is to be stopped.
- //
- // Example: examplecluster
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DisableLoggingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableLoggingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisableLoggingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisableLoggingInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *DisableLoggingInput) SetClusterIdentifier(v string) *DisableLoggingInput {
- s.ClusterIdentifier = &v
- return s
- }
- type DisableSnapshotCopyInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier of the source cluster that you want to disable copying
- // of snapshots to a destination region.
- //
- // Constraints: Must be the valid name of an existing cluster that has cross-region
- // snapshot copy enabled.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DisableSnapshotCopyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableSnapshotCopyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisableSnapshotCopyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisableSnapshotCopyInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *DisableSnapshotCopyInput) SetClusterIdentifier(v string) *DisableSnapshotCopyInput {
- s.ClusterIdentifier = &v
- return s
- }
- type DisableSnapshotCopyOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s DisableSnapshotCopyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableSnapshotCopyOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *DisableSnapshotCopyOutput) SetCluster(v *Cluster) *DisableSnapshotCopyOutput {
- s.Cluster = v
- return s
- }
- // Describes an Amazon EC2 security group.
- type EC2SecurityGroup struct {
- _ struct{} `type:"structure"`
- // The name of the EC2 Security Group.
- EC2SecurityGroupName *string `type:"string"`
- // The AWS ID of the owner of the EC2 security group specified in the EC2SecurityGroupName
- // field.
- EC2SecurityGroupOwnerId *string `type:"string"`
- // The status of the EC2 security group.
- Status *string `type:"string"`
- // The list of tags for the EC2 security group.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s EC2SecurityGroup) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EC2SecurityGroup) GoString() string {
- return s.String()
- }
- // SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value.
- func (s *EC2SecurityGroup) SetEC2SecurityGroupName(v string) *EC2SecurityGroup {
- s.EC2SecurityGroupName = &v
- return s
- }
- // SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value.
- func (s *EC2SecurityGroup) SetEC2SecurityGroupOwnerId(v string) *EC2SecurityGroup {
- s.EC2SecurityGroupOwnerId = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *EC2SecurityGroup) SetStatus(v string) *EC2SecurityGroup {
- s.Status = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *EC2SecurityGroup) SetTags(v []*Tag) *EC2SecurityGroup {
- s.Tags = v
- return s
- }
- // Describes the status of the elastic IP (EIP) address.
- type ElasticIpStatus struct {
- _ struct{} `type:"structure"`
- // The elastic IP (EIP) address for the cluster.
- ElasticIp *string `type:"string"`
- // The status of the elastic IP (EIP) address.
- Status *string `type:"string"`
- }
- // String returns the string representation
- func (s ElasticIpStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ElasticIpStatus) GoString() string {
- return s.String()
- }
- // SetElasticIp sets the ElasticIp field's value.
- func (s *ElasticIpStatus) SetElasticIp(v string) *ElasticIpStatus {
- s.ElasticIp = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *ElasticIpStatus) SetStatus(v string) *ElasticIpStatus {
- s.Status = &v
- return s
- }
- type EnableLoggingInput struct {
- _ struct{} `type:"structure"`
- // The name of an existing S3 bucket where the log files are to be stored.
- //
- // Constraints:
- //
- // * Must be in the same region as the cluster
- //
- // * The cluster must have read bucket and put object permissions
- //
- // BucketName is a required field
- BucketName *string `type:"string" required:"true"`
- // The identifier of the cluster on which logging is to be started.
- //
- // Example: examplecluster
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // The prefix applied to the log file names.
- //
- // Constraints:
- //
- // * Cannot exceed 512 characters
- //
- // * Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash
- // (\), or control characters. The hexadecimal codes for invalid characters
- // are:
- //
- // x00 to x20
- //
- // x22
- //
- // x27
- //
- // x5c
- //
- // x7f or larger
- S3KeyPrefix *string `type:"string"`
- }
- // String returns the string representation
- func (s EnableLoggingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableLoggingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *EnableLoggingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "EnableLoggingInput"}
- if s.BucketName == nil {
- invalidParams.Add(request.NewErrParamRequired("BucketName"))
- }
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetBucketName sets the BucketName field's value.
- func (s *EnableLoggingInput) SetBucketName(v string) *EnableLoggingInput {
- s.BucketName = &v
- return s
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *EnableLoggingInput) SetClusterIdentifier(v string) *EnableLoggingInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetS3KeyPrefix sets the S3KeyPrefix field's value.
- func (s *EnableLoggingInput) SetS3KeyPrefix(v string) *EnableLoggingInput {
- s.S3KeyPrefix = &v
- return s
- }
- type EnableSnapshotCopyInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier of the source cluster to copy snapshots from.
- //
- // Constraints: Must be the valid name of an existing cluster that does not
- // already have cross-region snapshot copy enabled.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // The destination AWS Region that you want to copy snapshots to.
- //
- // Constraints: Must be the name of a valid AWS Region. For more information,
- // see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#redshift_region)
- // in the Amazon Web Services General Reference.
- //
- // DestinationRegion is a required field
- DestinationRegion *string `type:"string" required:"true"`
- // The number of days to retain newly copied snapshots in the destination AWS
- // Region after they are copied from the source AWS Region. If the value is
- // -1, the manual snapshot is retained indefinitely.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- ManualSnapshotRetentionPeriod *int64 `type:"integer"`
- // The number of days to retain automated snapshots in the destination region
- // after they are copied from the source region.
- //
- // Default: 7.
- //
- // Constraints: Must be at least 1 and no more than 35.
- RetentionPeriod *int64 `type:"integer"`
- // The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted
- // cluster are copied to the destination region.
- SnapshotCopyGrantName *string `type:"string"`
- }
- // String returns the string representation
- func (s EnableSnapshotCopyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableSnapshotCopyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *EnableSnapshotCopyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "EnableSnapshotCopyInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if s.DestinationRegion == nil {
- invalidParams.Add(request.NewErrParamRequired("DestinationRegion"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *EnableSnapshotCopyInput) SetClusterIdentifier(v string) *EnableSnapshotCopyInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetDestinationRegion sets the DestinationRegion field's value.
- func (s *EnableSnapshotCopyInput) SetDestinationRegion(v string) *EnableSnapshotCopyInput {
- s.DestinationRegion = &v
- return s
- }
- // SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.
- func (s *EnableSnapshotCopyInput) SetManualSnapshotRetentionPeriod(v int64) *EnableSnapshotCopyInput {
- s.ManualSnapshotRetentionPeriod = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *EnableSnapshotCopyInput) SetRetentionPeriod(v int64) *EnableSnapshotCopyInput {
- s.RetentionPeriod = &v
- return s
- }
- // SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value.
- func (s *EnableSnapshotCopyInput) SetSnapshotCopyGrantName(v string) *EnableSnapshotCopyInput {
- s.SnapshotCopyGrantName = &v
- return s
- }
- type EnableSnapshotCopyOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s EnableSnapshotCopyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EnableSnapshotCopyOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *EnableSnapshotCopyOutput) SetCluster(v *Cluster) *EnableSnapshotCopyOutput {
- s.Cluster = v
- return s
- }
- // Describes a connection endpoint.
- type Endpoint struct {
- _ struct{} `type:"structure"`
- // The DNS address of the Cluster.
- Address *string `type:"string"`
- // The port that the database engine is listening on.
- Port *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s Endpoint) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Endpoint) GoString() string {
- return s.String()
- }
- // SetAddress sets the Address field's value.
- func (s *Endpoint) SetAddress(v string) *Endpoint {
- s.Address = &v
- return s
- }
- // SetPort sets the Port field's value.
- func (s *Endpoint) SetPort(v int64) *Endpoint {
- s.Port = &v
- return s
- }
- // Describes an event.
- type Event struct {
- _ struct{} `type:"structure"`
- // The date and time of the event.
- Date *time.Time `type:"timestamp"`
- // A list of the event categories.
- //
- // Values: Configuration, Management, Monitoring, Security
- EventCategories []*string `locationNameList:"EventCategory" type:"list"`
- // The identifier of the event.
- EventId *string `type:"string"`
- // The text of this event.
- Message *string `type:"string"`
- // The severity of the event.
- //
- // Values: ERROR, INFO
- Severity *string `type:"string"`
- // The identifier for the source of the event.
- SourceIdentifier *string `type:"string"`
- // The source type for this event.
- SourceType *string `type:"string" enum:"SourceType"`
- }
- // String returns the string representation
- func (s Event) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Event) GoString() string {
- return s.String()
- }
- // SetDate sets the Date field's value.
- func (s *Event) SetDate(v time.Time) *Event {
- s.Date = &v
- return s
- }
- // SetEventCategories sets the EventCategories field's value.
- func (s *Event) SetEventCategories(v []*string) *Event {
- s.EventCategories = v
- return s
- }
- // SetEventId sets the EventId field's value.
- func (s *Event) SetEventId(v string) *Event {
- s.EventId = &v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *Event) SetMessage(v string) *Event {
- s.Message = &v
- return s
- }
- // SetSeverity sets the Severity field's value.
- func (s *Event) SetSeverity(v string) *Event {
- s.Severity = &v
- return s
- }
- // SetSourceIdentifier sets the SourceIdentifier field's value.
- func (s *Event) SetSourceIdentifier(v string) *Event {
- s.SourceIdentifier = &v
- return s
- }
- // SetSourceType sets the SourceType field's value.
- func (s *Event) SetSourceType(v string) *Event {
- s.SourceType = &v
- return s
- }
- // Describes event categories.
- type EventCategoriesMap struct {
- _ struct{} `type:"structure"`
- // The events in the event category.
- Events []*EventInfoMap `locationNameList:"EventInfoMap" type:"list"`
- // The source type, such as cluster or cluster-snapshot, that the returned categories
- // belong to.
- SourceType *string `type:"string"`
- }
- // String returns the string representation
- func (s EventCategoriesMap) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EventCategoriesMap) GoString() string {
- return s.String()
- }
- // SetEvents sets the Events field's value.
- func (s *EventCategoriesMap) SetEvents(v []*EventInfoMap) *EventCategoriesMap {
- s.Events = v
- return s
- }
- // SetSourceType sets the SourceType field's value.
- func (s *EventCategoriesMap) SetSourceType(v string) *EventCategoriesMap {
- s.SourceType = &v
- return s
- }
- // Describes event information.
- type EventInfoMap struct {
- _ struct{} `type:"structure"`
- // The category of an Amazon Redshift event.
- EventCategories []*string `locationNameList:"EventCategory" type:"list"`
- // The description of an Amazon Redshift event.
- EventDescription *string `type:"string"`
- // The identifier of an Amazon Redshift event.
- EventId *string `type:"string"`
- // The severity of the event.
- //
- // Values: ERROR, INFO
- Severity *string `type:"string"`
- }
- // String returns the string representation
- func (s EventInfoMap) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EventInfoMap) GoString() string {
- return s.String()
- }
- // SetEventCategories sets the EventCategories field's value.
- func (s *EventInfoMap) SetEventCategories(v []*string) *EventInfoMap {
- s.EventCategories = v
- return s
- }
- // SetEventDescription sets the EventDescription field's value.
- func (s *EventInfoMap) SetEventDescription(v string) *EventInfoMap {
- s.EventDescription = &v
- return s
- }
- // SetEventId sets the EventId field's value.
- func (s *EventInfoMap) SetEventId(v string) *EventInfoMap {
- s.EventId = &v
- return s
- }
- // SetSeverity sets the Severity field's value.
- func (s *EventInfoMap) SetSeverity(v string) *EventInfoMap {
- s.Severity = &v
- return s
- }
- // Describes event subscriptions.
- type EventSubscription struct {
- _ struct{} `type:"structure"`
- // The name of the Amazon Redshift event notification subscription.
- CustSubscriptionId *string `type:"string"`
- // The AWS customer account associated with the Amazon Redshift event notification
- // subscription.
- CustomerAwsId *string `type:"string"`
- // A boolean value indicating whether the subscription is enabled; true indicates
- // that the subscription is enabled.
- Enabled *bool `type:"boolean"`
- // The list of Amazon Redshift event categories specified in the event notification
- // subscription.
- //
- // Values: Configuration, Management, Monitoring, Security
- EventCategoriesList []*string `locationNameList:"EventCategory" type:"list"`
- // The event severity specified in the Amazon Redshift event notification subscription.
- //
- // Values: ERROR, INFO
- Severity *string `type:"string"`
- // The Amazon Resource Name (ARN) of the Amazon SNS topic used by the event
- // notification subscription.
- SnsTopicArn *string `type:"string"`
- // A list of the sources that publish events to the Amazon Redshift event notification
- // subscription.
- SourceIdsList []*string `locationNameList:"SourceId" type:"list"`
- // The source type of the events returned the Amazon Redshift event notification,
- // such as cluster, or cluster-snapshot.
- SourceType *string `type:"string"`
- // The status of the Amazon Redshift event notification subscription.
- //
- // Constraints:
- //
- // * Can be one of the following: active | no-permission | topic-not-exist
- //
- // * The status "no-permission" indicates that Amazon Redshift no longer
- // has permission to post to the Amazon SNS topic. The status "topic-not-exist"
- // indicates that the topic was deleted after the subscription was created.
- Status *string `type:"string"`
- // The date and time the Amazon Redshift event notification subscription was
- // created.
- SubscriptionCreationTime *time.Time `type:"timestamp"`
- // The list of tags for the event subscription.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s EventSubscription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EventSubscription) GoString() string {
- return s.String()
- }
- // SetCustSubscriptionId sets the CustSubscriptionId field's value.
- func (s *EventSubscription) SetCustSubscriptionId(v string) *EventSubscription {
- s.CustSubscriptionId = &v
- return s
- }
- // SetCustomerAwsId sets the CustomerAwsId field's value.
- func (s *EventSubscription) SetCustomerAwsId(v string) *EventSubscription {
- s.CustomerAwsId = &v
- return s
- }
- // SetEnabled sets the Enabled field's value.
- func (s *EventSubscription) SetEnabled(v bool) *EventSubscription {
- s.Enabled = &v
- return s
- }
- // SetEventCategoriesList sets the EventCategoriesList field's value.
- func (s *EventSubscription) SetEventCategoriesList(v []*string) *EventSubscription {
- s.EventCategoriesList = v
- return s
- }
- // SetSeverity sets the Severity field's value.
- func (s *EventSubscription) SetSeverity(v string) *EventSubscription {
- s.Severity = &v
- return s
- }
- // SetSnsTopicArn sets the SnsTopicArn field's value.
- func (s *EventSubscription) SetSnsTopicArn(v string) *EventSubscription {
- s.SnsTopicArn = &v
- return s
- }
- // SetSourceIdsList sets the SourceIdsList field's value.
- func (s *EventSubscription) SetSourceIdsList(v []*string) *EventSubscription {
- s.SourceIdsList = v
- return s
- }
- // SetSourceType sets the SourceType field's value.
- func (s *EventSubscription) SetSourceType(v string) *EventSubscription {
- s.SourceType = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *EventSubscription) SetStatus(v string) *EventSubscription {
- s.Status = &v
- return s
- }
- // SetSubscriptionCreationTime sets the SubscriptionCreationTime field's value.
- func (s *EventSubscription) SetSubscriptionCreationTime(v time.Time) *EventSubscription {
- s.SubscriptionCreationTime = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *EventSubscription) SetTags(v []*Tag) *EventSubscription {
- s.Tags = v
- return s
- }
- // The request parameters to get cluster credentials.
- type GetClusterCredentialsInput struct {
- _ struct{} `type:"structure"`
- // Create a database user with the name specified for the user named in DbUser
- // if one does not exist.
- AutoCreate *bool `type:"boolean"`
- // The unique identifier of the cluster that contains the database for which
- // your are requesting credentials. This parameter is case sensitive.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // A list of the names of existing database groups that the user named in DbUser
- // will join for the current session, in addition to any group memberships for
- // an existing user. If not specified, a new user is added only to PUBLIC.
- //
- // Database group name constraints
- //
- // * Must be 1 to 64 alphanumeric characters or hyphens
- //
- // * Must contain only lowercase letters, numbers, underscore, plus sign,
- // period (dot), at symbol (@), or hyphen.
- //
- // * First character must be a letter.
- //
- // * Must not contain a colon ( : ) or slash ( / ).
- //
- // * Cannot be a reserved word. A list of reserved words can be found in
- // Reserved Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html)
- // in the Amazon Redshift Database Developer Guide.
- DbGroups []*string `locationNameList:"DbGroup" type:"list"`
- // The name of a database that DbUser is authorized to log on to. If DbName
- // is not specified, DbUser can log on to any existing database.
- //
- // Constraints:
- //
- // * Must be 1 to 64 alphanumeric characters or hyphens
- //
- // * Must contain only lowercase letters, numbers, underscore, plus sign,
- // period (dot), at symbol (@), or hyphen.
- //
- // * First character must be a letter.
- //
- // * Must not contain a colon ( : ) or slash ( / ).
- //
- // * Cannot be a reserved word. A list of reserved words can be found in
- // Reserved Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html)
- // in the Amazon Redshift Database Developer Guide.
- DbName *string `type:"string"`
- // The name of a database user. If a user name matching DbUser exists in the
- // database, the temporary user credentials have the same permissions as the
- // existing user. If DbUser doesn't exist in the database and Autocreate is
- // True, a new user is created using the value for DbUser with PUBLIC permissions.
- // If a database user matching the value for DbUser doesn't exist and Autocreate
- // is False, then the command succeeds but the connection attempt will fail
- // because the user doesn't exist in the database.
- //
- // For more information, see CREATE USER (http://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_USER.html)
- // in the Amazon Redshift Database Developer Guide.
- //
- // Constraints:
- //
- // * Must be 1 to 64 alphanumeric characters or hyphens. The user name can't
- // be PUBLIC.
- //
- // * Must contain only lowercase letters, numbers, underscore, plus sign,
- // period (dot), at symbol (@), or hyphen.
- //
- // * First character must be a letter.
- //
- // * Must not contain a colon ( : ) or slash ( / ).
- //
- // * Cannot be a reserved word. A list of reserved words can be found in
- // Reserved Words (http://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html)
- // in the Amazon Redshift Database Developer Guide.
- //
- // DbUser is a required field
- DbUser *string `type:"string" required:"true"`
- // The number of seconds until the returned temporary password expires.
- //
- // Constraint: minimum 900, maximum 3600.
- //
- // Default: 900
- DurationSeconds *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s GetClusterCredentialsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetClusterCredentialsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetClusterCredentialsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetClusterCredentialsInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if s.DbUser == nil {
- invalidParams.Add(request.NewErrParamRequired("DbUser"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAutoCreate sets the AutoCreate field's value.
- func (s *GetClusterCredentialsInput) SetAutoCreate(v bool) *GetClusterCredentialsInput {
- s.AutoCreate = &v
- return s
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *GetClusterCredentialsInput) SetClusterIdentifier(v string) *GetClusterCredentialsInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetDbGroups sets the DbGroups field's value.
- func (s *GetClusterCredentialsInput) SetDbGroups(v []*string) *GetClusterCredentialsInput {
- s.DbGroups = v
- return s
- }
- // SetDbName sets the DbName field's value.
- func (s *GetClusterCredentialsInput) SetDbName(v string) *GetClusterCredentialsInput {
- s.DbName = &v
- return s
- }
- // SetDbUser sets the DbUser field's value.
- func (s *GetClusterCredentialsInput) SetDbUser(v string) *GetClusterCredentialsInput {
- s.DbUser = &v
- return s
- }
- // SetDurationSeconds sets the DurationSeconds field's value.
- func (s *GetClusterCredentialsInput) SetDurationSeconds(v int64) *GetClusterCredentialsInput {
- s.DurationSeconds = &v
- return s
- }
- // Temporary credentials with authorization to log on to an Amazon Redshift
- // database.
- type GetClusterCredentialsOutput struct {
- _ struct{} `type:"structure"`
- // A temporary password that authorizes the user name returned by DbUser to
- // log on to the database DbName.
- DbPassword *string `type:"string" sensitive:"true"`
- // A database user name that is authorized to log on to the database DbName
- // using the password DbPassword. If the specified DbUser exists in the database,
- // the new user name has the same database privileges as the the user named
- // in DbUser. By default, the user is added to PUBLIC. If the DbGroups parameter
- // is specifed, DbUser is added to the listed groups for any sessions created
- // using these credentials.
- DbUser *string `type:"string"`
- // The date and time the password in DbPassword expires.
- Expiration *time.Time `type:"timestamp"`
- }
- // String returns the string representation
- func (s GetClusterCredentialsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetClusterCredentialsOutput) GoString() string {
- return s.String()
- }
- // SetDbPassword sets the DbPassword field's value.
- func (s *GetClusterCredentialsOutput) SetDbPassword(v string) *GetClusterCredentialsOutput {
- s.DbPassword = &v
- return s
- }
- // SetDbUser sets the DbUser field's value.
- func (s *GetClusterCredentialsOutput) SetDbUser(v string) *GetClusterCredentialsOutput {
- s.DbUser = &v
- return s
- }
- // SetExpiration sets the Expiration field's value.
- func (s *GetClusterCredentialsOutput) SetExpiration(v time.Time) *GetClusterCredentialsOutput {
- s.Expiration = &v
- return s
- }
- type GetReservedNodeExchangeOfferingsInput struct {
- _ struct{} `type:"structure"`
- // A value that indicates the starting point for the next set of ReservedNodeOfferings.
- Marker *string `type:"string"`
- // An integer setting the maximum number of ReservedNodeOfferings to retrieve.
- MaxRecords *int64 `type:"integer"`
- // A string representing the node identifier for the DC1 Reserved Node to be
- // exchanged.
- //
- // ReservedNodeId is a required field
- ReservedNodeId *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetReservedNodeExchangeOfferingsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetReservedNodeExchangeOfferingsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetReservedNodeExchangeOfferingsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetReservedNodeExchangeOfferingsInput"}
- if s.ReservedNodeId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReservedNodeId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMarker sets the Marker field's value.
- func (s *GetReservedNodeExchangeOfferingsInput) SetMarker(v string) *GetReservedNodeExchangeOfferingsInput {
- s.Marker = &v
- return s
- }
- // SetMaxRecords sets the MaxRecords field's value.
- func (s *GetReservedNodeExchangeOfferingsInput) SetMaxRecords(v int64) *GetReservedNodeExchangeOfferingsInput {
- s.MaxRecords = &v
- return s
- }
- // SetReservedNodeId sets the ReservedNodeId field's value.
- func (s *GetReservedNodeExchangeOfferingsInput) SetReservedNodeId(v string) *GetReservedNodeExchangeOfferingsInput {
- s.ReservedNodeId = &v
- return s
- }
- type GetReservedNodeExchangeOfferingsOutput struct {
- _ struct{} `type:"structure"`
- // An optional parameter that specifies the starting point for returning a set
- // of response records. When the results of a GetReservedNodeExchangeOfferings
- // request exceed the value specified in MaxRecords, Amazon Redshift returns
- // a value in the marker field of the response. You can retrieve the next set
- // of response records by providing the returned marker value in the marker
- // parameter and retrying the request.
- Marker *string `type:"string"`
- // Returns an array of ReservedNodeOffering objects.
- ReservedNodeOfferings []*ReservedNodeOffering `locationNameList:"ReservedNodeOffering" type:"list"`
- }
- // String returns the string representation
- func (s GetReservedNodeExchangeOfferingsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetReservedNodeExchangeOfferingsOutput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *GetReservedNodeExchangeOfferingsOutput) SetMarker(v string) *GetReservedNodeExchangeOfferingsOutput {
- s.Marker = &v
- return s
- }
- // SetReservedNodeOfferings sets the ReservedNodeOfferings field's value.
- func (s *GetReservedNodeExchangeOfferingsOutput) SetReservedNodeOfferings(v []*ReservedNodeOffering) *GetReservedNodeExchangeOfferingsOutput {
- s.ReservedNodeOfferings = v
- return s
- }
- // Returns information about an HSM client certificate. The certificate is stored
- // in a secure Hardware Storage Module (HSM), and used by the Amazon Redshift
- // cluster to encrypt data files.
- type HsmClientCertificate struct {
- _ struct{} `type:"structure"`
- // The identifier of the HSM client certificate.
- HsmClientCertificateIdentifier *string `type:"string"`
- // The public key that the Amazon Redshift cluster will use to connect to the
- // HSM. You must register the public key in the HSM.
- HsmClientCertificatePublicKey *string `type:"string"`
- // The list of tags for the HSM client certificate.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s HsmClientCertificate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HsmClientCertificate) GoString() string {
- return s.String()
- }
- // SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value.
- func (s *HsmClientCertificate) SetHsmClientCertificateIdentifier(v string) *HsmClientCertificate {
- s.HsmClientCertificateIdentifier = &v
- return s
- }
- // SetHsmClientCertificatePublicKey sets the HsmClientCertificatePublicKey field's value.
- func (s *HsmClientCertificate) SetHsmClientCertificatePublicKey(v string) *HsmClientCertificate {
- s.HsmClientCertificatePublicKey = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *HsmClientCertificate) SetTags(v []*Tag) *HsmClientCertificate {
- s.Tags = v
- return s
- }
- // Returns information about an HSM configuration, which is an object that describes
- // to Amazon Redshift clusters the information they require to connect to an
- // HSM where they can store database encryption keys.
- type HsmConfiguration struct {
- _ struct{} `type:"structure"`
- // A text description of the HSM configuration.
- Description *string `type:"string"`
- // The name of the Amazon Redshift HSM configuration.
- HsmConfigurationIdentifier *string `type:"string"`
- // The IP address that the Amazon Redshift cluster must use to access the HSM.
- HsmIpAddress *string `type:"string"`
- // The name of the partition in the HSM where the Amazon Redshift clusters will
- // store their database encryption keys.
- HsmPartitionName *string `type:"string"`
- // The list of tags for the HSM configuration.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s HsmConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HsmConfiguration) GoString() string {
- return s.String()
- }
- // SetDescription sets the Description field's value.
- func (s *HsmConfiguration) SetDescription(v string) *HsmConfiguration {
- s.Description = &v
- return s
- }
- // SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value.
- func (s *HsmConfiguration) SetHsmConfigurationIdentifier(v string) *HsmConfiguration {
- s.HsmConfigurationIdentifier = &v
- return s
- }
- // SetHsmIpAddress sets the HsmIpAddress field's value.
- func (s *HsmConfiguration) SetHsmIpAddress(v string) *HsmConfiguration {
- s.HsmIpAddress = &v
- return s
- }
- // SetHsmPartitionName sets the HsmPartitionName field's value.
- func (s *HsmConfiguration) SetHsmPartitionName(v string) *HsmConfiguration {
- s.HsmPartitionName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *HsmConfiguration) SetTags(v []*Tag) *HsmConfiguration {
- s.Tags = v
- return s
- }
- // Describes the status of changes to HSM settings.
- type HsmStatus struct {
- _ struct{} `type:"structure"`
- // Specifies the name of the HSM client certificate the Amazon Redshift cluster
- // uses to retrieve the data encryption keys stored in an HSM.
- HsmClientCertificateIdentifier *string `type:"string"`
- // Specifies the name of the HSM configuration that contains the information
- // the Amazon Redshift cluster can use to retrieve and store keys in an HSM.
- HsmConfigurationIdentifier *string `type:"string"`
- // Reports whether the Amazon Redshift cluster has finished applying any HSM
- // settings changes specified in a modify cluster command.
- //
- // Values: active, applying
- Status *string `type:"string"`
- }
- // String returns the string representation
- func (s HsmStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s HsmStatus) GoString() string {
- return s.String()
- }
- // SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value.
- func (s *HsmStatus) SetHsmClientCertificateIdentifier(v string) *HsmStatus {
- s.HsmClientCertificateIdentifier = &v
- return s
- }
- // SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value.
- func (s *HsmStatus) SetHsmConfigurationIdentifier(v string) *HsmStatus {
- s.HsmConfigurationIdentifier = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *HsmStatus) SetStatus(v string) *HsmStatus {
- s.Status = &v
- return s
- }
- // Describes an IP range used in a security group.
- type IPRange struct {
- _ struct{} `type:"structure"`
- // The IP range in Classless Inter-Domain Routing (CIDR) notation.
- CIDRIP *string `type:"string"`
- // The status of the IP range, for example, "authorized".
- Status *string `type:"string"`
- // The list of tags for the IP range.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s IPRange) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IPRange) GoString() string {
- return s.String()
- }
- // SetCIDRIP sets the CIDRIP field's value.
- func (s *IPRange) SetCIDRIP(v string) *IPRange {
- s.CIDRIP = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *IPRange) SetStatus(v string) *IPRange {
- s.Status = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *IPRange) SetTags(v []*Tag) *IPRange {
- s.Tags = v
- return s
- }
- // Describes the status of logging for a cluster.
- type LoggingStatus struct {
- _ struct{} `type:"structure"`
- // The name of the S3 bucket where the log files are stored.
- BucketName *string `type:"string"`
- // The message indicating that logs failed to be delivered.
- LastFailureMessage *string `type:"string"`
- // The last time when logs failed to be delivered.
- LastFailureTime *time.Time `type:"timestamp"`
- // The last time that logs were delivered.
- LastSuccessfulDeliveryTime *time.Time `type:"timestamp"`
- // true if logging is on, false if logging is off.
- LoggingEnabled *bool `type:"boolean"`
- // The prefix applied to the log file names.
- S3KeyPrefix *string `type:"string"`
- }
- // String returns the string representation
- func (s LoggingStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LoggingStatus) GoString() string {
- return s.String()
- }
- // SetBucketName sets the BucketName field's value.
- func (s *LoggingStatus) SetBucketName(v string) *LoggingStatus {
- s.BucketName = &v
- return s
- }
- // SetLastFailureMessage sets the LastFailureMessage field's value.
- func (s *LoggingStatus) SetLastFailureMessage(v string) *LoggingStatus {
- s.LastFailureMessage = &v
- return s
- }
- // SetLastFailureTime sets the LastFailureTime field's value.
- func (s *LoggingStatus) SetLastFailureTime(v time.Time) *LoggingStatus {
- s.LastFailureTime = &v
- return s
- }
- // SetLastSuccessfulDeliveryTime sets the LastSuccessfulDeliveryTime field's value.
- func (s *LoggingStatus) SetLastSuccessfulDeliveryTime(v time.Time) *LoggingStatus {
- s.LastSuccessfulDeliveryTime = &v
- return s
- }
- // SetLoggingEnabled sets the LoggingEnabled field's value.
- func (s *LoggingStatus) SetLoggingEnabled(v bool) *LoggingStatus {
- s.LoggingEnabled = &v
- return s
- }
- // SetS3KeyPrefix sets the S3KeyPrefix field's value.
- func (s *LoggingStatus) SetS3KeyPrefix(v string) *LoggingStatus {
- s.S3KeyPrefix = &v
- return s
- }
- // Defines a maintenance track that determines which Amazon Redshift version
- // to apply during a maintenance window. If the value for MaintenanceTrack is
- // current, the cluster is updated to the most recently certified maintenance
- // release. If the value is trailing, the cluster is updated to the previously
- // certified maintenance release.
- type MaintenanceTrack struct {
- _ struct{} `type:"structure"`
- // The version number for the cluster release.
- DatabaseVersion *string `type:"string"`
- // The name of the maintenance track. Possible values are current and trailing.
- MaintenanceTrackName *string `type:"string"`
- // An array of UpdateTarget objects to update with the maintenance track.
- UpdateTargets []*UpdateTarget `locationNameList:"UpdateTarget" type:"list"`
- }
- // String returns the string representation
- func (s MaintenanceTrack) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MaintenanceTrack) GoString() string {
- return s.String()
- }
- // SetDatabaseVersion sets the DatabaseVersion field's value.
- func (s *MaintenanceTrack) SetDatabaseVersion(v string) *MaintenanceTrack {
- s.DatabaseVersion = &v
- return s
- }
- // SetMaintenanceTrackName sets the MaintenanceTrackName field's value.
- func (s *MaintenanceTrack) SetMaintenanceTrackName(v string) *MaintenanceTrack {
- s.MaintenanceTrackName = &v
- return s
- }
- // SetUpdateTargets sets the UpdateTargets field's value.
- func (s *MaintenanceTrack) SetUpdateTargets(v []*UpdateTarget) *MaintenanceTrack {
- s.UpdateTargets = v
- return s
- }
- type ModifyClusterDbRevisionInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier of a cluster whose database revision you want to modify.
- //
- // Example: examplecluster
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // The identifier of the database revision. You can retrieve this value from
- // the response to the DescribeClusterDbRevisions request.
- //
- // RevisionTarget is a required field
- RevisionTarget *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ModifyClusterDbRevisionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterDbRevisionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyClusterDbRevisionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyClusterDbRevisionInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if s.RevisionTarget == nil {
- invalidParams.Add(request.NewErrParamRequired("RevisionTarget"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *ModifyClusterDbRevisionInput) SetClusterIdentifier(v string) *ModifyClusterDbRevisionInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetRevisionTarget sets the RevisionTarget field's value.
- func (s *ModifyClusterDbRevisionInput) SetRevisionTarget(v string) *ModifyClusterDbRevisionInput {
- s.RevisionTarget = &v
- return s
- }
- type ModifyClusterDbRevisionOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s ModifyClusterDbRevisionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterDbRevisionOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *ModifyClusterDbRevisionOutput) SetCluster(v *Cluster) *ModifyClusterDbRevisionOutput {
- s.Cluster = v
- return s
- }
- type ModifyClusterIamRolesInput struct {
- _ struct{} `type:"structure"`
- // Zero or more IAM roles to associate with the cluster. The roles must be in
- // their Amazon Resource Name (ARN) format. You can associate up to 10 IAM roles
- // with a single cluster in a single request.
- AddIamRoles []*string `locationNameList:"IamRoleArn" type:"list"`
- // The unique identifier of the cluster for which you want to associate or disassociate
- // IAM roles.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // Zero or more IAM roles in ARN format to disassociate from the cluster. You
- // can disassociate up to 10 IAM roles from a single cluster in a single request.
- RemoveIamRoles []*string `locationNameList:"IamRoleArn" type:"list"`
- }
- // String returns the string representation
- func (s ModifyClusterIamRolesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterIamRolesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyClusterIamRolesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyClusterIamRolesInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAddIamRoles sets the AddIamRoles field's value.
- func (s *ModifyClusterIamRolesInput) SetAddIamRoles(v []*string) *ModifyClusterIamRolesInput {
- s.AddIamRoles = v
- return s
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *ModifyClusterIamRolesInput) SetClusterIdentifier(v string) *ModifyClusterIamRolesInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetRemoveIamRoles sets the RemoveIamRoles field's value.
- func (s *ModifyClusterIamRolesInput) SetRemoveIamRoles(v []*string) *ModifyClusterIamRolesInput {
- s.RemoveIamRoles = v
- return s
- }
- type ModifyClusterIamRolesOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s ModifyClusterIamRolesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterIamRolesOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *ModifyClusterIamRolesOutput) SetCluster(v *Cluster) *ModifyClusterIamRolesOutput {
- s.Cluster = v
- return s
- }
- type ModifyClusterInput struct {
- _ struct{} `type:"structure"`
- // If true, major version upgrades will be applied automatically to the cluster
- // during the maintenance window.
- //
- // Default: false
- AllowVersionUpgrade *bool `type:"boolean"`
- // The number of days that automated snapshots are retained. If the value is
- // 0, automated snapshots are disabled. Even if automated snapshots are disabled,
- // you can still create manual snapshots when you want with CreateClusterSnapshot.
- //
- // If you decrease the automated snapshot retention period from its current
- // value, existing automated snapshots that fall outside of the new retention
- // period will be immediately deleted.
- //
- // Default: Uses existing setting.
- //
- // Constraints: Must be a value from 0 to 35.
- AutomatedSnapshotRetentionPeriod *int64 `type:"integer"`
- // The unique identifier of the cluster to be modified.
- //
- // Example: examplecluster
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // The name of the cluster parameter group to apply to this cluster. This change
- // is applied only after the cluster is rebooted. To reboot a cluster use RebootCluster.
- //
- // Default: Uses existing setting.
- //
- // Constraints: The cluster parameter group must be in the same parameter group
- // family that matches the cluster version.
- ClusterParameterGroupName *string `type:"string"`
- // A list of cluster security groups to be authorized on this cluster. This
- // change is asynchronously applied as soon as possible.
- //
- // Security groups currently associated with the cluster, and not in the list
- // of groups to apply, will be revoked from the cluster.
- //
- // Constraints:
- //
- // * Must be 1 to 255 alphanumeric characters or hyphens
- //
- // * First character must be a letter
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens
- ClusterSecurityGroups []*string `locationNameList:"ClusterSecurityGroupName" type:"list"`
- // The new cluster type.
- //
- // When you submit your cluster resize request, your existing cluster goes into
- // a read-only mode. After Amazon Redshift provisions a new cluster based on
- // your resize requirements, there will be outage for a period while the old
- // cluster is deleted and your connection is switched to the new cluster. You
- // can use DescribeResize to track the progress of the resize request.
- //
- // Valid Values: multi-node | single-node
- ClusterType *string `type:"string"`
- // The new version number of the Amazon Redshift engine to upgrade to.
- //
- // For major version upgrades, if a non-default cluster parameter group is currently
- // in use, a new cluster parameter group in the cluster parameter group family
- // for the new version must be specified. The new cluster parameter group can
- // be the default for that cluster parameter group family. For more information
- // about parameters and parameter groups, go to Amazon Redshift Parameter Groups
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // Example: 1.0
- ClusterVersion *string `type:"string"`
- // The Elastic IP (EIP) address for the cluster.
- //
- // Constraints: The cluster must be provisioned in EC2-VPC and publicly-accessible
- // through an Internet gateway. For more information about provisioning clusters
- // in EC2-VPC, go to Supported Platforms to Launch Your Cluster (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#cluster-platforms)
- // in the Amazon Redshift Cluster Management Guide.
- ElasticIp *string `type:"string"`
- // Indicates whether the cluster is encrypted. If the cluster is encrypted and
- // you provide a value for the KmsKeyId parameter, we will encrypt the cluster
- // with the provided KmsKeyId. If you don't provide a KmsKeyId, we will encrypt
- // with the default key. In the China region we will use legacy encryption if
- // you specify that the cluster is encrypted.
- Encrypted *bool `type:"boolean"`
- // An option that specifies whether to create the cluster with enhanced VPC
- // routing enabled. To create a cluster that uses enhanced VPC routing, the
- // cluster must be in a VPC. For more information, see Enhanced VPC Routing
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // If this option is true, enhanced VPC routing is enabled.
- //
- // Default: false
- EnhancedVpcRouting *bool `type:"boolean"`
- // Specifies the name of the HSM client certificate the Amazon Redshift cluster
- // uses to retrieve the data encryption keys stored in an HSM.
- HsmClientCertificateIdentifier *string `type:"string"`
- // Specifies the name of the HSM configuration that contains the information
- // the Amazon Redshift cluster can use to retrieve and store keys in an HSM.
- HsmConfigurationIdentifier *string `type:"string"`
- // The AWS Key Management Service (KMS) key ID of the encryption key that you
- // want to use to encrypt data in the cluster.
- KmsKeyId *string `type:"string"`
- // The name for the maintenance track that you want to assign for the cluster.
- // This name change is asynchronous. The new track name stays in the PendingModifiedValues
- // for the cluster until the next maintenance window. When the maintenance track
- // changes, the cluster is switched to the latest cluster release available
- // for the maintenance track. At this point, the maintenance track name is applied.
- MaintenanceTrackName *string `type:"string"`
- // The default for number of days that a newly created manual snapshot is retained.
- // If the value is -1, the manual snapshot is retained indefinitely. This value
- // doesn't retroactively change the retention periods of existing manual snapshots.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- //
- // The default value is -1.
- ManualSnapshotRetentionPeriod *int64 `type:"integer"`
- // The new password for the cluster master user. This change is asynchronously
- // applied as soon as possible. Between the time of the request and the completion
- // of the request, the MasterUserPassword element exists in the PendingModifiedValues
- // element of the operation response.
- //
- // Operations never return the password, so this operation provides a way to
- // regain access to the master user account for a cluster if the password is
- // lost.
- //
- // Default: Uses existing setting.
- //
- // Constraints:
- //
- // * Must be between 8 and 64 characters in length.
- //
- // * Must contain at least one uppercase letter.
- //
- // * Must contain at least one lowercase letter.
- //
- // * Must contain one number.
- //
- // * Can be any printable ASCII character (ASCII code 33 to 126) except '
- // (single quote), " (double quote), \, /, @, or space.
- MasterUserPassword *string `type:"string"`
- // The new identifier for the cluster.
- //
- // Constraints:
- //
- // * Must contain from 1 to 63 alphanumeric characters or hyphens.
- //
- // * Alphabetic characters must be lowercase.
- //
- // * First character must be a letter.
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens.
- //
- // * Must be unique for all clusters within an AWS account.
- //
- // Example: examplecluster
- NewClusterIdentifier *string `type:"string"`
- // The new node type of the cluster. If you specify a new node type, you must
- // also specify the number of nodes parameter.
- //
- // When you submit your request to resize a cluster, Amazon Redshift sets access
- // permissions for the cluster to read-only. After Amazon Redshift provisions
- // a new cluster according to your resize requirements, there will be a temporary
- // outage while the old cluster is deleted and your connection is switched to
- // the new cluster. When the new connection is complete, the original access
- // permissions for the cluster are restored. You can use DescribeResize to track
- // the progress of the resize request.
- //
- // Valid Values: ds2.xlarge | ds2.8xlarge | dc1.large | dc1.8xlarge | dc2.large
- // | dc2.8xlarge
- NodeType *string `type:"string"`
- // The new number of nodes of the cluster. If you specify a new number of nodes,
- // you must also specify the node type parameter.
- //
- // When you submit your request to resize a cluster, Amazon Redshift sets access
- // permissions for the cluster to read-only. After Amazon Redshift provisions
- // a new cluster according to your resize requirements, there will be a temporary
- // outage while the old cluster is deleted and your connection is switched to
- // the new cluster. When the new connection is complete, the original access
- // permissions for the cluster are restored. You can use DescribeResize to track
- // the progress of the resize request.
- //
- // Valid Values: Integer greater than 0.
- NumberOfNodes *int64 `type:"integer"`
- // The weekly time range (in UTC) during which system maintenance can occur,
- // if necessary. If system maintenance is necessary during the window, it may
- // result in an outage.
- //
- // This maintenance window change is made immediately. If the new maintenance
- // window indicates the current time, there must be at least 120 minutes between
- // the current time and end of the window in order to ensure that pending changes
- // are applied.
- //
- // Default: Uses existing setting.
- //
- // Format: ddd:hh24:mi-ddd:hh24:mi, for example wed:07:30-wed:08:00.
- //
- // Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
- //
- // Constraints: Must be at least 30 minutes.
- PreferredMaintenanceWindow *string `type:"string"`
- // If true, the cluster can be accessed from a public network. Only clusters
- // in VPCs can be set to be publicly available.
- PubliclyAccessible *bool `type:"boolean"`
- // A list of virtual private cloud (VPC) security groups to be associated with
- // the cluster. This change is asynchronously applied as soon as possible.
- VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
- }
- // String returns the string representation
- func (s ModifyClusterInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyClusterInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyClusterInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAllowVersionUpgrade sets the AllowVersionUpgrade field's value.
- func (s *ModifyClusterInput) SetAllowVersionUpgrade(v bool) *ModifyClusterInput {
- s.AllowVersionUpgrade = &v
- return s
- }
- // SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value.
- func (s *ModifyClusterInput) SetAutomatedSnapshotRetentionPeriod(v int64) *ModifyClusterInput {
- s.AutomatedSnapshotRetentionPeriod = &v
- return s
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *ModifyClusterInput) SetClusterIdentifier(v string) *ModifyClusterInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetClusterParameterGroupName sets the ClusterParameterGroupName field's value.
- func (s *ModifyClusterInput) SetClusterParameterGroupName(v string) *ModifyClusterInput {
- s.ClusterParameterGroupName = &v
- return s
- }
- // SetClusterSecurityGroups sets the ClusterSecurityGroups field's value.
- func (s *ModifyClusterInput) SetClusterSecurityGroups(v []*string) *ModifyClusterInput {
- s.ClusterSecurityGroups = v
- return s
- }
- // SetClusterType sets the ClusterType field's value.
- func (s *ModifyClusterInput) SetClusterType(v string) *ModifyClusterInput {
- s.ClusterType = &v
- return s
- }
- // SetClusterVersion sets the ClusterVersion field's value.
- func (s *ModifyClusterInput) SetClusterVersion(v string) *ModifyClusterInput {
- s.ClusterVersion = &v
- return s
- }
- // SetElasticIp sets the ElasticIp field's value.
- func (s *ModifyClusterInput) SetElasticIp(v string) *ModifyClusterInput {
- s.ElasticIp = &v
- return s
- }
- // SetEncrypted sets the Encrypted field's value.
- func (s *ModifyClusterInput) SetEncrypted(v bool) *ModifyClusterInput {
- s.Encrypted = &v
- return s
- }
- // SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value.
- func (s *ModifyClusterInput) SetEnhancedVpcRouting(v bool) *ModifyClusterInput {
- s.EnhancedVpcRouting = &v
- return s
- }
- // SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value.
- func (s *ModifyClusterInput) SetHsmClientCertificateIdentifier(v string) *ModifyClusterInput {
- s.HsmClientCertificateIdentifier = &v
- return s
- }
- // SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value.
- func (s *ModifyClusterInput) SetHsmConfigurationIdentifier(v string) *ModifyClusterInput {
- s.HsmConfigurationIdentifier = &v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *ModifyClusterInput) SetKmsKeyId(v string) *ModifyClusterInput {
- s.KmsKeyId = &v
- return s
- }
- // SetMaintenanceTrackName sets the MaintenanceTrackName field's value.
- func (s *ModifyClusterInput) SetMaintenanceTrackName(v string) *ModifyClusterInput {
- s.MaintenanceTrackName = &v
- return s
- }
- // SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.
- func (s *ModifyClusterInput) SetManualSnapshotRetentionPeriod(v int64) *ModifyClusterInput {
- s.ManualSnapshotRetentionPeriod = &v
- return s
- }
- // SetMasterUserPassword sets the MasterUserPassword field's value.
- func (s *ModifyClusterInput) SetMasterUserPassword(v string) *ModifyClusterInput {
- s.MasterUserPassword = &v
- return s
- }
- // SetNewClusterIdentifier sets the NewClusterIdentifier field's value.
- func (s *ModifyClusterInput) SetNewClusterIdentifier(v string) *ModifyClusterInput {
- s.NewClusterIdentifier = &v
- return s
- }
- // SetNodeType sets the NodeType field's value.
- func (s *ModifyClusterInput) SetNodeType(v string) *ModifyClusterInput {
- s.NodeType = &v
- return s
- }
- // SetNumberOfNodes sets the NumberOfNodes field's value.
- func (s *ModifyClusterInput) SetNumberOfNodes(v int64) *ModifyClusterInput {
- s.NumberOfNodes = &v
- return s
- }
- // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
- func (s *ModifyClusterInput) SetPreferredMaintenanceWindow(v string) *ModifyClusterInput {
- s.PreferredMaintenanceWindow = &v
- return s
- }
- // SetPubliclyAccessible sets the PubliclyAccessible field's value.
- func (s *ModifyClusterInput) SetPubliclyAccessible(v bool) *ModifyClusterInput {
- s.PubliclyAccessible = &v
- return s
- }
- // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
- func (s *ModifyClusterInput) SetVpcSecurityGroupIds(v []*string) *ModifyClusterInput {
- s.VpcSecurityGroupIds = v
- return s
- }
- type ModifyClusterMaintenanceInput struct {
- _ struct{} `type:"structure"`
- // A unique identifier for the cluster.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // A boolean indicating whether to enable the deferred maintenance window.
- DeferMaintenance *bool `type:"boolean"`
- // An integer indicating the duration of the maintenance window in days. If
- // you specify a duration, you can't specify an end time. The duration must
- // be 14 days or less.
- DeferMaintenanceDuration *int64 `type:"integer"`
- // A timestamp indicating end time for the deferred maintenance window. If you
- // specify an end time, you can't specify a duration.
- DeferMaintenanceEndTime *time.Time `type:"timestamp"`
- // A unique identifier for the deferred maintenance window.
- DeferMaintenanceIdentifier *string `type:"string"`
- // A timestamp indicating the start time for the deferred maintenance window.
- DeferMaintenanceStartTime *time.Time `type:"timestamp"`
- }
- // String returns the string representation
- func (s ModifyClusterMaintenanceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterMaintenanceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyClusterMaintenanceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyClusterMaintenanceInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *ModifyClusterMaintenanceInput) SetClusterIdentifier(v string) *ModifyClusterMaintenanceInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetDeferMaintenance sets the DeferMaintenance field's value.
- func (s *ModifyClusterMaintenanceInput) SetDeferMaintenance(v bool) *ModifyClusterMaintenanceInput {
- s.DeferMaintenance = &v
- return s
- }
- // SetDeferMaintenanceDuration sets the DeferMaintenanceDuration field's value.
- func (s *ModifyClusterMaintenanceInput) SetDeferMaintenanceDuration(v int64) *ModifyClusterMaintenanceInput {
- s.DeferMaintenanceDuration = &v
- return s
- }
- // SetDeferMaintenanceEndTime sets the DeferMaintenanceEndTime field's value.
- func (s *ModifyClusterMaintenanceInput) SetDeferMaintenanceEndTime(v time.Time) *ModifyClusterMaintenanceInput {
- s.DeferMaintenanceEndTime = &v
- return s
- }
- // SetDeferMaintenanceIdentifier sets the DeferMaintenanceIdentifier field's value.
- func (s *ModifyClusterMaintenanceInput) SetDeferMaintenanceIdentifier(v string) *ModifyClusterMaintenanceInput {
- s.DeferMaintenanceIdentifier = &v
- return s
- }
- // SetDeferMaintenanceStartTime sets the DeferMaintenanceStartTime field's value.
- func (s *ModifyClusterMaintenanceInput) SetDeferMaintenanceStartTime(v time.Time) *ModifyClusterMaintenanceInput {
- s.DeferMaintenanceStartTime = &v
- return s
- }
- type ModifyClusterMaintenanceOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s ModifyClusterMaintenanceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterMaintenanceOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *ModifyClusterMaintenanceOutput) SetCluster(v *Cluster) *ModifyClusterMaintenanceOutput {
- s.Cluster = v
- return s
- }
- type ModifyClusterOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s ModifyClusterOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *ModifyClusterOutput) SetCluster(v *Cluster) *ModifyClusterOutput {
- s.Cluster = v
- return s
- }
- type ModifyClusterParameterGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of the parameter group to be modified.
- //
- // ParameterGroupName is a required field
- ParameterGroupName *string `type:"string" required:"true"`
- // An array of parameters to be modified. A maximum of 20 parameters can be
- // modified in a single request.
- //
- // For each parameter to be modified, you must supply at least the parameter
- // name and parameter value; other name-value pairs of the parameter are optional.
- //
- // For the workload management (WLM) configuration, you must supply all the
- // name-value pairs in the wlm_json_configuration parameter.
- //
- // Parameters is a required field
- Parameters []*Parameter `locationNameList:"Parameter" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ModifyClusterParameterGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterParameterGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyClusterParameterGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyClusterParameterGroupInput"}
- if s.ParameterGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ParameterGroupName"))
- }
- if s.Parameters == nil {
- invalidParams.Add(request.NewErrParamRequired("Parameters"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetParameterGroupName sets the ParameterGroupName field's value.
- func (s *ModifyClusterParameterGroupInput) SetParameterGroupName(v string) *ModifyClusterParameterGroupInput {
- s.ParameterGroupName = &v
- return s
- }
- // SetParameters sets the Parameters field's value.
- func (s *ModifyClusterParameterGroupInput) SetParameters(v []*Parameter) *ModifyClusterParameterGroupInput {
- s.Parameters = v
- return s
- }
- type ModifyClusterSnapshotInput struct {
- _ struct{} `type:"structure"`
- // A Boolean option to override an exception if the retention period has already
- // passed.
- Force *bool `type:"boolean"`
- // The number of days that a manual snapshot is retained. If the value is -1,
- // the manual snapshot is retained indefinitely.
- //
- // If the manual snapshot falls outside of the new retention period, you can
- // specify the force option to immediately delete the snapshot.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- ManualSnapshotRetentionPeriod *int64 `type:"integer"`
- // The identifier of the snapshot whose setting you want to modify.
- //
- // SnapshotIdentifier is a required field
- SnapshotIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ModifyClusterSnapshotInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterSnapshotInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyClusterSnapshotInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyClusterSnapshotInput"}
- if s.SnapshotIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetForce sets the Force field's value.
- func (s *ModifyClusterSnapshotInput) SetForce(v bool) *ModifyClusterSnapshotInput {
- s.Force = &v
- return s
- }
- // SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.
- func (s *ModifyClusterSnapshotInput) SetManualSnapshotRetentionPeriod(v int64) *ModifyClusterSnapshotInput {
- s.ManualSnapshotRetentionPeriod = &v
- return s
- }
- // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
- func (s *ModifyClusterSnapshotInput) SetSnapshotIdentifier(v string) *ModifyClusterSnapshotInput {
- s.SnapshotIdentifier = &v
- return s
- }
- type ModifyClusterSnapshotOutput struct {
- _ struct{} `type:"structure"`
- // Describes a snapshot.
- Snapshot *Snapshot `type:"structure"`
- }
- // String returns the string representation
- func (s ModifyClusterSnapshotOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterSnapshotOutput) GoString() string {
- return s.String()
- }
- // SetSnapshot sets the Snapshot field's value.
- func (s *ModifyClusterSnapshotOutput) SetSnapshot(v *Snapshot) *ModifyClusterSnapshotOutput {
- s.Snapshot = v
- return s
- }
- type ModifyClusterSnapshotScheduleInput struct {
- _ struct{} `type:"structure"`
- // A unique identifier for the cluster whose snapshot schedule you want to modify.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // A boolean to indicate whether to remove the assoiciation between the cluster
- // and the schedule.
- DisassociateSchedule *bool `type:"boolean"`
- // A unique alphanumeric identifier for the schedule that you want to associate
- // with the cluster.
- ScheduleIdentifier *string `type:"string"`
- }
- // String returns the string representation
- func (s ModifyClusterSnapshotScheduleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterSnapshotScheduleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyClusterSnapshotScheduleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyClusterSnapshotScheduleInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *ModifyClusterSnapshotScheduleInput) SetClusterIdentifier(v string) *ModifyClusterSnapshotScheduleInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetDisassociateSchedule sets the DisassociateSchedule field's value.
- func (s *ModifyClusterSnapshotScheduleInput) SetDisassociateSchedule(v bool) *ModifyClusterSnapshotScheduleInput {
- s.DisassociateSchedule = &v
- return s
- }
- // SetScheduleIdentifier sets the ScheduleIdentifier field's value.
- func (s *ModifyClusterSnapshotScheduleInput) SetScheduleIdentifier(v string) *ModifyClusterSnapshotScheduleInput {
- s.ScheduleIdentifier = &v
- return s
- }
- type ModifyClusterSnapshotScheduleOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ModifyClusterSnapshotScheduleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterSnapshotScheduleOutput) GoString() string {
- return s.String()
- }
- type ModifyClusterSubnetGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of the subnet group to be modified.
- //
- // ClusterSubnetGroupName is a required field
- ClusterSubnetGroupName *string `type:"string" required:"true"`
- // A text description of the subnet group to be modified.
- Description *string `type:"string"`
- // An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a
- // single request.
- //
- // SubnetIds is a required field
- SubnetIds []*string `locationNameList:"SubnetIdentifier" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ModifyClusterSubnetGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterSubnetGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyClusterSubnetGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyClusterSubnetGroupInput"}
- if s.ClusterSubnetGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterSubnetGroupName"))
- }
- if s.SubnetIds == nil {
- invalidParams.Add(request.NewErrParamRequired("SubnetIds"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value.
- func (s *ModifyClusterSubnetGroupInput) SetClusterSubnetGroupName(v string) *ModifyClusterSubnetGroupInput {
- s.ClusterSubnetGroupName = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *ModifyClusterSubnetGroupInput) SetDescription(v string) *ModifyClusterSubnetGroupInput {
- s.Description = &v
- return s
- }
- // SetSubnetIds sets the SubnetIds field's value.
- func (s *ModifyClusterSubnetGroupInput) SetSubnetIds(v []*string) *ModifyClusterSubnetGroupInput {
- s.SubnetIds = v
- return s
- }
- type ModifyClusterSubnetGroupOutput struct {
- _ struct{} `type:"structure"`
- // Describes a subnet group.
- ClusterSubnetGroup *ClusterSubnetGroup `type:"structure"`
- }
- // String returns the string representation
- func (s ModifyClusterSubnetGroupOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyClusterSubnetGroupOutput) GoString() string {
- return s.String()
- }
- // SetClusterSubnetGroup sets the ClusterSubnetGroup field's value.
- func (s *ModifyClusterSubnetGroupOutput) SetClusterSubnetGroup(v *ClusterSubnetGroup) *ModifyClusterSubnetGroupOutput {
- s.ClusterSubnetGroup = v
- return s
- }
- type ModifyEventSubscriptionInput struct {
- _ struct{} `type:"structure"`
- // A Boolean value indicating if the subscription is enabled. true indicates
- // the subscription is enabled
- Enabled *bool `type:"boolean"`
- // Specifies the Amazon Redshift event categories to be published by the event
- // notification subscription.
- //
- // Values: configuration, management, monitoring, security
- EventCategories []*string `locationNameList:"EventCategory" type:"list"`
- // Specifies the Amazon Redshift event severity to be published by the event
- // notification subscription.
- //
- // Values: ERROR, INFO
- Severity *string `type:"string"`
- // The Amazon Resource Name (ARN) of the SNS topic to be used by the event notification
- // subscription.
- SnsTopicArn *string `type:"string"`
- // A list of one or more identifiers of Amazon Redshift source objects. All
- // of the objects must be of the same type as was specified in the source type
- // parameter. The event subscription will return only events generated by the
- // specified objects. If not specified, then events are returned for all objects
- // within the source type specified.
- //
- // Example: my-cluster-1, my-cluster-2
- //
- // Example: my-snapshot-20131010
- SourceIds []*string `locationNameList:"SourceId" type:"list"`
- // The type of source that will be generating the events. For example, if you
- // want to be notified of events generated by a cluster, you would set this
- // parameter to cluster. If this value is not specified, events are returned
- // for all Amazon Redshift objects in your AWS account. You must specify a source
- // type in order to specify source IDs.
- //
- // Valid values: cluster, cluster-parameter-group, cluster-security-group, and
- // cluster-snapshot.
- SourceType *string `type:"string"`
- // The name of the modified Amazon Redshift event notification subscription.
- //
- // SubscriptionName is a required field
- SubscriptionName *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ModifyEventSubscriptionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyEventSubscriptionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifyEventSubscriptionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifyEventSubscriptionInput"}
- if s.SubscriptionName == nil {
- invalidParams.Add(request.NewErrParamRequired("SubscriptionName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEnabled sets the Enabled field's value.
- func (s *ModifyEventSubscriptionInput) SetEnabled(v bool) *ModifyEventSubscriptionInput {
- s.Enabled = &v
- return s
- }
- // SetEventCategories sets the EventCategories field's value.
- func (s *ModifyEventSubscriptionInput) SetEventCategories(v []*string) *ModifyEventSubscriptionInput {
- s.EventCategories = v
- return s
- }
- // SetSeverity sets the Severity field's value.
- func (s *ModifyEventSubscriptionInput) SetSeverity(v string) *ModifyEventSubscriptionInput {
- s.Severity = &v
- return s
- }
- // SetSnsTopicArn sets the SnsTopicArn field's value.
- func (s *ModifyEventSubscriptionInput) SetSnsTopicArn(v string) *ModifyEventSubscriptionInput {
- s.SnsTopicArn = &v
- return s
- }
- // SetSourceIds sets the SourceIds field's value.
- func (s *ModifyEventSubscriptionInput) SetSourceIds(v []*string) *ModifyEventSubscriptionInput {
- s.SourceIds = v
- return s
- }
- // SetSourceType sets the SourceType field's value.
- func (s *ModifyEventSubscriptionInput) SetSourceType(v string) *ModifyEventSubscriptionInput {
- s.SourceType = &v
- return s
- }
- // SetSubscriptionName sets the SubscriptionName field's value.
- func (s *ModifyEventSubscriptionInput) SetSubscriptionName(v string) *ModifyEventSubscriptionInput {
- s.SubscriptionName = &v
- return s
- }
- type ModifyEventSubscriptionOutput struct {
- _ struct{} `type:"structure"`
- // Describes event subscriptions.
- EventSubscription *EventSubscription `type:"structure"`
- }
- // String returns the string representation
- func (s ModifyEventSubscriptionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifyEventSubscriptionOutput) GoString() string {
- return s.String()
- }
- // SetEventSubscription sets the EventSubscription field's value.
- func (s *ModifyEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *ModifyEventSubscriptionOutput {
- s.EventSubscription = v
- return s
- }
- type ModifySnapshotCopyRetentionPeriodInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier of the cluster for which you want to change the retention
- // period for either automated or manual snapshots that are copied to a destination
- // AWS Region.
- //
- // Constraints: Must be the valid name of an existing cluster that has cross-region
- // snapshot copy enabled.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // Indicates whether to apply the snapshot retention period to newly copied
- // manual snapshots instead of automated snapshots.
- Manual *bool `type:"boolean"`
- // The number of days to retain automated snapshots in the destination AWS Region
- // after they are copied from the source AWS Region.
- //
- // By default, this only changes the retention period of copied automated snapshots.
- //
- // If you decrease the retention period for automated snapshots that are copied
- // to a destination AWS Region, Amazon Redshift deletes any existing automated
- // snapshots that were copied to the destination AWS Region and that fall outside
- // of the new retention period.
- //
- // Constraints: Must be at least 1 and no more than 35 for automated snapshots.
- //
- // If you specify the manual option, only newly copied manual snapshots will
- // have the new retention period.
- //
- // If you specify the value of -1 newly copied manual snapshots are retained
- // indefinitely.
- //
- // Constraints: The number of days must be either -1 or an integer between 1
- // and 3,653 for manual snapshots.
- //
- // RetentionPeriod is a required field
- RetentionPeriod *int64 `type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s ModifySnapshotCopyRetentionPeriodInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifySnapshotCopyRetentionPeriodInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifySnapshotCopyRetentionPeriodInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifySnapshotCopyRetentionPeriodInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if s.RetentionPeriod == nil {
- invalidParams.Add(request.NewErrParamRequired("RetentionPeriod"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *ModifySnapshotCopyRetentionPeriodInput) SetClusterIdentifier(v string) *ModifySnapshotCopyRetentionPeriodInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetManual sets the Manual field's value.
- func (s *ModifySnapshotCopyRetentionPeriodInput) SetManual(v bool) *ModifySnapshotCopyRetentionPeriodInput {
- s.Manual = &v
- return s
- }
- // SetRetentionPeriod sets the RetentionPeriod field's value.
- func (s *ModifySnapshotCopyRetentionPeriodInput) SetRetentionPeriod(v int64) *ModifySnapshotCopyRetentionPeriodInput {
- s.RetentionPeriod = &v
- return s
- }
- type ModifySnapshotCopyRetentionPeriodOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s ModifySnapshotCopyRetentionPeriodOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifySnapshotCopyRetentionPeriodOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *ModifySnapshotCopyRetentionPeriodOutput) SetCluster(v *Cluster) *ModifySnapshotCopyRetentionPeriodOutput {
- s.Cluster = v
- return s
- }
- type ModifySnapshotScheduleInput struct {
- _ struct{} `type:"structure"`
- // An updated list of schedule definitions. A schedule definition is made up
- // of schedule expressions, for example, "cron(30 12 *)" or "rate(12 hours)".
- //
- // ScheduleDefinitions is a required field
- ScheduleDefinitions []*string `locationNameList:"ScheduleDefinition" type:"list" required:"true"`
- // A unique alphanumeric identifier of the schedule to modify.
- //
- // ScheduleIdentifier is a required field
- ScheduleIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ModifySnapshotScheduleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifySnapshotScheduleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ModifySnapshotScheduleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ModifySnapshotScheduleInput"}
- if s.ScheduleDefinitions == nil {
- invalidParams.Add(request.NewErrParamRequired("ScheduleDefinitions"))
- }
- if s.ScheduleIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ScheduleIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetScheduleDefinitions sets the ScheduleDefinitions field's value.
- func (s *ModifySnapshotScheduleInput) SetScheduleDefinitions(v []*string) *ModifySnapshotScheduleInput {
- s.ScheduleDefinitions = v
- return s
- }
- // SetScheduleIdentifier sets the ScheduleIdentifier field's value.
- func (s *ModifySnapshotScheduleInput) SetScheduleIdentifier(v string) *ModifySnapshotScheduleInput {
- s.ScheduleIdentifier = &v
- return s
- }
- // Describes a snapshot schedule. You can set a regular interval for creating
- // snapshots of a cluster. You can also schedule snapshots for specific dates.
- type ModifySnapshotScheduleOutput struct {
- _ struct{} `type:"structure"`
- AssociatedClusterCount *int64 `type:"integer"`
- AssociatedClusters []*ClusterAssociatedToSchedule `locationNameList:"ClusterAssociatedToSchedule" type:"list"`
- NextInvocations []*time.Time `locationNameList:"SnapshotTime" type:"list"`
- // A list of ScheduleDefinitions
- ScheduleDefinitions []*string `locationNameList:"ScheduleDefinition" type:"list"`
- // The description of the schedule.
- ScheduleDescription *string `type:"string"`
- // A unique identifier for the schedule.
- ScheduleIdentifier *string `type:"string"`
- // An optional set of tags describing the schedule.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s ModifySnapshotScheduleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ModifySnapshotScheduleOutput) GoString() string {
- return s.String()
- }
- // SetAssociatedClusterCount sets the AssociatedClusterCount field's value.
- func (s *ModifySnapshotScheduleOutput) SetAssociatedClusterCount(v int64) *ModifySnapshotScheduleOutput {
- s.AssociatedClusterCount = &v
- return s
- }
- // SetAssociatedClusters sets the AssociatedClusters field's value.
- func (s *ModifySnapshotScheduleOutput) SetAssociatedClusters(v []*ClusterAssociatedToSchedule) *ModifySnapshotScheduleOutput {
- s.AssociatedClusters = v
- return s
- }
- // SetNextInvocations sets the NextInvocations field's value.
- func (s *ModifySnapshotScheduleOutput) SetNextInvocations(v []*time.Time) *ModifySnapshotScheduleOutput {
- s.NextInvocations = v
- return s
- }
- // SetScheduleDefinitions sets the ScheduleDefinitions field's value.
- func (s *ModifySnapshotScheduleOutput) SetScheduleDefinitions(v []*string) *ModifySnapshotScheduleOutput {
- s.ScheduleDefinitions = v
- return s
- }
- // SetScheduleDescription sets the ScheduleDescription field's value.
- func (s *ModifySnapshotScheduleOutput) SetScheduleDescription(v string) *ModifySnapshotScheduleOutput {
- s.ScheduleDescription = &v
- return s
- }
- // SetScheduleIdentifier sets the ScheduleIdentifier field's value.
- func (s *ModifySnapshotScheduleOutput) SetScheduleIdentifier(v string) *ModifySnapshotScheduleOutput {
- s.ScheduleIdentifier = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *ModifySnapshotScheduleOutput) SetTags(v []*Tag) *ModifySnapshotScheduleOutput {
- s.Tags = v
- return s
- }
- // Describes an orderable cluster option.
- type OrderableClusterOption struct {
- _ struct{} `type:"structure"`
- // A list of availability zones for the orderable cluster.
- AvailabilityZones []*AvailabilityZone `locationNameList:"AvailabilityZone" type:"list"`
- // The cluster type, for example multi-node.
- ClusterType *string `type:"string"`
- // The version of the orderable cluster.
- ClusterVersion *string `type:"string"`
- // The node type for the orderable cluster.
- NodeType *string `type:"string"`
- }
- // String returns the string representation
- func (s OrderableClusterOption) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OrderableClusterOption) GoString() string {
- return s.String()
- }
- // SetAvailabilityZones sets the AvailabilityZones field's value.
- func (s *OrderableClusterOption) SetAvailabilityZones(v []*AvailabilityZone) *OrderableClusterOption {
- s.AvailabilityZones = v
- return s
- }
- // SetClusterType sets the ClusterType field's value.
- func (s *OrderableClusterOption) SetClusterType(v string) *OrderableClusterOption {
- s.ClusterType = &v
- return s
- }
- // SetClusterVersion sets the ClusterVersion field's value.
- func (s *OrderableClusterOption) SetClusterVersion(v string) *OrderableClusterOption {
- s.ClusterVersion = &v
- return s
- }
- // SetNodeType sets the NodeType field's value.
- func (s *OrderableClusterOption) SetNodeType(v string) *OrderableClusterOption {
- s.NodeType = &v
- return s
- }
- // Describes a parameter in a cluster parameter group.
- type Parameter struct {
- _ struct{} `type:"structure"`
- // The valid range of values for the parameter.
- AllowedValues *string `type:"string"`
- // Specifies how to apply the WLM configuration parameter. Some properties can
- // be applied dynamically, while other properties require that any associated
- // clusters be rebooted for the configuration changes to be applied. For more
- // information about parameters and parameter groups, go to Amazon Redshift
- // Parameter Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html)
- // in the Amazon Redshift Cluster Management Guide.
- ApplyType *string `type:"string" enum:"ParameterApplyType"`
- // The data type of the parameter.
- DataType *string `type:"string"`
- // A description of the parameter.
- Description *string `type:"string"`
- // If true, the parameter can be modified. Some parameters have security or
- // operational implications that prevent them from being changed.
- IsModifiable *bool `type:"boolean"`
- // The earliest engine version to which the parameter can apply.
- MinimumEngineVersion *string `type:"string"`
- // The name of the parameter.
- ParameterName *string `type:"string"`
- // The value of the parameter.
- ParameterValue *string `type:"string"`
- // The source of the parameter value, such as "engine-default" or "user".
- Source *string `type:"string"`
- }
- // String returns the string representation
- func (s Parameter) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Parameter) GoString() string {
- return s.String()
- }
- // SetAllowedValues sets the AllowedValues field's value.
- func (s *Parameter) SetAllowedValues(v string) *Parameter {
- s.AllowedValues = &v
- return s
- }
- // SetApplyType sets the ApplyType field's value.
- func (s *Parameter) SetApplyType(v string) *Parameter {
- s.ApplyType = &v
- return s
- }
- // SetDataType sets the DataType field's value.
- func (s *Parameter) SetDataType(v string) *Parameter {
- s.DataType = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *Parameter) SetDescription(v string) *Parameter {
- s.Description = &v
- return s
- }
- // SetIsModifiable sets the IsModifiable field's value.
- func (s *Parameter) SetIsModifiable(v bool) *Parameter {
- s.IsModifiable = &v
- return s
- }
- // SetMinimumEngineVersion sets the MinimumEngineVersion field's value.
- func (s *Parameter) SetMinimumEngineVersion(v string) *Parameter {
- s.MinimumEngineVersion = &v
- return s
- }
- // SetParameterName sets the ParameterName field's value.
- func (s *Parameter) SetParameterName(v string) *Parameter {
- s.ParameterName = &v
- return s
- }
- // SetParameterValue sets the ParameterValue field's value.
- func (s *Parameter) SetParameterValue(v string) *Parameter {
- s.ParameterValue = &v
- return s
- }
- // SetSource sets the Source field's value.
- func (s *Parameter) SetSource(v string) *Parameter {
- s.Source = &v
- return s
- }
- // Describes cluster attributes that are in a pending state. A change to one
- // or more the attributes was requested and is in progress or will be applied.
- type PendingModifiedValues struct {
- _ struct{} `type:"structure"`
- // The pending or in-progress change of the automated snapshot retention period.
- AutomatedSnapshotRetentionPeriod *int64 `type:"integer"`
- // The pending or in-progress change of the new identifier for the cluster.
- ClusterIdentifier *string `type:"string"`
- // The pending or in-progress change of the cluster type.
- ClusterType *string `type:"string"`
- // The pending or in-progress change of the service version.
- ClusterVersion *string `type:"string"`
- // The encryption type for a cluster. Possible values are: KMS and None. For
- // the China region the possible values are None, and Legacy.
- EncryptionType *string `type:"string"`
- // An option that specifies whether to create the cluster with enhanced VPC
- // routing enabled. To create a cluster that uses enhanced VPC routing, the
- // cluster must be in a VPC. For more information, see Enhanced VPC Routing
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // If this option is true, enhanced VPC routing is enabled.
- //
- // Default: false
- EnhancedVpcRouting *bool `type:"boolean"`
- // The name of the maintenance track that the cluster will change to during
- // the next maintenance window.
- MaintenanceTrackName *string `type:"string"`
- // The pending or in-progress change of the master user password for the cluster.
- MasterUserPassword *string `type:"string"`
- // The pending or in-progress change of the cluster's node type.
- NodeType *string `type:"string"`
- // The pending or in-progress change of the number of nodes in the cluster.
- NumberOfNodes *int64 `type:"integer"`
- // The pending or in-progress change of the ability to connect to the cluster
- // from the public network.
- PubliclyAccessible *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s PendingModifiedValues) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PendingModifiedValues) GoString() string {
- return s.String()
- }
- // SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value.
- func (s *PendingModifiedValues) SetAutomatedSnapshotRetentionPeriod(v int64) *PendingModifiedValues {
- s.AutomatedSnapshotRetentionPeriod = &v
- return s
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *PendingModifiedValues) SetClusterIdentifier(v string) *PendingModifiedValues {
- s.ClusterIdentifier = &v
- return s
- }
- // SetClusterType sets the ClusterType field's value.
- func (s *PendingModifiedValues) SetClusterType(v string) *PendingModifiedValues {
- s.ClusterType = &v
- return s
- }
- // SetClusterVersion sets the ClusterVersion field's value.
- func (s *PendingModifiedValues) SetClusterVersion(v string) *PendingModifiedValues {
- s.ClusterVersion = &v
- return s
- }
- // SetEncryptionType sets the EncryptionType field's value.
- func (s *PendingModifiedValues) SetEncryptionType(v string) *PendingModifiedValues {
- s.EncryptionType = &v
- return s
- }
- // SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value.
- func (s *PendingModifiedValues) SetEnhancedVpcRouting(v bool) *PendingModifiedValues {
- s.EnhancedVpcRouting = &v
- return s
- }
- // SetMaintenanceTrackName sets the MaintenanceTrackName field's value.
- func (s *PendingModifiedValues) SetMaintenanceTrackName(v string) *PendingModifiedValues {
- s.MaintenanceTrackName = &v
- return s
- }
- // SetMasterUserPassword sets the MasterUserPassword field's value.
- func (s *PendingModifiedValues) SetMasterUserPassword(v string) *PendingModifiedValues {
- s.MasterUserPassword = &v
- return s
- }
- // SetNodeType sets the NodeType field's value.
- func (s *PendingModifiedValues) SetNodeType(v string) *PendingModifiedValues {
- s.NodeType = &v
- return s
- }
- // SetNumberOfNodes sets the NumberOfNodes field's value.
- func (s *PendingModifiedValues) SetNumberOfNodes(v int64) *PendingModifiedValues {
- s.NumberOfNodes = &v
- return s
- }
- // SetPubliclyAccessible sets the PubliclyAccessible field's value.
- func (s *PendingModifiedValues) SetPubliclyAccessible(v bool) *PendingModifiedValues {
- s.PubliclyAccessible = &v
- return s
- }
- type PurchaseReservedNodeOfferingInput struct {
- _ struct{} `type:"structure"`
- // The number of reserved nodes that you want to purchase.
- //
- // Default: 1
- NodeCount *int64 `type:"integer"`
- // The unique identifier of the reserved node offering you want to purchase.
- //
- // ReservedNodeOfferingId is a required field
- ReservedNodeOfferingId *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PurchaseReservedNodeOfferingInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PurchaseReservedNodeOfferingInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PurchaseReservedNodeOfferingInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedNodeOfferingInput"}
- if s.ReservedNodeOfferingId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReservedNodeOfferingId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetNodeCount sets the NodeCount field's value.
- func (s *PurchaseReservedNodeOfferingInput) SetNodeCount(v int64) *PurchaseReservedNodeOfferingInput {
- s.NodeCount = &v
- return s
- }
- // SetReservedNodeOfferingId sets the ReservedNodeOfferingId field's value.
- func (s *PurchaseReservedNodeOfferingInput) SetReservedNodeOfferingId(v string) *PurchaseReservedNodeOfferingInput {
- s.ReservedNodeOfferingId = &v
- return s
- }
- type PurchaseReservedNodeOfferingOutput struct {
- _ struct{} `type:"structure"`
- // Describes a reserved node. You can call the DescribeReservedNodeOfferings
- // API to obtain the available reserved node offerings.
- ReservedNode *ReservedNode `type:"structure"`
- }
- // String returns the string representation
- func (s PurchaseReservedNodeOfferingOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PurchaseReservedNodeOfferingOutput) GoString() string {
- return s.String()
- }
- // SetReservedNode sets the ReservedNode field's value.
- func (s *PurchaseReservedNodeOfferingOutput) SetReservedNode(v *ReservedNode) *PurchaseReservedNodeOfferingOutput {
- s.ReservedNode = v
- return s
- }
- type RebootClusterInput struct {
- _ struct{} `type:"structure"`
- // The cluster identifier.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RebootClusterInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RebootClusterInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RebootClusterInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RebootClusterInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *RebootClusterInput) SetClusterIdentifier(v string) *RebootClusterInput {
- s.ClusterIdentifier = &v
- return s
- }
- type RebootClusterOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s RebootClusterOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RebootClusterOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *RebootClusterOutput) SetCluster(v *Cluster) *RebootClusterOutput {
- s.Cluster = v
- return s
- }
- // Describes a recurring charge.
- type RecurringCharge struct {
- _ struct{} `type:"structure"`
- // The amount charged per the period of time specified by the recurring charge
- // frequency.
- RecurringChargeAmount *float64 `type:"double"`
- // The frequency at which the recurring charge amount is applied.
- RecurringChargeFrequency *string `type:"string"`
- }
- // String returns the string representation
- func (s RecurringCharge) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RecurringCharge) GoString() string {
- return s.String()
- }
- // SetRecurringChargeAmount sets the RecurringChargeAmount field's value.
- func (s *RecurringCharge) SetRecurringChargeAmount(v float64) *RecurringCharge {
- s.RecurringChargeAmount = &v
- return s
- }
- // SetRecurringChargeFrequency sets the RecurringChargeFrequency field's value.
- func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge {
- s.RecurringChargeFrequency = &v
- return s
- }
- // Describes a reserved node. You can call the DescribeReservedNodeOfferings
- // API to obtain the available reserved node offerings.
- type ReservedNode struct {
- _ struct{} `type:"structure"`
- // The currency code for the reserved cluster.
- CurrencyCode *string `type:"string"`
- // The duration of the node reservation in seconds.
- Duration *int64 `type:"integer"`
- // The fixed cost Amazon Redshift charges you for this reserved node.
- FixedPrice *float64 `type:"double"`
- // The number of reserved compute nodes.
- NodeCount *int64 `type:"integer"`
- // The node type of the reserved node.
- NodeType *string `type:"string"`
- // The anticipated utilization of the reserved node, as defined in the reserved
- // node offering.
- OfferingType *string `type:"string"`
- // The recurring charges for the reserved node.
- RecurringCharges []*RecurringCharge `locationNameList:"RecurringCharge" type:"list"`
- // The unique identifier for the reservation.
- ReservedNodeId *string `type:"string"`
- // The identifier for the reserved node offering.
- ReservedNodeOfferingId *string `type:"string"`
- ReservedNodeOfferingType *string `type:"string" enum:"ReservedNodeOfferingType"`
- // The time the reservation started. You purchase a reserved node offering for
- // a duration. This is the start time of that duration.
- StartTime *time.Time `type:"timestamp"`
- // The state of the reserved compute node.
- //
- // Possible Values:
- //
- // * pending-payment-This reserved node has recently been purchased, and
- // the sale has been approved, but payment has not yet been confirmed.
- //
- // * active-This reserved node is owned by the caller and is available for
- // use.
- //
- // * payment-failed-Payment failed for the purchase attempt.
- //
- // * retired-The reserved node is no longer available.
- //
- // * exchanging-The owner is exchanging the reserved node for another reserved
- // node.
- State *string `type:"string"`
- // The hourly rate Amazon Redshift charges you for this reserved node.
- UsagePrice *float64 `type:"double"`
- }
- // String returns the string representation
- func (s ReservedNode) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReservedNode) GoString() string {
- return s.String()
- }
- // SetCurrencyCode sets the CurrencyCode field's value.
- func (s *ReservedNode) SetCurrencyCode(v string) *ReservedNode {
- s.CurrencyCode = &v
- return s
- }
- // SetDuration sets the Duration field's value.
- func (s *ReservedNode) SetDuration(v int64) *ReservedNode {
- s.Duration = &v
- return s
- }
- // SetFixedPrice sets the FixedPrice field's value.
- func (s *ReservedNode) SetFixedPrice(v float64) *ReservedNode {
- s.FixedPrice = &v
- return s
- }
- // SetNodeCount sets the NodeCount field's value.
- func (s *ReservedNode) SetNodeCount(v int64) *ReservedNode {
- s.NodeCount = &v
- return s
- }
- // SetNodeType sets the NodeType field's value.
- func (s *ReservedNode) SetNodeType(v string) *ReservedNode {
- s.NodeType = &v
- return s
- }
- // SetOfferingType sets the OfferingType field's value.
- func (s *ReservedNode) SetOfferingType(v string) *ReservedNode {
- s.OfferingType = &v
- return s
- }
- // SetRecurringCharges sets the RecurringCharges field's value.
- func (s *ReservedNode) SetRecurringCharges(v []*RecurringCharge) *ReservedNode {
- s.RecurringCharges = v
- return s
- }
- // SetReservedNodeId sets the ReservedNodeId field's value.
- func (s *ReservedNode) SetReservedNodeId(v string) *ReservedNode {
- s.ReservedNodeId = &v
- return s
- }
- // SetReservedNodeOfferingId sets the ReservedNodeOfferingId field's value.
- func (s *ReservedNode) SetReservedNodeOfferingId(v string) *ReservedNode {
- s.ReservedNodeOfferingId = &v
- return s
- }
- // SetReservedNodeOfferingType sets the ReservedNodeOfferingType field's value.
- func (s *ReservedNode) SetReservedNodeOfferingType(v string) *ReservedNode {
- s.ReservedNodeOfferingType = &v
- return s
- }
- // SetStartTime sets the StartTime field's value.
- func (s *ReservedNode) SetStartTime(v time.Time) *ReservedNode {
- s.StartTime = &v
- return s
- }
- // SetState sets the State field's value.
- func (s *ReservedNode) SetState(v string) *ReservedNode {
- s.State = &v
- return s
- }
- // SetUsagePrice sets the UsagePrice field's value.
- func (s *ReservedNode) SetUsagePrice(v float64) *ReservedNode {
- s.UsagePrice = &v
- return s
- }
- // Describes a reserved node offering.
- type ReservedNodeOffering struct {
- _ struct{} `type:"structure"`
- // The currency code for the compute nodes offering.
- CurrencyCode *string `type:"string"`
- // The duration, in seconds, for which the offering will reserve the node.
- Duration *int64 `type:"integer"`
- // The upfront fixed charge you will pay to purchase the specific reserved node
- // offering.
- FixedPrice *float64 `type:"double"`
- // The node type offered by the reserved node offering.
- NodeType *string `type:"string"`
- // The anticipated utilization of the reserved node, as defined in the reserved
- // node offering.
- OfferingType *string `type:"string"`
- // The charge to your account regardless of whether you are creating any clusters
- // using the node offering. Recurring charges are only in effect for heavy-utilization
- // reserved nodes.
- RecurringCharges []*RecurringCharge `locationNameList:"RecurringCharge" type:"list"`
- // The offering identifier.
- ReservedNodeOfferingId *string `type:"string"`
- ReservedNodeOfferingType *string `type:"string" enum:"ReservedNodeOfferingType"`
- // The rate you are charged for each hour the cluster that is using the offering
- // is running.
- UsagePrice *float64 `type:"double"`
- }
- // String returns the string representation
- func (s ReservedNodeOffering) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReservedNodeOffering) GoString() string {
- return s.String()
- }
- // SetCurrencyCode sets the CurrencyCode field's value.
- func (s *ReservedNodeOffering) SetCurrencyCode(v string) *ReservedNodeOffering {
- s.CurrencyCode = &v
- return s
- }
- // SetDuration sets the Duration field's value.
- func (s *ReservedNodeOffering) SetDuration(v int64) *ReservedNodeOffering {
- s.Duration = &v
- return s
- }
- // SetFixedPrice sets the FixedPrice field's value.
- func (s *ReservedNodeOffering) SetFixedPrice(v float64) *ReservedNodeOffering {
- s.FixedPrice = &v
- return s
- }
- // SetNodeType sets the NodeType field's value.
- func (s *ReservedNodeOffering) SetNodeType(v string) *ReservedNodeOffering {
- s.NodeType = &v
- return s
- }
- // SetOfferingType sets the OfferingType field's value.
- func (s *ReservedNodeOffering) SetOfferingType(v string) *ReservedNodeOffering {
- s.OfferingType = &v
- return s
- }
- // SetRecurringCharges sets the RecurringCharges field's value.
- func (s *ReservedNodeOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedNodeOffering {
- s.RecurringCharges = v
- return s
- }
- // SetReservedNodeOfferingId sets the ReservedNodeOfferingId field's value.
- func (s *ReservedNodeOffering) SetReservedNodeOfferingId(v string) *ReservedNodeOffering {
- s.ReservedNodeOfferingId = &v
- return s
- }
- // SetReservedNodeOfferingType sets the ReservedNodeOfferingType field's value.
- func (s *ReservedNodeOffering) SetReservedNodeOfferingType(v string) *ReservedNodeOffering {
- s.ReservedNodeOfferingType = &v
- return s
- }
- // SetUsagePrice sets the UsagePrice field's value.
- func (s *ReservedNodeOffering) SetUsagePrice(v float64) *ReservedNodeOffering {
- s.UsagePrice = &v
- return s
- }
- type ResetClusterParameterGroupInput struct {
- _ struct{} `type:"structure"`
- // The name of the cluster parameter group to be reset.
- //
- // ParameterGroupName is a required field
- ParameterGroupName *string `type:"string" required:"true"`
- // An array of names of parameters to be reset. If ResetAllParameters option
- // is not used, then at least one parameter name must be supplied.
- //
- // Constraints: A maximum of 20 parameters can be reset in a single request.
- Parameters []*Parameter `locationNameList:"Parameter" type:"list"`
- // If true, all parameters in the specified parameter group will be reset to
- // their default values.
- //
- // Default: true
- ResetAllParameters *bool `type:"boolean"`
- }
- // String returns the string representation
- func (s ResetClusterParameterGroupInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResetClusterParameterGroupInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ResetClusterParameterGroupInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ResetClusterParameterGroupInput"}
- if s.ParameterGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ParameterGroupName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetParameterGroupName sets the ParameterGroupName field's value.
- func (s *ResetClusterParameterGroupInput) SetParameterGroupName(v string) *ResetClusterParameterGroupInput {
- s.ParameterGroupName = &v
- return s
- }
- // SetParameters sets the Parameters field's value.
- func (s *ResetClusterParameterGroupInput) SetParameters(v []*Parameter) *ResetClusterParameterGroupInput {
- s.Parameters = v
- return s
- }
- // SetResetAllParameters sets the ResetAllParameters field's value.
- func (s *ResetClusterParameterGroupInput) SetResetAllParameters(v bool) *ResetClusterParameterGroupInput {
- s.ResetAllParameters = &v
- return s
- }
- type ResizeClusterInput struct {
- _ struct{} `type:"structure"`
- // A boolean value indicating whether the resize operation is using the classic
- // resize process. If you don't provide this parameter or set the value to false,
- // the resize type is elastic.
- Classic *bool `type:"boolean"`
- // The unique identifier for the cluster to resize.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // The new cluster type for the specified cluster.
- ClusterType *string `type:"string"`
- // The new node type for the nodes you are adding.
- NodeType *string `type:"string"`
- // The new number of nodes for the cluster.
- //
- // NumberOfNodes is a required field
- NumberOfNodes *int64 `type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s ResizeClusterInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResizeClusterInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ResizeClusterInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ResizeClusterInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if s.NumberOfNodes == nil {
- invalidParams.Add(request.NewErrParamRequired("NumberOfNodes"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClassic sets the Classic field's value.
- func (s *ResizeClusterInput) SetClassic(v bool) *ResizeClusterInput {
- s.Classic = &v
- return s
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *ResizeClusterInput) SetClusterIdentifier(v string) *ResizeClusterInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetClusterType sets the ClusterType field's value.
- func (s *ResizeClusterInput) SetClusterType(v string) *ResizeClusterInput {
- s.ClusterType = &v
- return s
- }
- // SetNodeType sets the NodeType field's value.
- func (s *ResizeClusterInput) SetNodeType(v string) *ResizeClusterInput {
- s.NodeType = &v
- return s
- }
- // SetNumberOfNodes sets the NumberOfNodes field's value.
- func (s *ResizeClusterInput) SetNumberOfNodes(v int64) *ResizeClusterInput {
- s.NumberOfNodes = &v
- return s
- }
- type ResizeClusterOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s ResizeClusterOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResizeClusterOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *ResizeClusterOutput) SetCluster(v *Cluster) *ResizeClusterOutput {
- s.Cluster = v
- return s
- }
- // Describes a resize operation.
- type ResizeInfo struct {
- _ struct{} `type:"structure"`
- // A boolean value indicating if the resize operation can be cancelled.
- AllowCancelResize *bool `type:"boolean"`
- // Returns the value ClassicResize.
- ResizeType *string `type:"string"`
- }
- // String returns the string representation
- func (s ResizeInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResizeInfo) GoString() string {
- return s.String()
- }
- // SetAllowCancelResize sets the AllowCancelResize field's value.
- func (s *ResizeInfo) SetAllowCancelResize(v bool) *ResizeInfo {
- s.AllowCancelResize = &v
- return s
- }
- // SetResizeType sets the ResizeType field's value.
- func (s *ResizeInfo) SetResizeType(v string) *ResizeInfo {
- s.ResizeType = &v
- return s
- }
- type RestoreFromClusterSnapshotInput struct {
- _ struct{} `type:"structure"`
- // Reserved.
- AdditionalInfo *string `type:"string"`
- // If true, major version upgrades can be applied during the maintenance window
- // to the Amazon Redshift engine that is running on the cluster.
- //
- // Default: true
- AllowVersionUpgrade *bool `type:"boolean"`
- // The number of days that automated snapshots are retained. If the value is
- // 0, automated snapshots are disabled. Even if automated snapshots are disabled,
- // you can still create manual snapshots when you want with CreateClusterSnapshot.
- //
- // Default: The value selected for the cluster from which the snapshot was taken.
- //
- // Constraints: Must be a value from 0 to 35.
- AutomatedSnapshotRetentionPeriod *int64 `type:"integer"`
- // The Amazon EC2 Availability Zone in which to restore the cluster.
- //
- // Default: A random, system-chosen Availability Zone.
- //
- // Example: us-east-1a
- AvailabilityZone *string `type:"string"`
- // The identifier of the cluster that will be created from restoring the snapshot.
- //
- // Constraints:
- //
- // * Must contain from 1 to 63 alphanumeric characters or hyphens.
- //
- // * Alphabetic characters must be lowercase.
- //
- // * First character must be a letter.
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens.
- //
- // * Must be unique for all clusters within an AWS account.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // The name of the parameter group to be associated with this cluster.
- //
- // Default: The default Amazon Redshift cluster parameter group. For information
- // about the default parameter group, go to Working with Amazon Redshift Parameter
- // Groups (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html).
- //
- // Constraints:
- //
- // * Must be 1 to 255 alphanumeric characters or hyphens.
- //
- // * First character must be a letter.
- //
- // * Cannot end with a hyphen or contain two consecutive hyphens.
- ClusterParameterGroupName *string `type:"string"`
- // A list of security groups to be associated with this cluster.
- //
- // Default: The default cluster security group for Amazon Redshift.
- //
- // Cluster security groups only apply to clusters outside of VPCs.
- ClusterSecurityGroups []*string `locationNameList:"ClusterSecurityGroupName" type:"list"`
- // The name of the subnet group where you want to cluster restored.
- //
- // A snapshot of cluster in VPC can be restored only in VPC. Therefore, you
- // must provide subnet group name where you want the cluster restored.
- ClusterSubnetGroupName *string `type:"string"`
- // The elastic IP (EIP) address for the cluster.
- ElasticIp *string `type:"string"`
- // An option that specifies whether to create the cluster with enhanced VPC
- // routing enabled. To create a cluster that uses enhanced VPC routing, the
- // cluster must be in a VPC. For more information, see Enhanced VPC Routing
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // If this option is true, enhanced VPC routing is enabled.
- //
- // Default: false
- EnhancedVpcRouting *bool `type:"boolean"`
- // Specifies the name of the HSM client certificate the Amazon Redshift cluster
- // uses to retrieve the data encryption keys stored in an HSM.
- HsmClientCertificateIdentifier *string `type:"string"`
- // Specifies the name of the HSM configuration that contains the information
- // the Amazon Redshift cluster can use to retrieve and store keys in an HSM.
- HsmConfigurationIdentifier *string `type:"string"`
- // A list of AWS Identity and Access Management (IAM) roles that can be used
- // by the cluster to access other AWS services. You must supply the IAM roles
- // in their Amazon Resource Name (ARN) format. You can supply up to 10 IAM roles
- // in a single request.
- //
- // A cluster can have up to 10 IAM roles associated at any time.
- IamRoles []*string `locationNameList:"IamRoleArn" type:"list"`
- // The AWS Key Management Service (KMS) key ID of the encryption key that you
- // want to use to encrypt data in the cluster that you restore from a shared
- // snapshot.
- KmsKeyId *string `type:"string"`
- // The name of the maintenance track for the restored cluster. When you take
- // a snapshot, the snapshot inherits the MaintenanceTrack value from the cluster.
- // The snapshot might be on a different track than the cluster that was the
- // source for the snapshot. For example, suppose that you take a snapshot of
- // a cluster that is on the current track and then change the cluster to be
- // on the trailing track. In this case, the snapshot and the source cluster
- // are on different tracks.
- MaintenanceTrackName *string `type:"string"`
- ManualSnapshotRetentionPeriod *int64 `type:"integer"`
- // The node type that the restored cluster will be provisioned with.
- //
- // Default: The node type of the cluster from which the snapshot was taken.
- // You can modify this if you are using any DS node type. In that case, you
- // can choose to restore into another DS node type of the same size. For example,
- // you can restore ds1.8xlarge into ds2.8xlarge, or ds1.xlarge into ds2.xlarge.
- // If you have a DC instance type, you must restore into that same instance
- // type and size. In other words, you can only restore a dc1.large instance
- // type into another dc1.large instance type or dc2.large instance type. You
- // can't restore dc1.8xlarge to dc2.8xlarge. First restore to a dc1.8xlareg
- // cluster, then resize to a dc2.8large cluster. For more information about
- // node types, see About Clusters and Nodes (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#rs-about-clusters-and-nodes)
- // in the Amazon Redshift Cluster Management Guide.
- NodeType *string `type:"string"`
- // The AWS customer account used to create or copy the snapshot. Required if
- // you are restoring a snapshot you do not own, optional if you own the snapshot.
- OwnerAccount *string `type:"string"`
- // The port number on which the cluster accepts connections.
- //
- // Default: The same port as the original cluster.
- //
- // Constraints: Must be between 1115 and 65535.
- Port *int64 `type:"integer"`
- // The weekly time range (in UTC) during which automated cluster maintenance
- // can occur.
- //
- // Format: ddd:hh24:mi-ddd:hh24:mi
- //
- // Default: The value selected for the cluster from which the snapshot was taken.
- // For more information about the time blocks for each region, see Maintenance
- // Windows (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-clusters.html#rs-maintenance-windows)
- // in Amazon Redshift Cluster Management Guide.
- //
- // Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
- //
- // Constraints: Minimum 30-minute window.
- PreferredMaintenanceWindow *string `type:"string"`
- // If true, the cluster can be accessed from a public network.
- PubliclyAccessible *bool `type:"boolean"`
- // The name of the cluster the source snapshot was created from. This parameter
- // is required if your IAM user has a policy containing a snapshot resource
- // element that specifies anything other than * for the cluster name.
- SnapshotClusterIdentifier *string `type:"string"`
- // The name of the snapshot from which to create the new cluster. This parameter
- // isn't case sensitive.
- //
- // Example: my-snapshot-id
- //
- // SnapshotIdentifier is a required field
- SnapshotIdentifier *string `type:"string" required:"true"`
- // A unique identifier for the snapshot schedule.
- SnapshotScheduleIdentifier *string `type:"string"`
- // A list of Virtual Private Cloud (VPC) security groups to be associated with
- // the cluster.
- //
- // Default: The default VPC security group is associated with the cluster.
- //
- // VPC security groups only apply to clusters in VPCs.
- VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"`
- }
- // String returns the string representation
- func (s RestoreFromClusterSnapshotInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RestoreFromClusterSnapshotInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RestoreFromClusterSnapshotInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RestoreFromClusterSnapshotInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if s.SnapshotIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAdditionalInfo sets the AdditionalInfo field's value.
- func (s *RestoreFromClusterSnapshotInput) SetAdditionalInfo(v string) *RestoreFromClusterSnapshotInput {
- s.AdditionalInfo = &v
- return s
- }
- // SetAllowVersionUpgrade sets the AllowVersionUpgrade field's value.
- func (s *RestoreFromClusterSnapshotInput) SetAllowVersionUpgrade(v bool) *RestoreFromClusterSnapshotInput {
- s.AllowVersionUpgrade = &v
- return s
- }
- // SetAutomatedSnapshotRetentionPeriod sets the AutomatedSnapshotRetentionPeriod field's value.
- func (s *RestoreFromClusterSnapshotInput) SetAutomatedSnapshotRetentionPeriod(v int64) *RestoreFromClusterSnapshotInput {
- s.AutomatedSnapshotRetentionPeriod = &v
- return s
- }
- // SetAvailabilityZone sets the AvailabilityZone field's value.
- func (s *RestoreFromClusterSnapshotInput) SetAvailabilityZone(v string) *RestoreFromClusterSnapshotInput {
- s.AvailabilityZone = &v
- return s
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *RestoreFromClusterSnapshotInput) SetClusterIdentifier(v string) *RestoreFromClusterSnapshotInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetClusterParameterGroupName sets the ClusterParameterGroupName field's value.
- func (s *RestoreFromClusterSnapshotInput) SetClusterParameterGroupName(v string) *RestoreFromClusterSnapshotInput {
- s.ClusterParameterGroupName = &v
- return s
- }
- // SetClusterSecurityGroups sets the ClusterSecurityGroups field's value.
- func (s *RestoreFromClusterSnapshotInput) SetClusterSecurityGroups(v []*string) *RestoreFromClusterSnapshotInput {
- s.ClusterSecurityGroups = v
- return s
- }
- // SetClusterSubnetGroupName sets the ClusterSubnetGroupName field's value.
- func (s *RestoreFromClusterSnapshotInput) SetClusterSubnetGroupName(v string) *RestoreFromClusterSnapshotInput {
- s.ClusterSubnetGroupName = &v
- return s
- }
- // SetElasticIp sets the ElasticIp field's value.
- func (s *RestoreFromClusterSnapshotInput) SetElasticIp(v string) *RestoreFromClusterSnapshotInput {
- s.ElasticIp = &v
- return s
- }
- // SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value.
- func (s *RestoreFromClusterSnapshotInput) SetEnhancedVpcRouting(v bool) *RestoreFromClusterSnapshotInput {
- s.EnhancedVpcRouting = &v
- return s
- }
- // SetHsmClientCertificateIdentifier sets the HsmClientCertificateIdentifier field's value.
- func (s *RestoreFromClusterSnapshotInput) SetHsmClientCertificateIdentifier(v string) *RestoreFromClusterSnapshotInput {
- s.HsmClientCertificateIdentifier = &v
- return s
- }
- // SetHsmConfigurationIdentifier sets the HsmConfigurationIdentifier field's value.
- func (s *RestoreFromClusterSnapshotInput) SetHsmConfigurationIdentifier(v string) *RestoreFromClusterSnapshotInput {
- s.HsmConfigurationIdentifier = &v
- return s
- }
- // SetIamRoles sets the IamRoles field's value.
- func (s *RestoreFromClusterSnapshotInput) SetIamRoles(v []*string) *RestoreFromClusterSnapshotInput {
- s.IamRoles = v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *RestoreFromClusterSnapshotInput) SetKmsKeyId(v string) *RestoreFromClusterSnapshotInput {
- s.KmsKeyId = &v
- return s
- }
- // SetMaintenanceTrackName sets the MaintenanceTrackName field's value.
- func (s *RestoreFromClusterSnapshotInput) SetMaintenanceTrackName(v string) *RestoreFromClusterSnapshotInput {
- s.MaintenanceTrackName = &v
- return s
- }
- // SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.
- func (s *RestoreFromClusterSnapshotInput) SetManualSnapshotRetentionPeriod(v int64) *RestoreFromClusterSnapshotInput {
- s.ManualSnapshotRetentionPeriod = &v
- return s
- }
- // SetNodeType sets the NodeType field's value.
- func (s *RestoreFromClusterSnapshotInput) SetNodeType(v string) *RestoreFromClusterSnapshotInput {
- s.NodeType = &v
- return s
- }
- // SetOwnerAccount sets the OwnerAccount field's value.
- func (s *RestoreFromClusterSnapshotInput) SetOwnerAccount(v string) *RestoreFromClusterSnapshotInput {
- s.OwnerAccount = &v
- return s
- }
- // SetPort sets the Port field's value.
- func (s *RestoreFromClusterSnapshotInput) SetPort(v int64) *RestoreFromClusterSnapshotInput {
- s.Port = &v
- return s
- }
- // SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value.
- func (s *RestoreFromClusterSnapshotInput) SetPreferredMaintenanceWindow(v string) *RestoreFromClusterSnapshotInput {
- s.PreferredMaintenanceWindow = &v
- return s
- }
- // SetPubliclyAccessible sets the PubliclyAccessible field's value.
- func (s *RestoreFromClusterSnapshotInput) SetPubliclyAccessible(v bool) *RestoreFromClusterSnapshotInput {
- s.PubliclyAccessible = &v
- return s
- }
- // SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value.
- func (s *RestoreFromClusterSnapshotInput) SetSnapshotClusterIdentifier(v string) *RestoreFromClusterSnapshotInput {
- s.SnapshotClusterIdentifier = &v
- return s
- }
- // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
- func (s *RestoreFromClusterSnapshotInput) SetSnapshotIdentifier(v string) *RestoreFromClusterSnapshotInput {
- s.SnapshotIdentifier = &v
- return s
- }
- // SetSnapshotScheduleIdentifier sets the SnapshotScheduleIdentifier field's value.
- func (s *RestoreFromClusterSnapshotInput) SetSnapshotScheduleIdentifier(v string) *RestoreFromClusterSnapshotInput {
- s.SnapshotScheduleIdentifier = &v
- return s
- }
- // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value.
- func (s *RestoreFromClusterSnapshotInput) SetVpcSecurityGroupIds(v []*string) *RestoreFromClusterSnapshotInput {
- s.VpcSecurityGroupIds = v
- return s
- }
- type RestoreFromClusterSnapshotOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s RestoreFromClusterSnapshotOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RestoreFromClusterSnapshotOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *RestoreFromClusterSnapshotOutput) SetCluster(v *Cluster) *RestoreFromClusterSnapshotOutput {
- s.Cluster = v
- return s
- }
- // Describes the status of a cluster restore action. Returns null if the cluster
- // was not created by restoring a snapshot.
- type RestoreStatus struct {
- _ struct{} `type:"structure"`
- // The number of megabytes per second being transferred from the backup storage.
- // Returns the average rate for a completed backup.
- CurrentRestoreRateInMegaBytesPerSecond *float64 `type:"double"`
- // The amount of time an in-progress restore has been running, or the amount
- // of time it took a completed restore to finish.
- ElapsedTimeInSeconds *int64 `type:"long"`
- // The estimate of the time remaining before the restore will complete. Returns
- // 0 for a completed restore.
- EstimatedTimeToCompletionInSeconds *int64 `type:"long"`
- // The number of megabytes that have been transferred from snapshot storage.
- ProgressInMegaBytes *int64 `type:"long"`
- // The size of the set of snapshot data used to restore the cluster.
- SnapshotSizeInMegaBytes *int64 `type:"long"`
- // The status of the restore action. Returns starting, restoring, completed,
- // or failed.
- Status *string `type:"string"`
- }
- // String returns the string representation
- func (s RestoreStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RestoreStatus) GoString() string {
- return s.String()
- }
- // SetCurrentRestoreRateInMegaBytesPerSecond sets the CurrentRestoreRateInMegaBytesPerSecond field's value.
- func (s *RestoreStatus) SetCurrentRestoreRateInMegaBytesPerSecond(v float64) *RestoreStatus {
- s.CurrentRestoreRateInMegaBytesPerSecond = &v
- return s
- }
- // SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value.
- func (s *RestoreStatus) SetElapsedTimeInSeconds(v int64) *RestoreStatus {
- s.ElapsedTimeInSeconds = &v
- return s
- }
- // SetEstimatedTimeToCompletionInSeconds sets the EstimatedTimeToCompletionInSeconds field's value.
- func (s *RestoreStatus) SetEstimatedTimeToCompletionInSeconds(v int64) *RestoreStatus {
- s.EstimatedTimeToCompletionInSeconds = &v
- return s
- }
- // SetProgressInMegaBytes sets the ProgressInMegaBytes field's value.
- func (s *RestoreStatus) SetProgressInMegaBytes(v int64) *RestoreStatus {
- s.ProgressInMegaBytes = &v
- return s
- }
- // SetSnapshotSizeInMegaBytes sets the SnapshotSizeInMegaBytes field's value.
- func (s *RestoreStatus) SetSnapshotSizeInMegaBytes(v int64) *RestoreStatus {
- s.SnapshotSizeInMegaBytes = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *RestoreStatus) SetStatus(v string) *RestoreStatus {
- s.Status = &v
- return s
- }
- type RestoreTableFromClusterSnapshotInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the Amazon Redshift cluster to restore the table to.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- // The name of the table to create as a result of the current request.
- //
- // NewTableName is a required field
- NewTableName *string `type:"string" required:"true"`
- // The identifier of the snapshot to restore the table from. This snapshot must
- // have been created from the Amazon Redshift cluster specified by the ClusterIdentifier
- // parameter.
- //
- // SnapshotIdentifier is a required field
- SnapshotIdentifier *string `type:"string" required:"true"`
- // The name of the source database that contains the table to restore from.
- //
- // SourceDatabaseName is a required field
- SourceDatabaseName *string `type:"string" required:"true"`
- // The name of the source schema that contains the table to restore from. If
- // you do not specify a SourceSchemaName value, the default is public.
- SourceSchemaName *string `type:"string"`
- // The name of the source table to restore from.
- //
- // SourceTableName is a required field
- SourceTableName *string `type:"string" required:"true"`
- // The name of the database to restore the table to.
- TargetDatabaseName *string `type:"string"`
- // The name of the schema to restore the table to.
- TargetSchemaName *string `type:"string"`
- }
- // String returns the string representation
- func (s RestoreTableFromClusterSnapshotInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RestoreTableFromClusterSnapshotInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RestoreTableFromClusterSnapshotInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RestoreTableFromClusterSnapshotInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if s.NewTableName == nil {
- invalidParams.Add(request.NewErrParamRequired("NewTableName"))
- }
- if s.SnapshotIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier"))
- }
- if s.SourceDatabaseName == nil {
- invalidParams.Add(request.NewErrParamRequired("SourceDatabaseName"))
- }
- if s.SourceTableName == nil {
- invalidParams.Add(request.NewErrParamRequired("SourceTableName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *RestoreTableFromClusterSnapshotInput) SetClusterIdentifier(v string) *RestoreTableFromClusterSnapshotInput {
- s.ClusterIdentifier = &v
- return s
- }
- // SetNewTableName sets the NewTableName field's value.
- func (s *RestoreTableFromClusterSnapshotInput) SetNewTableName(v string) *RestoreTableFromClusterSnapshotInput {
- s.NewTableName = &v
- return s
- }
- // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
- func (s *RestoreTableFromClusterSnapshotInput) SetSnapshotIdentifier(v string) *RestoreTableFromClusterSnapshotInput {
- s.SnapshotIdentifier = &v
- return s
- }
- // SetSourceDatabaseName sets the SourceDatabaseName field's value.
- func (s *RestoreTableFromClusterSnapshotInput) SetSourceDatabaseName(v string) *RestoreTableFromClusterSnapshotInput {
- s.SourceDatabaseName = &v
- return s
- }
- // SetSourceSchemaName sets the SourceSchemaName field's value.
- func (s *RestoreTableFromClusterSnapshotInput) SetSourceSchemaName(v string) *RestoreTableFromClusterSnapshotInput {
- s.SourceSchemaName = &v
- return s
- }
- // SetSourceTableName sets the SourceTableName field's value.
- func (s *RestoreTableFromClusterSnapshotInput) SetSourceTableName(v string) *RestoreTableFromClusterSnapshotInput {
- s.SourceTableName = &v
- return s
- }
- // SetTargetDatabaseName sets the TargetDatabaseName field's value.
- func (s *RestoreTableFromClusterSnapshotInput) SetTargetDatabaseName(v string) *RestoreTableFromClusterSnapshotInput {
- s.TargetDatabaseName = &v
- return s
- }
- // SetTargetSchemaName sets the TargetSchemaName field's value.
- func (s *RestoreTableFromClusterSnapshotInput) SetTargetSchemaName(v string) *RestoreTableFromClusterSnapshotInput {
- s.TargetSchemaName = &v
- return s
- }
- type RestoreTableFromClusterSnapshotOutput struct {
- _ struct{} `type:"structure"`
- // Describes the status of a RestoreTableFromClusterSnapshot operation.
- TableRestoreStatus *TableRestoreStatus `type:"structure"`
- }
- // String returns the string representation
- func (s RestoreTableFromClusterSnapshotOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RestoreTableFromClusterSnapshotOutput) GoString() string {
- return s.String()
- }
- // SetTableRestoreStatus sets the TableRestoreStatus field's value.
- func (s *RestoreTableFromClusterSnapshotOutput) SetTableRestoreStatus(v *TableRestoreStatus) *RestoreTableFromClusterSnapshotOutput {
- s.TableRestoreStatus = v
- return s
- }
- // Describes a RevisionTarget.
- type RevisionTarget struct {
- _ struct{} `type:"structure"`
- // A unique string that identifies the version to update the cluster to. You
- // can use this value in ModifyClusterDbRevision.
- DatabaseRevision *string `type:"string"`
- // The date on which the database revision was released.
- DatabaseRevisionReleaseDate *time.Time `type:"timestamp"`
- // A string that describes the changes and features that will be applied to
- // the cluster when it is updated to the corresponding ClusterDbRevision.
- Description *string `type:"string"`
- }
- // String returns the string representation
- func (s RevisionTarget) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RevisionTarget) GoString() string {
- return s.String()
- }
- // SetDatabaseRevision sets the DatabaseRevision field's value.
- func (s *RevisionTarget) SetDatabaseRevision(v string) *RevisionTarget {
- s.DatabaseRevision = &v
- return s
- }
- // SetDatabaseRevisionReleaseDate sets the DatabaseRevisionReleaseDate field's value.
- func (s *RevisionTarget) SetDatabaseRevisionReleaseDate(v time.Time) *RevisionTarget {
- s.DatabaseRevisionReleaseDate = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *RevisionTarget) SetDescription(v string) *RevisionTarget {
- s.Description = &v
- return s
- }
- type RevokeClusterSecurityGroupIngressInput struct {
- _ struct{} `type:"structure"`
- // The IP range for which to revoke access. This range must be a valid Classless
- // Inter-Domain Routing (CIDR) block of IP addresses. If CIDRIP is specified,
- // EC2SecurityGroupName and EC2SecurityGroupOwnerId cannot be provided.
- CIDRIP *string `type:"string"`
- // The name of the security Group from which to revoke the ingress rule.
- //
- // ClusterSecurityGroupName is a required field
- ClusterSecurityGroupName *string `type:"string" required:"true"`
- // The name of the EC2 Security Group whose access is to be revoked. If EC2SecurityGroupName
- // is specified, EC2SecurityGroupOwnerId must also be provided and CIDRIP cannot
- // be provided.
- EC2SecurityGroupName *string `type:"string"`
- // The AWS account number of the owner of the security group specified in the
- // EC2SecurityGroupName parameter. The AWS access key ID is not an acceptable
- // value. If EC2SecurityGroupOwnerId is specified, EC2SecurityGroupName must
- // also be provided. and CIDRIP cannot be provided.
- //
- // Example: 111122223333
- EC2SecurityGroupOwnerId *string `type:"string"`
- }
- // String returns the string representation
- func (s RevokeClusterSecurityGroupIngressInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RevokeClusterSecurityGroupIngressInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RevokeClusterSecurityGroupIngressInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RevokeClusterSecurityGroupIngressInput"}
- if s.ClusterSecurityGroupName == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterSecurityGroupName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCIDRIP sets the CIDRIP field's value.
- func (s *RevokeClusterSecurityGroupIngressInput) SetCIDRIP(v string) *RevokeClusterSecurityGroupIngressInput {
- s.CIDRIP = &v
- return s
- }
- // SetClusterSecurityGroupName sets the ClusterSecurityGroupName field's value.
- func (s *RevokeClusterSecurityGroupIngressInput) SetClusterSecurityGroupName(v string) *RevokeClusterSecurityGroupIngressInput {
- s.ClusterSecurityGroupName = &v
- return s
- }
- // SetEC2SecurityGroupName sets the EC2SecurityGroupName field's value.
- func (s *RevokeClusterSecurityGroupIngressInput) SetEC2SecurityGroupName(v string) *RevokeClusterSecurityGroupIngressInput {
- s.EC2SecurityGroupName = &v
- return s
- }
- // SetEC2SecurityGroupOwnerId sets the EC2SecurityGroupOwnerId field's value.
- func (s *RevokeClusterSecurityGroupIngressInput) SetEC2SecurityGroupOwnerId(v string) *RevokeClusterSecurityGroupIngressInput {
- s.EC2SecurityGroupOwnerId = &v
- return s
- }
- type RevokeClusterSecurityGroupIngressOutput struct {
- _ struct{} `type:"structure"`
- // Describes a security group.
- ClusterSecurityGroup *ClusterSecurityGroup `type:"structure"`
- }
- // String returns the string representation
- func (s RevokeClusterSecurityGroupIngressOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RevokeClusterSecurityGroupIngressOutput) GoString() string {
- return s.String()
- }
- // SetClusterSecurityGroup sets the ClusterSecurityGroup field's value.
- func (s *RevokeClusterSecurityGroupIngressOutput) SetClusterSecurityGroup(v *ClusterSecurityGroup) *RevokeClusterSecurityGroupIngressOutput {
- s.ClusterSecurityGroup = v
- return s
- }
- type RevokeSnapshotAccessInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the AWS customer account that can no longer restore the
- // specified snapshot.
- //
- // AccountWithRestoreAccess is a required field
- AccountWithRestoreAccess *string `type:"string" required:"true"`
- // The identifier of the cluster the snapshot was created from. This parameter
- // is required if your IAM user has a policy containing a snapshot resource
- // element that specifies anything other than * for the cluster name.
- SnapshotClusterIdentifier *string `type:"string"`
- // The identifier of the snapshot that the account can no longer access.
- //
- // SnapshotIdentifier is a required field
- SnapshotIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RevokeSnapshotAccessInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RevokeSnapshotAccessInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RevokeSnapshotAccessInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RevokeSnapshotAccessInput"}
- if s.AccountWithRestoreAccess == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountWithRestoreAccess"))
- }
- if s.SnapshotIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAccountWithRestoreAccess sets the AccountWithRestoreAccess field's value.
- func (s *RevokeSnapshotAccessInput) SetAccountWithRestoreAccess(v string) *RevokeSnapshotAccessInput {
- s.AccountWithRestoreAccess = &v
- return s
- }
- // SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value.
- func (s *RevokeSnapshotAccessInput) SetSnapshotClusterIdentifier(v string) *RevokeSnapshotAccessInput {
- s.SnapshotClusterIdentifier = &v
- return s
- }
- // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
- func (s *RevokeSnapshotAccessInput) SetSnapshotIdentifier(v string) *RevokeSnapshotAccessInput {
- s.SnapshotIdentifier = &v
- return s
- }
- type RevokeSnapshotAccessOutput struct {
- _ struct{} `type:"structure"`
- // Describes a snapshot.
- Snapshot *Snapshot `type:"structure"`
- }
- // String returns the string representation
- func (s RevokeSnapshotAccessOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RevokeSnapshotAccessOutput) GoString() string {
- return s.String()
- }
- // SetSnapshot sets the Snapshot field's value.
- func (s *RevokeSnapshotAccessOutput) SetSnapshot(v *Snapshot) *RevokeSnapshotAccessOutput {
- s.Snapshot = v
- return s
- }
- type RotateEncryptionKeyInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier of the cluster that you want to rotate the encryption
- // keys for.
- //
- // Constraints: Must be the name of valid cluster that has encryption enabled.
- //
- // ClusterIdentifier is a required field
- ClusterIdentifier *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RotateEncryptionKeyInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RotateEncryptionKeyInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RotateEncryptionKeyInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RotateEncryptionKeyInput"}
- if s.ClusterIdentifier == nil {
- invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *RotateEncryptionKeyInput) SetClusterIdentifier(v string) *RotateEncryptionKeyInput {
- s.ClusterIdentifier = &v
- return s
- }
- type RotateEncryptionKeyOutput struct {
- _ struct{} `type:"structure"`
- // Describes a cluster.
- Cluster *Cluster `type:"structure"`
- }
- // String returns the string representation
- func (s RotateEncryptionKeyOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RotateEncryptionKeyOutput) GoString() string {
- return s.String()
- }
- // SetCluster sets the Cluster field's value.
- func (s *RotateEncryptionKeyOutput) SetCluster(v *Cluster) *RotateEncryptionKeyOutput {
- s.Cluster = v
- return s
- }
- // Describes a snapshot.
- type Snapshot struct {
- _ struct{} `type:"structure"`
- // A list of the AWS customer accounts authorized to restore the snapshot. Returns
- // null if no accounts are authorized. Visible only to the snapshot owner.
- AccountsWithRestoreAccess []*AccountWithRestoreAccess `locationNameList:"AccountWithRestoreAccess" type:"list"`
- // The size of the incremental backup.
- ActualIncrementalBackupSizeInMegaBytes *float64 `type:"double"`
- // The Availability Zone in which the cluster was created.
- AvailabilityZone *string `type:"string"`
- // The number of megabytes that have been transferred to the snapshot backup.
- BackupProgressInMegaBytes *float64 `type:"double"`
- // The time (UTC) when the cluster was originally created.
- ClusterCreateTime *time.Time `type:"timestamp"`
- // The identifier of the cluster for which the snapshot was taken.
- ClusterIdentifier *string `type:"string"`
- // The version ID of the Amazon Redshift engine that is running on the cluster.
- ClusterVersion *string `type:"string"`
- // The number of megabytes per second being transferred to the snapshot backup.
- // Returns 0 for a completed backup.
- CurrentBackupRateInMegaBytesPerSecond *float64 `type:"double"`
- // The name of the database that was created when the cluster was created.
- DBName *string `type:"string"`
- // The amount of time an in-progress snapshot backup has been running, or the
- // amount of time it took a completed backup to finish.
- ElapsedTimeInSeconds *int64 `type:"long"`
- // If true, the data in the snapshot is encrypted at rest.
- Encrypted *bool `type:"boolean"`
- // A boolean that indicates whether the snapshot data is encrypted using the
- // HSM keys of the source cluster. true indicates that the data is encrypted
- // using HSM keys.
- EncryptedWithHSM *bool `type:"boolean"`
- // An option that specifies whether to create the cluster with enhanced VPC
- // routing enabled. To create a cluster that uses enhanced VPC routing, the
- // cluster must be in a VPC. For more information, see Enhanced VPC Routing
- // (http://docs.aws.amazon.com/redshift/latest/mgmt/enhanced-vpc-routing.html)
- // in the Amazon Redshift Cluster Management Guide.
- //
- // If this option is true, enhanced VPC routing is enabled.
- //
- // Default: false
- EnhancedVpcRouting *bool `type:"boolean"`
- // The estimate of the time remaining before the snapshot backup will complete.
- // Returns 0 for a completed backup.
- EstimatedSecondsToCompletion *int64 `type:"long"`
- // The AWS Key Management Service (KMS) key ID of the encryption key that was
- // used to encrypt data in the cluster from which the snapshot was taken.
- KmsKeyId *string `type:"string"`
- // The name of the maintenance track for the snapshot.
- MaintenanceTrackName *string `type:"string"`
- // The number of days until a manual snapshot will pass its retention period.
- ManualSnapshotRemainingDays *int64 `type:"integer"`
- // The number of days that a manual snapshot is retained. If the value is -1,
- // the manual snapshot is retained indefinitely.
- //
- // The value must be either -1 or an integer between 1 and 3,653.
- ManualSnapshotRetentionPeriod *int64 `type:"integer"`
- // The master user name for the cluster.
- MasterUsername *string `type:"string"`
- // The node type of the nodes in the cluster.
- NodeType *string `type:"string"`
- // The number of nodes in the cluster.
- NumberOfNodes *int64 `type:"integer"`
- // For manual snapshots, the AWS customer account used to create or copy the
- // snapshot. For automatic snapshots, the owner of the cluster. The owner can
- // perform all snapshot actions, such as sharing a manual snapshot.
- OwnerAccount *string `type:"string"`
- // The port that the cluster is listening on.
- Port *int64 `type:"integer"`
- // The list of node types that this cluster snapshot is able to restore into.
- RestorableNodeTypes []*string `locationNameList:"NodeType" type:"list"`
- // The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot
- // contains a copy of the cluster data as of this exact time.
- SnapshotCreateTime *time.Time `type:"timestamp"`
- // The snapshot identifier that is provided in the request.
- SnapshotIdentifier *string `type:"string"`
- // A timestamp representing the start of the retention period for the snapshot.
- SnapshotRetentionStartTime *time.Time `type:"timestamp"`
- // The snapshot type. Snapshots created using CreateClusterSnapshot and CopyClusterSnapshot
- // are of type "manual".
- SnapshotType *string `type:"string"`
- // The source region from which the snapshot was copied.
- SourceRegion *string `type:"string"`
- // The snapshot status. The value of the status depends on the API operation
- // used:
- //
- // * CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating".
- //
- //
- // * DescribeClusterSnapshots returns status as "creating", "available",
- // "final snapshot", or "failed".
- //
- // * DeleteClusterSnapshot returns status as "deleted".
- Status *string `type:"string"`
- // The list of tags for the cluster snapshot.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- // The size of the complete set of backup data that would be used to restore
- // the cluster.
- TotalBackupSizeInMegaBytes *float64 `type:"double"`
- // The VPC identifier of the cluster if the snapshot is from a cluster in a
- // VPC. Otherwise, this field is not in the output.
- VpcId *string `type:"string"`
- }
- // String returns the string representation
- func (s Snapshot) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Snapshot) GoString() string {
- return s.String()
- }
- // SetAccountsWithRestoreAccess sets the AccountsWithRestoreAccess field's value.
- func (s *Snapshot) SetAccountsWithRestoreAccess(v []*AccountWithRestoreAccess) *Snapshot {
- s.AccountsWithRestoreAccess = v
- return s
- }
- // SetActualIncrementalBackupSizeInMegaBytes sets the ActualIncrementalBackupSizeInMegaBytes field's value.
- func (s *Snapshot) SetActualIncrementalBackupSizeInMegaBytes(v float64) *Snapshot {
- s.ActualIncrementalBackupSizeInMegaBytes = &v
- return s
- }
- // SetAvailabilityZone sets the AvailabilityZone field's value.
- func (s *Snapshot) SetAvailabilityZone(v string) *Snapshot {
- s.AvailabilityZone = &v
- return s
- }
- // SetBackupProgressInMegaBytes sets the BackupProgressInMegaBytes field's value.
- func (s *Snapshot) SetBackupProgressInMegaBytes(v float64) *Snapshot {
- s.BackupProgressInMegaBytes = &v
- return s
- }
- // SetClusterCreateTime sets the ClusterCreateTime field's value.
- func (s *Snapshot) SetClusterCreateTime(v time.Time) *Snapshot {
- s.ClusterCreateTime = &v
- return s
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *Snapshot) SetClusterIdentifier(v string) *Snapshot {
- s.ClusterIdentifier = &v
- return s
- }
- // SetClusterVersion sets the ClusterVersion field's value.
- func (s *Snapshot) SetClusterVersion(v string) *Snapshot {
- s.ClusterVersion = &v
- return s
- }
- // SetCurrentBackupRateInMegaBytesPerSecond sets the CurrentBackupRateInMegaBytesPerSecond field's value.
- func (s *Snapshot) SetCurrentBackupRateInMegaBytesPerSecond(v float64) *Snapshot {
- s.CurrentBackupRateInMegaBytesPerSecond = &v
- return s
- }
- // SetDBName sets the DBName field's value.
- func (s *Snapshot) SetDBName(v string) *Snapshot {
- s.DBName = &v
- return s
- }
- // SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value.
- func (s *Snapshot) SetElapsedTimeInSeconds(v int64) *Snapshot {
- s.ElapsedTimeInSeconds = &v
- return s
- }
- // SetEncrypted sets the Encrypted field's value.
- func (s *Snapshot) SetEncrypted(v bool) *Snapshot {
- s.Encrypted = &v
- return s
- }
- // SetEncryptedWithHSM sets the EncryptedWithHSM field's value.
- func (s *Snapshot) SetEncryptedWithHSM(v bool) *Snapshot {
- s.EncryptedWithHSM = &v
- return s
- }
- // SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value.
- func (s *Snapshot) SetEnhancedVpcRouting(v bool) *Snapshot {
- s.EnhancedVpcRouting = &v
- return s
- }
- // SetEstimatedSecondsToCompletion sets the EstimatedSecondsToCompletion field's value.
- func (s *Snapshot) SetEstimatedSecondsToCompletion(v int64) *Snapshot {
- s.EstimatedSecondsToCompletion = &v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *Snapshot) SetKmsKeyId(v string) *Snapshot {
- s.KmsKeyId = &v
- return s
- }
- // SetMaintenanceTrackName sets the MaintenanceTrackName field's value.
- func (s *Snapshot) SetMaintenanceTrackName(v string) *Snapshot {
- s.MaintenanceTrackName = &v
- return s
- }
- // SetManualSnapshotRemainingDays sets the ManualSnapshotRemainingDays field's value.
- func (s *Snapshot) SetManualSnapshotRemainingDays(v int64) *Snapshot {
- s.ManualSnapshotRemainingDays = &v
- return s
- }
- // SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value.
- func (s *Snapshot) SetManualSnapshotRetentionPeriod(v int64) *Snapshot {
- s.ManualSnapshotRetentionPeriod = &v
- return s
- }
- // SetMasterUsername sets the MasterUsername field's value.
- func (s *Snapshot) SetMasterUsername(v string) *Snapshot {
- s.MasterUsername = &v
- return s
- }
- // SetNodeType sets the NodeType field's value.
- func (s *Snapshot) SetNodeType(v string) *Snapshot {
- s.NodeType = &v
- return s
- }
- // SetNumberOfNodes sets the NumberOfNodes field's value.
- func (s *Snapshot) SetNumberOfNodes(v int64) *Snapshot {
- s.NumberOfNodes = &v
- return s
- }
- // SetOwnerAccount sets the OwnerAccount field's value.
- func (s *Snapshot) SetOwnerAccount(v string) *Snapshot {
- s.OwnerAccount = &v
- return s
- }
- // SetPort sets the Port field's value.
- func (s *Snapshot) SetPort(v int64) *Snapshot {
- s.Port = &v
- return s
- }
- // SetRestorableNodeTypes sets the RestorableNodeTypes field's value.
- func (s *Snapshot) SetRestorableNodeTypes(v []*string) *Snapshot {
- s.RestorableNodeTypes = v
- return s
- }
- // SetSnapshotCreateTime sets the SnapshotCreateTime field's value.
- func (s *Snapshot) SetSnapshotCreateTime(v time.Time) *Snapshot {
- s.SnapshotCreateTime = &v
- return s
- }
- // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
- func (s *Snapshot) SetSnapshotIdentifier(v string) *Snapshot {
- s.SnapshotIdentifier = &v
- return s
- }
- // SetSnapshotRetentionStartTime sets the SnapshotRetentionStartTime field's value.
- func (s *Snapshot) SetSnapshotRetentionStartTime(v time.Time) *Snapshot {
- s.SnapshotRetentionStartTime = &v
- return s
- }
- // SetSnapshotType sets the SnapshotType field's value.
- func (s *Snapshot) SetSnapshotType(v string) *Snapshot {
- s.SnapshotType = &v
- return s
- }
- // SetSourceRegion sets the SourceRegion field's value.
- func (s *Snapshot) SetSourceRegion(v string) *Snapshot {
- s.SourceRegion = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *Snapshot) SetStatus(v string) *Snapshot {
- s.Status = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *Snapshot) SetTags(v []*Tag) *Snapshot {
- s.Tags = v
- return s
- }
- // SetTotalBackupSizeInMegaBytes sets the TotalBackupSizeInMegaBytes field's value.
- func (s *Snapshot) SetTotalBackupSizeInMegaBytes(v float64) *Snapshot {
- s.TotalBackupSizeInMegaBytes = &v
- return s
- }
- // SetVpcId sets the VpcId field's value.
- func (s *Snapshot) SetVpcId(v string) *Snapshot {
- s.VpcId = &v
- return s
- }
- // The snapshot copy grant that grants Amazon Redshift permission to encrypt
- // copied snapshots with the specified customer master key (CMK) from AWS KMS
- // in the destination region.
- //
- // For more information about managing snapshot copy grants, go to Amazon Redshift
- // Database Encryption (http://docs.aws.amazon.com/redshift/latest/mgmt/working-with-db-encryption.html)
- // in the Amazon Redshift Cluster Management Guide.
- type SnapshotCopyGrant struct {
- _ struct{} `type:"structure"`
- // The unique identifier of the customer master key (CMK) in AWS KMS to which
- // Amazon Redshift is granted permission.
- KmsKeyId *string `type:"string"`
- // The name of the snapshot copy grant.
- SnapshotCopyGrantName *string `type:"string"`
- // A list of tag instances.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s SnapshotCopyGrant) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SnapshotCopyGrant) GoString() string {
- return s.String()
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *SnapshotCopyGrant) SetKmsKeyId(v string) *SnapshotCopyGrant {
- s.KmsKeyId = &v
- return s
- }
- // SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value.
- func (s *SnapshotCopyGrant) SetSnapshotCopyGrantName(v string) *SnapshotCopyGrant {
- s.SnapshotCopyGrantName = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *SnapshotCopyGrant) SetTags(v []*Tag) *SnapshotCopyGrant {
- s.Tags = v
- return s
- }
- // Describes the errors returned by a snapshot.
- type SnapshotErrorMessage struct {
- _ struct{} `type:"structure"`
- // The failure code for the error.
- FailureCode *string `type:"string"`
- // The text message describing the error.
- FailureReason *string `type:"string"`
- // A unique identifier for the cluster.
- SnapshotClusterIdentifier *string `type:"string"`
- // A unique identifier for the snapshot returning the error.
- SnapshotIdentifier *string `type:"string"`
- }
- // String returns the string representation
- func (s SnapshotErrorMessage) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SnapshotErrorMessage) GoString() string {
- return s.String()
- }
- // SetFailureCode sets the FailureCode field's value.
- func (s *SnapshotErrorMessage) SetFailureCode(v string) *SnapshotErrorMessage {
- s.FailureCode = &v
- return s
- }
- // SetFailureReason sets the FailureReason field's value.
- func (s *SnapshotErrorMessage) SetFailureReason(v string) *SnapshotErrorMessage {
- s.FailureReason = &v
- return s
- }
- // SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value.
- func (s *SnapshotErrorMessage) SetSnapshotClusterIdentifier(v string) *SnapshotErrorMessage {
- s.SnapshotClusterIdentifier = &v
- return s
- }
- // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
- func (s *SnapshotErrorMessage) SetSnapshotIdentifier(v string) *SnapshotErrorMessage {
- s.SnapshotIdentifier = &v
- return s
- }
- // Describes a snapshot schedule. You can set a regular interval for creating
- // snapshots of a cluster. You can also schedule snapshots for specific dates.
- type SnapshotSchedule struct {
- _ struct{} `type:"structure"`
- AssociatedClusterCount *int64 `type:"integer"`
- AssociatedClusters []*ClusterAssociatedToSchedule `locationNameList:"ClusterAssociatedToSchedule" type:"list"`
- NextInvocations []*time.Time `locationNameList:"SnapshotTime" type:"list"`
- // A list of ScheduleDefinitions
- ScheduleDefinitions []*string `locationNameList:"ScheduleDefinition" type:"list"`
- // The description of the schedule.
- ScheduleDescription *string `type:"string"`
- // A unique identifier for the schedule.
- ScheduleIdentifier *string `type:"string"`
- // An optional set of tags describing the schedule.
- Tags []*Tag `locationNameList:"Tag" type:"list"`
- }
- // String returns the string representation
- func (s SnapshotSchedule) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SnapshotSchedule) GoString() string {
- return s.String()
- }
- // SetAssociatedClusterCount sets the AssociatedClusterCount field's value.
- func (s *SnapshotSchedule) SetAssociatedClusterCount(v int64) *SnapshotSchedule {
- s.AssociatedClusterCount = &v
- return s
- }
- // SetAssociatedClusters sets the AssociatedClusters field's value.
- func (s *SnapshotSchedule) SetAssociatedClusters(v []*ClusterAssociatedToSchedule) *SnapshotSchedule {
- s.AssociatedClusters = v
- return s
- }
- // SetNextInvocations sets the NextInvocations field's value.
- func (s *SnapshotSchedule) SetNextInvocations(v []*time.Time) *SnapshotSchedule {
- s.NextInvocations = v
- return s
- }
- // SetScheduleDefinitions sets the ScheduleDefinitions field's value.
- func (s *SnapshotSchedule) SetScheduleDefinitions(v []*string) *SnapshotSchedule {
- s.ScheduleDefinitions = v
- return s
- }
- // SetScheduleDescription sets the ScheduleDescription field's value.
- func (s *SnapshotSchedule) SetScheduleDescription(v string) *SnapshotSchedule {
- s.ScheduleDescription = &v
- return s
- }
- // SetScheduleIdentifier sets the ScheduleIdentifier field's value.
- func (s *SnapshotSchedule) SetScheduleIdentifier(v string) *SnapshotSchedule {
- s.ScheduleIdentifier = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *SnapshotSchedule) SetTags(v []*Tag) *SnapshotSchedule {
- s.Tags = v
- return s
- }
- // Describes a sorting entity
- type SnapshotSortingEntity struct {
- _ struct{} `type:"structure"`
- // The category for sorting the snapshots.
- //
- // Attribute is a required field
- Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeToSortBy"`
- // The order for listing the attributes.
- SortOrder *string `type:"string" enum:"SortByOrder"`
- }
- // String returns the string representation
- func (s SnapshotSortingEntity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SnapshotSortingEntity) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SnapshotSortingEntity) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SnapshotSortingEntity"}
- if s.Attribute == nil {
- invalidParams.Add(request.NewErrParamRequired("Attribute"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttribute sets the Attribute field's value.
- func (s *SnapshotSortingEntity) SetAttribute(v string) *SnapshotSortingEntity {
- s.Attribute = &v
- return s
- }
- // SetSortOrder sets the SortOrder field's value.
- func (s *SnapshotSortingEntity) SetSortOrder(v string) *SnapshotSortingEntity {
- s.SortOrder = &v
- return s
- }
- // Describes a subnet.
- type Subnet struct {
- _ struct{} `type:"structure"`
- // Describes an availability zone.
- SubnetAvailabilityZone *AvailabilityZone `type:"structure"`
- // The identifier of the subnet.
- SubnetIdentifier *string `type:"string"`
- // The status of the subnet.
- SubnetStatus *string `type:"string"`
- }
- // String returns the string representation
- func (s Subnet) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Subnet) GoString() string {
- return s.String()
- }
- // SetSubnetAvailabilityZone sets the SubnetAvailabilityZone field's value.
- func (s *Subnet) SetSubnetAvailabilityZone(v *AvailabilityZone) *Subnet {
- s.SubnetAvailabilityZone = v
- return s
- }
- // SetSubnetIdentifier sets the SubnetIdentifier field's value.
- func (s *Subnet) SetSubnetIdentifier(v string) *Subnet {
- s.SubnetIdentifier = &v
- return s
- }
- // SetSubnetStatus sets the SubnetStatus field's value.
- func (s *Subnet) SetSubnetStatus(v string) *Subnet {
- s.SubnetStatus = &v
- return s
- }
- // Describes the operations that are allowed on a maintenance track.
- type SupportedOperation struct {
- _ struct{} `type:"structure"`
- // A list of the supported operations.
- OperationName *string `type:"string"`
- }
- // String returns the string representation
- func (s SupportedOperation) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SupportedOperation) GoString() string {
- return s.String()
- }
- // SetOperationName sets the OperationName field's value.
- func (s *SupportedOperation) SetOperationName(v string) *SupportedOperation {
- s.OperationName = &v
- return s
- }
- // A list of supported platforms for orderable clusters.
- type SupportedPlatform struct {
- _ struct{} `type:"structure"`
- Name *string `type:"string"`
- }
- // String returns the string representation
- func (s SupportedPlatform) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SupportedPlatform) GoString() string {
- return s.String()
- }
- // SetName sets the Name field's value.
- func (s *SupportedPlatform) SetName(v string) *SupportedPlatform {
- s.Name = &v
- return s
- }
- // Describes the status of a RestoreTableFromClusterSnapshot operation.
- type TableRestoreStatus struct {
- _ struct{} `type:"structure"`
- // The identifier of the Amazon Redshift cluster that the table is being restored
- // to.
- ClusterIdentifier *string `type:"string"`
- // A description of the status of the table restore request. Status values include
- // SUCCEEDED, FAILED, CANCELED, PENDING, IN_PROGRESS.
- Message *string `type:"string"`
- // The name of the table to create as a result of the table restore request.
- NewTableName *string `type:"string"`
- // The amount of data restored to the new table so far, in megabytes (MB).
- ProgressInMegaBytes *int64 `type:"long"`
- // The time that the table restore request was made, in Universal Coordinated
- // Time (UTC).
- RequestTime *time.Time `type:"timestamp"`
- // The identifier of the snapshot that the table is being restored from.
- SnapshotIdentifier *string `type:"string"`
- // The name of the source database that contains the table being restored.
- SourceDatabaseName *string `type:"string"`
- // The name of the source schema that contains the table being restored.
- SourceSchemaName *string `type:"string"`
- // The name of the source table being restored.
- SourceTableName *string `type:"string"`
- // A value that describes the current state of the table restore request.
- //
- // Valid Values: SUCCEEDED, FAILED, CANCELED, PENDING, IN_PROGRESS
- Status *string `type:"string" enum:"TableRestoreStatusType"`
- // The unique identifier for the table restore request.
- TableRestoreRequestId *string `type:"string"`
- // The name of the database to restore the table to.
- TargetDatabaseName *string `type:"string"`
- // The name of the schema to restore the table to.
- TargetSchemaName *string `type:"string"`
- // The total amount of data to restore to the new table, in megabytes (MB).
- TotalDataInMegaBytes *int64 `type:"long"`
- }
- // String returns the string representation
- func (s TableRestoreStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TableRestoreStatus) GoString() string {
- return s.String()
- }
- // SetClusterIdentifier sets the ClusterIdentifier field's value.
- func (s *TableRestoreStatus) SetClusterIdentifier(v string) *TableRestoreStatus {
- s.ClusterIdentifier = &v
- return s
- }
- // SetMessage sets the Message field's value.
- func (s *TableRestoreStatus) SetMessage(v string) *TableRestoreStatus {
- s.Message = &v
- return s
- }
- // SetNewTableName sets the NewTableName field's value.
- func (s *TableRestoreStatus) SetNewTableName(v string) *TableRestoreStatus {
- s.NewTableName = &v
- return s
- }
- // SetProgressInMegaBytes sets the ProgressInMegaBytes field's value.
- func (s *TableRestoreStatus) SetProgressInMegaBytes(v int64) *TableRestoreStatus {
- s.ProgressInMegaBytes = &v
- return s
- }
- // SetRequestTime sets the RequestTime field's value.
- func (s *TableRestoreStatus) SetRequestTime(v time.Time) *TableRestoreStatus {
- s.RequestTime = &v
- return s
- }
- // SetSnapshotIdentifier sets the SnapshotIdentifier field's value.
- func (s *TableRestoreStatus) SetSnapshotIdentifier(v string) *TableRestoreStatus {
- s.SnapshotIdentifier = &v
- return s
- }
- // SetSourceDatabaseName sets the SourceDatabaseName field's value.
- func (s *TableRestoreStatus) SetSourceDatabaseName(v string) *TableRestoreStatus {
- s.SourceDatabaseName = &v
- return s
- }
- // SetSourceSchemaName sets the SourceSchemaName field's value.
- func (s *TableRestoreStatus) SetSourceSchemaName(v string) *TableRestoreStatus {
- s.SourceSchemaName = &v
- return s
- }
- // SetSourceTableName sets the SourceTableName field's value.
- func (s *TableRestoreStatus) SetSourceTableName(v string) *TableRestoreStatus {
- s.SourceTableName = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *TableRestoreStatus) SetStatus(v string) *TableRestoreStatus {
- s.Status = &v
- return s
- }
- // SetTableRestoreRequestId sets the TableRestoreRequestId field's value.
- func (s *TableRestoreStatus) SetTableRestoreRequestId(v string) *TableRestoreStatus {
- s.TableRestoreRequestId = &v
- return s
- }
- // SetTargetDatabaseName sets the TargetDatabaseName field's value.
- func (s *TableRestoreStatus) SetTargetDatabaseName(v string) *TableRestoreStatus {
- s.TargetDatabaseName = &v
- return s
- }
- // SetTargetSchemaName sets the TargetSchemaName field's value.
- func (s *TableRestoreStatus) SetTargetSchemaName(v string) *TableRestoreStatus {
- s.TargetSchemaName = &v
- return s
- }
- // SetTotalDataInMegaBytes sets the TotalDataInMegaBytes field's value.
- func (s *TableRestoreStatus) SetTotalDataInMegaBytes(v int64) *TableRestoreStatus {
- s.TotalDataInMegaBytes = &v
- return s
- }
- // A tag consisting of a name/value pair for a resource.
- type Tag struct {
- _ struct{} `type:"structure"`
- // The key, or name, for the resource tag.
- Key *string `type:"string"`
- // The value for the resource tag.
- Value *string `type:"string"`
- }
- // String returns the string representation
- func (s Tag) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tag) GoString() string {
- return s.String()
- }
- // SetKey sets the Key field's value.
- func (s *Tag) SetKey(v string) *Tag {
- s.Key = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *Tag) SetValue(v string) *Tag {
- s.Value = &v
- return s
- }
- // A tag and its associated resource.
- type TaggedResource struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) with which the tag is associated, for example:
- // arn:aws:redshift:us-east-1:123456789:cluster:t1.
- ResourceName *string `type:"string"`
- // The type of resource with which the tag is associated. Valid resource types
- // are:
- //
- // * Cluster
- //
- // * CIDR/IP
- //
- // * EC2 security group
- //
- // * Snapshot
- //
- // * Cluster security group
- //
- // * Subnet group
- //
- // * HSM connection
- //
- // * HSM certificate
- //
- // * Parameter group
- //
- // For more information about Amazon Redshift resource types and constructing
- // ARNs, go to Constructing an Amazon Redshift Amazon Resource Name (ARN) (http://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-overview.html#redshift-iam-access-control-specify-actions)
- // in the Amazon Redshift Cluster Management Guide.
- ResourceType *string `type:"string"`
- // The tag for the resource.
- Tag *Tag `type:"structure"`
- }
- // String returns the string representation
- func (s TaggedResource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TaggedResource) GoString() string {
- return s.String()
- }
- // SetResourceName sets the ResourceName field's value.
- func (s *TaggedResource) SetResourceName(v string) *TaggedResource {
- s.ResourceName = &v
- return s
- }
- // SetResourceType sets the ResourceType field's value.
- func (s *TaggedResource) SetResourceType(v string) *TaggedResource {
- s.ResourceType = &v
- return s
- }
- // SetTag sets the Tag field's value.
- func (s *TaggedResource) SetTag(v *Tag) *TaggedResource {
- s.Tag = v
- return s
- }
- // A maintenance track that you can switch the current track to.
- type UpdateTarget struct {
- _ struct{} `type:"structure"`
- // The cluster version for the new maintenance track.
- DatabaseVersion *string `type:"string"`
- // The name of the new maintenance track.
- MaintenanceTrackName *string `type:"string"`
- // A list of operations supported by the maintenance track.
- SupportedOperations []*SupportedOperation `locationNameList:"SupportedOperation" type:"list"`
- }
- // String returns the string representation
- func (s UpdateTarget) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateTarget) GoString() string {
- return s.String()
- }
- // SetDatabaseVersion sets the DatabaseVersion field's value.
- func (s *UpdateTarget) SetDatabaseVersion(v string) *UpdateTarget {
- s.DatabaseVersion = &v
- return s
- }
- // SetMaintenanceTrackName sets the MaintenanceTrackName field's value.
- func (s *UpdateTarget) SetMaintenanceTrackName(v string) *UpdateTarget {
- s.MaintenanceTrackName = &v
- return s
- }
- // SetSupportedOperations sets the SupportedOperations field's value.
- func (s *UpdateTarget) SetSupportedOperations(v []*SupportedOperation) *UpdateTarget {
- s.SupportedOperations = v
- return s
- }
- // Describes the members of a VPC security group.
- type VpcSecurityGroupMembership struct {
- _ struct{} `type:"structure"`
- // The status of the VPC security group.
- Status *string `type:"string"`
- // The identifier of the VPC security group.
- VpcSecurityGroupId *string `type:"string"`
- }
- // String returns the string representation
- func (s VpcSecurityGroupMembership) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VpcSecurityGroupMembership) GoString() string {
- return s.String()
- }
- // SetStatus sets the Status field's value.
- func (s *VpcSecurityGroupMembership) SetStatus(v string) *VpcSecurityGroupMembership {
- s.Status = &v
- return s
- }
- // SetVpcSecurityGroupId sets the VpcSecurityGroupId field's value.
- func (s *VpcSecurityGroupMembership) SetVpcSecurityGroupId(v string) *VpcSecurityGroupMembership {
- s.VpcSecurityGroupId = &v
- return s
- }
- const (
- // ParameterApplyTypeStatic is a ParameterApplyType enum value
- ParameterApplyTypeStatic = "static"
- // ParameterApplyTypeDynamic is a ParameterApplyType enum value
- ParameterApplyTypeDynamic = "dynamic"
- )
- const (
- // ReservedNodeOfferingTypeRegular is a ReservedNodeOfferingType enum value
- ReservedNodeOfferingTypeRegular = "Regular"
- // ReservedNodeOfferingTypeUpgradable is a ReservedNodeOfferingType enum value
- ReservedNodeOfferingTypeUpgradable = "Upgradable"
- )
- const (
- // ScheduleStateModifying is a ScheduleState enum value
- ScheduleStateModifying = "MODIFYING"
- // ScheduleStateActive is a ScheduleState enum value
- ScheduleStateActive = "ACTIVE"
- // ScheduleStateFailed is a ScheduleState enum value
- ScheduleStateFailed = "FAILED"
- )
- const (
- // SnapshotAttributeToSortBySourceType is a SnapshotAttributeToSortBy enum value
- SnapshotAttributeToSortBySourceType = "SOURCE_TYPE"
- // SnapshotAttributeToSortByTotalSize is a SnapshotAttributeToSortBy enum value
- SnapshotAttributeToSortByTotalSize = "TOTAL_SIZE"
- // SnapshotAttributeToSortByCreateTime is a SnapshotAttributeToSortBy enum value
- SnapshotAttributeToSortByCreateTime = "CREATE_TIME"
- )
- const (
- // SortByOrderAsc is a SortByOrder enum value
- SortByOrderAsc = "ASC"
- // SortByOrderDesc is a SortByOrder enum value
- SortByOrderDesc = "DESC"
- )
- const (
- // SourceTypeCluster is a SourceType enum value
- SourceTypeCluster = "cluster"
- // SourceTypeClusterParameterGroup is a SourceType enum value
- SourceTypeClusterParameterGroup = "cluster-parameter-group"
- // SourceTypeClusterSecurityGroup is a SourceType enum value
- SourceTypeClusterSecurityGroup = "cluster-security-group"
- // SourceTypeClusterSnapshot is a SourceType enum value
- SourceTypeClusterSnapshot = "cluster-snapshot"
- )
- const (
- // TableRestoreStatusTypePending is a TableRestoreStatusType enum value
- TableRestoreStatusTypePending = "PENDING"
- // TableRestoreStatusTypeInProgress is a TableRestoreStatusType enum value
- TableRestoreStatusTypeInProgress = "IN_PROGRESS"
- // TableRestoreStatusTypeSucceeded is a TableRestoreStatusType enum value
- TableRestoreStatusTypeSucceeded = "SUCCEEDED"
- // TableRestoreStatusTypeFailed is a TableRestoreStatusType enum value
- TableRestoreStatusTypeFailed = "FAILED"
- // TableRestoreStatusTypeCanceled is a TableRestoreStatusType enum value
- TableRestoreStatusTypeCanceled = "CANCELED"
- )
|