| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package storagegateway provides a client for AWS Storage Gateway.
- package storagegateway
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- )
- const opActivateGateway = "ActivateGateway"
- // ActivateGatewayRequest generates a "aws/request.Request" representing the
- // client's request for the ActivateGateway operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ActivateGateway method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ActivateGatewayRequest method.
- // req, resp := client.ActivateGatewayRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (req *request.Request, output *ActivateGatewayOutput) {
- op := &request.Operation{
- Name: opActivateGateway,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ActivateGatewayInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ActivateGatewayOutput{}
- req.Data = output
- return
- }
- // Activates the gateway you previously deployed on your host. For more information,
- // see Activate the AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/userguide/GettingStartedActivateGateway-common.html).
- // In the activation process, you specify information such as the you want to
- // use for storing snapshots, the time zone for scheduled snapshots the gateway
- // snapshot schedule window, an activation key, and a name for your gateway.
- // The activation process also associates your gateway with your account; for
- // more information, see UpdateGatewayInformation.
- //
- // You must turn on the gateway VM before you can activate your gateway.
- func (c *StorageGateway) ActivateGateway(input *ActivateGatewayInput) (*ActivateGatewayOutput, error) {
- req, out := c.ActivateGatewayRequest(input)
- err := req.Send()
- return out, err
- }
- const opAddCache = "AddCache"
- // AddCacheRequest generates a "aws/request.Request" representing the
- // client's request for the AddCache operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AddCache method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the AddCacheRequest method.
- // req, resp := client.AddCacheRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *request.Request, output *AddCacheOutput) {
- op := &request.Operation{
- Name: opAddCache,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddCacheInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AddCacheOutput{}
- req.Data = output
- return
- }
- // Configures one or more gateway local disks as cache for a cached-volume gateway.
- // This operation is supported only for the gateway-cached volume architecture
- // (see Storage Gateway Concepts (http://docs.aws.amazon.com/storagegateway/latest/userguide/StorageGatewayConcepts.html)).
- //
- // In the request, you specify the gateway Amazon Resource Name (ARN) to which
- // you want to add cache, and one or more disk IDs that you want to configure
- // as cache.
- func (c *StorageGateway) AddCache(input *AddCacheInput) (*AddCacheOutput, error) {
- req, out := c.AddCacheRequest(input)
- err := req.Send()
- return out, err
- }
- const opAddTagsToResource = "AddTagsToResource"
- // AddTagsToResourceRequest generates a "aws/request.Request" representing the
- // client's request for the AddTagsToResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AddTagsToResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the AddTagsToResourceRequest method.
- // req, resp := client.AddTagsToResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput) {
- op := &request.Operation{
- Name: opAddTagsToResource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddTagsToResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AddTagsToResourceOutput{}
- req.Data = output
- return
- }
- // Adds one or more tags to the specified resource. You use tags to add metadata
- // to resources, which you can use to categorize these resources. For example,
- // you can categorize resources by purpose, owner, environment, or team. Each
- // tag consists of a key and a value, which you define. You can add tags to
- // the following AWS Storage Gateway resources:
- //
- // Storage gateways of all types
- //
- // Storage Volumes
- //
- // Virtual Tapes
- //
- // You can create a maximum of 10 tags for each resource. Virtual tapes and
- // storage volumes that are recovered to a new gateway maintain their tags.
- func (c *StorageGateway) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
- req, out := c.AddTagsToResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opAddUploadBuffer = "AddUploadBuffer"
- // AddUploadBufferRequest generates a "aws/request.Request" representing the
- // client's request for the AddUploadBuffer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AddUploadBuffer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the AddUploadBufferRequest method.
- // req, resp := client.AddUploadBufferRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (req *request.Request, output *AddUploadBufferOutput) {
- op := &request.Operation{
- Name: opAddUploadBuffer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddUploadBufferInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AddUploadBufferOutput{}
- req.Data = output
- return
- }
- // Configures one or more gateway local disks as upload buffer for a specified
- // gateway. This operation is supported for both the gateway-stored and gateway-cached
- // volume architectures.
- //
- // In the request, you specify the gateway Amazon Resource Name (ARN) to which
- // you want to add upload buffer, and one or more disk IDs that you want to
- // configure as upload buffer.
- func (c *StorageGateway) AddUploadBuffer(input *AddUploadBufferInput) (*AddUploadBufferOutput, error) {
- req, out := c.AddUploadBufferRequest(input)
- err := req.Send()
- return out, err
- }
- const opAddWorkingStorage = "AddWorkingStorage"
- // AddWorkingStorageRequest generates a "aws/request.Request" representing the
- // client's request for the AddWorkingStorage operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the AddWorkingStorage method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the AddWorkingStorageRequest method.
- // req, resp := client.AddWorkingStorageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) (req *request.Request, output *AddWorkingStorageOutput) {
- op := &request.Operation{
- Name: opAddWorkingStorage,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddWorkingStorageInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AddWorkingStorageOutput{}
- req.Data = output
- return
- }
- // Configures one or more gateway local disks as working storage for a gateway.
- // This operation is supported only for the gateway-stored volume architecture.
- // This operation is deprecated in cached-volumes API version 20120630. Use
- // AddUploadBuffer instead.
- //
- // Working storage is also referred to as upload buffer. You can also use
- // the AddUploadBuffer operation to add upload buffer to a stored-volume gateway.
- //
- // In the request, you specify the gateway Amazon Resource Name (ARN) to which
- // you want to add working storage, and one or more disk IDs that you want to
- // configure as working storage.
- func (c *StorageGateway) AddWorkingStorage(input *AddWorkingStorageInput) (*AddWorkingStorageOutput, error) {
- req, out := c.AddWorkingStorageRequest(input)
- err := req.Send()
- return out, err
- }
- const opCancelArchival = "CancelArchival"
- // CancelArchivalRequest generates a "aws/request.Request" representing the
- // client's request for the CancelArchival operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CancelArchival method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CancelArchivalRequest method.
- // req, resp := client.CancelArchivalRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) CancelArchivalRequest(input *CancelArchivalInput) (req *request.Request, output *CancelArchivalOutput) {
- op := &request.Operation{
- Name: opCancelArchival,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CancelArchivalInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CancelArchivalOutput{}
- req.Data = output
- return
- }
- // Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after
- // the archiving process is initiated.
- func (c *StorageGateway) CancelArchival(input *CancelArchivalInput) (*CancelArchivalOutput, error) {
- req, out := c.CancelArchivalRequest(input)
- err := req.Send()
- return out, err
- }
- const opCancelRetrieval = "CancelRetrieval"
- // CancelRetrievalRequest generates a "aws/request.Request" representing the
- // client's request for the CancelRetrieval operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CancelRetrieval method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CancelRetrievalRequest method.
- // req, resp := client.CancelRetrievalRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) CancelRetrievalRequest(input *CancelRetrievalInput) (req *request.Request, output *CancelRetrievalOutput) {
- op := &request.Operation{
- Name: opCancelRetrieval,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CancelRetrievalInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CancelRetrievalOutput{}
- req.Data = output
- return
- }
- // Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to
- // a gateway after the retrieval process is initiated. The virtual tape is returned
- // to the VTS.
- func (c *StorageGateway) CancelRetrieval(input *CancelRetrievalInput) (*CancelRetrievalOutput, error) {
- req, out := c.CancelRetrievalRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateCachediSCSIVolume = "CreateCachediSCSIVolume"
- // CreateCachediSCSIVolumeRequest generates a "aws/request.Request" representing the
- // client's request for the CreateCachediSCSIVolume operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateCachediSCSIVolume method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateCachediSCSIVolumeRequest method.
- // req, resp := client.CreateCachediSCSIVolumeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSIVolumeInput) (req *request.Request, output *CreateCachediSCSIVolumeOutput) {
- op := &request.Operation{
- Name: opCreateCachediSCSIVolume,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateCachediSCSIVolumeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateCachediSCSIVolumeOutput{}
- req.Data = output
- return
- }
- // Creates a cached volume on a specified cached gateway. This operation is
- // supported only for the gateway-cached volume architecture.
- //
- // Cache storage must be allocated to the gateway before you can create a cached
- // volume. Use the AddCache operation to add cache storage to a gateway.
- //
- // In the request, you must specify the gateway, size of the volume in bytes,
- // the iSCSI target name, an IP address on which to expose the target, and a
- // unique client token. In response, AWS Storage Gateway creates the volume
- // and returns information about it such as the volume Amazon Resource Name
- // (ARN), its size, and the iSCSI target ARN that initiators can use to connect
- // to the volume target.
- func (c *StorageGateway) CreateCachediSCSIVolume(input *CreateCachediSCSIVolumeInput) (*CreateCachediSCSIVolumeOutput, error) {
- req, out := c.CreateCachediSCSIVolumeRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateSnapshot = "CreateSnapshot"
- // CreateSnapshotRequest generates a "aws/request.Request" representing the
- // client's request for the CreateSnapshot operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateSnapshot method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateSnapshotRequest method.
- // req, resp := client.CreateSnapshotRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *CreateSnapshotOutput) {
- op := &request.Operation{
- Name: opCreateSnapshot,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateSnapshotInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateSnapshotOutput{}
- req.Data = output
- return
- }
- // Initiates a snapshot of a volume.
- //
- // AWS Storage Gateway provides the ability to back up point-in-time snapshots
- // of your data to Amazon Simple Storage (S3) for durable off-site recovery,
- // as well as import the data to an Amazon Elastic Block Store (EBS) volume
- // in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your gateway
- // volume on a scheduled or ad-hoc basis. This API enables you to take ad-hoc
- // snapshot. For more information, see Working With Snapshots in the AWS Storage
- // Gateway Console (http://docs.aws.amazon.com/storagegateway/latest/userguide/WorkingWithSnapshots.html).
- //
- // In the CreateSnapshot request you identify the volume by providing its Amazon
- // Resource Name (ARN). You must also provide description for the snapshot.
- // When AWS Storage Gateway takes the snapshot of specified volume, the snapshot
- // and description appears in the AWS Storage Gateway Console. In response,
- // AWS Storage Gateway returns you a snapshot ID. You can use this snapshot
- // ID to check the snapshot progress or later use it when you want to create
- // a volume from a snapshot.
- //
- // To list or delete a snapshot, you must use the Amazon EC2 API. For more
- // information, see DescribeSnapshots or DeleteSnapshot in the EC2 API reference
- // (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Operations.html).
- //
- // Volume and snapshot IDs are changing to a longer length ID format. For
- // more information, see the important note on the Welcome (http://docs.aws.amazon.com/storagegateway/latest/APIReference/Welcome.html)
- // page.
- func (c *StorageGateway) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) {
- req, out := c.CreateSnapshotRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateSnapshotFromVolumeRecoveryPoint = "CreateSnapshotFromVolumeRecoveryPoint"
- // CreateSnapshotFromVolumeRecoveryPointRequest generates a "aws/request.Request" representing the
- // client's request for the CreateSnapshotFromVolumeRecoveryPoint operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateSnapshotFromVolumeRecoveryPoint method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateSnapshotFromVolumeRecoveryPointRequest method.
- // req, resp := client.CreateSnapshotFromVolumeRecoveryPointRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *CreateSnapshotFromVolumeRecoveryPointInput) (req *request.Request, output *CreateSnapshotFromVolumeRecoveryPointOutput) {
- op := &request.Operation{
- Name: opCreateSnapshotFromVolumeRecoveryPoint,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateSnapshotFromVolumeRecoveryPointInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateSnapshotFromVolumeRecoveryPointOutput{}
- req.Data = output
- return
- }
- // Initiates a snapshot of a gateway from a volume recovery point. This operation
- // is supported only for the gateway-cached volume architecture.
- //
- // A volume recovery point is a point in time at which all data of the volume
- // is consistent and from which you can create a snapshot. To get a list of
- // volume recovery point for gateway-cached volumes, use ListVolumeRecoveryPoints.
- //
- // In the CreateSnapshotFromVolumeRecoveryPoint request, you identify the volume
- // by providing its Amazon Resource Name (ARN). You must also provide a description
- // for the snapshot. When AWS Storage Gateway takes a snapshot of the specified
- // volume, the snapshot and its description appear in the AWS Storage Gateway
- // console. In response, AWS Storage Gateway returns you a snapshot ID. You
- // can use this snapshot ID to check the snapshot progress or later use it when
- // you want to create a volume from a snapshot.
- //
- // To list or delete a snapshot, you must use the Amazon EC2 API. For more
- // information, in Amazon Elastic Compute Cloud API Reference.
- func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPoint(input *CreateSnapshotFromVolumeRecoveryPointInput) (*CreateSnapshotFromVolumeRecoveryPointOutput, error) {
- req, out := c.CreateSnapshotFromVolumeRecoveryPointRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateStorediSCSIVolume = "CreateStorediSCSIVolume"
- // CreateStorediSCSIVolumeRequest generates a "aws/request.Request" representing the
- // client's request for the CreateStorediSCSIVolume operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateStorediSCSIVolume method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateStorediSCSIVolumeRequest method.
- // req, resp := client.CreateStorediSCSIVolumeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSIVolumeInput) (req *request.Request, output *CreateStorediSCSIVolumeOutput) {
- op := &request.Operation{
- Name: opCreateStorediSCSIVolume,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateStorediSCSIVolumeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateStorediSCSIVolumeOutput{}
- req.Data = output
- return
- }
- // Creates a volume on a specified gateway. This operation is supported only
- // for the gateway-stored volume architecture.
- //
- // The size of the volume to create is inferred from the disk size. You can
- // choose to preserve existing data on the disk, create volume from an existing
- // snapshot, or create an empty volume. If you choose to create an empty gateway
- // volume, then any existing data on the disk is erased.
- //
- // In the request you must specify the gateway and the disk information on
- // which you are creating the volume. In response, AWS Storage Gateway creates
- // the volume and returns volume information such as the volume Amazon Resource
- // Name (ARN), its size, and the iSCSI target ARN that initiators can use to
- // connect to the volume target.
- func (c *StorageGateway) CreateStorediSCSIVolume(input *CreateStorediSCSIVolumeInput) (*CreateStorediSCSIVolumeOutput, error) {
- req, out := c.CreateStorediSCSIVolumeRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateTapeWithBarcode = "CreateTapeWithBarcode"
- // CreateTapeWithBarcodeRequest generates a "aws/request.Request" representing the
- // client's request for the CreateTapeWithBarcode operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateTapeWithBarcode method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateTapeWithBarcodeRequest method.
- // req, resp := client.CreateTapeWithBarcodeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) CreateTapeWithBarcodeRequest(input *CreateTapeWithBarcodeInput) (req *request.Request, output *CreateTapeWithBarcodeOutput) {
- op := &request.Operation{
- Name: opCreateTapeWithBarcode,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateTapeWithBarcodeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateTapeWithBarcodeOutput{}
- req.Data = output
- return
- }
- // Creates a virtual tape by using your own barcode. You write data to the virtual
- // tape and then archive the tape.
- //
- // Cache storage must be allocated to the gateway before you can create a virtual
- // tape. Use the AddCache operation to add cache storage to a gateway.
- func (c *StorageGateway) CreateTapeWithBarcode(input *CreateTapeWithBarcodeInput) (*CreateTapeWithBarcodeOutput, error) {
- req, out := c.CreateTapeWithBarcodeRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateTapes = "CreateTapes"
- // CreateTapesRequest generates a "aws/request.Request" representing the
- // client's request for the CreateTapes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the CreateTapes method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the CreateTapesRequest method.
- // req, resp := client.CreateTapesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) CreateTapesRequest(input *CreateTapesInput) (req *request.Request, output *CreateTapesOutput) {
- op := &request.Operation{
- Name: opCreateTapes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateTapesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateTapesOutput{}
- req.Data = output
- return
- }
- // Creates one or more virtual tapes. You write data to the virtual tapes and
- // then archive the tapes.
- //
- // Cache storage must be allocated to the gateway before you can create virtual
- // tapes. Use the AddCache operation to add cache storage to a gateway.
- func (c *StorageGateway) CreateTapes(input *CreateTapesInput) (*CreateTapesOutput, error) {
- req, out := c.CreateTapesRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteBandwidthRateLimit = "DeleteBandwidthRateLimit"
- // DeleteBandwidthRateLimitRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteBandwidthRateLimit operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteBandwidthRateLimit method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteBandwidthRateLimitRequest method.
- // req, resp := client.DeleteBandwidthRateLimitRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DeleteBandwidthRateLimitRequest(input *DeleteBandwidthRateLimitInput) (req *request.Request, output *DeleteBandwidthRateLimitOutput) {
- op := &request.Operation{
- Name: opDeleteBandwidthRateLimit,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteBandwidthRateLimitInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteBandwidthRateLimitOutput{}
- req.Data = output
- return
- }
- // Deletes the bandwidth rate limits of a gateway. You can delete either the
- // upload and download bandwidth rate limit, or you can delete both. If you
- // delete only one of the limits, the other limit remains unchanged. To specify
- // which gateway to work with, use the Amazon Resource Name (ARN) of the gateway
- // in your request.
- func (c *StorageGateway) DeleteBandwidthRateLimit(input *DeleteBandwidthRateLimitInput) (*DeleteBandwidthRateLimitOutput, error) {
- req, out := c.DeleteBandwidthRateLimitRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteChapCredentials = "DeleteChapCredentials"
- // DeleteChapCredentialsRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteChapCredentials operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteChapCredentials method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteChapCredentialsRequest method.
- // req, resp := client.DeleteChapCredentialsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DeleteChapCredentialsRequest(input *DeleteChapCredentialsInput) (req *request.Request, output *DeleteChapCredentialsOutput) {
- op := &request.Operation{
- Name: opDeleteChapCredentials,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteChapCredentialsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteChapCredentialsOutput{}
- req.Data = output
- return
- }
- // Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for
- // a specified iSCSI target and initiator pair.
- func (c *StorageGateway) DeleteChapCredentials(input *DeleteChapCredentialsInput) (*DeleteChapCredentialsOutput, error) {
- req, out := c.DeleteChapCredentialsRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteGateway = "DeleteGateway"
- // DeleteGatewayRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteGateway operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteGateway method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteGatewayRequest method.
- // req, resp := client.DeleteGatewayRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *request.Request, output *DeleteGatewayOutput) {
- op := &request.Operation{
- Name: opDeleteGateway,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteGatewayInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteGatewayOutput{}
- req.Data = output
- return
- }
- // Deletes a gateway. To specify which gateway to delete, use the Amazon Resource
- // Name (ARN) of the gateway in your request. The operation deletes the gateway;
- // however, it does not delete the gateway virtual machine (VM) from your host
- // computer.
- //
- // After you delete a gateway, you cannot reactivate it. Completed snapshots
- // of the gateway volumes are not deleted upon deleting the gateway, however,
- // pending snapshots will not complete. After you delete a gateway, your next
- // step is to remove it from your environment.
- //
- // You no longer pay software charges after the gateway is deleted; however,
- // your existing Amazon EBS snapshots persist and you will continue to be billed
- // for these snapshots. You can choose to remove all remaining Amazon EBS snapshots
- // by canceling your Amazon EC2 subscription. If you prefer not to cancel your
- // Amazon EC2 subscription, you can delete your snapshots using the Amazon EC2
- // console. For more information, see the AWS Storage Gateway Detail Page (http://aws.amazon.com/storagegateway).
- func (c *StorageGateway) DeleteGateway(input *DeleteGatewayInput) (*DeleteGatewayOutput, error) {
- req, out := c.DeleteGatewayRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteSnapshotSchedule = "DeleteSnapshotSchedule"
- // DeleteSnapshotScheduleRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteSnapshotSchedule operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteSnapshotSchedule method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteSnapshotScheduleRequest method.
- // req, resp := client.DeleteSnapshotScheduleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotScheduleInput) (req *request.Request, output *DeleteSnapshotScheduleOutput) {
- op := &request.Operation{
- Name: opDeleteSnapshotSchedule,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteSnapshotScheduleInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteSnapshotScheduleOutput{}
- req.Data = output
- return
- }
- // Deletes a snapshot of a volume.
- //
- // You can take snapshots of your gateway volumes on a scheduled or ad hoc
- // basis. This API action enables you to delete a snapshot schedule for a volume.
- // For more information, see Working with Snapshots (http://docs.aws.amazon.com/storagegateway/latest/userguide/WorkingWithSnapshots.html).
- // In the DeleteSnapshotSchedule request, you identify the volume by providing
- // its Amazon Resource Name (ARN).
- //
- // To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon
- // Elastic Compute Cloud API Reference.
- func (c *StorageGateway) DeleteSnapshotSchedule(input *DeleteSnapshotScheduleInput) (*DeleteSnapshotScheduleOutput, error) {
- req, out := c.DeleteSnapshotScheduleRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteTape = "DeleteTape"
- // DeleteTapeRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteTape operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteTape method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteTapeRequest method.
- // req, resp := client.DeleteTapeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DeleteTapeRequest(input *DeleteTapeInput) (req *request.Request, output *DeleteTapeOutput) {
- op := &request.Operation{
- Name: opDeleteTape,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteTapeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteTapeOutput{}
- req.Data = output
- return
- }
- // Deletes the specified virtual tape.
- func (c *StorageGateway) DeleteTape(input *DeleteTapeInput) (*DeleteTapeOutput, error) {
- req, out := c.DeleteTapeRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteTapeArchive = "DeleteTapeArchive"
- // DeleteTapeArchiveRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteTapeArchive operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteTapeArchive method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteTapeArchiveRequest method.
- // req, resp := client.DeleteTapeArchiveRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DeleteTapeArchiveRequest(input *DeleteTapeArchiveInput) (req *request.Request, output *DeleteTapeArchiveOutput) {
- op := &request.Operation{
- Name: opDeleteTapeArchive,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteTapeArchiveInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteTapeArchiveOutput{}
- req.Data = output
- return
- }
- // Deletes the specified virtual tape from the virtual tape shelf (VTS).
- func (c *StorageGateway) DeleteTapeArchive(input *DeleteTapeArchiveInput) (*DeleteTapeArchiveOutput, error) {
- req, out := c.DeleteTapeArchiveRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteVolume = "DeleteVolume"
- // DeleteVolumeRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteVolume operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DeleteVolume method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DeleteVolumeRequest method.
- // req, resp := client.DeleteVolumeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Request, output *DeleteVolumeOutput) {
- op := &request.Operation{
- Name: opDeleteVolume,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteVolumeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteVolumeOutput{}
- req.Data = output
- return
- }
- // Deletes the specified gateway volume that you previously created using the
- // CreateCachediSCSIVolume or CreateStorediSCSIVolume API. For gateway-stored
- // volumes, the local disk that was configured as the storage volume is not
- // deleted. You can reuse the local disk to create another storage volume.
- //
- // Before you delete a gateway volume, make sure there are no iSCSI connections
- // to the volume you are deleting. You should also make sure there is no snapshot
- // in progress. You can use the Amazon Elastic Compute Cloud (Amazon EC2) API
- // to query snapshots on the volume you are deleting and check the snapshot
- // status. For more information, go to DescribeSnapshots (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSnapshots.html)
- // in the Amazon Elastic Compute Cloud API Reference.
- //
- // In the request, you must provide the Amazon Resource Name (ARN) of the storage
- // volume you want to delete.
- func (c *StorageGateway) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) {
- req, out := c.DeleteVolumeRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeBandwidthRateLimit = "DescribeBandwidthRateLimit"
- // DescribeBandwidthRateLimitRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeBandwidthRateLimit operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeBandwidthRateLimit method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeBandwidthRateLimitRequest method.
- // req, resp := client.DescribeBandwidthRateLimitRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwidthRateLimitInput) (req *request.Request, output *DescribeBandwidthRateLimitOutput) {
- op := &request.Operation{
- Name: opDescribeBandwidthRateLimit,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeBandwidthRateLimitInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeBandwidthRateLimitOutput{}
- req.Data = output
- return
- }
- // Returns the bandwidth rate limits of a gateway. By default, these limits
- // are not set, which means no bandwidth rate limiting is in effect.
- //
- // This operation only returns a value for a bandwidth rate limit only if the
- // limit is set. If no limits are set for the gateway, then this operation returns
- // only the gateway ARN in the response body. To specify which gateway to describe,
- // use the Amazon Resource Name (ARN) of the gateway in your request.
- func (c *StorageGateway) DescribeBandwidthRateLimit(input *DescribeBandwidthRateLimitInput) (*DescribeBandwidthRateLimitOutput, error) {
- req, out := c.DescribeBandwidthRateLimitRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeCache = "DescribeCache"
- // DescribeCacheRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeCache operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeCache method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeCacheRequest method.
- // req, resp := client.DescribeCacheRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *request.Request, output *DescribeCacheOutput) {
- op := &request.Operation{
- Name: opDescribeCache,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeCacheInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeCacheOutput{}
- req.Data = output
- return
- }
- // Returns information about the cache of a gateway. This operation is supported
- // only for the gateway-cached volume architecture.
- //
- // The response includes disk IDs that are configured as cache, and it includes
- // the amount of cache allocated and used.
- func (c *StorageGateway) DescribeCache(input *DescribeCacheInput) (*DescribeCacheOutput, error) {
- req, out := c.DescribeCacheRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeCachediSCSIVolumes = "DescribeCachediSCSIVolumes"
- // DescribeCachediSCSIVolumesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeCachediSCSIVolumes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeCachediSCSIVolumes method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeCachediSCSIVolumesRequest method.
- // req, resp := client.DescribeCachediSCSIVolumesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCachediSCSIVolumesInput) (req *request.Request, output *DescribeCachediSCSIVolumesOutput) {
- op := &request.Operation{
- Name: opDescribeCachediSCSIVolumes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeCachediSCSIVolumesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeCachediSCSIVolumesOutput{}
- req.Data = output
- return
- }
- // Returns a description of the gateway volumes specified in the request. This
- // operation is supported only for the gateway-cached volume architecture.
- //
- // The list of gateway volumes in the request must be from one gateway. In
- // the response Amazon Storage Gateway returns volume information sorted by
- // volume Amazon Resource Name (ARN).
- func (c *StorageGateway) DescribeCachediSCSIVolumes(input *DescribeCachediSCSIVolumesInput) (*DescribeCachediSCSIVolumesOutput, error) {
- req, out := c.DescribeCachediSCSIVolumesRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeChapCredentials = "DescribeChapCredentials"
- // DescribeChapCredentialsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeChapCredentials operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeChapCredentials method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeChapCredentialsRequest method.
- // req, resp := client.DescribeChapCredentialsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeChapCredentialsRequest(input *DescribeChapCredentialsInput) (req *request.Request, output *DescribeChapCredentialsOutput) {
- op := &request.Operation{
- Name: opDescribeChapCredentials,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeChapCredentialsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeChapCredentialsOutput{}
- req.Data = output
- return
- }
- // Returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials
- // information for a specified iSCSI target, one for each target-initiator pair.
- func (c *StorageGateway) DescribeChapCredentials(input *DescribeChapCredentialsInput) (*DescribeChapCredentialsOutput, error) {
- req, out := c.DescribeChapCredentialsRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeGatewayInformation = "DescribeGatewayInformation"
- // DescribeGatewayInformationRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeGatewayInformation operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeGatewayInformation method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeGatewayInformationRequest method.
- // req, resp := client.DescribeGatewayInformationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeGatewayInformationRequest(input *DescribeGatewayInformationInput) (req *request.Request, output *DescribeGatewayInformationOutput) {
- op := &request.Operation{
- Name: opDescribeGatewayInformation,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeGatewayInformationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeGatewayInformationOutput{}
- req.Data = output
- return
- }
- // Returns metadata about a gateway such as its name, network interfaces, configured
- // time zone, and the state (whether the gateway is running or not). To specify
- // which gateway to describe, use the Amazon Resource Name (ARN) of the gateway
- // in your request.
- func (c *StorageGateway) DescribeGatewayInformation(input *DescribeGatewayInformationInput) (*DescribeGatewayInformationOutput, error) {
- req, out := c.DescribeGatewayInformationRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeMaintenanceStartTime = "DescribeMaintenanceStartTime"
- // DescribeMaintenanceStartTimeRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeMaintenanceStartTime operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeMaintenanceStartTime method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeMaintenanceStartTimeRequest method.
- // req, resp := client.DescribeMaintenanceStartTimeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeMaintenanceStartTimeRequest(input *DescribeMaintenanceStartTimeInput) (req *request.Request, output *DescribeMaintenanceStartTimeOutput) {
- op := &request.Operation{
- Name: opDescribeMaintenanceStartTime,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeMaintenanceStartTimeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeMaintenanceStartTimeOutput{}
- req.Data = output
- return
- }
- // Returns your gateway's weekly maintenance start time including the day and
- // time of the week. Note that values are in terms of the gateway's time zone.
- func (c *StorageGateway) DescribeMaintenanceStartTime(input *DescribeMaintenanceStartTimeInput) (*DescribeMaintenanceStartTimeOutput, error) {
- req, out := c.DescribeMaintenanceStartTimeRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeSnapshotSchedule = "DescribeSnapshotSchedule"
- // DescribeSnapshotScheduleRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeSnapshotSchedule operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeSnapshotSchedule method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeSnapshotScheduleRequest method.
- // req, resp := client.DescribeSnapshotScheduleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeSnapshotScheduleRequest(input *DescribeSnapshotScheduleInput) (req *request.Request, output *DescribeSnapshotScheduleOutput) {
- op := &request.Operation{
- Name: opDescribeSnapshotSchedule,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeSnapshotScheduleInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeSnapshotScheduleOutput{}
- req.Data = output
- return
- }
- // Describes the snapshot schedule for the specified gateway volume. The snapshot
- // schedule information includes intervals at which snapshots are automatically
- // initiated on the volume.
- func (c *StorageGateway) DescribeSnapshotSchedule(input *DescribeSnapshotScheduleInput) (*DescribeSnapshotScheduleOutput, error) {
- req, out := c.DescribeSnapshotScheduleRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeStorediSCSIVolumes = "DescribeStorediSCSIVolumes"
- // DescribeStorediSCSIVolumesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeStorediSCSIVolumes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeStorediSCSIVolumes method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeStorediSCSIVolumesRequest method.
- // req, resp := client.DescribeStorediSCSIVolumesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStorediSCSIVolumesInput) (req *request.Request, output *DescribeStorediSCSIVolumesOutput) {
- op := &request.Operation{
- Name: opDescribeStorediSCSIVolumes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeStorediSCSIVolumesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeStorediSCSIVolumesOutput{}
- req.Data = output
- return
- }
- // Returns the description of the gateway volumes specified in the request.
- // The list of gateway volumes in the request must be from one gateway. In the
- // response Amazon Storage Gateway returns volume information sorted by volume
- // ARNs.
- func (c *StorageGateway) DescribeStorediSCSIVolumes(input *DescribeStorediSCSIVolumesInput) (*DescribeStorediSCSIVolumesOutput, error) {
- req, out := c.DescribeStorediSCSIVolumesRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeTapeArchives = "DescribeTapeArchives"
- // DescribeTapeArchivesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeTapeArchives operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeTapeArchives method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeTapeArchivesRequest method.
- // req, resp := client.DescribeTapeArchivesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeTapeArchivesRequest(input *DescribeTapeArchivesInput) (req *request.Request, output *DescribeTapeArchivesOutput) {
- op := &request.Operation{
- Name: opDescribeTapeArchives,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "Limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeTapeArchivesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeTapeArchivesOutput{}
- req.Data = output
- return
- }
- // Returns a description of specified virtual tapes in the virtual tape shelf
- // (VTS).
- //
- // If a specific TapeARN is not specified, AWS Storage Gateway returns a description
- // of all virtual tapes found in the VTS associated with your account.
- func (c *StorageGateway) DescribeTapeArchives(input *DescribeTapeArchivesInput) (*DescribeTapeArchivesOutput, error) {
- req, out := c.DescribeTapeArchivesRequest(input)
- err := req.Send()
- return out, err
- }
- // DescribeTapeArchivesPages iterates over the pages of a DescribeTapeArchives operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeTapeArchives method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeTapeArchives operation.
- // pageNum := 0
- // err := client.DescribeTapeArchivesPages(params,
- // func(page *DescribeTapeArchivesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *StorageGateway) DescribeTapeArchivesPages(input *DescribeTapeArchivesInput, fn func(p *DescribeTapeArchivesOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.DescribeTapeArchivesRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*DescribeTapeArchivesOutput), lastPage)
- })
- }
- const opDescribeTapeRecoveryPoints = "DescribeTapeRecoveryPoints"
- // DescribeTapeRecoveryPointsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeTapeRecoveryPoints operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeTapeRecoveryPoints method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeTapeRecoveryPointsRequest method.
- // req, resp := client.DescribeTapeRecoveryPointsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRecoveryPointsInput) (req *request.Request, output *DescribeTapeRecoveryPointsOutput) {
- op := &request.Operation{
- Name: opDescribeTapeRecoveryPoints,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "Limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeTapeRecoveryPointsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeTapeRecoveryPointsOutput{}
- req.Data = output
- return
- }
- // Returns a list of virtual tape recovery points that are available for the
- // specified gateway-VTL.
- //
- // A recovery point is a point-in-time view of a virtual tape at which all
- // the data on the virtual tape is consistent. If your gateway crashes, virtual
- // tapes that have recovery points can be recovered to a new gateway.
- func (c *StorageGateway) DescribeTapeRecoveryPoints(input *DescribeTapeRecoveryPointsInput) (*DescribeTapeRecoveryPointsOutput, error) {
- req, out := c.DescribeTapeRecoveryPointsRequest(input)
- err := req.Send()
- return out, err
- }
- // DescribeTapeRecoveryPointsPages iterates over the pages of a DescribeTapeRecoveryPoints operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeTapeRecoveryPoints method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeTapeRecoveryPoints operation.
- // pageNum := 0
- // err := client.DescribeTapeRecoveryPointsPages(params,
- // func(page *DescribeTapeRecoveryPointsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *StorageGateway) DescribeTapeRecoveryPointsPages(input *DescribeTapeRecoveryPointsInput, fn func(p *DescribeTapeRecoveryPointsOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.DescribeTapeRecoveryPointsRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*DescribeTapeRecoveryPointsOutput), lastPage)
- })
- }
- const opDescribeTapes = "DescribeTapes"
- // DescribeTapesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeTapes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeTapes method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeTapesRequest method.
- // req, resp := client.DescribeTapesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeTapesRequest(input *DescribeTapesInput) (req *request.Request, output *DescribeTapesOutput) {
- op := &request.Operation{
- Name: opDescribeTapes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "Limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeTapesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeTapesOutput{}
- req.Data = output
- return
- }
- // Returns a description of the specified Amazon Resource Name (ARN) of virtual
- // tapes. If a TapeARN is not specified, returns a description of all virtual
- // tapes associated with the specified gateway.
- func (c *StorageGateway) DescribeTapes(input *DescribeTapesInput) (*DescribeTapesOutput, error) {
- req, out := c.DescribeTapesRequest(input)
- err := req.Send()
- return out, err
- }
- // DescribeTapesPages iterates over the pages of a DescribeTapes operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeTapes method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeTapes operation.
- // pageNum := 0
- // err := client.DescribeTapesPages(params,
- // func(page *DescribeTapesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *StorageGateway) DescribeTapesPages(input *DescribeTapesInput, fn func(p *DescribeTapesOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.DescribeTapesRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*DescribeTapesOutput), lastPage)
- })
- }
- const opDescribeUploadBuffer = "DescribeUploadBuffer"
- // DescribeUploadBufferRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeUploadBuffer operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeUploadBuffer method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeUploadBufferRequest method.
- // req, resp := client.DescribeUploadBufferRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeUploadBufferRequest(input *DescribeUploadBufferInput) (req *request.Request, output *DescribeUploadBufferOutput) {
- op := &request.Operation{
- Name: opDescribeUploadBuffer,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeUploadBufferInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeUploadBufferOutput{}
- req.Data = output
- return
- }
- // Returns information about the upload buffer of a gateway. This operation
- // is supported for both the gateway-stored and gateway-cached volume architectures.
- //
- // The response includes disk IDs that are configured as upload buffer space,
- // and it includes the amount of upload buffer space allocated and used.
- func (c *StorageGateway) DescribeUploadBuffer(input *DescribeUploadBufferInput) (*DescribeUploadBufferOutput, error) {
- req, out := c.DescribeUploadBufferRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeVTLDevices = "DescribeVTLDevices"
- // DescribeVTLDevicesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeVTLDevices operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeVTLDevices method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeVTLDevicesRequest method.
- // req, resp := client.DescribeVTLDevicesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeVTLDevicesRequest(input *DescribeVTLDevicesInput) (req *request.Request, output *DescribeVTLDevicesOutput) {
- op := &request.Operation{
- Name: opDescribeVTLDevices,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "Limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &DescribeVTLDevicesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeVTLDevicesOutput{}
- req.Data = output
- return
- }
- // Returns a description of virtual tape library (VTL) devices for the specified
- // gateway. In the response, AWS Storage Gateway returns VTL device information.
- //
- // The list of VTL devices must be from one gateway.
- func (c *StorageGateway) DescribeVTLDevices(input *DescribeVTLDevicesInput) (*DescribeVTLDevicesOutput, error) {
- req, out := c.DescribeVTLDevicesRequest(input)
- err := req.Send()
- return out, err
- }
- // DescribeVTLDevicesPages iterates over the pages of a DescribeVTLDevices operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeVTLDevices method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeVTLDevices operation.
- // pageNum := 0
- // err := client.DescribeVTLDevicesPages(params,
- // func(page *DescribeVTLDevicesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *StorageGateway) DescribeVTLDevicesPages(input *DescribeVTLDevicesInput, fn func(p *DescribeVTLDevicesOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.DescribeVTLDevicesRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*DescribeVTLDevicesOutput), lastPage)
- })
- }
- const opDescribeWorkingStorage = "DescribeWorkingStorage"
- // DescribeWorkingStorageRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeWorkingStorage operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DescribeWorkingStorage method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DescribeWorkingStorageRequest method.
- // req, resp := client.DescribeWorkingStorageRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingStorageInput) (req *request.Request, output *DescribeWorkingStorageOutput) {
- op := &request.Operation{
- Name: opDescribeWorkingStorage,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeWorkingStorageInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeWorkingStorageOutput{}
- req.Data = output
- return
- }
- // Returns information about the working storage of a gateway. This operation
- // is supported only for the gateway-stored volume architecture. This operation
- // is deprecated in cached-volumes API version (20120630). Use DescribeUploadBuffer
- // instead.
- //
- // Working storage is also referred to as upload buffer. You can also use
- // the DescribeUploadBuffer operation to add upload buffer to a stored-volume
- // gateway.
- //
- // The response includes disk IDs that are configured as working storage,
- // and it includes the amount of working storage allocated and used.
- func (c *StorageGateway) DescribeWorkingStorage(input *DescribeWorkingStorageInput) (*DescribeWorkingStorageOutput, error) {
- req, out := c.DescribeWorkingStorageRequest(input)
- err := req.Send()
- return out, err
- }
- const opDisableGateway = "DisableGateway"
- // DisableGatewayRequest generates a "aws/request.Request" representing the
- // client's request for the DisableGateway operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the DisableGateway method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the DisableGatewayRequest method.
- // req, resp := client.DisableGatewayRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req *request.Request, output *DisableGatewayOutput) {
- op := &request.Operation{
- Name: opDisableGateway,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DisableGatewayInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DisableGatewayOutput{}
- req.Data = output
- return
- }
- // Disables a gateway when the gateway is no longer functioning. For example,
- // if your gateway VM is damaged, you can disable the gateway so you can recover
- // virtual tapes.
- //
- // Use this operation for a gateway-VTL that is not reachable or not functioning.
- //
- // Once a gateway is disabled it cannot be enabled.
- func (c *StorageGateway) DisableGateway(input *DisableGatewayInput) (*DisableGatewayOutput, error) {
- req, out := c.DisableGatewayRequest(input)
- err := req.Send()
- return out, err
- }
- const opListGateways = "ListGateways"
- // ListGatewaysRequest generates a "aws/request.Request" representing the
- // client's request for the ListGateways operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListGateways method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListGatewaysRequest method.
- // req, resp := client.ListGatewaysRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) ListGatewaysRequest(input *ListGatewaysInput) (req *request.Request, output *ListGatewaysOutput) {
- op := &request.Operation{
- Name: opListGateways,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "Limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListGatewaysInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListGatewaysOutput{}
- req.Data = output
- return
- }
- // Lists gateways owned by an AWS account in a region specified in the request.
- // The returned list is ordered by gateway Amazon Resource Name (ARN).
- //
- // By default, the operation returns a maximum of 100 gateways. This operation
- // supports pagination that allows you to optionally reduce the number of gateways
- // returned in a response.
- //
- // If you have more gateways than are returned in a response (that is, the
- // response returns only a truncated list of your gateways), the response contains
- // a marker that you can specify in your next request to fetch the next page
- // of gateways.
- func (c *StorageGateway) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error) {
- req, out := c.ListGatewaysRequest(input)
- err := req.Send()
- return out, err
- }
- // ListGatewaysPages iterates over the pages of a ListGateways operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListGateways method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListGateways operation.
- // pageNum := 0
- // err := client.ListGatewaysPages(params,
- // func(page *ListGatewaysOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *StorageGateway) ListGatewaysPages(input *ListGatewaysInput, fn func(p *ListGatewaysOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListGatewaysRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListGatewaysOutput), lastPage)
- })
- }
- const opListLocalDisks = "ListLocalDisks"
- // ListLocalDisksRequest generates a "aws/request.Request" representing the
- // client's request for the ListLocalDisks operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListLocalDisks method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListLocalDisksRequest method.
- // req, resp := client.ListLocalDisksRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req *request.Request, output *ListLocalDisksOutput) {
- op := &request.Operation{
- Name: opListLocalDisks,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListLocalDisksInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListLocalDisksOutput{}
- req.Data = output
- return
- }
- // Returns a list of the gateway's local disks. To specify which gateway to
- // describe, you use the Amazon Resource Name (ARN) of the gateway in the body
- // of the request.
- //
- // The request returns a list of all disks, specifying which are configured
- // as working storage, cache storage, or stored volume or not configured at
- // all. The response includes a DiskStatus field. This field can have a value
- // of present (the disk is available to use), missing (the disk is no longer
- // connected to the gateway), or mismatch (the disk node is occupied by a disk
- // that has incorrect metadata or the disk content is corrupted).
- func (c *StorageGateway) ListLocalDisks(input *ListLocalDisksInput) (*ListLocalDisksOutput, error) {
- req, out := c.ListLocalDisksRequest(input)
- err := req.Send()
- return out, err
- }
- const opListTagsForResource = "ListTagsForResource"
- // ListTagsForResourceRequest generates a "aws/request.Request" representing the
- // client's request for the ListTagsForResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListTagsForResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListTagsForResourceRequest method.
- // req, resp := client.ListTagsForResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
- op := &request.Operation{
- Name: opListTagsForResource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListTagsForResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListTagsForResourceOutput{}
- req.Data = output
- return
- }
- // Lists the tags that have been added to the specified resource.
- func (c *StorageGateway) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
- req, out := c.ListTagsForResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opListTapes = "ListTapes"
- // ListTapesRequest generates a "aws/request.Request" representing the
- // client's request for the ListTapes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListTapes method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListTapesRequest method.
- // req, resp := client.ListTapesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) ListTapesRequest(input *ListTapesInput) (req *request.Request, output *ListTapesOutput) {
- op := &request.Operation{
- Name: opListTapes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListTapesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListTapesOutput{}
- req.Data = output
- return
- }
- // Lists virtual tapes in your virtual tape library (VTL) and your virtual tape
- // shelf (VTS). You specify the tapes to list by specifying one or more tape
- // Amazon Resource Names (ARNs). If you don't specify a tape ARN, the operation
- // lists all virtual tapes in both your VTL and VTS.
- //
- // This operation supports pagination. By default, the operation returns a
- // maximum of up to 100 tapes. You can optionally specify the Limit parameter
- // in the body to limit the number of tapes in the response. If the number of
- // tapes returned in the response is truncated, the response includes a Marker
- // element that you can use in your subsequent request to retrieve the next
- // set of tapes.
- func (c *StorageGateway) ListTapes(input *ListTapesInput) (*ListTapesOutput, error) {
- req, out := c.ListTapesRequest(input)
- err := req.Send()
- return out, err
- }
- const opListVolumeInitiators = "ListVolumeInitiators"
- // ListVolumeInitiatorsRequest generates a "aws/request.Request" representing the
- // client's request for the ListVolumeInitiators operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListVolumeInitiators method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListVolumeInitiatorsRequest method.
- // req, resp := client.ListVolumeInitiatorsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) ListVolumeInitiatorsRequest(input *ListVolumeInitiatorsInput) (req *request.Request, output *ListVolumeInitiatorsOutput) {
- op := &request.Operation{
- Name: opListVolumeInitiators,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListVolumeInitiatorsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListVolumeInitiatorsOutput{}
- req.Data = output
- return
- }
- // Lists iSCSI initiators that are connected to a volume. You can use this operation
- // to determine whether a volume is being used or not.
- func (c *StorageGateway) ListVolumeInitiators(input *ListVolumeInitiatorsInput) (*ListVolumeInitiatorsOutput, error) {
- req, out := c.ListVolumeInitiatorsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListVolumeRecoveryPoints = "ListVolumeRecoveryPoints"
- // ListVolumeRecoveryPointsRequest generates a "aws/request.Request" representing the
- // client's request for the ListVolumeRecoveryPoints operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListVolumeRecoveryPoints method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListVolumeRecoveryPointsRequest method.
- // req, resp := client.ListVolumeRecoveryPointsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecoveryPointsInput) (req *request.Request, output *ListVolumeRecoveryPointsOutput) {
- op := &request.Operation{
- Name: opListVolumeRecoveryPoints,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListVolumeRecoveryPointsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListVolumeRecoveryPointsOutput{}
- req.Data = output
- return
- }
- // Lists the recovery points for a specified gateway. This operation is supported
- // only for the gateway-cached volume architecture.
- //
- // Each gateway-cached volume has one recovery point. A volume recovery point
- // is a point in time at which all data of the volume is consistent and from
- // which you can create a snapshot. To create a snapshot from a volume recovery
- // point use the CreateSnapshotFromVolumeRecoveryPoint operation.
- func (c *StorageGateway) ListVolumeRecoveryPoints(input *ListVolumeRecoveryPointsInput) (*ListVolumeRecoveryPointsOutput, error) {
- req, out := c.ListVolumeRecoveryPointsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListVolumes = "ListVolumes"
- // ListVolumesRequest generates a "aws/request.Request" representing the
- // client's request for the ListVolumes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ListVolumes method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ListVolumesRequest method.
- // req, resp := client.ListVolumesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *request.Request, output *ListVolumesOutput) {
- op := &request.Operation{
- Name: opListVolumes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"Marker"},
- OutputTokens: []string{"Marker"},
- LimitToken: "Limit",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListVolumesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListVolumesOutput{}
- req.Data = output
- return
- }
- // Lists the iSCSI stored volumes of a gateway. Results are sorted by volume
- // ARN. The response includes only the volume ARNs. If you want additional volume
- // information, use the DescribeStorediSCSIVolumes API.
- //
- // The operation supports pagination. By default, the operation returns a maximum
- // of up to 100 volumes. You can optionally specify the Limit field in the body
- // to limit the number of volumes in the response. If the number of volumes
- // returned in the response is truncated, the response includes a Marker field.
- // You can use this Marker value in your subsequent request to retrieve the
- // next set of volumes.
- func (c *StorageGateway) ListVolumes(input *ListVolumesInput) (*ListVolumesOutput, error) {
- req, out := c.ListVolumesRequest(input)
- err := req.Send()
- return out, err
- }
- // ListVolumesPages iterates over the pages of a ListVolumes operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListVolumes method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListVolumes operation.
- // pageNum := 0
- // err := client.ListVolumesPages(params,
- // func(page *ListVolumesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *StorageGateway) ListVolumesPages(input *ListVolumesInput, fn func(p *ListVolumesOutput, lastPage bool) (shouldContinue bool)) error {
- page, _ := c.ListVolumesRequest(input)
- page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
- return page.EachPage(func(p interface{}, lastPage bool) bool {
- return fn(p.(*ListVolumesOutput), lastPage)
- })
- }
- const opRemoveTagsFromResource = "RemoveTagsFromResource"
- // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the
- // client's request for the RemoveTagsFromResource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RemoveTagsFromResource method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the RemoveTagsFromResourceRequest method.
- // req, resp := client.RemoveTagsFromResourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) {
- op := &request.Operation{
- Name: opRemoveTagsFromResource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RemoveTagsFromResourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RemoveTagsFromResourceOutput{}
- req.Data = output
- return
- }
- // Removes one or more tags from the specified resource.
- func (c *StorageGateway) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) {
- req, out := c.RemoveTagsFromResourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opResetCache = "ResetCache"
- // ResetCacheRequest generates a "aws/request.Request" representing the
- // client's request for the ResetCache operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ResetCache method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ResetCacheRequest method.
- // req, resp := client.ResetCacheRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request.Request, output *ResetCacheOutput) {
- op := &request.Operation{
- Name: opResetCache,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ResetCacheInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ResetCacheOutput{}
- req.Data = output
- return
- }
- // Resets all cache disks that have encountered a error and makes the disks
- // available for reconfiguration as cache storage. If your cache disk encounters
- // a error, the gateway prevents read and write operations on virtual tapes
- // in the gateway. For example, an error can occur when a disk is corrupted
- // or removed from the gateway. When a cache is reset, the gateway loses its
- // cache storage. At this point you can reconfigure the disks as cache disks.
- //
- // If the cache disk you are resetting contains data that has not been uploaded
- // to Amazon S3 yet, that data can be lost. After you reset cache disks, there
- // will be no configured cache disks left in the gateway, so you must configure
- // at least one new cache disk for your gateway to function properly.
- func (c *StorageGateway) ResetCache(input *ResetCacheInput) (*ResetCacheOutput, error) {
- req, out := c.ResetCacheRequest(input)
- err := req.Send()
- return out, err
- }
- const opRetrieveTapeArchive = "RetrieveTapeArchive"
- // RetrieveTapeArchiveRequest generates a "aws/request.Request" representing the
- // client's request for the RetrieveTapeArchive operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RetrieveTapeArchive method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the RetrieveTapeArchiveRequest method.
- // req, resp := client.RetrieveTapeArchiveRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) RetrieveTapeArchiveRequest(input *RetrieveTapeArchiveInput) (req *request.Request, output *RetrieveTapeArchiveOutput) {
- op := &request.Operation{
- Name: opRetrieveTapeArchive,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RetrieveTapeArchiveInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RetrieveTapeArchiveOutput{}
- req.Data = output
- return
- }
- // Retrieves an archived virtual tape from the virtual tape shelf (VTS) to a
- // gateway-VTL. Virtual tapes archived in the VTS are not associated with any
- // gateway. However after a tape is retrieved, it is associated with a gateway,
- // even though it is also listed in the VTS.
- //
- // Once a tape is successfully retrieved to a gateway, it cannot be retrieved
- // again to another gateway. You must archive the tape again before you can
- // retrieve it to another gateway.
- func (c *StorageGateway) RetrieveTapeArchive(input *RetrieveTapeArchiveInput) (*RetrieveTapeArchiveOutput, error) {
- req, out := c.RetrieveTapeArchiveRequest(input)
- err := req.Send()
- return out, err
- }
- const opRetrieveTapeRecoveryPoint = "RetrieveTapeRecoveryPoint"
- // RetrieveTapeRecoveryPointRequest generates a "aws/request.Request" representing the
- // client's request for the RetrieveTapeRecoveryPoint operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the RetrieveTapeRecoveryPoint method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the RetrieveTapeRecoveryPointRequest method.
- // req, resp := client.RetrieveTapeRecoveryPointRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRecoveryPointInput) (req *request.Request, output *RetrieveTapeRecoveryPointOutput) {
- op := &request.Operation{
- Name: opRetrieveTapeRecoveryPoint,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RetrieveTapeRecoveryPointInput{}
- }
- req = c.newRequest(op, input, output)
- output = &RetrieveTapeRecoveryPointOutput{}
- req.Data = output
- return
- }
- // Retrieves the recovery point for the specified virtual tape.
- //
- // A recovery point is a point in time view of a virtual tape at which all
- // the data on the tape is consistent. If your gateway crashes, virtual tapes
- // that have recovery points can be recovered to a new gateway.
- //
- // The virtual tape can be retrieved to only one gateway. The retrieved tape
- // is read-only. The virtual tape can be retrieved to only a gateway-VTL. There
- // is no charge for retrieving recovery points.
- func (c *StorageGateway) RetrieveTapeRecoveryPoint(input *RetrieveTapeRecoveryPointInput) (*RetrieveTapeRecoveryPointOutput, error) {
- req, out := c.RetrieveTapeRecoveryPointRequest(input)
- err := req.Send()
- return out, err
- }
- const opSetLocalConsolePassword = "SetLocalConsolePassword"
- // SetLocalConsolePasswordRequest generates a "aws/request.Request" representing the
- // client's request for the SetLocalConsolePassword operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the SetLocalConsolePassword method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the SetLocalConsolePasswordRequest method.
- // req, resp := client.SetLocalConsolePasswordRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) SetLocalConsolePasswordRequest(input *SetLocalConsolePasswordInput) (req *request.Request, output *SetLocalConsolePasswordOutput) {
- op := &request.Operation{
- Name: opSetLocalConsolePassword,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetLocalConsolePasswordInput{}
- }
- req = c.newRequest(op, input, output)
- output = &SetLocalConsolePasswordOutput{}
- req.Data = output
- return
- }
- // Sets the password for your VM local console. When you log in to the local
- // console for the first time, you log in to the VM with the default credentials.
- // We recommend that you set a new password. You don't need to know the default
- // password to set a new password.
- func (c *StorageGateway) SetLocalConsolePassword(input *SetLocalConsolePasswordInput) (*SetLocalConsolePasswordOutput, error) {
- req, out := c.SetLocalConsolePasswordRequest(input)
- err := req.Send()
- return out, err
- }
- const opShutdownGateway = "ShutdownGateway"
- // ShutdownGatewayRequest generates a "aws/request.Request" representing the
- // client's request for the ShutdownGateway operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the ShutdownGateway method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the ShutdownGatewayRequest method.
- // req, resp := client.ShutdownGatewayRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (req *request.Request, output *ShutdownGatewayOutput) {
- op := &request.Operation{
- Name: opShutdownGateway,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ShutdownGatewayInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ShutdownGatewayOutput{}
- req.Data = output
- return
- }
- // Shuts down a gateway. To specify which gateway to shut down, use the Amazon
- // Resource Name (ARN) of the gateway in the body of your request.
- //
- // The operation shuts down the gateway service component running in the storage
- // gateway's virtual machine (VM) and not the VM.
- //
- // If you want to shut down the VM, it is recommended that you first shut down
- // the gateway component in the VM to avoid unpredictable conditions.
- //
- // After the gateway is shutdown, you cannot call any other API except StartGateway,
- // DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway.
- // Your applications cannot read from or write to the gateway's storage volumes,
- // and there are no snapshots taken.
- //
- // When you make a shutdown request, you will get a 200 OK success response
- // immediately. However, it might take some time for the gateway to shut down.
- // You can call the DescribeGatewayInformation API to check the status. For
- // more information, see ActivateGateway.
- //
- // If do not intend to use the gateway again, you must delete the gateway
- // (using DeleteGateway) to no longer pay software charges associated with the
- // gateway.
- func (c *StorageGateway) ShutdownGateway(input *ShutdownGatewayInput) (*ShutdownGatewayOutput, error) {
- req, out := c.ShutdownGatewayRequest(input)
- err := req.Send()
- return out, err
- }
- const opStartGateway = "StartGateway"
- // StartGatewayRequest generates a "aws/request.Request" representing the
- // client's request for the StartGateway operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the StartGateway method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the StartGatewayRequest method.
- // req, resp := client.StartGatewayRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *request.Request, output *StartGatewayOutput) {
- op := &request.Operation{
- Name: opStartGateway,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StartGatewayInput{}
- }
- req = c.newRequest(op, input, output)
- output = &StartGatewayOutput{}
- req.Data = output
- return
- }
- // Starts a gateway that you previously shut down (see ShutdownGateway). After
- // the gateway starts, you can then make other API calls, your applications
- // can read from or write to the gateway's storage volumes and you will be able
- // to take snapshot backups.
- //
- // When you make a request, you will get a 200 OK success response immediately.
- // However, it might take some time for the gateway to be ready. You should
- // call DescribeGatewayInformation and check the status before making any additional
- // API calls. For more information, see ActivateGateway.
- //
- // To specify which gateway to start, use the Amazon Resource Name (ARN) of
- // the gateway in your request.
- func (c *StorageGateway) StartGateway(input *StartGatewayInput) (*StartGatewayOutput, error) {
- req, out := c.StartGatewayRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateBandwidthRateLimit = "UpdateBandwidthRateLimit"
- // UpdateBandwidthRateLimitRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateBandwidthRateLimit operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateBandwidthRateLimit method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateBandwidthRateLimitRequest method.
- // req, resp := client.UpdateBandwidthRateLimitRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthRateLimitInput) (req *request.Request, output *UpdateBandwidthRateLimitOutput) {
- op := &request.Operation{
- Name: opUpdateBandwidthRateLimit,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateBandwidthRateLimitInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateBandwidthRateLimitOutput{}
- req.Data = output
- return
- }
- // Updates the bandwidth rate limits of a gateway. You can update both the upload
- // and download bandwidth rate limit or specify only one of the two. If you
- // don't set a bandwidth rate limit, the existing rate limit remains.
- //
- // By default, a gateway's bandwidth rate limits are not set. If you don't
- // set any limit, the gateway does not have any limitations on its bandwidth
- // usage and could potentially use the maximum available bandwidth.
- //
- // To specify which gateway to update, use the Amazon Resource Name (ARN) of
- // the gateway in your request.
- func (c *StorageGateway) UpdateBandwidthRateLimit(input *UpdateBandwidthRateLimitInput) (*UpdateBandwidthRateLimitOutput, error) {
- req, out := c.UpdateBandwidthRateLimitRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateChapCredentials = "UpdateChapCredentials"
- // UpdateChapCredentialsRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateChapCredentials operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateChapCredentials method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateChapCredentialsRequest method.
- // req, resp := client.UpdateChapCredentialsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentialsInput) (req *request.Request, output *UpdateChapCredentialsOutput) {
- op := &request.Operation{
- Name: opUpdateChapCredentials,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateChapCredentialsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateChapCredentialsOutput{}
- req.Data = output
- return
- }
- // Updates the Challenge-Handshake Authentication Protocol (CHAP) credentials
- // for a specified iSCSI target. By default, a gateway does not have CHAP enabled;
- // however, for added security, you might use it.
- //
- // When you update CHAP credentials, all existing connections on the target
- // are closed and initiators must reconnect with the new credentials.
- func (c *StorageGateway) UpdateChapCredentials(input *UpdateChapCredentialsInput) (*UpdateChapCredentialsOutput, error) {
- req, out := c.UpdateChapCredentialsRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateGatewayInformation = "UpdateGatewayInformation"
- // UpdateGatewayInformationRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateGatewayInformation operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateGatewayInformation method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateGatewayInformationRequest method.
- // req, resp := client.UpdateGatewayInformationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInformationInput) (req *request.Request, output *UpdateGatewayInformationOutput) {
- op := &request.Operation{
- Name: opUpdateGatewayInformation,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateGatewayInformationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateGatewayInformationOutput{}
- req.Data = output
- return
- }
- // Updates a gateway's metadata, which includes the gateway's name and time
- // zone. To specify which gateway to update, use the Amazon Resource Name (ARN)
- // of the gateway in your request.
- //
- // For Gateways activated after September 2, 2015, the gateway's ARN contains
- // the gateway ID rather than the gateway name. However, changing the name of
- // the gateway has no effect on the gateway's ARN.
- func (c *StorageGateway) UpdateGatewayInformation(input *UpdateGatewayInformationInput) (*UpdateGatewayInformationOutput, error) {
- req, out := c.UpdateGatewayInformationRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateGatewaySoftwareNow = "UpdateGatewaySoftwareNow"
- // UpdateGatewaySoftwareNowRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateGatewaySoftwareNow operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateGatewaySoftwareNow method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateGatewaySoftwareNowRequest method.
- // req, resp := client.UpdateGatewaySoftwareNowRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySoftwareNowInput) (req *request.Request, output *UpdateGatewaySoftwareNowOutput) {
- op := &request.Operation{
- Name: opUpdateGatewaySoftwareNow,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateGatewaySoftwareNowInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateGatewaySoftwareNowOutput{}
- req.Data = output
- return
- }
- // Updates the gateway virtual machine (VM) software. The request immediately
- // triggers the software update.
- //
- // When you make this request, you get a 200 OK success response immediately.
- // However, it might take some time for the update to complete. You can call
- // DescribeGatewayInformation to verify the gateway is in the STATE_RUNNING
- // state.
- //
- // A software update forces a system restart of your gateway. You can minimize
- // the chance of any disruption to your applications by increasing your iSCSI
- // Initiators' timeouts. For more information about increasing iSCSI Initiator
- // timeouts for Windows and Linux, see Customizing Your Windows iSCSI Settings
- // (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorWindowsClient.html#CustomizeWindowsiSCSISettings)
- // and Customizing Your Linux iSCSI Settings (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorRedHatClient.html#CustomizeLinuxiSCSISettings),
- // respectively.
- func (c *StorageGateway) UpdateGatewaySoftwareNow(input *UpdateGatewaySoftwareNowInput) (*UpdateGatewaySoftwareNowOutput, error) {
- req, out := c.UpdateGatewaySoftwareNowRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateMaintenanceStartTime = "UpdateMaintenanceStartTime"
- // UpdateMaintenanceStartTimeRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateMaintenanceStartTime operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateMaintenanceStartTime method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateMaintenanceStartTimeRequest method.
- // req, resp := client.UpdateMaintenanceStartTimeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) UpdateMaintenanceStartTimeRequest(input *UpdateMaintenanceStartTimeInput) (req *request.Request, output *UpdateMaintenanceStartTimeOutput) {
- op := &request.Operation{
- Name: opUpdateMaintenanceStartTime,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateMaintenanceStartTimeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateMaintenanceStartTimeOutput{}
- req.Data = output
- return
- }
- // Updates a gateway's weekly maintenance start time information, including
- // day and time of the week. The maintenance time is the time in your gateway's
- // time zone.
- func (c *StorageGateway) UpdateMaintenanceStartTime(input *UpdateMaintenanceStartTimeInput) (*UpdateMaintenanceStartTimeOutput, error) {
- req, out := c.UpdateMaintenanceStartTimeRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateSnapshotSchedule = "UpdateSnapshotSchedule"
- // UpdateSnapshotScheduleRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateSnapshotSchedule operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateSnapshotSchedule method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateSnapshotScheduleRequest method.
- // req, resp := client.UpdateSnapshotScheduleRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) UpdateSnapshotScheduleRequest(input *UpdateSnapshotScheduleInput) (req *request.Request, output *UpdateSnapshotScheduleOutput) {
- op := &request.Operation{
- Name: opUpdateSnapshotSchedule,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateSnapshotScheduleInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateSnapshotScheduleOutput{}
- req.Data = output
- return
- }
- // Updates a snapshot schedule configured for a gateway volume.
- //
- // The default snapshot schedule for volume is once every 24 hours, starting
- // at the creation time of the volume. You can use this API to change the snapshot
- // schedule configured for the volume.
- //
- // In the request you must identify the gateway volume whose snapshot schedule
- // you want to update, and the schedule information, including when you want
- // the snapshot to begin on a day and the frequency (in hours) of snapshots.
- func (c *StorageGateway) UpdateSnapshotSchedule(input *UpdateSnapshotScheduleInput) (*UpdateSnapshotScheduleOutput, error) {
- req, out := c.UpdateSnapshotScheduleRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateVTLDeviceType = "UpdateVTLDeviceType"
- // UpdateVTLDeviceTypeRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateVTLDeviceType operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // Creating a request object using this method should be used when you want to inject
- // custom logic into the request's lifecycle using a custom handler, or if you want to
- // access properties on the request object before or after sending the request. If
- // you just want the service response, call the UpdateVTLDeviceType method directly
- // instead.
- //
- // Note: You must call the "Send" method on the returned request object in order
- // to execute the request.
- //
- // // Example sending a request using the UpdateVTLDeviceTypeRequest method.
- // req, resp := client.UpdateVTLDeviceTypeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *StorageGateway) UpdateVTLDeviceTypeRequest(input *UpdateVTLDeviceTypeInput) (req *request.Request, output *UpdateVTLDeviceTypeOutput) {
- op := &request.Operation{
- Name: opUpdateVTLDeviceType,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateVTLDeviceTypeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateVTLDeviceTypeOutput{}
- req.Data = output
- return
- }
- // Updates the type of medium changer in a gateway-VTL. When you activate a
- // gateway-VTL, you select a medium changer type for the gateway-VTL. This operation
- // enables you to select a different type of medium changer after a gateway-VTL
- // is activated.
- func (c *StorageGateway) UpdateVTLDeviceType(input *UpdateVTLDeviceTypeInput) (*UpdateVTLDeviceTypeOutput, error) {
- req, out := c.UpdateVTLDeviceTypeRequest(input)
- err := req.Send()
- return out, err
- }
- // A JSON object containing one or more of the following fields:
- //
- // ActivateGatewayInput$ActivationKey
- //
- // ActivateGatewayInput$GatewayName
- //
- // ActivateGatewayInput$GatewayRegion
- //
- // ActivateGatewayInput$GatewayTimezone
- //
- // ActivateGatewayInput$GatewayType
- //
- // ActivateGatewayInput$TapeDriveType
- //
- // ActivateGatewayInput$MediumChangerType
- type ActivateGatewayInput struct {
- _ struct{} `type:"structure"`
- // Your gateway activation key. You can obtain the activation key by sending
- // an HTTP GET request with redirects enabled to the gateway IP address (port
- // 80). The redirect URL returned in the response provides you the activation
- // key for your gateway in the query string parameter activationKey. It may
- // also include other activation-related parameters, however, these are merely
- // defaults -- the arguments you pass to the ActivateGateway API call determine
- // the actual configuration of your gateway.
- ActivationKey *string `min:"1" type:"string" required:"true"`
- // The name you configured for your gateway.
- GatewayName *string `min:"2" type:"string" required:"true"`
- // A value that indicates the region where you want to store the snapshot backups.
- // The gateway region specified must be the same region as the region in your
- // Host header in the request. For more information about available regions
- // and endpoints for AWS Storage Gateway, see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#sg_region)
- // in the Amazon Web Services Glossary.
- //
- // Valid Values: "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1",
- // "ap-northeast-1", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "sa-east-1"
- GatewayRegion *string `min:"1" type:"string" required:"true"`
- // A value that indicates the time zone you want to set for the gateway. The
- // time zone is used, for example, for scheduling snapshots and your gateway's
- // maintenance schedule.
- GatewayTimezone *string `min:"3" type:"string" required:"true"`
- // A value that defines the type of gateway to activate. The type specified
- // is critical to all later functions of the gateway and cannot be changed after
- // activation. The default value is STORED.
- GatewayType *string `min:"2" type:"string"`
- // The value that indicates the type of medium changer to use for gateway-VTL.
- // This field is optional.
- //
- // Valid Values: "STK-L700", "AWS-Gateway-VTL"
- MediumChangerType *string `min:"2" type:"string"`
- // The value that indicates the type of tape drive to use for gateway-VTL. This
- // field is optional.
- //
- // Valid Values: "IBM-ULT3580-TD5"
- TapeDriveType *string `min:"2" type:"string"`
- }
- // String returns the string representation
- func (s ActivateGatewayInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActivateGatewayInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ActivateGatewayInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ActivateGatewayInput"}
- if s.ActivationKey == nil {
- invalidParams.Add(request.NewErrParamRequired("ActivationKey"))
- }
- if s.ActivationKey != nil && len(*s.ActivationKey) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ActivationKey", 1))
- }
- if s.GatewayName == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayName"))
- }
- if s.GatewayName != nil && len(*s.GatewayName) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayName", 2))
- }
- if s.GatewayRegion == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayRegion"))
- }
- if s.GatewayRegion != nil && len(*s.GatewayRegion) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayRegion", 1))
- }
- if s.GatewayTimezone == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayTimezone"))
- }
- if s.GatewayTimezone != nil && len(*s.GatewayTimezone) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayTimezone", 3))
- }
- if s.GatewayType != nil && len(*s.GatewayType) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayType", 2))
- }
- if s.MediumChangerType != nil && len(*s.MediumChangerType) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("MediumChangerType", 2))
- }
- if s.TapeDriveType != nil && len(*s.TapeDriveType) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("TapeDriveType", 2))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // AWS Storage Gateway returns the Amazon Resource Name (ARN) of the activated
- // gateway. It is a string made of information such as your account, gateway
- // name, and region. This ARN is used to reference the gateway in other API
- // operations as well as resource-based authorization.
- //
- // For gateways activated prior to September 02, 2015 the gateway ARN contains
- // the gateway name rather than the gateway id. Changing the name of the gateway
- // has no effect on the gateway ARN.
- type ActivateGatewayOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s ActivateGatewayOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActivateGatewayOutput) GoString() string {
- return s.String()
- }
- type AddCacheInput struct {
- _ struct{} `type:"structure"`
- DiskIds []*string `type:"list" required:"true"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AddCacheInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddCacheInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddCacheInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddCacheInput"}
- if s.DiskIds == nil {
- invalidParams.Add(request.NewErrParamRequired("DiskIds"))
- }
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type AddCacheOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s AddCacheOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddCacheOutput) GoString() string {
- return s.String()
- }
- // AddTagsToResourceInput
- type AddTagsToResourceInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource you want to add tags to.
- ResourceARN *string `min:"50" type:"string" required:"true"`
- // The key-value pair that represents the tag you want to add to the resource.
- // The value can be an empty string.
- //
- // Valid characters for key and value are letters, spaces, and numbers representable
- // in UTF-8 format, and the following special characters: + - = . _ : / @.
- Tags []*Tag `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s AddTagsToResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsToResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddTagsToResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"}
- if s.ResourceARN == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
- }
- if s.ResourceARN != nil && len(*s.ResourceARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 50))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // AddTagsToResourceOutput
- type AddTagsToResourceOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource you want to add tags to.
- ResourceARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s AddTagsToResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsToResourceOutput) GoString() string {
- return s.String()
- }
- type AddUploadBufferInput struct {
- _ struct{} `type:"structure"`
- DiskIds []*string `type:"list" required:"true"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AddUploadBufferInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddUploadBufferInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddUploadBufferInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddUploadBufferInput"}
- if s.DiskIds == nil {
- invalidParams.Add(request.NewErrParamRequired("DiskIds"))
- }
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type AddUploadBufferOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s AddUploadBufferOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddUploadBufferOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing one or more of the following fields:
- //
- // AddWorkingStorageInput$DiskIds
- type AddWorkingStorageInput struct {
- _ struct{} `type:"structure"`
- // An array of strings that identify disks that are to be configured as working
- // storage. Each string have a minimum length of 1 and maximum length of 300.
- // You can get the disk IDs from the ListLocalDisks API.
- DiskIds []*string `type:"list" required:"true"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AddWorkingStorageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddWorkingStorageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddWorkingStorageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddWorkingStorageInput"}
- if s.DiskIds == nil {
- invalidParams.Add(request.NewErrParamRequired("DiskIds"))
- }
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the of the gateway for which working storage was
- // configured.
- type AddWorkingStorageOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s AddWorkingStorageOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddWorkingStorageOutput) GoString() string {
- return s.String()
- }
- type CachediSCSIVolume struct {
- _ struct{} `type:"structure"`
- SourceSnapshotId *string `type:"string"`
- VolumeARN *string `min:"50" type:"string"`
- VolumeId *string `min:"12" type:"string"`
- VolumeProgress *float64 `type:"double"`
- VolumeSizeInBytes *int64 `type:"long"`
- VolumeStatus *string `min:"3" type:"string"`
- VolumeType *string `min:"3" type:"string"`
- // Lists iSCSI information about a volume.
- VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"`
- }
- // String returns the string representation
- func (s CachediSCSIVolume) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CachediSCSIVolume) GoString() string {
- return s.String()
- }
- // CancelArchivalInput
- type CancelArchivalInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the virtual tape you want to cancel archiving
- // for.
- TapeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CancelArchivalInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelArchivalInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CancelArchivalInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CancelArchivalInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.TapeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("TapeARN"))
- }
- if s.TapeARN != nil && len(*s.TapeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // CancelArchivalOutput
- type CancelArchivalOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the virtual tape for which archiving was
- // canceled.
- TapeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s CancelArchivalOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelArchivalOutput) GoString() string {
- return s.String()
- }
- // CancelRetrievalInput
- type CancelRetrievalInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the virtual tape you want to cancel retrieval
- // for.
- TapeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CancelRetrievalInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelRetrievalInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CancelRetrievalInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CancelRetrievalInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.TapeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("TapeARN"))
- }
- if s.TapeARN != nil && len(*s.TapeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // CancelRetrievalOutput
- type CancelRetrievalOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the virtual tape for which retrieval was
- // canceled.
- TapeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s CancelRetrievalOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CancelRetrievalOutput) GoString() string {
- return s.String()
- }
- // Describes Challenge-Handshake Authentication Protocol (CHAP) information
- // that supports authentication between your gateway and iSCSI initiators.
- type ChapInfo struct {
- _ struct{} `type:"structure"`
- // The iSCSI initiator that connects to the target.
- InitiatorName *string `min:"1" type:"string"`
- // The secret key that the initiator (for example, the Windows client) must
- // provide to participate in mutual CHAP with the target.
- SecretToAuthenticateInitiator *string `min:"1" type:"string"`
- // The secret key that the target must provide to participate in mutual CHAP
- // with the initiator (e.g. Windows client).
- SecretToAuthenticateTarget *string `min:"1" type:"string"`
- // The Amazon Resource Name (ARN) of the volume.
- //
- // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens
- // (-).
- TargetARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s ChapInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ChapInfo) GoString() string {
- return s.String()
- }
- type CreateCachediSCSIVolumeInput struct {
- _ struct{} `type:"structure"`
- ClientToken *string `min:"5" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- NetworkInterfaceId *string `type:"string" required:"true"`
- SnapshotId *string `type:"string"`
- TargetName *string `min:"1" type:"string" required:"true"`
- VolumeSizeInBytes *int64 `type:"long" required:"true"`
- }
- // String returns the string representation
- func (s CreateCachediSCSIVolumeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCachediSCSIVolumeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateCachediSCSIVolumeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateCachediSCSIVolumeInput"}
- if s.ClientToken == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientToken"))
- }
- if s.ClientToken != nil && len(*s.ClientToken) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("ClientToken", 5))
- }
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.NetworkInterfaceId == nil {
- invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
- }
- if s.TargetName == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetName"))
- }
- if s.TargetName != nil && len(*s.TargetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TargetName", 1))
- }
- if s.VolumeSizeInBytes == nil {
- invalidParams.Add(request.NewErrParamRequired("VolumeSizeInBytes"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type CreateCachediSCSIVolumeOutput struct {
- _ struct{} `type:"structure"`
- TargetARN *string `min:"50" type:"string"`
- VolumeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s CreateCachediSCSIVolumeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateCachediSCSIVolumeOutput) GoString() string {
- return s.String()
- }
- type CreateSnapshotFromVolumeRecoveryPointInput struct {
- _ struct{} `type:"structure"`
- SnapshotDescription *string `min:"1" type:"string" required:"true"`
- VolumeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateSnapshotFromVolumeRecoveryPointInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateSnapshotFromVolumeRecoveryPointInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateSnapshotFromVolumeRecoveryPointInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotFromVolumeRecoveryPointInput"}
- if s.SnapshotDescription == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotDescription"))
- }
- if s.SnapshotDescription != nil && len(*s.SnapshotDescription) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SnapshotDescription", 1))
- }
- if s.VolumeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
- }
- if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type CreateSnapshotFromVolumeRecoveryPointOutput struct {
- _ struct{} `type:"structure"`
- SnapshotId *string `type:"string"`
- VolumeARN *string `min:"50" type:"string"`
- VolumeRecoveryPointTime *string `type:"string"`
- }
- // String returns the string representation
- func (s CreateSnapshotFromVolumeRecoveryPointOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateSnapshotFromVolumeRecoveryPointOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing one or more of the following fields:
- //
- // CreateSnapshotInput$SnapshotDescription
- //
- // CreateSnapshotInput$VolumeARN
- type CreateSnapshotInput struct {
- _ struct{} `type:"structure"`
- // Textual description of the snapshot that appears in the Amazon EC2 console,
- // Elastic Block Store snapshots panel in the Description field, and in the
- // AWS Storage Gateway snapshot Details pane, Description field
- SnapshotDescription *string `min:"1" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
- // to return a list of gateway volumes.
- VolumeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateSnapshotInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateSnapshotInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateSnapshotInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"}
- if s.SnapshotDescription == nil {
- invalidParams.Add(request.NewErrParamRequired("SnapshotDescription"))
- }
- if s.SnapshotDescription != nil && len(*s.SnapshotDescription) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SnapshotDescription", 1))
- }
- if s.VolumeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
- }
- if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the following fields:
- type CreateSnapshotOutput struct {
- _ struct{} `type:"structure"`
- // The snapshot ID that is used to refer to the snapshot in future operations
- // such as describing snapshots (Amazon Elastic Compute Cloud API DescribeSnapshots)
- // or creating a volume from a snapshot (CreateStorediSCSIVolume).
- SnapshotId *string `type:"string"`
- // The Amazon Resource Name (ARN) of the volume of which the snapshot was taken.
- VolumeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s CreateSnapshotOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateSnapshotOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing one or more of the following fields:
- //
- // CreateStorediSCSIVolumeInput$DiskId
- //
- // CreateStorediSCSIVolumeInput$NetworkInterfaceId
- //
- // CreateStorediSCSIVolumeInput$PreserveExistingData
- //
- // CreateStorediSCSIVolumeInput$SnapshotId
- //
- // CreateStorediSCSIVolumeInput$TargetName
- type CreateStorediSCSIVolumeInput struct {
- _ struct{} `type:"structure"`
- // The unique identifier for the gateway local disk that is configured as a
- // stored volume. Use ListLocalDisks (http://docs.aws.amazon.com/storagegateway/latest/userguide/API_ListLocalDisks.html)
- // to list disk IDs for a gateway.
- DiskId *string `min:"1" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // The network interface of the gateway on which to expose the iSCSI target.
- // Only IPv4 addresses are accepted. Use DescribeGatewayInformation to get a
- // list of the network interfaces available on a gateway.
- //
- // Valid Values: A valid IP address.
- NetworkInterfaceId *string `type:"string" required:"true"`
- // Specify this field as true if you want to preserve the data on the local
- // disk. Otherwise, specifying this field as false creates an empty volume.
- //
- // Valid Values: true, false
- PreserveExistingData *bool `type:"boolean" required:"true"`
- // The snapshot ID (e.g. "snap-1122aabb") of the snapshot to restore as the
- // new stored volume. Specify this field if you want to create the iSCSI storage
- // volume from a snapshot otherwise do not include this field. To list snapshots
- // for your account use DescribeSnapshots (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSnapshots.html)
- // in the Amazon Elastic Compute Cloud API Reference.
- SnapshotId *string `type:"string"`
- // The name of the iSCSI target used by initiators to connect to the target
- // and as a suffix for the target ARN. For example, specifying TargetName as
- // myvolume results in the target ARN of arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume.
- // The target name must be unique across all volumes of a gateway.
- TargetName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateStorediSCSIVolumeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateStorediSCSIVolumeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateStorediSCSIVolumeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateStorediSCSIVolumeInput"}
- if s.DiskId == nil {
- invalidParams.Add(request.NewErrParamRequired("DiskId"))
- }
- if s.DiskId != nil && len(*s.DiskId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("DiskId", 1))
- }
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.NetworkInterfaceId == nil {
- invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
- }
- if s.PreserveExistingData == nil {
- invalidParams.Add(request.NewErrParamRequired("PreserveExistingData"))
- }
- if s.TargetName == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetName"))
- }
- if s.TargetName != nil && len(*s.TargetName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TargetName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the following fields:
- type CreateStorediSCSIVolumeOutput struct {
- _ struct{} `type:"structure"`
- // he Amazon Resource Name (ARN) of the volume target that includes the iSCSI
- // name that initiators can use to connect to the target.
- TargetARN *string `min:"50" type:"string"`
- // The Amazon Resource Name (ARN) of the configured volume.
- VolumeARN *string `min:"50" type:"string"`
- // The size of the volume in bytes.
- VolumeSizeInBytes *int64 `type:"long"`
- }
- // String returns the string representation
- func (s CreateStorediSCSIVolumeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateStorediSCSIVolumeOutput) GoString() string {
- return s.String()
- }
- // CreateTapeWithBarcodeInput
- type CreateTapeWithBarcodeInput struct {
- _ struct{} `type:"structure"`
- // The unique Amazon Resource Name (ARN) that represents the gateway to associate
- // the virtual tape with. Use the ListGateways operation to return a list of
- // gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // The barcode that you want to assign to the tape.
- TapeBarcode *string `min:"7" type:"string" required:"true"`
- // The size, in bytes, of the virtual tape that you want to create.
- //
- // The size must be aligned by gigabyte (1024*1024*1024 byte).
- TapeSizeInBytes *int64 `type:"long" required:"true"`
- }
- // String returns the string representation
- func (s CreateTapeWithBarcodeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTapeWithBarcodeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateTapeWithBarcodeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateTapeWithBarcodeInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.TapeBarcode == nil {
- invalidParams.Add(request.NewErrParamRequired("TapeBarcode"))
- }
- if s.TapeBarcode != nil && len(*s.TapeBarcode) < 7 {
- invalidParams.Add(request.NewErrParamMinLen("TapeBarcode", 7))
- }
- if s.TapeSizeInBytes == nil {
- invalidParams.Add(request.NewErrParamRequired("TapeSizeInBytes"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // CreateTapeOutput
- type CreateTapeWithBarcodeOutput struct {
- _ struct{} `type:"structure"`
- // A unique Amazon Resource Name (ARN) that represents the virtual tape that
- // was created.
- TapeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s CreateTapeWithBarcodeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTapeWithBarcodeOutput) GoString() string {
- return s.String()
- }
- // CreateTapesInput
- type CreateTapesInput struct {
- _ struct{} `type:"structure"`
- // A unique identifier that you use to retry a request. If you retry a request,
- // use the same ClientToken you specified in the initial request.
- //
- // Using the same ClientToken prevents creating the tape multiple times.
- ClientToken *string `min:"5" type:"string" required:"true"`
- // The unique Amazon Resource Name (ARN) that represents the gateway to associate
- // the virtual tapes with. Use the ListGateways operation to return a list of
- // gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // The number of virtual tapes that you want to create.
- NumTapesToCreate *int64 `min:"1" type:"integer" required:"true"`
- // A prefix that you append to the barcode of the virtual tape you are creating.
- // This prefix makes the barcode unique.
- //
- // The prefix must be 1 to 4 characters in length and must be one of the uppercase
- // letters from A to Z.
- TapeBarcodePrefix *string `min:"1" type:"string" required:"true"`
- // The size, in bytes, of the virtual tapes that you want to create.
- //
- // The size must be aligned by gigabyte (1024*1024*1024 byte).
- TapeSizeInBytes *int64 `type:"long" required:"true"`
- }
- // String returns the string representation
- func (s CreateTapesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTapesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateTapesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateTapesInput"}
- if s.ClientToken == nil {
- invalidParams.Add(request.NewErrParamRequired("ClientToken"))
- }
- if s.ClientToken != nil && len(*s.ClientToken) < 5 {
- invalidParams.Add(request.NewErrParamMinLen("ClientToken", 5))
- }
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.NumTapesToCreate == nil {
- invalidParams.Add(request.NewErrParamRequired("NumTapesToCreate"))
- }
- if s.NumTapesToCreate != nil && *s.NumTapesToCreate < 1 {
- invalidParams.Add(request.NewErrParamMinValue("NumTapesToCreate", 1))
- }
- if s.TapeBarcodePrefix == nil {
- invalidParams.Add(request.NewErrParamRequired("TapeBarcodePrefix"))
- }
- if s.TapeBarcodePrefix != nil && len(*s.TapeBarcodePrefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TapeBarcodePrefix", 1))
- }
- if s.TapeSizeInBytes == nil {
- invalidParams.Add(request.NewErrParamRequired("TapeSizeInBytes"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // CreateTapeOutput
- type CreateTapesOutput struct {
- _ struct{} `type:"structure"`
- // A list of unique Amazon Resource Names (ARNs) that represents the virtual
- // tapes that were created.
- TapeARNs []*string `type:"list"`
- }
- // String returns the string representation
- func (s CreateTapesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateTapesOutput) GoString() string {
- return s.String()
- }
- type DeleteBandwidthRateLimitInput struct {
- _ struct{} `type:"structure"`
- BandwidthType *string `min:"3" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteBandwidthRateLimitInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteBandwidthRateLimitInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteBandwidthRateLimitInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteBandwidthRateLimitInput"}
- if s.BandwidthType == nil {
- invalidParams.Add(request.NewErrParamRequired("BandwidthType"))
- }
- if s.BandwidthType != nil && len(*s.BandwidthType) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("BandwidthType", 3))
- }
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the of the gateway whose bandwidth rate information
- // was deleted.
- type DeleteBandwidthRateLimitOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s DeleteBandwidthRateLimitOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteBandwidthRateLimitOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing one or more of the following fields:
- //
- // DeleteChapCredentialsInput$InitiatorName
- //
- // DeleteChapCredentialsInput$TargetARN
- type DeleteChapCredentialsInput struct {
- _ struct{} `type:"structure"`
- // The iSCSI initiator that connects to the target.
- InitiatorName *string `min:"1" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes
- // operation to return to retrieve the TargetARN for specified VolumeARN.
- TargetARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteChapCredentialsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteChapCredentialsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteChapCredentialsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteChapCredentialsInput"}
- if s.InitiatorName == nil {
- invalidParams.Add(request.NewErrParamRequired("InitiatorName"))
- }
- if s.InitiatorName != nil && len(*s.InitiatorName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InitiatorName", 1))
- }
- if s.TargetARN == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetARN"))
- }
- if s.TargetARN != nil && len(*s.TargetARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("TargetARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the following fields:
- type DeleteChapCredentialsOutput struct {
- _ struct{} `type:"structure"`
- // The iSCSI initiator that connects to the target.
- InitiatorName *string `min:"1" type:"string"`
- // The Amazon Resource Name (ARN) of the target.
- TargetARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s DeleteChapCredentialsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteChapCredentialsOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the id of the gateway to delete.
- type DeleteGatewayInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteGatewayInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteGatewayInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteGatewayInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteGatewayInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the id of the deleted gateway.
- type DeleteGatewayOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s DeleteGatewayOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteGatewayOutput) GoString() string {
- return s.String()
- }
- type DeleteSnapshotScheduleInput struct {
- _ struct{} `type:"structure"`
- VolumeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteSnapshotScheduleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteSnapshotScheduleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteSnapshotScheduleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotScheduleInput"}
- if s.VolumeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
- }
- if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteSnapshotScheduleOutput struct {
- _ struct{} `type:"structure"`
- VolumeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s DeleteSnapshotScheduleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteSnapshotScheduleOutput) GoString() string {
- return s.String()
- }
- // DeleteTapeArchiveInput
- type DeleteTapeArchiveInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual
- // tape shelf (VTS).
- TapeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteTapeArchiveInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTapeArchiveInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteTapeArchiveInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteTapeArchiveInput"}
- if s.TapeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("TapeARN"))
- }
- if s.TapeARN != nil && len(*s.TapeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // DeleteTapeArchiveOutput
- type DeleteTapeArchiveOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the virtual tape that was deleted from
- // the virtual tape shelf (VTS).
- TapeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s DeleteTapeArchiveOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTapeArchiveOutput) GoString() string {
- return s.String()
- }
- // DeleteTapeInput
- type DeleteTapeInput struct {
- _ struct{} `type:"structure"`
- // The unique Amazon Resource Name (ARN) of the gateway that the virtual tape
- // to delete is associated with. Use the ListGateways operation to return a
- // list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the virtual tape to delete.
- TapeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteTapeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTapeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteTapeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteTapeInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.TapeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("TapeARN"))
- }
- if s.TapeARN != nil && len(*s.TapeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // DeleteTapeOutput
- type DeleteTapeOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the deleted virtual tape.
- TapeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s DeleteTapeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteTapeOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the DeleteVolumeInput$VolumeARN to delete.
- type DeleteVolumeInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
- // to return a list of gateway volumes.
- VolumeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteVolumeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteVolumeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteVolumeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteVolumeInput"}
- if s.VolumeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
- }
- if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the of the storage volume that was deleted
- type DeleteVolumeOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the storage volume that was deleted. It
- // is the same ARN you provided in the request.
- VolumeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s DeleteVolumeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteVolumeOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the of the gateway.
- type DescribeBandwidthRateLimitInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeBandwidthRateLimitInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeBandwidthRateLimitInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeBandwidthRateLimitInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeBandwidthRateLimitInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the following fields:
- type DescribeBandwidthRateLimitOutput struct {
- _ struct{} `type:"structure"`
- // The average download bandwidth rate limit in bits per second. This field
- // does not appear in the response if the download rate limit is not set.
- AverageDownloadRateLimitInBitsPerSec *int64 `min:"102400" type:"long"`
- // The average upload bandwidth rate limit in bits per second. This field does
- // not appear in the response if the upload rate limit is not set.
- AverageUploadRateLimitInBitsPerSec *int64 `min:"51200" type:"long"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s DescribeBandwidthRateLimitOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeBandwidthRateLimitOutput) GoString() string {
- return s.String()
- }
- type DescribeCacheInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeCacheInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCacheInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeCacheInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeCacheInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DescribeCacheOutput struct {
- _ struct{} `type:"structure"`
- CacheAllocatedInBytes *int64 `type:"long"`
- CacheDirtyPercentage *float64 `type:"double"`
- CacheHitPercentage *float64 `type:"double"`
- CacheMissPercentage *float64 `type:"double"`
- CacheUsedPercentage *float64 `type:"double"`
- DiskIds []*string `type:"list"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s DescribeCacheOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCacheOutput) GoString() string {
- return s.String()
- }
- type DescribeCachediSCSIVolumesInput struct {
- _ struct{} `type:"structure"`
- VolumeARNs []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribeCachediSCSIVolumesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCachediSCSIVolumesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeCachediSCSIVolumesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeCachediSCSIVolumesInput"}
- if s.VolumeARNs == nil {
- invalidParams.Add(request.NewErrParamRequired("VolumeARNs"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the following fields:
- type DescribeCachediSCSIVolumesOutput struct {
- _ struct{} `type:"structure"`
- // An array of objects where each object contains metadata about one cached
- // volume.
- CachediSCSIVolumes []*CachediSCSIVolume `type:"list"`
- }
- // String returns the string representation
- func (s DescribeCachediSCSIVolumesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeCachediSCSIVolumesOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the Amazon Resource Name (ARN) of the iSCSI volume
- // target.
- type DescribeChapCredentialsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes
- // operation to return to retrieve the TargetARN for specified VolumeARN.
- TargetARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeChapCredentialsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeChapCredentialsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeChapCredentialsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeChapCredentialsInput"}
- if s.TargetARN == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetARN"))
- }
- if s.TargetARN != nil && len(*s.TargetARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("TargetARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing a .
- type DescribeChapCredentialsOutput struct {
- _ struct{} `type:"structure"`
- // An array of ChapInfo objects that represent CHAP credentials. Each object
- // in the array contains CHAP credential information for one target-initiator
- // pair. If no CHAP credentials are set, an empty array is returned. CHAP credential
- // information is provided in a JSON object with the following fields:
- //
- // InitiatorName: The iSCSI initiator that connects to the target.
- //
- // SecretToAuthenticateInitiator: The secret key that the initiator (for
- // example, the Windows client) must provide to participate in mutual CHAP with
- // the target.
- //
- // SecretToAuthenticateTarget: The secret key that the target must provide
- // to participate in mutual CHAP with the initiator (e.g. Windows client).
- //
- // TargetARN: The Amazon Resource Name (ARN) of the storage volume.
- ChapCredentials []*ChapInfo `type:"list"`
- }
- // String returns the string representation
- func (s DescribeChapCredentialsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeChapCredentialsOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the id of the gateway.
- type DescribeGatewayInformationInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeGatewayInformationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeGatewayInformationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeGatewayInformationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeGatewayInformationInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the following fields:
- type DescribeGatewayInformationOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- // The unique identifier assigned to your gateway during activation. This ID
- // becomes part of the gateway Amazon Resource Name (ARN), which you use as
- // input for other operations.
- GatewayId *string `min:"12" type:"string"`
- // The name you configured for your gateway.
- GatewayName *string `type:"string"`
- // A NetworkInterface array that contains descriptions of the gateway network
- // interfaces.
- GatewayNetworkInterfaces []*NetworkInterface `type:"list"`
- // A value that indicates the operating state of the gateway.
- GatewayState *string `min:"2" type:"string"`
- // A value that indicates the time zone configured for the gateway.
- GatewayTimezone *string `min:"3" type:"string"`
- // The type of the gateway.
- GatewayType *string `min:"2" type:"string"`
- // The date on which the last software update was applied to the gateway. If
- // the gateway has never been updated, this field does not return a value in
- // the response.
- LastSoftwareUpdate *string `min:"1" type:"string"`
- // The date on which an update to the gateway is available. This date is in
- // the time zone of the gateway. If the gateway is not available for an update
- // this field is not returned in the response.
- NextUpdateAvailabilityDate *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeGatewayInformationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeGatewayInformationOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the of the gateway.
- type DescribeMaintenanceStartTimeInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeMaintenanceStartTimeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeMaintenanceStartTimeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeMaintenanceStartTimeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeMaintenanceStartTimeInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DescribeMaintenanceStartTimeOutput struct {
- _ struct{} `type:"structure"`
- DayOfWeek *int64 `type:"integer"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- HourOfDay *int64 `type:"integer"`
- MinuteOfHour *int64 `type:"integer"`
- Timezone *string `min:"3" type:"string"`
- }
- // String returns the string representation
- func (s DescribeMaintenanceStartTimeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeMaintenanceStartTimeOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the DescribeSnapshotScheduleInput$VolumeARN of the
- // volume.
- type DescribeSnapshotScheduleInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
- // to return a list of gateway volumes.
- VolumeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeSnapshotScheduleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSnapshotScheduleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeSnapshotScheduleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeSnapshotScheduleInput"}
- if s.VolumeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
- }
- if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DescribeSnapshotScheduleOutput struct {
- _ struct{} `type:"structure"`
- Description *string `min:"1" type:"string"`
- RecurrenceInHours *int64 `min:"1" type:"integer"`
- StartAt *int64 `type:"integer"`
- Timezone *string `min:"3" type:"string"`
- VolumeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s DescribeSnapshotScheduleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSnapshotScheduleOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing a list of DescribeStorediSCSIVolumesInput$VolumeARNs.
- type DescribeStorediSCSIVolumesInput struct {
- _ struct{} `type:"structure"`
- // An array of strings where each string represents the Amazon Resource Name
- // (ARN) of a stored volume. All of the specified stored volumes must from the
- // same gateway. Use ListVolumes to get volume ARNs for a gateway.
- VolumeARNs []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribeStorediSCSIVolumesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeStorediSCSIVolumesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeStorediSCSIVolumesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeStorediSCSIVolumesInput"}
- if s.VolumeARNs == nil {
- invalidParams.Add(request.NewErrParamRequired("VolumeARNs"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DescribeStorediSCSIVolumesOutput struct {
- _ struct{} `type:"structure"`
- StorediSCSIVolumes []*StorediSCSIVolume `type:"list"`
- }
- // String returns the string representation
- func (s DescribeStorediSCSIVolumesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeStorediSCSIVolumesOutput) GoString() string {
- return s.String()
- }
- // DescribeTapeArchivesInput
- type DescribeTapeArchivesInput struct {
- _ struct{} `type:"structure"`
- // Specifies that the number of virtual tapes descried be limited to the specified
- // number.
- Limit *int64 `min:"1" type:"integer"`
- // An opaque string that indicates the position at which to begin describing
- // virtual tapes.
- Marker *string `min:"1" type:"string"`
- // Specifies one or more unique Amazon Resource Names (ARNs) that represent
- // the virtual tapes you want to describe.
- TapeARNs []*string `type:"list"`
- }
- // String returns the string representation
- func (s DescribeTapeArchivesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTapeArchivesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeTapeArchivesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeTapeArchivesInput"}
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
- }
- if s.Marker != nil && len(*s.Marker) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // DescribeTapeArchivesOutput
- type DescribeTapeArchivesOutput struct {
- _ struct{} `type:"structure"`
- // An opaque string that indicates the position at which the virtual tapes that
- // were fetched for description ended. Use this marker in your next request
- // to fetch the next set of virtual tapes in the virtual tape shelf (VTS). If
- // there are no more virtual tapes to describe, this field does not appear in
- // the response.
- Marker *string `min:"1" type:"string"`
- // An array of virtual tape objects in the virtual tape shelf (VTS). The description
- // includes of the Amazon Resource Name(ARN) of the virtual tapes. The information
- // returned includes the Amazon Resource Names (ARNs) of the tapes, size of
- // the tapes, status of the tapes, progress of the description and tape barcode.
- TapeArchives []*TapeArchive `type:"list"`
- }
- // String returns the string representation
- func (s DescribeTapeArchivesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTapeArchivesOutput) GoString() string {
- return s.String()
- }
- // DescribeTapeRecoveryPointsInput
- type DescribeTapeRecoveryPointsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // Specifies that the number of virtual tape recovery points that are described
- // be limited to the specified number.
- Limit *int64 `min:"1" type:"integer"`
- // An opaque string that indicates the position at which to begin describing
- // the virtual tape recovery points.
- Marker *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DescribeTapeRecoveryPointsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTapeRecoveryPointsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeTapeRecoveryPointsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeTapeRecoveryPointsInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
- }
- if s.Marker != nil && len(*s.Marker) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // DescribeTapeRecoveryPointsOutput
- type DescribeTapeRecoveryPointsOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- // An opaque string that indicates the position at which the virtual tape recovery
- // points that were listed for description ended.
- //
- // Use this marker in your next request to list the next set of virtual tape
- // recovery points in the list. If there are no more recovery points to describe,
- // this field does not appear in the response.
- Marker *string `min:"1" type:"string"`
- // An array of TapeRecoveryPointInfos that are available for the specified gateway.
- TapeRecoveryPointInfos []*TapeRecoveryPointInfo `type:"list"`
- }
- // String returns the string representation
- func (s DescribeTapeRecoveryPointsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTapeRecoveryPointsOutput) GoString() string {
- return s.String()
- }
- // DescribeTapesInput
- type DescribeTapesInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // Specifies that the number of virtual tapes described be limited to the specified
- // number.
- //
- // Amazon Web Services may impose its own limit, if this field is not set.
- Limit *int64 `min:"1" type:"integer"`
- // A marker value, obtained in a previous call to DescribeTapes. This marker
- // indicates which page of results to retrieve.
- //
- // If not specified, the first page of results is retrieved.
- Marker *string `min:"1" type:"string"`
- // Specifies one or more unique Amazon Resource Names (ARNs) that represent
- // the virtual tapes you want to describe. If this parameter is not specified,
- // AWS Storage Gateway returns a description of all virtual tapes associated
- // with the specified gateway.
- TapeARNs []*string `type:"list"`
- }
- // String returns the string representation
- func (s DescribeTapesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTapesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeTapesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeTapesInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
- }
- if s.Marker != nil && len(*s.Marker) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // DescribeTapesOutput
- type DescribeTapesOutput struct {
- _ struct{} `type:"structure"`
- // An opaque string which can be used as part of a subsequent DescribeTapes
- // call to retrieve the next page of results.
- //
- // If a response does not contain a marker, then there are no more results
- // to be retrieved.
- Marker *string `min:"1" type:"string"`
- // An array of virtual tape descriptions.
- Tapes []*Tape `type:"list"`
- }
- // String returns the string representation
- func (s DescribeTapesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeTapesOutput) GoString() string {
- return s.String()
- }
- type DescribeUploadBufferInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeUploadBufferInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeUploadBufferInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeUploadBufferInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeUploadBufferInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DescribeUploadBufferOutput struct {
- _ struct{} `type:"structure"`
- DiskIds []*string `type:"list"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- UploadBufferAllocatedInBytes *int64 `type:"long"`
- UploadBufferUsedInBytes *int64 `type:"long"`
- }
- // String returns the string representation
- func (s DescribeUploadBufferOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeUploadBufferOutput) GoString() string {
- return s.String()
- }
- // DescribeVTLDevicesInput
- type DescribeVTLDevicesInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // Specifies that the number of VTL devices described be limited to the specified
- // number.
- Limit *int64 `min:"1" type:"integer"`
- // An opaque string that indicates the position at which to begin describing
- // the VTL devices.
- Marker *string `min:"1" type:"string"`
- // An array of strings, where each string represents the Amazon Resource Name
- // (ARN) of a VTL device.
- //
- // All of the specified VTL devices must be from the same gateway. If no VTL
- // devices are specified, the result will contain all devices on the specified
- // gateway.
- VTLDeviceARNs []*string `type:"list"`
- }
- // String returns the string representation
- func (s DescribeVTLDevicesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeVTLDevicesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeVTLDevicesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeVTLDevicesInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
- }
- if s.Marker != nil && len(*s.Marker) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // DescribeVTLDevicesOutput
- type DescribeVTLDevicesOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- // An opaque string that indicates the position at which the VTL devices that
- // were fetched for description ended. Use the marker in your next request to
- // fetch the next set of VTL devices in the list. If there are no more VTL devices
- // to describe, this field does not appear in the response.
- Marker *string `min:"1" type:"string"`
- // An array of VTL device objects composed of the Amazon Resource Name(ARN)
- // of the VTL devices.
- VTLDevices []*VTLDevice `type:"list"`
- }
- // String returns the string representation
- func (s DescribeVTLDevicesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeVTLDevicesOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the of the gateway.
- type DescribeWorkingStorageInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeWorkingStorageInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeWorkingStorageInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeWorkingStorageInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeWorkingStorageInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the following fields:
- type DescribeWorkingStorageOutput struct {
- _ struct{} `type:"structure"`
- // An array of the gateway's local disk IDs that are configured as working storage.
- // Each local disk ID is specified as a string (minimum length of 1 and maximum
- // length of 300). If no local disks are configured as working storage, then
- // the DiskIds array is empty.
- DiskIds []*string `type:"list"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- // The total working storage in bytes allocated for the gateway. If no working
- // storage is configured for the gateway, this field returns 0.
- WorkingStorageAllocatedInBytes *int64 `type:"long"`
- // The total working storage in bytes in use by the gateway. If no working storage
- // is configured for the gateway, this field returns 0.
- WorkingStorageUsedInBytes *int64 `type:"long"`
- }
- // String returns the string representation
- func (s DescribeWorkingStorageOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeWorkingStorageOutput) GoString() string {
- return s.String()
- }
- // Lists iSCSI information about a VTL device.
- type DeviceiSCSIAttributes struct {
- _ struct{} `type:"structure"`
- // Indicates whether mutual CHAP is enabled for the iSCSI target.
- ChapEnabled *bool `type:"boolean"`
- // The network interface identifier of the VTL device.
- NetworkInterfaceId *string `type:"string"`
- // The port used to communicate with iSCSI VTL device targets.
- NetworkInterfacePort *int64 `type:"integer"`
- // Specifies the unique Amazon Resource Name(ARN) that encodes the iSCSI qualified
- // name(iqn) of a tape drive or media changer target.
- TargetARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s DeviceiSCSIAttributes) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeviceiSCSIAttributes) GoString() string {
- return s.String()
- }
- // DisableGatewayInput
- type DisableGatewayInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DisableGatewayInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableGatewayInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisableGatewayInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisableGatewayInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // DisableGatewayOutput
- type DisableGatewayOutput struct {
- _ struct{} `type:"structure"`
- // The unique Amazon Resource Name of the disabled gateway.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s DisableGatewayOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisableGatewayOutput) GoString() string {
- return s.String()
- }
- type Disk struct {
- _ struct{} `type:"structure"`
- DiskAllocationResource *string `type:"string"`
- DiskAllocationType *string `min:"3" type:"string"`
- DiskId *string `min:"1" type:"string"`
- DiskNode *string `type:"string"`
- DiskPath *string `type:"string"`
- DiskSizeInBytes *int64 `type:"long"`
- DiskStatus *string `type:"string"`
- }
- // String returns the string representation
- func (s Disk) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Disk) GoString() string {
- return s.String()
- }
- // Provides additional information about an error that was returned by the service
- // as an or. See the errorCode and errorDetails members for more information
- // about the error.
- type Error struct {
- _ struct{} `type:"structure"`
- // Additional information about the error.
- ErrorCode *string `locationName:"errorCode" type:"string" enum:"ErrorCode"`
- // Human-readable text that provides detail about the error that occurred.
- ErrorDetails map[string]*string `locationName:"errorDetails" type:"map"`
- }
- // String returns the string representation
- func (s Error) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Error) GoString() string {
- return s.String()
- }
- // Describes a gateway object.
- type GatewayInfo struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- // The unique identifier assigned to your gateway during activation. This ID
- // becomes part of the gateway Amazon Resource Name (ARN), which you use as
- // input for other operations.
- GatewayId *string `min:"12" type:"string"`
- // The name of the gateway.
- GatewayName *string `type:"string"`
- // The state of the gateway.
- //
- // Valid Values: DISABLED or ACTIVE
- GatewayOperationalState *string `min:"2" type:"string"`
- // The type of the gateway.
- GatewayType *string `min:"2" type:"string"`
- }
- // String returns the string representation
- func (s GatewayInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GatewayInfo) GoString() string {
- return s.String()
- }
- // A JSON object containing zero or more of the following fields:
- //
- // ListGatewaysInput$Limit
- //
- // ListGatewaysInput$Marker
- type ListGatewaysInput struct {
- _ struct{} `type:"structure"`
- // Specifies that the list of gateways returned be limited to the specified
- // number of items.
- Limit *int64 `min:"1" type:"integer"`
- // An opaque string that indicates the position at which to begin the returned
- // list of gateways.
- Marker *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListGatewaysInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListGatewaysInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListGatewaysInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListGatewaysInput"}
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
- }
- if s.Marker != nil && len(*s.Marker) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListGatewaysOutput struct {
- _ struct{} `type:"structure"`
- Gateways []*GatewayInfo `type:"list"`
- Marker *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListGatewaysOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListGatewaysOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the of the gateway.
- type ListLocalDisksInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListLocalDisksInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListLocalDisksInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListLocalDisksInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListLocalDisksInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListLocalDisksOutput struct {
- _ struct{} `type:"structure"`
- Disks []*Disk `type:"list"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s ListLocalDisksOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListLocalDisksOutput) GoString() string {
- return s.String()
- }
- // ListTagsForResourceInput
- type ListTagsForResourceInput struct {
- _ struct{} `type:"structure"`
- // Specifies that the list of tags returned be limited to the specified number
- // of items.
- Limit *int64 `min:"1" type:"integer"`
- // An opaque string that indicates the position at which to begin returning
- // the list of tags.
- Marker *string `min:"1" type:"string"`
- // The Amazon Resource Name (ARN) of the resource for which you want to list
- // tags.
- ResourceARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListTagsForResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTagsForResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
- }
- if s.Marker != nil && len(*s.Marker) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
- }
- if s.ResourceARN == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
- }
- if s.ResourceARN != nil && len(*s.ResourceARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // ListTagsForResourceOutput
- type ListTagsForResourceOutput struct {
- _ struct{} `type:"structure"`
- // An opaque string that indicates the position at which to stop returning the
- // list of tags.
- Marker *string `min:"1" type:"string"`
- // he Amazon Resource Name (ARN) of the resource for which you want to list
- // tags.
- ResourceARN *string `min:"50" type:"string"`
- // An array that contains the tags for the specified resource.
- Tags []*Tag `type:"list"`
- }
- // String returns the string representation
- func (s ListTagsForResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTagsForResourceOutput) GoString() string {
- return s.String()
- }
- // A JSON object that contains one or more of the following fields:
- //
- // ListTapesInput$Limit
- //
- // ListTapesInput$Marker
- //
- // ListTapesInput$TapeARNs
- type ListTapesInput struct {
- _ struct{} `type:"structure"`
- // An optional number limit for the tapes in the list returned by this call.
- Limit *int64 `min:"1" type:"integer"`
- // A string that indicates the position at which to begin the returned list
- // of tapes.
- Marker *string `min:"1" type:"string"`
- // The Amazon Resource Name (ARN) of each of the tapes you want to list. If
- // you don't specify a tape ARN, the response lists all tapes in both your VTL
- // and VTS.
- TapeARNs []*string `type:"list"`
- }
- // String returns the string representation
- func (s ListTapesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTapesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListTapesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListTapesInput"}
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
- }
- if s.Marker != nil && len(*s.Marker) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the following fields:
- //
- // ListTapesOutput$Marker
- //
- // ListTapesOutput$VolumeInfos
- type ListTapesOutput struct {
- _ struct{} `type:"structure"`
- // A string that indicates the position at which to begin returning the next
- // list of tapes. Use the marker in your next request to continue pagination
- // of tapes. If there are no more tapes to list, this element does not appear
- // in the response body.
- Marker *string `min:"1" type:"string"`
- // An array of TapeInfo objects, where each object describes an a single tape.
- // If there not tapes in the tape library or VTS, then the TapeInfos is an empty
- // array.
- TapeInfos []*TapeInfo `type:"list"`
- }
- // String returns the string representation
- func (s ListTapesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListTapesOutput) GoString() string {
- return s.String()
- }
- // ListVolumeInitiatorsInput
- type ListVolumeInitiatorsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
- // to return a list of gateway volumes for the gateway.
- VolumeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListVolumeInitiatorsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListVolumeInitiatorsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListVolumeInitiatorsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListVolumeInitiatorsInput"}
- if s.VolumeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
- }
- if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // ListVolumeInitiatorsOutput
- type ListVolumeInitiatorsOutput struct {
- _ struct{} `type:"structure"`
- // The host names and port numbers of all iSCSI initiators that are connected
- // to the gateway.
- Initiators []*string `type:"list"`
- }
- // String returns the string representation
- func (s ListVolumeInitiatorsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListVolumeInitiatorsOutput) GoString() string {
- return s.String()
- }
- type ListVolumeRecoveryPointsInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ListVolumeRecoveryPointsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListVolumeRecoveryPointsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListVolumeRecoveryPointsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListVolumeRecoveryPointsInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListVolumeRecoveryPointsOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- VolumeRecoveryPointInfos []*VolumeRecoveryPointInfo `type:"list"`
- }
- // String returns the string representation
- func (s ListVolumeRecoveryPointsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListVolumeRecoveryPointsOutput) GoString() string {
- return s.String()
- }
- // A JSON object that contains one or more of the following fields:
- //
- // ListVolumesInput$Limit
- //
- // ListVolumesInput$Marker
- type ListVolumesInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- // Specifies that the list of volumes returned be limited to the specified number
- // of items.
- Limit *int64 `min:"1" type:"integer"`
- // A string that indicates the position at which to begin the returned list
- // of volumes. Obtain the marker from the response of a previous List iSCSI
- // Volumes request.
- Marker *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ListVolumesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListVolumesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListVolumesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListVolumesInput"}
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
- }
- if s.Marker != nil && len(*s.Marker) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Marker", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListVolumesOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- Marker *string `min:"1" type:"string"`
- VolumeInfos []*VolumeInfo `type:"list"`
- }
- // String returns the string representation
- func (s ListVolumesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListVolumesOutput) GoString() string {
- return s.String()
- }
- // Describes a gateway's network interface.
- type NetworkInterface struct {
- _ struct{} `type:"structure"`
- // The Internet Protocol version 4 (IPv4) address of the interface.
- Ipv4Address *string `type:"string"`
- // The Internet Protocol version 6 (IPv6) address of the interface. Currently
- // not supported.
- Ipv6Address *string `type:"string"`
- // The Media Access Control (MAC) address of the interface.
- //
- // This is currently unsupported and will not be returned in output.
- MacAddress *string `type:"string"`
- }
- // String returns the string representation
- func (s NetworkInterface) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s NetworkInterface) GoString() string {
- return s.String()
- }
- // RemoveTagsFromResourceInput
- type RemoveTagsFromResourceInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource you want to remove the tags
- // from.
- ResourceARN *string `min:"50" type:"string" required:"true"`
- // The keys of the tags you want to remove from the specified resource. A tag
- // is composed of a key/value pair.
- TagKeys []*string `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s RemoveTagsFromResourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsFromResourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RemoveTagsFromResourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromResourceInput"}
- if s.ResourceARN == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
- }
- if s.ResourceARN != nil && len(*s.ResourceARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 50))
- }
- if s.TagKeys == nil {
- invalidParams.Add(request.NewErrParamRequired("TagKeys"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // RemoveTagsFromResourceOutput
- type RemoveTagsFromResourceOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the resource that the tags were removed
- // from.
- ResourceARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s RemoveTagsFromResourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsFromResourceOutput) GoString() string {
- return s.String()
- }
- type ResetCacheInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ResetCacheInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResetCacheInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ResetCacheInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ResetCacheInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ResetCacheOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s ResetCacheOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ResetCacheOutput) GoString() string {
- return s.String()
- }
- // RetrieveTapeArchiveInput
- type RetrieveTapeArchiveInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway you want to retrieve the virtual
- // tape to. Use the ListGateways operation to return a list of gateways for
- // your account and region.
- //
- // You retrieve archived virtual tapes to only one gateway and the gateway
- // must be a gateway-VTL.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from
- // the virtual tape shelf (VTS).
- TapeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RetrieveTapeArchiveInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RetrieveTapeArchiveInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RetrieveTapeArchiveInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RetrieveTapeArchiveInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.TapeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("TapeARN"))
- }
- if s.TapeARN != nil && len(*s.TapeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // RetrieveTapeArchiveOutput
- type RetrieveTapeArchiveOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the retrieved virtual tape.
- TapeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s RetrieveTapeArchiveOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RetrieveTapeArchiveOutput) GoString() string {
- return s.String()
- }
- // RetrieveTapeRecoveryPointInput
- type RetrieveTapeRecoveryPointInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the virtual tape for which you want to
- // retrieve the recovery point.
- TapeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RetrieveTapeRecoveryPointInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RetrieveTapeRecoveryPointInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RetrieveTapeRecoveryPointInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RetrieveTapeRecoveryPointInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.TapeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("TapeARN"))
- }
- if s.TapeARN != nil && len(*s.TapeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("TapeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // RetrieveTapeRecoveryPointOutput
- type RetrieveTapeRecoveryPointOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the virtual tape for which the recovery
- // point was retrieved.
- TapeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s RetrieveTapeRecoveryPointOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RetrieveTapeRecoveryPointOutput) GoString() string {
- return s.String()
- }
- // SetLocalConsolePasswordInput
- type SetLocalConsolePasswordInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // The password you want to set for your VM local console.
- LocalConsolePassword *string `min:"6" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SetLocalConsolePasswordInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLocalConsolePasswordInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetLocalConsolePasswordInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetLocalConsolePasswordInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.LocalConsolePassword == nil {
- invalidParams.Add(request.NewErrParamRequired("LocalConsolePassword"))
- }
- if s.LocalConsolePassword != nil && len(*s.LocalConsolePassword) < 6 {
- invalidParams.Add(request.NewErrParamMinLen("LocalConsolePassword", 6))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type SetLocalConsolePasswordOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s SetLocalConsolePasswordOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetLocalConsolePasswordOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the of the gateway to shut down.
- type ShutdownGatewayInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ShutdownGatewayInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ShutdownGatewayInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ShutdownGatewayInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ShutdownGatewayInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the of the gateway that was shut down.
- type ShutdownGatewayOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s ShutdownGatewayOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ShutdownGatewayOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the of the gateway to start.
- type StartGatewayInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StartGatewayInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartGatewayInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartGatewayInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartGatewayInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the of the gateway that was restarted.
- type StartGatewayOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s StartGatewayOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartGatewayOutput) GoString() string {
- return s.String()
- }
- type StorediSCSIVolume struct {
- _ struct{} `type:"structure"`
- PreservedExistingData *bool `type:"boolean"`
- SourceSnapshotId *string `type:"string"`
- VolumeARN *string `min:"50" type:"string"`
- VolumeDiskId *string `min:"1" type:"string"`
- VolumeId *string `min:"12" type:"string"`
- VolumeProgress *float64 `type:"double"`
- VolumeSizeInBytes *int64 `type:"long"`
- VolumeStatus *string `min:"3" type:"string"`
- VolumeType *string `min:"3" type:"string"`
- // Lists iSCSI information about a volume.
- VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"`
- }
- // String returns the string representation
- func (s StorediSCSIVolume) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StorediSCSIVolume) GoString() string {
- return s.String()
- }
- type Tag struct {
- _ struct{} `type:"structure"`
- Key *string `min:"1" type:"string" required:"true"`
- Value *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Tag) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tag) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Tag) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Tag"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes a virtual tape object.
- type Tape struct {
- _ struct{} `type:"structure"`
- // For archiving virtual tapes, indicates how much data remains to be uploaded
- // before archiving is complete.
- //
- // Range: 0 (not started) to 100 (complete).
- Progress *float64 `type:"double"`
- // The Amazon Resource Name (ARN) of the virtual tape.
- TapeARN *string `min:"50" type:"string"`
- // The barcode that identifies a specific virtual tape.
- TapeBarcode *string `min:"7" type:"string"`
- // The size, in bytes, of the virtual tape.
- TapeSizeInBytes *int64 `type:"long"`
- // The current state of the virtual tape.
- TapeStatus *string `type:"string"`
- // The virtual tape library (VTL) device that the virtual tape is associated
- // with.
- VTLDevice *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s Tape) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tape) GoString() string {
- return s.String()
- }
- // Represents a virtual tape that is archived in the virtual tape shelf (VTS).
- type TapeArchive struct {
- _ struct{} `type:"structure"`
- // The time that the archiving of the virtual tape was completed.
- //
- // The string format of the completion time is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z'
- // format.
- CompletionTime *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The Amazon Resource Name (ARN) of the gateway-VTL that the virtual tape is
- // being retrieved to.
- //
- // The virtual tape is retrieved from the virtual tape shelf (VTS).
- RetrievedTo *string `min:"50" type:"string"`
- // The Amazon Resource Name (ARN) of an archived virtual tape.
- TapeARN *string `min:"50" type:"string"`
- // The barcode that identifies the archived virtual tape.
- TapeBarcode *string `min:"7" type:"string"`
- // The size, in bytes, of the archived virtual tape.
- TapeSizeInBytes *int64 `type:"long"`
- // The current state of the archived virtual tape.
- TapeStatus *string `type:"string"`
- }
- // String returns the string representation
- func (s TapeArchive) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TapeArchive) GoString() string {
- return s.String()
- }
- // Describes a virtual tape.
- type TapeInfo struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- // The Amazon Resource Name (ARN) of a virtual tape.
- TapeARN *string `min:"50" type:"string"`
- // The barcode that identifies a specific virtual tape.
- TapeBarcode *string `min:"7" type:"string"`
- // The size, in bytes, of a virtual tape.
- TapeSizeInBytes *int64 `type:"long"`
- // The status of the tape.
- TapeStatus *string `type:"string"`
- }
- // String returns the string representation
- func (s TapeInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TapeInfo) GoString() string {
- return s.String()
- }
- // Describes a recovery point.
- type TapeRecoveryPointInfo struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the virtual tape.
- TapeARN *string `min:"50" type:"string"`
- // The time when the point-in-time view of the virtual tape was replicated for
- // later recovery.
- //
- // The string format of the tape recovery point time is in the ISO8601 extended
- // YYYY-MM-DD'T'HH:MM:SS'Z' format.
- TapeRecoveryPointTime *time.Time `type:"timestamp" timestampFormat:"unix"`
- // The size, in bytes, of the virtual tapes to recover.
- TapeSizeInBytes *int64 `type:"long"`
- TapeStatus *string `type:"string"`
- }
- // String returns the string representation
- func (s TapeRecoveryPointInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TapeRecoveryPointInfo) GoString() string {
- return s.String()
- }
- // A JSON object containing one or more of the following fields:
- //
- // UpdateBandwidthRateLimitInput$AverageDownloadRateLimitInBitsPerSec
- //
- // UpdateBandwidthRateLimitInput$AverageUploadRateLimitInBitsPerSec
- type UpdateBandwidthRateLimitInput struct {
- _ struct{} `type:"structure"`
- // The average download bandwidth rate limit in bits per second.
- AverageDownloadRateLimitInBitsPerSec *int64 `min:"102400" type:"long"`
- // The average upload bandwidth rate limit in bits per second.
- AverageUploadRateLimitInBitsPerSec *int64 `min:"51200" type:"long"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateBandwidthRateLimitInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateBandwidthRateLimitInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateBandwidthRateLimitInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateBandwidthRateLimitInput"}
- if s.AverageDownloadRateLimitInBitsPerSec != nil && *s.AverageDownloadRateLimitInBitsPerSec < 102400 {
- invalidParams.Add(request.NewErrParamMinValue("AverageDownloadRateLimitInBitsPerSec", 102400))
- }
- if s.AverageUploadRateLimitInBitsPerSec != nil && *s.AverageUploadRateLimitInBitsPerSec < 51200 {
- invalidParams.Add(request.NewErrParamMinValue("AverageUploadRateLimitInBitsPerSec", 51200))
- }
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the of the gateway whose throttle information was
- // updated.
- type UpdateBandwidthRateLimitOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s UpdateBandwidthRateLimitOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateBandwidthRateLimitOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing one or more of the following fields:
- //
- // UpdateChapCredentialsInput$InitiatorName
- //
- // UpdateChapCredentialsInput$SecretToAuthenticateInitiator
- //
- // UpdateChapCredentialsInput$SecretToAuthenticateTarget
- //
- // UpdateChapCredentialsInput$TargetARN
- type UpdateChapCredentialsInput struct {
- _ struct{} `type:"structure"`
- // The iSCSI initiator that connects to the target.
- InitiatorName *string `min:"1" type:"string" required:"true"`
- // The secret key that the initiator (for example, the Windows client) must
- // provide to participate in mutual CHAP with the target.
- //
- // The secret key must be between 12 and 16 bytes when encoded in UTF-8.
- SecretToAuthenticateInitiator *string `min:"1" type:"string" required:"true"`
- // The secret key that the target must provide to participate in mutual CHAP
- // with the initiator (e.g. Windows client).
- //
- // Byte constraints: Minimum bytes of 12. Maximum bytes of 16.
- //
- // The secret key must be between 12 and 16 bytes when encoded in UTF-8.
- SecretToAuthenticateTarget *string `min:"1" type:"string"`
- // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes
- // operation to return the TargetARN for specified VolumeARN.
- TargetARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateChapCredentialsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateChapCredentialsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateChapCredentialsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateChapCredentialsInput"}
- if s.InitiatorName == nil {
- invalidParams.Add(request.NewErrParamRequired("InitiatorName"))
- }
- if s.InitiatorName != nil && len(*s.InitiatorName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InitiatorName", 1))
- }
- if s.SecretToAuthenticateInitiator == nil {
- invalidParams.Add(request.NewErrParamRequired("SecretToAuthenticateInitiator"))
- }
- if s.SecretToAuthenticateInitiator != nil && len(*s.SecretToAuthenticateInitiator) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecretToAuthenticateInitiator", 1))
- }
- if s.SecretToAuthenticateTarget != nil && len(*s.SecretToAuthenticateTarget) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SecretToAuthenticateTarget", 1))
- }
- if s.TargetARN == nil {
- invalidParams.Add(request.NewErrParamRequired("TargetARN"))
- }
- if s.TargetARN != nil && len(*s.TargetARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("TargetARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the following fields:
- type UpdateChapCredentialsOutput struct {
- _ struct{} `type:"structure"`
- // The iSCSI initiator that connects to the target. This is the same initiator
- // name specified in the request.
- InitiatorName *string `min:"1" type:"string"`
- // The Amazon Resource Name (ARN) of the target. This is the same target specified
- // in the request.
- TargetARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s UpdateChapCredentialsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateChapCredentialsOutput) GoString() string {
- return s.String()
- }
- type UpdateGatewayInformationInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // The name you configured for your gateway.
- GatewayName *string `min:"2" type:"string"`
- GatewayTimezone *string `min:"3" type:"string"`
- }
- // String returns the string representation
- func (s UpdateGatewayInformationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateGatewayInformationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateGatewayInformationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateGatewayInformationInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.GatewayName != nil && len(*s.GatewayName) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayName", 2))
- }
- if s.GatewayTimezone != nil && len(*s.GatewayTimezone) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayTimezone", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the ARN of the gateway that was updated.
- type UpdateGatewayInformationOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- GatewayName *string `type:"string"`
- }
- // String returns the string representation
- func (s UpdateGatewayInformationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateGatewayInformationOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the of the gateway to update.
- type UpdateGatewaySoftwareNowInput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateGatewaySoftwareNowInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateGatewaySoftwareNowInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateGatewaySoftwareNowInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateGatewaySoftwareNowInput"}
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the of the gateway that was updated.
- type UpdateGatewaySoftwareNowOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s UpdateGatewaySoftwareNowOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateGatewaySoftwareNowOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing the following fields:
- //
- // UpdateMaintenanceStartTimeInput$DayOfWeek
- //
- // UpdateMaintenanceStartTimeInput$HourOfDay
- //
- // UpdateMaintenanceStartTimeInput$MinuteOfHour
- type UpdateMaintenanceStartTimeInput struct {
- _ struct{} `type:"structure"`
- // The maintenance start time day of the week.
- DayOfWeek *int64 `type:"integer" required:"true"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string" required:"true"`
- // The hour component of the maintenance start time represented as hh, where
- // hh is the hour (00 to 23). The hour of the day is in the time zone of the
- // gateway.
- HourOfDay *int64 `type:"integer" required:"true"`
- // The minute component of the maintenance start time represented as mm, where
- // mm is the minute (00 to 59). The minute of the hour is in the time zone of
- // the gateway.
- MinuteOfHour *int64 `type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s UpdateMaintenanceStartTimeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateMaintenanceStartTimeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateMaintenanceStartTimeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateMaintenanceStartTimeInput"}
- if s.DayOfWeek == nil {
- invalidParams.Add(request.NewErrParamRequired("DayOfWeek"))
- }
- if s.GatewayARN == nil {
- invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
- }
- if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
- }
- if s.HourOfDay == nil {
- invalidParams.Add(request.NewErrParamRequired("HourOfDay"))
- }
- if s.MinuteOfHour == nil {
- invalidParams.Add(request.NewErrParamRequired("MinuteOfHour"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the of the gateway whose maintenance start time
- // is updated.
- type UpdateMaintenanceStartTimeOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s UpdateMaintenanceStartTimeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateMaintenanceStartTimeOutput) GoString() string {
- return s.String()
- }
- // A JSON object containing one or more of the following fields:
- //
- // UpdateSnapshotScheduleInput$Description
- //
- // UpdateSnapshotScheduleInput$RecurrenceInHours
- //
- // UpdateSnapshotScheduleInput$StartAt
- //
- // UpdateSnapshotScheduleInput$VolumeARN
- type UpdateSnapshotScheduleInput struct {
- _ struct{} `type:"structure"`
- // Optional description of the snapshot that overwrites the existing description.
- Description *string `min:"1" type:"string"`
- // Frequency of snapshots. Specify the number of hours between snapshots.
- RecurrenceInHours *int64 `min:"1" type:"integer" required:"true"`
- // The hour of the day at which the snapshot schedule begins represented as
- // hh, where hh is the hour (0 to 23). The hour of the day is in the time zone
- // of the gateway.
- StartAt *int64 `type:"integer" required:"true"`
- // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
- // to return a list of gateway volumes.
- VolumeARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateSnapshotScheduleInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateSnapshotScheduleInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateSnapshotScheduleInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateSnapshotScheduleInput"}
- if s.Description != nil && len(*s.Description) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Description", 1))
- }
- if s.RecurrenceInHours == nil {
- invalidParams.Add(request.NewErrParamRequired("RecurrenceInHours"))
- }
- if s.RecurrenceInHours != nil && *s.RecurrenceInHours < 1 {
- invalidParams.Add(request.NewErrParamMinValue("RecurrenceInHours", 1))
- }
- if s.StartAt == nil {
- invalidParams.Add(request.NewErrParamRequired("StartAt"))
- }
- if s.VolumeARN == nil {
- invalidParams.Add(request.NewErrParamRequired("VolumeARN"))
- }
- if s.VolumeARN != nil && len(*s.VolumeARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A JSON object containing the of the updated storage volume.
- type UpdateSnapshotScheduleOutput struct {
- _ struct{} `type:"structure"`
- VolumeARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s UpdateSnapshotScheduleOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateSnapshotScheduleOutput) GoString() string {
- return s.String()
- }
- type UpdateVTLDeviceTypeInput struct {
- _ struct{} `type:"structure"`
- // The type of medium changer you want to select.
- //
- // Valid Values: "STK-L700", "AWS-Gateway-VTL"
- DeviceType *string `min:"2" type:"string" required:"true"`
- // The Amazon Resource Name (ARN) of the medium changer you want to select.
- VTLDeviceARN *string `min:"50" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateVTLDeviceTypeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateVTLDeviceTypeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateVTLDeviceTypeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateVTLDeviceTypeInput"}
- if s.DeviceType == nil {
- invalidParams.Add(request.NewErrParamRequired("DeviceType"))
- }
- if s.DeviceType != nil && len(*s.DeviceType) < 2 {
- invalidParams.Add(request.NewErrParamMinLen("DeviceType", 2))
- }
- if s.VTLDeviceARN == nil {
- invalidParams.Add(request.NewErrParamRequired("VTLDeviceARN"))
- }
- if s.VTLDeviceARN != nil && len(*s.VTLDeviceARN) < 50 {
- invalidParams.Add(request.NewErrParamMinLen("VTLDeviceARN", 50))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // UpdateVTLDeviceTypeOutput
- type UpdateVTLDeviceTypeOutput struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the medium changer you have selected.
- VTLDeviceARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s UpdateVTLDeviceTypeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateVTLDeviceTypeOutput) GoString() string {
- return s.String()
- }
- // Represents a device object associated with a gateway-VTL.
- type VTLDevice struct {
- _ struct{} `type:"structure"`
- // A list of iSCSI information about a VTL device.
- DeviceiSCSIAttributes *DeviceiSCSIAttributes `type:"structure"`
- // Specifies the unique Amazon Resource Name (ARN) of the device (tape drive
- // or media changer).
- VTLDeviceARN *string `min:"50" type:"string"`
- VTLDeviceProductIdentifier *string `type:"string"`
- VTLDeviceType *string `type:"string"`
- VTLDeviceVendor *string `type:"string"`
- }
- // String returns the string representation
- func (s VTLDevice) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VTLDevice) GoString() string {
- return s.String()
- }
- // Describes a storage volume object.
- type VolumeInfo struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
- // to return a list of gateways for your account and region.
- GatewayARN *string `min:"50" type:"string"`
- // The unique identifier assigned to your gateway during activation. This ID
- // becomes part of the gateway Amazon Resource Name (ARN), which you use as
- // input for other operations.
- //
- // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens
- // (-).
- GatewayId *string `min:"12" type:"string"`
- // The Amazon Resource Name (ARN) for the storage volume. For example, the following
- // is a valid ARN:
- //
- // arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB
- //
- // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens
- // (-).
- VolumeARN *string `min:"50" type:"string"`
- // The unique identifier assigned to the volume. This ID becomes part of the
- // volume Amazon Resource Name (ARN), which you use as input for other operations.
- //
- // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens
- // (-).
- VolumeId *string `min:"12" type:"string"`
- // The size, in bytes, of the volume.
- //
- // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens
- // (-).
- VolumeSizeInBytes *int64 `type:"long"`
- VolumeType *string `min:"3" type:"string"`
- }
- // String returns the string representation
- func (s VolumeInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VolumeInfo) GoString() string {
- return s.String()
- }
- type VolumeRecoveryPointInfo struct {
- _ struct{} `type:"structure"`
- VolumeARN *string `min:"50" type:"string"`
- VolumeRecoveryPointTime *string `type:"string"`
- VolumeSizeInBytes *int64 `type:"long"`
- VolumeUsageInBytes *int64 `type:"long"`
- }
- // String returns the string representation
- func (s VolumeRecoveryPointInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VolumeRecoveryPointInfo) GoString() string {
- return s.String()
- }
- // Lists iSCSI information about a volume.
- type VolumeiSCSIAttributes struct {
- _ struct{} `type:"structure"`
- // Indicates whether mutual CHAP is enabled for the iSCSI target.
- ChapEnabled *bool `type:"boolean"`
- // The logical disk number.
- LunNumber *int64 `min:"1" type:"integer"`
- // The network interface identifier.
- NetworkInterfaceId *string `type:"string"`
- // The port used to communicate with iSCSI targets.
- NetworkInterfacePort *int64 `type:"integer"`
- // The Amazon Resource Name (ARN) of the volume target.
- TargetARN *string `min:"50" type:"string"`
- }
- // String returns the string representation
- func (s VolumeiSCSIAttributes) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VolumeiSCSIAttributes) GoString() string {
- return s.String()
- }
- const (
- // @enum ErrorCode
- ErrorCodeActivationKeyExpired = "ActivationKeyExpired"
- // @enum ErrorCode
- ErrorCodeActivationKeyInvalid = "ActivationKeyInvalid"
- // @enum ErrorCode
- ErrorCodeActivationKeyNotFound = "ActivationKeyNotFound"
- // @enum ErrorCode
- ErrorCodeGatewayInternalError = "GatewayInternalError"
- // @enum ErrorCode
- ErrorCodeGatewayNotConnected = "GatewayNotConnected"
- // @enum ErrorCode
- ErrorCodeGatewayNotFound = "GatewayNotFound"
- // @enum ErrorCode
- ErrorCodeGatewayProxyNetworkConnectionBusy = "GatewayProxyNetworkConnectionBusy"
- // @enum ErrorCode
- ErrorCodeAuthenticationFailure = "AuthenticationFailure"
- // @enum ErrorCode
- ErrorCodeBandwidthThrottleScheduleNotFound = "BandwidthThrottleScheduleNotFound"
- // @enum ErrorCode
- ErrorCodeBlocked = "Blocked"
- // @enum ErrorCode
- ErrorCodeCannotExportSnapshot = "CannotExportSnapshot"
- // @enum ErrorCode
- ErrorCodeChapCredentialNotFound = "ChapCredentialNotFound"
- // @enum ErrorCode
- ErrorCodeDiskAlreadyAllocated = "DiskAlreadyAllocated"
- // @enum ErrorCode
- ErrorCodeDiskDoesNotExist = "DiskDoesNotExist"
- // @enum ErrorCode
- ErrorCodeDiskSizeGreaterThanVolumeMaxSize = "DiskSizeGreaterThanVolumeMaxSize"
- // @enum ErrorCode
- ErrorCodeDiskSizeLessThanVolumeSize = "DiskSizeLessThanVolumeSize"
- // @enum ErrorCode
- ErrorCodeDiskSizeNotGigAligned = "DiskSizeNotGigAligned"
- // @enum ErrorCode
- ErrorCodeDuplicateCertificateInfo = "DuplicateCertificateInfo"
- // @enum ErrorCode
- ErrorCodeDuplicateSchedule = "DuplicateSchedule"
- // @enum ErrorCode
- ErrorCodeEndpointNotFound = "EndpointNotFound"
- // @enum ErrorCode
- ErrorCodeIamnotSupported = "IAMNotSupported"
- // @enum ErrorCode
- ErrorCodeInitiatorInvalid = "InitiatorInvalid"
- // @enum ErrorCode
- ErrorCodeInitiatorNotFound = "InitiatorNotFound"
- // @enum ErrorCode
- ErrorCodeInternalError = "InternalError"
- // @enum ErrorCode
- ErrorCodeInvalidGateway = "InvalidGateway"
- // @enum ErrorCode
- ErrorCodeInvalidEndpoint = "InvalidEndpoint"
- // @enum ErrorCode
- ErrorCodeInvalidParameters = "InvalidParameters"
- // @enum ErrorCode
- ErrorCodeInvalidSchedule = "InvalidSchedule"
- // @enum ErrorCode
- ErrorCodeLocalStorageLimitExceeded = "LocalStorageLimitExceeded"
- // @enum ErrorCode
- ErrorCodeLunAlreadyAllocated = "LunAlreadyAllocated "
- // @enum ErrorCode
- ErrorCodeLunInvalid = "LunInvalid"
- // @enum ErrorCode
- ErrorCodeMaximumContentLengthExceeded = "MaximumContentLengthExceeded"
- // @enum ErrorCode
- ErrorCodeMaximumTapeCartridgeCountExceeded = "MaximumTapeCartridgeCountExceeded"
- // @enum ErrorCode
- ErrorCodeMaximumVolumeCountExceeded = "MaximumVolumeCountExceeded"
- // @enum ErrorCode
- ErrorCodeNetworkConfigurationChanged = "NetworkConfigurationChanged"
- // @enum ErrorCode
- ErrorCodeNoDisksAvailable = "NoDisksAvailable"
- // @enum ErrorCode
- ErrorCodeNotImplemented = "NotImplemented"
- // @enum ErrorCode
- ErrorCodeNotSupported = "NotSupported"
- // @enum ErrorCode
- ErrorCodeOperationAborted = "OperationAborted"
- // @enum ErrorCode
- ErrorCodeOutdatedGateway = "OutdatedGateway"
- // @enum ErrorCode
- ErrorCodeParametersNotImplemented = "ParametersNotImplemented"
- // @enum ErrorCode
- ErrorCodeRegionInvalid = "RegionInvalid"
- // @enum ErrorCode
- ErrorCodeRequestTimeout = "RequestTimeout"
- // @enum ErrorCode
- ErrorCodeServiceUnavailable = "ServiceUnavailable"
- // @enum ErrorCode
- ErrorCodeSnapshotDeleted = "SnapshotDeleted"
- // @enum ErrorCode
- ErrorCodeSnapshotIdInvalid = "SnapshotIdInvalid"
- // @enum ErrorCode
- ErrorCodeSnapshotInProgress = "SnapshotInProgress"
- // @enum ErrorCode
- ErrorCodeSnapshotNotFound = "SnapshotNotFound"
- // @enum ErrorCode
- ErrorCodeSnapshotScheduleNotFound = "SnapshotScheduleNotFound"
- // @enum ErrorCode
- ErrorCodeStagingAreaFull = "StagingAreaFull"
- // @enum ErrorCode
- ErrorCodeStorageFailure = "StorageFailure"
- // @enum ErrorCode
- ErrorCodeTapeCartridgeNotFound = "TapeCartridgeNotFound"
- // @enum ErrorCode
- ErrorCodeTargetAlreadyExists = "TargetAlreadyExists"
- // @enum ErrorCode
- ErrorCodeTargetInvalid = "TargetInvalid"
- // @enum ErrorCode
- ErrorCodeTargetNotFound = "TargetNotFound"
- // @enum ErrorCode
- ErrorCodeUnauthorizedOperation = "UnauthorizedOperation"
- // @enum ErrorCode
- ErrorCodeVolumeAlreadyExists = "VolumeAlreadyExists"
- // @enum ErrorCode
- ErrorCodeVolumeIdInvalid = "VolumeIdInvalid"
- // @enum ErrorCode
- ErrorCodeVolumeInUse = "VolumeInUse"
- // @enum ErrorCode
- ErrorCodeVolumeNotFound = "VolumeNotFound"
- // @enum ErrorCode
- ErrorCodeVolumeNotReady = "VolumeNotReady"
- )
|