api.go 259 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package storagegateway provides a client for AWS Storage Gateway.
  3. package storagegateway
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. )
  10. const opActivateGateway = "ActivateGateway"
  11. // ActivateGatewayRequest generates a "aws/request.Request" representing the
  12. // client's request for the ActivateGateway operation. The "output" return
  13. // value can be used to capture response data after the request's "Send" method
  14. // is called.
  15. //
  16. // Creating a request object using this method should be used when you want to inject
  17. // custom logic into the request's lifecycle using a custom handler, or if you want to
  18. // access properties on the request object before or after sending the request. If
  19. // you just want the service response, call the ActivateGateway method directly
  20. // instead.
  21. //
  22. // Note: You must call the "Send" method on the returned request object in order
  23. // to execute the request.
  24. //
  25. // // Example sending a request using the ActivateGatewayRequest method.
  26. // req, resp := client.ActivateGatewayRequest(params)
  27. //
  28. // err := req.Send()
  29. // if err == nil { // resp is now filled
  30. // fmt.Println(resp)
  31. // }
  32. //
  33. func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (req *request.Request, output *ActivateGatewayOutput) {
  34. op := &request.Operation{
  35. Name: opActivateGateway,
  36. HTTPMethod: "POST",
  37. HTTPPath: "/",
  38. }
  39. if input == nil {
  40. input = &ActivateGatewayInput{}
  41. }
  42. req = c.newRequest(op, input, output)
  43. output = &ActivateGatewayOutput{}
  44. req.Data = output
  45. return
  46. }
  47. // Activates the gateway you previously deployed on your host. For more information,
  48. // see Activate the AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/userguide/GettingStartedActivateGateway-common.html).
  49. // In the activation process, you specify information such as the you want to
  50. // use for storing snapshots, the time zone for scheduled snapshots the gateway
  51. // snapshot schedule window, an activation key, and a name for your gateway.
  52. // The activation process also associates your gateway with your account; for
  53. // more information, see UpdateGatewayInformation.
  54. //
  55. // You must turn on the gateway VM before you can activate your gateway.
  56. func (c *StorageGateway) ActivateGateway(input *ActivateGatewayInput) (*ActivateGatewayOutput, error) {
  57. req, out := c.ActivateGatewayRequest(input)
  58. err := req.Send()
  59. return out, err
  60. }
  61. const opAddCache = "AddCache"
  62. // AddCacheRequest generates a "aws/request.Request" representing the
  63. // client's request for the AddCache operation. The "output" return
  64. // value can be used to capture response data after the request's "Send" method
  65. // is called.
  66. //
  67. // Creating a request object using this method should be used when you want to inject
  68. // custom logic into the request's lifecycle using a custom handler, or if you want to
  69. // access properties on the request object before or after sending the request. If
  70. // you just want the service response, call the AddCache method directly
  71. // instead.
  72. //
  73. // Note: You must call the "Send" method on the returned request object in order
  74. // to execute the request.
  75. //
  76. // // Example sending a request using the AddCacheRequest method.
  77. // req, resp := client.AddCacheRequest(params)
  78. //
  79. // err := req.Send()
  80. // if err == nil { // resp is now filled
  81. // fmt.Println(resp)
  82. // }
  83. //
  84. func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *request.Request, output *AddCacheOutput) {
  85. op := &request.Operation{
  86. Name: opAddCache,
  87. HTTPMethod: "POST",
  88. HTTPPath: "/",
  89. }
  90. if input == nil {
  91. input = &AddCacheInput{}
  92. }
  93. req = c.newRequest(op, input, output)
  94. output = &AddCacheOutput{}
  95. req.Data = output
  96. return
  97. }
  98. // Configures one or more gateway local disks as cache for a cached-volume gateway.
  99. // This operation is supported only for the gateway-cached volume architecture
  100. // (see Storage Gateway Concepts (http://docs.aws.amazon.com/storagegateway/latest/userguide/StorageGatewayConcepts.html)).
  101. //
  102. // In the request, you specify the gateway Amazon Resource Name (ARN) to which
  103. // you want to add cache, and one or more disk IDs that you want to configure
  104. // as cache.
  105. func (c *StorageGateway) AddCache(input *AddCacheInput) (*AddCacheOutput, error) {
  106. req, out := c.AddCacheRequest(input)
  107. err := req.Send()
  108. return out, err
  109. }
  110. const opAddTagsToResource = "AddTagsToResource"
  111. // AddTagsToResourceRequest generates a "aws/request.Request" representing the
  112. // client's request for the AddTagsToResource operation. The "output" return
  113. // value can be used to capture response data after the request's "Send" method
  114. // is called.
  115. //
  116. // Creating a request object using this method should be used when you want to inject
  117. // custom logic into the request's lifecycle using a custom handler, or if you want to
  118. // access properties on the request object before or after sending the request. If
  119. // you just want the service response, call the AddTagsToResource method directly
  120. // instead.
  121. //
  122. // Note: You must call the "Send" method on the returned request object in order
  123. // to execute the request.
  124. //
  125. // // Example sending a request using the AddTagsToResourceRequest method.
  126. // req, resp := client.AddTagsToResourceRequest(params)
  127. //
  128. // err := req.Send()
  129. // if err == nil { // resp is now filled
  130. // fmt.Println(resp)
  131. // }
  132. //
  133. func (c *StorageGateway) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) {
  134. op := &request.Operation{
  135. Name: opAddTagsToResource,
  136. HTTPMethod: "POST",
  137. HTTPPath: "/",
  138. }
  139. if input == nil {
  140. input = &AddTagsToResourceInput{}
  141. }
  142. req = c.newRequest(op, input, output)
  143. output = &AddTagsToResourceOutput{}
  144. req.Data = output
  145. return
  146. }
  147. // Adds one or more tags to the specified resource. You use tags to add metadata
  148. // to resources, which you can use to categorize these resources. For example,
  149. // you can categorize resources by purpose, owner, environment, or team. Each
  150. // tag consists of a key and a value, which you define. You can add tags to
  151. // the following AWS Storage Gateway resources:
  152. //
  153. // Storage gateways of all types
  154. //
  155. // Storage Volumes
  156. //
  157. // Virtual Tapes
  158. //
  159. // You can create a maximum of 10 tags for each resource. Virtual tapes and
  160. // storage volumes that are recovered to a new gateway maintain their tags.
  161. func (c *StorageGateway) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
  162. req, out := c.AddTagsToResourceRequest(input)
  163. err := req.Send()
  164. return out, err
  165. }
  166. const opAddUploadBuffer = "AddUploadBuffer"
  167. // AddUploadBufferRequest generates a "aws/request.Request" representing the
  168. // client's request for the AddUploadBuffer operation. The "output" return
  169. // value can be used to capture response data after the request's "Send" method
  170. // is called.
  171. //
  172. // Creating a request object using this method should be used when you want to inject
  173. // custom logic into the request's lifecycle using a custom handler, or if you want to
  174. // access properties on the request object before or after sending the request. If
  175. // you just want the service response, call the AddUploadBuffer method directly
  176. // instead.
  177. //
  178. // Note: You must call the "Send" method on the returned request object in order
  179. // to execute the request.
  180. //
  181. // // Example sending a request using the AddUploadBufferRequest method.
  182. // req, resp := client.AddUploadBufferRequest(params)
  183. //
  184. // err := req.Send()
  185. // if err == nil { // resp is now filled
  186. // fmt.Println(resp)
  187. // }
  188. //
  189. func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (req *request.Request, output *AddUploadBufferOutput) {
  190. op := &request.Operation{
  191. Name: opAddUploadBuffer,
  192. HTTPMethod: "POST",
  193. HTTPPath: "/",
  194. }
  195. if input == nil {
  196. input = &AddUploadBufferInput{}
  197. }
  198. req = c.newRequest(op, input, output)
  199. output = &AddUploadBufferOutput{}
  200. req.Data = output
  201. return
  202. }
  203. // Configures one or more gateway local disks as upload buffer for a specified
  204. // gateway. This operation is supported for both the gateway-stored and gateway-cached
  205. // volume architectures.
  206. //
  207. // In the request, you specify the gateway Amazon Resource Name (ARN) to which
  208. // you want to add upload buffer, and one or more disk IDs that you want to
  209. // configure as upload buffer.
  210. func (c *StorageGateway) AddUploadBuffer(input *AddUploadBufferInput) (*AddUploadBufferOutput, error) {
  211. req, out := c.AddUploadBufferRequest(input)
  212. err := req.Send()
  213. return out, err
  214. }
  215. const opAddWorkingStorage = "AddWorkingStorage"
  216. // AddWorkingStorageRequest generates a "aws/request.Request" representing the
  217. // client's request for the AddWorkingStorage operation. The "output" return
  218. // value can be used to capture response data after the request's "Send" method
  219. // is called.
  220. //
  221. // Creating a request object using this method should be used when you want to inject
  222. // custom logic into the request's lifecycle using a custom handler, or if you want to
  223. // access properties on the request object before or after sending the request. If
  224. // you just want the service response, call the AddWorkingStorage method directly
  225. // instead.
  226. //
  227. // Note: You must call the "Send" method on the returned request object in order
  228. // to execute the request.
  229. //
  230. // // Example sending a request using the AddWorkingStorageRequest method.
  231. // req, resp := client.AddWorkingStorageRequest(params)
  232. //
  233. // err := req.Send()
  234. // if err == nil { // resp is now filled
  235. // fmt.Println(resp)
  236. // }
  237. //
  238. func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) (req *request.Request, output *AddWorkingStorageOutput) {
  239. op := &request.Operation{
  240. Name: opAddWorkingStorage,
  241. HTTPMethod: "POST",
  242. HTTPPath: "/",
  243. }
  244. if input == nil {
  245. input = &AddWorkingStorageInput{}
  246. }
  247. req = c.newRequest(op, input, output)
  248. output = &AddWorkingStorageOutput{}
  249. req.Data = output
  250. return
  251. }
  252. // Configures one or more gateway local disks as working storage for a gateway.
  253. // This operation is supported only for the gateway-stored volume architecture.
  254. // This operation is deprecated in cached-volumes API version 20120630. Use
  255. // AddUploadBuffer instead.
  256. //
  257. // Working storage is also referred to as upload buffer. You can also use
  258. // the AddUploadBuffer operation to add upload buffer to a stored-volume gateway.
  259. //
  260. // In the request, you specify the gateway Amazon Resource Name (ARN) to which
  261. // you want to add working storage, and one or more disk IDs that you want to
  262. // configure as working storage.
  263. func (c *StorageGateway) AddWorkingStorage(input *AddWorkingStorageInput) (*AddWorkingStorageOutput, error) {
  264. req, out := c.AddWorkingStorageRequest(input)
  265. err := req.Send()
  266. return out, err
  267. }
  268. const opCancelArchival = "CancelArchival"
  269. // CancelArchivalRequest generates a "aws/request.Request" representing the
  270. // client's request for the CancelArchival operation. The "output" return
  271. // value can be used to capture response data after the request's "Send" method
  272. // is called.
  273. //
  274. // Creating a request object using this method should be used when you want to inject
  275. // custom logic into the request's lifecycle using a custom handler, or if you want to
  276. // access properties on the request object before or after sending the request. If
  277. // you just want the service response, call the CancelArchival method directly
  278. // instead.
  279. //
  280. // Note: You must call the "Send" method on the returned request object in order
  281. // to execute the request.
  282. //
  283. // // Example sending a request using the CancelArchivalRequest method.
  284. // req, resp := client.CancelArchivalRequest(params)
  285. //
  286. // err := req.Send()
  287. // if err == nil { // resp is now filled
  288. // fmt.Println(resp)
  289. // }
  290. //
  291. func (c *StorageGateway) CancelArchivalRequest(input *CancelArchivalInput) (req *request.Request, output *CancelArchivalOutput) {
  292. op := &request.Operation{
  293. Name: opCancelArchival,
  294. HTTPMethod: "POST",
  295. HTTPPath: "/",
  296. }
  297. if input == nil {
  298. input = &CancelArchivalInput{}
  299. }
  300. req = c.newRequest(op, input, output)
  301. output = &CancelArchivalOutput{}
  302. req.Data = output
  303. return
  304. }
  305. // Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after
  306. // the archiving process is initiated.
  307. func (c *StorageGateway) CancelArchival(input *CancelArchivalInput) (*CancelArchivalOutput, error) {
  308. req, out := c.CancelArchivalRequest(input)
  309. err := req.Send()
  310. return out, err
  311. }
  312. const opCancelRetrieval = "CancelRetrieval"
  313. // CancelRetrievalRequest generates a "aws/request.Request" representing the
  314. // client's request for the CancelRetrieval operation. The "output" return
  315. // value can be used to capture response data after the request's "Send" method
  316. // is called.
  317. //
  318. // Creating a request object using this method should be used when you want to inject
  319. // custom logic into the request's lifecycle using a custom handler, or if you want to
  320. // access properties on the request object before or after sending the request. If
  321. // you just want the service response, call the CancelRetrieval method directly
  322. // instead.
  323. //
  324. // Note: You must call the "Send" method on the returned request object in order
  325. // to execute the request.
  326. //
  327. // // Example sending a request using the CancelRetrievalRequest method.
  328. // req, resp := client.CancelRetrievalRequest(params)
  329. //
  330. // err := req.Send()
  331. // if err == nil { // resp is now filled
  332. // fmt.Println(resp)
  333. // }
  334. //
  335. func (c *StorageGateway) CancelRetrievalRequest(input *CancelRetrievalInput) (req *request.Request, output *CancelRetrievalOutput) {
  336. op := &request.Operation{
  337. Name: opCancelRetrieval,
  338. HTTPMethod: "POST",
  339. HTTPPath: "/",
  340. }
  341. if input == nil {
  342. input = &CancelRetrievalInput{}
  343. }
  344. req = c.newRequest(op, input, output)
  345. output = &CancelRetrievalOutput{}
  346. req.Data = output
  347. return
  348. }
  349. // Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to
  350. // a gateway after the retrieval process is initiated. The virtual tape is returned
  351. // to the VTS.
  352. func (c *StorageGateway) CancelRetrieval(input *CancelRetrievalInput) (*CancelRetrievalOutput, error) {
  353. req, out := c.CancelRetrievalRequest(input)
  354. err := req.Send()
  355. return out, err
  356. }
  357. const opCreateCachediSCSIVolume = "CreateCachediSCSIVolume"
  358. // CreateCachediSCSIVolumeRequest generates a "aws/request.Request" representing the
  359. // client's request for the CreateCachediSCSIVolume operation. The "output" return
  360. // value can be used to capture response data after the request's "Send" method
  361. // is called.
  362. //
  363. // Creating a request object using this method should be used when you want to inject
  364. // custom logic into the request's lifecycle using a custom handler, or if you want to
  365. // access properties on the request object before or after sending the request. If
  366. // you just want the service response, call the CreateCachediSCSIVolume method directly
  367. // instead.
  368. //
  369. // Note: You must call the "Send" method on the returned request object in order
  370. // to execute the request.
  371. //
  372. // // Example sending a request using the CreateCachediSCSIVolumeRequest method.
  373. // req, resp := client.CreateCachediSCSIVolumeRequest(params)
  374. //
  375. // err := req.Send()
  376. // if err == nil { // resp is now filled
  377. // fmt.Println(resp)
  378. // }
  379. //
  380. func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSIVolumeInput) (req *request.Request, output *CreateCachediSCSIVolumeOutput) {
  381. op := &request.Operation{
  382. Name: opCreateCachediSCSIVolume,
  383. HTTPMethod: "POST",
  384. HTTPPath: "/",
  385. }
  386. if input == nil {
  387. input = &CreateCachediSCSIVolumeInput{}
  388. }
  389. req = c.newRequest(op, input, output)
  390. output = &CreateCachediSCSIVolumeOutput{}
  391. req.Data = output
  392. return
  393. }
  394. // Creates a cached volume on a specified cached gateway. This operation is
  395. // supported only for the gateway-cached volume architecture.
  396. //
  397. // Cache storage must be allocated to the gateway before you can create a cached
  398. // volume. Use the AddCache operation to add cache storage to a gateway.
  399. //
  400. // In the request, you must specify the gateway, size of the volume in bytes,
  401. // the iSCSI target name, an IP address on which to expose the target, and a
  402. // unique client token. In response, AWS Storage Gateway creates the volume
  403. // and returns information about it such as the volume Amazon Resource Name
  404. // (ARN), its size, and the iSCSI target ARN that initiators can use to connect
  405. // to the volume target.
  406. func (c *StorageGateway) CreateCachediSCSIVolume(input *CreateCachediSCSIVolumeInput) (*CreateCachediSCSIVolumeOutput, error) {
  407. req, out := c.CreateCachediSCSIVolumeRequest(input)
  408. err := req.Send()
  409. return out, err
  410. }
  411. const opCreateSnapshot = "CreateSnapshot"
  412. // CreateSnapshotRequest generates a "aws/request.Request" representing the
  413. // client's request for the CreateSnapshot operation. The "output" return
  414. // value can be used to capture response data after the request's "Send" method
  415. // is called.
  416. //
  417. // Creating a request object using this method should be used when you want to inject
  418. // custom logic into the request's lifecycle using a custom handler, or if you want to
  419. // access properties on the request object before or after sending the request. If
  420. // you just want the service response, call the CreateSnapshot method directly
  421. // instead.
  422. //
  423. // Note: You must call the "Send" method on the returned request object in order
  424. // to execute the request.
  425. //
  426. // // Example sending a request using the CreateSnapshotRequest method.
  427. // req, resp := client.CreateSnapshotRequest(params)
  428. //
  429. // err := req.Send()
  430. // if err == nil { // resp is now filled
  431. // fmt.Println(resp)
  432. // }
  433. //
  434. func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *CreateSnapshotOutput) {
  435. op := &request.Operation{
  436. Name: opCreateSnapshot,
  437. HTTPMethod: "POST",
  438. HTTPPath: "/",
  439. }
  440. if input == nil {
  441. input = &CreateSnapshotInput{}
  442. }
  443. req = c.newRequest(op, input, output)
  444. output = &CreateSnapshotOutput{}
  445. req.Data = output
  446. return
  447. }
  448. // Initiates a snapshot of a volume.
  449. //
  450. // AWS Storage Gateway provides the ability to back up point-in-time snapshots
  451. // of your data to Amazon Simple Storage (S3) for durable off-site recovery,
  452. // as well as import the data to an Amazon Elastic Block Store (EBS) volume
  453. // in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your gateway
  454. // volume on a scheduled or ad-hoc basis. This API enables you to take ad-hoc
  455. // snapshot. For more information, see Working With Snapshots in the AWS Storage
  456. // Gateway Console (http://docs.aws.amazon.com/storagegateway/latest/userguide/WorkingWithSnapshots.html).
  457. //
  458. // In the CreateSnapshot request you identify the volume by providing its Amazon
  459. // Resource Name (ARN). You must also provide description for the snapshot.
  460. // When AWS Storage Gateway takes the snapshot of specified volume, the snapshot
  461. // and description appears in the AWS Storage Gateway Console. In response,
  462. // AWS Storage Gateway returns you a snapshot ID. You can use this snapshot
  463. // ID to check the snapshot progress or later use it when you want to create
  464. // a volume from a snapshot.
  465. //
  466. // To list or delete a snapshot, you must use the Amazon EC2 API. For more
  467. // information, see DescribeSnapshots or DeleteSnapshot in the EC2 API reference
  468. // (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Operations.html).
  469. //
  470. // Volume and snapshot IDs are changing to a longer length ID format. For
  471. // more information, see the important note on the Welcome (http://docs.aws.amazon.com/storagegateway/latest/APIReference/Welcome.html)
  472. // page.
  473. func (c *StorageGateway) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) {
  474. req, out := c.CreateSnapshotRequest(input)
  475. err := req.Send()
  476. return out, err
  477. }
  478. const opCreateSnapshotFromVolumeRecoveryPoint = "CreateSnapshotFromVolumeRecoveryPoint"
  479. // CreateSnapshotFromVolumeRecoveryPointRequest generates a "aws/request.Request" representing the
  480. // client's request for the CreateSnapshotFromVolumeRecoveryPoint operation. The "output" return
  481. // value can be used to capture response data after the request's "Send" method
  482. // is called.
  483. //
  484. // Creating a request object using this method should be used when you want to inject
  485. // custom logic into the request's lifecycle using a custom handler, or if you want to
  486. // access properties on the request object before or after sending the request. If
  487. // you just want the service response, call the CreateSnapshotFromVolumeRecoveryPoint method directly
  488. // instead.
  489. //
  490. // Note: You must call the "Send" method on the returned request object in order
  491. // to execute the request.
  492. //
  493. // // Example sending a request using the CreateSnapshotFromVolumeRecoveryPointRequest method.
  494. // req, resp := client.CreateSnapshotFromVolumeRecoveryPointRequest(params)
  495. //
  496. // err := req.Send()
  497. // if err == nil { // resp is now filled
  498. // fmt.Println(resp)
  499. // }
  500. //
  501. func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *CreateSnapshotFromVolumeRecoveryPointInput) (req *request.Request, output *CreateSnapshotFromVolumeRecoveryPointOutput) {
  502. op := &request.Operation{
  503. Name: opCreateSnapshotFromVolumeRecoveryPoint,
  504. HTTPMethod: "POST",
  505. HTTPPath: "/",
  506. }
  507. if input == nil {
  508. input = &CreateSnapshotFromVolumeRecoveryPointInput{}
  509. }
  510. req = c.newRequest(op, input, output)
  511. output = &CreateSnapshotFromVolumeRecoveryPointOutput{}
  512. req.Data = output
  513. return
  514. }
  515. // Initiates a snapshot of a gateway from a volume recovery point. This operation
  516. // is supported only for the gateway-cached volume architecture.
  517. //
  518. // A volume recovery point is a point in time at which all data of the volume
  519. // is consistent and from which you can create a snapshot. To get a list of
  520. // volume recovery point for gateway-cached volumes, use ListVolumeRecoveryPoints.
  521. //
  522. // In the CreateSnapshotFromVolumeRecoveryPoint request, you identify the volume
  523. // by providing its Amazon Resource Name (ARN). You must also provide a description
  524. // for the snapshot. When AWS Storage Gateway takes a snapshot of the specified
  525. // volume, the snapshot and its description appear in the AWS Storage Gateway
  526. // console. In response, AWS Storage Gateway returns you a snapshot ID. You
  527. // can use this snapshot ID to check the snapshot progress or later use it when
  528. // you want to create a volume from a snapshot.
  529. //
  530. // To list or delete a snapshot, you must use the Amazon EC2 API. For more
  531. // information, in Amazon Elastic Compute Cloud API Reference.
  532. func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPoint(input *CreateSnapshotFromVolumeRecoveryPointInput) (*CreateSnapshotFromVolumeRecoveryPointOutput, error) {
  533. req, out := c.CreateSnapshotFromVolumeRecoveryPointRequest(input)
  534. err := req.Send()
  535. return out, err
  536. }
  537. const opCreateStorediSCSIVolume = "CreateStorediSCSIVolume"
  538. // CreateStorediSCSIVolumeRequest generates a "aws/request.Request" representing the
  539. // client's request for the CreateStorediSCSIVolume operation. The "output" return
  540. // value can be used to capture response data after the request's "Send" method
  541. // is called.
  542. //
  543. // Creating a request object using this method should be used when you want to inject
  544. // custom logic into the request's lifecycle using a custom handler, or if you want to
  545. // access properties on the request object before or after sending the request. If
  546. // you just want the service response, call the CreateStorediSCSIVolume method directly
  547. // instead.
  548. //
  549. // Note: You must call the "Send" method on the returned request object in order
  550. // to execute the request.
  551. //
  552. // // Example sending a request using the CreateStorediSCSIVolumeRequest method.
  553. // req, resp := client.CreateStorediSCSIVolumeRequest(params)
  554. //
  555. // err := req.Send()
  556. // if err == nil { // resp is now filled
  557. // fmt.Println(resp)
  558. // }
  559. //
  560. func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSIVolumeInput) (req *request.Request, output *CreateStorediSCSIVolumeOutput) {
  561. op := &request.Operation{
  562. Name: opCreateStorediSCSIVolume,
  563. HTTPMethod: "POST",
  564. HTTPPath: "/",
  565. }
  566. if input == nil {
  567. input = &CreateStorediSCSIVolumeInput{}
  568. }
  569. req = c.newRequest(op, input, output)
  570. output = &CreateStorediSCSIVolumeOutput{}
  571. req.Data = output
  572. return
  573. }
  574. // Creates a volume on a specified gateway. This operation is supported only
  575. // for the gateway-stored volume architecture.
  576. //
  577. // The size of the volume to create is inferred from the disk size. You can
  578. // choose to preserve existing data on the disk, create volume from an existing
  579. // snapshot, or create an empty volume. If you choose to create an empty gateway
  580. // volume, then any existing data on the disk is erased.
  581. //
  582. // In the request you must specify the gateway and the disk information on
  583. // which you are creating the volume. In response, AWS Storage Gateway creates
  584. // the volume and returns volume information such as the volume Amazon Resource
  585. // Name (ARN), its size, and the iSCSI target ARN that initiators can use to
  586. // connect to the volume target.
  587. func (c *StorageGateway) CreateStorediSCSIVolume(input *CreateStorediSCSIVolumeInput) (*CreateStorediSCSIVolumeOutput, error) {
  588. req, out := c.CreateStorediSCSIVolumeRequest(input)
  589. err := req.Send()
  590. return out, err
  591. }
  592. const opCreateTapeWithBarcode = "CreateTapeWithBarcode"
  593. // CreateTapeWithBarcodeRequest generates a "aws/request.Request" representing the
  594. // client's request for the CreateTapeWithBarcode operation. The "output" return
  595. // value can be used to capture response data after the request's "Send" method
  596. // is called.
  597. //
  598. // Creating a request object using this method should be used when you want to inject
  599. // custom logic into the request's lifecycle using a custom handler, or if you want to
  600. // access properties on the request object before or after sending the request. If
  601. // you just want the service response, call the CreateTapeWithBarcode method directly
  602. // instead.
  603. //
  604. // Note: You must call the "Send" method on the returned request object in order
  605. // to execute the request.
  606. //
  607. // // Example sending a request using the CreateTapeWithBarcodeRequest method.
  608. // req, resp := client.CreateTapeWithBarcodeRequest(params)
  609. //
  610. // err := req.Send()
  611. // if err == nil { // resp is now filled
  612. // fmt.Println(resp)
  613. // }
  614. //
  615. func (c *StorageGateway) CreateTapeWithBarcodeRequest(input *CreateTapeWithBarcodeInput) (req *request.Request, output *CreateTapeWithBarcodeOutput) {
  616. op := &request.Operation{
  617. Name: opCreateTapeWithBarcode,
  618. HTTPMethod: "POST",
  619. HTTPPath: "/",
  620. }
  621. if input == nil {
  622. input = &CreateTapeWithBarcodeInput{}
  623. }
  624. req = c.newRequest(op, input, output)
  625. output = &CreateTapeWithBarcodeOutput{}
  626. req.Data = output
  627. return
  628. }
  629. // Creates a virtual tape by using your own barcode. You write data to the virtual
  630. // tape and then archive the tape.
  631. //
  632. // Cache storage must be allocated to the gateway before you can create a virtual
  633. // tape. Use the AddCache operation to add cache storage to a gateway.
  634. func (c *StorageGateway) CreateTapeWithBarcode(input *CreateTapeWithBarcodeInput) (*CreateTapeWithBarcodeOutput, error) {
  635. req, out := c.CreateTapeWithBarcodeRequest(input)
  636. err := req.Send()
  637. return out, err
  638. }
  639. const opCreateTapes = "CreateTapes"
  640. // CreateTapesRequest generates a "aws/request.Request" representing the
  641. // client's request for the CreateTapes operation. The "output" return
  642. // value can be used to capture response data after the request's "Send" method
  643. // is called.
  644. //
  645. // Creating a request object using this method should be used when you want to inject
  646. // custom logic into the request's lifecycle using a custom handler, or if you want to
  647. // access properties on the request object before or after sending the request. If
  648. // you just want the service response, call the CreateTapes method directly
  649. // instead.
  650. //
  651. // Note: You must call the "Send" method on the returned request object in order
  652. // to execute the request.
  653. //
  654. // // Example sending a request using the CreateTapesRequest method.
  655. // req, resp := client.CreateTapesRequest(params)
  656. //
  657. // err := req.Send()
  658. // if err == nil { // resp is now filled
  659. // fmt.Println(resp)
  660. // }
  661. //
  662. func (c *StorageGateway) CreateTapesRequest(input *CreateTapesInput) (req *request.Request, output *CreateTapesOutput) {
  663. op := &request.Operation{
  664. Name: opCreateTapes,
  665. HTTPMethod: "POST",
  666. HTTPPath: "/",
  667. }
  668. if input == nil {
  669. input = &CreateTapesInput{}
  670. }
  671. req = c.newRequest(op, input, output)
  672. output = &CreateTapesOutput{}
  673. req.Data = output
  674. return
  675. }
  676. // Creates one or more virtual tapes. You write data to the virtual tapes and
  677. // then archive the tapes.
  678. //
  679. // Cache storage must be allocated to the gateway before you can create virtual
  680. // tapes. Use the AddCache operation to add cache storage to a gateway.
  681. func (c *StorageGateway) CreateTapes(input *CreateTapesInput) (*CreateTapesOutput, error) {
  682. req, out := c.CreateTapesRequest(input)
  683. err := req.Send()
  684. return out, err
  685. }
  686. const opDeleteBandwidthRateLimit = "DeleteBandwidthRateLimit"
  687. // DeleteBandwidthRateLimitRequest generates a "aws/request.Request" representing the
  688. // client's request for the DeleteBandwidthRateLimit operation. The "output" return
  689. // value can be used to capture response data after the request's "Send" method
  690. // is called.
  691. //
  692. // Creating a request object using this method should be used when you want to inject
  693. // custom logic into the request's lifecycle using a custom handler, or if you want to
  694. // access properties on the request object before or after sending the request. If
  695. // you just want the service response, call the DeleteBandwidthRateLimit method directly
  696. // instead.
  697. //
  698. // Note: You must call the "Send" method on the returned request object in order
  699. // to execute the request.
  700. //
  701. // // Example sending a request using the DeleteBandwidthRateLimitRequest method.
  702. // req, resp := client.DeleteBandwidthRateLimitRequest(params)
  703. //
  704. // err := req.Send()
  705. // if err == nil { // resp is now filled
  706. // fmt.Println(resp)
  707. // }
  708. //
  709. func (c *StorageGateway) DeleteBandwidthRateLimitRequest(input *DeleteBandwidthRateLimitInput) (req *request.Request, output *DeleteBandwidthRateLimitOutput) {
  710. op := &request.Operation{
  711. Name: opDeleteBandwidthRateLimit,
  712. HTTPMethod: "POST",
  713. HTTPPath: "/",
  714. }
  715. if input == nil {
  716. input = &DeleteBandwidthRateLimitInput{}
  717. }
  718. req = c.newRequest(op, input, output)
  719. output = &DeleteBandwidthRateLimitOutput{}
  720. req.Data = output
  721. return
  722. }
  723. // Deletes the bandwidth rate limits of a gateway. You can delete either the
  724. // upload and download bandwidth rate limit, or you can delete both. If you
  725. // delete only one of the limits, the other limit remains unchanged. To specify
  726. // which gateway to work with, use the Amazon Resource Name (ARN) of the gateway
  727. // in your request.
  728. func (c *StorageGateway) DeleteBandwidthRateLimit(input *DeleteBandwidthRateLimitInput) (*DeleteBandwidthRateLimitOutput, error) {
  729. req, out := c.DeleteBandwidthRateLimitRequest(input)
  730. err := req.Send()
  731. return out, err
  732. }
  733. const opDeleteChapCredentials = "DeleteChapCredentials"
  734. // DeleteChapCredentialsRequest generates a "aws/request.Request" representing the
  735. // client's request for the DeleteChapCredentials operation. The "output" return
  736. // value can be used to capture response data after the request's "Send" method
  737. // is called.
  738. //
  739. // Creating a request object using this method should be used when you want to inject
  740. // custom logic into the request's lifecycle using a custom handler, or if you want to
  741. // access properties on the request object before or after sending the request. If
  742. // you just want the service response, call the DeleteChapCredentials method directly
  743. // instead.
  744. //
  745. // Note: You must call the "Send" method on the returned request object in order
  746. // to execute the request.
  747. //
  748. // // Example sending a request using the DeleteChapCredentialsRequest method.
  749. // req, resp := client.DeleteChapCredentialsRequest(params)
  750. //
  751. // err := req.Send()
  752. // if err == nil { // resp is now filled
  753. // fmt.Println(resp)
  754. // }
  755. //
  756. func (c *StorageGateway) DeleteChapCredentialsRequest(input *DeleteChapCredentialsInput) (req *request.Request, output *DeleteChapCredentialsOutput) {
  757. op := &request.Operation{
  758. Name: opDeleteChapCredentials,
  759. HTTPMethod: "POST",
  760. HTTPPath: "/",
  761. }
  762. if input == nil {
  763. input = &DeleteChapCredentialsInput{}
  764. }
  765. req = c.newRequest(op, input, output)
  766. output = &DeleteChapCredentialsOutput{}
  767. req.Data = output
  768. return
  769. }
  770. // Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for
  771. // a specified iSCSI target and initiator pair.
  772. func (c *StorageGateway) DeleteChapCredentials(input *DeleteChapCredentialsInput) (*DeleteChapCredentialsOutput, error) {
  773. req, out := c.DeleteChapCredentialsRequest(input)
  774. err := req.Send()
  775. return out, err
  776. }
  777. const opDeleteGateway = "DeleteGateway"
  778. // DeleteGatewayRequest generates a "aws/request.Request" representing the
  779. // client's request for the DeleteGateway operation. The "output" return
  780. // value can be used to capture response data after the request's "Send" method
  781. // is called.
  782. //
  783. // Creating a request object using this method should be used when you want to inject
  784. // custom logic into the request's lifecycle using a custom handler, or if you want to
  785. // access properties on the request object before or after sending the request. If
  786. // you just want the service response, call the DeleteGateway method directly
  787. // instead.
  788. //
  789. // Note: You must call the "Send" method on the returned request object in order
  790. // to execute the request.
  791. //
  792. // // Example sending a request using the DeleteGatewayRequest method.
  793. // req, resp := client.DeleteGatewayRequest(params)
  794. //
  795. // err := req.Send()
  796. // if err == nil { // resp is now filled
  797. // fmt.Println(resp)
  798. // }
  799. //
  800. func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *request.Request, output *DeleteGatewayOutput) {
  801. op := &request.Operation{
  802. Name: opDeleteGateway,
  803. HTTPMethod: "POST",
  804. HTTPPath: "/",
  805. }
  806. if input == nil {
  807. input = &DeleteGatewayInput{}
  808. }
  809. req = c.newRequest(op, input, output)
  810. output = &DeleteGatewayOutput{}
  811. req.Data = output
  812. return
  813. }
  814. // Deletes a gateway. To specify which gateway to delete, use the Amazon Resource
  815. // Name (ARN) of the gateway in your request. The operation deletes the gateway;
  816. // however, it does not delete the gateway virtual machine (VM) from your host
  817. // computer.
  818. //
  819. // After you delete a gateway, you cannot reactivate it. Completed snapshots
  820. // of the gateway volumes are not deleted upon deleting the gateway, however,
  821. // pending snapshots will not complete. After you delete a gateway, your next
  822. // step is to remove it from your environment.
  823. //
  824. // You no longer pay software charges after the gateway is deleted; however,
  825. // your existing Amazon EBS snapshots persist and you will continue to be billed
  826. // for these snapshots. You can choose to remove all remaining Amazon EBS snapshots
  827. // by canceling your Amazon EC2 subscription.  If you prefer not to cancel your
  828. // Amazon EC2 subscription, you can delete your snapshots using the Amazon EC2
  829. // console. For more information, see the AWS Storage Gateway Detail Page (http://aws.amazon.com/storagegateway).
  830. func (c *StorageGateway) DeleteGateway(input *DeleteGatewayInput) (*DeleteGatewayOutput, error) {
  831. req, out := c.DeleteGatewayRequest(input)
  832. err := req.Send()
  833. return out, err
  834. }
  835. const opDeleteSnapshotSchedule = "DeleteSnapshotSchedule"
  836. // DeleteSnapshotScheduleRequest generates a "aws/request.Request" representing the
  837. // client's request for the DeleteSnapshotSchedule operation. The "output" return
  838. // value can be used to capture response data after the request's "Send" method
  839. // is called.
  840. //
  841. // Creating a request object using this method should be used when you want to inject
  842. // custom logic into the request's lifecycle using a custom handler, or if you want to
  843. // access properties on the request object before or after sending the request. If
  844. // you just want the service response, call the DeleteSnapshotSchedule method directly
  845. // instead.
  846. //
  847. // Note: You must call the "Send" method on the returned request object in order
  848. // to execute the request.
  849. //
  850. // // Example sending a request using the DeleteSnapshotScheduleRequest method.
  851. // req, resp := client.DeleteSnapshotScheduleRequest(params)
  852. //
  853. // err := req.Send()
  854. // if err == nil { // resp is now filled
  855. // fmt.Println(resp)
  856. // }
  857. //
  858. func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotScheduleInput) (req *request.Request, output *DeleteSnapshotScheduleOutput) {
  859. op := &request.Operation{
  860. Name: opDeleteSnapshotSchedule,
  861. HTTPMethod: "POST",
  862. HTTPPath: "/",
  863. }
  864. if input == nil {
  865. input = &DeleteSnapshotScheduleInput{}
  866. }
  867. req = c.newRequest(op, input, output)
  868. output = &DeleteSnapshotScheduleOutput{}
  869. req.Data = output
  870. return
  871. }
  872. // Deletes a snapshot of a volume.
  873. //
  874. // You can take snapshots of your gateway volumes on a scheduled or ad hoc
  875. // basis. This API action enables you to delete a snapshot schedule for a volume.
  876. // For more information, see Working with Snapshots (http://docs.aws.amazon.com/storagegateway/latest/userguide/WorkingWithSnapshots.html).
  877. // In the DeleteSnapshotSchedule request, you identify the volume by providing
  878. // its Amazon Resource Name (ARN).
  879. //
  880. // To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon
  881. // Elastic Compute Cloud API Reference.
  882. func (c *StorageGateway) DeleteSnapshotSchedule(input *DeleteSnapshotScheduleInput) (*DeleteSnapshotScheduleOutput, error) {
  883. req, out := c.DeleteSnapshotScheduleRequest(input)
  884. err := req.Send()
  885. return out, err
  886. }
  887. const opDeleteTape = "DeleteTape"
  888. // DeleteTapeRequest generates a "aws/request.Request" representing the
  889. // client's request for the DeleteTape operation. The "output" return
  890. // value can be used to capture response data after the request's "Send" method
  891. // is called.
  892. //
  893. // Creating a request object using this method should be used when you want to inject
  894. // custom logic into the request's lifecycle using a custom handler, or if you want to
  895. // access properties on the request object before or after sending the request. If
  896. // you just want the service response, call the DeleteTape method directly
  897. // instead.
  898. //
  899. // Note: You must call the "Send" method on the returned request object in order
  900. // to execute the request.
  901. //
  902. // // Example sending a request using the DeleteTapeRequest method.
  903. // req, resp := client.DeleteTapeRequest(params)
  904. //
  905. // err := req.Send()
  906. // if err == nil { // resp is now filled
  907. // fmt.Println(resp)
  908. // }
  909. //
  910. func (c *StorageGateway) DeleteTapeRequest(input *DeleteTapeInput) (req *request.Request, output *DeleteTapeOutput) {
  911. op := &request.Operation{
  912. Name: opDeleteTape,
  913. HTTPMethod: "POST",
  914. HTTPPath: "/",
  915. }
  916. if input == nil {
  917. input = &DeleteTapeInput{}
  918. }
  919. req = c.newRequest(op, input, output)
  920. output = &DeleteTapeOutput{}
  921. req.Data = output
  922. return
  923. }
  924. // Deletes the specified virtual tape.
  925. func (c *StorageGateway) DeleteTape(input *DeleteTapeInput) (*DeleteTapeOutput, error) {
  926. req, out := c.DeleteTapeRequest(input)
  927. err := req.Send()
  928. return out, err
  929. }
  930. const opDeleteTapeArchive = "DeleteTapeArchive"
  931. // DeleteTapeArchiveRequest generates a "aws/request.Request" representing the
  932. // client's request for the DeleteTapeArchive operation. The "output" return
  933. // value can be used to capture response data after the request's "Send" method
  934. // is called.
  935. //
  936. // Creating a request object using this method should be used when you want to inject
  937. // custom logic into the request's lifecycle using a custom handler, or if you want to
  938. // access properties on the request object before or after sending the request. If
  939. // you just want the service response, call the DeleteTapeArchive method directly
  940. // instead.
  941. //
  942. // Note: You must call the "Send" method on the returned request object in order
  943. // to execute the request.
  944. //
  945. // // Example sending a request using the DeleteTapeArchiveRequest method.
  946. // req, resp := client.DeleteTapeArchiveRequest(params)
  947. //
  948. // err := req.Send()
  949. // if err == nil { // resp is now filled
  950. // fmt.Println(resp)
  951. // }
  952. //
  953. func (c *StorageGateway) DeleteTapeArchiveRequest(input *DeleteTapeArchiveInput) (req *request.Request, output *DeleteTapeArchiveOutput) {
  954. op := &request.Operation{
  955. Name: opDeleteTapeArchive,
  956. HTTPMethod: "POST",
  957. HTTPPath: "/",
  958. }
  959. if input == nil {
  960. input = &DeleteTapeArchiveInput{}
  961. }
  962. req = c.newRequest(op, input, output)
  963. output = &DeleteTapeArchiveOutput{}
  964. req.Data = output
  965. return
  966. }
  967. // Deletes the specified virtual tape from the virtual tape shelf (VTS).
  968. func (c *StorageGateway) DeleteTapeArchive(input *DeleteTapeArchiveInput) (*DeleteTapeArchiveOutput, error) {
  969. req, out := c.DeleteTapeArchiveRequest(input)
  970. err := req.Send()
  971. return out, err
  972. }
  973. const opDeleteVolume = "DeleteVolume"
  974. // DeleteVolumeRequest generates a "aws/request.Request" representing the
  975. // client's request for the DeleteVolume operation. The "output" return
  976. // value can be used to capture response data after the request's "Send" method
  977. // is called.
  978. //
  979. // Creating a request object using this method should be used when you want to inject
  980. // custom logic into the request's lifecycle using a custom handler, or if you want to
  981. // access properties on the request object before or after sending the request. If
  982. // you just want the service response, call the DeleteVolume method directly
  983. // instead.
  984. //
  985. // Note: You must call the "Send" method on the returned request object in order
  986. // to execute the request.
  987. //
  988. // // Example sending a request using the DeleteVolumeRequest method.
  989. // req, resp := client.DeleteVolumeRequest(params)
  990. //
  991. // err := req.Send()
  992. // if err == nil { // resp is now filled
  993. // fmt.Println(resp)
  994. // }
  995. //
  996. func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Request, output *DeleteVolumeOutput) {
  997. op := &request.Operation{
  998. Name: opDeleteVolume,
  999. HTTPMethod: "POST",
  1000. HTTPPath: "/",
  1001. }
  1002. if input == nil {
  1003. input = &DeleteVolumeInput{}
  1004. }
  1005. req = c.newRequest(op, input, output)
  1006. output = &DeleteVolumeOutput{}
  1007. req.Data = output
  1008. return
  1009. }
  1010. // Deletes the specified gateway volume that you previously created using the
  1011. // CreateCachediSCSIVolume or CreateStorediSCSIVolume API. For gateway-stored
  1012. // volumes, the local disk that was configured as the storage volume is not
  1013. // deleted. You can reuse the local disk to create another storage volume.
  1014. //
  1015. // Before you delete a gateway volume, make sure there are no iSCSI connections
  1016. // to the volume you are deleting. You should also make sure there is no snapshot
  1017. // in progress. You can use the Amazon Elastic Compute Cloud (Amazon EC2) API
  1018. // to query snapshots on the volume you are deleting and check the snapshot
  1019. // status. For more information, go to DescribeSnapshots (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSnapshots.html)
  1020. // in the Amazon Elastic Compute Cloud API Reference.
  1021. //
  1022. // In the request, you must provide the Amazon Resource Name (ARN) of the storage
  1023. // volume you want to delete.
  1024. func (c *StorageGateway) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) {
  1025. req, out := c.DeleteVolumeRequest(input)
  1026. err := req.Send()
  1027. return out, err
  1028. }
  1029. const opDescribeBandwidthRateLimit = "DescribeBandwidthRateLimit"
  1030. // DescribeBandwidthRateLimitRequest generates a "aws/request.Request" representing the
  1031. // client's request for the DescribeBandwidthRateLimit operation. The "output" return
  1032. // value can be used to capture response data after the request's "Send" method
  1033. // is called.
  1034. //
  1035. // Creating a request object using this method should be used when you want to inject
  1036. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1037. // access properties on the request object before or after sending the request. If
  1038. // you just want the service response, call the DescribeBandwidthRateLimit method directly
  1039. // instead.
  1040. //
  1041. // Note: You must call the "Send" method on the returned request object in order
  1042. // to execute the request.
  1043. //
  1044. // // Example sending a request using the DescribeBandwidthRateLimitRequest method.
  1045. // req, resp := client.DescribeBandwidthRateLimitRequest(params)
  1046. //
  1047. // err := req.Send()
  1048. // if err == nil { // resp is now filled
  1049. // fmt.Println(resp)
  1050. // }
  1051. //
  1052. func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwidthRateLimitInput) (req *request.Request, output *DescribeBandwidthRateLimitOutput) {
  1053. op := &request.Operation{
  1054. Name: opDescribeBandwidthRateLimit,
  1055. HTTPMethod: "POST",
  1056. HTTPPath: "/",
  1057. }
  1058. if input == nil {
  1059. input = &DescribeBandwidthRateLimitInput{}
  1060. }
  1061. req = c.newRequest(op, input, output)
  1062. output = &DescribeBandwidthRateLimitOutput{}
  1063. req.Data = output
  1064. return
  1065. }
  1066. // Returns the bandwidth rate limits of a gateway. By default, these limits
  1067. // are not set, which means no bandwidth rate limiting is in effect.
  1068. //
  1069. // This operation only returns a value for a bandwidth rate limit only if the
  1070. // limit is set. If no limits are set for the gateway, then this operation returns
  1071. // only the gateway ARN in the response body. To specify which gateway to describe,
  1072. // use the Amazon Resource Name (ARN) of the gateway in your request.
  1073. func (c *StorageGateway) DescribeBandwidthRateLimit(input *DescribeBandwidthRateLimitInput) (*DescribeBandwidthRateLimitOutput, error) {
  1074. req, out := c.DescribeBandwidthRateLimitRequest(input)
  1075. err := req.Send()
  1076. return out, err
  1077. }
  1078. const opDescribeCache = "DescribeCache"
  1079. // DescribeCacheRequest generates a "aws/request.Request" representing the
  1080. // client's request for the DescribeCache operation. The "output" return
  1081. // value can be used to capture response data after the request's "Send" method
  1082. // is called.
  1083. //
  1084. // Creating a request object using this method should be used when you want to inject
  1085. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1086. // access properties on the request object before or after sending the request. If
  1087. // you just want the service response, call the DescribeCache method directly
  1088. // instead.
  1089. //
  1090. // Note: You must call the "Send" method on the returned request object in order
  1091. // to execute the request.
  1092. //
  1093. // // Example sending a request using the DescribeCacheRequest method.
  1094. // req, resp := client.DescribeCacheRequest(params)
  1095. //
  1096. // err := req.Send()
  1097. // if err == nil { // resp is now filled
  1098. // fmt.Println(resp)
  1099. // }
  1100. //
  1101. func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *request.Request, output *DescribeCacheOutput) {
  1102. op := &request.Operation{
  1103. Name: opDescribeCache,
  1104. HTTPMethod: "POST",
  1105. HTTPPath: "/",
  1106. }
  1107. if input == nil {
  1108. input = &DescribeCacheInput{}
  1109. }
  1110. req = c.newRequest(op, input, output)
  1111. output = &DescribeCacheOutput{}
  1112. req.Data = output
  1113. return
  1114. }
  1115. // Returns information about the cache of a gateway. This operation is supported
  1116. // only for the gateway-cached volume architecture.
  1117. //
  1118. // The response includes disk IDs that are configured as cache, and it includes
  1119. // the amount of cache allocated and used.
  1120. func (c *StorageGateway) DescribeCache(input *DescribeCacheInput) (*DescribeCacheOutput, error) {
  1121. req, out := c.DescribeCacheRequest(input)
  1122. err := req.Send()
  1123. return out, err
  1124. }
  1125. const opDescribeCachediSCSIVolumes = "DescribeCachediSCSIVolumes"
  1126. // DescribeCachediSCSIVolumesRequest generates a "aws/request.Request" representing the
  1127. // client's request for the DescribeCachediSCSIVolumes operation. The "output" return
  1128. // value can be used to capture response data after the request's "Send" method
  1129. // is called.
  1130. //
  1131. // Creating a request object using this method should be used when you want to inject
  1132. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1133. // access properties on the request object before or after sending the request. If
  1134. // you just want the service response, call the DescribeCachediSCSIVolumes method directly
  1135. // instead.
  1136. //
  1137. // Note: You must call the "Send" method on the returned request object in order
  1138. // to execute the request.
  1139. //
  1140. // // Example sending a request using the DescribeCachediSCSIVolumesRequest method.
  1141. // req, resp := client.DescribeCachediSCSIVolumesRequest(params)
  1142. //
  1143. // err := req.Send()
  1144. // if err == nil { // resp is now filled
  1145. // fmt.Println(resp)
  1146. // }
  1147. //
  1148. func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCachediSCSIVolumesInput) (req *request.Request, output *DescribeCachediSCSIVolumesOutput) {
  1149. op := &request.Operation{
  1150. Name: opDescribeCachediSCSIVolumes,
  1151. HTTPMethod: "POST",
  1152. HTTPPath: "/",
  1153. }
  1154. if input == nil {
  1155. input = &DescribeCachediSCSIVolumesInput{}
  1156. }
  1157. req = c.newRequest(op, input, output)
  1158. output = &DescribeCachediSCSIVolumesOutput{}
  1159. req.Data = output
  1160. return
  1161. }
  1162. // Returns a description of the gateway volumes specified in the request. This
  1163. // operation is supported only for the gateway-cached volume architecture.
  1164. //
  1165. // The list of gateway volumes in the request must be from one gateway. In
  1166. // the response Amazon Storage Gateway returns volume information sorted by
  1167. // volume Amazon Resource Name (ARN).
  1168. func (c *StorageGateway) DescribeCachediSCSIVolumes(input *DescribeCachediSCSIVolumesInput) (*DescribeCachediSCSIVolumesOutput, error) {
  1169. req, out := c.DescribeCachediSCSIVolumesRequest(input)
  1170. err := req.Send()
  1171. return out, err
  1172. }
  1173. const opDescribeChapCredentials = "DescribeChapCredentials"
  1174. // DescribeChapCredentialsRequest generates a "aws/request.Request" representing the
  1175. // client's request for the DescribeChapCredentials operation. The "output" return
  1176. // value can be used to capture response data after the request's "Send" method
  1177. // is called.
  1178. //
  1179. // Creating a request object using this method should be used when you want to inject
  1180. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1181. // access properties on the request object before or after sending the request. If
  1182. // you just want the service response, call the DescribeChapCredentials method directly
  1183. // instead.
  1184. //
  1185. // Note: You must call the "Send" method on the returned request object in order
  1186. // to execute the request.
  1187. //
  1188. // // Example sending a request using the DescribeChapCredentialsRequest method.
  1189. // req, resp := client.DescribeChapCredentialsRequest(params)
  1190. //
  1191. // err := req.Send()
  1192. // if err == nil { // resp is now filled
  1193. // fmt.Println(resp)
  1194. // }
  1195. //
  1196. func (c *StorageGateway) DescribeChapCredentialsRequest(input *DescribeChapCredentialsInput) (req *request.Request, output *DescribeChapCredentialsOutput) {
  1197. op := &request.Operation{
  1198. Name: opDescribeChapCredentials,
  1199. HTTPMethod: "POST",
  1200. HTTPPath: "/",
  1201. }
  1202. if input == nil {
  1203. input = &DescribeChapCredentialsInput{}
  1204. }
  1205. req = c.newRequest(op, input, output)
  1206. output = &DescribeChapCredentialsOutput{}
  1207. req.Data = output
  1208. return
  1209. }
  1210. // Returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials
  1211. // information for a specified iSCSI target, one for each target-initiator pair.
  1212. func (c *StorageGateway) DescribeChapCredentials(input *DescribeChapCredentialsInput) (*DescribeChapCredentialsOutput, error) {
  1213. req, out := c.DescribeChapCredentialsRequest(input)
  1214. err := req.Send()
  1215. return out, err
  1216. }
  1217. const opDescribeGatewayInformation = "DescribeGatewayInformation"
  1218. // DescribeGatewayInformationRequest generates a "aws/request.Request" representing the
  1219. // client's request for the DescribeGatewayInformation operation. The "output" return
  1220. // value can be used to capture response data after the request's "Send" method
  1221. // is called.
  1222. //
  1223. // Creating a request object using this method should be used when you want to inject
  1224. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1225. // access properties on the request object before or after sending the request. If
  1226. // you just want the service response, call the DescribeGatewayInformation method directly
  1227. // instead.
  1228. //
  1229. // Note: You must call the "Send" method on the returned request object in order
  1230. // to execute the request.
  1231. //
  1232. // // Example sending a request using the DescribeGatewayInformationRequest method.
  1233. // req, resp := client.DescribeGatewayInformationRequest(params)
  1234. //
  1235. // err := req.Send()
  1236. // if err == nil { // resp is now filled
  1237. // fmt.Println(resp)
  1238. // }
  1239. //
  1240. func (c *StorageGateway) DescribeGatewayInformationRequest(input *DescribeGatewayInformationInput) (req *request.Request, output *DescribeGatewayInformationOutput) {
  1241. op := &request.Operation{
  1242. Name: opDescribeGatewayInformation,
  1243. HTTPMethod: "POST",
  1244. HTTPPath: "/",
  1245. }
  1246. if input == nil {
  1247. input = &DescribeGatewayInformationInput{}
  1248. }
  1249. req = c.newRequest(op, input, output)
  1250. output = &DescribeGatewayInformationOutput{}
  1251. req.Data = output
  1252. return
  1253. }
  1254. // Returns metadata about a gateway such as its name, network interfaces, configured
  1255. // time zone, and the state (whether the gateway is running or not). To specify
  1256. // which gateway to describe, use the Amazon Resource Name (ARN) of the gateway
  1257. // in your request.
  1258. func (c *StorageGateway) DescribeGatewayInformation(input *DescribeGatewayInformationInput) (*DescribeGatewayInformationOutput, error) {
  1259. req, out := c.DescribeGatewayInformationRequest(input)
  1260. err := req.Send()
  1261. return out, err
  1262. }
  1263. const opDescribeMaintenanceStartTime = "DescribeMaintenanceStartTime"
  1264. // DescribeMaintenanceStartTimeRequest generates a "aws/request.Request" representing the
  1265. // client's request for the DescribeMaintenanceStartTime operation. The "output" return
  1266. // value can be used to capture response data after the request's "Send" method
  1267. // is called.
  1268. //
  1269. // Creating a request object using this method should be used when you want to inject
  1270. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1271. // access properties on the request object before or after sending the request. If
  1272. // you just want the service response, call the DescribeMaintenanceStartTime method directly
  1273. // instead.
  1274. //
  1275. // Note: You must call the "Send" method on the returned request object in order
  1276. // to execute the request.
  1277. //
  1278. // // Example sending a request using the DescribeMaintenanceStartTimeRequest method.
  1279. // req, resp := client.DescribeMaintenanceStartTimeRequest(params)
  1280. //
  1281. // err := req.Send()
  1282. // if err == nil { // resp is now filled
  1283. // fmt.Println(resp)
  1284. // }
  1285. //
  1286. func (c *StorageGateway) DescribeMaintenanceStartTimeRequest(input *DescribeMaintenanceStartTimeInput) (req *request.Request, output *DescribeMaintenanceStartTimeOutput) {
  1287. op := &request.Operation{
  1288. Name: opDescribeMaintenanceStartTime,
  1289. HTTPMethod: "POST",
  1290. HTTPPath: "/",
  1291. }
  1292. if input == nil {
  1293. input = &DescribeMaintenanceStartTimeInput{}
  1294. }
  1295. req = c.newRequest(op, input, output)
  1296. output = &DescribeMaintenanceStartTimeOutput{}
  1297. req.Data = output
  1298. return
  1299. }
  1300. // Returns your gateway's weekly maintenance start time including the day and
  1301. // time of the week. Note that values are in terms of the gateway's time zone.
  1302. func (c *StorageGateway) DescribeMaintenanceStartTime(input *DescribeMaintenanceStartTimeInput) (*DescribeMaintenanceStartTimeOutput, error) {
  1303. req, out := c.DescribeMaintenanceStartTimeRequest(input)
  1304. err := req.Send()
  1305. return out, err
  1306. }
  1307. const opDescribeSnapshotSchedule = "DescribeSnapshotSchedule"
  1308. // DescribeSnapshotScheduleRequest generates a "aws/request.Request" representing the
  1309. // client's request for the DescribeSnapshotSchedule operation. The "output" return
  1310. // value can be used to capture response data after the request's "Send" method
  1311. // is called.
  1312. //
  1313. // Creating a request object using this method should be used when you want to inject
  1314. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1315. // access properties on the request object before or after sending the request. If
  1316. // you just want the service response, call the DescribeSnapshotSchedule method directly
  1317. // instead.
  1318. //
  1319. // Note: You must call the "Send" method on the returned request object in order
  1320. // to execute the request.
  1321. //
  1322. // // Example sending a request using the DescribeSnapshotScheduleRequest method.
  1323. // req, resp := client.DescribeSnapshotScheduleRequest(params)
  1324. //
  1325. // err := req.Send()
  1326. // if err == nil { // resp is now filled
  1327. // fmt.Println(resp)
  1328. // }
  1329. //
  1330. func (c *StorageGateway) DescribeSnapshotScheduleRequest(input *DescribeSnapshotScheduleInput) (req *request.Request, output *DescribeSnapshotScheduleOutput) {
  1331. op := &request.Operation{
  1332. Name: opDescribeSnapshotSchedule,
  1333. HTTPMethod: "POST",
  1334. HTTPPath: "/",
  1335. }
  1336. if input == nil {
  1337. input = &DescribeSnapshotScheduleInput{}
  1338. }
  1339. req = c.newRequest(op, input, output)
  1340. output = &DescribeSnapshotScheduleOutput{}
  1341. req.Data = output
  1342. return
  1343. }
  1344. // Describes the snapshot schedule for the specified gateway volume. The snapshot
  1345. // schedule information includes intervals at which snapshots are automatically
  1346. // initiated on the volume.
  1347. func (c *StorageGateway) DescribeSnapshotSchedule(input *DescribeSnapshotScheduleInput) (*DescribeSnapshotScheduleOutput, error) {
  1348. req, out := c.DescribeSnapshotScheduleRequest(input)
  1349. err := req.Send()
  1350. return out, err
  1351. }
  1352. const opDescribeStorediSCSIVolumes = "DescribeStorediSCSIVolumes"
  1353. // DescribeStorediSCSIVolumesRequest generates a "aws/request.Request" representing the
  1354. // client's request for the DescribeStorediSCSIVolumes operation. The "output" return
  1355. // value can be used to capture response data after the request's "Send" method
  1356. // is called.
  1357. //
  1358. // Creating a request object using this method should be used when you want to inject
  1359. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1360. // access properties on the request object before or after sending the request. If
  1361. // you just want the service response, call the DescribeStorediSCSIVolumes method directly
  1362. // instead.
  1363. //
  1364. // Note: You must call the "Send" method on the returned request object in order
  1365. // to execute the request.
  1366. //
  1367. // // Example sending a request using the DescribeStorediSCSIVolumesRequest method.
  1368. // req, resp := client.DescribeStorediSCSIVolumesRequest(params)
  1369. //
  1370. // err := req.Send()
  1371. // if err == nil { // resp is now filled
  1372. // fmt.Println(resp)
  1373. // }
  1374. //
  1375. func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStorediSCSIVolumesInput) (req *request.Request, output *DescribeStorediSCSIVolumesOutput) {
  1376. op := &request.Operation{
  1377. Name: opDescribeStorediSCSIVolumes,
  1378. HTTPMethod: "POST",
  1379. HTTPPath: "/",
  1380. }
  1381. if input == nil {
  1382. input = &DescribeStorediSCSIVolumesInput{}
  1383. }
  1384. req = c.newRequest(op, input, output)
  1385. output = &DescribeStorediSCSIVolumesOutput{}
  1386. req.Data = output
  1387. return
  1388. }
  1389. // Returns the description of the gateway volumes specified in the request.
  1390. // The list of gateway volumes in the request must be from one gateway. In the
  1391. // response Amazon Storage Gateway returns volume information sorted by volume
  1392. // ARNs.
  1393. func (c *StorageGateway) DescribeStorediSCSIVolumes(input *DescribeStorediSCSIVolumesInput) (*DescribeStorediSCSIVolumesOutput, error) {
  1394. req, out := c.DescribeStorediSCSIVolumesRequest(input)
  1395. err := req.Send()
  1396. return out, err
  1397. }
  1398. const opDescribeTapeArchives = "DescribeTapeArchives"
  1399. // DescribeTapeArchivesRequest generates a "aws/request.Request" representing the
  1400. // client's request for the DescribeTapeArchives operation. The "output" return
  1401. // value can be used to capture response data after the request's "Send" method
  1402. // is called.
  1403. //
  1404. // Creating a request object using this method should be used when you want to inject
  1405. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1406. // access properties on the request object before or after sending the request. If
  1407. // you just want the service response, call the DescribeTapeArchives method directly
  1408. // instead.
  1409. //
  1410. // Note: You must call the "Send" method on the returned request object in order
  1411. // to execute the request.
  1412. //
  1413. // // Example sending a request using the DescribeTapeArchivesRequest method.
  1414. // req, resp := client.DescribeTapeArchivesRequest(params)
  1415. //
  1416. // err := req.Send()
  1417. // if err == nil { // resp is now filled
  1418. // fmt.Println(resp)
  1419. // }
  1420. //
  1421. func (c *StorageGateway) DescribeTapeArchivesRequest(input *DescribeTapeArchivesInput) (req *request.Request, output *DescribeTapeArchivesOutput) {
  1422. op := &request.Operation{
  1423. Name: opDescribeTapeArchives,
  1424. HTTPMethod: "POST",
  1425. HTTPPath: "/",
  1426. Paginator: &request.Paginator{
  1427. InputTokens: []string{"Marker"},
  1428. OutputTokens: []string{"Marker"},
  1429. LimitToken: "Limit",
  1430. TruncationToken: "",
  1431. },
  1432. }
  1433. if input == nil {
  1434. input = &DescribeTapeArchivesInput{}
  1435. }
  1436. req = c.newRequest(op, input, output)
  1437. output = &DescribeTapeArchivesOutput{}
  1438. req.Data = output
  1439. return
  1440. }
  1441. // Returns a description of specified virtual tapes in the virtual tape shelf
  1442. // (VTS).
  1443. //
  1444. // If a specific TapeARN is not specified, AWS Storage Gateway returns a description
  1445. // of all virtual tapes found in the VTS associated with your account.
  1446. func (c *StorageGateway) DescribeTapeArchives(input *DescribeTapeArchivesInput) (*DescribeTapeArchivesOutput, error) {
  1447. req, out := c.DescribeTapeArchivesRequest(input)
  1448. err := req.Send()
  1449. return out, err
  1450. }
  1451. // DescribeTapeArchivesPages iterates over the pages of a DescribeTapeArchives operation,
  1452. // calling the "fn" function with the response data for each page. To stop
  1453. // iterating, return false from the fn function.
  1454. //
  1455. // See DescribeTapeArchives method for more information on how to use this operation.
  1456. //
  1457. // Note: This operation can generate multiple requests to a service.
  1458. //
  1459. // // Example iterating over at most 3 pages of a DescribeTapeArchives operation.
  1460. // pageNum := 0
  1461. // err := client.DescribeTapeArchivesPages(params,
  1462. // func(page *DescribeTapeArchivesOutput, lastPage bool) bool {
  1463. // pageNum++
  1464. // fmt.Println(page)
  1465. // return pageNum <= 3
  1466. // })
  1467. //
  1468. func (c *StorageGateway) DescribeTapeArchivesPages(input *DescribeTapeArchivesInput, fn func(p *DescribeTapeArchivesOutput, lastPage bool) (shouldContinue bool)) error {
  1469. page, _ := c.DescribeTapeArchivesRequest(input)
  1470. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1471. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1472. return fn(p.(*DescribeTapeArchivesOutput), lastPage)
  1473. })
  1474. }
  1475. const opDescribeTapeRecoveryPoints = "DescribeTapeRecoveryPoints"
  1476. // DescribeTapeRecoveryPointsRequest generates a "aws/request.Request" representing the
  1477. // client's request for the DescribeTapeRecoveryPoints operation. The "output" return
  1478. // value can be used to capture response data after the request's "Send" method
  1479. // is called.
  1480. //
  1481. // Creating a request object using this method should be used when you want to inject
  1482. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1483. // access properties on the request object before or after sending the request. If
  1484. // you just want the service response, call the DescribeTapeRecoveryPoints method directly
  1485. // instead.
  1486. //
  1487. // Note: You must call the "Send" method on the returned request object in order
  1488. // to execute the request.
  1489. //
  1490. // // Example sending a request using the DescribeTapeRecoveryPointsRequest method.
  1491. // req, resp := client.DescribeTapeRecoveryPointsRequest(params)
  1492. //
  1493. // err := req.Send()
  1494. // if err == nil { // resp is now filled
  1495. // fmt.Println(resp)
  1496. // }
  1497. //
  1498. func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRecoveryPointsInput) (req *request.Request, output *DescribeTapeRecoveryPointsOutput) {
  1499. op := &request.Operation{
  1500. Name: opDescribeTapeRecoveryPoints,
  1501. HTTPMethod: "POST",
  1502. HTTPPath: "/",
  1503. Paginator: &request.Paginator{
  1504. InputTokens: []string{"Marker"},
  1505. OutputTokens: []string{"Marker"},
  1506. LimitToken: "Limit",
  1507. TruncationToken: "",
  1508. },
  1509. }
  1510. if input == nil {
  1511. input = &DescribeTapeRecoveryPointsInput{}
  1512. }
  1513. req = c.newRequest(op, input, output)
  1514. output = &DescribeTapeRecoveryPointsOutput{}
  1515. req.Data = output
  1516. return
  1517. }
  1518. // Returns a list of virtual tape recovery points that are available for the
  1519. // specified gateway-VTL.
  1520. //
  1521. // A recovery point is a point-in-time view of a virtual tape at which all
  1522. // the data on the virtual tape is consistent. If your gateway crashes, virtual
  1523. // tapes that have recovery points can be recovered to a new gateway.
  1524. func (c *StorageGateway) DescribeTapeRecoveryPoints(input *DescribeTapeRecoveryPointsInput) (*DescribeTapeRecoveryPointsOutput, error) {
  1525. req, out := c.DescribeTapeRecoveryPointsRequest(input)
  1526. err := req.Send()
  1527. return out, err
  1528. }
  1529. // DescribeTapeRecoveryPointsPages iterates over the pages of a DescribeTapeRecoveryPoints operation,
  1530. // calling the "fn" function with the response data for each page. To stop
  1531. // iterating, return false from the fn function.
  1532. //
  1533. // See DescribeTapeRecoveryPoints method for more information on how to use this operation.
  1534. //
  1535. // Note: This operation can generate multiple requests to a service.
  1536. //
  1537. // // Example iterating over at most 3 pages of a DescribeTapeRecoveryPoints operation.
  1538. // pageNum := 0
  1539. // err := client.DescribeTapeRecoveryPointsPages(params,
  1540. // func(page *DescribeTapeRecoveryPointsOutput, lastPage bool) bool {
  1541. // pageNum++
  1542. // fmt.Println(page)
  1543. // return pageNum <= 3
  1544. // })
  1545. //
  1546. func (c *StorageGateway) DescribeTapeRecoveryPointsPages(input *DescribeTapeRecoveryPointsInput, fn func(p *DescribeTapeRecoveryPointsOutput, lastPage bool) (shouldContinue bool)) error {
  1547. page, _ := c.DescribeTapeRecoveryPointsRequest(input)
  1548. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1549. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1550. return fn(p.(*DescribeTapeRecoveryPointsOutput), lastPage)
  1551. })
  1552. }
  1553. const opDescribeTapes = "DescribeTapes"
  1554. // DescribeTapesRequest generates a "aws/request.Request" representing the
  1555. // client's request for the DescribeTapes operation. The "output" return
  1556. // value can be used to capture response data after the request's "Send" method
  1557. // is called.
  1558. //
  1559. // Creating a request object using this method should be used when you want to inject
  1560. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1561. // access properties on the request object before or after sending the request. If
  1562. // you just want the service response, call the DescribeTapes method directly
  1563. // instead.
  1564. //
  1565. // Note: You must call the "Send" method on the returned request object in order
  1566. // to execute the request.
  1567. //
  1568. // // Example sending a request using the DescribeTapesRequest method.
  1569. // req, resp := client.DescribeTapesRequest(params)
  1570. //
  1571. // err := req.Send()
  1572. // if err == nil { // resp is now filled
  1573. // fmt.Println(resp)
  1574. // }
  1575. //
  1576. func (c *StorageGateway) DescribeTapesRequest(input *DescribeTapesInput) (req *request.Request, output *DescribeTapesOutput) {
  1577. op := &request.Operation{
  1578. Name: opDescribeTapes,
  1579. HTTPMethod: "POST",
  1580. HTTPPath: "/",
  1581. Paginator: &request.Paginator{
  1582. InputTokens: []string{"Marker"},
  1583. OutputTokens: []string{"Marker"},
  1584. LimitToken: "Limit",
  1585. TruncationToken: "",
  1586. },
  1587. }
  1588. if input == nil {
  1589. input = &DescribeTapesInput{}
  1590. }
  1591. req = c.newRequest(op, input, output)
  1592. output = &DescribeTapesOutput{}
  1593. req.Data = output
  1594. return
  1595. }
  1596. // Returns a description of the specified Amazon Resource Name (ARN) of virtual
  1597. // tapes. If a TapeARN is not specified, returns a description of all virtual
  1598. // tapes associated with the specified gateway.
  1599. func (c *StorageGateway) DescribeTapes(input *DescribeTapesInput) (*DescribeTapesOutput, error) {
  1600. req, out := c.DescribeTapesRequest(input)
  1601. err := req.Send()
  1602. return out, err
  1603. }
  1604. // DescribeTapesPages iterates over the pages of a DescribeTapes operation,
  1605. // calling the "fn" function with the response data for each page. To stop
  1606. // iterating, return false from the fn function.
  1607. //
  1608. // See DescribeTapes method for more information on how to use this operation.
  1609. //
  1610. // Note: This operation can generate multiple requests to a service.
  1611. //
  1612. // // Example iterating over at most 3 pages of a DescribeTapes operation.
  1613. // pageNum := 0
  1614. // err := client.DescribeTapesPages(params,
  1615. // func(page *DescribeTapesOutput, lastPage bool) bool {
  1616. // pageNum++
  1617. // fmt.Println(page)
  1618. // return pageNum <= 3
  1619. // })
  1620. //
  1621. func (c *StorageGateway) DescribeTapesPages(input *DescribeTapesInput, fn func(p *DescribeTapesOutput, lastPage bool) (shouldContinue bool)) error {
  1622. page, _ := c.DescribeTapesRequest(input)
  1623. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1624. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1625. return fn(p.(*DescribeTapesOutput), lastPage)
  1626. })
  1627. }
  1628. const opDescribeUploadBuffer = "DescribeUploadBuffer"
  1629. // DescribeUploadBufferRequest generates a "aws/request.Request" representing the
  1630. // client's request for the DescribeUploadBuffer operation. The "output" return
  1631. // value can be used to capture response data after the request's "Send" method
  1632. // is called.
  1633. //
  1634. // Creating a request object using this method should be used when you want to inject
  1635. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1636. // access properties on the request object before or after sending the request. If
  1637. // you just want the service response, call the DescribeUploadBuffer method directly
  1638. // instead.
  1639. //
  1640. // Note: You must call the "Send" method on the returned request object in order
  1641. // to execute the request.
  1642. //
  1643. // // Example sending a request using the DescribeUploadBufferRequest method.
  1644. // req, resp := client.DescribeUploadBufferRequest(params)
  1645. //
  1646. // err := req.Send()
  1647. // if err == nil { // resp is now filled
  1648. // fmt.Println(resp)
  1649. // }
  1650. //
  1651. func (c *StorageGateway) DescribeUploadBufferRequest(input *DescribeUploadBufferInput) (req *request.Request, output *DescribeUploadBufferOutput) {
  1652. op := &request.Operation{
  1653. Name: opDescribeUploadBuffer,
  1654. HTTPMethod: "POST",
  1655. HTTPPath: "/",
  1656. }
  1657. if input == nil {
  1658. input = &DescribeUploadBufferInput{}
  1659. }
  1660. req = c.newRequest(op, input, output)
  1661. output = &DescribeUploadBufferOutput{}
  1662. req.Data = output
  1663. return
  1664. }
  1665. // Returns information about the upload buffer of a gateway. This operation
  1666. // is supported for both the gateway-stored and gateway-cached volume architectures.
  1667. //
  1668. // The response includes disk IDs that are configured as upload buffer space,
  1669. // and it includes the amount of upload buffer space allocated and used.
  1670. func (c *StorageGateway) DescribeUploadBuffer(input *DescribeUploadBufferInput) (*DescribeUploadBufferOutput, error) {
  1671. req, out := c.DescribeUploadBufferRequest(input)
  1672. err := req.Send()
  1673. return out, err
  1674. }
  1675. const opDescribeVTLDevices = "DescribeVTLDevices"
  1676. // DescribeVTLDevicesRequest generates a "aws/request.Request" representing the
  1677. // client's request for the DescribeVTLDevices operation. The "output" return
  1678. // value can be used to capture response data after the request's "Send" method
  1679. // is called.
  1680. //
  1681. // Creating a request object using this method should be used when you want to inject
  1682. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1683. // access properties on the request object before or after sending the request. If
  1684. // you just want the service response, call the DescribeVTLDevices method directly
  1685. // instead.
  1686. //
  1687. // Note: You must call the "Send" method on the returned request object in order
  1688. // to execute the request.
  1689. //
  1690. // // Example sending a request using the DescribeVTLDevicesRequest method.
  1691. // req, resp := client.DescribeVTLDevicesRequest(params)
  1692. //
  1693. // err := req.Send()
  1694. // if err == nil { // resp is now filled
  1695. // fmt.Println(resp)
  1696. // }
  1697. //
  1698. func (c *StorageGateway) DescribeVTLDevicesRequest(input *DescribeVTLDevicesInput) (req *request.Request, output *DescribeVTLDevicesOutput) {
  1699. op := &request.Operation{
  1700. Name: opDescribeVTLDevices,
  1701. HTTPMethod: "POST",
  1702. HTTPPath: "/",
  1703. Paginator: &request.Paginator{
  1704. InputTokens: []string{"Marker"},
  1705. OutputTokens: []string{"Marker"},
  1706. LimitToken: "Limit",
  1707. TruncationToken: "",
  1708. },
  1709. }
  1710. if input == nil {
  1711. input = &DescribeVTLDevicesInput{}
  1712. }
  1713. req = c.newRequest(op, input, output)
  1714. output = &DescribeVTLDevicesOutput{}
  1715. req.Data = output
  1716. return
  1717. }
  1718. // Returns a description of virtual tape library (VTL) devices for the specified
  1719. // gateway. In the response, AWS Storage Gateway returns VTL device information.
  1720. //
  1721. // The list of VTL devices must be from one gateway.
  1722. func (c *StorageGateway) DescribeVTLDevices(input *DescribeVTLDevicesInput) (*DescribeVTLDevicesOutput, error) {
  1723. req, out := c.DescribeVTLDevicesRequest(input)
  1724. err := req.Send()
  1725. return out, err
  1726. }
  1727. // DescribeVTLDevicesPages iterates over the pages of a DescribeVTLDevices operation,
  1728. // calling the "fn" function with the response data for each page. To stop
  1729. // iterating, return false from the fn function.
  1730. //
  1731. // See DescribeVTLDevices method for more information on how to use this operation.
  1732. //
  1733. // Note: This operation can generate multiple requests to a service.
  1734. //
  1735. // // Example iterating over at most 3 pages of a DescribeVTLDevices operation.
  1736. // pageNum := 0
  1737. // err := client.DescribeVTLDevicesPages(params,
  1738. // func(page *DescribeVTLDevicesOutput, lastPage bool) bool {
  1739. // pageNum++
  1740. // fmt.Println(page)
  1741. // return pageNum <= 3
  1742. // })
  1743. //
  1744. func (c *StorageGateway) DescribeVTLDevicesPages(input *DescribeVTLDevicesInput, fn func(p *DescribeVTLDevicesOutput, lastPage bool) (shouldContinue bool)) error {
  1745. page, _ := c.DescribeVTLDevicesRequest(input)
  1746. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1747. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1748. return fn(p.(*DescribeVTLDevicesOutput), lastPage)
  1749. })
  1750. }
  1751. const opDescribeWorkingStorage = "DescribeWorkingStorage"
  1752. // DescribeWorkingStorageRequest generates a "aws/request.Request" representing the
  1753. // client's request for the DescribeWorkingStorage operation. The "output" return
  1754. // value can be used to capture response data after the request's "Send" method
  1755. // is called.
  1756. //
  1757. // Creating a request object using this method should be used when you want to inject
  1758. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1759. // access properties on the request object before or after sending the request. If
  1760. // you just want the service response, call the DescribeWorkingStorage method directly
  1761. // instead.
  1762. //
  1763. // Note: You must call the "Send" method on the returned request object in order
  1764. // to execute the request.
  1765. //
  1766. // // Example sending a request using the DescribeWorkingStorageRequest method.
  1767. // req, resp := client.DescribeWorkingStorageRequest(params)
  1768. //
  1769. // err := req.Send()
  1770. // if err == nil { // resp is now filled
  1771. // fmt.Println(resp)
  1772. // }
  1773. //
  1774. func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingStorageInput) (req *request.Request, output *DescribeWorkingStorageOutput) {
  1775. op := &request.Operation{
  1776. Name: opDescribeWorkingStorage,
  1777. HTTPMethod: "POST",
  1778. HTTPPath: "/",
  1779. }
  1780. if input == nil {
  1781. input = &DescribeWorkingStorageInput{}
  1782. }
  1783. req = c.newRequest(op, input, output)
  1784. output = &DescribeWorkingStorageOutput{}
  1785. req.Data = output
  1786. return
  1787. }
  1788. // Returns information about the working storage of a gateway. This operation
  1789. // is supported only for the gateway-stored volume architecture. This operation
  1790. // is deprecated in cached-volumes API version (20120630). Use DescribeUploadBuffer
  1791. // instead.
  1792. //
  1793. // Working storage is also referred to as upload buffer. You can also use
  1794. // the DescribeUploadBuffer operation to add upload buffer to a stored-volume
  1795. // gateway.
  1796. //
  1797. // The response includes disk IDs that are configured as working storage,
  1798. // and it includes the amount of working storage allocated and used.
  1799. func (c *StorageGateway) DescribeWorkingStorage(input *DescribeWorkingStorageInput) (*DescribeWorkingStorageOutput, error) {
  1800. req, out := c.DescribeWorkingStorageRequest(input)
  1801. err := req.Send()
  1802. return out, err
  1803. }
  1804. const opDisableGateway = "DisableGateway"
  1805. // DisableGatewayRequest generates a "aws/request.Request" representing the
  1806. // client's request for the DisableGateway operation. The "output" return
  1807. // value can be used to capture response data after the request's "Send" method
  1808. // is called.
  1809. //
  1810. // Creating a request object using this method should be used when you want to inject
  1811. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1812. // access properties on the request object before or after sending the request. If
  1813. // you just want the service response, call the DisableGateway method directly
  1814. // instead.
  1815. //
  1816. // Note: You must call the "Send" method on the returned request object in order
  1817. // to execute the request.
  1818. //
  1819. // // Example sending a request using the DisableGatewayRequest method.
  1820. // req, resp := client.DisableGatewayRequest(params)
  1821. //
  1822. // err := req.Send()
  1823. // if err == nil { // resp is now filled
  1824. // fmt.Println(resp)
  1825. // }
  1826. //
  1827. func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req *request.Request, output *DisableGatewayOutput) {
  1828. op := &request.Operation{
  1829. Name: opDisableGateway,
  1830. HTTPMethod: "POST",
  1831. HTTPPath: "/",
  1832. }
  1833. if input == nil {
  1834. input = &DisableGatewayInput{}
  1835. }
  1836. req = c.newRequest(op, input, output)
  1837. output = &DisableGatewayOutput{}
  1838. req.Data = output
  1839. return
  1840. }
  1841. // Disables a gateway when the gateway is no longer functioning. For example,
  1842. // if your gateway VM is damaged, you can disable the gateway so you can recover
  1843. // virtual tapes.
  1844. //
  1845. // Use this operation for a gateway-VTL that is not reachable or not functioning.
  1846. //
  1847. // Once a gateway is disabled it cannot be enabled.
  1848. func (c *StorageGateway) DisableGateway(input *DisableGatewayInput) (*DisableGatewayOutput, error) {
  1849. req, out := c.DisableGatewayRequest(input)
  1850. err := req.Send()
  1851. return out, err
  1852. }
  1853. const opListGateways = "ListGateways"
  1854. // ListGatewaysRequest generates a "aws/request.Request" representing the
  1855. // client's request for the ListGateways operation. The "output" return
  1856. // value can be used to capture response data after the request's "Send" method
  1857. // is called.
  1858. //
  1859. // Creating a request object using this method should be used when you want to inject
  1860. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1861. // access properties on the request object before or after sending the request. If
  1862. // you just want the service response, call the ListGateways method directly
  1863. // instead.
  1864. //
  1865. // Note: You must call the "Send" method on the returned request object in order
  1866. // to execute the request.
  1867. //
  1868. // // Example sending a request using the ListGatewaysRequest method.
  1869. // req, resp := client.ListGatewaysRequest(params)
  1870. //
  1871. // err := req.Send()
  1872. // if err == nil { // resp is now filled
  1873. // fmt.Println(resp)
  1874. // }
  1875. //
  1876. func (c *StorageGateway) ListGatewaysRequest(input *ListGatewaysInput) (req *request.Request, output *ListGatewaysOutput) {
  1877. op := &request.Operation{
  1878. Name: opListGateways,
  1879. HTTPMethod: "POST",
  1880. HTTPPath: "/",
  1881. Paginator: &request.Paginator{
  1882. InputTokens: []string{"Marker"},
  1883. OutputTokens: []string{"Marker"},
  1884. LimitToken: "Limit",
  1885. TruncationToken: "",
  1886. },
  1887. }
  1888. if input == nil {
  1889. input = &ListGatewaysInput{}
  1890. }
  1891. req = c.newRequest(op, input, output)
  1892. output = &ListGatewaysOutput{}
  1893. req.Data = output
  1894. return
  1895. }
  1896. // Lists gateways owned by an AWS account in a region specified in the request.
  1897. // The returned list is ordered by gateway Amazon Resource Name (ARN).
  1898. //
  1899. // By default, the operation returns a maximum of 100 gateways. This operation
  1900. // supports pagination that allows you to optionally reduce the number of gateways
  1901. // returned in a response.
  1902. //
  1903. // If you have more gateways than are returned in a response (that is, the
  1904. // response returns only a truncated list of your gateways), the response contains
  1905. // a marker that you can specify in your next request to fetch the next page
  1906. // of gateways.
  1907. func (c *StorageGateway) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error) {
  1908. req, out := c.ListGatewaysRequest(input)
  1909. err := req.Send()
  1910. return out, err
  1911. }
  1912. // ListGatewaysPages iterates over the pages of a ListGateways operation,
  1913. // calling the "fn" function with the response data for each page. To stop
  1914. // iterating, return false from the fn function.
  1915. //
  1916. // See ListGateways method for more information on how to use this operation.
  1917. //
  1918. // Note: This operation can generate multiple requests to a service.
  1919. //
  1920. // // Example iterating over at most 3 pages of a ListGateways operation.
  1921. // pageNum := 0
  1922. // err := client.ListGatewaysPages(params,
  1923. // func(page *ListGatewaysOutput, lastPage bool) bool {
  1924. // pageNum++
  1925. // fmt.Println(page)
  1926. // return pageNum <= 3
  1927. // })
  1928. //
  1929. func (c *StorageGateway) ListGatewaysPages(input *ListGatewaysInput, fn func(p *ListGatewaysOutput, lastPage bool) (shouldContinue bool)) error {
  1930. page, _ := c.ListGatewaysRequest(input)
  1931. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1932. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1933. return fn(p.(*ListGatewaysOutput), lastPage)
  1934. })
  1935. }
  1936. const opListLocalDisks = "ListLocalDisks"
  1937. // ListLocalDisksRequest generates a "aws/request.Request" representing the
  1938. // client's request for the ListLocalDisks operation. The "output" return
  1939. // value can be used to capture response data after the request's "Send" method
  1940. // is called.
  1941. //
  1942. // Creating a request object using this method should be used when you want to inject
  1943. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1944. // access properties on the request object before or after sending the request. If
  1945. // you just want the service response, call the ListLocalDisks method directly
  1946. // instead.
  1947. //
  1948. // Note: You must call the "Send" method on the returned request object in order
  1949. // to execute the request.
  1950. //
  1951. // // Example sending a request using the ListLocalDisksRequest method.
  1952. // req, resp := client.ListLocalDisksRequest(params)
  1953. //
  1954. // err := req.Send()
  1955. // if err == nil { // resp is now filled
  1956. // fmt.Println(resp)
  1957. // }
  1958. //
  1959. func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req *request.Request, output *ListLocalDisksOutput) {
  1960. op := &request.Operation{
  1961. Name: opListLocalDisks,
  1962. HTTPMethod: "POST",
  1963. HTTPPath: "/",
  1964. }
  1965. if input == nil {
  1966. input = &ListLocalDisksInput{}
  1967. }
  1968. req = c.newRequest(op, input, output)
  1969. output = &ListLocalDisksOutput{}
  1970. req.Data = output
  1971. return
  1972. }
  1973. // Returns a list of the gateway's local disks. To specify which gateway to
  1974. // describe, you use the Amazon Resource Name (ARN) of the gateway in the body
  1975. // of the request.
  1976. //
  1977. // The request returns a list of all disks, specifying which are configured
  1978. // as working storage, cache storage, or stored volume or not configured at
  1979. // all. The response includes a DiskStatus field. This field can have a value
  1980. // of present (the disk is available to use), missing (the disk is no longer
  1981. // connected to the gateway), or mismatch (the disk node is occupied by a disk
  1982. // that has incorrect metadata or the disk content is corrupted).
  1983. func (c *StorageGateway) ListLocalDisks(input *ListLocalDisksInput) (*ListLocalDisksOutput, error) {
  1984. req, out := c.ListLocalDisksRequest(input)
  1985. err := req.Send()
  1986. return out, err
  1987. }
  1988. const opListTagsForResource = "ListTagsForResource"
  1989. // ListTagsForResourceRequest generates a "aws/request.Request" representing the
  1990. // client's request for the ListTagsForResource operation. The "output" return
  1991. // value can be used to capture response data after the request's "Send" method
  1992. // is called.
  1993. //
  1994. // Creating a request object using this method should be used when you want to inject
  1995. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1996. // access properties on the request object before or after sending the request. If
  1997. // you just want the service response, call the ListTagsForResource method directly
  1998. // instead.
  1999. //
  2000. // Note: You must call the "Send" method on the returned request object in order
  2001. // to execute the request.
  2002. //
  2003. // // Example sending a request using the ListTagsForResourceRequest method.
  2004. // req, resp := client.ListTagsForResourceRequest(params)
  2005. //
  2006. // err := req.Send()
  2007. // if err == nil { // resp is now filled
  2008. // fmt.Println(resp)
  2009. // }
  2010. //
  2011. func (c *StorageGateway) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
  2012. op := &request.Operation{
  2013. Name: opListTagsForResource,
  2014. HTTPMethod: "POST",
  2015. HTTPPath: "/",
  2016. }
  2017. if input == nil {
  2018. input = &ListTagsForResourceInput{}
  2019. }
  2020. req = c.newRequest(op, input, output)
  2021. output = &ListTagsForResourceOutput{}
  2022. req.Data = output
  2023. return
  2024. }
  2025. // Lists the tags that have been added to the specified resource.
  2026. func (c *StorageGateway) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
  2027. req, out := c.ListTagsForResourceRequest(input)
  2028. err := req.Send()
  2029. return out, err
  2030. }
  2031. const opListTapes = "ListTapes"
  2032. // ListTapesRequest generates a "aws/request.Request" representing the
  2033. // client's request for the ListTapes operation. The "output" return
  2034. // value can be used to capture response data after the request's "Send" method
  2035. // is called.
  2036. //
  2037. // Creating a request object using this method should be used when you want to inject
  2038. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2039. // access properties on the request object before or after sending the request. If
  2040. // you just want the service response, call the ListTapes method directly
  2041. // instead.
  2042. //
  2043. // Note: You must call the "Send" method on the returned request object in order
  2044. // to execute the request.
  2045. //
  2046. // // Example sending a request using the ListTapesRequest method.
  2047. // req, resp := client.ListTapesRequest(params)
  2048. //
  2049. // err := req.Send()
  2050. // if err == nil { // resp is now filled
  2051. // fmt.Println(resp)
  2052. // }
  2053. //
  2054. func (c *StorageGateway) ListTapesRequest(input *ListTapesInput) (req *request.Request, output *ListTapesOutput) {
  2055. op := &request.Operation{
  2056. Name: opListTapes,
  2057. HTTPMethod: "POST",
  2058. HTTPPath: "/",
  2059. }
  2060. if input == nil {
  2061. input = &ListTapesInput{}
  2062. }
  2063. req = c.newRequest(op, input, output)
  2064. output = &ListTapesOutput{}
  2065. req.Data = output
  2066. return
  2067. }
  2068. // Lists virtual tapes in your virtual tape library (VTL) and your virtual tape
  2069. // shelf (VTS). You specify the tapes to list by specifying one or more tape
  2070. // Amazon Resource Names (ARNs). If you don't specify a tape ARN, the operation
  2071. // lists all virtual tapes in both your VTL and VTS.
  2072. //
  2073. // This operation supports pagination. By default, the operation returns a
  2074. // maximum of up to 100 tapes. You can optionally specify the Limit parameter
  2075. // in the body to limit the number of tapes in the response. If the number of
  2076. // tapes returned in the response is truncated, the response includes a Marker
  2077. // element that you can use in your subsequent request to retrieve the next
  2078. // set of tapes.
  2079. func (c *StorageGateway) ListTapes(input *ListTapesInput) (*ListTapesOutput, error) {
  2080. req, out := c.ListTapesRequest(input)
  2081. err := req.Send()
  2082. return out, err
  2083. }
  2084. const opListVolumeInitiators = "ListVolumeInitiators"
  2085. // ListVolumeInitiatorsRequest generates a "aws/request.Request" representing the
  2086. // client's request for the ListVolumeInitiators operation. The "output" return
  2087. // value can be used to capture response data after the request's "Send" method
  2088. // is called.
  2089. //
  2090. // Creating a request object using this method should be used when you want to inject
  2091. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2092. // access properties on the request object before or after sending the request. If
  2093. // you just want the service response, call the ListVolumeInitiators method directly
  2094. // instead.
  2095. //
  2096. // Note: You must call the "Send" method on the returned request object in order
  2097. // to execute the request.
  2098. //
  2099. // // Example sending a request using the ListVolumeInitiatorsRequest method.
  2100. // req, resp := client.ListVolumeInitiatorsRequest(params)
  2101. //
  2102. // err := req.Send()
  2103. // if err == nil { // resp is now filled
  2104. // fmt.Println(resp)
  2105. // }
  2106. //
  2107. func (c *StorageGateway) ListVolumeInitiatorsRequest(input *ListVolumeInitiatorsInput) (req *request.Request, output *ListVolumeInitiatorsOutput) {
  2108. op := &request.Operation{
  2109. Name: opListVolumeInitiators,
  2110. HTTPMethod: "POST",
  2111. HTTPPath: "/",
  2112. }
  2113. if input == nil {
  2114. input = &ListVolumeInitiatorsInput{}
  2115. }
  2116. req = c.newRequest(op, input, output)
  2117. output = &ListVolumeInitiatorsOutput{}
  2118. req.Data = output
  2119. return
  2120. }
  2121. // Lists iSCSI initiators that are connected to a volume. You can use this operation
  2122. // to determine whether a volume is being used or not.
  2123. func (c *StorageGateway) ListVolumeInitiators(input *ListVolumeInitiatorsInput) (*ListVolumeInitiatorsOutput, error) {
  2124. req, out := c.ListVolumeInitiatorsRequest(input)
  2125. err := req.Send()
  2126. return out, err
  2127. }
  2128. const opListVolumeRecoveryPoints = "ListVolumeRecoveryPoints"
  2129. // ListVolumeRecoveryPointsRequest generates a "aws/request.Request" representing the
  2130. // client's request for the ListVolumeRecoveryPoints operation. The "output" return
  2131. // value can be used to capture response data after the request's "Send" method
  2132. // is called.
  2133. //
  2134. // Creating a request object using this method should be used when you want to inject
  2135. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2136. // access properties on the request object before or after sending the request. If
  2137. // you just want the service response, call the ListVolumeRecoveryPoints method directly
  2138. // instead.
  2139. //
  2140. // Note: You must call the "Send" method on the returned request object in order
  2141. // to execute the request.
  2142. //
  2143. // // Example sending a request using the ListVolumeRecoveryPointsRequest method.
  2144. // req, resp := client.ListVolumeRecoveryPointsRequest(params)
  2145. //
  2146. // err := req.Send()
  2147. // if err == nil { // resp is now filled
  2148. // fmt.Println(resp)
  2149. // }
  2150. //
  2151. func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecoveryPointsInput) (req *request.Request, output *ListVolumeRecoveryPointsOutput) {
  2152. op := &request.Operation{
  2153. Name: opListVolumeRecoveryPoints,
  2154. HTTPMethod: "POST",
  2155. HTTPPath: "/",
  2156. }
  2157. if input == nil {
  2158. input = &ListVolumeRecoveryPointsInput{}
  2159. }
  2160. req = c.newRequest(op, input, output)
  2161. output = &ListVolumeRecoveryPointsOutput{}
  2162. req.Data = output
  2163. return
  2164. }
  2165. // Lists the recovery points for a specified gateway. This operation is supported
  2166. // only for the gateway-cached volume architecture.
  2167. //
  2168. // Each gateway-cached volume has one recovery point. A volume recovery point
  2169. // is a point in time at which all data of the volume is consistent and from
  2170. // which you can create a snapshot. To create a snapshot from a volume recovery
  2171. // point use the CreateSnapshotFromVolumeRecoveryPoint operation.
  2172. func (c *StorageGateway) ListVolumeRecoveryPoints(input *ListVolumeRecoveryPointsInput) (*ListVolumeRecoveryPointsOutput, error) {
  2173. req, out := c.ListVolumeRecoveryPointsRequest(input)
  2174. err := req.Send()
  2175. return out, err
  2176. }
  2177. const opListVolumes = "ListVolumes"
  2178. // ListVolumesRequest generates a "aws/request.Request" representing the
  2179. // client's request for the ListVolumes operation. The "output" return
  2180. // value can be used to capture response data after the request's "Send" method
  2181. // is called.
  2182. //
  2183. // Creating a request object using this method should be used when you want to inject
  2184. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2185. // access properties on the request object before or after sending the request. If
  2186. // you just want the service response, call the ListVolumes method directly
  2187. // instead.
  2188. //
  2189. // Note: You must call the "Send" method on the returned request object in order
  2190. // to execute the request.
  2191. //
  2192. // // Example sending a request using the ListVolumesRequest method.
  2193. // req, resp := client.ListVolumesRequest(params)
  2194. //
  2195. // err := req.Send()
  2196. // if err == nil { // resp is now filled
  2197. // fmt.Println(resp)
  2198. // }
  2199. //
  2200. func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *request.Request, output *ListVolumesOutput) {
  2201. op := &request.Operation{
  2202. Name: opListVolumes,
  2203. HTTPMethod: "POST",
  2204. HTTPPath: "/",
  2205. Paginator: &request.Paginator{
  2206. InputTokens: []string{"Marker"},
  2207. OutputTokens: []string{"Marker"},
  2208. LimitToken: "Limit",
  2209. TruncationToken: "",
  2210. },
  2211. }
  2212. if input == nil {
  2213. input = &ListVolumesInput{}
  2214. }
  2215. req = c.newRequest(op, input, output)
  2216. output = &ListVolumesOutput{}
  2217. req.Data = output
  2218. return
  2219. }
  2220. // Lists the iSCSI stored volumes of a gateway. Results are sorted by volume
  2221. // ARN. The response includes only the volume ARNs. If you want additional volume
  2222. // information, use the DescribeStorediSCSIVolumes API.
  2223. //
  2224. // The operation supports pagination. By default, the operation returns a maximum
  2225. // of up to 100 volumes. You can optionally specify the Limit field in the body
  2226. // to limit the number of volumes in the response. If the number of volumes
  2227. // returned in the response is truncated, the response includes a Marker field.
  2228. // You can use this Marker value in your subsequent request to retrieve the
  2229. // next set of volumes.
  2230. func (c *StorageGateway) ListVolumes(input *ListVolumesInput) (*ListVolumesOutput, error) {
  2231. req, out := c.ListVolumesRequest(input)
  2232. err := req.Send()
  2233. return out, err
  2234. }
  2235. // ListVolumesPages iterates over the pages of a ListVolumes operation,
  2236. // calling the "fn" function with the response data for each page. To stop
  2237. // iterating, return false from the fn function.
  2238. //
  2239. // See ListVolumes method for more information on how to use this operation.
  2240. //
  2241. // Note: This operation can generate multiple requests to a service.
  2242. //
  2243. // // Example iterating over at most 3 pages of a ListVolumes operation.
  2244. // pageNum := 0
  2245. // err := client.ListVolumesPages(params,
  2246. // func(page *ListVolumesOutput, lastPage bool) bool {
  2247. // pageNum++
  2248. // fmt.Println(page)
  2249. // return pageNum <= 3
  2250. // })
  2251. //
  2252. func (c *StorageGateway) ListVolumesPages(input *ListVolumesInput, fn func(p *ListVolumesOutput, lastPage bool) (shouldContinue bool)) error {
  2253. page, _ := c.ListVolumesRequest(input)
  2254. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  2255. return page.EachPage(func(p interface{}, lastPage bool) bool {
  2256. return fn(p.(*ListVolumesOutput), lastPage)
  2257. })
  2258. }
  2259. const opRemoveTagsFromResource = "RemoveTagsFromResource"
  2260. // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
  2261. // client's request for the RemoveTagsFromResource operation. The "output" return
  2262. // value can be used to capture response data after the request's "Send" method
  2263. // is called.
  2264. //
  2265. // Creating a request object using this method should be used when you want to inject
  2266. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2267. // access properties on the request object before or after sending the request. If
  2268. // you just want the service response, call the RemoveTagsFromResource method directly
  2269. // instead.
  2270. //
  2271. // Note: You must call the "Send" method on the returned request object in order
  2272. // to execute the request.
  2273. //
  2274. // // Example sending a request using the RemoveTagsFromResourceRequest method.
  2275. // req, resp := client.RemoveTagsFromResourceRequest(params)
  2276. //
  2277. // err := req.Send()
  2278. // if err == nil { // resp is now filled
  2279. // fmt.Println(resp)
  2280. // }
  2281. //
  2282. func (c *StorageGateway) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
  2283. op := &request.Operation{
  2284. Name: opRemoveTagsFromResource,
  2285. HTTPMethod: "POST",
  2286. HTTPPath: "/",
  2287. }
  2288. if input == nil {
  2289. input = &RemoveTagsFromResourceInput{}
  2290. }
  2291. req = c.newRequest(op, input, output)
  2292. output = &RemoveTagsFromResourceOutput{}
  2293. req.Data = output
  2294. return
  2295. }
  2296. // Removes one or more tags from the specified resource.
  2297. func (c *StorageGateway) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
  2298. req, out := c.RemoveTagsFromResourceRequest(input)
  2299. err := req.Send()
  2300. return out, err
  2301. }
  2302. const opResetCache = "ResetCache"
  2303. // ResetCacheRequest generates a "aws/request.Request" representing the
  2304. // client's request for the ResetCache operation. The "output" return
  2305. // value can be used to capture response data after the request's "Send" method
  2306. // is called.
  2307. //
  2308. // Creating a request object using this method should be used when you want to inject
  2309. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2310. // access properties on the request object before or after sending the request. If
  2311. // you just want the service response, call the ResetCache method directly
  2312. // instead.
  2313. //
  2314. // Note: You must call the "Send" method on the returned request object in order
  2315. // to execute the request.
  2316. //
  2317. // // Example sending a request using the ResetCacheRequest method.
  2318. // req, resp := client.ResetCacheRequest(params)
  2319. //
  2320. // err := req.Send()
  2321. // if err == nil { // resp is now filled
  2322. // fmt.Println(resp)
  2323. // }
  2324. //
  2325. func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request.Request, output *ResetCacheOutput) {
  2326. op := &request.Operation{
  2327. Name: opResetCache,
  2328. HTTPMethod: "POST",
  2329. HTTPPath: "/",
  2330. }
  2331. if input == nil {
  2332. input = &ResetCacheInput{}
  2333. }
  2334. req = c.newRequest(op, input, output)
  2335. output = &ResetCacheOutput{}
  2336. req.Data = output
  2337. return
  2338. }
  2339. // Resets all cache disks that have encountered a error and makes the disks
  2340. // available for reconfiguration as cache storage. If your cache disk encounters
  2341. // a error, the gateway prevents read and write operations on virtual tapes
  2342. // in the gateway. For example, an error can occur when a disk is corrupted
  2343. // or removed from the gateway. When a cache is reset, the gateway loses its
  2344. // cache storage. At this point you can reconfigure the disks as cache disks.
  2345. //
  2346. // If the cache disk you are resetting contains data that has not been uploaded
  2347. // to Amazon S3 yet, that data can be lost. After you reset cache disks, there
  2348. // will be no configured cache disks left in the gateway, so you must configure
  2349. // at least one new cache disk for your gateway to function properly.
  2350. func (c *StorageGateway) ResetCache(input *ResetCacheInput) (*ResetCacheOutput, error) {
  2351. req, out := c.ResetCacheRequest(input)
  2352. err := req.Send()
  2353. return out, err
  2354. }
  2355. const opRetrieveTapeArchive = "RetrieveTapeArchive"
  2356. // RetrieveTapeArchiveRequest generates a "aws/request.Request" representing the
  2357. // client's request for the RetrieveTapeArchive operation. The "output" return
  2358. // value can be used to capture response data after the request's "Send" method
  2359. // is called.
  2360. //
  2361. // Creating a request object using this method should be used when you want to inject
  2362. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2363. // access properties on the request object before or after sending the request. If
  2364. // you just want the service response, call the RetrieveTapeArchive method directly
  2365. // instead.
  2366. //
  2367. // Note: You must call the "Send" method on the returned request object in order
  2368. // to execute the request.
  2369. //
  2370. // // Example sending a request using the RetrieveTapeArchiveRequest method.
  2371. // req, resp := client.RetrieveTapeArchiveRequest(params)
  2372. //
  2373. // err := req.Send()
  2374. // if err == nil { // resp is now filled
  2375. // fmt.Println(resp)
  2376. // }
  2377. //
  2378. func (c *StorageGateway) RetrieveTapeArchiveRequest(input *RetrieveTapeArchiveInput) (req *request.Request, output *RetrieveTapeArchiveOutput) {
  2379. op := &request.Operation{
  2380. Name: opRetrieveTapeArchive,
  2381. HTTPMethod: "POST",
  2382. HTTPPath: "/",
  2383. }
  2384. if input == nil {
  2385. input = &RetrieveTapeArchiveInput{}
  2386. }
  2387. req = c.newRequest(op, input, output)
  2388. output = &RetrieveTapeArchiveOutput{}
  2389. req.Data = output
  2390. return
  2391. }
  2392. // Retrieves an archived virtual tape from the virtual tape shelf (VTS) to a
  2393. // gateway-VTL. Virtual tapes archived in the VTS are not associated with any
  2394. // gateway. However after a tape is retrieved, it is associated with a gateway,
  2395. // even though it is also listed in the VTS.
  2396. //
  2397. // Once a tape is successfully retrieved to a gateway, it cannot be retrieved
  2398. // again to another gateway. You must archive the tape again before you can
  2399. // retrieve it to another gateway.
  2400. func (c *StorageGateway) RetrieveTapeArchive(input *RetrieveTapeArchiveInput) (*RetrieveTapeArchiveOutput, error) {
  2401. req, out := c.RetrieveTapeArchiveRequest(input)
  2402. err := req.Send()
  2403. return out, err
  2404. }
  2405. const opRetrieveTapeRecoveryPoint = "RetrieveTapeRecoveryPoint"
  2406. // RetrieveTapeRecoveryPointRequest generates a "aws/request.Request" representing the
  2407. // client's request for the RetrieveTapeRecoveryPoint operation. The "output" return
  2408. // value can be used to capture response data after the request's "Send" method
  2409. // is called.
  2410. //
  2411. // Creating a request object using this method should be used when you want to inject
  2412. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2413. // access properties on the request object before or after sending the request. If
  2414. // you just want the service response, call the RetrieveTapeRecoveryPoint method directly
  2415. // instead.
  2416. //
  2417. // Note: You must call the "Send" method on the returned request object in order
  2418. // to execute the request.
  2419. //
  2420. // // Example sending a request using the RetrieveTapeRecoveryPointRequest method.
  2421. // req, resp := client.RetrieveTapeRecoveryPointRequest(params)
  2422. //
  2423. // err := req.Send()
  2424. // if err == nil { // resp is now filled
  2425. // fmt.Println(resp)
  2426. // }
  2427. //
  2428. func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRecoveryPointInput) (req *request.Request, output *RetrieveTapeRecoveryPointOutput) {
  2429. op := &request.Operation{
  2430. Name: opRetrieveTapeRecoveryPoint,
  2431. HTTPMethod: "POST",
  2432. HTTPPath: "/",
  2433. }
  2434. if input == nil {
  2435. input = &RetrieveTapeRecoveryPointInput{}
  2436. }
  2437. req = c.newRequest(op, input, output)
  2438. output = &RetrieveTapeRecoveryPointOutput{}
  2439. req.Data = output
  2440. return
  2441. }
  2442. // Retrieves the recovery point for the specified virtual tape.
  2443. //
  2444. // A recovery point is a point in time view of a virtual tape at which all
  2445. // the data on the tape is consistent. If your gateway crashes, virtual tapes
  2446. // that have recovery points can be recovered to a new gateway.
  2447. //
  2448. // The virtual tape can be retrieved to only one gateway. The retrieved tape
  2449. // is read-only. The virtual tape can be retrieved to only a gateway-VTL. There
  2450. // is no charge for retrieving recovery points.
  2451. func (c *StorageGateway) RetrieveTapeRecoveryPoint(input *RetrieveTapeRecoveryPointInput) (*RetrieveTapeRecoveryPointOutput, error) {
  2452. req, out := c.RetrieveTapeRecoveryPointRequest(input)
  2453. err := req.Send()
  2454. return out, err
  2455. }
  2456. const opSetLocalConsolePassword = "SetLocalConsolePassword"
  2457. // SetLocalConsolePasswordRequest generates a "aws/request.Request" representing the
  2458. // client's request for the SetLocalConsolePassword operation. The "output" return
  2459. // value can be used to capture response data after the request's "Send" method
  2460. // is called.
  2461. //
  2462. // Creating a request object using this method should be used when you want to inject
  2463. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2464. // access properties on the request object before or after sending the request. If
  2465. // you just want the service response, call the SetLocalConsolePassword method directly
  2466. // instead.
  2467. //
  2468. // Note: You must call the "Send" method on the returned request object in order
  2469. // to execute the request.
  2470. //
  2471. // // Example sending a request using the SetLocalConsolePasswordRequest method.
  2472. // req, resp := client.SetLocalConsolePasswordRequest(params)
  2473. //
  2474. // err := req.Send()
  2475. // if err == nil { // resp is now filled
  2476. // fmt.Println(resp)
  2477. // }
  2478. //
  2479. func (c *StorageGateway) SetLocalConsolePasswordRequest(input *SetLocalConsolePasswordInput) (req *request.Request, output *SetLocalConsolePasswordOutput) {
  2480. op := &request.Operation{
  2481. Name: opSetLocalConsolePassword,
  2482. HTTPMethod: "POST",
  2483. HTTPPath: "/",
  2484. }
  2485. if input == nil {
  2486. input = &SetLocalConsolePasswordInput{}
  2487. }
  2488. req = c.newRequest(op, input, output)
  2489. output = &SetLocalConsolePasswordOutput{}
  2490. req.Data = output
  2491. return
  2492. }
  2493. // Sets the password for your VM local console. When you log in to the local
  2494. // console for the first time, you log in to the VM with the default credentials.
  2495. // We recommend that you set a new password. You don't need to know the default
  2496. // password to set a new password.
  2497. func (c *StorageGateway) SetLocalConsolePassword(input *SetLocalConsolePasswordInput) (*SetLocalConsolePasswordOutput, error) {
  2498. req, out := c.SetLocalConsolePasswordRequest(input)
  2499. err := req.Send()
  2500. return out, err
  2501. }
  2502. const opShutdownGateway = "ShutdownGateway"
  2503. // ShutdownGatewayRequest generates a "aws/request.Request" representing the
  2504. // client's request for the ShutdownGateway operation. The "output" return
  2505. // value can be used to capture response data after the request's "Send" method
  2506. // is called.
  2507. //
  2508. // Creating a request object using this method should be used when you want to inject
  2509. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2510. // access properties on the request object before or after sending the request. If
  2511. // you just want the service response, call the ShutdownGateway method directly
  2512. // instead.
  2513. //
  2514. // Note: You must call the "Send" method on the returned request object in order
  2515. // to execute the request.
  2516. //
  2517. // // Example sending a request using the ShutdownGatewayRequest method.
  2518. // req, resp := client.ShutdownGatewayRequest(params)
  2519. //
  2520. // err := req.Send()
  2521. // if err == nil { // resp is now filled
  2522. // fmt.Println(resp)
  2523. // }
  2524. //
  2525. func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (req *request.Request, output *ShutdownGatewayOutput) {
  2526. op := &request.Operation{
  2527. Name: opShutdownGateway,
  2528. HTTPMethod: "POST",
  2529. HTTPPath: "/",
  2530. }
  2531. if input == nil {
  2532. input = &ShutdownGatewayInput{}
  2533. }
  2534. req = c.newRequest(op, input, output)
  2535. output = &ShutdownGatewayOutput{}
  2536. req.Data = output
  2537. return
  2538. }
  2539. // Shuts down a gateway. To specify which gateway to shut down, use the Amazon
  2540. // Resource Name (ARN) of the gateway in the body of your request.
  2541. //
  2542. // The operation shuts down the gateway service component running in the storage
  2543. // gateway's virtual machine (VM) and not the VM.
  2544. //
  2545. // If you want to shut down the VM, it is recommended that you first shut down
  2546. // the gateway component in the VM to avoid unpredictable conditions.
  2547. //
  2548. // After the gateway is shutdown, you cannot call any other API except StartGateway,
  2549. // DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway.
  2550. // Your applications cannot read from or write to the gateway's storage volumes,
  2551. // and there are no snapshots taken.
  2552. //
  2553. // When you make a shutdown request, you will get a 200 OK success response
  2554. // immediately. However, it might take some time for the gateway to shut down.
  2555. // You can call the DescribeGatewayInformation API to check the status. For
  2556. // more information, see ActivateGateway.
  2557. //
  2558. // If do not intend to use the gateway again, you must delete the gateway
  2559. // (using DeleteGateway) to no longer pay software charges associated with the
  2560. // gateway.
  2561. func (c *StorageGateway) ShutdownGateway(input *ShutdownGatewayInput) (*ShutdownGatewayOutput, error) {
  2562. req, out := c.ShutdownGatewayRequest(input)
  2563. err := req.Send()
  2564. return out, err
  2565. }
  2566. const opStartGateway = "StartGateway"
  2567. // StartGatewayRequest generates a "aws/request.Request" representing the
  2568. // client's request for the StartGateway operation. The "output" return
  2569. // value can be used to capture response data after the request's "Send" method
  2570. // is called.
  2571. //
  2572. // Creating a request object using this method should be used when you want to inject
  2573. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2574. // access properties on the request object before or after sending the request. If
  2575. // you just want the service response, call the StartGateway method directly
  2576. // instead.
  2577. //
  2578. // Note: You must call the "Send" method on the returned request object in order
  2579. // to execute the request.
  2580. //
  2581. // // Example sending a request using the StartGatewayRequest method.
  2582. // req, resp := client.StartGatewayRequest(params)
  2583. //
  2584. // err := req.Send()
  2585. // if err == nil { // resp is now filled
  2586. // fmt.Println(resp)
  2587. // }
  2588. //
  2589. func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *request.Request, output *StartGatewayOutput) {
  2590. op := &request.Operation{
  2591. Name: opStartGateway,
  2592. HTTPMethod: "POST",
  2593. HTTPPath: "/",
  2594. }
  2595. if input == nil {
  2596. input = &StartGatewayInput{}
  2597. }
  2598. req = c.newRequest(op, input, output)
  2599. output = &StartGatewayOutput{}
  2600. req.Data = output
  2601. return
  2602. }
  2603. // Starts a gateway that you previously shut down (see ShutdownGateway). After
  2604. // the gateway starts, you can then make other API calls, your applications
  2605. // can read from or write to the gateway's storage volumes and you will be able
  2606. // to take snapshot backups.
  2607. //
  2608. // When you make a request, you will get a 200 OK success response immediately.
  2609. // However, it might take some time for the gateway to be ready. You should
  2610. // call DescribeGatewayInformation and check the status before making any additional
  2611. // API calls. For more information, see ActivateGateway.
  2612. //
  2613. // To specify which gateway to start, use the Amazon Resource Name (ARN) of
  2614. // the gateway in your request.
  2615. func (c *StorageGateway) StartGateway(input *StartGatewayInput) (*StartGatewayOutput, error) {
  2616. req, out := c.StartGatewayRequest(input)
  2617. err := req.Send()
  2618. return out, err
  2619. }
  2620. const opUpdateBandwidthRateLimit = "UpdateBandwidthRateLimit"
  2621. // UpdateBandwidthRateLimitRequest generates a "aws/request.Request" representing the
  2622. // client's request for the UpdateBandwidthRateLimit operation. The "output" return
  2623. // value can be used to capture response data after the request's "Send" method
  2624. // is called.
  2625. //
  2626. // Creating a request object using this method should be used when you want to inject
  2627. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2628. // access properties on the request object before or after sending the request. If
  2629. // you just want the service response, call the UpdateBandwidthRateLimit method directly
  2630. // instead.
  2631. //
  2632. // Note: You must call the "Send" method on the returned request object in order
  2633. // to execute the request.
  2634. //
  2635. // // Example sending a request using the UpdateBandwidthRateLimitRequest method.
  2636. // req, resp := client.UpdateBandwidthRateLimitRequest(params)
  2637. //
  2638. // err := req.Send()
  2639. // if err == nil { // resp is now filled
  2640. // fmt.Println(resp)
  2641. // }
  2642. //
  2643. func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthRateLimitInput) (req *request.Request, output *UpdateBandwidthRateLimitOutput) {
  2644. op := &request.Operation{
  2645. Name: opUpdateBandwidthRateLimit,
  2646. HTTPMethod: "POST",
  2647. HTTPPath: "/",
  2648. }
  2649. if input == nil {
  2650. input = &UpdateBandwidthRateLimitInput{}
  2651. }
  2652. req = c.newRequest(op, input, output)
  2653. output = &UpdateBandwidthRateLimitOutput{}
  2654. req.Data = output
  2655. return
  2656. }
  2657. // Updates the bandwidth rate limits of a gateway. You can update both the upload
  2658. // and download bandwidth rate limit or specify only one of the two. If you
  2659. // don't set a bandwidth rate limit, the existing rate limit remains.
  2660. //
  2661. // By default, a gateway's bandwidth rate limits are not set. If you don't
  2662. // set any limit, the gateway does not have any limitations on its bandwidth
  2663. // usage and could potentially use the maximum available bandwidth.
  2664. //
  2665. // To specify which gateway to update, use the Amazon Resource Name (ARN) of
  2666. // the gateway in your request.
  2667. func (c *StorageGateway) UpdateBandwidthRateLimit(input *UpdateBandwidthRateLimitInput) (*UpdateBandwidthRateLimitOutput, error) {
  2668. req, out := c.UpdateBandwidthRateLimitRequest(input)
  2669. err := req.Send()
  2670. return out, err
  2671. }
  2672. const opUpdateChapCredentials = "UpdateChapCredentials"
  2673. // UpdateChapCredentialsRequest generates a "aws/request.Request" representing the
  2674. // client's request for the UpdateChapCredentials operation. The "output" return
  2675. // value can be used to capture response data after the request's "Send" method
  2676. // is called.
  2677. //
  2678. // Creating a request object using this method should be used when you want to inject
  2679. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2680. // access properties on the request object before or after sending the request. If
  2681. // you just want the service response, call the UpdateChapCredentials method directly
  2682. // instead.
  2683. //
  2684. // Note: You must call the "Send" method on the returned request object in order
  2685. // to execute the request.
  2686. //
  2687. // // Example sending a request using the UpdateChapCredentialsRequest method.
  2688. // req, resp := client.UpdateChapCredentialsRequest(params)
  2689. //
  2690. // err := req.Send()
  2691. // if err == nil { // resp is now filled
  2692. // fmt.Println(resp)
  2693. // }
  2694. //
  2695. func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentialsInput) (req *request.Request, output *UpdateChapCredentialsOutput) {
  2696. op := &request.Operation{
  2697. Name: opUpdateChapCredentials,
  2698. HTTPMethod: "POST",
  2699. HTTPPath: "/",
  2700. }
  2701. if input == nil {
  2702. input = &UpdateChapCredentialsInput{}
  2703. }
  2704. req = c.newRequest(op, input, output)
  2705. output = &UpdateChapCredentialsOutput{}
  2706. req.Data = output
  2707. return
  2708. }
  2709. // Updates the Challenge-Handshake Authentication Protocol (CHAP) credentials
  2710. // for a specified iSCSI target. By default, a gateway does not have CHAP enabled;
  2711. // however, for added security, you might use it.
  2712. //
  2713. // When you update CHAP credentials, all existing connections on the target
  2714. // are closed and initiators must reconnect with the new credentials.
  2715. func (c *StorageGateway) UpdateChapCredentials(input *UpdateChapCredentialsInput) (*UpdateChapCredentialsOutput, error) {
  2716. req, out := c.UpdateChapCredentialsRequest(input)
  2717. err := req.Send()
  2718. return out, err
  2719. }
  2720. const opUpdateGatewayInformation = "UpdateGatewayInformation"
  2721. // UpdateGatewayInformationRequest generates a "aws/request.Request" representing the
  2722. // client's request for the UpdateGatewayInformation operation. The "output" return
  2723. // value can be used to capture response data after the request's "Send" method
  2724. // is called.
  2725. //
  2726. // Creating a request object using this method should be used when you want to inject
  2727. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2728. // access properties on the request object before or after sending the request. If
  2729. // you just want the service response, call the UpdateGatewayInformation method directly
  2730. // instead.
  2731. //
  2732. // Note: You must call the "Send" method on the returned request object in order
  2733. // to execute the request.
  2734. //
  2735. // // Example sending a request using the UpdateGatewayInformationRequest method.
  2736. // req, resp := client.UpdateGatewayInformationRequest(params)
  2737. //
  2738. // err := req.Send()
  2739. // if err == nil { // resp is now filled
  2740. // fmt.Println(resp)
  2741. // }
  2742. //
  2743. func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInformationInput) (req *request.Request, output *UpdateGatewayInformationOutput) {
  2744. op := &request.Operation{
  2745. Name: opUpdateGatewayInformation,
  2746. HTTPMethod: "POST",
  2747. HTTPPath: "/",
  2748. }
  2749. if input == nil {
  2750. input = &UpdateGatewayInformationInput{}
  2751. }
  2752. req = c.newRequest(op, input, output)
  2753. output = &UpdateGatewayInformationOutput{}
  2754. req.Data = output
  2755. return
  2756. }
  2757. // Updates a gateway's metadata, which includes the gateway's name and time
  2758. // zone. To specify which gateway to update, use the Amazon Resource Name (ARN)
  2759. // of the gateway in your request.
  2760. //
  2761. // For Gateways activated after September 2, 2015, the gateway's ARN contains
  2762. // the gateway ID rather than the gateway name. However, changing the name of
  2763. // the gateway has no effect on the gateway's ARN.
  2764. func (c *StorageGateway) UpdateGatewayInformation(input *UpdateGatewayInformationInput) (*UpdateGatewayInformationOutput, error) {
  2765. req, out := c.UpdateGatewayInformationRequest(input)
  2766. err := req.Send()
  2767. return out, err
  2768. }
  2769. const opUpdateGatewaySoftwareNow = "UpdateGatewaySoftwareNow"
  2770. // UpdateGatewaySoftwareNowRequest generates a "aws/request.Request" representing the
  2771. // client's request for the UpdateGatewaySoftwareNow operation. The "output" return
  2772. // value can be used to capture response data after the request's "Send" method
  2773. // is called.
  2774. //
  2775. // Creating a request object using this method should be used when you want to inject
  2776. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2777. // access properties on the request object before or after sending the request. If
  2778. // you just want the service response, call the UpdateGatewaySoftwareNow method directly
  2779. // instead.
  2780. //
  2781. // Note: You must call the "Send" method on the returned request object in order
  2782. // to execute the request.
  2783. //
  2784. // // Example sending a request using the UpdateGatewaySoftwareNowRequest method.
  2785. // req, resp := client.UpdateGatewaySoftwareNowRequest(params)
  2786. //
  2787. // err := req.Send()
  2788. // if err == nil { // resp is now filled
  2789. // fmt.Println(resp)
  2790. // }
  2791. //
  2792. func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySoftwareNowInput) (req *request.Request, output *UpdateGatewaySoftwareNowOutput) {
  2793. op := &request.Operation{
  2794. Name: opUpdateGatewaySoftwareNow,
  2795. HTTPMethod: "POST",
  2796. HTTPPath: "/",
  2797. }
  2798. if input == nil {
  2799. input = &UpdateGatewaySoftwareNowInput{}
  2800. }
  2801. req = c.newRequest(op, input, output)
  2802. output = &UpdateGatewaySoftwareNowOutput{}
  2803. req.Data = output
  2804. return
  2805. }
  2806. // Updates the gateway virtual machine (VM) software. The request immediately
  2807. // triggers the software update.
  2808. //
  2809. // When you make this request, you get a 200 OK success response immediately.
  2810. // However, it might take some time for the update to complete. You can call
  2811. // DescribeGatewayInformation to verify the gateway is in the STATE_RUNNING
  2812. // state.
  2813. //
  2814. // A software update forces a system restart of your gateway. You can minimize
  2815. // the chance of any disruption to your applications by increasing your iSCSI
  2816. // Initiators' timeouts. For more information about increasing iSCSI Initiator
  2817. // timeouts for Windows and Linux, see Customizing Your Windows iSCSI Settings
  2818. // (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorWindowsClient.html#CustomizeWindowsiSCSISettings)
  2819. // and Customizing Your Linux iSCSI Settings (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorRedHatClient.html#CustomizeLinuxiSCSISettings),
  2820. // respectively.
  2821. func (c *StorageGateway) UpdateGatewaySoftwareNow(input *UpdateGatewaySoftwareNowInput) (*UpdateGatewaySoftwareNowOutput, error) {
  2822. req, out := c.UpdateGatewaySoftwareNowRequest(input)
  2823. err := req.Send()
  2824. return out, err
  2825. }
  2826. const opUpdateMaintenanceStartTime = "UpdateMaintenanceStartTime"
  2827. // UpdateMaintenanceStartTimeRequest generates a "aws/request.Request" representing the
  2828. // client's request for the UpdateMaintenanceStartTime operation. The "output" return
  2829. // value can be used to capture response data after the request's "Send" method
  2830. // is called.
  2831. //
  2832. // Creating a request object using this method should be used when you want to inject
  2833. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2834. // access properties on the request object before or after sending the request. If
  2835. // you just want the service response, call the UpdateMaintenanceStartTime method directly
  2836. // instead.
  2837. //
  2838. // Note: You must call the "Send" method on the returned request object in order
  2839. // to execute the request.
  2840. //
  2841. // // Example sending a request using the UpdateMaintenanceStartTimeRequest method.
  2842. // req, resp := client.UpdateMaintenanceStartTimeRequest(params)
  2843. //
  2844. // err := req.Send()
  2845. // if err == nil { // resp is now filled
  2846. // fmt.Println(resp)
  2847. // }
  2848. //
  2849. func (c *StorageGateway) UpdateMaintenanceStartTimeRequest(input *UpdateMaintenanceStartTimeInput) (req *request.Request, output *UpdateMaintenanceStartTimeOutput) {
  2850. op := &request.Operation{
  2851. Name: opUpdateMaintenanceStartTime,
  2852. HTTPMethod: "POST",
  2853. HTTPPath: "/",
  2854. }
  2855. if input == nil {
  2856. input = &UpdateMaintenanceStartTimeInput{}
  2857. }
  2858. req = c.newRequest(op, input, output)
  2859. output = &UpdateMaintenanceStartTimeOutput{}
  2860. req.Data = output
  2861. return
  2862. }
  2863. // Updates a gateway's weekly maintenance start time information, including
  2864. // day and time of the week. The maintenance time is the time in your gateway's
  2865. // time zone.
  2866. func (c *StorageGateway) UpdateMaintenanceStartTime(input *UpdateMaintenanceStartTimeInput) (*UpdateMaintenanceStartTimeOutput, error) {
  2867. req, out := c.UpdateMaintenanceStartTimeRequest(input)
  2868. err := req.Send()
  2869. return out, err
  2870. }
  2871. const opUpdateSnapshotSchedule = "UpdateSnapshotSchedule"
  2872. // UpdateSnapshotScheduleRequest generates a "aws/request.Request" representing the
  2873. // client's request for the UpdateSnapshotSchedule operation. The "output" return
  2874. // value can be used to capture response data after the request's "Send" method
  2875. // is called.
  2876. //
  2877. // Creating a request object using this method should be used when you want to inject
  2878. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2879. // access properties on the request object before or after sending the request. If
  2880. // you just want the service response, call the UpdateSnapshotSchedule method directly
  2881. // instead.
  2882. //
  2883. // Note: You must call the "Send" method on the returned request object in order
  2884. // to execute the request.
  2885. //
  2886. // // Example sending a request using the UpdateSnapshotScheduleRequest method.
  2887. // req, resp := client.UpdateSnapshotScheduleRequest(params)
  2888. //
  2889. // err := req.Send()
  2890. // if err == nil { // resp is now filled
  2891. // fmt.Println(resp)
  2892. // }
  2893. //
  2894. func (c *StorageGateway) UpdateSnapshotScheduleRequest(input *UpdateSnapshotScheduleInput) (req *request.Request, output *UpdateSnapshotScheduleOutput) {
  2895. op := &request.Operation{
  2896. Name: opUpdateSnapshotSchedule,
  2897. HTTPMethod: "POST",
  2898. HTTPPath: "/",
  2899. }
  2900. if input == nil {
  2901. input = &UpdateSnapshotScheduleInput{}
  2902. }
  2903. req = c.newRequest(op, input, output)
  2904. output = &UpdateSnapshotScheduleOutput{}
  2905. req.Data = output
  2906. return
  2907. }
  2908. // Updates a snapshot schedule configured for a gateway volume.
  2909. //
  2910. // The default snapshot schedule for volume is once every 24 hours, starting
  2911. // at the creation time of the volume. You can use this API to change the snapshot
  2912. // schedule configured for the volume.
  2913. //
  2914. // In the request you must identify the gateway volume whose snapshot schedule
  2915. // you want to update, and the schedule information, including when you want
  2916. // the snapshot to begin on a day and the frequency (in hours) of snapshots.
  2917. func (c *StorageGateway) UpdateSnapshotSchedule(input *UpdateSnapshotScheduleInput) (*UpdateSnapshotScheduleOutput, error) {
  2918. req, out := c.UpdateSnapshotScheduleRequest(input)
  2919. err := req.Send()
  2920. return out, err
  2921. }
  2922. const opUpdateVTLDeviceType = "UpdateVTLDeviceType"
  2923. // UpdateVTLDeviceTypeRequest generates a "aws/request.Request" representing the
  2924. // client's request for the UpdateVTLDeviceType operation. The "output" return
  2925. // value can be used to capture response data after the request's "Send" method
  2926. // is called.
  2927. //
  2928. // Creating a request object using this method should be used when you want to inject
  2929. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2930. // access properties on the request object before or after sending the request. If
  2931. // you just want the service response, call the UpdateVTLDeviceType method directly
  2932. // instead.
  2933. //
  2934. // Note: You must call the "Send" method on the returned request object in order
  2935. // to execute the request.
  2936. //
  2937. // // Example sending a request using the UpdateVTLDeviceTypeRequest method.
  2938. // req, resp := client.UpdateVTLDeviceTypeRequest(params)
  2939. //
  2940. // err := req.Send()
  2941. // if err == nil { // resp is now filled
  2942. // fmt.Println(resp)
  2943. // }
  2944. //
  2945. func (c *StorageGateway) UpdateVTLDeviceTypeRequest(input *UpdateVTLDeviceTypeInput) (req *request.Request, output *UpdateVTLDeviceTypeOutput) {
  2946. op := &request.Operation{
  2947. Name: opUpdateVTLDeviceType,
  2948. HTTPMethod: "POST",
  2949. HTTPPath: "/",
  2950. }
  2951. if input == nil {
  2952. input = &UpdateVTLDeviceTypeInput{}
  2953. }
  2954. req = c.newRequest(op, input, output)
  2955. output = &UpdateVTLDeviceTypeOutput{}
  2956. req.Data = output
  2957. return
  2958. }
  2959. // Updates the type of medium changer in a gateway-VTL. When you activate a
  2960. // gateway-VTL, you select a medium changer type for the gateway-VTL. This operation
  2961. // enables you to select a different type of medium changer after a gateway-VTL
  2962. // is activated.
  2963. func (c *StorageGateway) UpdateVTLDeviceType(input *UpdateVTLDeviceTypeInput) (*UpdateVTLDeviceTypeOutput, error) {
  2964. req, out := c.UpdateVTLDeviceTypeRequest(input)
  2965. err := req.Send()
  2966. return out, err
  2967. }
  2968. // A JSON object containing one or more of the following fields:
  2969. //
  2970. // ActivateGatewayInput$ActivationKey
  2971. //
  2972. // ActivateGatewayInput$GatewayName
  2973. //
  2974. // ActivateGatewayInput$GatewayRegion
  2975. //
  2976. // ActivateGatewayInput$GatewayTimezone
  2977. //
  2978. // ActivateGatewayInput$GatewayType
  2979. //
  2980. // ActivateGatewayInput$TapeDriveType
  2981. //
  2982. // ActivateGatewayInput$MediumChangerType
  2983. type ActivateGatewayInput struct {
  2984. _ struct{} `type:"structure"`
  2985. // Your gateway activation key. You can obtain the activation key by sending
  2986. // an HTTP GET request with redirects enabled to the gateway IP address (port
  2987. // 80). The redirect URL returned in the response provides you the activation
  2988. // key for your gateway in the query string parameter activationKey. It may
  2989. // also include other activation-related parameters, however, these are merely
  2990. // defaults -- the arguments you pass to the ActivateGateway API call determine
  2991. // the actual configuration of your gateway.
  2992. ActivationKey *string `min:"1" type:"string" required:"true"`
  2993. // The name you configured for your gateway.
  2994. GatewayName *string `min:"2" type:"string" required:"true"`
  2995. // A value that indicates the region where you want to store the snapshot backups.
  2996. // The gateway region specified must be the same region as the region in your
  2997. // Host header in the request. For more information about available regions
  2998. // and endpoints for AWS Storage Gateway, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sg_region)
  2999. // in the Amazon Web Services Glossary.
  3000. //
  3001. // Valid Values: "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1",
  3002. // "ap-northeast-1", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "sa-east-1"
  3003. GatewayRegion *string `min:"1" type:"string" required:"true"`
  3004. // A value that indicates the time zone you want to set for the gateway. The
  3005. // time zone is used, for example, for scheduling snapshots and your gateway's
  3006. // maintenance schedule.
  3007. GatewayTimezone *string `min:"3" type:"string" required:"true"`
  3008. // A value that defines the type of gateway to activate. The type specified
  3009. // is critical to all later functions of the gateway and cannot be changed after
  3010. // activation. The default value is STORED.
  3011. GatewayType *string `min:"2" type:"string"`
  3012. // The value that indicates the type of medium changer to use for gateway-VTL.
  3013. // This field is optional.
  3014. //
  3015. // Valid Values: "STK-L700", "AWS-Gateway-VTL"
  3016. MediumChangerType *string `min:"2" type:"string"`
  3017. // The value that indicates the type of tape drive to use for gateway-VTL. This
  3018. // field is optional.
  3019. //
  3020. // Valid Values: "IBM-ULT3580-TD5"
  3021. TapeDriveType *string `min:"2" type:"string"`
  3022. }
  3023. // String returns the string representation
  3024. func (s ActivateGatewayInput) String() string {
  3025. return awsutil.Prettify(s)
  3026. }
  3027. // GoString returns the string representation
  3028. func (s ActivateGatewayInput) GoString() string {
  3029. return s.String()
  3030. }
  3031. // Validate inspects the fields of the type to determine if they are valid.
  3032. func (s *ActivateGatewayInput) Validate() error {
  3033. invalidParams := request.ErrInvalidParams{Context: "ActivateGatewayInput"}
  3034. if s.ActivationKey == nil {
  3035. invalidParams.Add(request.NewErrParamRequired("ActivationKey"))
  3036. }
  3037. if s.ActivationKey != nil && len(*s.ActivationKey) < 1 {
  3038. invalidParams.Add(request.NewErrParamMinLen("ActivationKey", 1))
  3039. }
  3040. if s.GatewayName == nil {
  3041. invalidParams.Add(request.NewErrParamRequired("GatewayName"))
  3042. }
  3043. if s.GatewayName != nil && len(*s.GatewayName) < 2 {
  3044. invalidParams.Add(request.NewErrParamMinLen("GatewayName", 2))
  3045. }
  3046. if s.GatewayRegion == nil {
  3047. invalidParams.Add(request.NewErrParamRequired("GatewayRegion"))
  3048. }
  3049. if s.GatewayRegion != nil && len(*s.GatewayRegion) < 1 {
  3050. invalidParams.Add(request.NewErrParamMinLen("GatewayRegion", 1))
  3051. }
  3052. if s.GatewayTimezone == nil {
  3053. invalidParams.Add(request.NewErrParamRequired("GatewayTimezone"))
  3054. }
  3055. if s.GatewayTimezone != nil && len(*s.GatewayTimezone) < 3 {
  3056. invalidParams.Add(request.NewErrParamMinLen("GatewayTimezone", 3))
  3057. }
  3058. if s.GatewayType != nil && len(*s.GatewayType) < 2 {
  3059. invalidParams.Add(request.NewErrParamMinLen("GatewayType", 2))
  3060. }
  3061. if s.MediumChangerType != nil && len(*s.MediumChangerType) < 2 {
  3062. invalidParams.Add(request.NewErrParamMinLen("MediumChangerType", 2))
  3063. }
  3064. if s.TapeDriveType != nil && len(*s.TapeDriveType) < 2 {
  3065. invalidParams.Add(request.NewErrParamMinLen("TapeDriveType", 2))
  3066. }
  3067. if invalidParams.Len() > 0 {
  3068. return invalidParams
  3069. }
  3070. return nil
  3071. }
  3072. // AWS Storage Gateway returns the Amazon Resource Name (ARN) of the activated
  3073. // gateway. It is a string made of information such as your account, gateway
  3074. // name, and region. This ARN is used to reference the gateway in other API
  3075. // operations as well as resource-based authorization.
  3076. //
  3077. // For gateways activated prior to September 02, 2015 the gateway ARN contains
  3078. // the gateway name rather than the gateway id. Changing the name of the gateway
  3079. // has no effect on the gateway ARN.
  3080. type ActivateGatewayOutput struct {
  3081. _ struct{} `type:"structure"`
  3082. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3083. // to return a list of gateways for your account and region.
  3084. GatewayARN *string `min:"50" type:"string"`
  3085. }
  3086. // String returns the string representation
  3087. func (s ActivateGatewayOutput) String() string {
  3088. return awsutil.Prettify(s)
  3089. }
  3090. // GoString returns the string representation
  3091. func (s ActivateGatewayOutput) GoString() string {
  3092. return s.String()
  3093. }
  3094. type AddCacheInput struct {
  3095. _ struct{} `type:"structure"`
  3096. DiskIds []*string `type:"list" required:"true"`
  3097. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3098. // to return a list of gateways for your account and region.
  3099. GatewayARN *string `min:"50" type:"string" required:"true"`
  3100. }
  3101. // String returns the string representation
  3102. func (s AddCacheInput) String() string {
  3103. return awsutil.Prettify(s)
  3104. }
  3105. // GoString returns the string representation
  3106. func (s AddCacheInput) GoString() string {
  3107. return s.String()
  3108. }
  3109. // Validate inspects the fields of the type to determine if they are valid.
  3110. func (s *AddCacheInput) Validate() error {
  3111. invalidParams := request.ErrInvalidParams{Context: "AddCacheInput"}
  3112. if s.DiskIds == nil {
  3113. invalidParams.Add(request.NewErrParamRequired("DiskIds"))
  3114. }
  3115. if s.GatewayARN == nil {
  3116. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  3117. }
  3118. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  3119. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  3120. }
  3121. if invalidParams.Len() > 0 {
  3122. return invalidParams
  3123. }
  3124. return nil
  3125. }
  3126. type AddCacheOutput struct {
  3127. _ struct{} `type:"structure"`
  3128. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3129. // to return a list of gateways for your account and region.
  3130. GatewayARN *string `min:"50" type:"string"`
  3131. }
  3132. // String returns the string representation
  3133. func (s AddCacheOutput) String() string {
  3134. return awsutil.Prettify(s)
  3135. }
  3136. // GoString returns the string representation
  3137. func (s AddCacheOutput) GoString() string {
  3138. return s.String()
  3139. }
  3140. // AddTagsToResourceInput
  3141. type AddTagsToResourceInput struct {
  3142. _ struct{} `type:"structure"`
  3143. // The Amazon Resource Name (ARN) of the resource you want to add tags to.
  3144. ResourceARN *string `min:"50" type:"string" required:"true"`
  3145. // The key-value pair that represents the tag you want to add to the resource.
  3146. // The value can be an empty string.
  3147. //
  3148. // Valid characters for key and value are letters, spaces, and numbers representable
  3149. // in UTF-8 format, and the following special characters: + - = . _ : / @.
  3150. Tags []*Tag `type:"list" required:"true"`
  3151. }
  3152. // String returns the string representation
  3153. func (s AddTagsToResourceInput) String() string {
  3154. return awsutil.Prettify(s)
  3155. }
  3156. // GoString returns the string representation
  3157. func (s AddTagsToResourceInput) GoString() string {
  3158. return s.String()
  3159. }
  3160. // Validate inspects the fields of the type to determine if they are valid.
  3161. func (s *AddTagsToResourceInput) Validate() error {
  3162. invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
  3163. if s.ResourceARN == nil {
  3164. invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
  3165. }
  3166. if s.ResourceARN != nil && len(*s.ResourceARN) < 50 {
  3167. invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 50))
  3168. }
  3169. if s.Tags == nil {
  3170. invalidParams.Add(request.NewErrParamRequired("Tags"))
  3171. }
  3172. if s.Tags != nil {
  3173. for i, v := range s.Tags {
  3174. if v == nil {
  3175. continue
  3176. }
  3177. if err := v.Validate(); err != nil {
  3178. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  3179. }
  3180. }
  3181. }
  3182. if invalidParams.Len() > 0 {
  3183. return invalidParams
  3184. }
  3185. return nil
  3186. }
  3187. // AddTagsToResourceOutput
  3188. type AddTagsToResourceOutput struct {
  3189. _ struct{} `type:"structure"`
  3190. // The Amazon Resource Name (ARN) of the resource you want to add tags to.
  3191. ResourceARN *string `min:"50" type:"string"`
  3192. }
  3193. // String returns the string representation
  3194. func (s AddTagsToResourceOutput) String() string {
  3195. return awsutil.Prettify(s)
  3196. }
  3197. // GoString returns the string representation
  3198. func (s AddTagsToResourceOutput) GoString() string {
  3199. return s.String()
  3200. }
  3201. type AddUploadBufferInput struct {
  3202. _ struct{} `type:"structure"`
  3203. DiskIds []*string `type:"list" required:"true"`
  3204. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3205. // to return a list of gateways for your account and region.
  3206. GatewayARN *string `min:"50" type:"string" required:"true"`
  3207. }
  3208. // String returns the string representation
  3209. func (s AddUploadBufferInput) String() string {
  3210. return awsutil.Prettify(s)
  3211. }
  3212. // GoString returns the string representation
  3213. func (s AddUploadBufferInput) GoString() string {
  3214. return s.String()
  3215. }
  3216. // Validate inspects the fields of the type to determine if they are valid.
  3217. func (s *AddUploadBufferInput) Validate() error {
  3218. invalidParams := request.ErrInvalidParams{Context: "AddUploadBufferInput"}
  3219. if s.DiskIds == nil {
  3220. invalidParams.Add(request.NewErrParamRequired("DiskIds"))
  3221. }
  3222. if s.GatewayARN == nil {
  3223. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  3224. }
  3225. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  3226. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  3227. }
  3228. if invalidParams.Len() > 0 {
  3229. return invalidParams
  3230. }
  3231. return nil
  3232. }
  3233. type AddUploadBufferOutput struct {
  3234. _ struct{} `type:"structure"`
  3235. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3236. // to return a list of gateways for your account and region.
  3237. GatewayARN *string `min:"50" type:"string"`
  3238. }
  3239. // String returns the string representation
  3240. func (s AddUploadBufferOutput) String() string {
  3241. return awsutil.Prettify(s)
  3242. }
  3243. // GoString returns the string representation
  3244. func (s AddUploadBufferOutput) GoString() string {
  3245. return s.String()
  3246. }
  3247. // A JSON object containing one or more of the following fields:
  3248. //
  3249. // AddWorkingStorageInput$DiskIds
  3250. type AddWorkingStorageInput struct {
  3251. _ struct{} `type:"structure"`
  3252. // An array of strings that identify disks that are to be configured as working
  3253. // storage. Each string have a minimum length of 1 and maximum length of 300.
  3254. // You can get the disk IDs from the ListLocalDisks API.
  3255. DiskIds []*string `type:"list" required:"true"`
  3256. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3257. // to return a list of gateways for your account and region.
  3258. GatewayARN *string `min:"50" type:"string" required:"true"`
  3259. }
  3260. // String returns the string representation
  3261. func (s AddWorkingStorageInput) String() string {
  3262. return awsutil.Prettify(s)
  3263. }
  3264. // GoString returns the string representation
  3265. func (s AddWorkingStorageInput) GoString() string {
  3266. return s.String()
  3267. }
  3268. // Validate inspects the fields of the type to determine if they are valid.
  3269. func (s *AddWorkingStorageInput) Validate() error {
  3270. invalidParams := request.ErrInvalidParams{Context: "AddWorkingStorageInput"}
  3271. if s.DiskIds == nil {
  3272. invalidParams.Add(request.NewErrParamRequired("DiskIds"))
  3273. }
  3274. if s.GatewayARN == nil {
  3275. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  3276. }
  3277. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  3278. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  3279. }
  3280. if invalidParams.Len() > 0 {
  3281. return invalidParams
  3282. }
  3283. return nil
  3284. }
  3285. // A JSON object containing the of the gateway for which working storage was
  3286. // configured.
  3287. type AddWorkingStorageOutput struct {
  3288. _ struct{} `type:"structure"`
  3289. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3290. // to return a list of gateways for your account and region.
  3291. GatewayARN *string `min:"50" type:"string"`
  3292. }
  3293. // String returns the string representation
  3294. func (s AddWorkingStorageOutput) String() string {
  3295. return awsutil.Prettify(s)
  3296. }
  3297. // GoString returns the string representation
  3298. func (s AddWorkingStorageOutput) GoString() string {
  3299. return s.String()
  3300. }
  3301. type CachediSCSIVolume struct {
  3302. _ struct{} `type:"structure"`
  3303. SourceSnapshotId *string `type:"string"`
  3304. VolumeARN *string `min:"50" type:"string"`
  3305. VolumeId *string `min:"12" type:"string"`
  3306. VolumeProgress *float64 `type:"double"`
  3307. VolumeSizeInBytes *int64 `type:"long"`
  3308. VolumeStatus *string `min:"3" type:"string"`
  3309. VolumeType *string `min:"3" type:"string"`
  3310. // Lists iSCSI information about a volume.
  3311. VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"`
  3312. }
  3313. // String returns the string representation
  3314. func (s CachediSCSIVolume) String() string {
  3315. return awsutil.Prettify(s)
  3316. }
  3317. // GoString returns the string representation
  3318. func (s CachediSCSIVolume) GoString() string {
  3319. return s.String()
  3320. }
  3321. // CancelArchivalInput
  3322. type CancelArchivalInput struct {
  3323. _ struct{} `type:"structure"`
  3324. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3325. // to return a list of gateways for your account and region.
  3326. GatewayARN *string `min:"50" type:"string" required:"true"`
  3327. // The Amazon Resource Name (ARN) of the virtual tape you want to cancel archiving
  3328. // for.
  3329. TapeARN *string `min:"50" type:"string" required:"true"`
  3330. }
  3331. // String returns the string representation
  3332. func (s CancelArchivalInput) String() string {
  3333. return awsutil.Prettify(s)
  3334. }
  3335. // GoString returns the string representation
  3336. func (s CancelArchivalInput) GoString() string {
  3337. return s.String()
  3338. }
  3339. // Validate inspects the fields of the type to determine if they are valid.
  3340. func (s *CancelArchivalInput) Validate() error {
  3341. invalidParams := request.ErrInvalidParams{Context: "CancelArchivalInput"}
  3342. if s.GatewayARN == nil {
  3343. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  3344. }
  3345. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  3346. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  3347. }
  3348. if s.TapeARN == nil {
  3349. invalidParams.Add(request.NewErrParamRequired("TapeARN"))
  3350. }
  3351. if s.TapeARN != nil && len(*s.TapeARN) < 50 {
  3352. invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50))
  3353. }
  3354. if invalidParams.Len() > 0 {
  3355. return invalidParams
  3356. }
  3357. return nil
  3358. }
  3359. // CancelArchivalOutput
  3360. type CancelArchivalOutput struct {
  3361. _ struct{} `type:"structure"`
  3362. // The Amazon Resource Name (ARN) of the virtual tape for which archiving was
  3363. // canceled.
  3364. TapeARN *string `min:"50" type:"string"`
  3365. }
  3366. // String returns the string representation
  3367. func (s CancelArchivalOutput) String() string {
  3368. return awsutil.Prettify(s)
  3369. }
  3370. // GoString returns the string representation
  3371. func (s CancelArchivalOutput) GoString() string {
  3372. return s.String()
  3373. }
  3374. // CancelRetrievalInput
  3375. type CancelRetrievalInput struct {
  3376. _ struct{} `type:"structure"`
  3377. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3378. // to return a list of gateways for your account and region.
  3379. GatewayARN *string `min:"50" type:"string" required:"true"`
  3380. // The Amazon Resource Name (ARN) of the virtual tape you want to cancel retrieval
  3381. // for.
  3382. TapeARN *string `min:"50" type:"string" required:"true"`
  3383. }
  3384. // String returns the string representation
  3385. func (s CancelRetrievalInput) String() string {
  3386. return awsutil.Prettify(s)
  3387. }
  3388. // GoString returns the string representation
  3389. func (s CancelRetrievalInput) GoString() string {
  3390. return s.String()
  3391. }
  3392. // Validate inspects the fields of the type to determine if they are valid.
  3393. func (s *CancelRetrievalInput) Validate() error {
  3394. invalidParams := request.ErrInvalidParams{Context: "CancelRetrievalInput"}
  3395. if s.GatewayARN == nil {
  3396. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  3397. }
  3398. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  3399. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  3400. }
  3401. if s.TapeARN == nil {
  3402. invalidParams.Add(request.NewErrParamRequired("TapeARN"))
  3403. }
  3404. if s.TapeARN != nil && len(*s.TapeARN) < 50 {
  3405. invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50))
  3406. }
  3407. if invalidParams.Len() > 0 {
  3408. return invalidParams
  3409. }
  3410. return nil
  3411. }
  3412. // CancelRetrievalOutput
  3413. type CancelRetrievalOutput struct {
  3414. _ struct{} `type:"structure"`
  3415. // The Amazon Resource Name (ARN) of the virtual tape for which retrieval was
  3416. // canceled.
  3417. TapeARN *string `min:"50" type:"string"`
  3418. }
  3419. // String returns the string representation
  3420. func (s CancelRetrievalOutput) String() string {
  3421. return awsutil.Prettify(s)
  3422. }
  3423. // GoString returns the string representation
  3424. func (s CancelRetrievalOutput) GoString() string {
  3425. return s.String()
  3426. }
  3427. // Describes Challenge-Handshake Authentication Protocol (CHAP) information
  3428. // that supports authentication between your gateway and iSCSI initiators.
  3429. type ChapInfo struct {
  3430. _ struct{} `type:"structure"`
  3431. // The iSCSI initiator that connects to the target.
  3432. InitiatorName *string `min:"1" type:"string"`
  3433. // The secret key that the initiator (for example, the Windows client) must
  3434. // provide to participate in mutual CHAP with the target.
  3435. SecretToAuthenticateInitiator *string `min:"1" type:"string"`
  3436. // The secret key that the target must provide to participate in mutual CHAP
  3437. // with the initiator (e.g. Windows client).
  3438. SecretToAuthenticateTarget *string `min:"1" type:"string"`
  3439. // The Amazon Resource Name (ARN) of the volume.
  3440. //
  3441. // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens
  3442. // (-).
  3443. TargetARN *string `min:"50" type:"string"`
  3444. }
  3445. // String returns the string representation
  3446. func (s ChapInfo) String() string {
  3447. return awsutil.Prettify(s)
  3448. }
  3449. // GoString returns the string representation
  3450. func (s ChapInfo) GoString() string {
  3451. return s.String()
  3452. }
  3453. type CreateCachediSCSIVolumeInput struct {
  3454. _ struct{} `type:"structure"`
  3455. ClientToken *string `min:"5" type:"string" required:"true"`
  3456. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3457. // to return a list of gateways for your account and region.
  3458. GatewayARN *string `min:"50" type:"string" required:"true"`
  3459. NetworkInterfaceId *string `type:"string" required:"true"`
  3460. SnapshotId *string `type:"string"`
  3461. TargetName *string `min:"1" type:"string" required:"true"`
  3462. VolumeSizeInBytes *int64 `type:"long" required:"true"`
  3463. }
  3464. // String returns the string representation
  3465. func (s CreateCachediSCSIVolumeInput) String() string {
  3466. return awsutil.Prettify(s)
  3467. }
  3468. // GoString returns the string representation
  3469. func (s CreateCachediSCSIVolumeInput) GoString() string {
  3470. return s.String()
  3471. }
  3472. // Validate inspects the fields of the type to determine if they are valid.
  3473. func (s *CreateCachediSCSIVolumeInput) Validate() error {
  3474. invalidParams := request.ErrInvalidParams{Context: "CreateCachediSCSIVolumeInput"}
  3475. if s.ClientToken == nil {
  3476. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  3477. }
  3478. if s.ClientToken != nil && len(*s.ClientToken) < 5 {
  3479. invalidParams.Add(request.NewErrParamMinLen("ClientToken", 5))
  3480. }
  3481. if s.GatewayARN == nil {
  3482. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  3483. }
  3484. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  3485. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  3486. }
  3487. if s.NetworkInterfaceId == nil {
  3488. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  3489. }
  3490. if s.TargetName == nil {
  3491. invalidParams.Add(request.NewErrParamRequired("TargetName"))
  3492. }
  3493. if s.TargetName != nil && len(*s.TargetName) < 1 {
  3494. invalidParams.Add(request.NewErrParamMinLen("TargetName", 1))
  3495. }
  3496. if s.VolumeSizeInBytes == nil {
  3497. invalidParams.Add(request.NewErrParamRequired("VolumeSizeInBytes"))
  3498. }
  3499. if invalidParams.Len() > 0 {
  3500. return invalidParams
  3501. }
  3502. return nil
  3503. }
  3504. type CreateCachediSCSIVolumeOutput struct {
  3505. _ struct{} `type:"structure"`
  3506. TargetARN *string `min:"50" type:"string"`
  3507. VolumeARN *string `min:"50" type:"string"`
  3508. }
  3509. // String returns the string representation
  3510. func (s CreateCachediSCSIVolumeOutput) String() string {
  3511. return awsutil.Prettify(s)
  3512. }
  3513. // GoString returns the string representation
  3514. func (s CreateCachediSCSIVolumeOutput) GoString() string {
  3515. return s.String()
  3516. }
  3517. type CreateSnapshotFromVolumeRecoveryPointInput struct {
  3518. _ struct{} `type:"structure"`
  3519. SnapshotDescription *string `min:"1" type:"string" required:"true"`
  3520. VolumeARN *string `min:"50" type:"string" required:"true"`
  3521. }
  3522. // String returns the string representation
  3523. func (s CreateSnapshotFromVolumeRecoveryPointInput) String() string {
  3524. return awsutil.Prettify(s)
  3525. }
  3526. // GoString returns the string representation
  3527. func (s CreateSnapshotFromVolumeRecoveryPointInput) GoString() string {
  3528. return s.String()
  3529. }
  3530. // Validate inspects the fields of the type to determine if they are valid.
  3531. func (s *CreateSnapshotFromVolumeRecoveryPointInput) Validate() error {
  3532. invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotFromVolumeRecoveryPointInput"}
  3533. if s.SnapshotDescription == nil {
  3534. invalidParams.Add(request.NewErrParamRequired("SnapshotDescription"))
  3535. }
  3536. if s.SnapshotDescription != nil && len(*s.SnapshotDescription) < 1 {
  3537. invalidParams.Add(request.NewErrParamMinLen("SnapshotDescription", 1))
  3538. }
  3539. if s.VolumeARN == nil {
  3540. invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
  3541. }
  3542. if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
  3543. invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
  3544. }
  3545. if invalidParams.Len() > 0 {
  3546. return invalidParams
  3547. }
  3548. return nil
  3549. }
  3550. type CreateSnapshotFromVolumeRecoveryPointOutput struct {
  3551. _ struct{} `type:"structure"`
  3552. SnapshotId *string `type:"string"`
  3553. VolumeARN *string `min:"50" type:"string"`
  3554. VolumeRecoveryPointTime *string `type:"string"`
  3555. }
  3556. // String returns the string representation
  3557. func (s CreateSnapshotFromVolumeRecoveryPointOutput) String() string {
  3558. return awsutil.Prettify(s)
  3559. }
  3560. // GoString returns the string representation
  3561. func (s CreateSnapshotFromVolumeRecoveryPointOutput) GoString() string {
  3562. return s.String()
  3563. }
  3564. // A JSON object containing one or more of the following fields:
  3565. //
  3566. // CreateSnapshotInput$SnapshotDescription
  3567. //
  3568. // CreateSnapshotInput$VolumeARN
  3569. type CreateSnapshotInput struct {
  3570. _ struct{} `type:"structure"`
  3571. // Textual description of the snapshot that appears in the Amazon EC2 console,
  3572. // Elastic Block Store snapshots panel in the Description field, and in the
  3573. // AWS Storage Gateway snapshot Details pane, Description field
  3574. SnapshotDescription *string `min:"1" type:"string" required:"true"`
  3575. // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
  3576. // to return a list of gateway volumes.
  3577. VolumeARN *string `min:"50" type:"string" required:"true"`
  3578. }
  3579. // String returns the string representation
  3580. func (s CreateSnapshotInput) String() string {
  3581. return awsutil.Prettify(s)
  3582. }
  3583. // GoString returns the string representation
  3584. func (s CreateSnapshotInput) GoString() string {
  3585. return s.String()
  3586. }
  3587. // Validate inspects the fields of the type to determine if they are valid.
  3588. func (s *CreateSnapshotInput) Validate() error {
  3589. invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"}
  3590. if s.SnapshotDescription == nil {
  3591. invalidParams.Add(request.NewErrParamRequired("SnapshotDescription"))
  3592. }
  3593. if s.SnapshotDescription != nil && len(*s.SnapshotDescription) < 1 {
  3594. invalidParams.Add(request.NewErrParamMinLen("SnapshotDescription", 1))
  3595. }
  3596. if s.VolumeARN == nil {
  3597. invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
  3598. }
  3599. if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
  3600. invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
  3601. }
  3602. if invalidParams.Len() > 0 {
  3603. return invalidParams
  3604. }
  3605. return nil
  3606. }
  3607. // A JSON object containing the following fields:
  3608. type CreateSnapshotOutput struct {
  3609. _ struct{} `type:"structure"`
  3610. // The snapshot ID that is used to refer to the snapshot in future operations
  3611. // such as describing snapshots (Amazon Elastic Compute Cloud API DescribeSnapshots)
  3612. // or creating a volume from a snapshot (CreateStorediSCSIVolume).
  3613. SnapshotId *string `type:"string"`
  3614. // The Amazon Resource Name (ARN) of the volume of which the snapshot was taken.
  3615. VolumeARN *string `min:"50" type:"string"`
  3616. }
  3617. // String returns the string representation
  3618. func (s CreateSnapshotOutput) String() string {
  3619. return awsutil.Prettify(s)
  3620. }
  3621. // GoString returns the string representation
  3622. func (s CreateSnapshotOutput) GoString() string {
  3623. return s.String()
  3624. }
  3625. // A JSON object containing one or more of the following fields:
  3626. //
  3627. // CreateStorediSCSIVolumeInput$DiskId
  3628. //
  3629. // CreateStorediSCSIVolumeInput$NetworkInterfaceId
  3630. //
  3631. // CreateStorediSCSIVolumeInput$PreserveExistingData
  3632. //
  3633. // CreateStorediSCSIVolumeInput$SnapshotId
  3634. //
  3635. // CreateStorediSCSIVolumeInput$TargetName
  3636. type CreateStorediSCSIVolumeInput struct {
  3637. _ struct{} `type:"structure"`
  3638. // The unique identifier for the gateway local disk that is configured as a
  3639. // stored volume. Use ListLocalDisks (http://docs.aws.amazon.com/storagegateway/latest/userguide/API_ListLocalDisks.html)
  3640. // to list disk IDs for a gateway.
  3641. DiskId *string `min:"1" type:"string" required:"true"`
  3642. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3643. // to return a list of gateways for your account and region.
  3644. GatewayARN *string `min:"50" type:"string" required:"true"`
  3645. // The network interface of the gateway on which to expose the iSCSI target.
  3646. // Only IPv4 addresses are accepted. Use DescribeGatewayInformation to get a
  3647. // list of the network interfaces available on a gateway.
  3648. //
  3649. // Valid Values: A valid IP address.
  3650. NetworkInterfaceId *string `type:"string" required:"true"`
  3651. // Specify this field as true if you want to preserve the data on the local
  3652. // disk. Otherwise, specifying this field as false creates an empty volume.
  3653. //
  3654. // Valid Values: true, false
  3655. PreserveExistingData *bool `type:"boolean" required:"true"`
  3656. // The snapshot ID (e.g. "snap-1122aabb") of the snapshot to restore as the
  3657. // new stored volume. Specify this field if you want to create the iSCSI storage
  3658. // volume from a snapshot otherwise do not include this field. To list snapshots
  3659. // for your account use DescribeSnapshots (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSnapshots.html)
  3660. // in the Amazon Elastic Compute Cloud API Reference.
  3661. SnapshotId *string `type:"string"`
  3662. // The name of the iSCSI target used by initiators to connect to the target
  3663. // and as a suffix for the target ARN. For example, specifying TargetName as
  3664. // myvolume results in the target ARN of arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume.
  3665. // The target name must be unique across all volumes of a gateway.
  3666. TargetName *string `min:"1" type:"string" required:"true"`
  3667. }
  3668. // String returns the string representation
  3669. func (s CreateStorediSCSIVolumeInput) String() string {
  3670. return awsutil.Prettify(s)
  3671. }
  3672. // GoString returns the string representation
  3673. func (s CreateStorediSCSIVolumeInput) GoString() string {
  3674. return s.String()
  3675. }
  3676. // Validate inspects the fields of the type to determine if they are valid.
  3677. func (s *CreateStorediSCSIVolumeInput) Validate() error {
  3678. invalidParams := request.ErrInvalidParams{Context: "CreateStorediSCSIVolumeInput"}
  3679. if s.DiskId == nil {
  3680. invalidParams.Add(request.NewErrParamRequired("DiskId"))
  3681. }
  3682. if s.DiskId != nil && len(*s.DiskId) < 1 {
  3683. invalidParams.Add(request.NewErrParamMinLen("DiskId", 1))
  3684. }
  3685. if s.GatewayARN == nil {
  3686. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  3687. }
  3688. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  3689. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  3690. }
  3691. if s.NetworkInterfaceId == nil {
  3692. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  3693. }
  3694. if s.PreserveExistingData == nil {
  3695. invalidParams.Add(request.NewErrParamRequired("PreserveExistingData"))
  3696. }
  3697. if s.TargetName == nil {
  3698. invalidParams.Add(request.NewErrParamRequired("TargetName"))
  3699. }
  3700. if s.TargetName != nil && len(*s.TargetName) < 1 {
  3701. invalidParams.Add(request.NewErrParamMinLen("TargetName", 1))
  3702. }
  3703. if invalidParams.Len() > 0 {
  3704. return invalidParams
  3705. }
  3706. return nil
  3707. }
  3708. // A JSON object containing the following fields:
  3709. type CreateStorediSCSIVolumeOutput struct {
  3710. _ struct{} `type:"structure"`
  3711. // he Amazon Resource Name (ARN) of the volume target that includes the iSCSI
  3712. // name that initiators can use to connect to the target.
  3713. TargetARN *string `min:"50" type:"string"`
  3714. // The Amazon Resource Name (ARN) of the configured volume.
  3715. VolumeARN *string `min:"50" type:"string"`
  3716. // The size of the volume in bytes.
  3717. VolumeSizeInBytes *int64 `type:"long"`
  3718. }
  3719. // String returns the string representation
  3720. func (s CreateStorediSCSIVolumeOutput) String() string {
  3721. return awsutil.Prettify(s)
  3722. }
  3723. // GoString returns the string representation
  3724. func (s CreateStorediSCSIVolumeOutput) GoString() string {
  3725. return s.String()
  3726. }
  3727. // CreateTapeWithBarcodeInput
  3728. type CreateTapeWithBarcodeInput struct {
  3729. _ struct{} `type:"structure"`
  3730. // The unique Amazon Resource Name (ARN) that represents the gateway to associate
  3731. // the virtual tape with. Use the ListGateways operation to return a list of
  3732. // gateways for your account and region.
  3733. GatewayARN *string `min:"50" type:"string" required:"true"`
  3734. // The barcode that you want to assign to the tape.
  3735. TapeBarcode *string `min:"7" type:"string" required:"true"`
  3736. // The size, in bytes, of the virtual tape that you want to create.
  3737. //
  3738. // The size must be aligned by gigabyte (1024*1024*1024 byte).
  3739. TapeSizeInBytes *int64 `type:"long" required:"true"`
  3740. }
  3741. // String returns the string representation
  3742. func (s CreateTapeWithBarcodeInput) String() string {
  3743. return awsutil.Prettify(s)
  3744. }
  3745. // GoString returns the string representation
  3746. func (s CreateTapeWithBarcodeInput) GoString() string {
  3747. return s.String()
  3748. }
  3749. // Validate inspects the fields of the type to determine if they are valid.
  3750. func (s *CreateTapeWithBarcodeInput) Validate() error {
  3751. invalidParams := request.ErrInvalidParams{Context: "CreateTapeWithBarcodeInput"}
  3752. if s.GatewayARN == nil {
  3753. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  3754. }
  3755. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  3756. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  3757. }
  3758. if s.TapeBarcode == nil {
  3759. invalidParams.Add(request.NewErrParamRequired("TapeBarcode"))
  3760. }
  3761. if s.TapeBarcode != nil && len(*s.TapeBarcode) < 7 {
  3762. invalidParams.Add(request.NewErrParamMinLen("TapeBarcode", 7))
  3763. }
  3764. if s.TapeSizeInBytes == nil {
  3765. invalidParams.Add(request.NewErrParamRequired("TapeSizeInBytes"))
  3766. }
  3767. if invalidParams.Len() > 0 {
  3768. return invalidParams
  3769. }
  3770. return nil
  3771. }
  3772. // CreateTapeOutput
  3773. type CreateTapeWithBarcodeOutput struct {
  3774. _ struct{} `type:"structure"`
  3775. // A unique Amazon Resource Name (ARN) that represents the virtual tape that
  3776. // was created.
  3777. TapeARN *string `min:"50" type:"string"`
  3778. }
  3779. // String returns the string representation
  3780. func (s CreateTapeWithBarcodeOutput) String() string {
  3781. return awsutil.Prettify(s)
  3782. }
  3783. // GoString returns the string representation
  3784. func (s CreateTapeWithBarcodeOutput) GoString() string {
  3785. return s.String()
  3786. }
  3787. // CreateTapesInput
  3788. type CreateTapesInput struct {
  3789. _ struct{} `type:"structure"`
  3790. // A unique identifier that you use to retry a request. If you retry a request,
  3791. // use the same ClientToken you specified in the initial request.
  3792. //
  3793. // Using the same ClientToken prevents creating the tape multiple times.
  3794. ClientToken *string `min:"5" type:"string" required:"true"`
  3795. // The unique Amazon Resource Name (ARN) that represents the gateway to associate
  3796. // the virtual tapes with. Use the ListGateways operation to return a list of
  3797. // gateways for your account and region.
  3798. GatewayARN *string `min:"50" type:"string" required:"true"`
  3799. // The number of virtual tapes that you want to create.
  3800. NumTapesToCreate *int64 `min:"1" type:"integer" required:"true"`
  3801. // A prefix that you append to the barcode of the virtual tape you are creating.
  3802. // This prefix makes the barcode unique.
  3803. //
  3804. // The prefix must be 1 to 4 characters in length and must be one of the uppercase
  3805. // letters from A to Z.
  3806. TapeBarcodePrefix *string `min:"1" type:"string" required:"true"`
  3807. // The size, in bytes, of the virtual tapes that you want to create.
  3808. //
  3809. // The size must be aligned by gigabyte (1024*1024*1024 byte).
  3810. TapeSizeInBytes *int64 `type:"long" required:"true"`
  3811. }
  3812. // String returns the string representation
  3813. func (s CreateTapesInput) String() string {
  3814. return awsutil.Prettify(s)
  3815. }
  3816. // GoString returns the string representation
  3817. func (s CreateTapesInput) GoString() string {
  3818. return s.String()
  3819. }
  3820. // Validate inspects the fields of the type to determine if they are valid.
  3821. func (s *CreateTapesInput) Validate() error {
  3822. invalidParams := request.ErrInvalidParams{Context: "CreateTapesInput"}
  3823. if s.ClientToken == nil {
  3824. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  3825. }
  3826. if s.ClientToken != nil && len(*s.ClientToken) < 5 {
  3827. invalidParams.Add(request.NewErrParamMinLen("ClientToken", 5))
  3828. }
  3829. if s.GatewayARN == nil {
  3830. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  3831. }
  3832. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  3833. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  3834. }
  3835. if s.NumTapesToCreate == nil {
  3836. invalidParams.Add(request.NewErrParamRequired("NumTapesToCreate"))
  3837. }
  3838. if s.NumTapesToCreate != nil && *s.NumTapesToCreate < 1 {
  3839. invalidParams.Add(request.NewErrParamMinValue("NumTapesToCreate", 1))
  3840. }
  3841. if s.TapeBarcodePrefix == nil {
  3842. invalidParams.Add(request.NewErrParamRequired("TapeBarcodePrefix"))
  3843. }
  3844. if s.TapeBarcodePrefix != nil && len(*s.TapeBarcodePrefix) < 1 {
  3845. invalidParams.Add(request.NewErrParamMinLen("TapeBarcodePrefix", 1))
  3846. }
  3847. if s.TapeSizeInBytes == nil {
  3848. invalidParams.Add(request.NewErrParamRequired("TapeSizeInBytes"))
  3849. }
  3850. if invalidParams.Len() > 0 {
  3851. return invalidParams
  3852. }
  3853. return nil
  3854. }
  3855. // CreateTapeOutput
  3856. type CreateTapesOutput struct {
  3857. _ struct{} `type:"structure"`
  3858. // A list of unique Amazon Resource Names (ARNs) that represents the virtual
  3859. // tapes that were created.
  3860. TapeARNs []*string `type:"list"`
  3861. }
  3862. // String returns the string representation
  3863. func (s CreateTapesOutput) String() string {
  3864. return awsutil.Prettify(s)
  3865. }
  3866. // GoString returns the string representation
  3867. func (s CreateTapesOutput) GoString() string {
  3868. return s.String()
  3869. }
  3870. type DeleteBandwidthRateLimitInput struct {
  3871. _ struct{} `type:"structure"`
  3872. BandwidthType *string `min:"3" type:"string" required:"true"`
  3873. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3874. // to return a list of gateways for your account and region.
  3875. GatewayARN *string `min:"50" type:"string" required:"true"`
  3876. }
  3877. // String returns the string representation
  3878. func (s DeleteBandwidthRateLimitInput) String() string {
  3879. return awsutil.Prettify(s)
  3880. }
  3881. // GoString returns the string representation
  3882. func (s DeleteBandwidthRateLimitInput) GoString() string {
  3883. return s.String()
  3884. }
  3885. // Validate inspects the fields of the type to determine if they are valid.
  3886. func (s *DeleteBandwidthRateLimitInput) Validate() error {
  3887. invalidParams := request.ErrInvalidParams{Context: "DeleteBandwidthRateLimitInput"}
  3888. if s.BandwidthType == nil {
  3889. invalidParams.Add(request.NewErrParamRequired("BandwidthType"))
  3890. }
  3891. if s.BandwidthType != nil && len(*s.BandwidthType) < 3 {
  3892. invalidParams.Add(request.NewErrParamMinLen("BandwidthType", 3))
  3893. }
  3894. if s.GatewayARN == nil {
  3895. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  3896. }
  3897. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  3898. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  3899. }
  3900. if invalidParams.Len() > 0 {
  3901. return invalidParams
  3902. }
  3903. return nil
  3904. }
  3905. // A JSON object containing the of the gateway whose bandwidth rate information
  3906. // was deleted.
  3907. type DeleteBandwidthRateLimitOutput struct {
  3908. _ struct{} `type:"structure"`
  3909. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3910. // to return a list of gateways for your account and region.
  3911. GatewayARN *string `min:"50" type:"string"`
  3912. }
  3913. // String returns the string representation
  3914. func (s DeleteBandwidthRateLimitOutput) String() string {
  3915. return awsutil.Prettify(s)
  3916. }
  3917. // GoString returns the string representation
  3918. func (s DeleteBandwidthRateLimitOutput) GoString() string {
  3919. return s.String()
  3920. }
  3921. // A JSON object containing one or more of the following fields:
  3922. //
  3923. // DeleteChapCredentialsInput$InitiatorName
  3924. //
  3925. // DeleteChapCredentialsInput$TargetARN
  3926. type DeleteChapCredentialsInput struct {
  3927. _ struct{} `type:"structure"`
  3928. // The iSCSI initiator that connects to the target.
  3929. InitiatorName *string `min:"1" type:"string" required:"true"`
  3930. // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes
  3931. // operation to return to retrieve the TargetARN for specified VolumeARN.
  3932. TargetARN *string `min:"50" type:"string" required:"true"`
  3933. }
  3934. // String returns the string representation
  3935. func (s DeleteChapCredentialsInput) String() string {
  3936. return awsutil.Prettify(s)
  3937. }
  3938. // GoString returns the string representation
  3939. func (s DeleteChapCredentialsInput) GoString() string {
  3940. return s.String()
  3941. }
  3942. // Validate inspects the fields of the type to determine if they are valid.
  3943. func (s *DeleteChapCredentialsInput) Validate() error {
  3944. invalidParams := request.ErrInvalidParams{Context: "DeleteChapCredentialsInput"}
  3945. if s.InitiatorName == nil {
  3946. invalidParams.Add(request.NewErrParamRequired("InitiatorName"))
  3947. }
  3948. if s.InitiatorName != nil && len(*s.InitiatorName) < 1 {
  3949. invalidParams.Add(request.NewErrParamMinLen("InitiatorName", 1))
  3950. }
  3951. if s.TargetARN == nil {
  3952. invalidParams.Add(request.NewErrParamRequired("TargetARN"))
  3953. }
  3954. if s.TargetARN != nil && len(*s.TargetARN) < 50 {
  3955. invalidParams.Add(request.NewErrParamMinLen("TargetARN", 50))
  3956. }
  3957. if invalidParams.Len() > 0 {
  3958. return invalidParams
  3959. }
  3960. return nil
  3961. }
  3962. // A JSON object containing the following fields:
  3963. type DeleteChapCredentialsOutput struct {
  3964. _ struct{} `type:"structure"`
  3965. // The iSCSI initiator that connects to the target.
  3966. InitiatorName *string `min:"1" type:"string"`
  3967. // The Amazon Resource Name (ARN) of the target.
  3968. TargetARN *string `min:"50" type:"string"`
  3969. }
  3970. // String returns the string representation
  3971. func (s DeleteChapCredentialsOutput) String() string {
  3972. return awsutil.Prettify(s)
  3973. }
  3974. // GoString returns the string representation
  3975. func (s DeleteChapCredentialsOutput) GoString() string {
  3976. return s.String()
  3977. }
  3978. // A JSON object containing the id of the gateway to delete.
  3979. type DeleteGatewayInput struct {
  3980. _ struct{} `type:"structure"`
  3981. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3982. // to return a list of gateways for your account and region.
  3983. GatewayARN *string `min:"50" type:"string" required:"true"`
  3984. }
  3985. // String returns the string representation
  3986. func (s DeleteGatewayInput) String() string {
  3987. return awsutil.Prettify(s)
  3988. }
  3989. // GoString returns the string representation
  3990. func (s DeleteGatewayInput) GoString() string {
  3991. return s.String()
  3992. }
  3993. // Validate inspects the fields of the type to determine if they are valid.
  3994. func (s *DeleteGatewayInput) Validate() error {
  3995. invalidParams := request.ErrInvalidParams{Context: "DeleteGatewayInput"}
  3996. if s.GatewayARN == nil {
  3997. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  3998. }
  3999. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  4000. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  4001. }
  4002. if invalidParams.Len() > 0 {
  4003. return invalidParams
  4004. }
  4005. return nil
  4006. }
  4007. // A JSON object containing the id of the deleted gateway.
  4008. type DeleteGatewayOutput struct {
  4009. _ struct{} `type:"structure"`
  4010. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4011. // to return a list of gateways for your account and region.
  4012. GatewayARN *string `min:"50" type:"string"`
  4013. }
  4014. // String returns the string representation
  4015. func (s DeleteGatewayOutput) String() string {
  4016. return awsutil.Prettify(s)
  4017. }
  4018. // GoString returns the string representation
  4019. func (s DeleteGatewayOutput) GoString() string {
  4020. return s.String()
  4021. }
  4022. type DeleteSnapshotScheduleInput struct {
  4023. _ struct{} `type:"structure"`
  4024. VolumeARN *string `min:"50" type:"string" required:"true"`
  4025. }
  4026. // String returns the string representation
  4027. func (s DeleteSnapshotScheduleInput) String() string {
  4028. return awsutil.Prettify(s)
  4029. }
  4030. // GoString returns the string representation
  4031. func (s DeleteSnapshotScheduleInput) GoString() string {
  4032. return s.String()
  4033. }
  4034. // Validate inspects the fields of the type to determine if they are valid.
  4035. func (s *DeleteSnapshotScheduleInput) Validate() error {
  4036. invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotScheduleInput"}
  4037. if s.VolumeARN == nil {
  4038. invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
  4039. }
  4040. if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
  4041. invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
  4042. }
  4043. if invalidParams.Len() > 0 {
  4044. return invalidParams
  4045. }
  4046. return nil
  4047. }
  4048. type DeleteSnapshotScheduleOutput struct {
  4049. _ struct{} `type:"structure"`
  4050. VolumeARN *string `min:"50" type:"string"`
  4051. }
  4052. // String returns the string representation
  4053. func (s DeleteSnapshotScheduleOutput) String() string {
  4054. return awsutil.Prettify(s)
  4055. }
  4056. // GoString returns the string representation
  4057. func (s DeleteSnapshotScheduleOutput) GoString() string {
  4058. return s.String()
  4059. }
  4060. // DeleteTapeArchiveInput
  4061. type DeleteTapeArchiveInput struct {
  4062. _ struct{} `type:"structure"`
  4063. // The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual
  4064. // tape shelf (VTS).
  4065. TapeARN *string `min:"50" type:"string" required:"true"`
  4066. }
  4067. // String returns the string representation
  4068. func (s DeleteTapeArchiveInput) String() string {
  4069. return awsutil.Prettify(s)
  4070. }
  4071. // GoString returns the string representation
  4072. func (s DeleteTapeArchiveInput) GoString() string {
  4073. return s.String()
  4074. }
  4075. // Validate inspects the fields of the type to determine if they are valid.
  4076. func (s *DeleteTapeArchiveInput) Validate() error {
  4077. invalidParams := request.ErrInvalidParams{Context: "DeleteTapeArchiveInput"}
  4078. if s.TapeARN == nil {
  4079. invalidParams.Add(request.NewErrParamRequired("TapeARN"))
  4080. }
  4081. if s.TapeARN != nil && len(*s.TapeARN) < 50 {
  4082. invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50))
  4083. }
  4084. if invalidParams.Len() > 0 {
  4085. return invalidParams
  4086. }
  4087. return nil
  4088. }
  4089. // DeleteTapeArchiveOutput
  4090. type DeleteTapeArchiveOutput struct {
  4091. _ struct{} `type:"structure"`
  4092. // The Amazon Resource Name (ARN) of the virtual tape that was deleted from
  4093. // the virtual tape shelf (VTS).
  4094. TapeARN *string `min:"50" type:"string"`
  4095. }
  4096. // String returns the string representation
  4097. func (s DeleteTapeArchiveOutput) String() string {
  4098. return awsutil.Prettify(s)
  4099. }
  4100. // GoString returns the string representation
  4101. func (s DeleteTapeArchiveOutput) GoString() string {
  4102. return s.String()
  4103. }
  4104. // DeleteTapeInput
  4105. type DeleteTapeInput struct {
  4106. _ struct{} `type:"structure"`
  4107. // The unique Amazon Resource Name (ARN) of the gateway that the virtual tape
  4108. // to delete is associated with. Use the ListGateways operation to return a
  4109. // list of gateways for your account and region.
  4110. GatewayARN *string `min:"50" type:"string" required:"true"`
  4111. // The Amazon Resource Name (ARN) of the virtual tape to delete.
  4112. TapeARN *string `min:"50" type:"string" required:"true"`
  4113. }
  4114. // String returns the string representation
  4115. func (s DeleteTapeInput) String() string {
  4116. return awsutil.Prettify(s)
  4117. }
  4118. // GoString returns the string representation
  4119. func (s DeleteTapeInput) GoString() string {
  4120. return s.String()
  4121. }
  4122. // Validate inspects the fields of the type to determine if they are valid.
  4123. func (s *DeleteTapeInput) Validate() error {
  4124. invalidParams := request.ErrInvalidParams{Context: "DeleteTapeInput"}
  4125. if s.GatewayARN == nil {
  4126. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  4127. }
  4128. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  4129. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  4130. }
  4131. if s.TapeARN == nil {
  4132. invalidParams.Add(request.NewErrParamRequired("TapeARN"))
  4133. }
  4134. if s.TapeARN != nil && len(*s.TapeARN) < 50 {
  4135. invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50))
  4136. }
  4137. if invalidParams.Len() > 0 {
  4138. return invalidParams
  4139. }
  4140. return nil
  4141. }
  4142. // DeleteTapeOutput
  4143. type DeleteTapeOutput struct {
  4144. _ struct{} `type:"structure"`
  4145. // The Amazon Resource Name (ARN) of the deleted virtual tape.
  4146. TapeARN *string `min:"50" type:"string"`
  4147. }
  4148. // String returns the string representation
  4149. func (s DeleteTapeOutput) String() string {
  4150. return awsutil.Prettify(s)
  4151. }
  4152. // GoString returns the string representation
  4153. func (s DeleteTapeOutput) GoString() string {
  4154. return s.String()
  4155. }
  4156. // A JSON object containing the DeleteVolumeInput$VolumeARN to delete.
  4157. type DeleteVolumeInput struct {
  4158. _ struct{} `type:"structure"`
  4159. // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
  4160. // to return a list of gateway volumes.
  4161. VolumeARN *string `min:"50" type:"string" required:"true"`
  4162. }
  4163. // String returns the string representation
  4164. func (s DeleteVolumeInput) String() string {
  4165. return awsutil.Prettify(s)
  4166. }
  4167. // GoString returns the string representation
  4168. func (s DeleteVolumeInput) GoString() string {
  4169. return s.String()
  4170. }
  4171. // Validate inspects the fields of the type to determine if they are valid.
  4172. func (s *DeleteVolumeInput) Validate() error {
  4173. invalidParams := request.ErrInvalidParams{Context: "DeleteVolumeInput"}
  4174. if s.VolumeARN == nil {
  4175. invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
  4176. }
  4177. if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
  4178. invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
  4179. }
  4180. if invalidParams.Len() > 0 {
  4181. return invalidParams
  4182. }
  4183. return nil
  4184. }
  4185. // A JSON object containing the of the storage volume that was deleted
  4186. type DeleteVolumeOutput struct {
  4187. _ struct{} `type:"structure"`
  4188. // The Amazon Resource Name (ARN) of the storage volume that was deleted. It
  4189. // is the same ARN you provided in the request.
  4190. VolumeARN *string `min:"50" type:"string"`
  4191. }
  4192. // String returns the string representation
  4193. func (s DeleteVolumeOutput) String() string {
  4194. return awsutil.Prettify(s)
  4195. }
  4196. // GoString returns the string representation
  4197. func (s DeleteVolumeOutput) GoString() string {
  4198. return s.String()
  4199. }
  4200. // A JSON object containing the of the gateway.
  4201. type DescribeBandwidthRateLimitInput struct {
  4202. _ struct{} `type:"structure"`
  4203. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4204. // to return a list of gateways for your account and region.
  4205. GatewayARN *string `min:"50" type:"string" required:"true"`
  4206. }
  4207. // String returns the string representation
  4208. func (s DescribeBandwidthRateLimitInput) String() string {
  4209. return awsutil.Prettify(s)
  4210. }
  4211. // GoString returns the string representation
  4212. func (s DescribeBandwidthRateLimitInput) GoString() string {
  4213. return s.String()
  4214. }
  4215. // Validate inspects the fields of the type to determine if they are valid.
  4216. func (s *DescribeBandwidthRateLimitInput) Validate() error {
  4217. invalidParams := request.ErrInvalidParams{Context: "DescribeBandwidthRateLimitInput"}
  4218. if s.GatewayARN == nil {
  4219. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  4220. }
  4221. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  4222. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  4223. }
  4224. if invalidParams.Len() > 0 {
  4225. return invalidParams
  4226. }
  4227. return nil
  4228. }
  4229. // A JSON object containing the following fields:
  4230. type DescribeBandwidthRateLimitOutput struct {
  4231. _ struct{} `type:"structure"`
  4232. // The average download bandwidth rate limit in bits per second. This field
  4233. // does not appear in the response if the download rate limit is not set.
  4234. AverageDownloadRateLimitInBitsPerSec *int64 `min:"102400" type:"long"`
  4235. // The average upload bandwidth rate limit in bits per second. This field does
  4236. // not appear in the response if the upload rate limit is not set.
  4237. AverageUploadRateLimitInBitsPerSec *int64 `min:"51200" type:"long"`
  4238. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4239. // to return a list of gateways for your account and region.
  4240. GatewayARN *string `min:"50" type:"string"`
  4241. }
  4242. // String returns the string representation
  4243. func (s DescribeBandwidthRateLimitOutput) String() string {
  4244. return awsutil.Prettify(s)
  4245. }
  4246. // GoString returns the string representation
  4247. func (s DescribeBandwidthRateLimitOutput) GoString() string {
  4248. return s.String()
  4249. }
  4250. type DescribeCacheInput struct {
  4251. _ struct{} `type:"structure"`
  4252. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4253. // to return a list of gateways for your account and region.
  4254. GatewayARN *string `min:"50" type:"string" required:"true"`
  4255. }
  4256. // String returns the string representation
  4257. func (s DescribeCacheInput) String() string {
  4258. return awsutil.Prettify(s)
  4259. }
  4260. // GoString returns the string representation
  4261. func (s DescribeCacheInput) GoString() string {
  4262. return s.String()
  4263. }
  4264. // Validate inspects the fields of the type to determine if they are valid.
  4265. func (s *DescribeCacheInput) Validate() error {
  4266. invalidParams := request.ErrInvalidParams{Context: "DescribeCacheInput"}
  4267. if s.GatewayARN == nil {
  4268. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  4269. }
  4270. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  4271. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  4272. }
  4273. if invalidParams.Len() > 0 {
  4274. return invalidParams
  4275. }
  4276. return nil
  4277. }
  4278. type DescribeCacheOutput struct {
  4279. _ struct{} `type:"structure"`
  4280. CacheAllocatedInBytes *int64 `type:"long"`
  4281. CacheDirtyPercentage *float64 `type:"double"`
  4282. CacheHitPercentage *float64 `type:"double"`
  4283. CacheMissPercentage *float64 `type:"double"`
  4284. CacheUsedPercentage *float64 `type:"double"`
  4285. DiskIds []*string `type:"list"`
  4286. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4287. // to return a list of gateways for your account and region.
  4288. GatewayARN *string `min:"50" type:"string"`
  4289. }
  4290. // String returns the string representation
  4291. func (s DescribeCacheOutput) String() string {
  4292. return awsutil.Prettify(s)
  4293. }
  4294. // GoString returns the string representation
  4295. func (s DescribeCacheOutput) GoString() string {
  4296. return s.String()
  4297. }
  4298. type DescribeCachediSCSIVolumesInput struct {
  4299. _ struct{} `type:"structure"`
  4300. VolumeARNs []*string `type:"list" required:"true"`
  4301. }
  4302. // String returns the string representation
  4303. func (s DescribeCachediSCSIVolumesInput) String() string {
  4304. return awsutil.Prettify(s)
  4305. }
  4306. // GoString returns the string representation
  4307. func (s DescribeCachediSCSIVolumesInput) GoString() string {
  4308. return s.String()
  4309. }
  4310. // Validate inspects the fields of the type to determine if they are valid.
  4311. func (s *DescribeCachediSCSIVolumesInput) Validate() error {
  4312. invalidParams := request.ErrInvalidParams{Context: "DescribeCachediSCSIVolumesInput"}
  4313. if s.VolumeARNs == nil {
  4314. invalidParams.Add(request.NewErrParamRequired("VolumeARNs"))
  4315. }
  4316. if invalidParams.Len() > 0 {
  4317. return invalidParams
  4318. }
  4319. return nil
  4320. }
  4321. // A JSON object containing the following fields:
  4322. type DescribeCachediSCSIVolumesOutput struct {
  4323. _ struct{} `type:"structure"`
  4324. // An array of objects where each object contains metadata about one cached
  4325. // volume.
  4326. CachediSCSIVolumes []*CachediSCSIVolume `type:"list"`
  4327. }
  4328. // String returns the string representation
  4329. func (s DescribeCachediSCSIVolumesOutput) String() string {
  4330. return awsutil.Prettify(s)
  4331. }
  4332. // GoString returns the string representation
  4333. func (s DescribeCachediSCSIVolumesOutput) GoString() string {
  4334. return s.String()
  4335. }
  4336. // A JSON object containing the Amazon Resource Name (ARN) of the iSCSI volume
  4337. // target.
  4338. type DescribeChapCredentialsInput struct {
  4339. _ struct{} `type:"structure"`
  4340. // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes
  4341. // operation to return to retrieve the TargetARN for specified VolumeARN.
  4342. TargetARN *string `min:"50" type:"string" required:"true"`
  4343. }
  4344. // String returns the string representation
  4345. func (s DescribeChapCredentialsInput) String() string {
  4346. return awsutil.Prettify(s)
  4347. }
  4348. // GoString returns the string representation
  4349. func (s DescribeChapCredentialsInput) GoString() string {
  4350. return s.String()
  4351. }
  4352. // Validate inspects the fields of the type to determine if they are valid.
  4353. func (s *DescribeChapCredentialsInput) Validate() error {
  4354. invalidParams := request.ErrInvalidParams{Context: "DescribeChapCredentialsInput"}
  4355. if s.TargetARN == nil {
  4356. invalidParams.Add(request.NewErrParamRequired("TargetARN"))
  4357. }
  4358. if s.TargetARN != nil && len(*s.TargetARN) < 50 {
  4359. invalidParams.Add(request.NewErrParamMinLen("TargetARN", 50))
  4360. }
  4361. if invalidParams.Len() > 0 {
  4362. return invalidParams
  4363. }
  4364. return nil
  4365. }
  4366. // A JSON object containing a .
  4367. type DescribeChapCredentialsOutput struct {
  4368. _ struct{} `type:"structure"`
  4369. // An array of ChapInfo objects that represent CHAP credentials. Each object
  4370. // in the array contains CHAP credential information for one target-initiator
  4371. // pair. If no CHAP credentials are set, an empty array is returned. CHAP credential
  4372. // information is provided in a JSON object with the following fields:
  4373. //
  4374. // InitiatorName: The iSCSI initiator that connects to the target.
  4375. //
  4376. // SecretToAuthenticateInitiator: The secret key that the initiator (for
  4377. // example, the Windows client) must provide to participate in mutual CHAP with
  4378. // the target.
  4379. //
  4380. // SecretToAuthenticateTarget: The secret key that the target must provide
  4381. // to participate in mutual CHAP with the initiator (e.g. Windows client).
  4382. //
  4383. // TargetARN: The Amazon Resource Name (ARN) of the storage volume.
  4384. ChapCredentials []*ChapInfo `type:"list"`
  4385. }
  4386. // String returns the string representation
  4387. func (s DescribeChapCredentialsOutput) String() string {
  4388. return awsutil.Prettify(s)
  4389. }
  4390. // GoString returns the string representation
  4391. func (s DescribeChapCredentialsOutput) GoString() string {
  4392. return s.String()
  4393. }
  4394. // A JSON object containing the id of the gateway.
  4395. type DescribeGatewayInformationInput struct {
  4396. _ struct{} `type:"structure"`
  4397. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4398. // to return a list of gateways for your account and region.
  4399. GatewayARN *string `min:"50" type:"string" required:"true"`
  4400. }
  4401. // String returns the string representation
  4402. func (s DescribeGatewayInformationInput) String() string {
  4403. return awsutil.Prettify(s)
  4404. }
  4405. // GoString returns the string representation
  4406. func (s DescribeGatewayInformationInput) GoString() string {
  4407. return s.String()
  4408. }
  4409. // Validate inspects the fields of the type to determine if they are valid.
  4410. func (s *DescribeGatewayInformationInput) Validate() error {
  4411. invalidParams := request.ErrInvalidParams{Context: "DescribeGatewayInformationInput"}
  4412. if s.GatewayARN == nil {
  4413. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  4414. }
  4415. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  4416. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  4417. }
  4418. if invalidParams.Len() > 0 {
  4419. return invalidParams
  4420. }
  4421. return nil
  4422. }
  4423. // A JSON object containing the following fields:
  4424. type DescribeGatewayInformationOutput struct {
  4425. _ struct{} `type:"structure"`
  4426. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4427. // to return a list of gateways for your account and region.
  4428. GatewayARN *string `min:"50" type:"string"`
  4429. // The unique identifier assigned to your gateway during activation. This ID
  4430. // becomes part of the gateway Amazon Resource Name (ARN), which you use as
  4431. // input for other operations.
  4432. GatewayId *string `min:"12" type:"string"`
  4433. // The name you configured for your gateway.
  4434. GatewayName *string `type:"string"`
  4435. // A NetworkInterface array that contains descriptions of the gateway network
  4436. // interfaces.
  4437. GatewayNetworkInterfaces []*NetworkInterface `type:"list"`
  4438. // A value that indicates the operating state of the gateway.
  4439. GatewayState *string `min:"2" type:"string"`
  4440. // A value that indicates the time zone configured for the gateway.
  4441. GatewayTimezone *string `min:"3" type:"string"`
  4442. // The type of the gateway.
  4443. GatewayType *string `min:"2" type:"string"`
  4444. // The date on which the last software update was applied to the gateway. If
  4445. // the gateway has never been updated, this field does not return a value in
  4446. // the response.
  4447. LastSoftwareUpdate *string `min:"1" type:"string"`
  4448. // The date on which an update to the gateway is available. This date is in
  4449. // the time zone of the gateway. If the gateway is not available for an update
  4450. // this field is not returned in the response.
  4451. NextUpdateAvailabilityDate *string `min:"1" type:"string"`
  4452. }
  4453. // String returns the string representation
  4454. func (s DescribeGatewayInformationOutput) String() string {
  4455. return awsutil.Prettify(s)
  4456. }
  4457. // GoString returns the string representation
  4458. func (s DescribeGatewayInformationOutput) GoString() string {
  4459. return s.String()
  4460. }
  4461. // A JSON object containing the of the gateway.
  4462. type DescribeMaintenanceStartTimeInput struct {
  4463. _ struct{} `type:"structure"`
  4464. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4465. // to return a list of gateways for your account and region.
  4466. GatewayARN *string `min:"50" type:"string" required:"true"`
  4467. }
  4468. // String returns the string representation
  4469. func (s DescribeMaintenanceStartTimeInput) String() string {
  4470. return awsutil.Prettify(s)
  4471. }
  4472. // GoString returns the string representation
  4473. func (s DescribeMaintenanceStartTimeInput) GoString() string {
  4474. return s.String()
  4475. }
  4476. // Validate inspects the fields of the type to determine if they are valid.
  4477. func (s *DescribeMaintenanceStartTimeInput) Validate() error {
  4478. invalidParams := request.ErrInvalidParams{Context: "DescribeMaintenanceStartTimeInput"}
  4479. if s.GatewayARN == nil {
  4480. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  4481. }
  4482. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  4483. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  4484. }
  4485. if invalidParams.Len() > 0 {
  4486. return invalidParams
  4487. }
  4488. return nil
  4489. }
  4490. type DescribeMaintenanceStartTimeOutput struct {
  4491. _ struct{} `type:"structure"`
  4492. DayOfWeek *int64 `type:"integer"`
  4493. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4494. // to return a list of gateways for your account and region.
  4495. GatewayARN *string `min:"50" type:"string"`
  4496. HourOfDay *int64 `type:"integer"`
  4497. MinuteOfHour *int64 `type:"integer"`
  4498. Timezone *string `min:"3" type:"string"`
  4499. }
  4500. // String returns the string representation
  4501. func (s DescribeMaintenanceStartTimeOutput) String() string {
  4502. return awsutil.Prettify(s)
  4503. }
  4504. // GoString returns the string representation
  4505. func (s DescribeMaintenanceStartTimeOutput) GoString() string {
  4506. return s.String()
  4507. }
  4508. // A JSON object containing the DescribeSnapshotScheduleInput$VolumeARN of the
  4509. // volume.
  4510. type DescribeSnapshotScheduleInput struct {
  4511. _ struct{} `type:"structure"`
  4512. // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
  4513. // to return a list of gateway volumes.
  4514. VolumeARN *string `min:"50" type:"string" required:"true"`
  4515. }
  4516. // String returns the string representation
  4517. func (s DescribeSnapshotScheduleInput) String() string {
  4518. return awsutil.Prettify(s)
  4519. }
  4520. // GoString returns the string representation
  4521. func (s DescribeSnapshotScheduleInput) GoString() string {
  4522. return s.String()
  4523. }
  4524. // Validate inspects the fields of the type to determine if they are valid.
  4525. func (s *DescribeSnapshotScheduleInput) Validate() error {
  4526. invalidParams := request.ErrInvalidParams{Context: "DescribeSnapshotScheduleInput"}
  4527. if s.VolumeARN == nil {
  4528. invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
  4529. }
  4530. if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
  4531. invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
  4532. }
  4533. if invalidParams.Len() > 0 {
  4534. return invalidParams
  4535. }
  4536. return nil
  4537. }
  4538. type DescribeSnapshotScheduleOutput struct {
  4539. _ struct{} `type:"structure"`
  4540. Description *string `min:"1" type:"string"`
  4541. RecurrenceInHours *int64 `min:"1" type:"integer"`
  4542. StartAt *int64 `type:"integer"`
  4543. Timezone *string `min:"3" type:"string"`
  4544. VolumeARN *string `min:"50" type:"string"`
  4545. }
  4546. // String returns the string representation
  4547. func (s DescribeSnapshotScheduleOutput) String() string {
  4548. return awsutil.Prettify(s)
  4549. }
  4550. // GoString returns the string representation
  4551. func (s DescribeSnapshotScheduleOutput) GoString() string {
  4552. return s.String()
  4553. }
  4554. // A JSON object containing a list of DescribeStorediSCSIVolumesInput$VolumeARNs.
  4555. type DescribeStorediSCSIVolumesInput struct {
  4556. _ struct{} `type:"structure"`
  4557. // An array of strings where each string represents the Amazon Resource Name
  4558. // (ARN) of a stored volume. All of the specified stored volumes must from the
  4559. // same gateway. Use ListVolumes to get volume ARNs for a gateway.
  4560. VolumeARNs []*string `type:"list" required:"true"`
  4561. }
  4562. // String returns the string representation
  4563. func (s DescribeStorediSCSIVolumesInput) String() string {
  4564. return awsutil.Prettify(s)
  4565. }
  4566. // GoString returns the string representation
  4567. func (s DescribeStorediSCSIVolumesInput) GoString() string {
  4568. return s.String()
  4569. }
  4570. // Validate inspects the fields of the type to determine if they are valid.
  4571. func (s *DescribeStorediSCSIVolumesInput) Validate() error {
  4572. invalidParams := request.ErrInvalidParams{Context: "DescribeStorediSCSIVolumesInput"}
  4573. if s.VolumeARNs == nil {
  4574. invalidParams.Add(request.NewErrParamRequired("VolumeARNs"))
  4575. }
  4576. if invalidParams.Len() > 0 {
  4577. return invalidParams
  4578. }
  4579. return nil
  4580. }
  4581. type DescribeStorediSCSIVolumesOutput struct {
  4582. _ struct{} `type:"structure"`
  4583. StorediSCSIVolumes []*StorediSCSIVolume `type:"list"`
  4584. }
  4585. // String returns the string representation
  4586. func (s DescribeStorediSCSIVolumesOutput) String() string {
  4587. return awsutil.Prettify(s)
  4588. }
  4589. // GoString returns the string representation
  4590. func (s DescribeStorediSCSIVolumesOutput) GoString() string {
  4591. return s.String()
  4592. }
  4593. // DescribeTapeArchivesInput
  4594. type DescribeTapeArchivesInput struct {
  4595. _ struct{} `type:"structure"`
  4596. // Specifies that the number of virtual tapes descried be limited to the specified
  4597. // number.
  4598. Limit *int64 `min:"1" type:"integer"`
  4599. // An opaque string that indicates the position at which to begin describing
  4600. // virtual tapes.
  4601. Marker *string `min:"1" type:"string"`
  4602. // Specifies one or more unique Amazon Resource Names (ARNs) that represent
  4603. // the virtual tapes you want to describe.
  4604. TapeARNs []*string `type:"list"`
  4605. }
  4606. // String returns the string representation
  4607. func (s DescribeTapeArchivesInput) String() string {
  4608. return awsutil.Prettify(s)
  4609. }
  4610. // GoString returns the string representation
  4611. func (s DescribeTapeArchivesInput) GoString() string {
  4612. return s.String()
  4613. }
  4614. // Validate inspects the fields of the type to determine if they are valid.
  4615. func (s *DescribeTapeArchivesInput) Validate() error {
  4616. invalidParams := request.ErrInvalidParams{Context: "DescribeTapeArchivesInput"}
  4617. if s.Limit != nil && *s.Limit < 1 {
  4618. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4619. }
  4620. if s.Marker != nil && len(*s.Marker) < 1 {
  4621. invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
  4622. }
  4623. if invalidParams.Len() > 0 {
  4624. return invalidParams
  4625. }
  4626. return nil
  4627. }
  4628. // DescribeTapeArchivesOutput
  4629. type DescribeTapeArchivesOutput struct {
  4630. _ struct{} `type:"structure"`
  4631. // An opaque string that indicates the position at which the virtual tapes that
  4632. // were fetched for description ended. Use this marker in your next request
  4633. // to fetch the next set of virtual tapes in the virtual tape shelf (VTS). If
  4634. // there are no more virtual tapes to describe, this field does not appear in
  4635. // the response.
  4636. Marker *string `min:"1" type:"string"`
  4637. // An array of virtual tape objects in the virtual tape shelf (VTS). The description
  4638. // includes of the Amazon Resource Name(ARN) of the virtual tapes. The information
  4639. // returned includes the Amazon Resource Names (ARNs) of the tapes, size of
  4640. // the tapes, status of the tapes, progress of the description and tape barcode.
  4641. TapeArchives []*TapeArchive `type:"list"`
  4642. }
  4643. // String returns the string representation
  4644. func (s DescribeTapeArchivesOutput) String() string {
  4645. return awsutil.Prettify(s)
  4646. }
  4647. // GoString returns the string representation
  4648. func (s DescribeTapeArchivesOutput) GoString() string {
  4649. return s.String()
  4650. }
  4651. // DescribeTapeRecoveryPointsInput
  4652. type DescribeTapeRecoveryPointsInput struct {
  4653. _ struct{} `type:"structure"`
  4654. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4655. // to return a list of gateways for your account and region.
  4656. GatewayARN *string `min:"50" type:"string" required:"true"`
  4657. // Specifies that the number of virtual tape recovery points that are described
  4658. // be limited to the specified number.
  4659. Limit *int64 `min:"1" type:"integer"`
  4660. // An opaque string that indicates the position at which to begin describing
  4661. // the virtual tape recovery points.
  4662. Marker *string `min:"1" type:"string"`
  4663. }
  4664. // String returns the string representation
  4665. func (s DescribeTapeRecoveryPointsInput) String() string {
  4666. return awsutil.Prettify(s)
  4667. }
  4668. // GoString returns the string representation
  4669. func (s DescribeTapeRecoveryPointsInput) GoString() string {
  4670. return s.String()
  4671. }
  4672. // Validate inspects the fields of the type to determine if they are valid.
  4673. func (s *DescribeTapeRecoveryPointsInput) Validate() error {
  4674. invalidParams := request.ErrInvalidParams{Context: "DescribeTapeRecoveryPointsInput"}
  4675. if s.GatewayARN == nil {
  4676. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  4677. }
  4678. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  4679. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  4680. }
  4681. if s.Limit != nil && *s.Limit < 1 {
  4682. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4683. }
  4684. if s.Marker != nil && len(*s.Marker) < 1 {
  4685. invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
  4686. }
  4687. if invalidParams.Len() > 0 {
  4688. return invalidParams
  4689. }
  4690. return nil
  4691. }
  4692. // DescribeTapeRecoveryPointsOutput
  4693. type DescribeTapeRecoveryPointsOutput struct {
  4694. _ struct{} `type:"structure"`
  4695. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4696. // to return a list of gateways for your account and region.
  4697. GatewayARN *string `min:"50" type:"string"`
  4698. // An opaque string that indicates the position at which the virtual tape recovery
  4699. // points that were listed for description ended.
  4700. //
  4701. // Use this marker in your next request to list the next set of virtual tape
  4702. // recovery points in the list. If there are no more recovery points to describe,
  4703. // this field does not appear in the response.
  4704. Marker *string `min:"1" type:"string"`
  4705. // An array of TapeRecoveryPointInfos that are available for the specified gateway.
  4706. TapeRecoveryPointInfos []*TapeRecoveryPointInfo `type:"list"`
  4707. }
  4708. // String returns the string representation
  4709. func (s DescribeTapeRecoveryPointsOutput) String() string {
  4710. return awsutil.Prettify(s)
  4711. }
  4712. // GoString returns the string representation
  4713. func (s DescribeTapeRecoveryPointsOutput) GoString() string {
  4714. return s.String()
  4715. }
  4716. // DescribeTapesInput
  4717. type DescribeTapesInput struct {
  4718. _ struct{} `type:"structure"`
  4719. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4720. // to return a list of gateways for your account and region.
  4721. GatewayARN *string `min:"50" type:"string" required:"true"`
  4722. // Specifies that the number of virtual tapes described be limited to the specified
  4723. // number.
  4724. //
  4725. // Amazon Web Services may impose its own limit, if this field is not set.
  4726. Limit *int64 `min:"1" type:"integer"`
  4727. // A marker value, obtained in a previous call to DescribeTapes. This marker
  4728. // indicates which page of results to retrieve.
  4729. //
  4730. // If not specified, the first page of results is retrieved.
  4731. Marker *string `min:"1" type:"string"`
  4732. // Specifies one or more unique Amazon Resource Names (ARNs) that represent
  4733. // the virtual tapes you want to describe. If this parameter is not specified,
  4734. // AWS Storage Gateway returns a description of all virtual tapes associated
  4735. // with the specified gateway.
  4736. TapeARNs []*string `type:"list"`
  4737. }
  4738. // String returns the string representation
  4739. func (s DescribeTapesInput) String() string {
  4740. return awsutil.Prettify(s)
  4741. }
  4742. // GoString returns the string representation
  4743. func (s DescribeTapesInput) GoString() string {
  4744. return s.String()
  4745. }
  4746. // Validate inspects the fields of the type to determine if they are valid.
  4747. func (s *DescribeTapesInput) Validate() error {
  4748. invalidParams := request.ErrInvalidParams{Context: "DescribeTapesInput"}
  4749. if s.GatewayARN == nil {
  4750. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  4751. }
  4752. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  4753. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  4754. }
  4755. if s.Limit != nil && *s.Limit < 1 {
  4756. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4757. }
  4758. if s.Marker != nil && len(*s.Marker) < 1 {
  4759. invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
  4760. }
  4761. if invalidParams.Len() > 0 {
  4762. return invalidParams
  4763. }
  4764. return nil
  4765. }
  4766. // DescribeTapesOutput
  4767. type DescribeTapesOutput struct {
  4768. _ struct{} `type:"structure"`
  4769. // An opaque string which can be used as part of a subsequent DescribeTapes
  4770. // call to retrieve the next page of results.
  4771. //
  4772. // If a response does not contain a marker, then there are no more results
  4773. // to be retrieved.
  4774. Marker *string `min:"1" type:"string"`
  4775. // An array of virtual tape descriptions.
  4776. Tapes []*Tape `type:"list"`
  4777. }
  4778. // String returns the string representation
  4779. func (s DescribeTapesOutput) String() string {
  4780. return awsutil.Prettify(s)
  4781. }
  4782. // GoString returns the string representation
  4783. func (s DescribeTapesOutput) GoString() string {
  4784. return s.String()
  4785. }
  4786. type DescribeUploadBufferInput struct {
  4787. _ struct{} `type:"structure"`
  4788. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4789. // to return a list of gateways for your account and region.
  4790. GatewayARN *string `min:"50" type:"string" required:"true"`
  4791. }
  4792. // String returns the string representation
  4793. func (s DescribeUploadBufferInput) String() string {
  4794. return awsutil.Prettify(s)
  4795. }
  4796. // GoString returns the string representation
  4797. func (s DescribeUploadBufferInput) GoString() string {
  4798. return s.String()
  4799. }
  4800. // Validate inspects the fields of the type to determine if they are valid.
  4801. func (s *DescribeUploadBufferInput) Validate() error {
  4802. invalidParams := request.ErrInvalidParams{Context: "DescribeUploadBufferInput"}
  4803. if s.GatewayARN == nil {
  4804. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  4805. }
  4806. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  4807. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  4808. }
  4809. if invalidParams.Len() > 0 {
  4810. return invalidParams
  4811. }
  4812. return nil
  4813. }
  4814. type DescribeUploadBufferOutput struct {
  4815. _ struct{} `type:"structure"`
  4816. DiskIds []*string `type:"list"`
  4817. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4818. // to return a list of gateways for your account and region.
  4819. GatewayARN *string `min:"50" type:"string"`
  4820. UploadBufferAllocatedInBytes *int64 `type:"long"`
  4821. UploadBufferUsedInBytes *int64 `type:"long"`
  4822. }
  4823. // String returns the string representation
  4824. func (s DescribeUploadBufferOutput) String() string {
  4825. return awsutil.Prettify(s)
  4826. }
  4827. // GoString returns the string representation
  4828. func (s DescribeUploadBufferOutput) GoString() string {
  4829. return s.String()
  4830. }
  4831. // DescribeVTLDevicesInput
  4832. type DescribeVTLDevicesInput struct {
  4833. _ struct{} `type:"structure"`
  4834. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4835. // to return a list of gateways for your account and region.
  4836. GatewayARN *string `min:"50" type:"string" required:"true"`
  4837. // Specifies that the number of VTL devices described be limited to the specified
  4838. // number.
  4839. Limit *int64 `min:"1" type:"integer"`
  4840. // An opaque string that indicates the position at which to begin describing
  4841. // the VTL devices.
  4842. Marker *string `min:"1" type:"string"`
  4843. // An array of strings, where each string represents the Amazon Resource Name
  4844. // (ARN) of a VTL device.
  4845. //
  4846. // All of the specified VTL devices must be from the same gateway. If no VTL
  4847. // devices are specified, the result will contain all devices on the specified
  4848. // gateway.
  4849. VTLDeviceARNs []*string `type:"list"`
  4850. }
  4851. // String returns the string representation
  4852. func (s DescribeVTLDevicesInput) String() string {
  4853. return awsutil.Prettify(s)
  4854. }
  4855. // GoString returns the string representation
  4856. func (s DescribeVTLDevicesInput) GoString() string {
  4857. return s.String()
  4858. }
  4859. // Validate inspects the fields of the type to determine if they are valid.
  4860. func (s *DescribeVTLDevicesInput) Validate() error {
  4861. invalidParams := request.ErrInvalidParams{Context: "DescribeVTLDevicesInput"}
  4862. if s.GatewayARN == nil {
  4863. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  4864. }
  4865. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  4866. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  4867. }
  4868. if s.Limit != nil && *s.Limit < 1 {
  4869. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4870. }
  4871. if s.Marker != nil && len(*s.Marker) < 1 {
  4872. invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
  4873. }
  4874. if invalidParams.Len() > 0 {
  4875. return invalidParams
  4876. }
  4877. return nil
  4878. }
  4879. // DescribeVTLDevicesOutput
  4880. type DescribeVTLDevicesOutput struct {
  4881. _ struct{} `type:"structure"`
  4882. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4883. // to return a list of gateways for your account and region.
  4884. GatewayARN *string `min:"50" type:"string"`
  4885. // An opaque string that indicates the position at which the VTL devices that
  4886. // were fetched for description ended. Use the marker in your next request to
  4887. // fetch the next set of VTL devices in the list. If there are no more VTL devices
  4888. // to describe, this field does not appear in the response.
  4889. Marker *string `min:"1" type:"string"`
  4890. // An array of VTL device objects composed of the Amazon Resource Name(ARN)
  4891. // of the VTL devices.
  4892. VTLDevices []*VTLDevice `type:"list"`
  4893. }
  4894. // String returns the string representation
  4895. func (s DescribeVTLDevicesOutput) String() string {
  4896. return awsutil.Prettify(s)
  4897. }
  4898. // GoString returns the string representation
  4899. func (s DescribeVTLDevicesOutput) GoString() string {
  4900. return s.String()
  4901. }
  4902. // A JSON object containing the of the gateway.
  4903. type DescribeWorkingStorageInput struct {
  4904. _ struct{} `type:"structure"`
  4905. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4906. // to return a list of gateways for your account and region.
  4907. GatewayARN *string `min:"50" type:"string" required:"true"`
  4908. }
  4909. // String returns the string representation
  4910. func (s DescribeWorkingStorageInput) String() string {
  4911. return awsutil.Prettify(s)
  4912. }
  4913. // GoString returns the string representation
  4914. func (s DescribeWorkingStorageInput) GoString() string {
  4915. return s.String()
  4916. }
  4917. // Validate inspects the fields of the type to determine if they are valid.
  4918. func (s *DescribeWorkingStorageInput) Validate() error {
  4919. invalidParams := request.ErrInvalidParams{Context: "DescribeWorkingStorageInput"}
  4920. if s.GatewayARN == nil {
  4921. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  4922. }
  4923. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  4924. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  4925. }
  4926. if invalidParams.Len() > 0 {
  4927. return invalidParams
  4928. }
  4929. return nil
  4930. }
  4931. // A JSON object containing the following fields:
  4932. type DescribeWorkingStorageOutput struct {
  4933. _ struct{} `type:"structure"`
  4934. // An array of the gateway's local disk IDs that are configured as working storage.
  4935. // Each local disk ID is specified as a string (minimum length of 1 and maximum
  4936. // length of 300). If no local disks are configured as working storage, then
  4937. // the DiskIds array is empty.
  4938. DiskIds []*string `type:"list"`
  4939. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4940. // to return a list of gateways for your account and region.
  4941. GatewayARN *string `min:"50" type:"string"`
  4942. // The total working storage in bytes allocated for the gateway. If no working
  4943. // storage is configured for the gateway, this field returns 0.
  4944. WorkingStorageAllocatedInBytes *int64 `type:"long"`
  4945. // The total working storage in bytes in use by the gateway. If no working storage
  4946. // is configured for the gateway, this field returns 0.
  4947. WorkingStorageUsedInBytes *int64 `type:"long"`
  4948. }
  4949. // String returns the string representation
  4950. func (s DescribeWorkingStorageOutput) String() string {
  4951. return awsutil.Prettify(s)
  4952. }
  4953. // GoString returns the string representation
  4954. func (s DescribeWorkingStorageOutput) GoString() string {
  4955. return s.String()
  4956. }
  4957. // Lists iSCSI information about a VTL device.
  4958. type DeviceiSCSIAttributes struct {
  4959. _ struct{} `type:"structure"`
  4960. // Indicates whether mutual CHAP is enabled for the iSCSI target.
  4961. ChapEnabled *bool `type:"boolean"`
  4962. // The network interface identifier of the VTL device.
  4963. NetworkInterfaceId *string `type:"string"`
  4964. // The port used to communicate with iSCSI VTL device targets.
  4965. NetworkInterfacePort *int64 `type:"integer"`
  4966. // Specifies the unique Amazon Resource Name(ARN) that encodes the iSCSI qualified
  4967. // name(iqn) of a tape drive or media changer target.
  4968. TargetARN *string `min:"50" type:"string"`
  4969. }
  4970. // String returns the string representation
  4971. func (s DeviceiSCSIAttributes) String() string {
  4972. return awsutil.Prettify(s)
  4973. }
  4974. // GoString returns the string representation
  4975. func (s DeviceiSCSIAttributes) GoString() string {
  4976. return s.String()
  4977. }
  4978. // DisableGatewayInput
  4979. type DisableGatewayInput struct {
  4980. _ struct{} `type:"structure"`
  4981. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  4982. // to return a list of gateways for your account and region.
  4983. GatewayARN *string `min:"50" type:"string" required:"true"`
  4984. }
  4985. // String returns the string representation
  4986. func (s DisableGatewayInput) String() string {
  4987. return awsutil.Prettify(s)
  4988. }
  4989. // GoString returns the string representation
  4990. func (s DisableGatewayInput) GoString() string {
  4991. return s.String()
  4992. }
  4993. // Validate inspects the fields of the type to determine if they are valid.
  4994. func (s *DisableGatewayInput) Validate() error {
  4995. invalidParams := request.ErrInvalidParams{Context: "DisableGatewayInput"}
  4996. if s.GatewayARN == nil {
  4997. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  4998. }
  4999. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  5000. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  5001. }
  5002. if invalidParams.Len() > 0 {
  5003. return invalidParams
  5004. }
  5005. return nil
  5006. }
  5007. // DisableGatewayOutput
  5008. type DisableGatewayOutput struct {
  5009. _ struct{} `type:"structure"`
  5010. // The unique Amazon Resource Name of the disabled gateway.
  5011. GatewayARN *string `min:"50" type:"string"`
  5012. }
  5013. // String returns the string representation
  5014. func (s DisableGatewayOutput) String() string {
  5015. return awsutil.Prettify(s)
  5016. }
  5017. // GoString returns the string representation
  5018. func (s DisableGatewayOutput) GoString() string {
  5019. return s.String()
  5020. }
  5021. type Disk struct {
  5022. _ struct{} `type:"structure"`
  5023. DiskAllocationResource *string `type:"string"`
  5024. DiskAllocationType *string `min:"3" type:"string"`
  5025. DiskId *string `min:"1" type:"string"`
  5026. DiskNode *string `type:"string"`
  5027. DiskPath *string `type:"string"`
  5028. DiskSizeInBytes *int64 `type:"long"`
  5029. DiskStatus *string `type:"string"`
  5030. }
  5031. // String returns the string representation
  5032. func (s Disk) String() string {
  5033. return awsutil.Prettify(s)
  5034. }
  5035. // GoString returns the string representation
  5036. func (s Disk) GoString() string {
  5037. return s.String()
  5038. }
  5039. // Provides additional information about an error that was returned by the service
  5040. // as an or. See the errorCode and errorDetails members for more information
  5041. // about the error.
  5042. type Error struct {
  5043. _ struct{} `type:"structure"`
  5044. // Additional information about the error.
  5045. ErrorCode *string `locationName:"errorCode" type:"string" enum:"ErrorCode"`
  5046. // Human-readable text that provides detail about the error that occurred.
  5047. ErrorDetails map[string]*string `locationName:"errorDetails" type:"map"`
  5048. }
  5049. // String returns the string representation
  5050. func (s Error) String() string {
  5051. return awsutil.Prettify(s)
  5052. }
  5053. // GoString returns the string representation
  5054. func (s Error) GoString() string {
  5055. return s.String()
  5056. }
  5057. // Describes a gateway object.
  5058. type GatewayInfo struct {
  5059. _ struct{} `type:"structure"`
  5060. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5061. // to return a list of gateways for your account and region.
  5062. GatewayARN *string `min:"50" type:"string"`
  5063. // The unique identifier assigned to your gateway during activation. This ID
  5064. // becomes part of the gateway Amazon Resource Name (ARN), which you use as
  5065. // input for other operations.
  5066. GatewayId *string `min:"12" type:"string"`
  5067. // The name of the gateway.
  5068. GatewayName *string `type:"string"`
  5069. // The state of the gateway.
  5070. //
  5071. // Valid Values: DISABLED or ACTIVE
  5072. GatewayOperationalState *string `min:"2" type:"string"`
  5073. // The type of the gateway.
  5074. GatewayType *string `min:"2" type:"string"`
  5075. }
  5076. // String returns the string representation
  5077. func (s GatewayInfo) String() string {
  5078. return awsutil.Prettify(s)
  5079. }
  5080. // GoString returns the string representation
  5081. func (s GatewayInfo) GoString() string {
  5082. return s.String()
  5083. }
  5084. // A JSON object containing zero or more of the following fields:
  5085. //
  5086. // ListGatewaysInput$Limit
  5087. //
  5088. // ListGatewaysInput$Marker
  5089. type ListGatewaysInput struct {
  5090. _ struct{} `type:"structure"`
  5091. // Specifies that the list of gateways returned be limited to the specified
  5092. // number of items.
  5093. Limit *int64 `min:"1" type:"integer"`
  5094. // An opaque string that indicates the position at which to begin the returned
  5095. // list of gateways.
  5096. Marker *string `min:"1" type:"string"`
  5097. }
  5098. // String returns the string representation
  5099. func (s ListGatewaysInput) String() string {
  5100. return awsutil.Prettify(s)
  5101. }
  5102. // GoString returns the string representation
  5103. func (s ListGatewaysInput) GoString() string {
  5104. return s.String()
  5105. }
  5106. // Validate inspects the fields of the type to determine if they are valid.
  5107. func (s *ListGatewaysInput) Validate() error {
  5108. invalidParams := request.ErrInvalidParams{Context: "ListGatewaysInput"}
  5109. if s.Limit != nil && *s.Limit < 1 {
  5110. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  5111. }
  5112. if s.Marker != nil && len(*s.Marker) < 1 {
  5113. invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
  5114. }
  5115. if invalidParams.Len() > 0 {
  5116. return invalidParams
  5117. }
  5118. return nil
  5119. }
  5120. type ListGatewaysOutput struct {
  5121. _ struct{} `type:"structure"`
  5122. Gateways []*GatewayInfo `type:"list"`
  5123. Marker *string `min:"1" type:"string"`
  5124. }
  5125. // String returns the string representation
  5126. func (s ListGatewaysOutput) String() string {
  5127. return awsutil.Prettify(s)
  5128. }
  5129. // GoString returns the string representation
  5130. func (s ListGatewaysOutput) GoString() string {
  5131. return s.String()
  5132. }
  5133. // A JSON object containing the of the gateway.
  5134. type ListLocalDisksInput struct {
  5135. _ struct{} `type:"structure"`
  5136. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5137. // to return a list of gateways for your account and region.
  5138. GatewayARN *string `min:"50" type:"string" required:"true"`
  5139. }
  5140. // String returns the string representation
  5141. func (s ListLocalDisksInput) String() string {
  5142. return awsutil.Prettify(s)
  5143. }
  5144. // GoString returns the string representation
  5145. func (s ListLocalDisksInput) GoString() string {
  5146. return s.String()
  5147. }
  5148. // Validate inspects the fields of the type to determine if they are valid.
  5149. func (s *ListLocalDisksInput) Validate() error {
  5150. invalidParams := request.ErrInvalidParams{Context: "ListLocalDisksInput"}
  5151. if s.GatewayARN == nil {
  5152. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  5153. }
  5154. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  5155. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  5156. }
  5157. if invalidParams.Len() > 0 {
  5158. return invalidParams
  5159. }
  5160. return nil
  5161. }
  5162. type ListLocalDisksOutput struct {
  5163. _ struct{} `type:"structure"`
  5164. Disks []*Disk `type:"list"`
  5165. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5166. // to return a list of gateways for your account and region.
  5167. GatewayARN *string `min:"50" type:"string"`
  5168. }
  5169. // String returns the string representation
  5170. func (s ListLocalDisksOutput) String() string {
  5171. return awsutil.Prettify(s)
  5172. }
  5173. // GoString returns the string representation
  5174. func (s ListLocalDisksOutput) GoString() string {
  5175. return s.String()
  5176. }
  5177. // ListTagsForResourceInput
  5178. type ListTagsForResourceInput struct {
  5179. _ struct{} `type:"structure"`
  5180. // Specifies that the list of tags returned be limited to the specified number
  5181. // of items.
  5182. Limit *int64 `min:"1" type:"integer"`
  5183. // An opaque string that indicates the position at which to begin returning
  5184. // the list of tags.
  5185. Marker *string `min:"1" type:"string"`
  5186. // The Amazon Resource Name (ARN) of the resource for which you want to list
  5187. // tags.
  5188. ResourceARN *string `min:"50" type:"string" required:"true"`
  5189. }
  5190. // String returns the string representation
  5191. func (s ListTagsForResourceInput) String() string {
  5192. return awsutil.Prettify(s)
  5193. }
  5194. // GoString returns the string representation
  5195. func (s ListTagsForResourceInput) GoString() string {
  5196. return s.String()
  5197. }
  5198. // Validate inspects the fields of the type to determine if they are valid.
  5199. func (s *ListTagsForResourceInput) Validate() error {
  5200. invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  5201. if s.Limit != nil && *s.Limit < 1 {
  5202. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  5203. }
  5204. if s.Marker != nil && len(*s.Marker) < 1 {
  5205. invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
  5206. }
  5207. if s.ResourceARN == nil {
  5208. invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
  5209. }
  5210. if s.ResourceARN != nil && len(*s.ResourceARN) < 50 {
  5211. invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 50))
  5212. }
  5213. if invalidParams.Len() > 0 {
  5214. return invalidParams
  5215. }
  5216. return nil
  5217. }
  5218. // ListTagsForResourceOutput
  5219. type ListTagsForResourceOutput struct {
  5220. _ struct{} `type:"structure"`
  5221. // An opaque string that indicates the position at which to stop returning the
  5222. // list of tags.
  5223. Marker *string `min:"1" type:"string"`
  5224. // he Amazon Resource Name (ARN) of the resource for which you want to list
  5225. // tags.
  5226. ResourceARN *string `min:"50" type:"string"`
  5227. // An array that contains the tags for the specified resource.
  5228. Tags []*Tag `type:"list"`
  5229. }
  5230. // String returns the string representation
  5231. func (s ListTagsForResourceOutput) String() string {
  5232. return awsutil.Prettify(s)
  5233. }
  5234. // GoString returns the string representation
  5235. func (s ListTagsForResourceOutput) GoString() string {
  5236. return s.String()
  5237. }
  5238. // A JSON object that contains one or more of the following fields:
  5239. //
  5240. // ListTapesInput$Limit
  5241. //
  5242. // ListTapesInput$Marker
  5243. //
  5244. // ListTapesInput$TapeARNs
  5245. type ListTapesInput struct {
  5246. _ struct{} `type:"structure"`
  5247. // An optional number limit for the tapes in the list returned by this call.
  5248. Limit *int64 `min:"1" type:"integer"`
  5249. // A string that indicates the position at which to begin the returned list
  5250. // of tapes.
  5251. Marker *string `min:"1" type:"string"`
  5252. // The Amazon Resource Name (ARN) of each of the tapes you want to list. If
  5253. // you don't specify a tape ARN, the response lists all tapes in both your VTL
  5254. // and VTS.
  5255. TapeARNs []*string `type:"list"`
  5256. }
  5257. // String returns the string representation
  5258. func (s ListTapesInput) String() string {
  5259. return awsutil.Prettify(s)
  5260. }
  5261. // GoString returns the string representation
  5262. func (s ListTapesInput) GoString() string {
  5263. return s.String()
  5264. }
  5265. // Validate inspects the fields of the type to determine if they are valid.
  5266. func (s *ListTapesInput) Validate() error {
  5267. invalidParams := request.ErrInvalidParams{Context: "ListTapesInput"}
  5268. if s.Limit != nil && *s.Limit < 1 {
  5269. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  5270. }
  5271. if s.Marker != nil && len(*s.Marker) < 1 {
  5272. invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
  5273. }
  5274. if invalidParams.Len() > 0 {
  5275. return invalidParams
  5276. }
  5277. return nil
  5278. }
  5279. // A JSON object containing the following fields:
  5280. //
  5281. // ListTapesOutput$Marker
  5282. //
  5283. // ListTapesOutput$VolumeInfos
  5284. type ListTapesOutput struct {
  5285. _ struct{} `type:"structure"`
  5286. // A string that indicates the position at which to begin returning the next
  5287. // list of tapes. Use the marker in your next request to continue pagination
  5288. // of tapes. If there are no more tapes to list, this element does not appear
  5289. // in the response body.
  5290. Marker *string `min:"1" type:"string"`
  5291. // An array of TapeInfo objects, where each object describes an a single tape.
  5292. // If there not tapes in the tape library or VTS, then the TapeInfos is an empty
  5293. // array.
  5294. TapeInfos []*TapeInfo `type:"list"`
  5295. }
  5296. // String returns the string representation
  5297. func (s ListTapesOutput) String() string {
  5298. return awsutil.Prettify(s)
  5299. }
  5300. // GoString returns the string representation
  5301. func (s ListTapesOutput) GoString() string {
  5302. return s.String()
  5303. }
  5304. // ListVolumeInitiatorsInput
  5305. type ListVolumeInitiatorsInput struct {
  5306. _ struct{} `type:"structure"`
  5307. // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
  5308. // to return a list of gateway volumes for the gateway.
  5309. VolumeARN *string `min:"50" type:"string" required:"true"`
  5310. }
  5311. // String returns the string representation
  5312. func (s ListVolumeInitiatorsInput) String() string {
  5313. return awsutil.Prettify(s)
  5314. }
  5315. // GoString returns the string representation
  5316. func (s ListVolumeInitiatorsInput) GoString() string {
  5317. return s.String()
  5318. }
  5319. // Validate inspects the fields of the type to determine if they are valid.
  5320. func (s *ListVolumeInitiatorsInput) Validate() error {
  5321. invalidParams := request.ErrInvalidParams{Context: "ListVolumeInitiatorsInput"}
  5322. if s.VolumeARN == nil {
  5323. invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
  5324. }
  5325. if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
  5326. invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
  5327. }
  5328. if invalidParams.Len() > 0 {
  5329. return invalidParams
  5330. }
  5331. return nil
  5332. }
  5333. // ListVolumeInitiatorsOutput
  5334. type ListVolumeInitiatorsOutput struct {
  5335. _ struct{} `type:"structure"`
  5336. // The host names and port numbers of all iSCSI initiators that are connected
  5337. // to the gateway.
  5338. Initiators []*string `type:"list"`
  5339. }
  5340. // String returns the string representation
  5341. func (s ListVolumeInitiatorsOutput) String() string {
  5342. return awsutil.Prettify(s)
  5343. }
  5344. // GoString returns the string representation
  5345. func (s ListVolumeInitiatorsOutput) GoString() string {
  5346. return s.String()
  5347. }
  5348. type ListVolumeRecoveryPointsInput struct {
  5349. _ struct{} `type:"structure"`
  5350. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5351. // to return a list of gateways for your account and region.
  5352. GatewayARN *string `min:"50" type:"string" required:"true"`
  5353. }
  5354. // String returns the string representation
  5355. func (s ListVolumeRecoveryPointsInput) String() string {
  5356. return awsutil.Prettify(s)
  5357. }
  5358. // GoString returns the string representation
  5359. func (s ListVolumeRecoveryPointsInput) GoString() string {
  5360. return s.String()
  5361. }
  5362. // Validate inspects the fields of the type to determine if they are valid.
  5363. func (s *ListVolumeRecoveryPointsInput) Validate() error {
  5364. invalidParams := request.ErrInvalidParams{Context: "ListVolumeRecoveryPointsInput"}
  5365. if s.GatewayARN == nil {
  5366. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  5367. }
  5368. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  5369. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  5370. }
  5371. if invalidParams.Len() > 0 {
  5372. return invalidParams
  5373. }
  5374. return nil
  5375. }
  5376. type ListVolumeRecoveryPointsOutput struct {
  5377. _ struct{} `type:"structure"`
  5378. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5379. // to return a list of gateways for your account and region.
  5380. GatewayARN *string `min:"50" type:"string"`
  5381. VolumeRecoveryPointInfos []*VolumeRecoveryPointInfo `type:"list"`
  5382. }
  5383. // String returns the string representation
  5384. func (s ListVolumeRecoveryPointsOutput) String() string {
  5385. return awsutil.Prettify(s)
  5386. }
  5387. // GoString returns the string representation
  5388. func (s ListVolumeRecoveryPointsOutput) GoString() string {
  5389. return s.String()
  5390. }
  5391. // A JSON object that contains one or more of the following fields:
  5392. //
  5393. // ListVolumesInput$Limit
  5394. //
  5395. // ListVolumesInput$Marker
  5396. type ListVolumesInput struct {
  5397. _ struct{} `type:"structure"`
  5398. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5399. // to return a list of gateways for your account and region.
  5400. GatewayARN *string `min:"50" type:"string"`
  5401. // Specifies that the list of volumes returned be limited to the specified number
  5402. // of items.
  5403. Limit *int64 `min:"1" type:"integer"`
  5404. // A string that indicates the position at which to begin the returned list
  5405. // of volumes. Obtain the marker from the response of a previous List iSCSI
  5406. // Volumes request.
  5407. Marker *string `min:"1" type:"string"`
  5408. }
  5409. // String returns the string representation
  5410. func (s ListVolumesInput) String() string {
  5411. return awsutil.Prettify(s)
  5412. }
  5413. // GoString returns the string representation
  5414. func (s ListVolumesInput) GoString() string {
  5415. return s.String()
  5416. }
  5417. // Validate inspects the fields of the type to determine if they are valid.
  5418. func (s *ListVolumesInput) Validate() error {
  5419. invalidParams := request.ErrInvalidParams{Context: "ListVolumesInput"}
  5420. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  5421. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  5422. }
  5423. if s.Limit != nil && *s.Limit < 1 {
  5424. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  5425. }
  5426. if s.Marker != nil && len(*s.Marker) < 1 {
  5427. invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
  5428. }
  5429. if invalidParams.Len() > 0 {
  5430. return invalidParams
  5431. }
  5432. return nil
  5433. }
  5434. type ListVolumesOutput struct {
  5435. _ struct{} `type:"structure"`
  5436. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5437. // to return a list of gateways for your account and region.
  5438. GatewayARN *string `min:"50" type:"string"`
  5439. Marker *string `min:"1" type:"string"`
  5440. VolumeInfos []*VolumeInfo `type:"list"`
  5441. }
  5442. // String returns the string representation
  5443. func (s ListVolumesOutput) String() string {
  5444. return awsutil.Prettify(s)
  5445. }
  5446. // GoString returns the string representation
  5447. func (s ListVolumesOutput) GoString() string {
  5448. return s.String()
  5449. }
  5450. // Describes a gateway's network interface.
  5451. type NetworkInterface struct {
  5452. _ struct{} `type:"structure"`
  5453. // The Internet Protocol version 4 (IPv4) address of the interface.
  5454. Ipv4Address *string `type:"string"`
  5455. // The Internet Protocol version 6 (IPv6) address of the interface. Currently
  5456. // not supported.
  5457. Ipv6Address *string `type:"string"`
  5458. // The Media Access Control (MAC) address of the interface.
  5459. //
  5460. // This is currently unsupported and will not be returned in output.
  5461. MacAddress *string `type:"string"`
  5462. }
  5463. // String returns the string representation
  5464. func (s NetworkInterface) String() string {
  5465. return awsutil.Prettify(s)
  5466. }
  5467. // GoString returns the string representation
  5468. func (s NetworkInterface) GoString() string {
  5469. return s.String()
  5470. }
  5471. // RemoveTagsFromResourceInput
  5472. type RemoveTagsFromResourceInput struct {
  5473. _ struct{} `type:"structure"`
  5474. // The Amazon Resource Name (ARN) of the resource you want to remove the tags
  5475. // from.
  5476. ResourceARN *string `min:"50" type:"string" required:"true"`
  5477. // The keys of the tags you want to remove from the specified resource. A tag
  5478. // is composed of a key/value pair.
  5479. TagKeys []*string `type:"list" required:"true"`
  5480. }
  5481. // String returns the string representation
  5482. func (s RemoveTagsFromResourceInput) String() string {
  5483. return awsutil.Prettify(s)
  5484. }
  5485. // GoString returns the string representation
  5486. func (s RemoveTagsFromResourceInput) GoString() string {
  5487. return s.String()
  5488. }
  5489. // Validate inspects the fields of the type to determine if they are valid.
  5490. func (s *RemoveTagsFromResourceInput) Validate() error {
  5491. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
  5492. if s.ResourceARN == nil {
  5493. invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
  5494. }
  5495. if s.ResourceARN != nil && len(*s.ResourceARN) < 50 {
  5496. invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 50))
  5497. }
  5498. if s.TagKeys == nil {
  5499. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  5500. }
  5501. if invalidParams.Len() > 0 {
  5502. return invalidParams
  5503. }
  5504. return nil
  5505. }
  5506. // RemoveTagsFromResourceOutput
  5507. type RemoveTagsFromResourceOutput struct {
  5508. _ struct{} `type:"structure"`
  5509. // The Amazon Resource Name (ARN) of the resource that the tags were removed
  5510. // from.
  5511. ResourceARN *string `min:"50" type:"string"`
  5512. }
  5513. // String returns the string representation
  5514. func (s RemoveTagsFromResourceOutput) String() string {
  5515. return awsutil.Prettify(s)
  5516. }
  5517. // GoString returns the string representation
  5518. func (s RemoveTagsFromResourceOutput) GoString() string {
  5519. return s.String()
  5520. }
  5521. type ResetCacheInput struct {
  5522. _ struct{} `type:"structure"`
  5523. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5524. // to return a list of gateways for your account and region.
  5525. GatewayARN *string `min:"50" type:"string" required:"true"`
  5526. }
  5527. // String returns the string representation
  5528. func (s ResetCacheInput) String() string {
  5529. return awsutil.Prettify(s)
  5530. }
  5531. // GoString returns the string representation
  5532. func (s ResetCacheInput) GoString() string {
  5533. return s.String()
  5534. }
  5535. // Validate inspects the fields of the type to determine if they are valid.
  5536. func (s *ResetCacheInput) Validate() error {
  5537. invalidParams := request.ErrInvalidParams{Context: "ResetCacheInput"}
  5538. if s.GatewayARN == nil {
  5539. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  5540. }
  5541. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  5542. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  5543. }
  5544. if invalidParams.Len() > 0 {
  5545. return invalidParams
  5546. }
  5547. return nil
  5548. }
  5549. type ResetCacheOutput struct {
  5550. _ struct{} `type:"structure"`
  5551. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5552. // to return a list of gateways for your account and region.
  5553. GatewayARN *string `min:"50" type:"string"`
  5554. }
  5555. // String returns the string representation
  5556. func (s ResetCacheOutput) String() string {
  5557. return awsutil.Prettify(s)
  5558. }
  5559. // GoString returns the string representation
  5560. func (s ResetCacheOutput) GoString() string {
  5561. return s.String()
  5562. }
  5563. // RetrieveTapeArchiveInput
  5564. type RetrieveTapeArchiveInput struct {
  5565. _ struct{} `type:"structure"`
  5566. // The Amazon Resource Name (ARN) of the gateway you want to retrieve the virtual
  5567. // tape to. Use the ListGateways operation to return a list of gateways for
  5568. // your account and region.
  5569. //
  5570. // You retrieve archived virtual tapes to only one gateway and the gateway
  5571. // must be a gateway-VTL.
  5572. GatewayARN *string `min:"50" type:"string" required:"true"`
  5573. // The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from
  5574. // the virtual tape shelf (VTS).
  5575. TapeARN *string `min:"50" type:"string" required:"true"`
  5576. }
  5577. // String returns the string representation
  5578. func (s RetrieveTapeArchiveInput) String() string {
  5579. return awsutil.Prettify(s)
  5580. }
  5581. // GoString returns the string representation
  5582. func (s RetrieveTapeArchiveInput) GoString() string {
  5583. return s.String()
  5584. }
  5585. // Validate inspects the fields of the type to determine if they are valid.
  5586. func (s *RetrieveTapeArchiveInput) Validate() error {
  5587. invalidParams := request.ErrInvalidParams{Context: "RetrieveTapeArchiveInput"}
  5588. if s.GatewayARN == nil {
  5589. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  5590. }
  5591. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  5592. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  5593. }
  5594. if s.TapeARN == nil {
  5595. invalidParams.Add(request.NewErrParamRequired("TapeARN"))
  5596. }
  5597. if s.TapeARN != nil && len(*s.TapeARN) < 50 {
  5598. invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50))
  5599. }
  5600. if invalidParams.Len() > 0 {
  5601. return invalidParams
  5602. }
  5603. return nil
  5604. }
  5605. // RetrieveTapeArchiveOutput
  5606. type RetrieveTapeArchiveOutput struct {
  5607. _ struct{} `type:"structure"`
  5608. // The Amazon Resource Name (ARN) of the retrieved virtual tape.
  5609. TapeARN *string `min:"50" type:"string"`
  5610. }
  5611. // String returns the string representation
  5612. func (s RetrieveTapeArchiveOutput) String() string {
  5613. return awsutil.Prettify(s)
  5614. }
  5615. // GoString returns the string representation
  5616. func (s RetrieveTapeArchiveOutput) GoString() string {
  5617. return s.String()
  5618. }
  5619. // RetrieveTapeRecoveryPointInput
  5620. type RetrieveTapeRecoveryPointInput struct {
  5621. _ struct{} `type:"structure"`
  5622. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5623. // to return a list of gateways for your account and region.
  5624. GatewayARN *string `min:"50" type:"string" required:"true"`
  5625. // The Amazon Resource Name (ARN) of the virtual tape for which you want to
  5626. // retrieve the recovery point.
  5627. TapeARN *string `min:"50" type:"string" required:"true"`
  5628. }
  5629. // String returns the string representation
  5630. func (s RetrieveTapeRecoveryPointInput) String() string {
  5631. return awsutil.Prettify(s)
  5632. }
  5633. // GoString returns the string representation
  5634. func (s RetrieveTapeRecoveryPointInput) GoString() string {
  5635. return s.String()
  5636. }
  5637. // Validate inspects the fields of the type to determine if they are valid.
  5638. func (s *RetrieveTapeRecoveryPointInput) Validate() error {
  5639. invalidParams := request.ErrInvalidParams{Context: "RetrieveTapeRecoveryPointInput"}
  5640. if s.GatewayARN == nil {
  5641. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  5642. }
  5643. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  5644. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  5645. }
  5646. if s.TapeARN == nil {
  5647. invalidParams.Add(request.NewErrParamRequired("TapeARN"))
  5648. }
  5649. if s.TapeARN != nil && len(*s.TapeARN) < 50 {
  5650. invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50))
  5651. }
  5652. if invalidParams.Len() > 0 {
  5653. return invalidParams
  5654. }
  5655. return nil
  5656. }
  5657. // RetrieveTapeRecoveryPointOutput
  5658. type RetrieveTapeRecoveryPointOutput struct {
  5659. _ struct{} `type:"structure"`
  5660. // The Amazon Resource Name (ARN) of the virtual tape for which the recovery
  5661. // point was retrieved.
  5662. TapeARN *string `min:"50" type:"string"`
  5663. }
  5664. // String returns the string representation
  5665. func (s RetrieveTapeRecoveryPointOutput) String() string {
  5666. return awsutil.Prettify(s)
  5667. }
  5668. // GoString returns the string representation
  5669. func (s RetrieveTapeRecoveryPointOutput) GoString() string {
  5670. return s.String()
  5671. }
  5672. // SetLocalConsolePasswordInput
  5673. type SetLocalConsolePasswordInput struct {
  5674. _ struct{} `type:"structure"`
  5675. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5676. // to return a list of gateways for your account and region.
  5677. GatewayARN *string `min:"50" type:"string" required:"true"`
  5678. // The password you want to set for your VM local console.
  5679. LocalConsolePassword *string `min:"6" type:"string" required:"true"`
  5680. }
  5681. // String returns the string representation
  5682. func (s SetLocalConsolePasswordInput) String() string {
  5683. return awsutil.Prettify(s)
  5684. }
  5685. // GoString returns the string representation
  5686. func (s SetLocalConsolePasswordInput) GoString() string {
  5687. return s.String()
  5688. }
  5689. // Validate inspects the fields of the type to determine if they are valid.
  5690. func (s *SetLocalConsolePasswordInput) Validate() error {
  5691. invalidParams := request.ErrInvalidParams{Context: "SetLocalConsolePasswordInput"}
  5692. if s.GatewayARN == nil {
  5693. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  5694. }
  5695. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  5696. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  5697. }
  5698. if s.LocalConsolePassword == nil {
  5699. invalidParams.Add(request.NewErrParamRequired("LocalConsolePassword"))
  5700. }
  5701. if s.LocalConsolePassword != nil && len(*s.LocalConsolePassword) < 6 {
  5702. invalidParams.Add(request.NewErrParamMinLen("LocalConsolePassword", 6))
  5703. }
  5704. if invalidParams.Len() > 0 {
  5705. return invalidParams
  5706. }
  5707. return nil
  5708. }
  5709. type SetLocalConsolePasswordOutput struct {
  5710. _ struct{} `type:"structure"`
  5711. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5712. // to return a list of gateways for your account and region.
  5713. GatewayARN *string `min:"50" type:"string"`
  5714. }
  5715. // String returns the string representation
  5716. func (s SetLocalConsolePasswordOutput) String() string {
  5717. return awsutil.Prettify(s)
  5718. }
  5719. // GoString returns the string representation
  5720. func (s SetLocalConsolePasswordOutput) GoString() string {
  5721. return s.String()
  5722. }
  5723. // A JSON object containing the of the gateway to shut down.
  5724. type ShutdownGatewayInput struct {
  5725. _ struct{} `type:"structure"`
  5726. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5727. // to return a list of gateways for your account and region.
  5728. GatewayARN *string `min:"50" type:"string" required:"true"`
  5729. }
  5730. // String returns the string representation
  5731. func (s ShutdownGatewayInput) String() string {
  5732. return awsutil.Prettify(s)
  5733. }
  5734. // GoString returns the string representation
  5735. func (s ShutdownGatewayInput) GoString() string {
  5736. return s.String()
  5737. }
  5738. // Validate inspects the fields of the type to determine if they are valid.
  5739. func (s *ShutdownGatewayInput) Validate() error {
  5740. invalidParams := request.ErrInvalidParams{Context: "ShutdownGatewayInput"}
  5741. if s.GatewayARN == nil {
  5742. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  5743. }
  5744. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  5745. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  5746. }
  5747. if invalidParams.Len() > 0 {
  5748. return invalidParams
  5749. }
  5750. return nil
  5751. }
  5752. // A JSON object containing the of the gateway that was shut down.
  5753. type ShutdownGatewayOutput struct {
  5754. _ struct{} `type:"structure"`
  5755. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5756. // to return a list of gateways for your account and region.
  5757. GatewayARN *string `min:"50" type:"string"`
  5758. }
  5759. // String returns the string representation
  5760. func (s ShutdownGatewayOutput) String() string {
  5761. return awsutil.Prettify(s)
  5762. }
  5763. // GoString returns the string representation
  5764. func (s ShutdownGatewayOutput) GoString() string {
  5765. return s.String()
  5766. }
  5767. // A JSON object containing the of the gateway to start.
  5768. type StartGatewayInput struct {
  5769. _ struct{} `type:"structure"`
  5770. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5771. // to return a list of gateways for your account and region.
  5772. GatewayARN *string `min:"50" type:"string" required:"true"`
  5773. }
  5774. // String returns the string representation
  5775. func (s StartGatewayInput) String() string {
  5776. return awsutil.Prettify(s)
  5777. }
  5778. // GoString returns the string representation
  5779. func (s StartGatewayInput) GoString() string {
  5780. return s.String()
  5781. }
  5782. // Validate inspects the fields of the type to determine if they are valid.
  5783. func (s *StartGatewayInput) Validate() error {
  5784. invalidParams := request.ErrInvalidParams{Context: "StartGatewayInput"}
  5785. if s.GatewayARN == nil {
  5786. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  5787. }
  5788. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  5789. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  5790. }
  5791. if invalidParams.Len() > 0 {
  5792. return invalidParams
  5793. }
  5794. return nil
  5795. }
  5796. // A JSON object containing the of the gateway that was restarted.
  5797. type StartGatewayOutput struct {
  5798. _ struct{} `type:"structure"`
  5799. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5800. // to return a list of gateways for your account and region.
  5801. GatewayARN *string `min:"50" type:"string"`
  5802. }
  5803. // String returns the string representation
  5804. func (s StartGatewayOutput) String() string {
  5805. return awsutil.Prettify(s)
  5806. }
  5807. // GoString returns the string representation
  5808. func (s StartGatewayOutput) GoString() string {
  5809. return s.String()
  5810. }
  5811. type StorediSCSIVolume struct {
  5812. _ struct{} `type:"structure"`
  5813. PreservedExistingData *bool `type:"boolean"`
  5814. SourceSnapshotId *string `type:"string"`
  5815. VolumeARN *string `min:"50" type:"string"`
  5816. VolumeDiskId *string `min:"1" type:"string"`
  5817. VolumeId *string `min:"12" type:"string"`
  5818. VolumeProgress *float64 `type:"double"`
  5819. VolumeSizeInBytes *int64 `type:"long"`
  5820. VolumeStatus *string `min:"3" type:"string"`
  5821. VolumeType *string `min:"3" type:"string"`
  5822. // Lists iSCSI information about a volume.
  5823. VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"`
  5824. }
  5825. // String returns the string representation
  5826. func (s StorediSCSIVolume) String() string {
  5827. return awsutil.Prettify(s)
  5828. }
  5829. // GoString returns the string representation
  5830. func (s StorediSCSIVolume) GoString() string {
  5831. return s.String()
  5832. }
  5833. type Tag struct {
  5834. _ struct{} `type:"structure"`
  5835. Key *string `min:"1" type:"string" required:"true"`
  5836. Value *string `type:"string" required:"true"`
  5837. }
  5838. // String returns the string representation
  5839. func (s Tag) String() string {
  5840. return awsutil.Prettify(s)
  5841. }
  5842. // GoString returns the string representation
  5843. func (s Tag) GoString() string {
  5844. return s.String()
  5845. }
  5846. // Validate inspects the fields of the type to determine if they are valid.
  5847. func (s *Tag) Validate() error {
  5848. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  5849. if s.Key == nil {
  5850. invalidParams.Add(request.NewErrParamRequired("Key"))
  5851. }
  5852. if s.Key != nil && len(*s.Key) < 1 {
  5853. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  5854. }
  5855. if s.Value == nil {
  5856. invalidParams.Add(request.NewErrParamRequired("Value"))
  5857. }
  5858. if invalidParams.Len() > 0 {
  5859. return invalidParams
  5860. }
  5861. return nil
  5862. }
  5863. // Describes a virtual tape object.
  5864. type Tape struct {
  5865. _ struct{} `type:"structure"`
  5866. // For archiving virtual tapes, indicates how much data remains to be uploaded
  5867. // before archiving is complete.
  5868. //
  5869. // Range: 0 (not started) to 100 (complete).
  5870. Progress *float64 `type:"double"`
  5871. // The Amazon Resource Name (ARN) of the virtual tape.
  5872. TapeARN *string `min:"50" type:"string"`
  5873. // The barcode that identifies a specific virtual tape.
  5874. TapeBarcode *string `min:"7" type:"string"`
  5875. // The size, in bytes, of the virtual tape.
  5876. TapeSizeInBytes *int64 `type:"long"`
  5877. // The current state of the virtual tape.
  5878. TapeStatus *string `type:"string"`
  5879. // The virtual tape library (VTL) device that the virtual tape is associated
  5880. // with.
  5881. VTLDevice *string `min:"50" type:"string"`
  5882. }
  5883. // String returns the string representation
  5884. func (s Tape) String() string {
  5885. return awsutil.Prettify(s)
  5886. }
  5887. // GoString returns the string representation
  5888. func (s Tape) GoString() string {
  5889. return s.String()
  5890. }
  5891. // Represents a virtual tape that is archived in the virtual tape shelf (VTS).
  5892. type TapeArchive struct {
  5893. _ struct{} `type:"structure"`
  5894. // The time that the archiving of the virtual tape was completed.
  5895. //
  5896. // The string format of the completion time is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z'
  5897. // format.
  5898. CompletionTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  5899. // The Amazon Resource Name (ARN) of the gateway-VTL that the virtual tape is
  5900. // being retrieved to.
  5901. //
  5902. // The virtual tape is retrieved from the virtual tape shelf (VTS).
  5903. RetrievedTo *string `min:"50" type:"string"`
  5904. // The Amazon Resource Name (ARN) of an archived virtual tape.
  5905. TapeARN *string `min:"50" type:"string"`
  5906. // The barcode that identifies the archived virtual tape.
  5907. TapeBarcode *string `min:"7" type:"string"`
  5908. // The size, in bytes, of the archived virtual tape.
  5909. TapeSizeInBytes *int64 `type:"long"`
  5910. // The current state of the archived virtual tape.
  5911. TapeStatus *string `type:"string"`
  5912. }
  5913. // String returns the string representation
  5914. func (s TapeArchive) String() string {
  5915. return awsutil.Prettify(s)
  5916. }
  5917. // GoString returns the string representation
  5918. func (s TapeArchive) GoString() string {
  5919. return s.String()
  5920. }
  5921. // Describes a virtual tape.
  5922. type TapeInfo struct {
  5923. _ struct{} `type:"structure"`
  5924. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5925. // to return a list of gateways for your account and region.
  5926. GatewayARN *string `min:"50" type:"string"`
  5927. // The Amazon Resource Name (ARN) of a virtual tape.
  5928. TapeARN *string `min:"50" type:"string"`
  5929. // The barcode that identifies a specific virtual tape.
  5930. TapeBarcode *string `min:"7" type:"string"`
  5931. // The size, in bytes, of a virtual tape.
  5932. TapeSizeInBytes *int64 `type:"long"`
  5933. // The status of the tape.
  5934. TapeStatus *string `type:"string"`
  5935. }
  5936. // String returns the string representation
  5937. func (s TapeInfo) String() string {
  5938. return awsutil.Prettify(s)
  5939. }
  5940. // GoString returns the string representation
  5941. func (s TapeInfo) GoString() string {
  5942. return s.String()
  5943. }
  5944. // Describes a recovery point.
  5945. type TapeRecoveryPointInfo struct {
  5946. _ struct{} `type:"structure"`
  5947. // The Amazon Resource Name (ARN) of the virtual tape.
  5948. TapeARN *string `min:"50" type:"string"`
  5949. // The time when the point-in-time view of the virtual tape was replicated for
  5950. // later recovery.
  5951. //
  5952. // The string format of the tape recovery point time is in the ISO8601 extended
  5953. // YYYY-MM-DD'T'HH:MM:SS'Z' format.
  5954. TapeRecoveryPointTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  5955. // The size, in bytes, of the virtual tapes to recover.
  5956. TapeSizeInBytes *int64 `type:"long"`
  5957. TapeStatus *string `type:"string"`
  5958. }
  5959. // String returns the string representation
  5960. func (s TapeRecoveryPointInfo) String() string {
  5961. return awsutil.Prettify(s)
  5962. }
  5963. // GoString returns the string representation
  5964. func (s TapeRecoveryPointInfo) GoString() string {
  5965. return s.String()
  5966. }
  5967. // A JSON object containing one or more of the following fields:
  5968. //
  5969. // UpdateBandwidthRateLimitInput$AverageDownloadRateLimitInBitsPerSec
  5970. //
  5971. // UpdateBandwidthRateLimitInput$AverageUploadRateLimitInBitsPerSec
  5972. type UpdateBandwidthRateLimitInput struct {
  5973. _ struct{} `type:"structure"`
  5974. // The average download bandwidth rate limit in bits per second.
  5975. AverageDownloadRateLimitInBitsPerSec *int64 `min:"102400" type:"long"`
  5976. // The average upload bandwidth rate limit in bits per second.
  5977. AverageUploadRateLimitInBitsPerSec *int64 `min:"51200" type:"long"`
  5978. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  5979. // to return a list of gateways for your account and region.
  5980. GatewayARN *string `min:"50" type:"string" required:"true"`
  5981. }
  5982. // String returns the string representation
  5983. func (s UpdateBandwidthRateLimitInput) String() string {
  5984. return awsutil.Prettify(s)
  5985. }
  5986. // GoString returns the string representation
  5987. func (s UpdateBandwidthRateLimitInput) GoString() string {
  5988. return s.String()
  5989. }
  5990. // Validate inspects the fields of the type to determine if they are valid.
  5991. func (s *UpdateBandwidthRateLimitInput) Validate() error {
  5992. invalidParams := request.ErrInvalidParams{Context: "UpdateBandwidthRateLimitInput"}
  5993. if s.AverageDownloadRateLimitInBitsPerSec != nil && *s.AverageDownloadRateLimitInBitsPerSec < 102400 {
  5994. invalidParams.Add(request.NewErrParamMinValue("AverageDownloadRateLimitInBitsPerSec", 102400))
  5995. }
  5996. if s.AverageUploadRateLimitInBitsPerSec != nil && *s.AverageUploadRateLimitInBitsPerSec < 51200 {
  5997. invalidParams.Add(request.NewErrParamMinValue("AverageUploadRateLimitInBitsPerSec", 51200))
  5998. }
  5999. if s.GatewayARN == nil {
  6000. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  6001. }
  6002. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  6003. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  6004. }
  6005. if invalidParams.Len() > 0 {
  6006. return invalidParams
  6007. }
  6008. return nil
  6009. }
  6010. // A JSON object containing the of the gateway whose throttle information was
  6011. // updated.
  6012. type UpdateBandwidthRateLimitOutput struct {
  6013. _ struct{} `type:"structure"`
  6014. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  6015. // to return a list of gateways for your account and region.
  6016. GatewayARN *string `min:"50" type:"string"`
  6017. }
  6018. // String returns the string representation
  6019. func (s UpdateBandwidthRateLimitOutput) String() string {
  6020. return awsutil.Prettify(s)
  6021. }
  6022. // GoString returns the string representation
  6023. func (s UpdateBandwidthRateLimitOutput) GoString() string {
  6024. return s.String()
  6025. }
  6026. // A JSON object containing one or more of the following fields:
  6027. //
  6028. // UpdateChapCredentialsInput$InitiatorName
  6029. //
  6030. // UpdateChapCredentialsInput$SecretToAuthenticateInitiator
  6031. //
  6032. // UpdateChapCredentialsInput$SecretToAuthenticateTarget
  6033. //
  6034. // UpdateChapCredentialsInput$TargetARN
  6035. type UpdateChapCredentialsInput struct {
  6036. _ struct{} `type:"structure"`
  6037. // The iSCSI initiator that connects to the target.
  6038. InitiatorName *string `min:"1" type:"string" required:"true"`
  6039. // The secret key that the initiator (for example, the Windows client) must
  6040. // provide to participate in mutual CHAP with the target.
  6041. //
  6042. // The secret key must be between 12 and 16 bytes when encoded in UTF-8.
  6043. SecretToAuthenticateInitiator *string `min:"1" type:"string" required:"true"`
  6044. // The secret key that the target must provide to participate in mutual CHAP
  6045. // with the initiator (e.g. Windows client).
  6046. //
  6047. // Byte constraints: Minimum bytes of 12. Maximum bytes of 16.
  6048. //
  6049. // The secret key must be between 12 and 16 bytes when encoded in UTF-8.
  6050. SecretToAuthenticateTarget *string `min:"1" type:"string"`
  6051. // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes
  6052. // operation to return the TargetARN for specified VolumeARN.
  6053. TargetARN *string `min:"50" type:"string" required:"true"`
  6054. }
  6055. // String returns the string representation
  6056. func (s UpdateChapCredentialsInput) String() string {
  6057. return awsutil.Prettify(s)
  6058. }
  6059. // GoString returns the string representation
  6060. func (s UpdateChapCredentialsInput) GoString() string {
  6061. return s.String()
  6062. }
  6063. // Validate inspects the fields of the type to determine if they are valid.
  6064. func (s *UpdateChapCredentialsInput) Validate() error {
  6065. invalidParams := request.ErrInvalidParams{Context: "UpdateChapCredentialsInput"}
  6066. if s.InitiatorName == nil {
  6067. invalidParams.Add(request.NewErrParamRequired("InitiatorName"))
  6068. }
  6069. if s.InitiatorName != nil && len(*s.InitiatorName) < 1 {
  6070. invalidParams.Add(request.NewErrParamMinLen("InitiatorName", 1))
  6071. }
  6072. if s.SecretToAuthenticateInitiator == nil {
  6073. invalidParams.Add(request.NewErrParamRequired("SecretToAuthenticateInitiator"))
  6074. }
  6075. if s.SecretToAuthenticateInitiator != nil && len(*s.SecretToAuthenticateInitiator) < 1 {
  6076. invalidParams.Add(request.NewErrParamMinLen("SecretToAuthenticateInitiator", 1))
  6077. }
  6078. if s.SecretToAuthenticateTarget != nil && len(*s.SecretToAuthenticateTarget) < 1 {
  6079. invalidParams.Add(request.NewErrParamMinLen("SecretToAuthenticateTarget", 1))
  6080. }
  6081. if s.TargetARN == nil {
  6082. invalidParams.Add(request.NewErrParamRequired("TargetARN"))
  6083. }
  6084. if s.TargetARN != nil && len(*s.TargetARN) < 50 {
  6085. invalidParams.Add(request.NewErrParamMinLen("TargetARN", 50))
  6086. }
  6087. if invalidParams.Len() > 0 {
  6088. return invalidParams
  6089. }
  6090. return nil
  6091. }
  6092. // A JSON object containing the following fields:
  6093. type UpdateChapCredentialsOutput struct {
  6094. _ struct{} `type:"structure"`
  6095. // The iSCSI initiator that connects to the target. This is the same initiator
  6096. // name specified in the request.
  6097. InitiatorName *string `min:"1" type:"string"`
  6098. // The Amazon Resource Name (ARN) of the target. This is the same target specified
  6099. // in the request.
  6100. TargetARN *string `min:"50" type:"string"`
  6101. }
  6102. // String returns the string representation
  6103. func (s UpdateChapCredentialsOutput) String() string {
  6104. return awsutil.Prettify(s)
  6105. }
  6106. // GoString returns the string representation
  6107. func (s UpdateChapCredentialsOutput) GoString() string {
  6108. return s.String()
  6109. }
  6110. type UpdateGatewayInformationInput struct {
  6111. _ struct{} `type:"structure"`
  6112. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  6113. // to return a list of gateways for your account and region.
  6114. GatewayARN *string `min:"50" type:"string" required:"true"`
  6115. // The name you configured for your gateway.
  6116. GatewayName *string `min:"2" type:"string"`
  6117. GatewayTimezone *string `min:"3" type:"string"`
  6118. }
  6119. // String returns the string representation
  6120. func (s UpdateGatewayInformationInput) String() string {
  6121. return awsutil.Prettify(s)
  6122. }
  6123. // GoString returns the string representation
  6124. func (s UpdateGatewayInformationInput) GoString() string {
  6125. return s.String()
  6126. }
  6127. // Validate inspects the fields of the type to determine if they are valid.
  6128. func (s *UpdateGatewayInformationInput) Validate() error {
  6129. invalidParams := request.ErrInvalidParams{Context: "UpdateGatewayInformationInput"}
  6130. if s.GatewayARN == nil {
  6131. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  6132. }
  6133. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  6134. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  6135. }
  6136. if s.GatewayName != nil && len(*s.GatewayName) < 2 {
  6137. invalidParams.Add(request.NewErrParamMinLen("GatewayName", 2))
  6138. }
  6139. if s.GatewayTimezone != nil && len(*s.GatewayTimezone) < 3 {
  6140. invalidParams.Add(request.NewErrParamMinLen("GatewayTimezone", 3))
  6141. }
  6142. if invalidParams.Len() > 0 {
  6143. return invalidParams
  6144. }
  6145. return nil
  6146. }
  6147. // A JSON object containing the ARN of the gateway that was updated.
  6148. type UpdateGatewayInformationOutput struct {
  6149. _ struct{} `type:"structure"`
  6150. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  6151. // to return a list of gateways for your account and region.
  6152. GatewayARN *string `min:"50" type:"string"`
  6153. GatewayName *string `type:"string"`
  6154. }
  6155. // String returns the string representation
  6156. func (s UpdateGatewayInformationOutput) String() string {
  6157. return awsutil.Prettify(s)
  6158. }
  6159. // GoString returns the string representation
  6160. func (s UpdateGatewayInformationOutput) GoString() string {
  6161. return s.String()
  6162. }
  6163. // A JSON object containing the of the gateway to update.
  6164. type UpdateGatewaySoftwareNowInput struct {
  6165. _ struct{} `type:"structure"`
  6166. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  6167. // to return a list of gateways for your account and region.
  6168. GatewayARN *string `min:"50" type:"string" required:"true"`
  6169. }
  6170. // String returns the string representation
  6171. func (s UpdateGatewaySoftwareNowInput) String() string {
  6172. return awsutil.Prettify(s)
  6173. }
  6174. // GoString returns the string representation
  6175. func (s UpdateGatewaySoftwareNowInput) GoString() string {
  6176. return s.String()
  6177. }
  6178. // Validate inspects the fields of the type to determine if they are valid.
  6179. func (s *UpdateGatewaySoftwareNowInput) Validate() error {
  6180. invalidParams := request.ErrInvalidParams{Context: "UpdateGatewaySoftwareNowInput"}
  6181. if s.GatewayARN == nil {
  6182. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  6183. }
  6184. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  6185. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  6186. }
  6187. if invalidParams.Len() > 0 {
  6188. return invalidParams
  6189. }
  6190. return nil
  6191. }
  6192. // A JSON object containing the of the gateway that was updated.
  6193. type UpdateGatewaySoftwareNowOutput struct {
  6194. _ struct{} `type:"structure"`
  6195. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  6196. // to return a list of gateways for your account and region.
  6197. GatewayARN *string `min:"50" type:"string"`
  6198. }
  6199. // String returns the string representation
  6200. func (s UpdateGatewaySoftwareNowOutput) String() string {
  6201. return awsutil.Prettify(s)
  6202. }
  6203. // GoString returns the string representation
  6204. func (s UpdateGatewaySoftwareNowOutput) GoString() string {
  6205. return s.String()
  6206. }
  6207. // A JSON object containing the following fields:
  6208. //
  6209. // UpdateMaintenanceStartTimeInput$DayOfWeek
  6210. //
  6211. // UpdateMaintenanceStartTimeInput$HourOfDay
  6212. //
  6213. // UpdateMaintenanceStartTimeInput$MinuteOfHour
  6214. type UpdateMaintenanceStartTimeInput struct {
  6215. _ struct{} `type:"structure"`
  6216. // The maintenance start time day of the week.
  6217. DayOfWeek *int64 `type:"integer" required:"true"`
  6218. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  6219. // to return a list of gateways for your account and region.
  6220. GatewayARN *string `min:"50" type:"string" required:"true"`
  6221. // The hour component of the maintenance start time represented as hh, where
  6222. // hh is the hour (00 to 23). The hour of the day is in the time zone of the
  6223. // gateway.
  6224. HourOfDay *int64 `type:"integer" required:"true"`
  6225. // The minute component of the maintenance start time represented as mm, where
  6226. // mm is the minute (00 to 59). The minute of the hour is in the time zone of
  6227. // the gateway.
  6228. MinuteOfHour *int64 `type:"integer" required:"true"`
  6229. }
  6230. // String returns the string representation
  6231. func (s UpdateMaintenanceStartTimeInput) String() string {
  6232. return awsutil.Prettify(s)
  6233. }
  6234. // GoString returns the string representation
  6235. func (s UpdateMaintenanceStartTimeInput) GoString() string {
  6236. return s.String()
  6237. }
  6238. // Validate inspects the fields of the type to determine if they are valid.
  6239. func (s *UpdateMaintenanceStartTimeInput) Validate() error {
  6240. invalidParams := request.ErrInvalidParams{Context: "UpdateMaintenanceStartTimeInput"}
  6241. if s.DayOfWeek == nil {
  6242. invalidParams.Add(request.NewErrParamRequired("DayOfWeek"))
  6243. }
  6244. if s.GatewayARN == nil {
  6245. invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  6246. }
  6247. if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  6248. invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  6249. }
  6250. if s.HourOfDay == nil {
  6251. invalidParams.Add(request.NewErrParamRequired("HourOfDay"))
  6252. }
  6253. if s.MinuteOfHour == nil {
  6254. invalidParams.Add(request.NewErrParamRequired("MinuteOfHour"))
  6255. }
  6256. if invalidParams.Len() > 0 {
  6257. return invalidParams
  6258. }
  6259. return nil
  6260. }
  6261. // A JSON object containing the of the gateway whose maintenance start time
  6262. // is updated.
  6263. type UpdateMaintenanceStartTimeOutput struct {
  6264. _ struct{} `type:"structure"`
  6265. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  6266. // to return a list of gateways for your account and region.
  6267. GatewayARN *string `min:"50" type:"string"`
  6268. }
  6269. // String returns the string representation
  6270. func (s UpdateMaintenanceStartTimeOutput) String() string {
  6271. return awsutil.Prettify(s)
  6272. }
  6273. // GoString returns the string representation
  6274. func (s UpdateMaintenanceStartTimeOutput) GoString() string {
  6275. return s.String()
  6276. }
  6277. // A JSON object containing one or more of the following fields:
  6278. //
  6279. // UpdateSnapshotScheduleInput$Description
  6280. //
  6281. // UpdateSnapshotScheduleInput$RecurrenceInHours
  6282. //
  6283. // UpdateSnapshotScheduleInput$StartAt
  6284. //
  6285. // UpdateSnapshotScheduleInput$VolumeARN
  6286. type UpdateSnapshotScheduleInput struct {
  6287. _ struct{} `type:"structure"`
  6288. // Optional description of the snapshot that overwrites the existing description.
  6289. Description *string `min:"1" type:"string"`
  6290. // Frequency of snapshots. Specify the number of hours between snapshots.
  6291. RecurrenceInHours *int64 `min:"1" type:"integer" required:"true"`
  6292. // The hour of the day at which the snapshot schedule begins represented as
  6293. // hh, where hh is the hour (0 to 23). The hour of the day is in the time zone
  6294. // of the gateway.
  6295. StartAt *int64 `type:"integer" required:"true"`
  6296. // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
  6297. // to return a list of gateway volumes.
  6298. VolumeARN *string `min:"50" type:"string" required:"true"`
  6299. }
  6300. // String returns the string representation
  6301. func (s UpdateSnapshotScheduleInput) String() string {
  6302. return awsutil.Prettify(s)
  6303. }
  6304. // GoString returns the string representation
  6305. func (s UpdateSnapshotScheduleInput) GoString() string {
  6306. return s.String()
  6307. }
  6308. // Validate inspects the fields of the type to determine if they are valid.
  6309. func (s *UpdateSnapshotScheduleInput) Validate() error {
  6310. invalidParams := request.ErrInvalidParams{Context: "UpdateSnapshotScheduleInput"}
  6311. if s.Description != nil && len(*s.Description) < 1 {
  6312. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  6313. }
  6314. if s.RecurrenceInHours == nil {
  6315. invalidParams.Add(request.NewErrParamRequired("RecurrenceInHours"))
  6316. }
  6317. if s.RecurrenceInHours != nil && *s.RecurrenceInHours < 1 {
  6318. invalidParams.Add(request.NewErrParamMinValue("RecurrenceInHours", 1))
  6319. }
  6320. if s.StartAt == nil {
  6321. invalidParams.Add(request.NewErrParamRequired("StartAt"))
  6322. }
  6323. if s.VolumeARN == nil {
  6324. invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
  6325. }
  6326. if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
  6327. invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
  6328. }
  6329. if invalidParams.Len() > 0 {
  6330. return invalidParams
  6331. }
  6332. return nil
  6333. }
  6334. // A JSON object containing the of the updated storage volume.
  6335. type UpdateSnapshotScheduleOutput struct {
  6336. _ struct{} `type:"structure"`
  6337. VolumeARN *string `min:"50" type:"string"`
  6338. }
  6339. // String returns the string representation
  6340. func (s UpdateSnapshotScheduleOutput) String() string {
  6341. return awsutil.Prettify(s)
  6342. }
  6343. // GoString returns the string representation
  6344. func (s UpdateSnapshotScheduleOutput) GoString() string {
  6345. return s.String()
  6346. }
  6347. type UpdateVTLDeviceTypeInput struct {
  6348. _ struct{} `type:"structure"`
  6349. // The type of medium changer you want to select.
  6350. //
  6351. // Valid Values: "STK-L700", "AWS-Gateway-VTL"
  6352. DeviceType *string `min:"2" type:"string" required:"true"`
  6353. // The Amazon Resource Name (ARN) of the medium changer you want to select.
  6354. VTLDeviceARN *string `min:"50" type:"string" required:"true"`
  6355. }
  6356. // String returns the string representation
  6357. func (s UpdateVTLDeviceTypeInput) String() string {
  6358. return awsutil.Prettify(s)
  6359. }
  6360. // GoString returns the string representation
  6361. func (s UpdateVTLDeviceTypeInput) GoString() string {
  6362. return s.String()
  6363. }
  6364. // Validate inspects the fields of the type to determine if they are valid.
  6365. func (s *UpdateVTLDeviceTypeInput) Validate() error {
  6366. invalidParams := request.ErrInvalidParams{Context: "UpdateVTLDeviceTypeInput"}
  6367. if s.DeviceType == nil {
  6368. invalidParams.Add(request.NewErrParamRequired("DeviceType"))
  6369. }
  6370. if s.DeviceType != nil && len(*s.DeviceType) < 2 {
  6371. invalidParams.Add(request.NewErrParamMinLen("DeviceType", 2))
  6372. }
  6373. if s.VTLDeviceARN == nil {
  6374. invalidParams.Add(request.NewErrParamRequired("VTLDeviceARN"))
  6375. }
  6376. if s.VTLDeviceARN != nil && len(*s.VTLDeviceARN) < 50 {
  6377. invalidParams.Add(request.NewErrParamMinLen("VTLDeviceARN", 50))
  6378. }
  6379. if invalidParams.Len() > 0 {
  6380. return invalidParams
  6381. }
  6382. return nil
  6383. }
  6384. // UpdateVTLDeviceTypeOutput
  6385. type UpdateVTLDeviceTypeOutput struct {
  6386. _ struct{} `type:"structure"`
  6387. // The Amazon Resource Name (ARN) of the medium changer you have selected.
  6388. VTLDeviceARN *string `min:"50" type:"string"`
  6389. }
  6390. // String returns the string representation
  6391. func (s UpdateVTLDeviceTypeOutput) String() string {
  6392. return awsutil.Prettify(s)
  6393. }
  6394. // GoString returns the string representation
  6395. func (s UpdateVTLDeviceTypeOutput) GoString() string {
  6396. return s.String()
  6397. }
  6398. // Represents a device object associated with a gateway-VTL.
  6399. type VTLDevice struct {
  6400. _ struct{} `type:"structure"`
  6401. // A list of iSCSI information about a VTL device.
  6402. DeviceiSCSIAttributes *DeviceiSCSIAttributes `type:"structure"`
  6403. // Specifies the unique Amazon Resource Name (ARN) of the device (tape drive
  6404. // or media changer).
  6405. VTLDeviceARN *string `min:"50" type:"string"`
  6406. VTLDeviceProductIdentifier *string `type:"string"`
  6407. VTLDeviceType *string `type:"string"`
  6408. VTLDeviceVendor *string `type:"string"`
  6409. }
  6410. // String returns the string representation
  6411. func (s VTLDevice) String() string {
  6412. return awsutil.Prettify(s)
  6413. }
  6414. // GoString returns the string representation
  6415. func (s VTLDevice) GoString() string {
  6416. return s.String()
  6417. }
  6418. // Describes a storage volume object.
  6419. type VolumeInfo struct {
  6420. _ struct{} `type:"structure"`
  6421. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  6422. // to return a list of gateways for your account and region.
  6423. GatewayARN *string `min:"50" type:"string"`
  6424. // The unique identifier assigned to your gateway during activation. This ID
  6425. // becomes part of the gateway Amazon Resource Name (ARN), which you use as
  6426. // input for other operations.
  6427. //
  6428. // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens
  6429. // (-).
  6430. GatewayId *string `min:"12" type:"string"`
  6431. // The Amazon Resource Name (ARN) for the storage volume. For example, the following
  6432. // is a valid ARN:
  6433. //
  6434. // arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB
  6435. //
  6436. // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens
  6437. // (-).
  6438. VolumeARN *string `min:"50" type:"string"`
  6439. // The unique identifier assigned to the volume. This ID becomes part of the
  6440. // volume Amazon Resource Name (ARN), which you use as input for other operations.
  6441. //
  6442. // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens
  6443. // (-).
  6444. VolumeId *string `min:"12" type:"string"`
  6445. // The size, in bytes, of the volume.
  6446. //
  6447. // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens
  6448. // (-).
  6449. VolumeSizeInBytes *int64 `type:"long"`
  6450. VolumeType *string `min:"3" type:"string"`
  6451. }
  6452. // String returns the string representation
  6453. func (s VolumeInfo) String() string {
  6454. return awsutil.Prettify(s)
  6455. }
  6456. // GoString returns the string representation
  6457. func (s VolumeInfo) GoString() string {
  6458. return s.String()
  6459. }
  6460. type VolumeRecoveryPointInfo struct {
  6461. _ struct{} `type:"structure"`
  6462. VolumeARN *string `min:"50" type:"string"`
  6463. VolumeRecoveryPointTime *string `type:"string"`
  6464. VolumeSizeInBytes *int64 `type:"long"`
  6465. VolumeUsageInBytes *int64 `type:"long"`
  6466. }
  6467. // String returns the string representation
  6468. func (s VolumeRecoveryPointInfo) String() string {
  6469. return awsutil.Prettify(s)
  6470. }
  6471. // GoString returns the string representation
  6472. func (s VolumeRecoveryPointInfo) GoString() string {
  6473. return s.String()
  6474. }
  6475. // Lists iSCSI information about a volume.
  6476. type VolumeiSCSIAttributes struct {
  6477. _ struct{} `type:"structure"`
  6478. // Indicates whether mutual CHAP is enabled for the iSCSI target.
  6479. ChapEnabled *bool `type:"boolean"`
  6480. // The logical disk number.
  6481. LunNumber *int64 `min:"1" type:"integer"`
  6482. // The network interface identifier.
  6483. NetworkInterfaceId *string `type:"string"`
  6484. // The port used to communicate with iSCSI targets.
  6485. NetworkInterfacePort *int64 `type:"integer"`
  6486. // The Amazon Resource Name (ARN) of the volume target.
  6487. TargetARN *string `min:"50" type:"string"`
  6488. }
  6489. // String returns the string representation
  6490. func (s VolumeiSCSIAttributes) String() string {
  6491. return awsutil.Prettify(s)
  6492. }
  6493. // GoString returns the string representation
  6494. func (s VolumeiSCSIAttributes) GoString() string {
  6495. return s.String()
  6496. }
  6497. const (
  6498. // @enum ErrorCode
  6499. ErrorCodeActivationKeyExpired = "ActivationKeyExpired"
  6500. // @enum ErrorCode
  6501. ErrorCodeActivationKeyInvalid = "ActivationKeyInvalid"
  6502. // @enum ErrorCode
  6503. ErrorCodeActivationKeyNotFound = "ActivationKeyNotFound"
  6504. // @enum ErrorCode
  6505. ErrorCodeGatewayInternalError = "GatewayInternalError"
  6506. // @enum ErrorCode
  6507. ErrorCodeGatewayNotConnected = "GatewayNotConnected"
  6508. // @enum ErrorCode
  6509. ErrorCodeGatewayNotFound = "GatewayNotFound"
  6510. // @enum ErrorCode
  6511. ErrorCodeGatewayProxyNetworkConnectionBusy = "GatewayProxyNetworkConnectionBusy"
  6512. // @enum ErrorCode
  6513. ErrorCodeAuthenticationFailure = "AuthenticationFailure"
  6514. // @enum ErrorCode
  6515. ErrorCodeBandwidthThrottleScheduleNotFound = "BandwidthThrottleScheduleNotFound"
  6516. // @enum ErrorCode
  6517. ErrorCodeBlocked = "Blocked"
  6518. // @enum ErrorCode
  6519. ErrorCodeCannotExportSnapshot = "CannotExportSnapshot"
  6520. // @enum ErrorCode
  6521. ErrorCodeChapCredentialNotFound = "ChapCredentialNotFound"
  6522. // @enum ErrorCode
  6523. ErrorCodeDiskAlreadyAllocated = "DiskAlreadyAllocated"
  6524. // @enum ErrorCode
  6525. ErrorCodeDiskDoesNotExist = "DiskDoesNotExist"
  6526. // @enum ErrorCode
  6527. ErrorCodeDiskSizeGreaterThanVolumeMaxSize = "DiskSizeGreaterThanVolumeMaxSize"
  6528. // @enum ErrorCode
  6529. ErrorCodeDiskSizeLessThanVolumeSize = "DiskSizeLessThanVolumeSize"
  6530. // @enum ErrorCode
  6531. ErrorCodeDiskSizeNotGigAligned = "DiskSizeNotGigAligned"
  6532. // @enum ErrorCode
  6533. ErrorCodeDuplicateCertificateInfo = "DuplicateCertificateInfo"
  6534. // @enum ErrorCode
  6535. ErrorCodeDuplicateSchedule = "DuplicateSchedule"
  6536. // @enum ErrorCode
  6537. ErrorCodeEndpointNotFound = "EndpointNotFound"
  6538. // @enum ErrorCode
  6539. ErrorCodeIamnotSupported = "IAMNotSupported"
  6540. // @enum ErrorCode
  6541. ErrorCodeInitiatorInvalid = "InitiatorInvalid"
  6542. // @enum ErrorCode
  6543. ErrorCodeInitiatorNotFound = "InitiatorNotFound"
  6544. // @enum ErrorCode
  6545. ErrorCodeInternalError = "InternalError"
  6546. // @enum ErrorCode
  6547. ErrorCodeInvalidGateway = "InvalidGateway"
  6548. // @enum ErrorCode
  6549. ErrorCodeInvalidEndpoint = "InvalidEndpoint"
  6550. // @enum ErrorCode
  6551. ErrorCodeInvalidParameters = "InvalidParameters"
  6552. // @enum ErrorCode
  6553. ErrorCodeInvalidSchedule = "InvalidSchedule"
  6554. // @enum ErrorCode
  6555. ErrorCodeLocalStorageLimitExceeded = "LocalStorageLimitExceeded"
  6556. // @enum ErrorCode
  6557. ErrorCodeLunAlreadyAllocated = "LunAlreadyAllocated "
  6558. // @enum ErrorCode
  6559. ErrorCodeLunInvalid = "LunInvalid"
  6560. // @enum ErrorCode
  6561. ErrorCodeMaximumContentLengthExceeded = "MaximumContentLengthExceeded"
  6562. // @enum ErrorCode
  6563. ErrorCodeMaximumTapeCartridgeCountExceeded = "MaximumTapeCartridgeCountExceeded"
  6564. // @enum ErrorCode
  6565. ErrorCodeMaximumVolumeCountExceeded = "MaximumVolumeCountExceeded"
  6566. // @enum ErrorCode
  6567. ErrorCodeNetworkConfigurationChanged = "NetworkConfigurationChanged"
  6568. // @enum ErrorCode
  6569. ErrorCodeNoDisksAvailable = "NoDisksAvailable"
  6570. // @enum ErrorCode
  6571. ErrorCodeNotImplemented = "NotImplemented"
  6572. // @enum ErrorCode
  6573. ErrorCodeNotSupported = "NotSupported"
  6574. // @enum ErrorCode
  6575. ErrorCodeOperationAborted = "OperationAborted"
  6576. // @enum ErrorCode
  6577. ErrorCodeOutdatedGateway = "OutdatedGateway"
  6578. // @enum ErrorCode
  6579. ErrorCodeParametersNotImplemented = "ParametersNotImplemented"
  6580. // @enum ErrorCode
  6581. ErrorCodeRegionInvalid = "RegionInvalid"
  6582. // @enum ErrorCode
  6583. ErrorCodeRequestTimeout = "RequestTimeout"
  6584. // @enum ErrorCode
  6585. ErrorCodeServiceUnavailable = "ServiceUnavailable"
  6586. // @enum ErrorCode
  6587. ErrorCodeSnapshotDeleted = "SnapshotDeleted"
  6588. // @enum ErrorCode
  6589. ErrorCodeSnapshotIdInvalid = "SnapshotIdInvalid"
  6590. // @enum ErrorCode
  6591. ErrorCodeSnapshotInProgress = "SnapshotInProgress"
  6592. // @enum ErrorCode
  6593. ErrorCodeSnapshotNotFound = "SnapshotNotFound"
  6594. // @enum ErrorCode
  6595. ErrorCodeSnapshotScheduleNotFound = "SnapshotScheduleNotFound"
  6596. // @enum ErrorCode
  6597. ErrorCodeStagingAreaFull = "StagingAreaFull"
  6598. // @enum ErrorCode
  6599. ErrorCodeStorageFailure = "StorageFailure"
  6600. // @enum ErrorCode
  6601. ErrorCodeTapeCartridgeNotFound = "TapeCartridgeNotFound"
  6602. // @enum ErrorCode
  6603. ErrorCodeTargetAlreadyExists = "TargetAlreadyExists"
  6604. // @enum ErrorCode
  6605. ErrorCodeTargetInvalid = "TargetInvalid"
  6606. // @enum ErrorCode
  6607. ErrorCodeTargetNotFound = "TargetNotFound"
  6608. // @enum ErrorCode
  6609. ErrorCodeUnauthorizedOperation = "UnauthorizedOperation"
  6610. // @enum ErrorCode
  6611. ErrorCodeVolumeAlreadyExists = "VolumeAlreadyExists"
  6612. // @enum ErrorCode
  6613. ErrorCodeVolumeIdInvalid = "VolumeIdInvalid"
  6614. // @enum ErrorCode
  6615. ErrorCodeVolumeInUse = "VolumeInUse"
  6616. // @enum ErrorCode
  6617. ErrorCodeVolumeNotFound = "VolumeNotFound"
  6618. // @enum ErrorCode
  6619. ErrorCodeVolumeNotReady = "VolumeNotReady"
  6620. )