api.go 162 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package storagegateway provides a client for AWS Storage Gateway.
  3. package storagegateway
  4. import (
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opActivateGateway = "ActivateGateway"
  10. // ActivateGatewayRequest generates a request for the ActivateGateway operation.
  11. func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (req *request.Request, output *ActivateGatewayOutput) {
  12. op := &request.Operation{
  13. Name: opActivateGateway,
  14. HTTPMethod: "POST",
  15. HTTPPath: "/",
  16. }
  17. if input == nil {
  18. input = &ActivateGatewayInput{}
  19. }
  20. req = c.newRequest(op, input, output)
  21. output = &ActivateGatewayOutput{}
  22. req.Data = output
  23. return
  24. }
  25. // This operation activates the gateway you previously deployed on your host.
  26. // For more information, see Activate the AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/userguide/GettingStartedActivateGateway-common.html).
  27. // In the activation process, you specify information such as the region you
  28. // want to use for storing snapshots, the time zone for scheduled snapshots
  29. // the gateway snapshot schedule window, an activation key, and a name for your
  30. // gateway. The activation process also associates your gateway with your account;
  31. // for more information, see UpdateGatewayInformation.
  32. //
  33. // You must turn on the gateway VM before you can activate your gateway.
  34. func (c *StorageGateway) ActivateGateway(input *ActivateGatewayInput) (*ActivateGatewayOutput, error) {
  35. req, out := c.ActivateGatewayRequest(input)
  36. err := req.Send()
  37. return out, err
  38. }
  39. const opAddCache = "AddCache"
  40. // AddCacheRequest generates a request for the AddCache operation.
  41. func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *request.Request, output *AddCacheOutput) {
  42. op := &request.Operation{
  43. Name: opAddCache,
  44. HTTPMethod: "POST",
  45. HTTPPath: "/",
  46. }
  47. if input == nil {
  48. input = &AddCacheInput{}
  49. }
  50. req = c.newRequest(op, input, output)
  51. output = &AddCacheOutput{}
  52. req.Data = output
  53. return
  54. }
  55. // This operation configures one or more gateway local disks as cache for a
  56. // cached-volume gateway. This operation is supported only for the gateway-cached
  57. // volume architecture (see Storage Gateway Concepts (http://docs.aws.amazon.com/storagegateway/latest/userguide/StorageGatewayConcepts.html)).
  58. //
  59. // In the request, you specify the gateway Amazon Resource Name (ARN) to which
  60. // you want to add cache, and one or more disk IDs that you want to configure
  61. // as cache.
  62. func (c *StorageGateway) AddCache(input *AddCacheInput) (*AddCacheOutput, error) {
  63. req, out := c.AddCacheRequest(input)
  64. err := req.Send()
  65. return out, err
  66. }
  67. const opAddUploadBuffer = "AddUploadBuffer"
  68. // AddUploadBufferRequest generates a request for the AddUploadBuffer operation.
  69. func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (req *request.Request, output *AddUploadBufferOutput) {
  70. op := &request.Operation{
  71. Name: opAddUploadBuffer,
  72. HTTPMethod: "POST",
  73. HTTPPath: "/",
  74. }
  75. if input == nil {
  76. input = &AddUploadBufferInput{}
  77. }
  78. req = c.newRequest(op, input, output)
  79. output = &AddUploadBufferOutput{}
  80. req.Data = output
  81. return
  82. }
  83. // This operation configures one or more gateway local disks as upload buffer
  84. // for a specified gateway. This operation is supported for both the gateway-stored
  85. // and gateway-cached volume architectures.
  86. //
  87. // In the request, you specify the gateway Amazon Resource Name (ARN) to which
  88. // you want to add upload buffer, and one or more disk IDs that you want to
  89. // configure as upload buffer.
  90. func (c *StorageGateway) AddUploadBuffer(input *AddUploadBufferInput) (*AddUploadBufferOutput, error) {
  91. req, out := c.AddUploadBufferRequest(input)
  92. err := req.Send()
  93. return out, err
  94. }
  95. const opAddWorkingStorage = "AddWorkingStorage"
  96. // AddWorkingStorageRequest generates a request for the AddWorkingStorage operation.
  97. func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) (req *request.Request, output *AddWorkingStorageOutput) {
  98. op := &request.Operation{
  99. Name: opAddWorkingStorage,
  100. HTTPMethod: "POST",
  101. HTTPPath: "/",
  102. }
  103. if input == nil {
  104. input = &AddWorkingStorageInput{}
  105. }
  106. req = c.newRequest(op, input, output)
  107. output = &AddWorkingStorageOutput{}
  108. req.Data = output
  109. return
  110. }
  111. // This operation configures one or more gateway local disks as working storage
  112. // for a gateway. This operation is supported only for the gateway-stored volume
  113. // architecture. This operation is deprecated method in cached-volumes API version
  114. // (20120630). Use AddUploadBuffer instead.
  115. //
  116. // Working storage is also referred to as upload buffer. You can also use the
  117. // AddUploadBuffer operation to add upload buffer to a stored-volume gateway.
  118. //
  119. // In the request, you specify the gateway Amazon Resource Name (ARN) to which
  120. // you want to add working storage, and one or more disk IDs that you want to
  121. // configure as working storage.
  122. func (c *StorageGateway) AddWorkingStorage(input *AddWorkingStorageInput) (*AddWorkingStorageOutput, error) {
  123. req, out := c.AddWorkingStorageRequest(input)
  124. err := req.Send()
  125. return out, err
  126. }
  127. const opCancelArchival = "CancelArchival"
  128. // CancelArchivalRequest generates a request for the CancelArchival operation.
  129. func (c *StorageGateway) CancelArchivalRequest(input *CancelArchivalInput) (req *request.Request, output *CancelArchivalOutput) {
  130. op := &request.Operation{
  131. Name: opCancelArchival,
  132. HTTPMethod: "POST",
  133. HTTPPath: "/",
  134. }
  135. if input == nil {
  136. input = &CancelArchivalInput{}
  137. }
  138. req = c.newRequest(op, input, output)
  139. output = &CancelArchivalOutput{}
  140. req.Data = output
  141. return
  142. }
  143. // Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after
  144. // the archiving process is initiated.
  145. func (c *StorageGateway) CancelArchival(input *CancelArchivalInput) (*CancelArchivalOutput, error) {
  146. req, out := c.CancelArchivalRequest(input)
  147. err := req.Send()
  148. return out, err
  149. }
  150. const opCancelRetrieval = "CancelRetrieval"
  151. // CancelRetrievalRequest generates a request for the CancelRetrieval operation.
  152. func (c *StorageGateway) CancelRetrievalRequest(input *CancelRetrievalInput) (req *request.Request, output *CancelRetrievalOutput) {
  153. op := &request.Operation{
  154. Name: opCancelRetrieval,
  155. HTTPMethod: "POST",
  156. HTTPPath: "/",
  157. }
  158. if input == nil {
  159. input = &CancelRetrievalInput{}
  160. }
  161. req = c.newRequest(op, input, output)
  162. output = &CancelRetrievalOutput{}
  163. req.Data = output
  164. return
  165. }
  166. // Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to
  167. // a gateway after the retrieval process is initiated. The virtual tape is returned
  168. // to the VTS.
  169. func (c *StorageGateway) CancelRetrieval(input *CancelRetrievalInput) (*CancelRetrievalOutput, error) {
  170. req, out := c.CancelRetrievalRequest(input)
  171. err := req.Send()
  172. return out, err
  173. }
  174. const opCreateCachediSCSIVolume = "CreateCachediSCSIVolume"
  175. // CreateCachediSCSIVolumeRequest generates a request for the CreateCachediSCSIVolume operation.
  176. func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSIVolumeInput) (req *request.Request, output *CreateCachediSCSIVolumeOutput) {
  177. op := &request.Operation{
  178. Name: opCreateCachediSCSIVolume,
  179. HTTPMethod: "POST",
  180. HTTPPath: "/",
  181. }
  182. if input == nil {
  183. input = &CreateCachediSCSIVolumeInput{}
  184. }
  185. req = c.newRequest(op, input, output)
  186. output = &CreateCachediSCSIVolumeOutput{}
  187. req.Data = output
  188. return
  189. }
  190. // This operation creates a cached volume on a specified cached gateway. This
  191. // operation is supported only for the gateway-cached volume architecture.
  192. //
  193. // Cache storage must be allocated to the gateway before you can create a cached
  194. // volume. Use the AddCache operation to add cache storage to a gateway. In
  195. // the request, you must specify the gateway, size of the volume in bytes, the
  196. // iSCSI target name, an IP address on which to expose the target, and a unique
  197. // client token. In response, AWS Storage Gateway creates the volume and returns
  198. // information about it such as the volume Amazon Resource Name (ARN), its size,
  199. // and the iSCSI target ARN that initiators can use to connect to the volume
  200. // target.
  201. func (c *StorageGateway) CreateCachediSCSIVolume(input *CreateCachediSCSIVolumeInput) (*CreateCachediSCSIVolumeOutput, error) {
  202. req, out := c.CreateCachediSCSIVolumeRequest(input)
  203. err := req.Send()
  204. return out, err
  205. }
  206. const opCreateSnapshot = "CreateSnapshot"
  207. // CreateSnapshotRequest generates a request for the CreateSnapshot operation.
  208. func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *CreateSnapshotOutput) {
  209. op := &request.Operation{
  210. Name: opCreateSnapshot,
  211. HTTPMethod: "POST",
  212. HTTPPath: "/",
  213. }
  214. if input == nil {
  215. input = &CreateSnapshotInput{}
  216. }
  217. req = c.newRequest(op, input, output)
  218. output = &CreateSnapshotOutput{}
  219. req.Data = output
  220. return
  221. }
  222. // This operation initiates a snapshot of a volume.
  223. //
  224. // AWS Storage Gateway provides the ability to back up point-in-time snapshots
  225. // of your data to Amazon Simple Storage (S3) for durable off-site recovery,
  226. // as well as import the data to an Amazon Elastic Block Store (EBS) volume
  227. // in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your gateway
  228. // volume on a scheduled or ad-hoc basis. This API enables you to take ad-hoc
  229. // snapshot. For more information, see Working With Snapshots in the AWS Storage
  230. // Gateway Console (http://docs.aws.amazon.com/storagegateway/latest/userguide/WorkingWithSnapshots.html).
  231. //
  232. // In the CreateSnapshot request you identify the volume by providing its Amazon
  233. // Resource Name (ARN). You must also provide description for the snapshot.
  234. // When AWS Storage Gateway takes the snapshot of specified volume, the snapshot
  235. // and description appears in the AWS Storage Gateway Console. In response,
  236. // AWS Storage Gateway returns you a snapshot ID. You can use this snapshot
  237. // ID to check the snapshot progress or later use it when you want to create
  238. // a volume from a snapshot.
  239. //
  240. // To list or delete a snapshot, you must use the Amazon EC2 API. For more
  241. // information, see DescribeSnapshots or DeleteSnapshot in the EC2 API reference
  242. // (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Operations.html).
  243. func (c *StorageGateway) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) {
  244. req, out := c.CreateSnapshotRequest(input)
  245. err := req.Send()
  246. return out, err
  247. }
  248. const opCreateSnapshotFromVolumeRecoveryPoint = "CreateSnapshotFromVolumeRecoveryPoint"
  249. // CreateSnapshotFromVolumeRecoveryPointRequest generates a request for the CreateSnapshotFromVolumeRecoveryPoint operation.
  250. func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *CreateSnapshotFromVolumeRecoveryPointInput) (req *request.Request, output *CreateSnapshotFromVolumeRecoveryPointOutput) {
  251. op := &request.Operation{
  252. Name: opCreateSnapshotFromVolumeRecoveryPoint,
  253. HTTPMethod: "POST",
  254. HTTPPath: "/",
  255. }
  256. if input == nil {
  257. input = &CreateSnapshotFromVolumeRecoveryPointInput{}
  258. }
  259. req = c.newRequest(op, input, output)
  260. output = &CreateSnapshotFromVolumeRecoveryPointOutput{}
  261. req.Data = output
  262. return
  263. }
  264. // This operation initiates a snapshot of a gateway from a volume recovery point.
  265. // This operation is supported only for the gateway-cached volume architecture
  266. // (see ).
  267. //
  268. // A volume recovery point is a point in time at which all data of the volume
  269. // is consistent and from which you can create a snapshot. To get a list of
  270. // volume recovery point for gateway-cached volumes, use ListVolumeRecoveryPoints.
  271. //
  272. // In the CreateSnapshotFromVolumeRecoveryPoint request, you identify the volume
  273. // by providing its Amazon Resource Name (ARN). You must also provide a description
  274. // for the snapshot. When AWS Storage Gateway takes a snapshot of the specified
  275. // volume, the snapshot and its description appear in the AWS Storage Gateway
  276. // console. In response, AWS Storage Gateway returns you a snapshot ID. You
  277. // can use this snapshot ID to check the snapshot progress or later use it when
  278. // you want to create a volume from a snapshot.
  279. //
  280. // To list or delete a snapshot, you must use the Amazon EC2 API. For more
  281. // information, in Amazon Elastic Compute Cloud API Reference.
  282. func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPoint(input *CreateSnapshotFromVolumeRecoveryPointInput) (*CreateSnapshotFromVolumeRecoveryPointOutput, error) {
  283. req, out := c.CreateSnapshotFromVolumeRecoveryPointRequest(input)
  284. err := req.Send()
  285. return out, err
  286. }
  287. const opCreateStorediSCSIVolume = "CreateStorediSCSIVolume"
  288. // CreateStorediSCSIVolumeRequest generates a request for the CreateStorediSCSIVolume operation.
  289. func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSIVolumeInput) (req *request.Request, output *CreateStorediSCSIVolumeOutput) {
  290. op := &request.Operation{
  291. Name: opCreateStorediSCSIVolume,
  292. HTTPMethod: "POST",
  293. HTTPPath: "/",
  294. }
  295. if input == nil {
  296. input = &CreateStorediSCSIVolumeInput{}
  297. }
  298. req = c.newRequest(op, input, output)
  299. output = &CreateStorediSCSIVolumeOutput{}
  300. req.Data = output
  301. return
  302. }
  303. // This operation creates a volume on a specified gateway. This operation is
  304. // supported only for the gateway-stored volume architecture.
  305. //
  306. // The size of the volume to create is inferred from the disk size. You can
  307. // choose to preserve existing data on the disk, create volume from an existing
  308. // snapshot, or create an empty volume. If you choose to create an empty gateway
  309. // volume, then any existing data on the disk is erased.
  310. //
  311. // In the request you must specify the gateway and the disk information on
  312. // which you are creating the volume. In response, AWS Storage Gateway creates
  313. // the volume and returns volume information such as the volume Amazon Resource
  314. // Name (ARN), its size, and the iSCSI target ARN that initiators can use to
  315. // connect to the volume target.
  316. func (c *StorageGateway) CreateStorediSCSIVolume(input *CreateStorediSCSIVolumeInput) (*CreateStorediSCSIVolumeOutput, error) {
  317. req, out := c.CreateStorediSCSIVolumeRequest(input)
  318. err := req.Send()
  319. return out, err
  320. }
  321. const opCreateTapes = "CreateTapes"
  322. // CreateTapesRequest generates a request for the CreateTapes operation.
  323. func (c *StorageGateway) CreateTapesRequest(input *CreateTapesInput) (req *request.Request, output *CreateTapesOutput) {
  324. op := &request.Operation{
  325. Name: opCreateTapes,
  326. HTTPMethod: "POST",
  327. HTTPPath: "/",
  328. }
  329. if input == nil {
  330. input = &CreateTapesInput{}
  331. }
  332. req = c.newRequest(op, input, output)
  333. output = &CreateTapesOutput{}
  334. req.Data = output
  335. return
  336. }
  337. // Creates one or more virtual tapes. You write data to the virtual tapes and
  338. // then archive the tapes.
  339. //
  340. // Cache storage must be allocated to the gateway before you can create virtual
  341. // tapes. Use the AddCache operation to add cache storage to a gateway.
  342. func (c *StorageGateway) CreateTapes(input *CreateTapesInput) (*CreateTapesOutput, error) {
  343. req, out := c.CreateTapesRequest(input)
  344. err := req.Send()
  345. return out, err
  346. }
  347. const opDeleteBandwidthRateLimit = "DeleteBandwidthRateLimit"
  348. // DeleteBandwidthRateLimitRequest generates a request for the DeleteBandwidthRateLimit operation.
  349. func (c *StorageGateway) DeleteBandwidthRateLimitRequest(input *DeleteBandwidthRateLimitInput) (req *request.Request, output *DeleteBandwidthRateLimitOutput) {
  350. op := &request.Operation{
  351. Name: opDeleteBandwidthRateLimit,
  352. HTTPMethod: "POST",
  353. HTTPPath: "/",
  354. }
  355. if input == nil {
  356. input = &DeleteBandwidthRateLimitInput{}
  357. }
  358. req = c.newRequest(op, input, output)
  359. output = &DeleteBandwidthRateLimitOutput{}
  360. req.Data = output
  361. return
  362. }
  363. // This operation deletes the bandwidth rate limits of a gateway. You can delete
  364. // either the upload and download bandwidth rate limit, or you can delete both.
  365. // If you delete only one of the limits, the other limit remains unchanged.
  366. // To specify which gateway to work with, use the Amazon Resource Name (ARN)
  367. // of the gateway in your request.
  368. func (c *StorageGateway) DeleteBandwidthRateLimit(input *DeleteBandwidthRateLimitInput) (*DeleteBandwidthRateLimitOutput, error) {
  369. req, out := c.DeleteBandwidthRateLimitRequest(input)
  370. err := req.Send()
  371. return out, err
  372. }
  373. const opDeleteChapCredentials = "DeleteChapCredentials"
  374. // DeleteChapCredentialsRequest generates a request for the DeleteChapCredentials operation.
  375. func (c *StorageGateway) DeleteChapCredentialsRequest(input *DeleteChapCredentialsInput) (req *request.Request, output *DeleteChapCredentialsOutput) {
  376. op := &request.Operation{
  377. Name: opDeleteChapCredentials,
  378. HTTPMethod: "POST",
  379. HTTPPath: "/",
  380. }
  381. if input == nil {
  382. input = &DeleteChapCredentialsInput{}
  383. }
  384. req = c.newRequest(op, input, output)
  385. output = &DeleteChapCredentialsOutput{}
  386. req.Data = output
  387. return
  388. }
  389. // This operation deletes Challenge-Handshake Authentication Protocol (CHAP)
  390. // credentials for a specified iSCSI target and initiator pair.
  391. func (c *StorageGateway) DeleteChapCredentials(input *DeleteChapCredentialsInput) (*DeleteChapCredentialsOutput, error) {
  392. req, out := c.DeleteChapCredentialsRequest(input)
  393. err := req.Send()
  394. return out, err
  395. }
  396. const opDeleteGateway = "DeleteGateway"
  397. // DeleteGatewayRequest generates a request for the DeleteGateway operation.
  398. func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *request.Request, output *DeleteGatewayOutput) {
  399. op := &request.Operation{
  400. Name: opDeleteGateway,
  401. HTTPMethod: "POST",
  402. HTTPPath: "/",
  403. }
  404. if input == nil {
  405. input = &DeleteGatewayInput{}
  406. }
  407. req = c.newRequest(op, input, output)
  408. output = &DeleteGatewayOutput{}
  409. req.Data = output
  410. return
  411. }
  412. // This operation deletes a gateway. To specify which gateway to delete, use
  413. // the Amazon Resource Name (ARN) of the gateway in your request. The operation
  414. // deletes the gateway; however, it does not delete the gateway virtual machine
  415. // (VM) from your host computer.
  416. //
  417. // After you delete a gateway, you cannot reactivate it. Completed snapshots
  418. // of the gateway volumes are not deleted upon deleting the gateway, however,
  419. // pending snapshots will not complete. After you delete a gateway, your next
  420. // step is to remove it from your environment.
  421. //
  422. // You no longer pay software charges after the gateway is deleted; however,
  423. // your existing Amazon EBS snapshots persist and you will continue to be billed
  424. // for these snapshots. You can choose to remove all remaining Amazon EBS snapshots
  425. // by canceling your Amazon EC2 subscription.  If you prefer not to cancel your
  426. // Amazon EC2 subscription, you can delete your snapshots using the Amazon EC2
  427. // console. For more information, see the AWS Storage Gateway Detail Page (http://aws.amazon.com/storagegateway).
  428. func (c *StorageGateway) DeleteGateway(input *DeleteGatewayInput) (*DeleteGatewayOutput, error) {
  429. req, out := c.DeleteGatewayRequest(input)
  430. err := req.Send()
  431. return out, err
  432. }
  433. const opDeleteSnapshotSchedule = "DeleteSnapshotSchedule"
  434. // DeleteSnapshotScheduleRequest generates a request for the DeleteSnapshotSchedule operation.
  435. func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotScheduleInput) (req *request.Request, output *DeleteSnapshotScheduleOutput) {
  436. op := &request.Operation{
  437. Name: opDeleteSnapshotSchedule,
  438. HTTPMethod: "POST",
  439. HTTPPath: "/",
  440. }
  441. if input == nil {
  442. input = &DeleteSnapshotScheduleInput{}
  443. }
  444. req = c.newRequest(op, input, output)
  445. output = &DeleteSnapshotScheduleOutput{}
  446. req.Data = output
  447. return
  448. }
  449. // This operation deletes a snapshot of a volume.
  450. //
  451. // You can take snapshots of your gateway volumes on a scheduled or ad-hoc
  452. // basis. This API enables you to delete a snapshot schedule for a volume. For
  453. // more information, see Working with Snapshots (http://docs.aws.amazon.com/storagegateway/latest/userguide/WorkingWithSnapshots.html).
  454. // In the DeleteSnapshotSchedule request, you identify the volume by providing
  455. // its Amazon Resource Name (ARN).
  456. //
  457. // To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon
  458. // Elastic Compute Cloud API Reference.
  459. func (c *StorageGateway) DeleteSnapshotSchedule(input *DeleteSnapshotScheduleInput) (*DeleteSnapshotScheduleOutput, error) {
  460. req, out := c.DeleteSnapshotScheduleRequest(input)
  461. err := req.Send()
  462. return out, err
  463. }
  464. const opDeleteTape = "DeleteTape"
  465. // DeleteTapeRequest generates a request for the DeleteTape operation.
  466. func (c *StorageGateway) DeleteTapeRequest(input *DeleteTapeInput) (req *request.Request, output *DeleteTapeOutput) {
  467. op := &request.Operation{
  468. Name: opDeleteTape,
  469. HTTPMethod: "POST",
  470. HTTPPath: "/",
  471. }
  472. if input == nil {
  473. input = &DeleteTapeInput{}
  474. }
  475. req = c.newRequest(op, input, output)
  476. output = &DeleteTapeOutput{}
  477. req.Data = output
  478. return
  479. }
  480. // Deletes the specified virtual tape.
  481. func (c *StorageGateway) DeleteTape(input *DeleteTapeInput) (*DeleteTapeOutput, error) {
  482. req, out := c.DeleteTapeRequest(input)
  483. err := req.Send()
  484. return out, err
  485. }
  486. const opDeleteTapeArchive = "DeleteTapeArchive"
  487. // DeleteTapeArchiveRequest generates a request for the DeleteTapeArchive operation.
  488. func (c *StorageGateway) DeleteTapeArchiveRequest(input *DeleteTapeArchiveInput) (req *request.Request, output *DeleteTapeArchiveOutput) {
  489. op := &request.Operation{
  490. Name: opDeleteTapeArchive,
  491. HTTPMethod: "POST",
  492. HTTPPath: "/",
  493. }
  494. if input == nil {
  495. input = &DeleteTapeArchiveInput{}
  496. }
  497. req = c.newRequest(op, input, output)
  498. output = &DeleteTapeArchiveOutput{}
  499. req.Data = output
  500. return
  501. }
  502. // Deletes the specified virtual tape from the virtual tape shelf (VTS).
  503. func (c *StorageGateway) DeleteTapeArchive(input *DeleteTapeArchiveInput) (*DeleteTapeArchiveOutput, error) {
  504. req, out := c.DeleteTapeArchiveRequest(input)
  505. err := req.Send()
  506. return out, err
  507. }
  508. const opDeleteVolume = "DeleteVolume"
  509. // DeleteVolumeRequest generates a request for the DeleteVolume operation.
  510. func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Request, output *DeleteVolumeOutput) {
  511. op := &request.Operation{
  512. Name: opDeleteVolume,
  513. HTTPMethod: "POST",
  514. HTTPPath: "/",
  515. }
  516. if input == nil {
  517. input = &DeleteVolumeInput{}
  518. }
  519. req = c.newRequest(op, input, output)
  520. output = &DeleteVolumeOutput{}
  521. req.Data = output
  522. return
  523. }
  524. // This operation delete the specified gateway volume that you previously created
  525. // using the CreateStorediSCSIVolume API. For gateway-stored volumes, the local
  526. // disk that was configured as the storage volume is not deleted. You can reuse
  527. // the local disk to create another storage volume.
  528. //
  529. // Before you delete a gateway volume, make sure there are no iSCSI connections
  530. // to the volume you are deleting. You should also make sure there is no snapshot
  531. // in progress. You can use the Amazon Elastic Compute Cloud (Amazon EC2) API
  532. // to query snapshots on the volume you are deleting and check the snapshot
  533. // status. For more information, go to DescribeSnapshots (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSnapshots.html)
  534. // in the Amazon Elastic Compute Cloud API Reference.
  535. //
  536. // In the request, you must provide the Amazon Resource Name (ARN) of the storage
  537. // volume you want to delete.
  538. func (c *StorageGateway) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) {
  539. req, out := c.DeleteVolumeRequest(input)
  540. err := req.Send()
  541. return out, err
  542. }
  543. const opDescribeBandwidthRateLimit = "DescribeBandwidthRateLimit"
  544. // DescribeBandwidthRateLimitRequest generates a request for the DescribeBandwidthRateLimit operation.
  545. func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwidthRateLimitInput) (req *request.Request, output *DescribeBandwidthRateLimitOutput) {
  546. op := &request.Operation{
  547. Name: opDescribeBandwidthRateLimit,
  548. HTTPMethod: "POST",
  549. HTTPPath: "/",
  550. }
  551. if input == nil {
  552. input = &DescribeBandwidthRateLimitInput{}
  553. }
  554. req = c.newRequest(op, input, output)
  555. output = &DescribeBandwidthRateLimitOutput{}
  556. req.Data = output
  557. return
  558. }
  559. // This operation returns the bandwidth rate limits of a gateway. By default,
  560. // these limits are not set, which means no bandwidth rate limiting is in effect.
  561. //
  562. // This operation only returns a value for a bandwidth rate limit only if the
  563. // limit is set. If no limits are set for the gateway, then this operation returns
  564. // only the gateway ARN in the response body. To specify which gateway to describe,
  565. // use the Amazon Resource Name (ARN) of the gateway in your request.
  566. func (c *StorageGateway) DescribeBandwidthRateLimit(input *DescribeBandwidthRateLimitInput) (*DescribeBandwidthRateLimitOutput, error) {
  567. req, out := c.DescribeBandwidthRateLimitRequest(input)
  568. err := req.Send()
  569. return out, err
  570. }
  571. const opDescribeCache = "DescribeCache"
  572. // DescribeCacheRequest generates a request for the DescribeCache operation.
  573. func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *request.Request, output *DescribeCacheOutput) {
  574. op := &request.Operation{
  575. Name: opDescribeCache,
  576. HTTPMethod: "POST",
  577. HTTPPath: "/",
  578. }
  579. if input == nil {
  580. input = &DescribeCacheInput{}
  581. }
  582. req = c.newRequest(op, input, output)
  583. output = &DescribeCacheOutput{}
  584. req.Data = output
  585. return
  586. }
  587. // This operation returns information about the cache of a gateway. This operation
  588. // is supported only for the gateway-cached volume architecture.
  589. //
  590. // The response includes disk IDs that are configured as cache, and it includes
  591. // the amount of cache allocated and used.
  592. func (c *StorageGateway) DescribeCache(input *DescribeCacheInput) (*DescribeCacheOutput, error) {
  593. req, out := c.DescribeCacheRequest(input)
  594. err := req.Send()
  595. return out, err
  596. }
  597. const opDescribeCachediSCSIVolumes = "DescribeCachediSCSIVolumes"
  598. // DescribeCachediSCSIVolumesRequest generates a request for the DescribeCachediSCSIVolumes operation.
  599. func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCachediSCSIVolumesInput) (req *request.Request, output *DescribeCachediSCSIVolumesOutput) {
  600. op := &request.Operation{
  601. Name: opDescribeCachediSCSIVolumes,
  602. HTTPMethod: "POST",
  603. HTTPPath: "/",
  604. }
  605. if input == nil {
  606. input = &DescribeCachediSCSIVolumesInput{}
  607. }
  608. req = c.newRequest(op, input, output)
  609. output = &DescribeCachediSCSIVolumesOutput{}
  610. req.Data = output
  611. return
  612. }
  613. // This operation returns a description of the gateway volumes specified in
  614. // the request. This operation is supported only for the gateway-cached volume
  615. // architecture.
  616. //
  617. // The list of gateway volumes in the request must be from one gateway. In
  618. // the response Amazon Storage Gateway returns volume information sorted by
  619. // volume Amazon Resource Name (ARN).
  620. func (c *StorageGateway) DescribeCachediSCSIVolumes(input *DescribeCachediSCSIVolumesInput) (*DescribeCachediSCSIVolumesOutput, error) {
  621. req, out := c.DescribeCachediSCSIVolumesRequest(input)
  622. err := req.Send()
  623. return out, err
  624. }
  625. const opDescribeChapCredentials = "DescribeChapCredentials"
  626. // DescribeChapCredentialsRequest generates a request for the DescribeChapCredentials operation.
  627. func (c *StorageGateway) DescribeChapCredentialsRequest(input *DescribeChapCredentialsInput) (req *request.Request, output *DescribeChapCredentialsOutput) {
  628. op := &request.Operation{
  629. Name: opDescribeChapCredentials,
  630. HTTPMethod: "POST",
  631. HTTPPath: "/",
  632. }
  633. if input == nil {
  634. input = &DescribeChapCredentialsInput{}
  635. }
  636. req = c.newRequest(op, input, output)
  637. output = &DescribeChapCredentialsOutput{}
  638. req.Data = output
  639. return
  640. }
  641. // This operation returns an array of Challenge-Handshake Authentication Protocol
  642. // (CHAP) credentials information for a specified iSCSI target, one for each
  643. // target-initiator pair.
  644. func (c *StorageGateway) DescribeChapCredentials(input *DescribeChapCredentialsInput) (*DescribeChapCredentialsOutput, error) {
  645. req, out := c.DescribeChapCredentialsRequest(input)
  646. err := req.Send()
  647. return out, err
  648. }
  649. const opDescribeGatewayInformation = "DescribeGatewayInformation"
  650. // DescribeGatewayInformationRequest generates a request for the DescribeGatewayInformation operation.
  651. func (c *StorageGateway) DescribeGatewayInformationRequest(input *DescribeGatewayInformationInput) (req *request.Request, output *DescribeGatewayInformationOutput) {
  652. op := &request.Operation{
  653. Name: opDescribeGatewayInformation,
  654. HTTPMethod: "POST",
  655. HTTPPath: "/",
  656. }
  657. if input == nil {
  658. input = &DescribeGatewayInformationInput{}
  659. }
  660. req = c.newRequest(op, input, output)
  661. output = &DescribeGatewayInformationOutput{}
  662. req.Data = output
  663. return
  664. }
  665. // This operation returns metadata about a gateway such as its name, network
  666. // interfaces, configured time zone, and the state (whether the gateway is running
  667. // or not). To specify which gateway to describe, use the Amazon Resource Name
  668. // (ARN) of the gateway in your request.
  669. func (c *StorageGateway) DescribeGatewayInformation(input *DescribeGatewayInformationInput) (*DescribeGatewayInformationOutput, error) {
  670. req, out := c.DescribeGatewayInformationRequest(input)
  671. err := req.Send()
  672. return out, err
  673. }
  674. const opDescribeMaintenanceStartTime = "DescribeMaintenanceStartTime"
  675. // DescribeMaintenanceStartTimeRequest generates a request for the DescribeMaintenanceStartTime operation.
  676. func (c *StorageGateway) DescribeMaintenanceStartTimeRequest(input *DescribeMaintenanceStartTimeInput) (req *request.Request, output *DescribeMaintenanceStartTimeOutput) {
  677. op := &request.Operation{
  678. Name: opDescribeMaintenanceStartTime,
  679. HTTPMethod: "POST",
  680. HTTPPath: "/",
  681. }
  682. if input == nil {
  683. input = &DescribeMaintenanceStartTimeInput{}
  684. }
  685. req = c.newRequest(op, input, output)
  686. output = &DescribeMaintenanceStartTimeOutput{}
  687. req.Data = output
  688. return
  689. }
  690. // This operation returns your gateway's weekly maintenance start time including
  691. // the day and time of the week. Note that values are in terms of the gateway's
  692. // time zone.
  693. func (c *StorageGateway) DescribeMaintenanceStartTime(input *DescribeMaintenanceStartTimeInput) (*DescribeMaintenanceStartTimeOutput, error) {
  694. req, out := c.DescribeMaintenanceStartTimeRequest(input)
  695. err := req.Send()
  696. return out, err
  697. }
  698. const opDescribeSnapshotSchedule = "DescribeSnapshotSchedule"
  699. // DescribeSnapshotScheduleRequest generates a request for the DescribeSnapshotSchedule operation.
  700. func (c *StorageGateway) DescribeSnapshotScheduleRequest(input *DescribeSnapshotScheduleInput) (req *request.Request, output *DescribeSnapshotScheduleOutput) {
  701. op := &request.Operation{
  702. Name: opDescribeSnapshotSchedule,
  703. HTTPMethod: "POST",
  704. HTTPPath: "/",
  705. }
  706. if input == nil {
  707. input = &DescribeSnapshotScheduleInput{}
  708. }
  709. req = c.newRequest(op, input, output)
  710. output = &DescribeSnapshotScheduleOutput{}
  711. req.Data = output
  712. return
  713. }
  714. // This operation describes the snapshot schedule for the specified gateway
  715. // volume. The snapshot schedule information includes intervals at which snapshots
  716. // are automatically initiated on the volume.
  717. func (c *StorageGateway) DescribeSnapshotSchedule(input *DescribeSnapshotScheduleInput) (*DescribeSnapshotScheduleOutput, error) {
  718. req, out := c.DescribeSnapshotScheduleRequest(input)
  719. err := req.Send()
  720. return out, err
  721. }
  722. const opDescribeStorediSCSIVolumes = "DescribeStorediSCSIVolumes"
  723. // DescribeStorediSCSIVolumesRequest generates a request for the DescribeStorediSCSIVolumes operation.
  724. func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStorediSCSIVolumesInput) (req *request.Request, output *DescribeStorediSCSIVolumesOutput) {
  725. op := &request.Operation{
  726. Name: opDescribeStorediSCSIVolumes,
  727. HTTPMethod: "POST",
  728. HTTPPath: "/",
  729. }
  730. if input == nil {
  731. input = &DescribeStorediSCSIVolumesInput{}
  732. }
  733. req = c.newRequest(op, input, output)
  734. output = &DescribeStorediSCSIVolumesOutput{}
  735. req.Data = output
  736. return
  737. }
  738. // This operation returns the description of the gateway volumes specified in
  739. // the request. The list of gateway volumes in the request must be from one
  740. // gateway. In the response Amazon Storage Gateway returns volume information
  741. // sorted by volume ARNs.
  742. func (c *StorageGateway) DescribeStorediSCSIVolumes(input *DescribeStorediSCSIVolumesInput) (*DescribeStorediSCSIVolumesOutput, error) {
  743. req, out := c.DescribeStorediSCSIVolumesRequest(input)
  744. err := req.Send()
  745. return out, err
  746. }
  747. const opDescribeTapeArchives = "DescribeTapeArchives"
  748. // DescribeTapeArchivesRequest generates a request for the DescribeTapeArchives operation.
  749. func (c *StorageGateway) DescribeTapeArchivesRequest(input *DescribeTapeArchivesInput) (req *request.Request, output *DescribeTapeArchivesOutput) {
  750. op := &request.Operation{
  751. Name: opDescribeTapeArchives,
  752. HTTPMethod: "POST",
  753. HTTPPath: "/",
  754. Paginator: &request.Paginator{
  755. InputTokens: []string{"Marker"},
  756. OutputTokens: []string{"Marker"},
  757. LimitToken: "Limit",
  758. TruncationToken: "",
  759. },
  760. }
  761. if input == nil {
  762. input = &DescribeTapeArchivesInput{}
  763. }
  764. req = c.newRequest(op, input, output)
  765. output = &DescribeTapeArchivesOutput{}
  766. req.Data = output
  767. return
  768. }
  769. // Returns a description of specified virtual tapes in the virtual tape shelf
  770. // (VTS).
  771. //
  772. // If a specific TapeARN is not specified, AWS Storage Gateway returns a description
  773. // of all virtual tapes found in the VTS associated with your account.
  774. func (c *StorageGateway) DescribeTapeArchives(input *DescribeTapeArchivesInput) (*DescribeTapeArchivesOutput, error) {
  775. req, out := c.DescribeTapeArchivesRequest(input)
  776. err := req.Send()
  777. return out, err
  778. }
  779. func (c *StorageGateway) DescribeTapeArchivesPages(input *DescribeTapeArchivesInput, fn func(p *DescribeTapeArchivesOutput, lastPage bool) (shouldContinue bool)) error {
  780. page, _ := c.DescribeTapeArchivesRequest(input)
  781. return page.EachPage(func(p interface{}, lastPage bool) bool {
  782. return fn(p.(*DescribeTapeArchivesOutput), lastPage)
  783. })
  784. }
  785. const opDescribeTapeRecoveryPoints = "DescribeTapeRecoveryPoints"
  786. // DescribeTapeRecoveryPointsRequest generates a request for the DescribeTapeRecoveryPoints operation.
  787. func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRecoveryPointsInput) (req *request.Request, output *DescribeTapeRecoveryPointsOutput) {
  788. op := &request.Operation{
  789. Name: opDescribeTapeRecoveryPoints,
  790. HTTPMethod: "POST",
  791. HTTPPath: "/",
  792. Paginator: &request.Paginator{
  793. InputTokens: []string{"Marker"},
  794. OutputTokens: []string{"Marker"},
  795. LimitToken: "Limit",
  796. TruncationToken: "",
  797. },
  798. }
  799. if input == nil {
  800. input = &DescribeTapeRecoveryPointsInput{}
  801. }
  802. req = c.newRequest(op, input, output)
  803. output = &DescribeTapeRecoveryPointsOutput{}
  804. req.Data = output
  805. return
  806. }
  807. // Returns a list of virtual tape recovery points that are available for the
  808. // specified gateway-VTL.
  809. //
  810. // A recovery point is a point in time view of a virtual tape at which all
  811. // the data on the virtual tape is consistent. If your gateway crashes, virtual
  812. // tapes that have recovery points can be recovered to a new gateway.
  813. func (c *StorageGateway) DescribeTapeRecoveryPoints(input *DescribeTapeRecoveryPointsInput) (*DescribeTapeRecoveryPointsOutput, error) {
  814. req, out := c.DescribeTapeRecoveryPointsRequest(input)
  815. err := req.Send()
  816. return out, err
  817. }
  818. func (c *StorageGateway) DescribeTapeRecoveryPointsPages(input *DescribeTapeRecoveryPointsInput, fn func(p *DescribeTapeRecoveryPointsOutput, lastPage bool) (shouldContinue bool)) error {
  819. page, _ := c.DescribeTapeRecoveryPointsRequest(input)
  820. return page.EachPage(func(p interface{}, lastPage bool) bool {
  821. return fn(p.(*DescribeTapeRecoveryPointsOutput), lastPage)
  822. })
  823. }
  824. const opDescribeTapes = "DescribeTapes"
  825. // DescribeTapesRequest generates a request for the DescribeTapes operation.
  826. func (c *StorageGateway) DescribeTapesRequest(input *DescribeTapesInput) (req *request.Request, output *DescribeTapesOutput) {
  827. op := &request.Operation{
  828. Name: opDescribeTapes,
  829. HTTPMethod: "POST",
  830. HTTPPath: "/",
  831. Paginator: &request.Paginator{
  832. InputTokens: []string{"Marker"},
  833. OutputTokens: []string{"Marker"},
  834. LimitToken: "Limit",
  835. TruncationToken: "",
  836. },
  837. }
  838. if input == nil {
  839. input = &DescribeTapesInput{}
  840. }
  841. req = c.newRequest(op, input, output)
  842. output = &DescribeTapesOutput{}
  843. req.Data = output
  844. return
  845. }
  846. // Returns a description of the specified Amazon Resource Name (ARN) of virtual
  847. // tapes. If a TapeARN is not specified, returns a description of all virtual
  848. // tapes associated with the specified gateway.
  849. func (c *StorageGateway) DescribeTapes(input *DescribeTapesInput) (*DescribeTapesOutput, error) {
  850. req, out := c.DescribeTapesRequest(input)
  851. err := req.Send()
  852. return out, err
  853. }
  854. func (c *StorageGateway) DescribeTapesPages(input *DescribeTapesInput, fn func(p *DescribeTapesOutput, lastPage bool) (shouldContinue bool)) error {
  855. page, _ := c.DescribeTapesRequest(input)
  856. return page.EachPage(func(p interface{}, lastPage bool) bool {
  857. return fn(p.(*DescribeTapesOutput), lastPage)
  858. })
  859. }
  860. const opDescribeUploadBuffer = "DescribeUploadBuffer"
  861. // DescribeUploadBufferRequest generates a request for the DescribeUploadBuffer operation.
  862. func (c *StorageGateway) DescribeUploadBufferRequest(input *DescribeUploadBufferInput) (req *request.Request, output *DescribeUploadBufferOutput) {
  863. op := &request.Operation{
  864. Name: opDescribeUploadBuffer,
  865. HTTPMethod: "POST",
  866. HTTPPath: "/",
  867. }
  868. if input == nil {
  869. input = &DescribeUploadBufferInput{}
  870. }
  871. req = c.newRequest(op, input, output)
  872. output = &DescribeUploadBufferOutput{}
  873. req.Data = output
  874. return
  875. }
  876. // This operation returns information about the upload buffer of a gateway.
  877. // This operation is supported for both the gateway-stored and gateway-cached
  878. // volume architectures.
  879. //
  880. // The response includes disk IDs that are configured as upload buffer space,
  881. // and it includes the amount of upload buffer space allocated and used.
  882. func (c *StorageGateway) DescribeUploadBuffer(input *DescribeUploadBufferInput) (*DescribeUploadBufferOutput, error) {
  883. req, out := c.DescribeUploadBufferRequest(input)
  884. err := req.Send()
  885. return out, err
  886. }
  887. const opDescribeVTLDevices = "DescribeVTLDevices"
  888. // DescribeVTLDevicesRequest generates a request for the DescribeVTLDevices operation.
  889. func (c *StorageGateway) DescribeVTLDevicesRequest(input *DescribeVTLDevicesInput) (req *request.Request, output *DescribeVTLDevicesOutput) {
  890. op := &request.Operation{
  891. Name: opDescribeVTLDevices,
  892. HTTPMethod: "POST",
  893. HTTPPath: "/",
  894. Paginator: &request.Paginator{
  895. InputTokens: []string{"Marker"},
  896. OutputTokens: []string{"Marker"},
  897. LimitToken: "Limit",
  898. TruncationToken: "",
  899. },
  900. }
  901. if input == nil {
  902. input = &DescribeVTLDevicesInput{}
  903. }
  904. req = c.newRequest(op, input, output)
  905. output = &DescribeVTLDevicesOutput{}
  906. req.Data = output
  907. return
  908. }
  909. // Returns a description of virtual tape library (VTL) devices for the specified
  910. // gateway. In the response, AWS Storage Gateway returns VTL device information.
  911. //
  912. // The list of VTL devices must be from one gateway.
  913. func (c *StorageGateway) DescribeVTLDevices(input *DescribeVTLDevicesInput) (*DescribeVTLDevicesOutput, error) {
  914. req, out := c.DescribeVTLDevicesRequest(input)
  915. err := req.Send()
  916. return out, err
  917. }
  918. func (c *StorageGateway) DescribeVTLDevicesPages(input *DescribeVTLDevicesInput, fn func(p *DescribeVTLDevicesOutput, lastPage bool) (shouldContinue bool)) error {
  919. page, _ := c.DescribeVTLDevicesRequest(input)
  920. return page.EachPage(func(p interface{}, lastPage bool) bool {
  921. return fn(p.(*DescribeVTLDevicesOutput), lastPage)
  922. })
  923. }
  924. const opDescribeWorkingStorage = "DescribeWorkingStorage"
  925. // DescribeWorkingStorageRequest generates a request for the DescribeWorkingStorage operation.
  926. func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingStorageInput) (req *request.Request, output *DescribeWorkingStorageOutput) {
  927. op := &request.Operation{
  928. Name: opDescribeWorkingStorage,
  929. HTTPMethod: "POST",
  930. HTTPPath: "/",
  931. }
  932. if input == nil {
  933. input = &DescribeWorkingStorageInput{}
  934. }
  935. req = c.newRequest(op, input, output)
  936. output = &DescribeWorkingStorageOutput{}
  937. req.Data = output
  938. return
  939. }
  940. // This operation returns information about the working storage of a gateway.
  941. // This operation is supported only for the gateway-stored volume architecture.
  942. // This operation is deprecated in cached-volumes API version (20120630). Use
  943. // DescribeUploadBuffer instead.
  944. //
  945. // Working storage is also referred to as upload buffer. You can also use the
  946. // DescribeUploadBuffer operation to add upload buffer to a stored-volume gateway.
  947. //
  948. // The response includes disk IDs that are configured as working storage, and
  949. // it includes the amount of working storage allocated and used.
  950. func (c *StorageGateway) DescribeWorkingStorage(input *DescribeWorkingStorageInput) (*DescribeWorkingStorageOutput, error) {
  951. req, out := c.DescribeWorkingStorageRequest(input)
  952. err := req.Send()
  953. return out, err
  954. }
  955. const opDisableGateway = "DisableGateway"
  956. // DisableGatewayRequest generates a request for the DisableGateway operation.
  957. func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req *request.Request, output *DisableGatewayOutput) {
  958. op := &request.Operation{
  959. Name: opDisableGateway,
  960. HTTPMethod: "POST",
  961. HTTPPath: "/",
  962. }
  963. if input == nil {
  964. input = &DisableGatewayInput{}
  965. }
  966. req = c.newRequest(op, input, output)
  967. output = &DisableGatewayOutput{}
  968. req.Data = output
  969. return
  970. }
  971. // Disables a gateway when the gateway is no longer functioning. For example,
  972. // if your gateway VM is damaged, you can disable the gateway so you can recover
  973. // virtual tapes.
  974. //
  975. // Use this operation for a gateway-VTL that is not reachable or not functioning.
  976. //
  977. // Once a gateway is disabled it cannot be enabled.
  978. func (c *StorageGateway) DisableGateway(input *DisableGatewayInput) (*DisableGatewayOutput, error) {
  979. req, out := c.DisableGatewayRequest(input)
  980. err := req.Send()
  981. return out, err
  982. }
  983. const opListGateways = "ListGateways"
  984. // ListGatewaysRequest generates a request for the ListGateways operation.
  985. func (c *StorageGateway) ListGatewaysRequest(input *ListGatewaysInput) (req *request.Request, output *ListGatewaysOutput) {
  986. op := &request.Operation{
  987. Name: opListGateways,
  988. HTTPMethod: "POST",
  989. HTTPPath: "/",
  990. Paginator: &request.Paginator{
  991. InputTokens: []string{"Marker"},
  992. OutputTokens: []string{"Marker"},
  993. LimitToken: "Limit",
  994. TruncationToken: "",
  995. },
  996. }
  997. if input == nil {
  998. input = &ListGatewaysInput{}
  999. }
  1000. req = c.newRequest(op, input, output)
  1001. output = &ListGatewaysOutput{}
  1002. req.Data = output
  1003. return
  1004. }
  1005. // This operation lists gateways owned by an AWS account in a region specified
  1006. // in the request. The returned list is ordered by gateway Amazon Resource Name
  1007. // (ARN).
  1008. //
  1009. // By default, the operation returns a maximum of 100 gateways. This operation
  1010. // supports pagination that allows you to optionally reduce the number of gateways
  1011. // returned in a response.
  1012. //
  1013. // If you have more gateways than are returned in a response-that is, the response
  1014. // returns only a truncated list of your gateways-the response contains a marker
  1015. // that you can specify in your next request to fetch the next page of gateways.
  1016. func (c *StorageGateway) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error) {
  1017. req, out := c.ListGatewaysRequest(input)
  1018. err := req.Send()
  1019. return out, err
  1020. }
  1021. func (c *StorageGateway) ListGatewaysPages(input *ListGatewaysInput, fn func(p *ListGatewaysOutput, lastPage bool) (shouldContinue bool)) error {
  1022. page, _ := c.ListGatewaysRequest(input)
  1023. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1024. return fn(p.(*ListGatewaysOutput), lastPage)
  1025. })
  1026. }
  1027. const opListLocalDisks = "ListLocalDisks"
  1028. // ListLocalDisksRequest generates a request for the ListLocalDisks operation.
  1029. func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req *request.Request, output *ListLocalDisksOutput) {
  1030. op := &request.Operation{
  1031. Name: opListLocalDisks,
  1032. HTTPMethod: "POST",
  1033. HTTPPath: "/",
  1034. }
  1035. if input == nil {
  1036. input = &ListLocalDisksInput{}
  1037. }
  1038. req = c.newRequest(op, input, output)
  1039. output = &ListLocalDisksOutput{}
  1040. req.Data = output
  1041. return
  1042. }
  1043. // This operation returns a list of the gateway's local disks. To specify which
  1044. // gateway to describe, you use the Amazon Resource Name (ARN) of the gateway
  1045. // in the body of the request.
  1046. //
  1047. // The request returns a list of all disks, specifying which are configured
  1048. // as working storage, cache storage, or stored volume or not configured at
  1049. // all. The response includes a DiskStatus field. This field can have a value
  1050. // of present (the disk is available to use), missing (the disk is no longer
  1051. // connected to the gateway), or mismatch (the disk node is occupied by a disk
  1052. // that has incorrect metadata or the disk content is corrupted).
  1053. func (c *StorageGateway) ListLocalDisks(input *ListLocalDisksInput) (*ListLocalDisksOutput, error) {
  1054. req, out := c.ListLocalDisksRequest(input)
  1055. err := req.Send()
  1056. return out, err
  1057. }
  1058. const opListVolumeInitiators = "ListVolumeInitiators"
  1059. // ListVolumeInitiatorsRequest generates a request for the ListVolumeInitiators operation.
  1060. func (c *StorageGateway) ListVolumeInitiatorsRequest(input *ListVolumeInitiatorsInput) (req *request.Request, output *ListVolumeInitiatorsOutput) {
  1061. op := &request.Operation{
  1062. Name: opListVolumeInitiators,
  1063. HTTPMethod: "POST",
  1064. HTTPPath: "/",
  1065. }
  1066. if input == nil {
  1067. input = &ListVolumeInitiatorsInput{}
  1068. }
  1069. req = c.newRequest(op, input, output)
  1070. output = &ListVolumeInitiatorsOutput{}
  1071. req.Data = output
  1072. return
  1073. }
  1074. // This operation lists iSCSI initiators that are connected to a volume. You
  1075. // can use this operation to determine whether a volume is being used or not.
  1076. func (c *StorageGateway) ListVolumeInitiators(input *ListVolumeInitiatorsInput) (*ListVolumeInitiatorsOutput, error) {
  1077. req, out := c.ListVolumeInitiatorsRequest(input)
  1078. err := req.Send()
  1079. return out, err
  1080. }
  1081. const opListVolumeRecoveryPoints = "ListVolumeRecoveryPoints"
  1082. // ListVolumeRecoveryPointsRequest generates a request for the ListVolumeRecoveryPoints operation.
  1083. func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecoveryPointsInput) (req *request.Request, output *ListVolumeRecoveryPointsOutput) {
  1084. op := &request.Operation{
  1085. Name: opListVolumeRecoveryPoints,
  1086. HTTPMethod: "POST",
  1087. HTTPPath: "/",
  1088. }
  1089. if input == nil {
  1090. input = &ListVolumeRecoveryPointsInput{}
  1091. }
  1092. req = c.newRequest(op, input, output)
  1093. output = &ListVolumeRecoveryPointsOutput{}
  1094. req.Data = output
  1095. return
  1096. }
  1097. // This operation lists the recovery points for a specified gateway. This operation
  1098. // is supported only for the gateway-cached volume architecture.
  1099. //
  1100. // Each gateway-cached volume has one recovery point. A volume recovery point
  1101. // is a point in time at which all data of the volume is consistent and from
  1102. // which you can create a snapshot. To create a snapshot from a volume recovery
  1103. // point use the CreateSnapshotFromVolumeRecoveryPoint operation.
  1104. func (c *StorageGateway) ListVolumeRecoveryPoints(input *ListVolumeRecoveryPointsInput) (*ListVolumeRecoveryPointsOutput, error) {
  1105. req, out := c.ListVolumeRecoveryPointsRequest(input)
  1106. err := req.Send()
  1107. return out, err
  1108. }
  1109. const opListVolumes = "ListVolumes"
  1110. // ListVolumesRequest generates a request for the ListVolumes operation.
  1111. func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *request.Request, output *ListVolumesOutput) {
  1112. op := &request.Operation{
  1113. Name: opListVolumes,
  1114. HTTPMethod: "POST",
  1115. HTTPPath: "/",
  1116. Paginator: &request.Paginator{
  1117. InputTokens: []string{"Marker"},
  1118. OutputTokens: []string{"Marker"},
  1119. LimitToken: "Limit",
  1120. TruncationToken: "",
  1121. },
  1122. }
  1123. if input == nil {
  1124. input = &ListVolumesInput{}
  1125. }
  1126. req = c.newRequest(op, input, output)
  1127. output = &ListVolumesOutput{}
  1128. req.Data = output
  1129. return
  1130. }
  1131. // This operation lists the iSCSI stored volumes of a gateway. Results are sorted
  1132. // by volume ARN. The response includes only the volume ARNs. If you want additional
  1133. // volume information, use the DescribeStorediSCSIVolumes API.
  1134. //
  1135. // The operation supports pagination. By default, the operation returns a maximum
  1136. // of up to 100 volumes. You can optionally specify the Limit field in the body
  1137. // to limit the number of volumes in the response. If the number of volumes
  1138. // returned in the response is truncated, the response includes a Marker field.
  1139. // You can use this Marker value in your subsequent request to retrieve the
  1140. // next set of volumes.
  1141. func (c *StorageGateway) ListVolumes(input *ListVolumesInput) (*ListVolumesOutput, error) {
  1142. req, out := c.ListVolumesRequest(input)
  1143. err := req.Send()
  1144. return out, err
  1145. }
  1146. func (c *StorageGateway) ListVolumesPages(input *ListVolumesInput, fn func(p *ListVolumesOutput, lastPage bool) (shouldContinue bool)) error {
  1147. page, _ := c.ListVolumesRequest(input)
  1148. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1149. return fn(p.(*ListVolumesOutput), lastPage)
  1150. })
  1151. }
  1152. const opResetCache = "ResetCache"
  1153. // ResetCacheRequest generates a request for the ResetCache operation.
  1154. func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request.Request, output *ResetCacheOutput) {
  1155. op := &request.Operation{
  1156. Name: opResetCache,
  1157. HTTPMethod: "POST",
  1158. HTTPPath: "/",
  1159. }
  1160. if input == nil {
  1161. input = &ResetCacheInput{}
  1162. }
  1163. req = c.newRequest(op, input, output)
  1164. output = &ResetCacheOutput{}
  1165. req.Data = output
  1166. return
  1167. }
  1168. // This operation resets all cache disks that have encountered a error and makes
  1169. // the disks available for reconfiguration as cache storage. If your cache disk
  1170. // encounters a error, the gateway prevents read and write operations on virtual
  1171. // tapes in the gateway. For example, an error can occur when a disk is corrupted
  1172. // or removed from the gateway. When a cache is reset, the gateway loses its
  1173. // cache storage. At this point you can reconfigure the disks as cache disks.
  1174. //
  1175. // If the cache disk you are resetting contains data that has not been uploaded
  1176. // to Amazon S3 yet, that data can be lost. After you reset cache disks, there
  1177. // will be no configured cache disks left in the gateway, so you must configure
  1178. // at least one new cache disk for your gateway to function properly.
  1179. func (c *StorageGateway) ResetCache(input *ResetCacheInput) (*ResetCacheOutput, error) {
  1180. req, out := c.ResetCacheRequest(input)
  1181. err := req.Send()
  1182. return out, err
  1183. }
  1184. const opRetrieveTapeArchive = "RetrieveTapeArchive"
  1185. // RetrieveTapeArchiveRequest generates a request for the RetrieveTapeArchive operation.
  1186. func (c *StorageGateway) RetrieveTapeArchiveRequest(input *RetrieveTapeArchiveInput) (req *request.Request, output *RetrieveTapeArchiveOutput) {
  1187. op := &request.Operation{
  1188. Name: opRetrieveTapeArchive,
  1189. HTTPMethod: "POST",
  1190. HTTPPath: "/",
  1191. }
  1192. if input == nil {
  1193. input = &RetrieveTapeArchiveInput{}
  1194. }
  1195. req = c.newRequest(op, input, output)
  1196. output = &RetrieveTapeArchiveOutput{}
  1197. req.Data = output
  1198. return
  1199. }
  1200. // Retrieves an archived virtual tape from the virtual tape shelf (VTS) to a
  1201. // gateway-VTL. Virtual tapes archived in the VTS are not associated with any
  1202. // gateway. However after a tape is retrieved, it is associated with a gateway,
  1203. // even though it is also listed in the VTS.
  1204. //
  1205. // Once a tape is successfully retrieved to a gateway, it cannot be retrieved
  1206. // again to another gateway. You must archive the tape again before you can
  1207. // retrieve it to another gateway.
  1208. func (c *StorageGateway) RetrieveTapeArchive(input *RetrieveTapeArchiveInput) (*RetrieveTapeArchiveOutput, error) {
  1209. req, out := c.RetrieveTapeArchiveRequest(input)
  1210. err := req.Send()
  1211. return out, err
  1212. }
  1213. const opRetrieveTapeRecoveryPoint = "RetrieveTapeRecoveryPoint"
  1214. // RetrieveTapeRecoveryPointRequest generates a request for the RetrieveTapeRecoveryPoint operation.
  1215. func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRecoveryPointInput) (req *request.Request, output *RetrieveTapeRecoveryPointOutput) {
  1216. op := &request.Operation{
  1217. Name: opRetrieveTapeRecoveryPoint,
  1218. HTTPMethod: "POST",
  1219. HTTPPath: "/",
  1220. }
  1221. if input == nil {
  1222. input = &RetrieveTapeRecoveryPointInput{}
  1223. }
  1224. req = c.newRequest(op, input, output)
  1225. output = &RetrieveTapeRecoveryPointOutput{}
  1226. req.Data = output
  1227. return
  1228. }
  1229. // Retrieves the recovery point for the specified virtual tape.
  1230. //
  1231. // A recovery point is a point in time view of a virtual tape at which all
  1232. // the data on the tape is consistent. If your gateway crashes, virtual tapes
  1233. // that have recovery points can be recovered to a new gateway.
  1234. //
  1235. // The virtual tape can be retrieved to only one gateway. The retrieved tape
  1236. // is read-only. The virtual tape can be retrieved to only a gateway-VTL. There
  1237. // is no charge for retrieving recovery points.
  1238. func (c *StorageGateway) RetrieveTapeRecoveryPoint(input *RetrieveTapeRecoveryPointInput) (*RetrieveTapeRecoveryPointOutput, error) {
  1239. req, out := c.RetrieveTapeRecoveryPointRequest(input)
  1240. err := req.Send()
  1241. return out, err
  1242. }
  1243. const opShutdownGateway = "ShutdownGateway"
  1244. // ShutdownGatewayRequest generates a request for the ShutdownGateway operation.
  1245. func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (req *request.Request, output *ShutdownGatewayOutput) {
  1246. op := &request.Operation{
  1247. Name: opShutdownGateway,
  1248. HTTPMethod: "POST",
  1249. HTTPPath: "/",
  1250. }
  1251. if input == nil {
  1252. input = &ShutdownGatewayInput{}
  1253. }
  1254. req = c.newRequest(op, input, output)
  1255. output = &ShutdownGatewayOutput{}
  1256. req.Data = output
  1257. return
  1258. }
  1259. // This operation shuts down a gateway. To specify which gateway to shut down,
  1260. // use the Amazon Resource Name (ARN) of the gateway in the body of your request.
  1261. //
  1262. // The operation shuts down the gateway service component running in the storage
  1263. // gateway's virtual machine (VM) and not the VM.
  1264. //
  1265. // If you want to shut down the VM, it is recommended that you first shut down
  1266. // the gateway component in the VM to avoid unpredictable conditions. After
  1267. // the gateway is shutdown, you cannot call any other API except StartGateway,
  1268. // DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway.
  1269. // Your applications cannot read from or write to the gateway's storage volumes,
  1270. // and there are no snapshots taken.
  1271. //
  1272. // When you make a shutdown request, you will get a 200 OK success response
  1273. // immediately. However, it might take some time for the gateway to shut down.
  1274. // You can call the DescribeGatewayInformation API to check the status. For
  1275. // more information, see ActivateGateway. If do not intend to use the gateway
  1276. // again, you must delete the gateway (using DeleteGateway) to no longer pay
  1277. // software charges associated with the gateway.
  1278. func (c *StorageGateway) ShutdownGateway(input *ShutdownGatewayInput) (*ShutdownGatewayOutput, error) {
  1279. req, out := c.ShutdownGatewayRequest(input)
  1280. err := req.Send()
  1281. return out, err
  1282. }
  1283. const opStartGateway = "StartGateway"
  1284. // StartGatewayRequest generates a request for the StartGateway operation.
  1285. func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *request.Request, output *StartGatewayOutput) {
  1286. op := &request.Operation{
  1287. Name: opStartGateway,
  1288. HTTPMethod: "POST",
  1289. HTTPPath: "/",
  1290. }
  1291. if input == nil {
  1292. input = &StartGatewayInput{}
  1293. }
  1294. req = c.newRequest(op, input, output)
  1295. output = &StartGatewayOutput{}
  1296. req.Data = output
  1297. return
  1298. }
  1299. // This operation starts a gateway that you previously shut down (see ShutdownGateway).
  1300. // After the gateway starts, you can then make other API calls, your applications
  1301. // can read from or write to the gateway's storage volumes and you will be able
  1302. // to take snapshot backups.
  1303. //
  1304. // When you make a request, you will get a 200 OK success response immediately.
  1305. // However, it might take some time for the gateway to be ready. You should
  1306. // call DescribeGatewayInformation and check the status before making any additional
  1307. // API calls. For more information, see ActivateGateway. To specify which gateway
  1308. // to start, use the Amazon Resource Name (ARN) of the gateway in your request.
  1309. func (c *StorageGateway) StartGateway(input *StartGatewayInput) (*StartGatewayOutput, error) {
  1310. req, out := c.StartGatewayRequest(input)
  1311. err := req.Send()
  1312. return out, err
  1313. }
  1314. const opUpdateBandwidthRateLimit = "UpdateBandwidthRateLimit"
  1315. // UpdateBandwidthRateLimitRequest generates a request for the UpdateBandwidthRateLimit operation.
  1316. func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthRateLimitInput) (req *request.Request, output *UpdateBandwidthRateLimitOutput) {
  1317. op := &request.Operation{
  1318. Name: opUpdateBandwidthRateLimit,
  1319. HTTPMethod: "POST",
  1320. HTTPPath: "/",
  1321. }
  1322. if input == nil {
  1323. input = &UpdateBandwidthRateLimitInput{}
  1324. }
  1325. req = c.newRequest(op, input, output)
  1326. output = &UpdateBandwidthRateLimitOutput{}
  1327. req.Data = output
  1328. return
  1329. }
  1330. // This operation updates the bandwidth rate limits of a gateway. You can update
  1331. // both the upload and download bandwidth rate limit or specify only one of
  1332. // the two. If you don't set a bandwidth rate limit, the existing rate limit
  1333. // remains.
  1334. //
  1335. // By default, a gateway's bandwidth rate limits are not set. If you don't
  1336. // set any limit, the gateway does not have any limitations on its bandwidth
  1337. // usage and could potentially use the maximum available bandwidth.
  1338. //
  1339. // To specify which gateway to update, use the Amazon Resource Name (ARN) of
  1340. // the gateway in your request.
  1341. func (c *StorageGateway) UpdateBandwidthRateLimit(input *UpdateBandwidthRateLimitInput) (*UpdateBandwidthRateLimitOutput, error) {
  1342. req, out := c.UpdateBandwidthRateLimitRequest(input)
  1343. err := req.Send()
  1344. return out, err
  1345. }
  1346. const opUpdateChapCredentials = "UpdateChapCredentials"
  1347. // UpdateChapCredentialsRequest generates a request for the UpdateChapCredentials operation.
  1348. func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentialsInput) (req *request.Request, output *UpdateChapCredentialsOutput) {
  1349. op := &request.Operation{
  1350. Name: opUpdateChapCredentials,
  1351. HTTPMethod: "POST",
  1352. HTTPPath: "/",
  1353. }
  1354. if input == nil {
  1355. input = &UpdateChapCredentialsInput{}
  1356. }
  1357. req = c.newRequest(op, input, output)
  1358. output = &UpdateChapCredentialsOutput{}
  1359. req.Data = output
  1360. return
  1361. }
  1362. // This operation updates the Challenge-Handshake Authentication Protocol (CHAP)
  1363. // credentials for a specified iSCSI target. By default, a gateway does not
  1364. // have CHAP enabled; however, for added security, you might use it.
  1365. //
  1366. // When you update CHAP credentials, all existing connections on the target
  1367. // are closed and initiators must reconnect with the new credentials.
  1368. func (c *StorageGateway) UpdateChapCredentials(input *UpdateChapCredentialsInput) (*UpdateChapCredentialsOutput, error) {
  1369. req, out := c.UpdateChapCredentialsRequest(input)
  1370. err := req.Send()
  1371. return out, err
  1372. }
  1373. const opUpdateGatewayInformation = "UpdateGatewayInformation"
  1374. // UpdateGatewayInformationRequest generates a request for the UpdateGatewayInformation operation.
  1375. func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInformationInput) (req *request.Request, output *UpdateGatewayInformationOutput) {
  1376. op := &request.Operation{
  1377. Name: opUpdateGatewayInformation,
  1378. HTTPMethod: "POST",
  1379. HTTPPath: "/",
  1380. }
  1381. if input == nil {
  1382. input = &UpdateGatewayInformationInput{}
  1383. }
  1384. req = c.newRequest(op, input, output)
  1385. output = &UpdateGatewayInformationOutput{}
  1386. req.Data = output
  1387. return
  1388. }
  1389. // This operation updates a gateway's metadata, which includes the gateway's
  1390. // name and time zone. To specify which gateway to update, use the Amazon Resource
  1391. // Name (ARN) of the gateway in your request.
  1392. func (c *StorageGateway) UpdateGatewayInformation(input *UpdateGatewayInformationInput) (*UpdateGatewayInformationOutput, error) {
  1393. req, out := c.UpdateGatewayInformationRequest(input)
  1394. err := req.Send()
  1395. return out, err
  1396. }
  1397. const opUpdateGatewaySoftwareNow = "UpdateGatewaySoftwareNow"
  1398. // UpdateGatewaySoftwareNowRequest generates a request for the UpdateGatewaySoftwareNow operation.
  1399. func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySoftwareNowInput) (req *request.Request, output *UpdateGatewaySoftwareNowOutput) {
  1400. op := &request.Operation{
  1401. Name: opUpdateGatewaySoftwareNow,
  1402. HTTPMethod: "POST",
  1403. HTTPPath: "/",
  1404. }
  1405. if input == nil {
  1406. input = &UpdateGatewaySoftwareNowInput{}
  1407. }
  1408. req = c.newRequest(op, input, output)
  1409. output = &UpdateGatewaySoftwareNowOutput{}
  1410. req.Data = output
  1411. return
  1412. }
  1413. // This operation updates the gateway virtual machine (VM) software. The request
  1414. // immediately triggers the software update.
  1415. //
  1416. // When you make this request, you get a 200 OK success response immediately.
  1417. // However, it might take some time for the update to complete. You can call
  1418. // DescribeGatewayInformation to verify the gateway is in the STATE_RUNNING
  1419. // state. A software update forces a system restart of your gateway. You can
  1420. // minimize the chance of any disruption to your applications by increasing
  1421. // your iSCSI Initiators' timeouts. For more information about increasing iSCSI
  1422. // Initiator timeouts for Windows and Linux, see Customizing Your Windows iSCSI
  1423. // Settings (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorWindowsClient.html#CustomizeWindowsiSCSISettings)
  1424. // and Customizing Your Linux iSCSI Settings (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorRedHatClient.html#CustomizeLinuxiSCSISettings),
  1425. // respectively.
  1426. func (c *StorageGateway) UpdateGatewaySoftwareNow(input *UpdateGatewaySoftwareNowInput) (*UpdateGatewaySoftwareNowOutput, error) {
  1427. req, out := c.UpdateGatewaySoftwareNowRequest(input)
  1428. err := req.Send()
  1429. return out, err
  1430. }
  1431. const opUpdateMaintenanceStartTime = "UpdateMaintenanceStartTime"
  1432. // UpdateMaintenanceStartTimeRequest generates a request for the UpdateMaintenanceStartTime operation.
  1433. func (c *StorageGateway) UpdateMaintenanceStartTimeRequest(input *UpdateMaintenanceStartTimeInput) (req *request.Request, output *UpdateMaintenanceStartTimeOutput) {
  1434. op := &request.Operation{
  1435. Name: opUpdateMaintenanceStartTime,
  1436. HTTPMethod: "POST",
  1437. HTTPPath: "/",
  1438. }
  1439. if input == nil {
  1440. input = &UpdateMaintenanceStartTimeInput{}
  1441. }
  1442. req = c.newRequest(op, input, output)
  1443. output = &UpdateMaintenanceStartTimeOutput{}
  1444. req.Data = output
  1445. return
  1446. }
  1447. // This operation updates a gateway's weekly maintenance start time information,
  1448. // including day and time of the week. The maintenance time is the time in your
  1449. // gateway's time zone.
  1450. func (c *StorageGateway) UpdateMaintenanceStartTime(input *UpdateMaintenanceStartTimeInput) (*UpdateMaintenanceStartTimeOutput, error) {
  1451. req, out := c.UpdateMaintenanceStartTimeRequest(input)
  1452. err := req.Send()
  1453. return out, err
  1454. }
  1455. const opUpdateSnapshotSchedule = "UpdateSnapshotSchedule"
  1456. // UpdateSnapshotScheduleRequest generates a request for the UpdateSnapshotSchedule operation.
  1457. func (c *StorageGateway) UpdateSnapshotScheduleRequest(input *UpdateSnapshotScheduleInput) (req *request.Request, output *UpdateSnapshotScheduleOutput) {
  1458. op := &request.Operation{
  1459. Name: opUpdateSnapshotSchedule,
  1460. HTTPMethod: "POST",
  1461. HTTPPath: "/",
  1462. }
  1463. if input == nil {
  1464. input = &UpdateSnapshotScheduleInput{}
  1465. }
  1466. req = c.newRequest(op, input, output)
  1467. output = &UpdateSnapshotScheduleOutput{}
  1468. req.Data = output
  1469. return
  1470. }
  1471. // This operation updates a snapshot schedule configured for a gateway volume.
  1472. //
  1473. // The default snapshot schedule for volume is once every 24 hours, starting
  1474. // at the creation time of the volume. You can use this API to change the snapshot
  1475. // schedule configured for the volume.
  1476. //
  1477. // In the request you must identify the gateway volume whose snapshot schedule
  1478. // you want to update, and the schedule information, including when you want
  1479. // the snapshot to begin on a day and the frequency (in hours) of snapshots.
  1480. func (c *StorageGateway) UpdateSnapshotSchedule(input *UpdateSnapshotScheduleInput) (*UpdateSnapshotScheduleOutput, error) {
  1481. req, out := c.UpdateSnapshotScheduleRequest(input)
  1482. err := req.Send()
  1483. return out, err
  1484. }
  1485. const opUpdateVTLDeviceType = "UpdateVTLDeviceType"
  1486. // UpdateVTLDeviceTypeRequest generates a request for the UpdateVTLDeviceType operation.
  1487. func (c *StorageGateway) UpdateVTLDeviceTypeRequest(input *UpdateVTLDeviceTypeInput) (req *request.Request, output *UpdateVTLDeviceTypeOutput) {
  1488. op := &request.Operation{
  1489. Name: opUpdateVTLDeviceType,
  1490. HTTPMethod: "POST",
  1491. HTTPPath: "/",
  1492. }
  1493. if input == nil {
  1494. input = &UpdateVTLDeviceTypeInput{}
  1495. }
  1496. req = c.newRequest(op, input, output)
  1497. output = &UpdateVTLDeviceTypeOutput{}
  1498. req.Data = output
  1499. return
  1500. }
  1501. // This operation updates the type of medium changer in a gateway-VTL. When
  1502. // you activate a gateway-VTL, you select a medium changer type for the gateway-VTL.
  1503. // This operation enables you to select a different type of medium changer after
  1504. // a gateway-VTL is activated.
  1505. func (c *StorageGateway) UpdateVTLDeviceType(input *UpdateVTLDeviceTypeInput) (*UpdateVTLDeviceTypeOutput, error) {
  1506. req, out := c.UpdateVTLDeviceTypeRequest(input)
  1507. err := req.Send()
  1508. return out, err
  1509. }
  1510. // A JSON object containing one or more of the following fields:
  1511. //
  1512. // ActivateGatewayInput$ActivationKey GatewayName ActivateGatewayInput$GatewayRegion
  1513. // ActivateGatewayInput$GatewayTimezone ActivateGatewayInput$GatewayType
  1514. // ActivateGatewayInput$TapeDriveType ActivateGatewayInput$MediumChangerType
  1515. type ActivateGatewayInput struct {
  1516. // Your gateway activation key. You can obtain the activation key by sending
  1517. // an HTTP GET request with redirects enabled to the gateway IP address (port
  1518. // 80). The redirect URL returned in the response provides you the activation
  1519. // key for your gateway in the query string parameter activationKey. It may
  1520. // also include other activation-related parameters, however, these are merely
  1521. // defaults -- the arguments you pass to the ActivateGateway API call determine
  1522. // the actual configuration of your gateway.
  1523. ActivationKey *string `type:"string" required:"true"`
  1524. // A unique identifier for your gateway. This name becomes part of the gateway
  1525. // Amazon Resources Name (ARN) which is what you use as an input to other operations.
  1526. GatewayName *string `type:"string" required:"true"`
  1527. // One of the values that indicates the region where you want to store the snapshot
  1528. // backups. The gateway region specified must be the same region as the region
  1529. // in your Host header in the request. For more information about available
  1530. // regions and endpoints for AWS Storage Gateway, see Regions and Endpoints
  1531. // (http://docs.aws.amazon.com/general/latest/gr/rande.html#sg_region) in the
  1532. // Amazon Web Services Glossary.
  1533. //
  1534. // Valid Values: "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1",
  1535. // "ap-northeast-1", "ap-southeast-1", "ap-southeast-2", "sa-east-1"
  1536. GatewayRegion *string `type:"string" required:"true"`
  1537. // One of the values that indicates the time zone you want to set for the gateway.
  1538. // The time zone is used, for example, for scheduling snapshots and your gateway's
  1539. // maintenance schedule.
  1540. GatewayTimezone *string `type:"string" required:"true"`
  1541. // One of the values that defines the type of gateway to activate. The type
  1542. // specified is critical to all later functions of the gateway and cannot be
  1543. // changed after activation. The default value is STORED.
  1544. GatewayType *string `type:"string"`
  1545. // The value that indicates the type of medium changer to use for gateway-VTL.
  1546. // This field is optional.
  1547. //
  1548. // Valid Values: "STK-L700", "AWS-Gateway-VTL"
  1549. MediumChangerType *string `type:"string"`
  1550. // The value that indicates the type of tape drive to use for gateway-VTL. This
  1551. // field is optional.
  1552. //
  1553. // Valid Values: "IBM-ULT3580-TD5"
  1554. TapeDriveType *string `type:"string"`
  1555. metadataActivateGatewayInput `json:"-" xml:"-"`
  1556. }
  1557. type metadataActivateGatewayInput struct {
  1558. SDKShapeTraits bool `type:"structure"`
  1559. }
  1560. // String returns the string representation
  1561. func (s ActivateGatewayInput) String() string {
  1562. return awsutil.Prettify(s)
  1563. }
  1564. // GoString returns the string representation
  1565. func (s ActivateGatewayInput) GoString() string {
  1566. return s.String()
  1567. }
  1568. // AWS Storage Gateway returns the Amazon Resource Name (ARN) of the activated
  1569. // gateway. It is a string made of information such as your account, gateway
  1570. // name, and region. This ARN is used to reference the gateway in other API
  1571. // operations as well as resource-based authorization.
  1572. type ActivateGatewayOutput struct {
  1573. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  1574. // to return a list of gateways for your account and region.
  1575. GatewayARN *string `type:"string"`
  1576. metadataActivateGatewayOutput `json:"-" xml:"-"`
  1577. }
  1578. type metadataActivateGatewayOutput struct {
  1579. SDKShapeTraits bool `type:"structure"`
  1580. }
  1581. // String returns the string representation
  1582. func (s ActivateGatewayOutput) String() string {
  1583. return awsutil.Prettify(s)
  1584. }
  1585. // GoString returns the string representation
  1586. func (s ActivateGatewayOutput) GoString() string {
  1587. return s.String()
  1588. }
  1589. type AddCacheInput struct {
  1590. DiskIds []*string `type:"list" required:"true"`
  1591. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  1592. // to return a list of gateways for your account and region.
  1593. GatewayARN *string `type:"string" required:"true"`
  1594. metadataAddCacheInput `json:"-" xml:"-"`
  1595. }
  1596. type metadataAddCacheInput struct {
  1597. SDKShapeTraits bool `type:"structure"`
  1598. }
  1599. // String returns the string representation
  1600. func (s AddCacheInput) String() string {
  1601. return awsutil.Prettify(s)
  1602. }
  1603. // GoString returns the string representation
  1604. func (s AddCacheInput) GoString() string {
  1605. return s.String()
  1606. }
  1607. type AddCacheOutput struct {
  1608. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  1609. // to return a list of gateways for your account and region.
  1610. GatewayARN *string `type:"string"`
  1611. metadataAddCacheOutput `json:"-" xml:"-"`
  1612. }
  1613. type metadataAddCacheOutput struct {
  1614. SDKShapeTraits bool `type:"structure"`
  1615. }
  1616. // String returns the string representation
  1617. func (s AddCacheOutput) String() string {
  1618. return awsutil.Prettify(s)
  1619. }
  1620. // GoString returns the string representation
  1621. func (s AddCacheOutput) GoString() string {
  1622. return s.String()
  1623. }
  1624. type AddUploadBufferInput struct {
  1625. DiskIds []*string `type:"list" required:"true"`
  1626. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  1627. // to return a list of gateways for your account and region.
  1628. GatewayARN *string `type:"string" required:"true"`
  1629. metadataAddUploadBufferInput `json:"-" xml:"-"`
  1630. }
  1631. type metadataAddUploadBufferInput struct {
  1632. SDKShapeTraits bool `type:"structure"`
  1633. }
  1634. // String returns the string representation
  1635. func (s AddUploadBufferInput) String() string {
  1636. return awsutil.Prettify(s)
  1637. }
  1638. // GoString returns the string representation
  1639. func (s AddUploadBufferInput) GoString() string {
  1640. return s.String()
  1641. }
  1642. type AddUploadBufferOutput struct {
  1643. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  1644. // to return a list of gateways for your account and region.
  1645. GatewayARN *string `type:"string"`
  1646. metadataAddUploadBufferOutput `json:"-" xml:"-"`
  1647. }
  1648. type metadataAddUploadBufferOutput struct {
  1649. SDKShapeTraits bool `type:"structure"`
  1650. }
  1651. // String returns the string representation
  1652. func (s AddUploadBufferOutput) String() string {
  1653. return awsutil.Prettify(s)
  1654. }
  1655. // GoString returns the string representation
  1656. func (s AddUploadBufferOutput) GoString() string {
  1657. return s.String()
  1658. }
  1659. // A JSON object containing one or more of the following fields:
  1660. //
  1661. // AddWorkingStorageInput$DiskIds
  1662. type AddWorkingStorageInput struct {
  1663. // An array of strings that identify disks that are to be configured as working
  1664. // storage. Each string have a minimum length of 1 and maximum length of 300.
  1665. // You can get the disk IDs from the ListLocalDisks API.
  1666. DiskIds []*string `type:"list" required:"true"`
  1667. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  1668. // to return a list of gateways for your account and region.
  1669. GatewayARN *string `type:"string" required:"true"`
  1670. metadataAddWorkingStorageInput `json:"-" xml:"-"`
  1671. }
  1672. type metadataAddWorkingStorageInput struct {
  1673. SDKShapeTraits bool `type:"structure"`
  1674. }
  1675. // String returns the string representation
  1676. func (s AddWorkingStorageInput) String() string {
  1677. return awsutil.Prettify(s)
  1678. }
  1679. // GoString returns the string representation
  1680. func (s AddWorkingStorageInput) GoString() string {
  1681. return s.String()
  1682. }
  1683. // A JSON object containing the of the gateway for which working storage was
  1684. // configured.
  1685. type AddWorkingStorageOutput struct {
  1686. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  1687. // to return a list of gateways for your account and region.
  1688. GatewayARN *string `type:"string"`
  1689. metadataAddWorkingStorageOutput `json:"-" xml:"-"`
  1690. }
  1691. type metadataAddWorkingStorageOutput struct {
  1692. SDKShapeTraits bool `type:"structure"`
  1693. }
  1694. // String returns the string representation
  1695. func (s AddWorkingStorageOutput) String() string {
  1696. return awsutil.Prettify(s)
  1697. }
  1698. // GoString returns the string representation
  1699. func (s AddWorkingStorageOutput) GoString() string {
  1700. return s.String()
  1701. }
  1702. type CachediSCSIVolume struct {
  1703. SourceSnapshotId *string `type:"string"`
  1704. VolumeARN *string `type:"string"`
  1705. VolumeId *string `type:"string"`
  1706. VolumeProgress *float64 `type:"double"`
  1707. VolumeSizeInBytes *int64 `type:"long"`
  1708. VolumeStatus *string `type:"string"`
  1709. VolumeType *string `type:"string"`
  1710. // Lists iSCSI information about a volume.
  1711. VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"`
  1712. metadataCachediSCSIVolume `json:"-" xml:"-"`
  1713. }
  1714. type metadataCachediSCSIVolume struct {
  1715. SDKShapeTraits bool `type:"structure"`
  1716. }
  1717. // String returns the string representation
  1718. func (s CachediSCSIVolume) String() string {
  1719. return awsutil.Prettify(s)
  1720. }
  1721. // GoString returns the string representation
  1722. func (s CachediSCSIVolume) GoString() string {
  1723. return s.String()
  1724. }
  1725. // CancelArchivalInput
  1726. type CancelArchivalInput struct {
  1727. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  1728. // to return a list of gateways for your account and region.
  1729. GatewayARN *string `type:"string" required:"true"`
  1730. // The Amazon Resource Name (ARN) of the virtual tape you want to cancel archiving
  1731. // for.
  1732. TapeARN *string `type:"string" required:"true"`
  1733. metadataCancelArchivalInput `json:"-" xml:"-"`
  1734. }
  1735. type metadataCancelArchivalInput struct {
  1736. SDKShapeTraits bool `type:"structure"`
  1737. }
  1738. // String returns the string representation
  1739. func (s CancelArchivalInput) String() string {
  1740. return awsutil.Prettify(s)
  1741. }
  1742. // GoString returns the string representation
  1743. func (s CancelArchivalInput) GoString() string {
  1744. return s.String()
  1745. }
  1746. // CancelArchivalOutput
  1747. type CancelArchivalOutput struct {
  1748. // The Amazon Resource Name (ARN) of the virtual tape for which archiving was
  1749. // canceled.
  1750. TapeARN *string `type:"string"`
  1751. metadataCancelArchivalOutput `json:"-" xml:"-"`
  1752. }
  1753. type metadataCancelArchivalOutput struct {
  1754. SDKShapeTraits bool `type:"structure"`
  1755. }
  1756. // String returns the string representation
  1757. func (s CancelArchivalOutput) String() string {
  1758. return awsutil.Prettify(s)
  1759. }
  1760. // GoString returns the string representation
  1761. func (s CancelArchivalOutput) GoString() string {
  1762. return s.String()
  1763. }
  1764. // CancelRetrievalInput
  1765. type CancelRetrievalInput struct {
  1766. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  1767. // to return a list of gateways for your account and region.
  1768. GatewayARN *string `type:"string" required:"true"`
  1769. // The Amazon Resource Name (ARN) of the virtual tape you want to cancel retrieval
  1770. // for.
  1771. TapeARN *string `type:"string" required:"true"`
  1772. metadataCancelRetrievalInput `json:"-" xml:"-"`
  1773. }
  1774. type metadataCancelRetrievalInput struct {
  1775. SDKShapeTraits bool `type:"structure"`
  1776. }
  1777. // String returns the string representation
  1778. func (s CancelRetrievalInput) String() string {
  1779. return awsutil.Prettify(s)
  1780. }
  1781. // GoString returns the string representation
  1782. func (s CancelRetrievalInput) GoString() string {
  1783. return s.String()
  1784. }
  1785. // CancelRetrievalOutput
  1786. type CancelRetrievalOutput struct {
  1787. // The Amazon Resource Name (ARN) of the virtual tape for which retrieval was
  1788. // canceled.
  1789. TapeARN *string `type:"string"`
  1790. metadataCancelRetrievalOutput `json:"-" xml:"-"`
  1791. }
  1792. type metadataCancelRetrievalOutput struct {
  1793. SDKShapeTraits bool `type:"structure"`
  1794. }
  1795. // String returns the string representation
  1796. func (s CancelRetrievalOutput) String() string {
  1797. return awsutil.Prettify(s)
  1798. }
  1799. // GoString returns the string representation
  1800. func (s CancelRetrievalOutput) GoString() string {
  1801. return s.String()
  1802. }
  1803. // Describes Challenge-Handshake Authentication Protocol (CHAP) information
  1804. // that supports authentication between your gateway and iSCSI initiators.
  1805. type ChapInfo struct {
  1806. // The iSCSI initiator that connects to the target.
  1807. InitiatorName *string `type:"string"`
  1808. // The secret key that the initiator (for example, the Windows client) must
  1809. // provide to participate in mutual CHAP with the target.
  1810. SecretToAuthenticateInitiator *string `type:"string"`
  1811. // The secret key that the target must provide to participate in mutual CHAP
  1812. // with the initiator (e.g. Windows client).
  1813. SecretToAuthenticateTarget *string `type:"string"`
  1814. // The Amazon Resource Name (ARN) of the volume.
  1815. //
  1816. // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens
  1817. // (-).
  1818. TargetARN *string `type:"string"`
  1819. metadataChapInfo `json:"-" xml:"-"`
  1820. }
  1821. type metadataChapInfo struct {
  1822. SDKShapeTraits bool `type:"structure"`
  1823. }
  1824. // String returns the string representation
  1825. func (s ChapInfo) String() string {
  1826. return awsutil.Prettify(s)
  1827. }
  1828. // GoString returns the string representation
  1829. func (s ChapInfo) GoString() string {
  1830. return s.String()
  1831. }
  1832. type CreateCachediSCSIVolumeInput struct {
  1833. ClientToken *string `type:"string" required:"true"`
  1834. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  1835. // to return a list of gateways for your account and region.
  1836. GatewayARN *string `type:"string" required:"true"`
  1837. NetworkInterfaceId *string `type:"string" required:"true"`
  1838. SnapshotId *string `type:"string"`
  1839. TargetName *string `type:"string" required:"true"`
  1840. VolumeSizeInBytes *int64 `type:"long" required:"true"`
  1841. metadataCreateCachediSCSIVolumeInput `json:"-" xml:"-"`
  1842. }
  1843. type metadataCreateCachediSCSIVolumeInput struct {
  1844. SDKShapeTraits bool `type:"structure"`
  1845. }
  1846. // String returns the string representation
  1847. func (s CreateCachediSCSIVolumeInput) String() string {
  1848. return awsutil.Prettify(s)
  1849. }
  1850. // GoString returns the string representation
  1851. func (s CreateCachediSCSIVolumeInput) GoString() string {
  1852. return s.String()
  1853. }
  1854. type CreateCachediSCSIVolumeOutput struct {
  1855. TargetARN *string `type:"string"`
  1856. VolumeARN *string `type:"string"`
  1857. metadataCreateCachediSCSIVolumeOutput `json:"-" xml:"-"`
  1858. }
  1859. type metadataCreateCachediSCSIVolumeOutput struct {
  1860. SDKShapeTraits bool `type:"structure"`
  1861. }
  1862. // String returns the string representation
  1863. func (s CreateCachediSCSIVolumeOutput) String() string {
  1864. return awsutil.Prettify(s)
  1865. }
  1866. // GoString returns the string representation
  1867. func (s CreateCachediSCSIVolumeOutput) GoString() string {
  1868. return s.String()
  1869. }
  1870. type CreateSnapshotFromVolumeRecoveryPointInput struct {
  1871. SnapshotDescription *string `type:"string" required:"true"`
  1872. VolumeARN *string `type:"string" required:"true"`
  1873. metadataCreateSnapshotFromVolumeRecoveryPointInput `json:"-" xml:"-"`
  1874. }
  1875. type metadataCreateSnapshotFromVolumeRecoveryPointInput struct {
  1876. SDKShapeTraits bool `type:"structure"`
  1877. }
  1878. // String returns the string representation
  1879. func (s CreateSnapshotFromVolumeRecoveryPointInput) String() string {
  1880. return awsutil.Prettify(s)
  1881. }
  1882. // GoString returns the string representation
  1883. func (s CreateSnapshotFromVolumeRecoveryPointInput) GoString() string {
  1884. return s.String()
  1885. }
  1886. type CreateSnapshotFromVolumeRecoveryPointOutput struct {
  1887. SnapshotId *string `type:"string"`
  1888. VolumeARN *string `type:"string"`
  1889. VolumeRecoveryPointTime *string `type:"string"`
  1890. metadataCreateSnapshotFromVolumeRecoveryPointOutput `json:"-" xml:"-"`
  1891. }
  1892. type metadataCreateSnapshotFromVolumeRecoveryPointOutput struct {
  1893. SDKShapeTraits bool `type:"structure"`
  1894. }
  1895. // String returns the string representation
  1896. func (s CreateSnapshotFromVolumeRecoveryPointOutput) String() string {
  1897. return awsutil.Prettify(s)
  1898. }
  1899. // GoString returns the string representation
  1900. func (s CreateSnapshotFromVolumeRecoveryPointOutput) GoString() string {
  1901. return s.String()
  1902. }
  1903. // A JSON object containing one or more of the following fields:
  1904. //
  1905. // CreateSnapshotInput$SnapshotDescription CreateSnapshotInput$VolumeARN
  1906. type CreateSnapshotInput struct {
  1907. // Textual description of the snapshot that appears in the Amazon EC2 console,
  1908. // Elastic Block Store snapshots panel in the Description field, and in the
  1909. // AWS Storage Gateway snapshot Details pane, Description field
  1910. SnapshotDescription *string `type:"string" required:"true"`
  1911. // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
  1912. // to return a list of gateway volumes.
  1913. VolumeARN *string `type:"string" required:"true"`
  1914. metadataCreateSnapshotInput `json:"-" xml:"-"`
  1915. }
  1916. type metadataCreateSnapshotInput struct {
  1917. SDKShapeTraits bool `type:"structure"`
  1918. }
  1919. // String returns the string representation
  1920. func (s CreateSnapshotInput) String() string {
  1921. return awsutil.Prettify(s)
  1922. }
  1923. // GoString returns the string representation
  1924. func (s CreateSnapshotInput) GoString() string {
  1925. return s.String()
  1926. }
  1927. // A JSON object containing the following fields:
  1928. type CreateSnapshotOutput struct {
  1929. // The snapshot ID that is used to refer to the snapshot in future operations
  1930. // such as describing snapshots (Amazon Elastic Compute Cloud API DescribeSnapshots)
  1931. // or creating a volume from a snapshot (CreateStorediSCSIVolume).
  1932. SnapshotId *string `type:"string"`
  1933. // The Amazon Resource Name (ARN) of the volume of which the snapshot was taken.
  1934. VolumeARN *string `type:"string"`
  1935. metadataCreateSnapshotOutput `json:"-" xml:"-"`
  1936. }
  1937. type metadataCreateSnapshotOutput struct {
  1938. SDKShapeTraits bool `type:"structure"`
  1939. }
  1940. // String returns the string representation
  1941. func (s CreateSnapshotOutput) String() string {
  1942. return awsutil.Prettify(s)
  1943. }
  1944. // GoString returns the string representation
  1945. func (s CreateSnapshotOutput) GoString() string {
  1946. return s.String()
  1947. }
  1948. // A JSON object containing one or more of the following fields:
  1949. //
  1950. // CreateStorediSCSIVolumeInput$DiskId CreateStorediSCSIVolumeInput$NetworkInterfaceId
  1951. // CreateStorediSCSIVolumeInput$PreserveExistingData CreateStorediSCSIVolumeInput$SnapshotId
  1952. // CreateStorediSCSIVolumeInput$TargetName
  1953. type CreateStorediSCSIVolumeInput struct {
  1954. // The unique identifier for the gateway local disk that is configured as a
  1955. // stored volume. Use ListLocalDisks (http://docs.aws.amazon.com/storagegateway/latest/userguide/API_ListLocalDisks.html)
  1956. // to list disk IDs for a gateway.
  1957. DiskId *string `type:"string" required:"true"`
  1958. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  1959. // to return a list of gateways for your account and region.
  1960. GatewayARN *string `type:"string" required:"true"`
  1961. // The network interface of the gateway on which to expose the iSCSI target.
  1962. // Only IPv4 addresses are accepted. Use DescribeGatewayInformation to get a
  1963. // list of the network interfaces available on a gateway.
  1964. //
  1965. // Valid Values: A valid IP address.
  1966. NetworkInterfaceId *string `type:"string" required:"true"`
  1967. // Specify this field as true if you want to preserve the data on the local
  1968. // disk. Otherwise, specifying this field as false creates an empty volume.
  1969. //
  1970. // Valid Values: true, false
  1971. PreserveExistingData *bool `type:"boolean" required:"true"`
  1972. // The snapshot ID (e.g. "snap-1122aabb") of the snapshot to restore as the
  1973. // new stored volume. Specify this field if you want to create the iSCSI storage
  1974. // volume from a snapshot otherwise do not include this field. To list snapshots
  1975. // for your account use DescribeSnapshots (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSnapshots.html)
  1976. // in the Amazon Elastic Compute Cloud API Reference.
  1977. SnapshotId *string `type:"string"`
  1978. // The name of the iSCSI target used by initiators to connect to the target
  1979. // and as a suffix for the target ARN. For example, specifying TargetName as
  1980. // myvolume results in the target ARN of arn:aws:storagegateway:us-east-1:111122223333:gateway/mygateway/target/iqn.1997-05.com.amazon:myvolume.
  1981. // The target name must be unique across all volumes of a gateway.
  1982. TargetName *string `type:"string" required:"true"`
  1983. metadataCreateStorediSCSIVolumeInput `json:"-" xml:"-"`
  1984. }
  1985. type metadataCreateStorediSCSIVolumeInput struct {
  1986. SDKShapeTraits bool `type:"structure"`
  1987. }
  1988. // String returns the string representation
  1989. func (s CreateStorediSCSIVolumeInput) String() string {
  1990. return awsutil.Prettify(s)
  1991. }
  1992. // GoString returns the string representation
  1993. func (s CreateStorediSCSIVolumeInput) GoString() string {
  1994. return s.String()
  1995. }
  1996. // A JSON object containing the following fields:
  1997. type CreateStorediSCSIVolumeOutput struct {
  1998. // he Amazon Resource Name (ARN) of the volume target that includes the iSCSI
  1999. // name that initiators can use to connect to the target.
  2000. TargetARN *string `type:"string"`
  2001. // The Amazon Resource Name (ARN) of the configured volume.
  2002. VolumeARN *string `type:"string"`
  2003. // The size of the volume in bytes.
  2004. VolumeSizeInBytes *int64 `type:"long"`
  2005. metadataCreateStorediSCSIVolumeOutput `json:"-" xml:"-"`
  2006. }
  2007. type metadataCreateStorediSCSIVolumeOutput struct {
  2008. SDKShapeTraits bool `type:"structure"`
  2009. }
  2010. // String returns the string representation
  2011. func (s CreateStorediSCSIVolumeOutput) String() string {
  2012. return awsutil.Prettify(s)
  2013. }
  2014. // GoString returns the string representation
  2015. func (s CreateStorediSCSIVolumeOutput) GoString() string {
  2016. return s.String()
  2017. }
  2018. // CreateTapesInput
  2019. type CreateTapesInput struct {
  2020. // A unique identifier that you use to retry a request. If you retry a request,
  2021. // use the same ClientToken you specified in the initial request.
  2022. //
  2023. // Using the same ClientToken prevents creating the tape multiple times.
  2024. ClientToken *string `type:"string" required:"true"`
  2025. // The unique Amazon Resource Name(ARN) that represents the gateway to associate
  2026. // the virtual tapes with. Use the ListGateways operation to return a list of
  2027. // gateways for your account and region.
  2028. GatewayARN *string `type:"string" required:"true"`
  2029. // The number of virtual tapes you want to create.
  2030. NumTapesToCreate *int64 `type:"integer" required:"true"`
  2031. // A prefix you append to the barcode of the virtual tape you are creating.
  2032. // This makes a barcode unique.
  2033. //
  2034. // The prefix must be 1 to 4 characters in length and must be upper-case letters
  2035. // A-Z.
  2036. TapeBarcodePrefix *string `type:"string" required:"true"`
  2037. // The size, in bytes, of the virtual tapes you want to create.
  2038. //
  2039. // The size must be gigabyte (1024*1024*1024 byte) aligned.
  2040. TapeSizeInBytes *int64 `type:"long" required:"true"`
  2041. metadataCreateTapesInput `json:"-" xml:"-"`
  2042. }
  2043. type metadataCreateTapesInput struct {
  2044. SDKShapeTraits bool `type:"structure"`
  2045. }
  2046. // String returns the string representation
  2047. func (s CreateTapesInput) String() string {
  2048. return awsutil.Prettify(s)
  2049. }
  2050. // GoString returns the string representation
  2051. func (s CreateTapesInput) GoString() string {
  2052. return s.String()
  2053. }
  2054. // CreateTapeOutput
  2055. type CreateTapesOutput struct {
  2056. // A list of unique Amazon Resource Named (ARN) the represents the virtual tapes
  2057. // that were created.
  2058. TapeARNs []*string `type:"list"`
  2059. metadataCreateTapesOutput `json:"-" xml:"-"`
  2060. }
  2061. type metadataCreateTapesOutput struct {
  2062. SDKShapeTraits bool `type:"structure"`
  2063. }
  2064. // String returns the string representation
  2065. func (s CreateTapesOutput) String() string {
  2066. return awsutil.Prettify(s)
  2067. }
  2068. // GoString returns the string representation
  2069. func (s CreateTapesOutput) GoString() string {
  2070. return s.String()
  2071. }
  2072. type DeleteBandwidthRateLimitInput struct {
  2073. BandwidthType *string `type:"string" required:"true"`
  2074. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2075. // to return a list of gateways for your account and region.
  2076. GatewayARN *string `type:"string" required:"true"`
  2077. metadataDeleteBandwidthRateLimitInput `json:"-" xml:"-"`
  2078. }
  2079. type metadataDeleteBandwidthRateLimitInput struct {
  2080. SDKShapeTraits bool `type:"structure"`
  2081. }
  2082. // String returns the string representation
  2083. func (s DeleteBandwidthRateLimitInput) String() string {
  2084. return awsutil.Prettify(s)
  2085. }
  2086. // GoString returns the string representation
  2087. func (s DeleteBandwidthRateLimitInput) GoString() string {
  2088. return s.String()
  2089. }
  2090. // A JSON object containing the of the gateway whose bandwidth rate information
  2091. // was deleted.
  2092. type DeleteBandwidthRateLimitOutput struct {
  2093. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2094. // to return a list of gateways for your account and region.
  2095. GatewayARN *string `type:"string"`
  2096. metadataDeleteBandwidthRateLimitOutput `json:"-" xml:"-"`
  2097. }
  2098. type metadataDeleteBandwidthRateLimitOutput struct {
  2099. SDKShapeTraits bool `type:"structure"`
  2100. }
  2101. // String returns the string representation
  2102. func (s DeleteBandwidthRateLimitOutput) String() string {
  2103. return awsutil.Prettify(s)
  2104. }
  2105. // GoString returns the string representation
  2106. func (s DeleteBandwidthRateLimitOutput) GoString() string {
  2107. return s.String()
  2108. }
  2109. // A JSON object containing one or more of the following fields:
  2110. //
  2111. // DeleteChapCredentialsInput$InitiatorName DeleteChapCredentialsInput$TargetARN
  2112. type DeleteChapCredentialsInput struct {
  2113. // The iSCSI initiator that connects to the target.
  2114. InitiatorName *string `type:"string" required:"true"`
  2115. // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes
  2116. // operation to return to retrieve the TargetARN for specified VolumeARN.
  2117. TargetARN *string `type:"string" required:"true"`
  2118. metadataDeleteChapCredentialsInput `json:"-" xml:"-"`
  2119. }
  2120. type metadataDeleteChapCredentialsInput struct {
  2121. SDKShapeTraits bool `type:"structure"`
  2122. }
  2123. // String returns the string representation
  2124. func (s DeleteChapCredentialsInput) String() string {
  2125. return awsutil.Prettify(s)
  2126. }
  2127. // GoString returns the string representation
  2128. func (s DeleteChapCredentialsInput) GoString() string {
  2129. return s.String()
  2130. }
  2131. // A JSON object containing the following fields:
  2132. type DeleteChapCredentialsOutput struct {
  2133. // The iSCSI initiator that connects to the target.
  2134. InitiatorName *string `type:"string"`
  2135. // The Amazon Resource Name (ARN) of the target.
  2136. TargetARN *string `type:"string"`
  2137. metadataDeleteChapCredentialsOutput `json:"-" xml:"-"`
  2138. }
  2139. type metadataDeleteChapCredentialsOutput struct {
  2140. SDKShapeTraits bool `type:"structure"`
  2141. }
  2142. // String returns the string representation
  2143. func (s DeleteChapCredentialsOutput) String() string {
  2144. return awsutil.Prettify(s)
  2145. }
  2146. // GoString returns the string representation
  2147. func (s DeleteChapCredentialsOutput) GoString() string {
  2148. return s.String()
  2149. }
  2150. // A JSON object containing the id of the gateway to delete.
  2151. type DeleteGatewayInput struct {
  2152. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2153. // to return a list of gateways for your account and region.
  2154. GatewayARN *string `type:"string" required:"true"`
  2155. metadataDeleteGatewayInput `json:"-" xml:"-"`
  2156. }
  2157. type metadataDeleteGatewayInput struct {
  2158. SDKShapeTraits bool `type:"structure"`
  2159. }
  2160. // String returns the string representation
  2161. func (s DeleteGatewayInput) String() string {
  2162. return awsutil.Prettify(s)
  2163. }
  2164. // GoString returns the string representation
  2165. func (s DeleteGatewayInput) GoString() string {
  2166. return s.String()
  2167. }
  2168. // A JSON object containing the id of the deleted gateway.
  2169. type DeleteGatewayOutput struct {
  2170. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2171. // to return a list of gateways for your account and region.
  2172. GatewayARN *string `type:"string"`
  2173. metadataDeleteGatewayOutput `json:"-" xml:"-"`
  2174. }
  2175. type metadataDeleteGatewayOutput struct {
  2176. SDKShapeTraits bool `type:"structure"`
  2177. }
  2178. // String returns the string representation
  2179. func (s DeleteGatewayOutput) String() string {
  2180. return awsutil.Prettify(s)
  2181. }
  2182. // GoString returns the string representation
  2183. func (s DeleteGatewayOutput) GoString() string {
  2184. return s.String()
  2185. }
  2186. type DeleteSnapshotScheduleInput struct {
  2187. VolumeARN *string `type:"string" required:"true"`
  2188. metadataDeleteSnapshotScheduleInput `json:"-" xml:"-"`
  2189. }
  2190. type metadataDeleteSnapshotScheduleInput struct {
  2191. SDKShapeTraits bool `type:"structure"`
  2192. }
  2193. // String returns the string representation
  2194. func (s DeleteSnapshotScheduleInput) String() string {
  2195. return awsutil.Prettify(s)
  2196. }
  2197. // GoString returns the string representation
  2198. func (s DeleteSnapshotScheduleInput) GoString() string {
  2199. return s.String()
  2200. }
  2201. type DeleteSnapshotScheduleOutput struct {
  2202. VolumeARN *string `type:"string"`
  2203. metadataDeleteSnapshotScheduleOutput `json:"-" xml:"-"`
  2204. }
  2205. type metadataDeleteSnapshotScheduleOutput struct {
  2206. SDKShapeTraits bool `type:"structure"`
  2207. }
  2208. // String returns the string representation
  2209. func (s DeleteSnapshotScheduleOutput) String() string {
  2210. return awsutil.Prettify(s)
  2211. }
  2212. // GoString returns the string representation
  2213. func (s DeleteSnapshotScheduleOutput) GoString() string {
  2214. return s.String()
  2215. }
  2216. // DeleteTapeArchiveInput
  2217. type DeleteTapeArchiveInput struct {
  2218. // The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual
  2219. // tape shelf (VTS).
  2220. TapeARN *string `type:"string" required:"true"`
  2221. metadataDeleteTapeArchiveInput `json:"-" xml:"-"`
  2222. }
  2223. type metadataDeleteTapeArchiveInput struct {
  2224. SDKShapeTraits bool `type:"structure"`
  2225. }
  2226. // String returns the string representation
  2227. func (s DeleteTapeArchiveInput) String() string {
  2228. return awsutil.Prettify(s)
  2229. }
  2230. // GoString returns the string representation
  2231. func (s DeleteTapeArchiveInput) GoString() string {
  2232. return s.String()
  2233. }
  2234. // DeleteTapeArchiveOutput
  2235. type DeleteTapeArchiveOutput struct {
  2236. // The Amazon Resource Name (ARN) of the virtual tape that was deleted from
  2237. // the virtual tape shelf (VTS).
  2238. TapeARN *string `type:"string"`
  2239. metadataDeleteTapeArchiveOutput `json:"-" xml:"-"`
  2240. }
  2241. type metadataDeleteTapeArchiveOutput struct {
  2242. SDKShapeTraits bool `type:"structure"`
  2243. }
  2244. // String returns the string representation
  2245. func (s DeleteTapeArchiveOutput) String() string {
  2246. return awsutil.Prettify(s)
  2247. }
  2248. // GoString returns the string representation
  2249. func (s DeleteTapeArchiveOutput) GoString() string {
  2250. return s.String()
  2251. }
  2252. // DeleteTapeInput
  2253. type DeleteTapeInput struct {
  2254. // The unique Amazon Resource Name (ARN) of the gateway that the virtual tape
  2255. // to delete is associated with. Use the ListGateways operation to return a
  2256. // list of gateways for your account and region.
  2257. GatewayARN *string `type:"string" required:"true"`
  2258. // The Amazon Resource Name (ARN) of the virtual tape to delete.
  2259. TapeARN *string `type:"string" required:"true"`
  2260. metadataDeleteTapeInput `json:"-" xml:"-"`
  2261. }
  2262. type metadataDeleteTapeInput struct {
  2263. SDKShapeTraits bool `type:"structure"`
  2264. }
  2265. // String returns the string representation
  2266. func (s DeleteTapeInput) String() string {
  2267. return awsutil.Prettify(s)
  2268. }
  2269. // GoString returns the string representation
  2270. func (s DeleteTapeInput) GoString() string {
  2271. return s.String()
  2272. }
  2273. // DeleteTapeOutput
  2274. type DeleteTapeOutput struct {
  2275. // The Amazon Resource Name (ARN) of the deleted virtual tape.
  2276. TapeARN *string `type:"string"`
  2277. metadataDeleteTapeOutput `json:"-" xml:"-"`
  2278. }
  2279. type metadataDeleteTapeOutput struct {
  2280. SDKShapeTraits bool `type:"structure"`
  2281. }
  2282. // String returns the string representation
  2283. func (s DeleteTapeOutput) String() string {
  2284. return awsutil.Prettify(s)
  2285. }
  2286. // GoString returns the string representation
  2287. func (s DeleteTapeOutput) GoString() string {
  2288. return s.String()
  2289. }
  2290. // A JSON object containing the DeleteVolumeInput$VolumeARN to delete.
  2291. type DeleteVolumeInput struct {
  2292. // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
  2293. // to return a list of gateway volumes.
  2294. VolumeARN *string `type:"string" required:"true"`
  2295. metadataDeleteVolumeInput `json:"-" xml:"-"`
  2296. }
  2297. type metadataDeleteVolumeInput struct {
  2298. SDKShapeTraits bool `type:"structure"`
  2299. }
  2300. // String returns the string representation
  2301. func (s DeleteVolumeInput) String() string {
  2302. return awsutil.Prettify(s)
  2303. }
  2304. // GoString returns the string representation
  2305. func (s DeleteVolumeInput) GoString() string {
  2306. return s.String()
  2307. }
  2308. // A JSON object containing the of the storage volume that was deleted
  2309. type DeleteVolumeOutput struct {
  2310. // The Amazon Resource Name (ARN) of the storage volume that was deleted. It
  2311. // is the same ARN you provided in the request.
  2312. VolumeARN *string `type:"string"`
  2313. metadataDeleteVolumeOutput `json:"-" xml:"-"`
  2314. }
  2315. type metadataDeleteVolumeOutput struct {
  2316. SDKShapeTraits bool `type:"structure"`
  2317. }
  2318. // String returns the string representation
  2319. func (s DeleteVolumeOutput) String() string {
  2320. return awsutil.Prettify(s)
  2321. }
  2322. // GoString returns the string representation
  2323. func (s DeleteVolumeOutput) GoString() string {
  2324. return s.String()
  2325. }
  2326. // A JSON object containing the of the gateway.
  2327. type DescribeBandwidthRateLimitInput struct {
  2328. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2329. // to return a list of gateways for your account and region.
  2330. GatewayARN *string `type:"string" required:"true"`
  2331. metadataDescribeBandwidthRateLimitInput `json:"-" xml:"-"`
  2332. }
  2333. type metadataDescribeBandwidthRateLimitInput struct {
  2334. SDKShapeTraits bool `type:"structure"`
  2335. }
  2336. // String returns the string representation
  2337. func (s DescribeBandwidthRateLimitInput) String() string {
  2338. return awsutil.Prettify(s)
  2339. }
  2340. // GoString returns the string representation
  2341. func (s DescribeBandwidthRateLimitInput) GoString() string {
  2342. return s.String()
  2343. }
  2344. // A JSON object containing the following fields:
  2345. type DescribeBandwidthRateLimitOutput struct {
  2346. // The average download bandwidth rate limit in bits per second. This field
  2347. // does not appear in the response if the download rate limit is not set.
  2348. AverageDownloadRateLimitInBitsPerSec *int64 `type:"long"`
  2349. // The average upload bandwidth rate limit in bits per second. This field does
  2350. // not appear in the response if the upload rate limit is not set.
  2351. AverageUploadRateLimitInBitsPerSec *int64 `type:"long"`
  2352. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2353. // to return a list of gateways for your account and region.
  2354. GatewayARN *string `type:"string"`
  2355. metadataDescribeBandwidthRateLimitOutput `json:"-" xml:"-"`
  2356. }
  2357. type metadataDescribeBandwidthRateLimitOutput struct {
  2358. SDKShapeTraits bool `type:"structure"`
  2359. }
  2360. // String returns the string representation
  2361. func (s DescribeBandwidthRateLimitOutput) String() string {
  2362. return awsutil.Prettify(s)
  2363. }
  2364. // GoString returns the string representation
  2365. func (s DescribeBandwidthRateLimitOutput) GoString() string {
  2366. return s.String()
  2367. }
  2368. type DescribeCacheInput struct {
  2369. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2370. // to return a list of gateways for your account and region.
  2371. GatewayARN *string `type:"string" required:"true"`
  2372. metadataDescribeCacheInput `json:"-" xml:"-"`
  2373. }
  2374. type metadataDescribeCacheInput struct {
  2375. SDKShapeTraits bool `type:"structure"`
  2376. }
  2377. // String returns the string representation
  2378. func (s DescribeCacheInput) String() string {
  2379. return awsutil.Prettify(s)
  2380. }
  2381. // GoString returns the string representation
  2382. func (s DescribeCacheInput) GoString() string {
  2383. return s.String()
  2384. }
  2385. type DescribeCacheOutput struct {
  2386. CacheAllocatedInBytes *int64 `type:"long"`
  2387. CacheDirtyPercentage *float64 `type:"double"`
  2388. CacheHitPercentage *float64 `type:"double"`
  2389. CacheMissPercentage *float64 `type:"double"`
  2390. CacheUsedPercentage *float64 `type:"double"`
  2391. DiskIds []*string `type:"list"`
  2392. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2393. // to return a list of gateways for your account and region.
  2394. GatewayARN *string `type:"string"`
  2395. metadataDescribeCacheOutput `json:"-" xml:"-"`
  2396. }
  2397. type metadataDescribeCacheOutput struct {
  2398. SDKShapeTraits bool `type:"structure"`
  2399. }
  2400. // String returns the string representation
  2401. func (s DescribeCacheOutput) String() string {
  2402. return awsutil.Prettify(s)
  2403. }
  2404. // GoString returns the string representation
  2405. func (s DescribeCacheOutput) GoString() string {
  2406. return s.String()
  2407. }
  2408. type DescribeCachediSCSIVolumesInput struct {
  2409. VolumeARNs []*string `type:"list" required:"true"`
  2410. metadataDescribeCachediSCSIVolumesInput `json:"-" xml:"-"`
  2411. }
  2412. type metadataDescribeCachediSCSIVolumesInput struct {
  2413. SDKShapeTraits bool `type:"structure"`
  2414. }
  2415. // String returns the string representation
  2416. func (s DescribeCachediSCSIVolumesInput) String() string {
  2417. return awsutil.Prettify(s)
  2418. }
  2419. // GoString returns the string representation
  2420. func (s DescribeCachediSCSIVolumesInput) GoString() string {
  2421. return s.String()
  2422. }
  2423. // A JSON object containing the following fields:
  2424. type DescribeCachediSCSIVolumesOutput struct {
  2425. // An array of objects where each object contains metadata about one cached
  2426. // volume.
  2427. CachediSCSIVolumes []*CachediSCSIVolume `type:"list"`
  2428. metadataDescribeCachediSCSIVolumesOutput `json:"-" xml:"-"`
  2429. }
  2430. type metadataDescribeCachediSCSIVolumesOutput struct {
  2431. SDKShapeTraits bool `type:"structure"`
  2432. }
  2433. // String returns the string representation
  2434. func (s DescribeCachediSCSIVolumesOutput) String() string {
  2435. return awsutil.Prettify(s)
  2436. }
  2437. // GoString returns the string representation
  2438. func (s DescribeCachediSCSIVolumesOutput) GoString() string {
  2439. return s.String()
  2440. }
  2441. // A JSON object containing the Amazon Resource Name (ARN) of the iSCSI volume
  2442. // target.
  2443. type DescribeChapCredentialsInput struct {
  2444. // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes
  2445. // operation to return to retrieve the TargetARN for specified VolumeARN.
  2446. TargetARN *string `type:"string" required:"true"`
  2447. metadataDescribeChapCredentialsInput `json:"-" xml:"-"`
  2448. }
  2449. type metadataDescribeChapCredentialsInput struct {
  2450. SDKShapeTraits bool `type:"structure"`
  2451. }
  2452. // String returns the string representation
  2453. func (s DescribeChapCredentialsInput) String() string {
  2454. return awsutil.Prettify(s)
  2455. }
  2456. // GoString returns the string representation
  2457. func (s DescribeChapCredentialsInput) GoString() string {
  2458. return s.String()
  2459. }
  2460. // A JSON object containing a .
  2461. type DescribeChapCredentialsOutput struct {
  2462. // An array of ChapInfo objects that represent CHAP credentials. Each object
  2463. // in the array contains CHAP credential information for one target-initiator
  2464. // pair. If no CHAP credentials are set, an empty array is returned. CHAP credential
  2465. // information is provided in a JSON object with the following fields:
  2466. //
  2467. // InitiatorName: The iSCSI initiator that connects to the target.
  2468. //
  2469. // SecretToAuthenticateInitiator: The secret key that the initiator (for
  2470. // example, the Windows client) must provide to participate in mutual CHAP with
  2471. // the target.
  2472. //
  2473. // SecretToAuthenticateTarget: The secret key that the target must provide
  2474. // to participate in mutual CHAP with the initiator (e.g. Windows client).
  2475. //
  2476. // TargetARN: The Amazon Resource Name (ARN) of the storage volume.
  2477. ChapCredentials []*ChapInfo `type:"list"`
  2478. metadataDescribeChapCredentialsOutput `json:"-" xml:"-"`
  2479. }
  2480. type metadataDescribeChapCredentialsOutput struct {
  2481. SDKShapeTraits bool `type:"structure"`
  2482. }
  2483. // String returns the string representation
  2484. func (s DescribeChapCredentialsOutput) String() string {
  2485. return awsutil.Prettify(s)
  2486. }
  2487. // GoString returns the string representation
  2488. func (s DescribeChapCredentialsOutput) GoString() string {
  2489. return s.String()
  2490. }
  2491. // A JSON object containing the id of the gateway.
  2492. type DescribeGatewayInformationInput struct {
  2493. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2494. // to return a list of gateways for your account and region.
  2495. GatewayARN *string `type:"string" required:"true"`
  2496. metadataDescribeGatewayInformationInput `json:"-" xml:"-"`
  2497. }
  2498. type metadataDescribeGatewayInformationInput struct {
  2499. SDKShapeTraits bool `type:"structure"`
  2500. }
  2501. // String returns the string representation
  2502. func (s DescribeGatewayInformationInput) String() string {
  2503. return awsutil.Prettify(s)
  2504. }
  2505. // GoString returns the string representation
  2506. func (s DescribeGatewayInformationInput) GoString() string {
  2507. return s.String()
  2508. }
  2509. // A JSON object containing the following fields:
  2510. type DescribeGatewayInformationOutput struct {
  2511. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2512. // to return a list of gateways for your account and region.
  2513. GatewayARN *string `type:"string"`
  2514. // The gateway ID.
  2515. GatewayId *string `type:"string"`
  2516. // A NetworkInterface array that contains descriptions of the gateway network
  2517. // interfaces.
  2518. GatewayNetworkInterfaces []*NetworkInterface `type:"list"`
  2519. // One of the values that indicates the operating state of the gateway.
  2520. GatewayState *string `type:"string"`
  2521. // One of the values that indicates the time zone configured for the gateway.
  2522. GatewayTimezone *string `type:"string"`
  2523. // The type of the gateway.
  2524. GatewayType *string `type:"string"`
  2525. // The date on which the last software update was applied to the gateway. If
  2526. // the gateway has never been updated, this field does not return a value in
  2527. // the response.
  2528. LastSoftwareUpdate *string `type:"string"`
  2529. // The date on which an update to the gateway is available. This date is in
  2530. // the time zone of the gateway. If the gateway is not available for an update
  2531. // this field is not returned in the response.
  2532. NextUpdateAvailabilityDate *string `type:"string"`
  2533. metadataDescribeGatewayInformationOutput `json:"-" xml:"-"`
  2534. }
  2535. type metadataDescribeGatewayInformationOutput struct {
  2536. SDKShapeTraits bool `type:"structure"`
  2537. }
  2538. // String returns the string representation
  2539. func (s DescribeGatewayInformationOutput) String() string {
  2540. return awsutil.Prettify(s)
  2541. }
  2542. // GoString returns the string representation
  2543. func (s DescribeGatewayInformationOutput) GoString() string {
  2544. return s.String()
  2545. }
  2546. // A JSON object containing the of the gateway.
  2547. type DescribeMaintenanceStartTimeInput struct {
  2548. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2549. // to return a list of gateways for your account and region.
  2550. GatewayARN *string `type:"string" required:"true"`
  2551. metadataDescribeMaintenanceStartTimeInput `json:"-" xml:"-"`
  2552. }
  2553. type metadataDescribeMaintenanceStartTimeInput struct {
  2554. SDKShapeTraits bool `type:"structure"`
  2555. }
  2556. // String returns the string representation
  2557. func (s DescribeMaintenanceStartTimeInput) String() string {
  2558. return awsutil.Prettify(s)
  2559. }
  2560. // GoString returns the string representation
  2561. func (s DescribeMaintenanceStartTimeInput) GoString() string {
  2562. return s.String()
  2563. }
  2564. type DescribeMaintenanceStartTimeOutput struct {
  2565. DayOfWeek *int64 `type:"integer"`
  2566. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2567. // to return a list of gateways for your account and region.
  2568. GatewayARN *string `type:"string"`
  2569. HourOfDay *int64 `type:"integer"`
  2570. MinuteOfHour *int64 `type:"integer"`
  2571. Timezone *string `type:"string"`
  2572. metadataDescribeMaintenanceStartTimeOutput `json:"-" xml:"-"`
  2573. }
  2574. type metadataDescribeMaintenanceStartTimeOutput struct {
  2575. SDKShapeTraits bool `type:"structure"`
  2576. }
  2577. // String returns the string representation
  2578. func (s DescribeMaintenanceStartTimeOutput) String() string {
  2579. return awsutil.Prettify(s)
  2580. }
  2581. // GoString returns the string representation
  2582. func (s DescribeMaintenanceStartTimeOutput) GoString() string {
  2583. return s.String()
  2584. }
  2585. // A JSON object containing the DescribeSnapshotScheduleInput$VolumeARN of the
  2586. // volume.
  2587. type DescribeSnapshotScheduleInput struct {
  2588. // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
  2589. // to return a list of gateway volumes.
  2590. VolumeARN *string `type:"string" required:"true"`
  2591. metadataDescribeSnapshotScheduleInput `json:"-" xml:"-"`
  2592. }
  2593. type metadataDescribeSnapshotScheduleInput struct {
  2594. SDKShapeTraits bool `type:"structure"`
  2595. }
  2596. // String returns the string representation
  2597. func (s DescribeSnapshotScheduleInput) String() string {
  2598. return awsutil.Prettify(s)
  2599. }
  2600. // GoString returns the string representation
  2601. func (s DescribeSnapshotScheduleInput) GoString() string {
  2602. return s.String()
  2603. }
  2604. type DescribeSnapshotScheduleOutput struct {
  2605. Description *string `type:"string"`
  2606. RecurrenceInHours *int64 `type:"integer"`
  2607. StartAt *int64 `type:"integer"`
  2608. Timezone *string `type:"string"`
  2609. VolumeARN *string `type:"string"`
  2610. metadataDescribeSnapshotScheduleOutput `json:"-" xml:"-"`
  2611. }
  2612. type metadataDescribeSnapshotScheduleOutput struct {
  2613. SDKShapeTraits bool `type:"structure"`
  2614. }
  2615. // String returns the string representation
  2616. func (s DescribeSnapshotScheduleOutput) String() string {
  2617. return awsutil.Prettify(s)
  2618. }
  2619. // GoString returns the string representation
  2620. func (s DescribeSnapshotScheduleOutput) GoString() string {
  2621. return s.String()
  2622. }
  2623. // A JSON Object containing a list of DescribeStorediSCSIVolumesInput$VolumeARNs.
  2624. type DescribeStorediSCSIVolumesInput struct {
  2625. // An array of strings where each string represents the Amazon Resource Name
  2626. // (ARN) of a stored volume. All of the specified stored volumes must from the
  2627. // same gateway. Use ListVolumes to get volume ARNs for a gateway.
  2628. VolumeARNs []*string `type:"list" required:"true"`
  2629. metadataDescribeStorediSCSIVolumesInput `json:"-" xml:"-"`
  2630. }
  2631. type metadataDescribeStorediSCSIVolumesInput struct {
  2632. SDKShapeTraits bool `type:"structure"`
  2633. }
  2634. // String returns the string representation
  2635. func (s DescribeStorediSCSIVolumesInput) String() string {
  2636. return awsutil.Prettify(s)
  2637. }
  2638. // GoString returns the string representation
  2639. func (s DescribeStorediSCSIVolumesInput) GoString() string {
  2640. return s.String()
  2641. }
  2642. type DescribeStorediSCSIVolumesOutput struct {
  2643. StorediSCSIVolumes []*StorediSCSIVolume `type:"list"`
  2644. metadataDescribeStorediSCSIVolumesOutput `json:"-" xml:"-"`
  2645. }
  2646. type metadataDescribeStorediSCSIVolumesOutput struct {
  2647. SDKShapeTraits bool `type:"structure"`
  2648. }
  2649. // String returns the string representation
  2650. func (s DescribeStorediSCSIVolumesOutput) String() string {
  2651. return awsutil.Prettify(s)
  2652. }
  2653. // GoString returns the string representation
  2654. func (s DescribeStorediSCSIVolumesOutput) GoString() string {
  2655. return s.String()
  2656. }
  2657. // DescribeTapeArchivesInput
  2658. type DescribeTapeArchivesInput struct {
  2659. // Specifies that the number of virtual tapes descried be limited to the specified
  2660. // number.
  2661. Limit *int64 `type:"integer"`
  2662. // An opaque string that indicates the position at which to begin describing
  2663. // virtual tapes.
  2664. Marker *string `type:"string"`
  2665. // Specifies one or more unique Amazon Resource Names (ARNs) that represent
  2666. // the virtual tapes you want to describe.
  2667. TapeARNs []*string `type:"list"`
  2668. metadataDescribeTapeArchivesInput `json:"-" xml:"-"`
  2669. }
  2670. type metadataDescribeTapeArchivesInput struct {
  2671. SDKShapeTraits bool `type:"structure"`
  2672. }
  2673. // String returns the string representation
  2674. func (s DescribeTapeArchivesInput) String() string {
  2675. return awsutil.Prettify(s)
  2676. }
  2677. // GoString returns the string representation
  2678. func (s DescribeTapeArchivesInput) GoString() string {
  2679. return s.String()
  2680. }
  2681. // DescribeTapeArchivesOutput
  2682. type DescribeTapeArchivesOutput struct {
  2683. // An opaque string that indicates the position at which the virtual tapes that
  2684. // were fetched for description ended. Use this marker in your next request
  2685. // to fetch the next set of virtual tapes in the virtual tape shelf (VTS). If
  2686. // there are no more virtual tapes to describe, this field does not appear in
  2687. // the response.
  2688. Marker *string `type:"string"`
  2689. // An array of virtual tape objects in the virtual tape shelf (VTS). The description
  2690. // includes of the Amazon Resource Name(ARN) of the virtual tapes. The information
  2691. // returned includes the Amazon Resource Names (ARNs) of the tapes, size of
  2692. // the tapes, status of the tapes, progress of the description and tape barcode.
  2693. TapeArchives []*TapeArchive `type:"list"`
  2694. metadataDescribeTapeArchivesOutput `json:"-" xml:"-"`
  2695. }
  2696. type metadataDescribeTapeArchivesOutput struct {
  2697. SDKShapeTraits bool `type:"structure"`
  2698. }
  2699. // String returns the string representation
  2700. func (s DescribeTapeArchivesOutput) String() string {
  2701. return awsutil.Prettify(s)
  2702. }
  2703. // GoString returns the string representation
  2704. func (s DescribeTapeArchivesOutput) GoString() string {
  2705. return s.String()
  2706. }
  2707. // DescribeTapeRecoveryPointsInput
  2708. type DescribeTapeRecoveryPointsInput struct {
  2709. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2710. // to return a list of gateways for your account and region.
  2711. GatewayARN *string `type:"string" required:"true"`
  2712. // Specifies that the number of virtual tape recovery points that are described
  2713. // be limited to the specified number.
  2714. Limit *int64 `type:"integer"`
  2715. // An opaque string that indicates the position at which to begin describing
  2716. // the virtual tape recovery points.
  2717. Marker *string `type:"string"`
  2718. metadataDescribeTapeRecoveryPointsInput `json:"-" xml:"-"`
  2719. }
  2720. type metadataDescribeTapeRecoveryPointsInput struct {
  2721. SDKShapeTraits bool `type:"structure"`
  2722. }
  2723. // String returns the string representation
  2724. func (s DescribeTapeRecoveryPointsInput) String() string {
  2725. return awsutil.Prettify(s)
  2726. }
  2727. // GoString returns the string representation
  2728. func (s DescribeTapeRecoveryPointsInput) GoString() string {
  2729. return s.String()
  2730. }
  2731. // DescribeTapeRecoveryPointsOutput
  2732. type DescribeTapeRecoveryPointsOutput struct {
  2733. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2734. // to return a list of gateways for your account and region.
  2735. GatewayARN *string `type:"string"`
  2736. // An opaque string that indicates the position at which the virtual tape recovery
  2737. // points that were listed for description ended.
  2738. //
  2739. // Use this marker in your next request to list the next set of virtual tape
  2740. // recovery points in the list. If there are no more recovery points to describe,
  2741. // this field does not appear in the response.
  2742. Marker *string `type:"string"`
  2743. // An array of TapeRecoveryPointInfos that are available for the specified gateway.
  2744. TapeRecoveryPointInfos []*TapeRecoveryPointInfo `type:"list"`
  2745. metadataDescribeTapeRecoveryPointsOutput `json:"-" xml:"-"`
  2746. }
  2747. type metadataDescribeTapeRecoveryPointsOutput struct {
  2748. SDKShapeTraits bool `type:"structure"`
  2749. }
  2750. // String returns the string representation
  2751. func (s DescribeTapeRecoveryPointsOutput) String() string {
  2752. return awsutil.Prettify(s)
  2753. }
  2754. // GoString returns the string representation
  2755. func (s DescribeTapeRecoveryPointsOutput) GoString() string {
  2756. return s.String()
  2757. }
  2758. // DescribeTapesInput
  2759. type DescribeTapesInput struct {
  2760. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2761. // to return a list of gateways for your account and region.
  2762. GatewayARN *string `type:"string" required:"true"`
  2763. // Specifies that the number of virtual tapes described be limited to the specified
  2764. // number.
  2765. //
  2766. // Amazon Web Services may impose its own limit, if this field is not set.
  2767. Limit *int64 `type:"integer"`
  2768. // A marker value, obtained in a previous call to DescribeTapes. This marker
  2769. // indicates which page of results to retrieve.
  2770. //
  2771. // If not specified, the first page of results is retrieved.
  2772. Marker *string `type:"string"`
  2773. // Specifies one or more unique Amazon Resource Names (ARNs) that represent
  2774. // the virtual tapes you want to describe. If this parameter is not specified,
  2775. // AWS Storage Gateway returns a description of all virtual tapes associated
  2776. // with the specified gateway.
  2777. TapeARNs []*string `type:"list"`
  2778. metadataDescribeTapesInput `json:"-" xml:"-"`
  2779. }
  2780. type metadataDescribeTapesInput struct {
  2781. SDKShapeTraits bool `type:"structure"`
  2782. }
  2783. // String returns the string representation
  2784. func (s DescribeTapesInput) String() string {
  2785. return awsutil.Prettify(s)
  2786. }
  2787. // GoString returns the string representation
  2788. func (s DescribeTapesInput) GoString() string {
  2789. return s.String()
  2790. }
  2791. // DescribeTapesOutput
  2792. type DescribeTapesOutput struct {
  2793. // An opaque string which can be used as part of a subsequent DescribeTapes
  2794. // call to retrieve the next page of results.
  2795. //
  2796. // If a response does not contain a marker, then there are no more results
  2797. // to be retrieved.
  2798. Marker *string `type:"string"`
  2799. // An array of virtual tape descriptions.
  2800. Tapes []*Tape `type:"list"`
  2801. metadataDescribeTapesOutput `json:"-" xml:"-"`
  2802. }
  2803. type metadataDescribeTapesOutput struct {
  2804. SDKShapeTraits bool `type:"structure"`
  2805. }
  2806. // String returns the string representation
  2807. func (s DescribeTapesOutput) String() string {
  2808. return awsutil.Prettify(s)
  2809. }
  2810. // GoString returns the string representation
  2811. func (s DescribeTapesOutput) GoString() string {
  2812. return s.String()
  2813. }
  2814. type DescribeUploadBufferInput struct {
  2815. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2816. // to return a list of gateways for your account and region.
  2817. GatewayARN *string `type:"string" required:"true"`
  2818. metadataDescribeUploadBufferInput `json:"-" xml:"-"`
  2819. }
  2820. type metadataDescribeUploadBufferInput struct {
  2821. SDKShapeTraits bool `type:"structure"`
  2822. }
  2823. // String returns the string representation
  2824. func (s DescribeUploadBufferInput) String() string {
  2825. return awsutil.Prettify(s)
  2826. }
  2827. // GoString returns the string representation
  2828. func (s DescribeUploadBufferInput) GoString() string {
  2829. return s.String()
  2830. }
  2831. type DescribeUploadBufferOutput struct {
  2832. DiskIds []*string `type:"list"`
  2833. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2834. // to return a list of gateways for your account and region.
  2835. GatewayARN *string `type:"string"`
  2836. UploadBufferAllocatedInBytes *int64 `type:"long"`
  2837. UploadBufferUsedInBytes *int64 `type:"long"`
  2838. metadataDescribeUploadBufferOutput `json:"-" xml:"-"`
  2839. }
  2840. type metadataDescribeUploadBufferOutput struct {
  2841. SDKShapeTraits bool `type:"structure"`
  2842. }
  2843. // String returns the string representation
  2844. func (s DescribeUploadBufferOutput) String() string {
  2845. return awsutil.Prettify(s)
  2846. }
  2847. // GoString returns the string representation
  2848. func (s DescribeUploadBufferOutput) GoString() string {
  2849. return s.String()
  2850. }
  2851. // DescribeVTLDevicesInput
  2852. type DescribeVTLDevicesInput struct {
  2853. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2854. // to return a list of gateways for your account and region.
  2855. GatewayARN *string `type:"string" required:"true"`
  2856. // Specifies that the number of VTL devices described be limited to the specified
  2857. // number.
  2858. Limit *int64 `type:"integer"`
  2859. // An opaque string that indicates the position at which to begin describing
  2860. // the VTL devices.
  2861. Marker *string `type:"string"`
  2862. // An array of strings, where each string represents the Amazon Resource Name
  2863. // (ARN) of a VTL device.
  2864. //
  2865. // All of the specified VTL devices must be from the same gateway. If no VTL
  2866. // devices are specified, the result will contain all devices on the specified
  2867. // gateway.
  2868. VTLDeviceARNs []*string `type:"list"`
  2869. metadataDescribeVTLDevicesInput `json:"-" xml:"-"`
  2870. }
  2871. type metadataDescribeVTLDevicesInput struct {
  2872. SDKShapeTraits bool `type:"structure"`
  2873. }
  2874. // String returns the string representation
  2875. func (s DescribeVTLDevicesInput) String() string {
  2876. return awsutil.Prettify(s)
  2877. }
  2878. // GoString returns the string representation
  2879. func (s DescribeVTLDevicesInput) GoString() string {
  2880. return s.String()
  2881. }
  2882. // DescribeVTLDevicesOutput
  2883. type DescribeVTLDevicesOutput struct {
  2884. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2885. // to return a list of gateways for your account and region.
  2886. GatewayARN *string `type:"string"`
  2887. // An opaque string that indicates the position at which the VTL devices that
  2888. // were fetched for description ended. Use the marker in your next request to
  2889. // fetch the next set of VTL devices in the list. If there are no more VTL devices
  2890. // to describe, this field does not appear in the response.
  2891. Marker *string `type:"string"`
  2892. // An array of VTL device objects composed of the Amazon Resource Name(ARN)
  2893. // of the VTL devices.
  2894. VTLDevices []*VTLDevice `type:"list"`
  2895. metadataDescribeVTLDevicesOutput `json:"-" xml:"-"`
  2896. }
  2897. type metadataDescribeVTLDevicesOutput struct {
  2898. SDKShapeTraits bool `type:"structure"`
  2899. }
  2900. // String returns the string representation
  2901. func (s DescribeVTLDevicesOutput) String() string {
  2902. return awsutil.Prettify(s)
  2903. }
  2904. // GoString returns the string representation
  2905. func (s DescribeVTLDevicesOutput) GoString() string {
  2906. return s.String()
  2907. }
  2908. // A JSON object containing the of the gateway.
  2909. type DescribeWorkingStorageInput struct {
  2910. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2911. // to return a list of gateways for your account and region.
  2912. GatewayARN *string `type:"string" required:"true"`
  2913. metadataDescribeWorkingStorageInput `json:"-" xml:"-"`
  2914. }
  2915. type metadataDescribeWorkingStorageInput struct {
  2916. SDKShapeTraits bool `type:"structure"`
  2917. }
  2918. // String returns the string representation
  2919. func (s DescribeWorkingStorageInput) String() string {
  2920. return awsutil.Prettify(s)
  2921. }
  2922. // GoString returns the string representation
  2923. func (s DescribeWorkingStorageInput) GoString() string {
  2924. return s.String()
  2925. }
  2926. // A JSON object containing the following fields:
  2927. type DescribeWorkingStorageOutput struct {
  2928. // An array of the gateway's local disk IDs that are configured as working storage.
  2929. // Each local disk ID is specified as a string (minimum length of 1 and maximum
  2930. // length of 300). If no local disks are configured as working storage, then
  2931. // the DiskIds array is empty.
  2932. DiskIds []*string `type:"list"`
  2933. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2934. // to return a list of gateways for your account and region.
  2935. GatewayARN *string `type:"string"`
  2936. // The total working storage in bytes allocated for the gateway. If no working
  2937. // storage is configured for the gateway, this field returns 0.
  2938. WorkingStorageAllocatedInBytes *int64 `type:"long"`
  2939. // The total working storage in bytes in use by the gateway. If no working storage
  2940. // is configured for the gateway, this field returns 0.
  2941. WorkingStorageUsedInBytes *int64 `type:"long"`
  2942. metadataDescribeWorkingStorageOutput `json:"-" xml:"-"`
  2943. }
  2944. type metadataDescribeWorkingStorageOutput struct {
  2945. SDKShapeTraits bool `type:"structure"`
  2946. }
  2947. // String returns the string representation
  2948. func (s DescribeWorkingStorageOutput) String() string {
  2949. return awsutil.Prettify(s)
  2950. }
  2951. // GoString returns the string representation
  2952. func (s DescribeWorkingStorageOutput) GoString() string {
  2953. return s.String()
  2954. }
  2955. // Lists iSCSI information about a VTL device.
  2956. type DeviceiSCSIAttributes struct {
  2957. // Indicates whether mutual CHAP is enabled for the iSCSI target.
  2958. ChapEnabled *bool `type:"boolean"`
  2959. // The network interface identifier of the VTL device.
  2960. NetworkInterfaceId *string `type:"string"`
  2961. // The port used to communicate with iSCSI VTL device targets.
  2962. NetworkInterfacePort *int64 `type:"integer"`
  2963. // Specifies the unique Amazon Resource Name(ARN) that encodes the iSCSI qualified
  2964. // name(iqn) of a tape drive or media changer target.
  2965. TargetARN *string `type:"string"`
  2966. metadataDeviceiSCSIAttributes `json:"-" xml:"-"`
  2967. }
  2968. type metadataDeviceiSCSIAttributes struct {
  2969. SDKShapeTraits bool `type:"structure"`
  2970. }
  2971. // String returns the string representation
  2972. func (s DeviceiSCSIAttributes) String() string {
  2973. return awsutil.Prettify(s)
  2974. }
  2975. // GoString returns the string representation
  2976. func (s DeviceiSCSIAttributes) GoString() string {
  2977. return s.String()
  2978. }
  2979. // DisableGatewayInput
  2980. type DisableGatewayInput struct {
  2981. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  2982. // to return a list of gateways for your account and region.
  2983. GatewayARN *string `type:"string" required:"true"`
  2984. metadataDisableGatewayInput `json:"-" xml:"-"`
  2985. }
  2986. type metadataDisableGatewayInput struct {
  2987. SDKShapeTraits bool `type:"structure"`
  2988. }
  2989. // String returns the string representation
  2990. func (s DisableGatewayInput) String() string {
  2991. return awsutil.Prettify(s)
  2992. }
  2993. // GoString returns the string representation
  2994. func (s DisableGatewayInput) GoString() string {
  2995. return s.String()
  2996. }
  2997. // DisableGatewayOutput
  2998. type DisableGatewayOutput struct {
  2999. // The unique Amazon Resource Name of the disabled gateway.
  3000. GatewayARN *string `type:"string"`
  3001. metadataDisableGatewayOutput `json:"-" xml:"-"`
  3002. }
  3003. type metadataDisableGatewayOutput struct {
  3004. SDKShapeTraits bool `type:"structure"`
  3005. }
  3006. // String returns the string representation
  3007. func (s DisableGatewayOutput) String() string {
  3008. return awsutil.Prettify(s)
  3009. }
  3010. // GoString returns the string representation
  3011. func (s DisableGatewayOutput) GoString() string {
  3012. return s.String()
  3013. }
  3014. type Disk struct {
  3015. DiskAllocationResource *string `type:"string"`
  3016. DiskAllocationType *string `type:"string"`
  3017. DiskId *string `type:"string"`
  3018. DiskNode *string `type:"string"`
  3019. DiskPath *string `type:"string"`
  3020. DiskSizeInBytes *int64 `type:"long"`
  3021. DiskStatus *string `type:"string"`
  3022. metadataDisk `json:"-" xml:"-"`
  3023. }
  3024. type metadataDisk struct {
  3025. SDKShapeTraits bool `type:"structure"`
  3026. }
  3027. // String returns the string representation
  3028. func (s Disk) String() string {
  3029. return awsutil.Prettify(s)
  3030. }
  3031. // GoString returns the string representation
  3032. func (s Disk) GoString() string {
  3033. return s.String()
  3034. }
  3035. // Provides additional information about an error that was returned by the service
  3036. // as an or. See the errorCode and errorDetails members for more information
  3037. // about the error.
  3038. type Error struct {
  3039. // Additional information about the error.
  3040. ErrorCode *string `locationName:"errorCode" type:"string" enum:"ErrorCode"`
  3041. // Human-readable text that provides detail about the error that occurred.
  3042. ErrorDetails map[string]*string `locationName:"errorDetails" type:"map"`
  3043. metadataError `json:"-" xml:"-"`
  3044. }
  3045. type metadataError struct {
  3046. SDKShapeTraits bool `type:"structure"`
  3047. }
  3048. // String returns the string representation
  3049. func (s Error) String() string {
  3050. return awsutil.Prettify(s)
  3051. }
  3052. // GoString returns the string representation
  3053. func (s Error) GoString() string {
  3054. return s.String()
  3055. }
  3056. type GatewayInfo struct {
  3057. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3058. // to return a list of gateways for your account and region.
  3059. GatewayARN *string `type:"string"`
  3060. GatewayOperationalState *string `type:"string"`
  3061. GatewayType *string `type:"string"`
  3062. metadataGatewayInfo `json:"-" xml:"-"`
  3063. }
  3064. type metadataGatewayInfo struct {
  3065. SDKShapeTraits bool `type:"structure"`
  3066. }
  3067. // String returns the string representation
  3068. func (s GatewayInfo) String() string {
  3069. return awsutil.Prettify(s)
  3070. }
  3071. // GoString returns the string representation
  3072. func (s GatewayInfo) GoString() string {
  3073. return s.String()
  3074. }
  3075. // A JSON object containing zero or more of the following fields:
  3076. //
  3077. // ListGatewaysInput$Limit ListGatewaysInput$Marker
  3078. type ListGatewaysInput struct {
  3079. // Specifies that the list of gateways returned be limited to the specified
  3080. // number of items.
  3081. Limit *int64 `type:"integer"`
  3082. // An opaque string that indicates the position at which to begin the returned
  3083. // list of gateways.
  3084. Marker *string `type:"string"`
  3085. metadataListGatewaysInput `json:"-" xml:"-"`
  3086. }
  3087. type metadataListGatewaysInput struct {
  3088. SDKShapeTraits bool `type:"structure"`
  3089. }
  3090. // String returns the string representation
  3091. func (s ListGatewaysInput) String() string {
  3092. return awsutil.Prettify(s)
  3093. }
  3094. // GoString returns the string representation
  3095. func (s ListGatewaysInput) GoString() string {
  3096. return s.String()
  3097. }
  3098. type ListGatewaysOutput struct {
  3099. Gateways []*GatewayInfo `type:"list"`
  3100. Marker *string `type:"string"`
  3101. metadataListGatewaysOutput `json:"-" xml:"-"`
  3102. }
  3103. type metadataListGatewaysOutput struct {
  3104. SDKShapeTraits bool `type:"structure"`
  3105. }
  3106. // String returns the string representation
  3107. func (s ListGatewaysOutput) String() string {
  3108. return awsutil.Prettify(s)
  3109. }
  3110. // GoString returns the string representation
  3111. func (s ListGatewaysOutput) GoString() string {
  3112. return s.String()
  3113. }
  3114. // A JSON object containing the of the gateway.
  3115. type ListLocalDisksInput struct {
  3116. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3117. // to return a list of gateways for your account and region.
  3118. GatewayARN *string `type:"string" required:"true"`
  3119. metadataListLocalDisksInput `json:"-" xml:"-"`
  3120. }
  3121. type metadataListLocalDisksInput struct {
  3122. SDKShapeTraits bool `type:"structure"`
  3123. }
  3124. // String returns the string representation
  3125. func (s ListLocalDisksInput) String() string {
  3126. return awsutil.Prettify(s)
  3127. }
  3128. // GoString returns the string representation
  3129. func (s ListLocalDisksInput) GoString() string {
  3130. return s.String()
  3131. }
  3132. type ListLocalDisksOutput struct {
  3133. Disks []*Disk `type:"list"`
  3134. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3135. // to return a list of gateways for your account and region.
  3136. GatewayARN *string `type:"string"`
  3137. metadataListLocalDisksOutput `json:"-" xml:"-"`
  3138. }
  3139. type metadataListLocalDisksOutput struct {
  3140. SDKShapeTraits bool `type:"structure"`
  3141. }
  3142. // String returns the string representation
  3143. func (s ListLocalDisksOutput) String() string {
  3144. return awsutil.Prettify(s)
  3145. }
  3146. // GoString returns the string representation
  3147. func (s ListLocalDisksOutput) GoString() string {
  3148. return s.String()
  3149. }
  3150. // ListVolumeInitiatorsInput
  3151. type ListVolumeInitiatorsInput struct {
  3152. // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
  3153. // to return a list of gateway volumes for the gateway.
  3154. VolumeARN *string `type:"string" required:"true"`
  3155. metadataListVolumeInitiatorsInput `json:"-" xml:"-"`
  3156. }
  3157. type metadataListVolumeInitiatorsInput struct {
  3158. SDKShapeTraits bool `type:"structure"`
  3159. }
  3160. // String returns the string representation
  3161. func (s ListVolumeInitiatorsInput) String() string {
  3162. return awsutil.Prettify(s)
  3163. }
  3164. // GoString returns the string representation
  3165. func (s ListVolumeInitiatorsInput) GoString() string {
  3166. return s.String()
  3167. }
  3168. // ListVolumeInitiatorsOutput
  3169. type ListVolumeInitiatorsOutput struct {
  3170. // The host names and port numbers of all iSCSI initiators that are connected
  3171. // to the gateway.
  3172. Initiators []*string `type:"list"`
  3173. metadataListVolumeInitiatorsOutput `json:"-" xml:"-"`
  3174. }
  3175. type metadataListVolumeInitiatorsOutput struct {
  3176. SDKShapeTraits bool `type:"structure"`
  3177. }
  3178. // String returns the string representation
  3179. func (s ListVolumeInitiatorsOutput) String() string {
  3180. return awsutil.Prettify(s)
  3181. }
  3182. // GoString returns the string representation
  3183. func (s ListVolumeInitiatorsOutput) GoString() string {
  3184. return s.String()
  3185. }
  3186. type ListVolumeRecoveryPointsInput struct {
  3187. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3188. // to return a list of gateways for your account and region.
  3189. GatewayARN *string `type:"string" required:"true"`
  3190. metadataListVolumeRecoveryPointsInput `json:"-" xml:"-"`
  3191. }
  3192. type metadataListVolumeRecoveryPointsInput struct {
  3193. SDKShapeTraits bool `type:"structure"`
  3194. }
  3195. // String returns the string representation
  3196. func (s ListVolumeRecoveryPointsInput) String() string {
  3197. return awsutil.Prettify(s)
  3198. }
  3199. // GoString returns the string representation
  3200. func (s ListVolumeRecoveryPointsInput) GoString() string {
  3201. return s.String()
  3202. }
  3203. type ListVolumeRecoveryPointsOutput struct {
  3204. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3205. // to return a list of gateways for your account and region.
  3206. GatewayARN *string `type:"string"`
  3207. VolumeRecoveryPointInfos []*VolumeRecoveryPointInfo `type:"list"`
  3208. metadataListVolumeRecoveryPointsOutput `json:"-" xml:"-"`
  3209. }
  3210. type metadataListVolumeRecoveryPointsOutput struct {
  3211. SDKShapeTraits bool `type:"structure"`
  3212. }
  3213. // String returns the string representation
  3214. func (s ListVolumeRecoveryPointsOutput) String() string {
  3215. return awsutil.Prettify(s)
  3216. }
  3217. // GoString returns the string representation
  3218. func (s ListVolumeRecoveryPointsOutput) GoString() string {
  3219. return s.String()
  3220. }
  3221. // A JSON object that contains one or more of the following fields:
  3222. //
  3223. // ListVolumesInput$Limit ListVolumesInput$Marker
  3224. type ListVolumesInput struct {
  3225. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3226. // to return a list of gateways for your account and region.
  3227. GatewayARN *string `type:"string" required:"true"`
  3228. // Specifies that the list of volumes returned be limited to the specified number
  3229. // of items.
  3230. Limit *int64 `type:"integer"`
  3231. // A string that indicates the position at which to begin the returned list
  3232. // of volumes. Obtain the marker from the response of a previous List iSCSI
  3233. // Volumes request.
  3234. Marker *string `type:"string"`
  3235. metadataListVolumesInput `json:"-" xml:"-"`
  3236. }
  3237. type metadataListVolumesInput struct {
  3238. SDKShapeTraits bool `type:"structure"`
  3239. }
  3240. // String returns the string representation
  3241. func (s ListVolumesInput) String() string {
  3242. return awsutil.Prettify(s)
  3243. }
  3244. // GoString returns the string representation
  3245. func (s ListVolumesInput) GoString() string {
  3246. return s.String()
  3247. }
  3248. type ListVolumesOutput struct {
  3249. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3250. // to return a list of gateways for your account and region.
  3251. GatewayARN *string `type:"string"`
  3252. Marker *string `type:"string"`
  3253. VolumeInfos []*VolumeInfo `type:"list"`
  3254. metadataListVolumesOutput `json:"-" xml:"-"`
  3255. }
  3256. type metadataListVolumesOutput struct {
  3257. SDKShapeTraits bool `type:"structure"`
  3258. }
  3259. // String returns the string representation
  3260. func (s ListVolumesOutput) String() string {
  3261. return awsutil.Prettify(s)
  3262. }
  3263. // GoString returns the string representation
  3264. func (s ListVolumesOutput) GoString() string {
  3265. return s.String()
  3266. }
  3267. // Describes a gateway's network interface.
  3268. type NetworkInterface struct {
  3269. // The Internet Protocol version 4 (IPv4) address of the interface.
  3270. Ipv4Address *string `type:"string"`
  3271. // The Internet Protocol version 6 (IPv6) address of the interface. Currently
  3272. // not supported.
  3273. Ipv6Address *string `type:"string"`
  3274. // The Media Access Control (MAC) address of the interface.
  3275. //
  3276. // This is currently unsupported and will not be returned in output.
  3277. MacAddress *string `type:"string"`
  3278. metadataNetworkInterface `json:"-" xml:"-"`
  3279. }
  3280. type metadataNetworkInterface struct {
  3281. SDKShapeTraits bool `type:"structure"`
  3282. }
  3283. // String returns the string representation
  3284. func (s NetworkInterface) String() string {
  3285. return awsutil.Prettify(s)
  3286. }
  3287. // GoString returns the string representation
  3288. func (s NetworkInterface) GoString() string {
  3289. return s.String()
  3290. }
  3291. type ResetCacheInput struct {
  3292. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3293. // to return a list of gateways for your account and region.
  3294. GatewayARN *string `type:"string" required:"true"`
  3295. metadataResetCacheInput `json:"-" xml:"-"`
  3296. }
  3297. type metadataResetCacheInput struct {
  3298. SDKShapeTraits bool `type:"structure"`
  3299. }
  3300. // String returns the string representation
  3301. func (s ResetCacheInput) String() string {
  3302. return awsutil.Prettify(s)
  3303. }
  3304. // GoString returns the string representation
  3305. func (s ResetCacheInput) GoString() string {
  3306. return s.String()
  3307. }
  3308. type ResetCacheOutput struct {
  3309. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3310. // to return a list of gateways for your account and region.
  3311. GatewayARN *string `type:"string"`
  3312. metadataResetCacheOutput `json:"-" xml:"-"`
  3313. }
  3314. type metadataResetCacheOutput struct {
  3315. SDKShapeTraits bool `type:"structure"`
  3316. }
  3317. // String returns the string representation
  3318. func (s ResetCacheOutput) String() string {
  3319. return awsutil.Prettify(s)
  3320. }
  3321. // GoString returns the string representation
  3322. func (s ResetCacheOutput) GoString() string {
  3323. return s.String()
  3324. }
  3325. // RetrieveTapeArchiveInput
  3326. type RetrieveTapeArchiveInput struct {
  3327. // The Amazon Resource Name (ARN) of the gateway you want to retrieve the virtual
  3328. // tape to. Use the ListGateways operation to return a list of gateways for
  3329. // your account and region.
  3330. //
  3331. // You retrieve archived virtual tapes to only one gateway and the gateway
  3332. // must be a gateway-VTL.
  3333. GatewayARN *string `type:"string" required:"true"`
  3334. // The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from
  3335. // the virtual tape shelf (VTS).
  3336. TapeARN *string `type:"string" required:"true"`
  3337. metadataRetrieveTapeArchiveInput `json:"-" xml:"-"`
  3338. }
  3339. type metadataRetrieveTapeArchiveInput struct {
  3340. SDKShapeTraits bool `type:"structure"`
  3341. }
  3342. // String returns the string representation
  3343. func (s RetrieveTapeArchiveInput) String() string {
  3344. return awsutil.Prettify(s)
  3345. }
  3346. // GoString returns the string representation
  3347. func (s RetrieveTapeArchiveInput) GoString() string {
  3348. return s.String()
  3349. }
  3350. // RetrieveTapeArchiveOutput
  3351. type RetrieveTapeArchiveOutput struct {
  3352. // The Amazon Resource Name (ARN) of the retrieved virtual tape.
  3353. TapeARN *string `type:"string"`
  3354. metadataRetrieveTapeArchiveOutput `json:"-" xml:"-"`
  3355. }
  3356. type metadataRetrieveTapeArchiveOutput struct {
  3357. SDKShapeTraits bool `type:"structure"`
  3358. }
  3359. // String returns the string representation
  3360. func (s RetrieveTapeArchiveOutput) String() string {
  3361. return awsutil.Prettify(s)
  3362. }
  3363. // GoString returns the string representation
  3364. func (s RetrieveTapeArchiveOutput) GoString() string {
  3365. return s.String()
  3366. }
  3367. // RetrieveTapeRecoveryPointInput
  3368. type RetrieveTapeRecoveryPointInput struct {
  3369. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3370. // to return a list of gateways for your account and region.
  3371. GatewayARN *string `type:"string" required:"true"`
  3372. // The Amazon Resource Name (ARN) of the virtual tape for which you want to
  3373. // retrieve the recovery point.
  3374. TapeARN *string `type:"string" required:"true"`
  3375. metadataRetrieveTapeRecoveryPointInput `json:"-" xml:"-"`
  3376. }
  3377. type metadataRetrieveTapeRecoveryPointInput struct {
  3378. SDKShapeTraits bool `type:"structure"`
  3379. }
  3380. // String returns the string representation
  3381. func (s RetrieveTapeRecoveryPointInput) String() string {
  3382. return awsutil.Prettify(s)
  3383. }
  3384. // GoString returns the string representation
  3385. func (s RetrieveTapeRecoveryPointInput) GoString() string {
  3386. return s.String()
  3387. }
  3388. // RetrieveTapeRecoveryPointOutput
  3389. type RetrieveTapeRecoveryPointOutput struct {
  3390. // The Amazon Resource Name (ARN) of the virtual tape for which the recovery
  3391. // point was retrieved.
  3392. TapeARN *string `type:"string"`
  3393. metadataRetrieveTapeRecoveryPointOutput `json:"-" xml:"-"`
  3394. }
  3395. type metadataRetrieveTapeRecoveryPointOutput struct {
  3396. SDKShapeTraits bool `type:"structure"`
  3397. }
  3398. // String returns the string representation
  3399. func (s RetrieveTapeRecoveryPointOutput) String() string {
  3400. return awsutil.Prettify(s)
  3401. }
  3402. // GoString returns the string representation
  3403. func (s RetrieveTapeRecoveryPointOutput) GoString() string {
  3404. return s.String()
  3405. }
  3406. // A JSON object containing the of the gateway to shut down.
  3407. type ShutdownGatewayInput struct {
  3408. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3409. // to return a list of gateways for your account and region.
  3410. GatewayARN *string `type:"string" required:"true"`
  3411. metadataShutdownGatewayInput `json:"-" xml:"-"`
  3412. }
  3413. type metadataShutdownGatewayInput struct {
  3414. SDKShapeTraits bool `type:"structure"`
  3415. }
  3416. // String returns the string representation
  3417. func (s ShutdownGatewayInput) String() string {
  3418. return awsutil.Prettify(s)
  3419. }
  3420. // GoString returns the string representation
  3421. func (s ShutdownGatewayInput) GoString() string {
  3422. return s.String()
  3423. }
  3424. // A JSON object containing the of the gateway that was shut down.
  3425. type ShutdownGatewayOutput struct {
  3426. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3427. // to return a list of gateways for your account and region.
  3428. GatewayARN *string `type:"string"`
  3429. metadataShutdownGatewayOutput `json:"-" xml:"-"`
  3430. }
  3431. type metadataShutdownGatewayOutput struct {
  3432. SDKShapeTraits bool `type:"structure"`
  3433. }
  3434. // String returns the string representation
  3435. func (s ShutdownGatewayOutput) String() string {
  3436. return awsutil.Prettify(s)
  3437. }
  3438. // GoString returns the string representation
  3439. func (s ShutdownGatewayOutput) GoString() string {
  3440. return s.String()
  3441. }
  3442. // A JSON object containing the of the gateway to start.
  3443. type StartGatewayInput struct {
  3444. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3445. // to return a list of gateways for your account and region.
  3446. GatewayARN *string `type:"string" required:"true"`
  3447. metadataStartGatewayInput `json:"-" xml:"-"`
  3448. }
  3449. type metadataStartGatewayInput struct {
  3450. SDKShapeTraits bool `type:"structure"`
  3451. }
  3452. // String returns the string representation
  3453. func (s StartGatewayInput) String() string {
  3454. return awsutil.Prettify(s)
  3455. }
  3456. // GoString returns the string representation
  3457. func (s StartGatewayInput) GoString() string {
  3458. return s.String()
  3459. }
  3460. // A JSON object containing the of the gateway that was restarted.
  3461. type StartGatewayOutput struct {
  3462. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3463. // to return a list of gateways for your account and region.
  3464. GatewayARN *string `type:"string"`
  3465. metadataStartGatewayOutput `json:"-" xml:"-"`
  3466. }
  3467. type metadataStartGatewayOutput struct {
  3468. SDKShapeTraits bool `type:"structure"`
  3469. }
  3470. // String returns the string representation
  3471. func (s StartGatewayOutput) String() string {
  3472. return awsutil.Prettify(s)
  3473. }
  3474. // GoString returns the string representation
  3475. func (s StartGatewayOutput) GoString() string {
  3476. return s.String()
  3477. }
  3478. type StorediSCSIVolume struct {
  3479. PreservedExistingData *bool `type:"boolean"`
  3480. SourceSnapshotId *string `type:"string"`
  3481. VolumeARN *string `type:"string"`
  3482. VolumeDiskId *string `type:"string"`
  3483. VolumeId *string `type:"string"`
  3484. VolumeProgress *float64 `type:"double"`
  3485. VolumeSizeInBytes *int64 `type:"long"`
  3486. VolumeStatus *string `type:"string"`
  3487. VolumeType *string `type:"string"`
  3488. // Lists iSCSI information about a volume.
  3489. VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"`
  3490. metadataStorediSCSIVolume `json:"-" xml:"-"`
  3491. }
  3492. type metadataStorediSCSIVolume struct {
  3493. SDKShapeTraits bool `type:"structure"`
  3494. }
  3495. // String returns the string representation
  3496. func (s StorediSCSIVolume) String() string {
  3497. return awsutil.Prettify(s)
  3498. }
  3499. // GoString returns the string representation
  3500. func (s StorediSCSIVolume) GoString() string {
  3501. return s.String()
  3502. }
  3503. // Describes a virtual tape object.
  3504. type Tape struct {
  3505. // For archiving virtual tapes, indicates how much data remains to be uploaded
  3506. // before archiving is complete.
  3507. //
  3508. // Range: 0 (not started) to 100 (complete).
  3509. Progress *float64 `type:"double"`
  3510. // The Amazon Resource Name (ARN) of the virtual tape.
  3511. TapeARN *string `type:"string"`
  3512. // The barcode that identifies a specific virtual tape.
  3513. TapeBarcode *string `type:"string"`
  3514. // The size, in bytes, of the virtual tape.
  3515. TapeSizeInBytes *int64 `type:"long"`
  3516. // The current state of the virtual tape.
  3517. TapeStatus *string `type:"string"`
  3518. // The virtual tape library (VTL) device that the virtual tape is associated
  3519. // with.
  3520. VTLDevice *string `type:"string"`
  3521. metadataTape `json:"-" xml:"-"`
  3522. }
  3523. type metadataTape struct {
  3524. SDKShapeTraits bool `type:"structure"`
  3525. }
  3526. // String returns the string representation
  3527. func (s Tape) String() string {
  3528. return awsutil.Prettify(s)
  3529. }
  3530. // GoString returns the string representation
  3531. func (s Tape) GoString() string {
  3532. return s.String()
  3533. }
  3534. // Represents a virtual tape that is archived in the virtual tape shelf (VTS).
  3535. type TapeArchive struct {
  3536. // The time that the archiving of the virtual tape was completed.
  3537. //
  3538. // The string format of the completion time is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z'
  3539. // format.
  3540. CompletionTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3541. // The Amazon Resource Name (ARN) of the gateway-VTL that the virtual tape is
  3542. // being retrieved to.
  3543. //
  3544. // The virtual tape is retrieved from the virtual tape shelf (VTS).
  3545. RetrievedTo *string `type:"string"`
  3546. // The Amazon Resource Name (ARN) of an archived virtual tape.
  3547. TapeARN *string `type:"string"`
  3548. // The barcode that identifies the archived virtual tape.
  3549. TapeBarcode *string `type:"string"`
  3550. // The size, in bytes, of the archived virtual tape.
  3551. TapeSizeInBytes *int64 `type:"long"`
  3552. // The current state of the archived virtual tape.
  3553. TapeStatus *string `type:"string"`
  3554. metadataTapeArchive `json:"-" xml:"-"`
  3555. }
  3556. type metadataTapeArchive struct {
  3557. SDKShapeTraits bool `type:"structure"`
  3558. }
  3559. // String returns the string representation
  3560. func (s TapeArchive) String() string {
  3561. return awsutil.Prettify(s)
  3562. }
  3563. // GoString returns the string representation
  3564. func (s TapeArchive) GoString() string {
  3565. return s.String()
  3566. }
  3567. // Describes a recovery point.
  3568. type TapeRecoveryPointInfo struct {
  3569. // The Amazon Resource Name (ARN) of the virtual tape.
  3570. TapeARN *string `type:"string"`
  3571. // The time when the point-in-time view of the virtual tape was replicated for
  3572. // later recovery.
  3573. //
  3574. // The string format of the tape recovery point time is in the ISO8601 extended
  3575. // YYYY-MM-DD'T'HH:MM:SS'Z' format.
  3576. TapeRecoveryPointTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3577. // The size, in bytes, of the virtual tapes to recover.
  3578. TapeSizeInBytes *int64 `type:"long"`
  3579. TapeStatus *string `type:"string"`
  3580. metadataTapeRecoveryPointInfo `json:"-" xml:"-"`
  3581. }
  3582. type metadataTapeRecoveryPointInfo struct {
  3583. SDKShapeTraits bool `type:"structure"`
  3584. }
  3585. // String returns the string representation
  3586. func (s TapeRecoveryPointInfo) String() string {
  3587. return awsutil.Prettify(s)
  3588. }
  3589. // GoString returns the string representation
  3590. func (s TapeRecoveryPointInfo) GoString() string {
  3591. return s.String()
  3592. }
  3593. // A JSON object containing one or more of the following fields:
  3594. //
  3595. // UpdateBandwidthRateLimitInput$AverageDownloadRateLimitInBitsPerSec UpdateBandwidthRateLimitInput$AverageUploadRateLimitInBitsPerSec
  3596. type UpdateBandwidthRateLimitInput struct {
  3597. // The average download bandwidth rate limit in bits per second.
  3598. AverageDownloadRateLimitInBitsPerSec *int64 `type:"long"`
  3599. // The average upload bandwidth rate limit in bits per second.
  3600. AverageUploadRateLimitInBitsPerSec *int64 `type:"long"`
  3601. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3602. // to return a list of gateways for your account and region.
  3603. GatewayARN *string `type:"string" required:"true"`
  3604. metadataUpdateBandwidthRateLimitInput `json:"-" xml:"-"`
  3605. }
  3606. type metadataUpdateBandwidthRateLimitInput struct {
  3607. SDKShapeTraits bool `type:"structure"`
  3608. }
  3609. // String returns the string representation
  3610. func (s UpdateBandwidthRateLimitInput) String() string {
  3611. return awsutil.Prettify(s)
  3612. }
  3613. // GoString returns the string representation
  3614. func (s UpdateBandwidthRateLimitInput) GoString() string {
  3615. return s.String()
  3616. }
  3617. // A JSON object containing the of the gateway whose throttle information was
  3618. // updated.
  3619. type UpdateBandwidthRateLimitOutput struct {
  3620. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3621. // to return a list of gateways for your account and region.
  3622. GatewayARN *string `type:"string"`
  3623. metadataUpdateBandwidthRateLimitOutput `json:"-" xml:"-"`
  3624. }
  3625. type metadataUpdateBandwidthRateLimitOutput struct {
  3626. SDKShapeTraits bool `type:"structure"`
  3627. }
  3628. // String returns the string representation
  3629. func (s UpdateBandwidthRateLimitOutput) String() string {
  3630. return awsutil.Prettify(s)
  3631. }
  3632. // GoString returns the string representation
  3633. func (s UpdateBandwidthRateLimitOutput) GoString() string {
  3634. return s.String()
  3635. }
  3636. // A JSON object containing one or more of the following fields:
  3637. //
  3638. // UpdateChapCredentialsInput$InitiatorName UpdateChapCredentialsInput$SecretToAuthenticateInitiator
  3639. // UpdateChapCredentialsInput$SecretToAuthenticateTarget UpdateChapCredentialsInput$TargetARN
  3640. type UpdateChapCredentialsInput struct {
  3641. // The iSCSI initiator that connects to the target.
  3642. InitiatorName *string `type:"string" required:"true"`
  3643. // The secret key that the initiator (for example, the Windows client) must
  3644. // provide to participate in mutual CHAP with the target.
  3645. //
  3646. // The secret key must be between 12 and 16 bytes when encoded in UTF-8.
  3647. SecretToAuthenticateInitiator *string `type:"string" required:"true"`
  3648. // The secret key that the target must provide to participate in mutual CHAP
  3649. // with the initiator (e.g. Windows client).
  3650. //
  3651. // Byte constraints: Minimum bytes of 12. Maximum bytes of 16.
  3652. //
  3653. // The secret key must be between 12 and 16 bytes when encoded in UTF-8.
  3654. SecretToAuthenticateTarget *string `type:"string"`
  3655. // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes
  3656. // operation to return the TargetARN for specified VolumeARN.
  3657. TargetARN *string `type:"string" required:"true"`
  3658. metadataUpdateChapCredentialsInput `json:"-" xml:"-"`
  3659. }
  3660. type metadataUpdateChapCredentialsInput struct {
  3661. SDKShapeTraits bool `type:"structure"`
  3662. }
  3663. // String returns the string representation
  3664. func (s UpdateChapCredentialsInput) String() string {
  3665. return awsutil.Prettify(s)
  3666. }
  3667. // GoString returns the string representation
  3668. func (s UpdateChapCredentialsInput) GoString() string {
  3669. return s.String()
  3670. }
  3671. // A JSON object containing the following fields:
  3672. type UpdateChapCredentialsOutput struct {
  3673. // The iSCSI initiator that connects to the target. This is the same initiator
  3674. // name specified in the request.
  3675. InitiatorName *string `type:"string"`
  3676. // The Amazon Resource Name (ARN) of the target. This is the same target specified
  3677. // in the request.
  3678. TargetARN *string `type:"string"`
  3679. metadataUpdateChapCredentialsOutput `json:"-" xml:"-"`
  3680. }
  3681. type metadataUpdateChapCredentialsOutput struct {
  3682. SDKShapeTraits bool `type:"structure"`
  3683. }
  3684. // String returns the string representation
  3685. func (s UpdateChapCredentialsOutput) String() string {
  3686. return awsutil.Prettify(s)
  3687. }
  3688. // GoString returns the string representation
  3689. func (s UpdateChapCredentialsOutput) GoString() string {
  3690. return s.String()
  3691. }
  3692. type UpdateGatewayInformationInput struct {
  3693. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3694. // to return a list of gateways for your account and region.
  3695. GatewayARN *string `type:"string" required:"true"`
  3696. // A unique identifier for your gateway. This name becomes part of the gateway
  3697. // Amazon Resources Name (ARN) which is what you use as an input to other operations.
  3698. GatewayName *string `type:"string"`
  3699. GatewayTimezone *string `type:"string"`
  3700. metadataUpdateGatewayInformationInput `json:"-" xml:"-"`
  3701. }
  3702. type metadataUpdateGatewayInformationInput struct {
  3703. SDKShapeTraits bool `type:"structure"`
  3704. }
  3705. // String returns the string representation
  3706. func (s UpdateGatewayInformationInput) String() string {
  3707. return awsutil.Prettify(s)
  3708. }
  3709. // GoString returns the string representation
  3710. func (s UpdateGatewayInformationInput) GoString() string {
  3711. return s.String()
  3712. }
  3713. // A JSON object containing the of the gateway that was updated.
  3714. type UpdateGatewayInformationOutput struct {
  3715. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3716. // to return a list of gateways for your account and region.
  3717. GatewayARN *string `type:"string"`
  3718. metadataUpdateGatewayInformationOutput `json:"-" xml:"-"`
  3719. }
  3720. type metadataUpdateGatewayInformationOutput struct {
  3721. SDKShapeTraits bool `type:"structure"`
  3722. }
  3723. // String returns the string representation
  3724. func (s UpdateGatewayInformationOutput) String() string {
  3725. return awsutil.Prettify(s)
  3726. }
  3727. // GoString returns the string representation
  3728. func (s UpdateGatewayInformationOutput) GoString() string {
  3729. return s.String()
  3730. }
  3731. // A JSON object containing the of the gateway to update.
  3732. type UpdateGatewaySoftwareNowInput struct {
  3733. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3734. // to return a list of gateways for your account and region.
  3735. GatewayARN *string `type:"string" required:"true"`
  3736. metadataUpdateGatewaySoftwareNowInput `json:"-" xml:"-"`
  3737. }
  3738. type metadataUpdateGatewaySoftwareNowInput struct {
  3739. SDKShapeTraits bool `type:"structure"`
  3740. }
  3741. // String returns the string representation
  3742. func (s UpdateGatewaySoftwareNowInput) String() string {
  3743. return awsutil.Prettify(s)
  3744. }
  3745. // GoString returns the string representation
  3746. func (s UpdateGatewaySoftwareNowInput) GoString() string {
  3747. return s.String()
  3748. }
  3749. // A JSON object containing the of the gateway that was updated.
  3750. type UpdateGatewaySoftwareNowOutput struct {
  3751. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3752. // to return a list of gateways for your account and region.
  3753. GatewayARN *string `type:"string"`
  3754. metadataUpdateGatewaySoftwareNowOutput `json:"-" xml:"-"`
  3755. }
  3756. type metadataUpdateGatewaySoftwareNowOutput struct {
  3757. SDKShapeTraits bool `type:"structure"`
  3758. }
  3759. // String returns the string representation
  3760. func (s UpdateGatewaySoftwareNowOutput) String() string {
  3761. return awsutil.Prettify(s)
  3762. }
  3763. // GoString returns the string representation
  3764. func (s UpdateGatewaySoftwareNowOutput) GoString() string {
  3765. return s.String()
  3766. }
  3767. // A JSON object containing the following fields:
  3768. //
  3769. // UpdateMaintenanceStartTimeInput$DayOfWeek UpdateMaintenanceStartTimeInput$HourOfDay
  3770. // UpdateMaintenanceStartTimeInput$MinuteOfHour
  3771. type UpdateMaintenanceStartTimeInput struct {
  3772. // The maintenance start time day of the week.
  3773. DayOfWeek *int64 `type:"integer" required:"true"`
  3774. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3775. // to return a list of gateways for your account and region.
  3776. GatewayARN *string `type:"string" required:"true"`
  3777. // The hour component of the maintenance start time represented as hh, where
  3778. // hh is the hour (00 to 23). The hour of the day is in the time zone of the
  3779. // gateway.
  3780. HourOfDay *int64 `type:"integer" required:"true"`
  3781. // The minute component of the maintenance start time represented as mm, where
  3782. // mm is the minute (00 to 59). The minute of the hour is in the time zone of
  3783. // the gateway.
  3784. MinuteOfHour *int64 `type:"integer" required:"true"`
  3785. metadataUpdateMaintenanceStartTimeInput `json:"-" xml:"-"`
  3786. }
  3787. type metadataUpdateMaintenanceStartTimeInput struct {
  3788. SDKShapeTraits bool `type:"structure"`
  3789. }
  3790. // String returns the string representation
  3791. func (s UpdateMaintenanceStartTimeInput) String() string {
  3792. return awsutil.Prettify(s)
  3793. }
  3794. // GoString returns the string representation
  3795. func (s UpdateMaintenanceStartTimeInput) GoString() string {
  3796. return s.String()
  3797. }
  3798. // A JSON object containing the of the gateway whose maintenance start time
  3799. // is updated.
  3800. type UpdateMaintenanceStartTimeOutput struct {
  3801. // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation
  3802. // to return a list of gateways for your account and region.
  3803. GatewayARN *string `type:"string"`
  3804. metadataUpdateMaintenanceStartTimeOutput `json:"-" xml:"-"`
  3805. }
  3806. type metadataUpdateMaintenanceStartTimeOutput struct {
  3807. SDKShapeTraits bool `type:"structure"`
  3808. }
  3809. // String returns the string representation
  3810. func (s UpdateMaintenanceStartTimeOutput) String() string {
  3811. return awsutil.Prettify(s)
  3812. }
  3813. // GoString returns the string representation
  3814. func (s UpdateMaintenanceStartTimeOutput) GoString() string {
  3815. return s.String()
  3816. }
  3817. // A JSON object containing one or more of the following fields:
  3818. //
  3819. // UpdateSnapshotScheduleInput$Description UpdateSnapshotScheduleInput$RecurrenceInHours
  3820. // UpdateSnapshotScheduleInput$StartAt UpdateSnapshotScheduleInput$VolumeARN
  3821. type UpdateSnapshotScheduleInput struct {
  3822. // Optional description of the snapshot that overwrites the existing description.
  3823. Description *string `type:"string"`
  3824. // Frequency of snapshots. Specify the number of hours between snapshots.
  3825. RecurrenceInHours *int64 `type:"integer" required:"true"`
  3826. // The hour of the day at which the snapshot schedule begins represented as
  3827. // hh, where hh is the hour (0 to 23). The hour of the day is in the time zone
  3828. // of the gateway.
  3829. StartAt *int64 `type:"integer" required:"true"`
  3830. // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
  3831. // to return a list of gateway volumes.
  3832. VolumeARN *string `type:"string" required:"true"`
  3833. metadataUpdateSnapshotScheduleInput `json:"-" xml:"-"`
  3834. }
  3835. type metadataUpdateSnapshotScheduleInput struct {
  3836. SDKShapeTraits bool `type:"structure"`
  3837. }
  3838. // String returns the string representation
  3839. func (s UpdateSnapshotScheduleInput) String() string {
  3840. return awsutil.Prettify(s)
  3841. }
  3842. // GoString returns the string representation
  3843. func (s UpdateSnapshotScheduleInput) GoString() string {
  3844. return s.String()
  3845. }
  3846. // A JSON object containing the of the updated storage volume.
  3847. type UpdateSnapshotScheduleOutput struct {
  3848. VolumeARN *string `type:"string"`
  3849. metadataUpdateSnapshotScheduleOutput `json:"-" xml:"-"`
  3850. }
  3851. type metadataUpdateSnapshotScheduleOutput struct {
  3852. SDKShapeTraits bool `type:"structure"`
  3853. }
  3854. // String returns the string representation
  3855. func (s UpdateSnapshotScheduleOutput) String() string {
  3856. return awsutil.Prettify(s)
  3857. }
  3858. // GoString returns the string representation
  3859. func (s UpdateSnapshotScheduleOutput) GoString() string {
  3860. return s.String()
  3861. }
  3862. // UpdateVTLDeviceTypeInput
  3863. type UpdateVTLDeviceTypeInput struct {
  3864. // The type of medium changer you want to select.
  3865. //
  3866. // Valid Values: "STK-L700", "AWS-Gateway-VTL"
  3867. DeviceType *string `type:"string" required:"true"`
  3868. // The Amazon Resource Name (ARN) of the medium changer you want to select.
  3869. VTLDeviceARN *string `type:"string" required:"true"`
  3870. metadataUpdateVTLDeviceTypeInput `json:"-" xml:"-"`
  3871. }
  3872. type metadataUpdateVTLDeviceTypeInput struct {
  3873. SDKShapeTraits bool `type:"structure"`
  3874. }
  3875. // String returns the string representation
  3876. func (s UpdateVTLDeviceTypeInput) String() string {
  3877. return awsutil.Prettify(s)
  3878. }
  3879. // GoString returns the string representation
  3880. func (s UpdateVTLDeviceTypeInput) GoString() string {
  3881. return s.String()
  3882. }
  3883. // UpdateVTLDeviceTypeOutput
  3884. type UpdateVTLDeviceTypeOutput struct {
  3885. // The Amazon Resource Name (ARN) of the medium changer you have selected.
  3886. VTLDeviceARN *string `type:"string"`
  3887. metadataUpdateVTLDeviceTypeOutput `json:"-" xml:"-"`
  3888. }
  3889. type metadataUpdateVTLDeviceTypeOutput struct {
  3890. SDKShapeTraits bool `type:"structure"`
  3891. }
  3892. // String returns the string representation
  3893. func (s UpdateVTLDeviceTypeOutput) String() string {
  3894. return awsutil.Prettify(s)
  3895. }
  3896. // GoString returns the string representation
  3897. func (s UpdateVTLDeviceTypeOutput) GoString() string {
  3898. return s.String()
  3899. }
  3900. // Represents a device object associated with a gateway-VTL.
  3901. type VTLDevice struct {
  3902. // A list of iSCSI information about a VTL device.
  3903. DeviceiSCSIAttributes *DeviceiSCSIAttributes `type:"structure"`
  3904. // Specifies the unique Amazon Resource Name (ARN) of the device (tape drive
  3905. // or media changer).
  3906. VTLDeviceARN *string `type:"string"`
  3907. VTLDeviceProductIdentifier *string `type:"string"`
  3908. VTLDeviceType *string `type:"string"`
  3909. VTLDeviceVendor *string `type:"string"`
  3910. metadataVTLDevice `json:"-" xml:"-"`
  3911. }
  3912. type metadataVTLDevice struct {
  3913. SDKShapeTraits bool `type:"structure"`
  3914. }
  3915. // String returns the string representation
  3916. func (s VTLDevice) String() string {
  3917. return awsutil.Prettify(s)
  3918. }
  3919. // GoString returns the string representation
  3920. func (s VTLDevice) GoString() string {
  3921. return s.String()
  3922. }
  3923. type VolumeInfo struct {
  3924. VolumeARN *string `type:"string"`
  3925. VolumeType *string `type:"string"`
  3926. metadataVolumeInfo `json:"-" xml:"-"`
  3927. }
  3928. type metadataVolumeInfo struct {
  3929. SDKShapeTraits bool `type:"structure"`
  3930. }
  3931. // String returns the string representation
  3932. func (s VolumeInfo) String() string {
  3933. return awsutil.Prettify(s)
  3934. }
  3935. // GoString returns the string representation
  3936. func (s VolumeInfo) GoString() string {
  3937. return s.String()
  3938. }
  3939. type VolumeRecoveryPointInfo struct {
  3940. VolumeARN *string `type:"string"`
  3941. VolumeRecoveryPointTime *string `type:"string"`
  3942. VolumeSizeInBytes *int64 `type:"long"`
  3943. VolumeUsageInBytes *int64 `type:"long"`
  3944. metadataVolumeRecoveryPointInfo `json:"-" xml:"-"`
  3945. }
  3946. type metadataVolumeRecoveryPointInfo struct {
  3947. SDKShapeTraits bool `type:"structure"`
  3948. }
  3949. // String returns the string representation
  3950. func (s VolumeRecoveryPointInfo) String() string {
  3951. return awsutil.Prettify(s)
  3952. }
  3953. // GoString returns the string representation
  3954. func (s VolumeRecoveryPointInfo) GoString() string {
  3955. return s.String()
  3956. }
  3957. // Lists iSCSI information about a volume.
  3958. type VolumeiSCSIAttributes struct {
  3959. // Indicates whether mutual CHAP is enabled for the iSCSI target.
  3960. ChapEnabled *bool `type:"boolean"`
  3961. // The logical disk number.
  3962. LunNumber *int64 `type:"integer"`
  3963. // The network interface identifier.
  3964. NetworkInterfaceId *string `type:"string"`
  3965. // The port used to communicate with iSCSI targets.
  3966. NetworkInterfacePort *int64 `type:"integer"`
  3967. // The Amazon Resource Name (ARN) of the volume target.
  3968. TargetARN *string `type:"string"`
  3969. metadataVolumeiSCSIAttributes `json:"-" xml:"-"`
  3970. }
  3971. type metadataVolumeiSCSIAttributes struct {
  3972. SDKShapeTraits bool `type:"structure"`
  3973. }
  3974. // String returns the string representation
  3975. func (s VolumeiSCSIAttributes) String() string {
  3976. return awsutil.Prettify(s)
  3977. }
  3978. // GoString returns the string representation
  3979. func (s VolumeiSCSIAttributes) GoString() string {
  3980. return s.String()
  3981. }
  3982. const (
  3983. // @enum ErrorCode
  3984. ErrorCodeActivationKeyExpired = "ActivationKeyExpired"
  3985. // @enum ErrorCode
  3986. ErrorCodeActivationKeyInvalid = "ActivationKeyInvalid"
  3987. // @enum ErrorCode
  3988. ErrorCodeActivationKeyNotFound = "ActivationKeyNotFound"
  3989. // @enum ErrorCode
  3990. ErrorCodeGatewayInternalError = "GatewayInternalError"
  3991. // @enum ErrorCode
  3992. ErrorCodeGatewayNotConnected = "GatewayNotConnected"
  3993. // @enum ErrorCode
  3994. ErrorCodeGatewayNotFound = "GatewayNotFound"
  3995. // @enum ErrorCode
  3996. ErrorCodeGatewayProxyNetworkConnectionBusy = "GatewayProxyNetworkConnectionBusy"
  3997. // @enum ErrorCode
  3998. ErrorCodeAuthenticationFailure = "AuthenticationFailure"
  3999. // @enum ErrorCode
  4000. ErrorCodeBandwidthThrottleScheduleNotFound = "BandwidthThrottleScheduleNotFound"
  4001. // @enum ErrorCode
  4002. ErrorCodeBlocked = "Blocked"
  4003. // @enum ErrorCode
  4004. ErrorCodeCannotExportSnapshot = "CannotExportSnapshot"
  4005. // @enum ErrorCode
  4006. ErrorCodeChapCredentialNotFound = "ChapCredentialNotFound"
  4007. // @enum ErrorCode
  4008. ErrorCodeDiskAlreadyAllocated = "DiskAlreadyAllocated"
  4009. // @enum ErrorCode
  4010. ErrorCodeDiskDoesNotExist = "DiskDoesNotExist"
  4011. // @enum ErrorCode
  4012. ErrorCodeDiskSizeGreaterThanVolumeMaxSize = "DiskSizeGreaterThanVolumeMaxSize"
  4013. // @enum ErrorCode
  4014. ErrorCodeDiskSizeLessThanVolumeSize = "DiskSizeLessThanVolumeSize"
  4015. // @enum ErrorCode
  4016. ErrorCodeDiskSizeNotGigAligned = "DiskSizeNotGigAligned"
  4017. // @enum ErrorCode
  4018. ErrorCodeDuplicateCertificateInfo = "DuplicateCertificateInfo"
  4019. // @enum ErrorCode
  4020. ErrorCodeDuplicateSchedule = "DuplicateSchedule"
  4021. // @enum ErrorCode
  4022. ErrorCodeEndpointNotFound = "EndpointNotFound"
  4023. // @enum ErrorCode
  4024. ErrorCodeIamnotSupported = "IAMNotSupported"
  4025. // @enum ErrorCode
  4026. ErrorCodeInitiatorInvalid = "InitiatorInvalid"
  4027. // @enum ErrorCode
  4028. ErrorCodeInitiatorNotFound = "InitiatorNotFound"
  4029. // @enum ErrorCode
  4030. ErrorCodeInternalError = "InternalError"
  4031. // @enum ErrorCode
  4032. ErrorCodeInvalidGateway = "InvalidGateway"
  4033. // @enum ErrorCode
  4034. ErrorCodeInvalidEndpoint = "InvalidEndpoint"
  4035. // @enum ErrorCode
  4036. ErrorCodeInvalidParameters = "InvalidParameters"
  4037. // @enum ErrorCode
  4038. ErrorCodeInvalidSchedule = "InvalidSchedule"
  4039. // @enum ErrorCode
  4040. ErrorCodeLocalStorageLimitExceeded = "LocalStorageLimitExceeded"
  4041. // @enum ErrorCode
  4042. ErrorCodeLunAlreadyAllocated = "LunAlreadyAllocated "
  4043. // @enum ErrorCode
  4044. ErrorCodeLunInvalid = "LunInvalid"
  4045. // @enum ErrorCode
  4046. ErrorCodeMaximumContentLengthExceeded = "MaximumContentLengthExceeded"
  4047. // @enum ErrorCode
  4048. ErrorCodeMaximumTapeCartridgeCountExceeded = "MaximumTapeCartridgeCountExceeded"
  4049. // @enum ErrorCode
  4050. ErrorCodeMaximumVolumeCountExceeded = "MaximumVolumeCountExceeded"
  4051. // @enum ErrorCode
  4052. ErrorCodeNetworkConfigurationChanged = "NetworkConfigurationChanged"
  4053. // @enum ErrorCode
  4054. ErrorCodeNoDisksAvailable = "NoDisksAvailable"
  4055. // @enum ErrorCode
  4056. ErrorCodeNotImplemented = "NotImplemented"
  4057. // @enum ErrorCode
  4058. ErrorCodeNotSupported = "NotSupported"
  4059. // @enum ErrorCode
  4060. ErrorCodeOperationAborted = "OperationAborted"
  4061. // @enum ErrorCode
  4062. ErrorCodeOutdatedGateway = "OutdatedGateway"
  4063. // @enum ErrorCode
  4064. ErrorCodeParametersNotImplemented = "ParametersNotImplemented"
  4065. // @enum ErrorCode
  4066. ErrorCodeRegionInvalid = "RegionInvalid"
  4067. // @enum ErrorCode
  4068. ErrorCodeRequestTimeout = "RequestTimeout"
  4069. // @enum ErrorCode
  4070. ErrorCodeServiceUnavailable = "ServiceUnavailable"
  4071. // @enum ErrorCode
  4072. ErrorCodeSnapshotDeleted = "SnapshotDeleted"
  4073. // @enum ErrorCode
  4074. ErrorCodeSnapshotIdInvalid = "SnapshotIdInvalid"
  4075. // @enum ErrorCode
  4076. ErrorCodeSnapshotInProgress = "SnapshotInProgress"
  4077. // @enum ErrorCode
  4078. ErrorCodeSnapshotNotFound = "SnapshotNotFound"
  4079. // @enum ErrorCode
  4080. ErrorCodeSnapshotScheduleNotFound = "SnapshotScheduleNotFound"
  4081. // @enum ErrorCode
  4082. ErrorCodeStagingAreaFull = "StagingAreaFull"
  4083. // @enum ErrorCode
  4084. ErrorCodeStorageFailure = "StorageFailure"
  4085. // @enum ErrorCode
  4086. ErrorCodeTapeCartridgeNotFound = "TapeCartridgeNotFound"
  4087. // @enum ErrorCode
  4088. ErrorCodeTargetAlreadyExists = "TargetAlreadyExists"
  4089. // @enum ErrorCode
  4090. ErrorCodeTargetInvalid = "TargetInvalid"
  4091. // @enum ErrorCode
  4092. ErrorCodeTargetNotFound = "TargetNotFound"
  4093. // @enum ErrorCode
  4094. ErrorCodeUnauthorizedOperation = "UnauthorizedOperation"
  4095. // @enum ErrorCode
  4096. ErrorCodeVolumeAlreadyExists = "VolumeAlreadyExists"
  4097. // @enum ErrorCode
  4098. ErrorCodeVolumeIdInvalid = "VolumeIdInvalid"
  4099. // @enum ErrorCode
  4100. ErrorCodeVolumeInUse = "VolumeInUse"
  4101. // @enum ErrorCode
  4102. ErrorCodeVolumeNotFound = "VolumeNotFound"
  4103. // @enum ErrorCode
  4104. ErrorCodeVolumeNotReady = "VolumeNotReady"
  4105. )