api.go 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package ec2 provides a client for Amazon Elastic Compute Cloud.
  3. package ec2
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/ec2query"
  11. )
  12. const opAcceptVpcPeeringConnection = "AcceptVpcPeeringConnection"
  13. // AcceptVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  14. // client's request for the AcceptVpcPeeringConnection operation. The "output" return
  15. // value can be used to capture response data after the request's "Send" method
  16. // is called.
  17. //
  18. // Creating a request object using this method should be used when you want to inject
  19. // custom logic into the request's lifecycle using a custom handler, or if you want to
  20. // access properties on the request object before or after sending the request. If
  21. // you just want the service response, call the AcceptVpcPeeringConnection method directly
  22. // instead.
  23. //
  24. // Note: You must call the "Send" method on the returned request object in order
  25. // to execute the request.
  26. //
  27. // // Example sending a request using the AcceptVpcPeeringConnectionRequest method.
  28. // req, resp := client.AcceptVpcPeeringConnectionRequest(params)
  29. //
  30. // err := req.Send()
  31. // if err == nil { // resp is now filled
  32. // fmt.Println(resp)
  33. // }
  34. //
  35. func (c *EC2) AcceptVpcPeeringConnectionRequest(input *AcceptVpcPeeringConnectionInput) (req *request.Request, output *AcceptVpcPeeringConnectionOutput) {
  36. op := &request.Operation{
  37. Name: opAcceptVpcPeeringConnection,
  38. HTTPMethod: "POST",
  39. HTTPPath: "/",
  40. }
  41. if input == nil {
  42. input = &AcceptVpcPeeringConnectionInput{}
  43. }
  44. req = c.newRequest(op, input, output)
  45. output = &AcceptVpcPeeringConnectionOutput{}
  46. req.Data = output
  47. return
  48. }
  49. // Accept a VPC peering connection request. To accept a request, the VPC peering
  50. // connection must be in the pending-acceptance state, and you must be the owner
  51. // of the peer VPC. Use the DescribeVpcPeeringConnections request to view your
  52. // outstanding VPC peering connection requests.
  53. func (c *EC2) AcceptVpcPeeringConnection(input *AcceptVpcPeeringConnectionInput) (*AcceptVpcPeeringConnectionOutput, error) {
  54. req, out := c.AcceptVpcPeeringConnectionRequest(input)
  55. err := req.Send()
  56. return out, err
  57. }
  58. const opAllocateAddress = "AllocateAddress"
  59. // AllocateAddressRequest generates a "aws/request.Request" representing the
  60. // client's request for the AllocateAddress operation. The "output" return
  61. // value can be used to capture response data after the request's "Send" method
  62. // is called.
  63. //
  64. // Creating a request object using this method should be used when you want to inject
  65. // custom logic into the request's lifecycle using a custom handler, or if you want to
  66. // access properties on the request object before or after sending the request. If
  67. // you just want the service response, call the AllocateAddress method directly
  68. // instead.
  69. //
  70. // Note: You must call the "Send" method on the returned request object in order
  71. // to execute the request.
  72. //
  73. // // Example sending a request using the AllocateAddressRequest method.
  74. // req, resp := client.AllocateAddressRequest(params)
  75. //
  76. // err := req.Send()
  77. // if err == nil { // resp is now filled
  78. // fmt.Println(resp)
  79. // }
  80. //
  81. func (c *EC2) AllocateAddressRequest(input *AllocateAddressInput) (req *request.Request, output *AllocateAddressOutput) {
  82. op := &request.Operation{
  83. Name: opAllocateAddress,
  84. HTTPMethod: "POST",
  85. HTTPPath: "/",
  86. }
  87. if input == nil {
  88. input = &AllocateAddressInput{}
  89. }
  90. req = c.newRequest(op, input, output)
  91. output = &AllocateAddressOutput{}
  92. req.Data = output
  93. return
  94. }
  95. // Acquires an Elastic IP address.
  96. //
  97. // An Elastic IP address is for use either in the EC2-Classic platform or in
  98. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  99. // in the Amazon Elastic Compute Cloud User Guide.
  100. func (c *EC2) AllocateAddress(input *AllocateAddressInput) (*AllocateAddressOutput, error) {
  101. req, out := c.AllocateAddressRequest(input)
  102. err := req.Send()
  103. return out, err
  104. }
  105. const opAllocateHosts = "AllocateHosts"
  106. // AllocateHostsRequest generates a "aws/request.Request" representing the
  107. // client's request for the AllocateHosts operation. The "output" return
  108. // value can be used to capture response data after the request's "Send" method
  109. // is called.
  110. //
  111. // Creating a request object using this method should be used when you want to inject
  112. // custom logic into the request's lifecycle using a custom handler, or if you want to
  113. // access properties on the request object before or after sending the request. If
  114. // you just want the service response, call the AllocateHosts method directly
  115. // instead.
  116. //
  117. // Note: You must call the "Send" method on the returned request object in order
  118. // to execute the request.
  119. //
  120. // // Example sending a request using the AllocateHostsRequest method.
  121. // req, resp := client.AllocateHostsRequest(params)
  122. //
  123. // err := req.Send()
  124. // if err == nil { // resp is now filled
  125. // fmt.Println(resp)
  126. // }
  127. //
  128. func (c *EC2) AllocateHostsRequest(input *AllocateHostsInput) (req *request.Request, output *AllocateHostsOutput) {
  129. op := &request.Operation{
  130. Name: opAllocateHosts,
  131. HTTPMethod: "POST",
  132. HTTPPath: "/",
  133. }
  134. if input == nil {
  135. input = &AllocateHostsInput{}
  136. }
  137. req = c.newRequest(op, input, output)
  138. output = &AllocateHostsOutput{}
  139. req.Data = output
  140. return
  141. }
  142. // Allocates a Dedicated host to your account. At minimum you need to specify
  143. // the instance size type, Availability Zone, and quantity of hosts you want
  144. // to allocate.
  145. func (c *EC2) AllocateHosts(input *AllocateHostsInput) (*AllocateHostsOutput, error) {
  146. req, out := c.AllocateHostsRequest(input)
  147. err := req.Send()
  148. return out, err
  149. }
  150. const opAssignPrivateIpAddresses = "AssignPrivateIpAddresses"
  151. // AssignPrivateIpAddressesRequest generates a "aws/request.Request" representing the
  152. // client's request for the AssignPrivateIpAddresses operation. The "output" return
  153. // value can be used to capture response data after the request's "Send" method
  154. // is called.
  155. //
  156. // Creating a request object using this method should be used when you want to inject
  157. // custom logic into the request's lifecycle using a custom handler, or if you want to
  158. // access properties on the request object before or after sending the request. If
  159. // you just want the service response, call the AssignPrivateIpAddresses method directly
  160. // instead.
  161. //
  162. // Note: You must call the "Send" method on the returned request object in order
  163. // to execute the request.
  164. //
  165. // // Example sending a request using the AssignPrivateIpAddressesRequest method.
  166. // req, resp := client.AssignPrivateIpAddressesRequest(params)
  167. //
  168. // err := req.Send()
  169. // if err == nil { // resp is now filled
  170. // fmt.Println(resp)
  171. // }
  172. //
  173. func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInput) (req *request.Request, output *AssignPrivateIpAddressesOutput) {
  174. op := &request.Operation{
  175. Name: opAssignPrivateIpAddresses,
  176. HTTPMethod: "POST",
  177. HTTPPath: "/",
  178. }
  179. if input == nil {
  180. input = &AssignPrivateIpAddressesInput{}
  181. }
  182. req = c.newRequest(op, input, output)
  183. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  184. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  185. output = &AssignPrivateIpAddressesOutput{}
  186. req.Data = output
  187. return
  188. }
  189. // Assigns one or more secondary private IP addresses to the specified network
  190. // interface. You can specify one or more specific secondary IP addresses, or
  191. // you can specify the number of secondary IP addresses to be automatically
  192. // assigned within the subnet's CIDR block range. The number of secondary IP
  193. // addresses that you can assign to an instance varies by instance type. For
  194. // information about instance types, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  195. // in the Amazon Elastic Compute Cloud User Guide. For more information about
  196. // Elastic IP addresses, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  197. // in the Amazon Elastic Compute Cloud User Guide.
  198. //
  199. // AssignPrivateIpAddresses is available only in EC2-VPC.
  200. func (c *EC2) AssignPrivateIpAddresses(input *AssignPrivateIpAddressesInput) (*AssignPrivateIpAddressesOutput, error) {
  201. req, out := c.AssignPrivateIpAddressesRequest(input)
  202. err := req.Send()
  203. return out, err
  204. }
  205. const opAssociateAddress = "AssociateAddress"
  206. // AssociateAddressRequest generates a "aws/request.Request" representing the
  207. // client's request for the AssociateAddress operation. The "output" return
  208. // value can be used to capture response data after the request's "Send" method
  209. // is called.
  210. //
  211. // Creating a request object using this method should be used when you want to inject
  212. // custom logic into the request's lifecycle using a custom handler, or if you want to
  213. // access properties on the request object before or after sending the request. If
  214. // you just want the service response, call the AssociateAddress method directly
  215. // instead.
  216. //
  217. // Note: You must call the "Send" method on the returned request object in order
  218. // to execute the request.
  219. //
  220. // // Example sending a request using the AssociateAddressRequest method.
  221. // req, resp := client.AssociateAddressRequest(params)
  222. //
  223. // err := req.Send()
  224. // if err == nil { // resp is now filled
  225. // fmt.Println(resp)
  226. // }
  227. //
  228. func (c *EC2) AssociateAddressRequest(input *AssociateAddressInput) (req *request.Request, output *AssociateAddressOutput) {
  229. op := &request.Operation{
  230. Name: opAssociateAddress,
  231. HTTPMethod: "POST",
  232. HTTPPath: "/",
  233. }
  234. if input == nil {
  235. input = &AssociateAddressInput{}
  236. }
  237. req = c.newRequest(op, input, output)
  238. output = &AssociateAddressOutput{}
  239. req.Data = output
  240. return
  241. }
  242. // Associates an Elastic IP address with an instance or a network interface.
  243. //
  244. // An Elastic IP address is for use in either the EC2-Classic platform or in
  245. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  246. // in the Amazon Elastic Compute Cloud User Guide.
  247. //
  248. // [EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address
  249. // is already associated with a different instance, it is disassociated from
  250. // that instance and associated with the specified instance.
  251. //
  252. // [VPC in an EC2-Classic account] If you don't specify a private IP address,
  253. // the Elastic IP address is associated with the primary IP address. If the
  254. // Elastic IP address is already associated with a different instance or a network
  255. // interface, you get an error unless you allow reassociation.
  256. //
  257. // This is an idempotent operation. If you perform the operation more than
  258. // once, Amazon EC2 doesn't return an error.
  259. func (c *EC2) AssociateAddress(input *AssociateAddressInput) (*AssociateAddressOutput, error) {
  260. req, out := c.AssociateAddressRequest(input)
  261. err := req.Send()
  262. return out, err
  263. }
  264. const opAssociateDhcpOptions = "AssociateDhcpOptions"
  265. // AssociateDhcpOptionsRequest generates a "aws/request.Request" representing the
  266. // client's request for the AssociateDhcpOptions operation. The "output" return
  267. // value can be used to capture response data after the request's "Send" method
  268. // is called.
  269. //
  270. // Creating a request object using this method should be used when you want to inject
  271. // custom logic into the request's lifecycle using a custom handler, or if you want to
  272. // access properties on the request object before or after sending the request. If
  273. // you just want the service response, call the AssociateDhcpOptions method directly
  274. // instead.
  275. //
  276. // Note: You must call the "Send" method on the returned request object in order
  277. // to execute the request.
  278. //
  279. // // Example sending a request using the AssociateDhcpOptionsRequest method.
  280. // req, resp := client.AssociateDhcpOptionsRequest(params)
  281. //
  282. // err := req.Send()
  283. // if err == nil { // resp is now filled
  284. // fmt.Println(resp)
  285. // }
  286. //
  287. func (c *EC2) AssociateDhcpOptionsRequest(input *AssociateDhcpOptionsInput) (req *request.Request, output *AssociateDhcpOptionsOutput) {
  288. op := &request.Operation{
  289. Name: opAssociateDhcpOptions,
  290. HTTPMethod: "POST",
  291. HTTPPath: "/",
  292. }
  293. if input == nil {
  294. input = &AssociateDhcpOptionsInput{}
  295. }
  296. req = c.newRequest(op, input, output)
  297. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  298. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  299. output = &AssociateDhcpOptionsOutput{}
  300. req.Data = output
  301. return
  302. }
  303. // Associates a set of DHCP options (that you've previously created) with the
  304. // specified VPC, or associates no DHCP options with the VPC.
  305. //
  306. // After you associate the options with the VPC, any existing instances and
  307. // all new instances that you launch in that VPC use the options. You don't
  308. // need to restart or relaunch the instances. They automatically pick up the
  309. // changes within a few hours, depending on how frequently the instance renews
  310. // its DHCP lease. You can explicitly renew the lease using the operating system
  311. // on the instance.
  312. //
  313. // For more information, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  314. // in the Amazon Virtual Private Cloud User Guide.
  315. func (c *EC2) AssociateDhcpOptions(input *AssociateDhcpOptionsInput) (*AssociateDhcpOptionsOutput, error) {
  316. req, out := c.AssociateDhcpOptionsRequest(input)
  317. err := req.Send()
  318. return out, err
  319. }
  320. const opAssociateRouteTable = "AssociateRouteTable"
  321. // AssociateRouteTableRequest generates a "aws/request.Request" representing the
  322. // client's request for the AssociateRouteTable operation. The "output" return
  323. // value can be used to capture response data after the request's "Send" method
  324. // is called.
  325. //
  326. // Creating a request object using this method should be used when you want to inject
  327. // custom logic into the request's lifecycle using a custom handler, or if you want to
  328. // access properties on the request object before or after sending the request. If
  329. // you just want the service response, call the AssociateRouteTable method directly
  330. // instead.
  331. //
  332. // Note: You must call the "Send" method on the returned request object in order
  333. // to execute the request.
  334. //
  335. // // Example sending a request using the AssociateRouteTableRequest method.
  336. // req, resp := client.AssociateRouteTableRequest(params)
  337. //
  338. // err := req.Send()
  339. // if err == nil { // resp is now filled
  340. // fmt.Println(resp)
  341. // }
  342. //
  343. func (c *EC2) AssociateRouteTableRequest(input *AssociateRouteTableInput) (req *request.Request, output *AssociateRouteTableOutput) {
  344. op := &request.Operation{
  345. Name: opAssociateRouteTable,
  346. HTTPMethod: "POST",
  347. HTTPPath: "/",
  348. }
  349. if input == nil {
  350. input = &AssociateRouteTableInput{}
  351. }
  352. req = c.newRequest(op, input, output)
  353. output = &AssociateRouteTableOutput{}
  354. req.Data = output
  355. return
  356. }
  357. // Associates a subnet with a route table. The subnet and route table must be
  358. // in the same VPC. This association causes traffic originating from the subnet
  359. // to be routed according to the routes in the route table. The action returns
  360. // an association ID, which you need in order to disassociate the route table
  361. // from the subnet later. A route table can be associated with multiple subnets.
  362. //
  363. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  364. // in the Amazon Virtual Private Cloud User Guide.
  365. func (c *EC2) AssociateRouteTable(input *AssociateRouteTableInput) (*AssociateRouteTableOutput, error) {
  366. req, out := c.AssociateRouteTableRequest(input)
  367. err := req.Send()
  368. return out, err
  369. }
  370. const opAttachClassicLinkVpc = "AttachClassicLinkVpc"
  371. // AttachClassicLinkVpcRequest generates a "aws/request.Request" representing the
  372. // client's request for the AttachClassicLinkVpc operation. The "output" return
  373. // value can be used to capture response data after the request's "Send" method
  374. // is called.
  375. //
  376. // Creating a request object using this method should be used when you want to inject
  377. // custom logic into the request's lifecycle using a custom handler, or if you want to
  378. // access properties on the request object before or after sending the request. If
  379. // you just want the service response, call the AttachClassicLinkVpc method directly
  380. // instead.
  381. //
  382. // Note: You must call the "Send" method on the returned request object in order
  383. // to execute the request.
  384. //
  385. // // Example sending a request using the AttachClassicLinkVpcRequest method.
  386. // req, resp := client.AttachClassicLinkVpcRequest(params)
  387. //
  388. // err := req.Send()
  389. // if err == nil { // resp is now filled
  390. // fmt.Println(resp)
  391. // }
  392. //
  393. func (c *EC2) AttachClassicLinkVpcRequest(input *AttachClassicLinkVpcInput) (req *request.Request, output *AttachClassicLinkVpcOutput) {
  394. op := &request.Operation{
  395. Name: opAttachClassicLinkVpc,
  396. HTTPMethod: "POST",
  397. HTTPPath: "/",
  398. }
  399. if input == nil {
  400. input = &AttachClassicLinkVpcInput{}
  401. }
  402. req = c.newRequest(op, input, output)
  403. output = &AttachClassicLinkVpcOutput{}
  404. req.Data = output
  405. return
  406. }
  407. // Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or
  408. // more of the VPC's security groups. You cannot link an EC2-Classic instance
  409. // to more than one VPC at a time. You can only link an instance that's in the
  410. // running state. An instance is automatically unlinked from a VPC when it's
  411. // stopped - you can link it to the VPC again when you restart it.
  412. //
  413. // After you've linked an instance, you cannot change the VPC security groups
  414. // that are associated with it. To change the security groups, you must first
  415. // unlink the instance, and then link it again.
  416. //
  417. // Linking your instance to a VPC is sometimes referred to as attaching your
  418. // instance.
  419. func (c *EC2) AttachClassicLinkVpc(input *AttachClassicLinkVpcInput) (*AttachClassicLinkVpcOutput, error) {
  420. req, out := c.AttachClassicLinkVpcRequest(input)
  421. err := req.Send()
  422. return out, err
  423. }
  424. const opAttachInternetGateway = "AttachInternetGateway"
  425. // AttachInternetGatewayRequest generates a "aws/request.Request" representing the
  426. // client's request for the AttachInternetGateway operation. The "output" return
  427. // value can be used to capture response data after the request's "Send" method
  428. // is called.
  429. //
  430. // Creating a request object using this method should be used when you want to inject
  431. // custom logic into the request's lifecycle using a custom handler, or if you want to
  432. // access properties on the request object before or after sending the request. If
  433. // you just want the service response, call the AttachInternetGateway method directly
  434. // instead.
  435. //
  436. // Note: You must call the "Send" method on the returned request object in order
  437. // to execute the request.
  438. //
  439. // // Example sending a request using the AttachInternetGatewayRequest method.
  440. // req, resp := client.AttachInternetGatewayRequest(params)
  441. //
  442. // err := req.Send()
  443. // if err == nil { // resp is now filled
  444. // fmt.Println(resp)
  445. // }
  446. //
  447. func (c *EC2) AttachInternetGatewayRequest(input *AttachInternetGatewayInput) (req *request.Request, output *AttachInternetGatewayOutput) {
  448. op := &request.Operation{
  449. Name: opAttachInternetGateway,
  450. HTTPMethod: "POST",
  451. HTTPPath: "/",
  452. }
  453. if input == nil {
  454. input = &AttachInternetGatewayInput{}
  455. }
  456. req = c.newRequest(op, input, output)
  457. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  458. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  459. output = &AttachInternetGatewayOutput{}
  460. req.Data = output
  461. return
  462. }
  463. // Attaches an Internet gateway to a VPC, enabling connectivity between the
  464. // Internet and the VPC. For more information about your VPC and Internet gateway,
  465. // see the Amazon Virtual Private Cloud User Guide (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/).
  466. func (c *EC2) AttachInternetGateway(input *AttachInternetGatewayInput) (*AttachInternetGatewayOutput, error) {
  467. req, out := c.AttachInternetGatewayRequest(input)
  468. err := req.Send()
  469. return out, err
  470. }
  471. const opAttachNetworkInterface = "AttachNetworkInterface"
  472. // AttachNetworkInterfaceRequest generates a "aws/request.Request" representing the
  473. // client's request for the AttachNetworkInterface operation. The "output" return
  474. // value can be used to capture response data after the request's "Send" method
  475. // is called.
  476. //
  477. // Creating a request object using this method should be used when you want to inject
  478. // custom logic into the request's lifecycle using a custom handler, or if you want to
  479. // access properties on the request object before or after sending the request. If
  480. // you just want the service response, call the AttachNetworkInterface method directly
  481. // instead.
  482. //
  483. // Note: You must call the "Send" method on the returned request object in order
  484. // to execute the request.
  485. //
  486. // // Example sending a request using the AttachNetworkInterfaceRequest method.
  487. // req, resp := client.AttachNetworkInterfaceRequest(params)
  488. //
  489. // err := req.Send()
  490. // if err == nil { // resp is now filled
  491. // fmt.Println(resp)
  492. // }
  493. //
  494. func (c *EC2) AttachNetworkInterfaceRequest(input *AttachNetworkInterfaceInput) (req *request.Request, output *AttachNetworkInterfaceOutput) {
  495. op := &request.Operation{
  496. Name: opAttachNetworkInterface,
  497. HTTPMethod: "POST",
  498. HTTPPath: "/",
  499. }
  500. if input == nil {
  501. input = &AttachNetworkInterfaceInput{}
  502. }
  503. req = c.newRequest(op, input, output)
  504. output = &AttachNetworkInterfaceOutput{}
  505. req.Data = output
  506. return
  507. }
  508. // Attaches a network interface to an instance.
  509. func (c *EC2) AttachNetworkInterface(input *AttachNetworkInterfaceInput) (*AttachNetworkInterfaceOutput, error) {
  510. req, out := c.AttachNetworkInterfaceRequest(input)
  511. err := req.Send()
  512. return out, err
  513. }
  514. const opAttachVolume = "AttachVolume"
  515. // AttachVolumeRequest generates a "aws/request.Request" representing the
  516. // client's request for the AttachVolume operation. The "output" return
  517. // value can be used to capture response data after the request's "Send" method
  518. // is called.
  519. //
  520. // Creating a request object using this method should be used when you want to inject
  521. // custom logic into the request's lifecycle using a custom handler, or if you want to
  522. // access properties on the request object before or after sending the request. If
  523. // you just want the service response, call the AttachVolume method directly
  524. // instead.
  525. //
  526. // Note: You must call the "Send" method on the returned request object in order
  527. // to execute the request.
  528. //
  529. // // Example sending a request using the AttachVolumeRequest method.
  530. // req, resp := client.AttachVolumeRequest(params)
  531. //
  532. // err := req.Send()
  533. // if err == nil { // resp is now filled
  534. // fmt.Println(resp)
  535. // }
  536. //
  537. func (c *EC2) AttachVolumeRequest(input *AttachVolumeInput) (req *request.Request, output *VolumeAttachment) {
  538. op := &request.Operation{
  539. Name: opAttachVolume,
  540. HTTPMethod: "POST",
  541. HTTPPath: "/",
  542. }
  543. if input == nil {
  544. input = &AttachVolumeInput{}
  545. }
  546. req = c.newRequest(op, input, output)
  547. output = &VolumeAttachment{}
  548. req.Data = output
  549. return
  550. }
  551. // Attaches an EBS volume to a running or stopped instance and exposes it to
  552. // the instance with the specified device name.
  553. //
  554. // Encrypted EBS volumes may only be attached to instances that support Amazon
  555. // EBS encryption. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  556. // in the Amazon Elastic Compute Cloud User Guide.
  557. //
  558. // For a list of supported device names, see Attaching an EBS Volume to an
  559. // Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html).
  560. // Any device names that aren't reserved for instance store volumes can be used
  561. // for EBS volumes. For more information, see Amazon EC2 Instance Store (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html)
  562. // in the Amazon Elastic Compute Cloud User Guide.
  563. //
  564. // If a volume has an AWS Marketplace product code:
  565. //
  566. // The volume can be attached only to a stopped instance.
  567. //
  568. // AWS Marketplace product codes are copied from the volume to the instance.
  569. //
  570. // You must be subscribed to the product.
  571. //
  572. // The instance type and operating system of the instance must support the
  573. // product. For example, you can't detach a volume from a Windows instance and
  574. // attach it to a Linux instance.
  575. //
  576. // For an overview of the AWS Marketplace, see Introducing AWS Marketplace
  577. // (https://aws.amazon.com/marketplace/help/200900000).
  578. //
  579. // For more information about EBS volumes, see Attaching Amazon EBS Volumes
  580. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-attaching-volume.html)
  581. // in the Amazon Elastic Compute Cloud User Guide.
  582. func (c *EC2) AttachVolume(input *AttachVolumeInput) (*VolumeAttachment, error) {
  583. req, out := c.AttachVolumeRequest(input)
  584. err := req.Send()
  585. return out, err
  586. }
  587. const opAttachVpnGateway = "AttachVpnGateway"
  588. // AttachVpnGatewayRequest generates a "aws/request.Request" representing the
  589. // client's request for the AttachVpnGateway operation. The "output" return
  590. // value can be used to capture response data after the request's "Send" method
  591. // is called.
  592. //
  593. // Creating a request object using this method should be used when you want to inject
  594. // custom logic into the request's lifecycle using a custom handler, or if you want to
  595. // access properties on the request object before or after sending the request. If
  596. // you just want the service response, call the AttachVpnGateway method directly
  597. // instead.
  598. //
  599. // Note: You must call the "Send" method on the returned request object in order
  600. // to execute the request.
  601. //
  602. // // Example sending a request using the AttachVpnGatewayRequest method.
  603. // req, resp := client.AttachVpnGatewayRequest(params)
  604. //
  605. // err := req.Send()
  606. // if err == nil { // resp is now filled
  607. // fmt.Println(resp)
  608. // }
  609. //
  610. func (c *EC2) AttachVpnGatewayRequest(input *AttachVpnGatewayInput) (req *request.Request, output *AttachVpnGatewayOutput) {
  611. op := &request.Operation{
  612. Name: opAttachVpnGateway,
  613. HTTPMethod: "POST",
  614. HTTPPath: "/",
  615. }
  616. if input == nil {
  617. input = &AttachVpnGatewayInput{}
  618. }
  619. req = c.newRequest(op, input, output)
  620. output = &AttachVpnGatewayOutput{}
  621. req.Data = output
  622. return
  623. }
  624. // Attaches a virtual private gateway to a VPC. For more information, see Adding
  625. // a Hardware Virtual Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  626. // in the Amazon Virtual Private Cloud User Guide.
  627. func (c *EC2) AttachVpnGateway(input *AttachVpnGatewayInput) (*AttachVpnGatewayOutput, error) {
  628. req, out := c.AttachVpnGatewayRequest(input)
  629. err := req.Send()
  630. return out, err
  631. }
  632. const opAuthorizeSecurityGroupEgress = "AuthorizeSecurityGroupEgress"
  633. // AuthorizeSecurityGroupEgressRequest generates a "aws/request.Request" representing the
  634. // client's request for the AuthorizeSecurityGroupEgress operation. The "output" return
  635. // value can be used to capture response data after the request's "Send" method
  636. // is called.
  637. //
  638. // Creating a request object using this method should be used when you want to inject
  639. // custom logic into the request's lifecycle using a custom handler, or if you want to
  640. // access properties on the request object before or after sending the request. If
  641. // you just want the service response, call the AuthorizeSecurityGroupEgress method directly
  642. // instead.
  643. //
  644. // Note: You must call the "Send" method on the returned request object in order
  645. // to execute the request.
  646. //
  647. // // Example sending a request using the AuthorizeSecurityGroupEgressRequest method.
  648. // req, resp := client.AuthorizeSecurityGroupEgressRequest(params)
  649. //
  650. // err := req.Send()
  651. // if err == nil { // resp is now filled
  652. // fmt.Println(resp)
  653. // }
  654. //
  655. func (c *EC2) AuthorizeSecurityGroupEgressRequest(input *AuthorizeSecurityGroupEgressInput) (req *request.Request, output *AuthorizeSecurityGroupEgressOutput) {
  656. op := &request.Operation{
  657. Name: opAuthorizeSecurityGroupEgress,
  658. HTTPMethod: "POST",
  659. HTTPPath: "/",
  660. }
  661. if input == nil {
  662. input = &AuthorizeSecurityGroupEgressInput{}
  663. }
  664. req = c.newRequest(op, input, output)
  665. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  666. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  667. output = &AuthorizeSecurityGroupEgressOutput{}
  668. req.Data = output
  669. return
  670. }
  671. // [EC2-VPC only] Adds one or more egress rules to a security group for use
  672. // with a VPC. Specifically, this action permits instances to send traffic to
  673. // one or more destination CIDR IP address ranges, or to one or more destination
  674. // security groups for the same VPC. This action doesn't apply to security groups
  675. // for use in EC2-Classic. For more information, see Security Groups for Your
  676. // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  677. // in the Amazon Virtual Private Cloud User Guide.
  678. //
  679. // You can have up to 50 rules per security group (covering both ingress and
  680. // egress rules).
  681. //
  682. // Each rule consists of the protocol (for example, TCP), plus either a CIDR
  683. // range or a source group. For the TCP and UDP protocols, you must also specify
  684. // the destination port or port range. For the ICMP protocol, you must also
  685. // specify the ICMP type and code. You can use -1 for the type or code to mean
  686. // all types or all codes.
  687. //
  688. // Rule changes are propagated to affected instances as quickly as possible.
  689. // However, a small delay might occur.
  690. func (c *EC2) AuthorizeSecurityGroupEgress(input *AuthorizeSecurityGroupEgressInput) (*AuthorizeSecurityGroupEgressOutput, error) {
  691. req, out := c.AuthorizeSecurityGroupEgressRequest(input)
  692. err := req.Send()
  693. return out, err
  694. }
  695. const opAuthorizeSecurityGroupIngress = "AuthorizeSecurityGroupIngress"
  696. // AuthorizeSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  697. // client's request for the AuthorizeSecurityGroupIngress operation. The "output" return
  698. // value can be used to capture response data after the request's "Send" method
  699. // is called.
  700. //
  701. // Creating a request object using this method should be used when you want to inject
  702. // custom logic into the request's lifecycle using a custom handler, or if you want to
  703. // access properties on the request object before or after sending the request. If
  704. // you just want the service response, call the AuthorizeSecurityGroupIngress method directly
  705. // instead.
  706. //
  707. // Note: You must call the "Send" method on the returned request object in order
  708. // to execute the request.
  709. //
  710. // // Example sending a request using the AuthorizeSecurityGroupIngressRequest method.
  711. // req, resp := client.AuthorizeSecurityGroupIngressRequest(params)
  712. //
  713. // err := req.Send()
  714. // if err == nil { // resp is now filled
  715. // fmt.Println(resp)
  716. // }
  717. //
  718. func (c *EC2) AuthorizeSecurityGroupIngressRequest(input *AuthorizeSecurityGroupIngressInput) (req *request.Request, output *AuthorizeSecurityGroupIngressOutput) {
  719. op := &request.Operation{
  720. Name: opAuthorizeSecurityGroupIngress,
  721. HTTPMethod: "POST",
  722. HTTPPath: "/",
  723. }
  724. if input == nil {
  725. input = &AuthorizeSecurityGroupIngressInput{}
  726. }
  727. req = c.newRequest(op, input, output)
  728. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  729. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  730. output = &AuthorizeSecurityGroupIngressOutput{}
  731. req.Data = output
  732. return
  733. }
  734. // Adds one or more ingress rules to a security group.
  735. //
  736. // EC2-Classic: You can have up to 100 rules per group.
  737. //
  738. // EC2-VPC: You can have up to 50 rules per group (covering both ingress and
  739. // egress rules).
  740. //
  741. // Rule changes are propagated to instances within the security group as quickly
  742. // as possible. However, a small delay might occur.
  743. //
  744. // [EC2-Classic] This action gives one or more CIDR IP address ranges permission
  745. // to access a security group in your account, or gives one or more security
  746. // groups (called the source groups) permission to access a security group for
  747. // your account. A source group can be for your own AWS account, or another.
  748. //
  749. // [EC2-VPC] This action gives one or more CIDR IP address ranges permission
  750. // to access a security group in your VPC, or gives one or more other security
  751. // groups (called the source groups) permission to access a security group for
  752. // your VPC. The security groups must all be for the same VPC.
  753. func (c *EC2) AuthorizeSecurityGroupIngress(input *AuthorizeSecurityGroupIngressInput) (*AuthorizeSecurityGroupIngressOutput, error) {
  754. req, out := c.AuthorizeSecurityGroupIngressRequest(input)
  755. err := req.Send()
  756. return out, err
  757. }
  758. const opBundleInstance = "BundleInstance"
  759. // BundleInstanceRequest generates a "aws/request.Request" representing the
  760. // client's request for the BundleInstance operation. The "output" return
  761. // value can be used to capture response data after the request's "Send" method
  762. // is called.
  763. //
  764. // Creating a request object using this method should be used when you want to inject
  765. // custom logic into the request's lifecycle using a custom handler, or if you want to
  766. // access properties on the request object before or after sending the request. If
  767. // you just want the service response, call the BundleInstance method directly
  768. // instead.
  769. //
  770. // Note: You must call the "Send" method on the returned request object in order
  771. // to execute the request.
  772. //
  773. // // Example sending a request using the BundleInstanceRequest method.
  774. // req, resp := client.BundleInstanceRequest(params)
  775. //
  776. // err := req.Send()
  777. // if err == nil { // resp is now filled
  778. // fmt.Println(resp)
  779. // }
  780. //
  781. func (c *EC2) BundleInstanceRequest(input *BundleInstanceInput) (req *request.Request, output *BundleInstanceOutput) {
  782. op := &request.Operation{
  783. Name: opBundleInstance,
  784. HTTPMethod: "POST",
  785. HTTPPath: "/",
  786. }
  787. if input == nil {
  788. input = &BundleInstanceInput{}
  789. }
  790. req = c.newRequest(op, input, output)
  791. output = &BundleInstanceOutput{}
  792. req.Data = output
  793. return
  794. }
  795. // Bundles an Amazon instance store-backed Windows instance.
  796. //
  797. // During bundling, only the root device volume (C:\) is bundled. Data on other
  798. // instance store volumes is not preserved.
  799. //
  800. // This action is not applicable for Linux/Unix instances or Windows instances
  801. // that are backed by Amazon EBS.
  802. //
  803. // For more information, see Creating an Instance Store-Backed Windows AMI
  804. // (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/Creating_InstanceStoreBacked_WinAMI.html).
  805. func (c *EC2) BundleInstance(input *BundleInstanceInput) (*BundleInstanceOutput, error) {
  806. req, out := c.BundleInstanceRequest(input)
  807. err := req.Send()
  808. return out, err
  809. }
  810. const opCancelBundleTask = "CancelBundleTask"
  811. // CancelBundleTaskRequest generates a "aws/request.Request" representing the
  812. // client's request for the CancelBundleTask operation. The "output" return
  813. // value can be used to capture response data after the request's "Send" method
  814. // is called.
  815. //
  816. // Creating a request object using this method should be used when you want to inject
  817. // custom logic into the request's lifecycle using a custom handler, or if you want to
  818. // access properties on the request object before or after sending the request. If
  819. // you just want the service response, call the CancelBundleTask method directly
  820. // instead.
  821. //
  822. // Note: You must call the "Send" method on the returned request object in order
  823. // to execute the request.
  824. //
  825. // // Example sending a request using the CancelBundleTaskRequest method.
  826. // req, resp := client.CancelBundleTaskRequest(params)
  827. //
  828. // err := req.Send()
  829. // if err == nil { // resp is now filled
  830. // fmt.Println(resp)
  831. // }
  832. //
  833. func (c *EC2) CancelBundleTaskRequest(input *CancelBundleTaskInput) (req *request.Request, output *CancelBundleTaskOutput) {
  834. op := &request.Operation{
  835. Name: opCancelBundleTask,
  836. HTTPMethod: "POST",
  837. HTTPPath: "/",
  838. }
  839. if input == nil {
  840. input = &CancelBundleTaskInput{}
  841. }
  842. req = c.newRequest(op, input, output)
  843. output = &CancelBundleTaskOutput{}
  844. req.Data = output
  845. return
  846. }
  847. // Cancels a bundling operation for an instance store-backed Windows instance.
  848. func (c *EC2) CancelBundleTask(input *CancelBundleTaskInput) (*CancelBundleTaskOutput, error) {
  849. req, out := c.CancelBundleTaskRequest(input)
  850. err := req.Send()
  851. return out, err
  852. }
  853. const opCancelConversionTask = "CancelConversionTask"
  854. // CancelConversionTaskRequest generates a "aws/request.Request" representing the
  855. // client's request for the CancelConversionTask operation. The "output" return
  856. // value can be used to capture response data after the request's "Send" method
  857. // is called.
  858. //
  859. // Creating a request object using this method should be used when you want to inject
  860. // custom logic into the request's lifecycle using a custom handler, or if you want to
  861. // access properties on the request object before or after sending the request. If
  862. // you just want the service response, call the CancelConversionTask method directly
  863. // instead.
  864. //
  865. // Note: You must call the "Send" method on the returned request object in order
  866. // to execute the request.
  867. //
  868. // // Example sending a request using the CancelConversionTaskRequest method.
  869. // req, resp := client.CancelConversionTaskRequest(params)
  870. //
  871. // err := req.Send()
  872. // if err == nil { // resp is now filled
  873. // fmt.Println(resp)
  874. // }
  875. //
  876. func (c *EC2) CancelConversionTaskRequest(input *CancelConversionTaskInput) (req *request.Request, output *CancelConversionTaskOutput) {
  877. op := &request.Operation{
  878. Name: opCancelConversionTask,
  879. HTTPMethod: "POST",
  880. HTTPPath: "/",
  881. }
  882. if input == nil {
  883. input = &CancelConversionTaskInput{}
  884. }
  885. req = c.newRequest(op, input, output)
  886. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  887. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  888. output = &CancelConversionTaskOutput{}
  889. req.Data = output
  890. return
  891. }
  892. // Cancels an active conversion task. The task can be the import of an instance
  893. // or volume. The action removes all artifacts of the conversion, including
  894. // a partially uploaded volume or instance. If the conversion is complete or
  895. // is in the process of transferring the final disk image, the command fails
  896. // and returns an exception.
  897. //
  898. // For more information, see Using the Command Line Tools to Import Your Virtual
  899. // Machine to Amazon EC2 (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UploadingYourInstancesandVolumes.html)
  900. // in the Amazon Elastic Compute Cloud User Guide.
  901. func (c *EC2) CancelConversionTask(input *CancelConversionTaskInput) (*CancelConversionTaskOutput, error) {
  902. req, out := c.CancelConversionTaskRequest(input)
  903. err := req.Send()
  904. return out, err
  905. }
  906. const opCancelExportTask = "CancelExportTask"
  907. // CancelExportTaskRequest generates a "aws/request.Request" representing the
  908. // client's request for the CancelExportTask operation. The "output" return
  909. // value can be used to capture response data after the request's "Send" method
  910. // is called.
  911. //
  912. // Creating a request object using this method should be used when you want to inject
  913. // custom logic into the request's lifecycle using a custom handler, or if you want to
  914. // access properties on the request object before or after sending the request. If
  915. // you just want the service response, call the CancelExportTask method directly
  916. // instead.
  917. //
  918. // Note: You must call the "Send" method on the returned request object in order
  919. // to execute the request.
  920. //
  921. // // Example sending a request using the CancelExportTaskRequest method.
  922. // req, resp := client.CancelExportTaskRequest(params)
  923. //
  924. // err := req.Send()
  925. // if err == nil { // resp is now filled
  926. // fmt.Println(resp)
  927. // }
  928. //
  929. func (c *EC2) CancelExportTaskRequest(input *CancelExportTaskInput) (req *request.Request, output *CancelExportTaskOutput) {
  930. op := &request.Operation{
  931. Name: opCancelExportTask,
  932. HTTPMethod: "POST",
  933. HTTPPath: "/",
  934. }
  935. if input == nil {
  936. input = &CancelExportTaskInput{}
  937. }
  938. req = c.newRequest(op, input, output)
  939. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  940. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  941. output = &CancelExportTaskOutput{}
  942. req.Data = output
  943. return
  944. }
  945. // Cancels an active export task. The request removes all artifacts of the export,
  946. // including any partially-created Amazon S3 objects. If the export task is
  947. // complete or is in the process of transferring the final disk image, the command
  948. // fails and returns an error.
  949. func (c *EC2) CancelExportTask(input *CancelExportTaskInput) (*CancelExportTaskOutput, error) {
  950. req, out := c.CancelExportTaskRequest(input)
  951. err := req.Send()
  952. return out, err
  953. }
  954. const opCancelImportTask = "CancelImportTask"
  955. // CancelImportTaskRequest generates a "aws/request.Request" representing the
  956. // client's request for the CancelImportTask operation. The "output" return
  957. // value can be used to capture response data after the request's "Send" method
  958. // is called.
  959. //
  960. // Creating a request object using this method should be used when you want to inject
  961. // custom logic into the request's lifecycle using a custom handler, or if you want to
  962. // access properties on the request object before or after sending the request. If
  963. // you just want the service response, call the CancelImportTask method directly
  964. // instead.
  965. //
  966. // Note: You must call the "Send" method on the returned request object in order
  967. // to execute the request.
  968. //
  969. // // Example sending a request using the CancelImportTaskRequest method.
  970. // req, resp := client.CancelImportTaskRequest(params)
  971. //
  972. // err := req.Send()
  973. // if err == nil { // resp is now filled
  974. // fmt.Println(resp)
  975. // }
  976. //
  977. func (c *EC2) CancelImportTaskRequest(input *CancelImportTaskInput) (req *request.Request, output *CancelImportTaskOutput) {
  978. op := &request.Operation{
  979. Name: opCancelImportTask,
  980. HTTPMethod: "POST",
  981. HTTPPath: "/",
  982. }
  983. if input == nil {
  984. input = &CancelImportTaskInput{}
  985. }
  986. req = c.newRequest(op, input, output)
  987. output = &CancelImportTaskOutput{}
  988. req.Data = output
  989. return
  990. }
  991. // Cancels an in-process import virtual machine or import snapshot task.
  992. func (c *EC2) CancelImportTask(input *CancelImportTaskInput) (*CancelImportTaskOutput, error) {
  993. req, out := c.CancelImportTaskRequest(input)
  994. err := req.Send()
  995. return out, err
  996. }
  997. const opCancelReservedInstancesListing = "CancelReservedInstancesListing"
  998. // CancelReservedInstancesListingRequest generates a "aws/request.Request" representing the
  999. // client's request for the CancelReservedInstancesListing operation. The "output" return
  1000. // value can be used to capture response data after the request's "Send" method
  1001. // is called.
  1002. //
  1003. // Creating a request object using this method should be used when you want to inject
  1004. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1005. // access properties on the request object before or after sending the request. If
  1006. // you just want the service response, call the CancelReservedInstancesListing method directly
  1007. // instead.
  1008. //
  1009. // Note: You must call the "Send" method on the returned request object in order
  1010. // to execute the request.
  1011. //
  1012. // // Example sending a request using the CancelReservedInstancesListingRequest method.
  1013. // req, resp := client.CancelReservedInstancesListingRequest(params)
  1014. //
  1015. // err := req.Send()
  1016. // if err == nil { // resp is now filled
  1017. // fmt.Println(resp)
  1018. // }
  1019. //
  1020. func (c *EC2) CancelReservedInstancesListingRequest(input *CancelReservedInstancesListingInput) (req *request.Request, output *CancelReservedInstancesListingOutput) {
  1021. op := &request.Operation{
  1022. Name: opCancelReservedInstancesListing,
  1023. HTTPMethod: "POST",
  1024. HTTPPath: "/",
  1025. }
  1026. if input == nil {
  1027. input = &CancelReservedInstancesListingInput{}
  1028. }
  1029. req = c.newRequest(op, input, output)
  1030. output = &CancelReservedInstancesListingOutput{}
  1031. req.Data = output
  1032. return
  1033. }
  1034. // Cancels the specified Reserved Instance listing in the Reserved Instance
  1035. // Marketplace.
  1036. //
  1037. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  1038. // in the Amazon Elastic Compute Cloud User Guide.
  1039. func (c *EC2) CancelReservedInstancesListing(input *CancelReservedInstancesListingInput) (*CancelReservedInstancesListingOutput, error) {
  1040. req, out := c.CancelReservedInstancesListingRequest(input)
  1041. err := req.Send()
  1042. return out, err
  1043. }
  1044. const opCancelSpotFleetRequests = "CancelSpotFleetRequests"
  1045. // CancelSpotFleetRequestsRequest generates a "aws/request.Request" representing the
  1046. // client's request for the CancelSpotFleetRequests operation. The "output" return
  1047. // value can be used to capture response data after the request's "Send" method
  1048. // is called.
  1049. //
  1050. // Creating a request object using this method should be used when you want to inject
  1051. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1052. // access properties on the request object before or after sending the request. If
  1053. // you just want the service response, call the CancelSpotFleetRequests method directly
  1054. // instead.
  1055. //
  1056. // Note: You must call the "Send" method on the returned request object in order
  1057. // to execute the request.
  1058. //
  1059. // // Example sending a request using the CancelSpotFleetRequestsRequest method.
  1060. // req, resp := client.CancelSpotFleetRequestsRequest(params)
  1061. //
  1062. // err := req.Send()
  1063. // if err == nil { // resp is now filled
  1064. // fmt.Println(resp)
  1065. // }
  1066. //
  1067. func (c *EC2) CancelSpotFleetRequestsRequest(input *CancelSpotFleetRequestsInput) (req *request.Request, output *CancelSpotFleetRequestsOutput) {
  1068. op := &request.Operation{
  1069. Name: opCancelSpotFleetRequests,
  1070. HTTPMethod: "POST",
  1071. HTTPPath: "/",
  1072. }
  1073. if input == nil {
  1074. input = &CancelSpotFleetRequestsInput{}
  1075. }
  1076. req = c.newRequest(op, input, output)
  1077. output = &CancelSpotFleetRequestsOutput{}
  1078. req.Data = output
  1079. return
  1080. }
  1081. // Cancels the specified Spot fleet requests.
  1082. //
  1083. // After you cancel a Spot fleet request, the Spot fleet launches no new Spot
  1084. // instances. You must specify whether the Spot fleet should also terminate
  1085. // its Spot instances. If you terminate the instances, the Spot fleet request
  1086. // enters the cancelled_terminating state. Otherwise, the Spot fleet request
  1087. // enters the cancelled_running state and the instances continue to run until
  1088. // they are interrupted or you terminate them manually.
  1089. func (c *EC2) CancelSpotFleetRequests(input *CancelSpotFleetRequestsInput) (*CancelSpotFleetRequestsOutput, error) {
  1090. req, out := c.CancelSpotFleetRequestsRequest(input)
  1091. err := req.Send()
  1092. return out, err
  1093. }
  1094. const opCancelSpotInstanceRequests = "CancelSpotInstanceRequests"
  1095. // CancelSpotInstanceRequestsRequest generates a "aws/request.Request" representing the
  1096. // client's request for the CancelSpotInstanceRequests operation. The "output" return
  1097. // value can be used to capture response data after the request's "Send" method
  1098. // is called.
  1099. //
  1100. // Creating a request object using this method should be used when you want to inject
  1101. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1102. // access properties on the request object before or after sending the request. If
  1103. // you just want the service response, call the CancelSpotInstanceRequests method directly
  1104. // instead.
  1105. //
  1106. // Note: You must call the "Send" method on the returned request object in order
  1107. // to execute the request.
  1108. //
  1109. // // Example sending a request using the CancelSpotInstanceRequestsRequest method.
  1110. // req, resp := client.CancelSpotInstanceRequestsRequest(params)
  1111. //
  1112. // err := req.Send()
  1113. // if err == nil { // resp is now filled
  1114. // fmt.Println(resp)
  1115. // }
  1116. //
  1117. func (c *EC2) CancelSpotInstanceRequestsRequest(input *CancelSpotInstanceRequestsInput) (req *request.Request, output *CancelSpotInstanceRequestsOutput) {
  1118. op := &request.Operation{
  1119. Name: opCancelSpotInstanceRequests,
  1120. HTTPMethod: "POST",
  1121. HTTPPath: "/",
  1122. }
  1123. if input == nil {
  1124. input = &CancelSpotInstanceRequestsInput{}
  1125. }
  1126. req = c.newRequest(op, input, output)
  1127. output = &CancelSpotInstanceRequestsOutput{}
  1128. req.Data = output
  1129. return
  1130. }
  1131. // Cancels one or more Spot instance requests. Spot instances are instances
  1132. // that Amazon EC2 starts on your behalf when the bid price that you specify
  1133. // exceeds the current Spot price. Amazon EC2 periodically sets the Spot price
  1134. // based on available Spot instance capacity and current Spot instance requests.
  1135. // For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html)
  1136. // in the Amazon Elastic Compute Cloud User Guide.
  1137. //
  1138. // Canceling a Spot instance request does not terminate running Spot instances
  1139. // associated with the request.
  1140. func (c *EC2) CancelSpotInstanceRequests(input *CancelSpotInstanceRequestsInput) (*CancelSpotInstanceRequestsOutput, error) {
  1141. req, out := c.CancelSpotInstanceRequestsRequest(input)
  1142. err := req.Send()
  1143. return out, err
  1144. }
  1145. const opConfirmProductInstance = "ConfirmProductInstance"
  1146. // ConfirmProductInstanceRequest generates a "aws/request.Request" representing the
  1147. // client's request for the ConfirmProductInstance operation. The "output" return
  1148. // value can be used to capture response data after the request's "Send" method
  1149. // is called.
  1150. //
  1151. // Creating a request object using this method should be used when you want to inject
  1152. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1153. // access properties on the request object before or after sending the request. If
  1154. // you just want the service response, call the ConfirmProductInstance method directly
  1155. // instead.
  1156. //
  1157. // Note: You must call the "Send" method on the returned request object in order
  1158. // to execute the request.
  1159. //
  1160. // // Example sending a request using the ConfirmProductInstanceRequest method.
  1161. // req, resp := client.ConfirmProductInstanceRequest(params)
  1162. //
  1163. // err := req.Send()
  1164. // if err == nil { // resp is now filled
  1165. // fmt.Println(resp)
  1166. // }
  1167. //
  1168. func (c *EC2) ConfirmProductInstanceRequest(input *ConfirmProductInstanceInput) (req *request.Request, output *ConfirmProductInstanceOutput) {
  1169. op := &request.Operation{
  1170. Name: opConfirmProductInstance,
  1171. HTTPMethod: "POST",
  1172. HTTPPath: "/",
  1173. }
  1174. if input == nil {
  1175. input = &ConfirmProductInstanceInput{}
  1176. }
  1177. req = c.newRequest(op, input, output)
  1178. output = &ConfirmProductInstanceOutput{}
  1179. req.Data = output
  1180. return
  1181. }
  1182. // Determines whether a product code is associated with an instance. This action
  1183. // can only be used by the owner of the product code. It is useful when a product
  1184. // code owner needs to verify whether another user's instance is eligible for
  1185. // support.
  1186. func (c *EC2) ConfirmProductInstance(input *ConfirmProductInstanceInput) (*ConfirmProductInstanceOutput, error) {
  1187. req, out := c.ConfirmProductInstanceRequest(input)
  1188. err := req.Send()
  1189. return out, err
  1190. }
  1191. const opCopyImage = "CopyImage"
  1192. // CopyImageRequest generates a "aws/request.Request" representing the
  1193. // client's request for the CopyImage operation. The "output" return
  1194. // value can be used to capture response data after the request's "Send" method
  1195. // is called.
  1196. //
  1197. // Creating a request object using this method should be used when you want to inject
  1198. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1199. // access properties on the request object before or after sending the request. If
  1200. // you just want the service response, call the CopyImage method directly
  1201. // instead.
  1202. //
  1203. // Note: You must call the "Send" method on the returned request object in order
  1204. // to execute the request.
  1205. //
  1206. // // Example sending a request using the CopyImageRequest method.
  1207. // req, resp := client.CopyImageRequest(params)
  1208. //
  1209. // err := req.Send()
  1210. // if err == nil { // resp is now filled
  1211. // fmt.Println(resp)
  1212. // }
  1213. //
  1214. func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, output *CopyImageOutput) {
  1215. op := &request.Operation{
  1216. Name: opCopyImage,
  1217. HTTPMethod: "POST",
  1218. HTTPPath: "/",
  1219. }
  1220. if input == nil {
  1221. input = &CopyImageInput{}
  1222. }
  1223. req = c.newRequest(op, input, output)
  1224. output = &CopyImageOutput{}
  1225. req.Data = output
  1226. return
  1227. }
  1228. // Initiates the copy of an AMI from the specified source region to the current
  1229. // region. You specify the destination region by using its endpoint when making
  1230. // the request.
  1231. //
  1232. // For more information, see Copying AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html)
  1233. // in the Amazon Elastic Compute Cloud User Guide.
  1234. func (c *EC2) CopyImage(input *CopyImageInput) (*CopyImageOutput, error) {
  1235. req, out := c.CopyImageRequest(input)
  1236. err := req.Send()
  1237. return out, err
  1238. }
  1239. const opCopySnapshot = "CopySnapshot"
  1240. // CopySnapshotRequest generates a "aws/request.Request" representing the
  1241. // client's request for the CopySnapshot operation. The "output" return
  1242. // value can be used to capture response data after the request's "Send" method
  1243. // is called.
  1244. //
  1245. // Creating a request object using this method should be used when you want to inject
  1246. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1247. // access properties on the request object before or after sending the request. If
  1248. // you just want the service response, call the CopySnapshot method directly
  1249. // instead.
  1250. //
  1251. // Note: You must call the "Send" method on the returned request object in order
  1252. // to execute the request.
  1253. //
  1254. // // Example sending a request using the CopySnapshotRequest method.
  1255. // req, resp := client.CopySnapshotRequest(params)
  1256. //
  1257. // err := req.Send()
  1258. // if err == nil { // resp is now filled
  1259. // fmt.Println(resp)
  1260. // }
  1261. //
  1262. func (c *EC2) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Request, output *CopySnapshotOutput) {
  1263. op := &request.Operation{
  1264. Name: opCopySnapshot,
  1265. HTTPMethod: "POST",
  1266. HTTPPath: "/",
  1267. }
  1268. if input == nil {
  1269. input = &CopySnapshotInput{}
  1270. }
  1271. req = c.newRequest(op, input, output)
  1272. output = &CopySnapshotOutput{}
  1273. req.Data = output
  1274. return
  1275. }
  1276. // Copies a point-in-time snapshot of an EBS volume and stores it in Amazon
  1277. // S3. You can copy the snapshot within the same region or from one region to
  1278. // another. You can use the snapshot to create EBS volumes or Amazon Machine
  1279. // Images (AMIs). The snapshot is copied to the regional endpoint that you send
  1280. // the HTTP request to.
  1281. //
  1282. // Copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted
  1283. // snapshots remain unencrypted, unless the Encrypted flag is specified during
  1284. // the snapshot copy operation. By default, encrypted snapshot copies use the
  1285. // default AWS Key Management Service (AWS KMS) customer master key (CMK); however,
  1286. // you can specify a non-default CMK with the KmsKeyId parameter.
  1287. //
  1288. // To copy an encrypted snapshot that has been shared from another account,
  1289. // you must have permissions for the CMK used to encrypt the snapshot.
  1290. //
  1291. // Snapshots created by the CopySnapshot action have an arbitrary volume
  1292. // ID that should not be used for any purpose.
  1293. //
  1294. // For more information, see Copying an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html)
  1295. // in the Amazon Elastic Compute Cloud User Guide.
  1296. func (c *EC2) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) {
  1297. req, out := c.CopySnapshotRequest(input)
  1298. err := req.Send()
  1299. return out, err
  1300. }
  1301. const opCreateCustomerGateway = "CreateCustomerGateway"
  1302. // CreateCustomerGatewayRequest generates a "aws/request.Request" representing the
  1303. // client's request for the CreateCustomerGateway operation. The "output" return
  1304. // value can be used to capture response data after the request's "Send" method
  1305. // is called.
  1306. //
  1307. // Creating a request object using this method should be used when you want to inject
  1308. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1309. // access properties on the request object before or after sending the request. If
  1310. // you just want the service response, call the CreateCustomerGateway method directly
  1311. // instead.
  1312. //
  1313. // Note: You must call the "Send" method on the returned request object in order
  1314. // to execute the request.
  1315. //
  1316. // // Example sending a request using the CreateCustomerGatewayRequest method.
  1317. // req, resp := client.CreateCustomerGatewayRequest(params)
  1318. //
  1319. // err := req.Send()
  1320. // if err == nil { // resp is now filled
  1321. // fmt.Println(resp)
  1322. // }
  1323. //
  1324. func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (req *request.Request, output *CreateCustomerGatewayOutput) {
  1325. op := &request.Operation{
  1326. Name: opCreateCustomerGateway,
  1327. HTTPMethod: "POST",
  1328. HTTPPath: "/",
  1329. }
  1330. if input == nil {
  1331. input = &CreateCustomerGatewayInput{}
  1332. }
  1333. req = c.newRequest(op, input, output)
  1334. output = &CreateCustomerGatewayOutput{}
  1335. req.Data = output
  1336. return
  1337. }
  1338. // Provides information to AWS about your VPN customer gateway device. The customer
  1339. // gateway is the appliance at your end of the VPN connection. (The device on
  1340. // the AWS side of the VPN connection is the virtual private gateway.) You must
  1341. // provide the Internet-routable IP address of the customer gateway's external
  1342. // interface. The IP address must be static and may be behind a device performing
  1343. // network address translation (NAT).
  1344. //
  1345. // For devices that use Border Gateway Protocol (BGP), you can also provide
  1346. // the device's BGP Autonomous System Number (ASN). You can use an existing
  1347. // ASN assigned to your network. If you don't have an ASN already, you can use
  1348. // a private ASN (in the 64512 - 65534 range).
  1349. //
  1350. // Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with
  1351. // the exception of 7224, which is reserved in the us-east-1 region, and 9059,
  1352. // which is reserved in the eu-west-1 region.
  1353. //
  1354. // For more information about VPN customer gateways, see Adding a Hardware
  1355. // Virtual Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  1356. // in the Amazon Virtual Private Cloud User Guide.
  1357. //
  1358. // You cannot create more than one customer gateway with the same VPN type,
  1359. // IP address, and BGP ASN parameter values. If you run an identical request
  1360. // more than one time, the first request creates the customer gateway, and subsequent
  1361. // requests return information about the existing customer gateway. The subsequent
  1362. // requests do not create new customer gateway resources.
  1363. func (c *EC2) CreateCustomerGateway(input *CreateCustomerGatewayInput) (*CreateCustomerGatewayOutput, error) {
  1364. req, out := c.CreateCustomerGatewayRequest(input)
  1365. err := req.Send()
  1366. return out, err
  1367. }
  1368. const opCreateDhcpOptions = "CreateDhcpOptions"
  1369. // CreateDhcpOptionsRequest generates a "aws/request.Request" representing the
  1370. // client's request for the CreateDhcpOptions operation. The "output" return
  1371. // value can be used to capture response data after the request's "Send" method
  1372. // is called.
  1373. //
  1374. // Creating a request object using this method should be used when you want to inject
  1375. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1376. // access properties on the request object before or after sending the request. If
  1377. // you just want the service response, call the CreateDhcpOptions method directly
  1378. // instead.
  1379. //
  1380. // Note: You must call the "Send" method on the returned request object in order
  1381. // to execute the request.
  1382. //
  1383. // // Example sending a request using the CreateDhcpOptionsRequest method.
  1384. // req, resp := client.CreateDhcpOptionsRequest(params)
  1385. //
  1386. // err := req.Send()
  1387. // if err == nil { // resp is now filled
  1388. // fmt.Println(resp)
  1389. // }
  1390. //
  1391. func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *request.Request, output *CreateDhcpOptionsOutput) {
  1392. op := &request.Operation{
  1393. Name: opCreateDhcpOptions,
  1394. HTTPMethod: "POST",
  1395. HTTPPath: "/",
  1396. }
  1397. if input == nil {
  1398. input = &CreateDhcpOptionsInput{}
  1399. }
  1400. req = c.newRequest(op, input, output)
  1401. output = &CreateDhcpOptionsOutput{}
  1402. req.Data = output
  1403. return
  1404. }
  1405. // Creates a set of DHCP options for your VPC. After creating the set, you must
  1406. // associate it with the VPC, causing all existing and new instances that you
  1407. // launch in the VPC to use this set of DHCP options. The following are the
  1408. // individual DHCP options you can specify. For more information about the options,
  1409. // see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt).
  1410. //
  1411. // domain-name-servers - The IP addresses of up to four domain name servers,
  1412. // or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS.
  1413. // If specifying more than one domain name server, specify the IP addresses
  1414. // in a single parameter, separated by commas. If you want your instance to
  1415. // receive a custom DNS hostname as specified in domain-name, you must set domain-name-servers
  1416. // to a custom DNS server.
  1417. //
  1418. // domain-name - If you're using AmazonProvidedDNS in "us-east-1", specify
  1419. // "ec2.internal". If you're using AmazonProvidedDNS in another region, specify
  1420. // "region.compute.internal" (for example, "ap-northeast-1.compute.internal").
  1421. // Otherwise, specify a domain name (for example, "MyCompany.com"). This value
  1422. // is used to complete unqualified DNS hostnames. Important: Some Linux operating
  1423. // systems accept multiple domain names separated by spaces. However, Windows
  1424. // and other Linux operating systems treat the value as a single domain, which
  1425. // results in unexpected behavior. If your DHCP options set is associated with
  1426. // a VPC that has instances with multiple operating systems, specify only one
  1427. // domain name.
  1428. //
  1429. // ntp-servers - The IP addresses of up to four Network Time Protocol (NTP)
  1430. // servers.
  1431. //
  1432. // netbios-name-servers - The IP addresses of up to four NetBIOS name servers.
  1433. //
  1434. // netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend
  1435. // that you specify 2 (broadcast and multicast are not currently supported).
  1436. // For more information about these node types, see RFC 2132 (http://www.ietf.org/rfc/rfc2132.txt).
  1437. //
  1438. // Your VPC automatically starts out with a set of DHCP options that includes
  1439. // only a DNS server that we provide (AmazonProvidedDNS). If you create a set
  1440. // of options, and if your VPC has an Internet gateway, make sure to set the
  1441. // domain-name-servers option either to AmazonProvidedDNS or to a domain name
  1442. // server of your choice. For more information about DHCP options, see DHCP
  1443. // Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  1444. // in the Amazon Virtual Private Cloud User Guide.
  1445. func (c *EC2) CreateDhcpOptions(input *CreateDhcpOptionsInput) (*CreateDhcpOptionsOutput, error) {
  1446. req, out := c.CreateDhcpOptionsRequest(input)
  1447. err := req.Send()
  1448. return out, err
  1449. }
  1450. const opCreateFlowLogs = "CreateFlowLogs"
  1451. // CreateFlowLogsRequest generates a "aws/request.Request" representing the
  1452. // client's request for the CreateFlowLogs operation. The "output" return
  1453. // value can be used to capture response data after the request's "Send" method
  1454. // is called.
  1455. //
  1456. // Creating a request object using this method should be used when you want to inject
  1457. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1458. // access properties on the request object before or after sending the request. If
  1459. // you just want the service response, call the CreateFlowLogs method directly
  1460. // instead.
  1461. //
  1462. // Note: You must call the "Send" method on the returned request object in order
  1463. // to execute the request.
  1464. //
  1465. // // Example sending a request using the CreateFlowLogsRequest method.
  1466. // req, resp := client.CreateFlowLogsRequest(params)
  1467. //
  1468. // err := req.Send()
  1469. // if err == nil { // resp is now filled
  1470. // fmt.Println(resp)
  1471. // }
  1472. //
  1473. func (c *EC2) CreateFlowLogsRequest(input *CreateFlowLogsInput) (req *request.Request, output *CreateFlowLogsOutput) {
  1474. op := &request.Operation{
  1475. Name: opCreateFlowLogs,
  1476. HTTPMethod: "POST",
  1477. HTTPPath: "/",
  1478. }
  1479. if input == nil {
  1480. input = &CreateFlowLogsInput{}
  1481. }
  1482. req = c.newRequest(op, input, output)
  1483. output = &CreateFlowLogsOutput{}
  1484. req.Data = output
  1485. return
  1486. }
  1487. // Creates one or more flow logs to capture IP traffic for a specific network
  1488. // interface, subnet, or VPC. Flow logs are delivered to a specified log group
  1489. // in Amazon CloudWatch Logs. If you specify a VPC or subnet in the request,
  1490. // a log stream is created in CloudWatch Logs for each network interface in
  1491. // the subnet or VPC. Log streams can include information about accepted and
  1492. // rejected traffic to a network interface. You can view the data in your log
  1493. // streams using Amazon CloudWatch Logs.
  1494. //
  1495. // In your request, you must also specify an IAM role that has permission to
  1496. // publish logs to CloudWatch Logs.
  1497. func (c *EC2) CreateFlowLogs(input *CreateFlowLogsInput) (*CreateFlowLogsOutput, error) {
  1498. req, out := c.CreateFlowLogsRequest(input)
  1499. err := req.Send()
  1500. return out, err
  1501. }
  1502. const opCreateImage = "CreateImage"
  1503. // CreateImageRequest generates a "aws/request.Request" representing the
  1504. // client's request for the CreateImage operation. The "output" return
  1505. // value can be used to capture response data after the request's "Send" method
  1506. // is called.
  1507. //
  1508. // Creating a request object using this method should be used when you want to inject
  1509. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1510. // access properties on the request object before or after sending the request. If
  1511. // you just want the service response, call the CreateImage method directly
  1512. // instead.
  1513. //
  1514. // Note: You must call the "Send" method on the returned request object in order
  1515. // to execute the request.
  1516. //
  1517. // // Example sending a request using the CreateImageRequest method.
  1518. // req, resp := client.CreateImageRequest(params)
  1519. //
  1520. // err := req.Send()
  1521. // if err == nil { // resp is now filled
  1522. // fmt.Println(resp)
  1523. // }
  1524. //
  1525. func (c *EC2) CreateImageRequest(input *CreateImageInput) (req *request.Request, output *CreateImageOutput) {
  1526. op := &request.Operation{
  1527. Name: opCreateImage,
  1528. HTTPMethod: "POST",
  1529. HTTPPath: "/",
  1530. }
  1531. if input == nil {
  1532. input = &CreateImageInput{}
  1533. }
  1534. req = c.newRequest(op, input, output)
  1535. output = &CreateImageOutput{}
  1536. req.Data = output
  1537. return
  1538. }
  1539. // Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that
  1540. // is either running or stopped.
  1541. //
  1542. // If you customized your instance with instance store volumes or EBS volumes
  1543. // in addition to the root device volume, the new AMI contains block device
  1544. // mapping information for those volumes. When you launch an instance from this
  1545. // new AMI, the instance automatically launches with those additional volumes.
  1546. //
  1547. // For more information, see Creating Amazon EBS-Backed Linux AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html)
  1548. // in the Amazon Elastic Compute Cloud User Guide.
  1549. func (c *EC2) CreateImage(input *CreateImageInput) (*CreateImageOutput, error) {
  1550. req, out := c.CreateImageRequest(input)
  1551. err := req.Send()
  1552. return out, err
  1553. }
  1554. const opCreateInstanceExportTask = "CreateInstanceExportTask"
  1555. // CreateInstanceExportTaskRequest generates a "aws/request.Request" representing the
  1556. // client's request for the CreateInstanceExportTask operation. The "output" return
  1557. // value can be used to capture response data after the request's "Send" method
  1558. // is called.
  1559. //
  1560. // Creating a request object using this method should be used when you want to inject
  1561. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1562. // access properties on the request object before or after sending the request. If
  1563. // you just want the service response, call the CreateInstanceExportTask method directly
  1564. // instead.
  1565. //
  1566. // Note: You must call the "Send" method on the returned request object in order
  1567. // to execute the request.
  1568. //
  1569. // // Example sending a request using the CreateInstanceExportTaskRequest method.
  1570. // req, resp := client.CreateInstanceExportTaskRequest(params)
  1571. //
  1572. // err := req.Send()
  1573. // if err == nil { // resp is now filled
  1574. // fmt.Println(resp)
  1575. // }
  1576. //
  1577. func (c *EC2) CreateInstanceExportTaskRequest(input *CreateInstanceExportTaskInput) (req *request.Request, output *CreateInstanceExportTaskOutput) {
  1578. op := &request.Operation{
  1579. Name: opCreateInstanceExportTask,
  1580. HTTPMethod: "POST",
  1581. HTTPPath: "/",
  1582. }
  1583. if input == nil {
  1584. input = &CreateInstanceExportTaskInput{}
  1585. }
  1586. req = c.newRequest(op, input, output)
  1587. output = &CreateInstanceExportTaskOutput{}
  1588. req.Data = output
  1589. return
  1590. }
  1591. // Exports a running or stopped instance to an S3 bucket.
  1592. //
  1593. // For information about the supported operating systems, image formats, and
  1594. // known limitations for the types of instances you can export, see Exporting
  1595. // EC2 Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ExportingEC2Instances.html)
  1596. // in the Amazon Elastic Compute Cloud User Guide.
  1597. func (c *EC2) CreateInstanceExportTask(input *CreateInstanceExportTaskInput) (*CreateInstanceExportTaskOutput, error) {
  1598. req, out := c.CreateInstanceExportTaskRequest(input)
  1599. err := req.Send()
  1600. return out, err
  1601. }
  1602. const opCreateInternetGateway = "CreateInternetGateway"
  1603. // CreateInternetGatewayRequest generates a "aws/request.Request" representing the
  1604. // client's request for the CreateInternetGateway operation. The "output" return
  1605. // value can be used to capture response data after the request's "Send" method
  1606. // is called.
  1607. //
  1608. // Creating a request object using this method should be used when you want to inject
  1609. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1610. // access properties on the request object before or after sending the request. If
  1611. // you just want the service response, call the CreateInternetGateway method directly
  1612. // instead.
  1613. //
  1614. // Note: You must call the "Send" method on the returned request object in order
  1615. // to execute the request.
  1616. //
  1617. // // Example sending a request using the CreateInternetGatewayRequest method.
  1618. // req, resp := client.CreateInternetGatewayRequest(params)
  1619. //
  1620. // err := req.Send()
  1621. // if err == nil { // resp is now filled
  1622. // fmt.Println(resp)
  1623. // }
  1624. //
  1625. func (c *EC2) CreateInternetGatewayRequest(input *CreateInternetGatewayInput) (req *request.Request, output *CreateInternetGatewayOutput) {
  1626. op := &request.Operation{
  1627. Name: opCreateInternetGateway,
  1628. HTTPMethod: "POST",
  1629. HTTPPath: "/",
  1630. }
  1631. if input == nil {
  1632. input = &CreateInternetGatewayInput{}
  1633. }
  1634. req = c.newRequest(op, input, output)
  1635. output = &CreateInternetGatewayOutput{}
  1636. req.Data = output
  1637. return
  1638. }
  1639. // Creates an Internet gateway for use with a VPC. After creating the Internet
  1640. // gateway, you attach it to a VPC using AttachInternetGateway.
  1641. //
  1642. // For more information about your VPC and Internet gateway, see the Amazon
  1643. // Virtual Private Cloud User Guide (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/).
  1644. func (c *EC2) CreateInternetGateway(input *CreateInternetGatewayInput) (*CreateInternetGatewayOutput, error) {
  1645. req, out := c.CreateInternetGatewayRequest(input)
  1646. err := req.Send()
  1647. return out, err
  1648. }
  1649. const opCreateKeyPair = "CreateKeyPair"
  1650. // CreateKeyPairRequest generates a "aws/request.Request" representing the
  1651. // client's request for the CreateKeyPair operation. The "output" return
  1652. // value can be used to capture response data after the request's "Send" method
  1653. // is called.
  1654. //
  1655. // Creating a request object using this method should be used when you want to inject
  1656. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1657. // access properties on the request object before or after sending the request. If
  1658. // you just want the service response, call the CreateKeyPair method directly
  1659. // instead.
  1660. //
  1661. // Note: You must call the "Send" method on the returned request object in order
  1662. // to execute the request.
  1663. //
  1664. // // Example sending a request using the CreateKeyPairRequest method.
  1665. // req, resp := client.CreateKeyPairRequest(params)
  1666. //
  1667. // err := req.Send()
  1668. // if err == nil { // resp is now filled
  1669. // fmt.Println(resp)
  1670. // }
  1671. //
  1672. func (c *EC2) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Request, output *CreateKeyPairOutput) {
  1673. op := &request.Operation{
  1674. Name: opCreateKeyPair,
  1675. HTTPMethod: "POST",
  1676. HTTPPath: "/",
  1677. }
  1678. if input == nil {
  1679. input = &CreateKeyPairInput{}
  1680. }
  1681. req = c.newRequest(op, input, output)
  1682. output = &CreateKeyPairOutput{}
  1683. req.Data = output
  1684. return
  1685. }
  1686. // Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores
  1687. // the public key and displays the private key for you to save to a file. The
  1688. // private key is returned as an unencrypted PEM encoded PKCS#8 private key.
  1689. // If a key with the specified name already exists, Amazon EC2 returns an error.
  1690. //
  1691. // You can have up to five thousand key pairs per region.
  1692. //
  1693. // The key pair returned to you is available only in the region in which you
  1694. // create it. To create a key pair that is available in all regions, use ImportKeyPair.
  1695. //
  1696. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  1697. // in the Amazon Elastic Compute Cloud User Guide.
  1698. func (c *EC2) CreateKeyPair(input *CreateKeyPairInput) (*CreateKeyPairOutput, error) {
  1699. req, out := c.CreateKeyPairRequest(input)
  1700. err := req.Send()
  1701. return out, err
  1702. }
  1703. const opCreateNatGateway = "CreateNatGateway"
  1704. // CreateNatGatewayRequest generates a "aws/request.Request" representing the
  1705. // client's request for the CreateNatGateway operation. The "output" return
  1706. // value can be used to capture response data after the request's "Send" method
  1707. // is called.
  1708. //
  1709. // Creating a request object using this method should be used when you want to inject
  1710. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1711. // access properties on the request object before or after sending the request. If
  1712. // you just want the service response, call the CreateNatGateway method directly
  1713. // instead.
  1714. //
  1715. // Note: You must call the "Send" method on the returned request object in order
  1716. // to execute the request.
  1717. //
  1718. // // Example sending a request using the CreateNatGatewayRequest method.
  1719. // req, resp := client.CreateNatGatewayRequest(params)
  1720. //
  1721. // err := req.Send()
  1722. // if err == nil { // resp is now filled
  1723. // fmt.Println(resp)
  1724. // }
  1725. //
  1726. func (c *EC2) CreateNatGatewayRequest(input *CreateNatGatewayInput) (req *request.Request, output *CreateNatGatewayOutput) {
  1727. op := &request.Operation{
  1728. Name: opCreateNatGateway,
  1729. HTTPMethod: "POST",
  1730. HTTPPath: "/",
  1731. }
  1732. if input == nil {
  1733. input = &CreateNatGatewayInput{}
  1734. }
  1735. req = c.newRequest(op, input, output)
  1736. output = &CreateNatGatewayOutput{}
  1737. req.Data = output
  1738. return
  1739. }
  1740. // Creates a NAT gateway in the specified subnet. A NAT gateway can be used
  1741. // to enable instances in a private subnet to connect to the Internet. This
  1742. // action creates a network interface in the specified subnet with a private
  1743. // IP address from the IP address range of the subnet. For more information,
  1744. // see NAT Gateways (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html)
  1745. // in the Amazon Virtual Private Cloud User Guide.
  1746. func (c *EC2) CreateNatGateway(input *CreateNatGatewayInput) (*CreateNatGatewayOutput, error) {
  1747. req, out := c.CreateNatGatewayRequest(input)
  1748. err := req.Send()
  1749. return out, err
  1750. }
  1751. const opCreateNetworkAcl = "CreateNetworkAcl"
  1752. // CreateNetworkAclRequest generates a "aws/request.Request" representing the
  1753. // client's request for the CreateNetworkAcl operation. The "output" return
  1754. // value can be used to capture response data after the request's "Send" method
  1755. // is called.
  1756. //
  1757. // Creating a request object using this method should be used when you want to inject
  1758. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1759. // access properties on the request object before or after sending the request. If
  1760. // you just want the service response, call the CreateNetworkAcl method directly
  1761. // instead.
  1762. //
  1763. // Note: You must call the "Send" method on the returned request object in order
  1764. // to execute the request.
  1765. //
  1766. // // Example sending a request using the CreateNetworkAclRequest method.
  1767. // req, resp := client.CreateNetworkAclRequest(params)
  1768. //
  1769. // err := req.Send()
  1770. // if err == nil { // resp is now filled
  1771. // fmt.Println(resp)
  1772. // }
  1773. //
  1774. func (c *EC2) CreateNetworkAclRequest(input *CreateNetworkAclInput) (req *request.Request, output *CreateNetworkAclOutput) {
  1775. op := &request.Operation{
  1776. Name: opCreateNetworkAcl,
  1777. HTTPMethod: "POST",
  1778. HTTPPath: "/",
  1779. }
  1780. if input == nil {
  1781. input = &CreateNetworkAclInput{}
  1782. }
  1783. req = c.newRequest(op, input, output)
  1784. output = &CreateNetworkAclOutput{}
  1785. req.Data = output
  1786. return
  1787. }
  1788. // Creates a network ACL in a VPC. Network ACLs provide an optional layer of
  1789. // security (in addition to security groups) for the instances in your VPC.
  1790. //
  1791. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  1792. // in the Amazon Virtual Private Cloud User Guide.
  1793. func (c *EC2) CreateNetworkAcl(input *CreateNetworkAclInput) (*CreateNetworkAclOutput, error) {
  1794. req, out := c.CreateNetworkAclRequest(input)
  1795. err := req.Send()
  1796. return out, err
  1797. }
  1798. const opCreateNetworkAclEntry = "CreateNetworkAclEntry"
  1799. // CreateNetworkAclEntryRequest generates a "aws/request.Request" representing the
  1800. // client's request for the CreateNetworkAclEntry operation. The "output" return
  1801. // value can be used to capture response data after the request's "Send" method
  1802. // is called.
  1803. //
  1804. // Creating a request object using this method should be used when you want to inject
  1805. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1806. // access properties on the request object before or after sending the request. If
  1807. // you just want the service response, call the CreateNetworkAclEntry method directly
  1808. // instead.
  1809. //
  1810. // Note: You must call the "Send" method on the returned request object in order
  1811. // to execute the request.
  1812. //
  1813. // // Example sending a request using the CreateNetworkAclEntryRequest method.
  1814. // req, resp := client.CreateNetworkAclEntryRequest(params)
  1815. //
  1816. // err := req.Send()
  1817. // if err == nil { // resp is now filled
  1818. // fmt.Println(resp)
  1819. // }
  1820. //
  1821. func (c *EC2) CreateNetworkAclEntryRequest(input *CreateNetworkAclEntryInput) (req *request.Request, output *CreateNetworkAclEntryOutput) {
  1822. op := &request.Operation{
  1823. Name: opCreateNetworkAclEntry,
  1824. HTTPMethod: "POST",
  1825. HTTPPath: "/",
  1826. }
  1827. if input == nil {
  1828. input = &CreateNetworkAclEntryInput{}
  1829. }
  1830. req = c.newRequest(op, input, output)
  1831. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  1832. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1833. output = &CreateNetworkAclEntryOutput{}
  1834. req.Data = output
  1835. return
  1836. }
  1837. // Creates an entry (a rule) in a network ACL with the specified rule number.
  1838. // Each network ACL has a set of numbered ingress rules and a separate set of
  1839. // numbered egress rules. When determining whether a packet should be allowed
  1840. // in or out of a subnet associated with the ACL, we process the entries in
  1841. // the ACL according to the rule numbers, in ascending order. Each network ACL
  1842. // has a set of ingress rules and a separate set of egress rules.
  1843. //
  1844. // We recommend that you leave room between the rule numbers (for example,
  1845. // 100, 110, 120, ...), and not number them one right after the other (for example,
  1846. // 101, 102, 103, ...). This makes it easier to add a rule between existing
  1847. // ones without having to renumber the rules.
  1848. //
  1849. // After you add an entry, you can't modify it; you must either replace it,
  1850. // or create an entry and delete the old one.
  1851. //
  1852. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  1853. // in the Amazon Virtual Private Cloud User Guide.
  1854. func (c *EC2) CreateNetworkAclEntry(input *CreateNetworkAclEntryInput) (*CreateNetworkAclEntryOutput, error) {
  1855. req, out := c.CreateNetworkAclEntryRequest(input)
  1856. err := req.Send()
  1857. return out, err
  1858. }
  1859. const opCreateNetworkInterface = "CreateNetworkInterface"
  1860. // CreateNetworkInterfaceRequest generates a "aws/request.Request" representing the
  1861. // client's request for the CreateNetworkInterface operation. The "output" return
  1862. // value can be used to capture response data after the request's "Send" method
  1863. // is called.
  1864. //
  1865. // Creating a request object using this method should be used when you want to inject
  1866. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1867. // access properties on the request object before or after sending the request. If
  1868. // you just want the service response, call the CreateNetworkInterface method directly
  1869. // instead.
  1870. //
  1871. // Note: You must call the "Send" method on the returned request object in order
  1872. // to execute the request.
  1873. //
  1874. // // Example sending a request using the CreateNetworkInterfaceRequest method.
  1875. // req, resp := client.CreateNetworkInterfaceRequest(params)
  1876. //
  1877. // err := req.Send()
  1878. // if err == nil { // resp is now filled
  1879. // fmt.Println(resp)
  1880. // }
  1881. //
  1882. func (c *EC2) CreateNetworkInterfaceRequest(input *CreateNetworkInterfaceInput) (req *request.Request, output *CreateNetworkInterfaceOutput) {
  1883. op := &request.Operation{
  1884. Name: opCreateNetworkInterface,
  1885. HTTPMethod: "POST",
  1886. HTTPPath: "/",
  1887. }
  1888. if input == nil {
  1889. input = &CreateNetworkInterfaceInput{}
  1890. }
  1891. req = c.newRequest(op, input, output)
  1892. output = &CreateNetworkInterfaceOutput{}
  1893. req.Data = output
  1894. return
  1895. }
  1896. // Creates a network interface in the specified subnet.
  1897. //
  1898. // For more information about network interfaces, see Elastic Network Interfaces
  1899. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html) in the
  1900. // Amazon Elastic Compute Cloud User Guide.
  1901. func (c *EC2) CreateNetworkInterface(input *CreateNetworkInterfaceInput) (*CreateNetworkInterfaceOutput, error) {
  1902. req, out := c.CreateNetworkInterfaceRequest(input)
  1903. err := req.Send()
  1904. return out, err
  1905. }
  1906. const opCreatePlacementGroup = "CreatePlacementGroup"
  1907. // CreatePlacementGroupRequest generates a "aws/request.Request" representing the
  1908. // client's request for the CreatePlacementGroup operation. The "output" return
  1909. // value can be used to capture response data after the request's "Send" method
  1910. // is called.
  1911. //
  1912. // Creating a request object using this method should be used when you want to inject
  1913. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1914. // access properties on the request object before or after sending the request. If
  1915. // you just want the service response, call the CreatePlacementGroup method directly
  1916. // instead.
  1917. //
  1918. // Note: You must call the "Send" method on the returned request object in order
  1919. // to execute the request.
  1920. //
  1921. // // Example sending a request using the CreatePlacementGroupRequest method.
  1922. // req, resp := client.CreatePlacementGroupRequest(params)
  1923. //
  1924. // err := req.Send()
  1925. // if err == nil { // resp is now filled
  1926. // fmt.Println(resp)
  1927. // }
  1928. //
  1929. func (c *EC2) CreatePlacementGroupRequest(input *CreatePlacementGroupInput) (req *request.Request, output *CreatePlacementGroupOutput) {
  1930. op := &request.Operation{
  1931. Name: opCreatePlacementGroup,
  1932. HTTPMethod: "POST",
  1933. HTTPPath: "/",
  1934. }
  1935. if input == nil {
  1936. input = &CreatePlacementGroupInput{}
  1937. }
  1938. req = c.newRequest(op, input, output)
  1939. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  1940. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1941. output = &CreatePlacementGroupOutput{}
  1942. req.Data = output
  1943. return
  1944. }
  1945. // Creates a placement group that you launch cluster instances into. You must
  1946. // give the group a name that's unique within the scope of your account.
  1947. //
  1948. // For more information about placement groups and cluster instances, see Cluster
  1949. // Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html)
  1950. // in the Amazon Elastic Compute Cloud User Guide.
  1951. func (c *EC2) CreatePlacementGroup(input *CreatePlacementGroupInput) (*CreatePlacementGroupOutput, error) {
  1952. req, out := c.CreatePlacementGroupRequest(input)
  1953. err := req.Send()
  1954. return out, err
  1955. }
  1956. const opCreateReservedInstancesListing = "CreateReservedInstancesListing"
  1957. // CreateReservedInstancesListingRequest generates a "aws/request.Request" representing the
  1958. // client's request for the CreateReservedInstancesListing operation. The "output" return
  1959. // value can be used to capture response data after the request's "Send" method
  1960. // is called.
  1961. //
  1962. // Creating a request object using this method should be used when you want to inject
  1963. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1964. // access properties on the request object before or after sending the request. If
  1965. // you just want the service response, call the CreateReservedInstancesListing method directly
  1966. // instead.
  1967. //
  1968. // Note: You must call the "Send" method on the returned request object in order
  1969. // to execute the request.
  1970. //
  1971. // // Example sending a request using the CreateReservedInstancesListingRequest method.
  1972. // req, resp := client.CreateReservedInstancesListingRequest(params)
  1973. //
  1974. // err := req.Send()
  1975. // if err == nil { // resp is now filled
  1976. // fmt.Println(resp)
  1977. // }
  1978. //
  1979. func (c *EC2) CreateReservedInstancesListingRequest(input *CreateReservedInstancesListingInput) (req *request.Request, output *CreateReservedInstancesListingOutput) {
  1980. op := &request.Operation{
  1981. Name: opCreateReservedInstancesListing,
  1982. HTTPMethod: "POST",
  1983. HTTPPath: "/",
  1984. }
  1985. if input == nil {
  1986. input = &CreateReservedInstancesListingInput{}
  1987. }
  1988. req = c.newRequest(op, input, output)
  1989. output = &CreateReservedInstancesListingOutput{}
  1990. req.Data = output
  1991. return
  1992. }
  1993. // Creates a listing for Amazon EC2 Reserved Instances to be sold in the Reserved
  1994. // Instance Marketplace. You can submit one Reserved Instance listing at a time.
  1995. // To get a list of your Reserved Instances, you can use the DescribeReservedInstances
  1996. // operation.
  1997. //
  1998. // The Reserved Instance Marketplace matches sellers who want to resell Reserved
  1999. // Instance capacity that they no longer need with buyers who want to purchase
  2000. // additional capacity. Reserved Instances bought and sold through the Reserved
  2001. // Instance Marketplace work like any other Reserved Instances.
  2002. //
  2003. // To sell your Reserved Instances, you must first register as a seller in
  2004. // the Reserved Instance Marketplace. After completing the registration process,
  2005. // you can create a Reserved Instance Marketplace listing of some or all of
  2006. // your Reserved Instances, and specify the upfront price to receive for them.
  2007. // Your Reserved Instance listings then become available for purchase. To view
  2008. // the details of your Reserved Instance listing, you can use the DescribeReservedInstancesListings
  2009. // operation.
  2010. //
  2011. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  2012. // in the Amazon Elastic Compute Cloud User Guide.
  2013. func (c *EC2) CreateReservedInstancesListing(input *CreateReservedInstancesListingInput) (*CreateReservedInstancesListingOutput, error) {
  2014. req, out := c.CreateReservedInstancesListingRequest(input)
  2015. err := req.Send()
  2016. return out, err
  2017. }
  2018. const opCreateRoute = "CreateRoute"
  2019. // CreateRouteRequest generates a "aws/request.Request" representing the
  2020. // client's request for the CreateRoute operation. The "output" return
  2021. // value can be used to capture response data after the request's "Send" method
  2022. // is called.
  2023. //
  2024. // Creating a request object using this method should be used when you want to inject
  2025. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2026. // access properties on the request object before or after sending the request. If
  2027. // you just want the service response, call the CreateRoute method directly
  2028. // instead.
  2029. //
  2030. // Note: You must call the "Send" method on the returned request object in order
  2031. // to execute the request.
  2032. //
  2033. // // Example sending a request using the CreateRouteRequest method.
  2034. // req, resp := client.CreateRouteRequest(params)
  2035. //
  2036. // err := req.Send()
  2037. // if err == nil { // resp is now filled
  2038. // fmt.Println(resp)
  2039. // }
  2040. //
  2041. func (c *EC2) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, output *CreateRouteOutput) {
  2042. op := &request.Operation{
  2043. Name: opCreateRoute,
  2044. HTTPMethod: "POST",
  2045. HTTPPath: "/",
  2046. }
  2047. if input == nil {
  2048. input = &CreateRouteInput{}
  2049. }
  2050. req = c.newRequest(op, input, output)
  2051. output = &CreateRouteOutput{}
  2052. req.Data = output
  2053. return
  2054. }
  2055. // Creates a route in a route table within a VPC.
  2056. //
  2057. // You must specify one of the following targets: Internet gateway or virtual
  2058. // private gateway, NAT instance, NAT gateway, VPC peering connection, or network
  2059. // interface.
  2060. //
  2061. // When determining how to route traffic, we use the route with the most specific
  2062. // match. For example, let's say the traffic is destined for 192.0.2.3, and
  2063. // the route table includes the following two routes:
  2064. //
  2065. // 192.0.2.0/24 (goes to some target A)
  2066. //
  2067. // 192.0.2.0/28 (goes to some target B)
  2068. //
  2069. // Both routes apply to the traffic destined for 192.0.2.3. However, the
  2070. // second route in the list covers a smaller number of IP addresses and is therefore
  2071. // more specific, so we use that route to determine where to target the traffic.
  2072. //
  2073. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  2074. // in the Amazon Virtual Private Cloud User Guide.
  2075. func (c *EC2) CreateRoute(input *CreateRouteInput) (*CreateRouteOutput, error) {
  2076. req, out := c.CreateRouteRequest(input)
  2077. err := req.Send()
  2078. return out, err
  2079. }
  2080. const opCreateRouteTable = "CreateRouteTable"
  2081. // CreateRouteTableRequest generates a "aws/request.Request" representing the
  2082. // client's request for the CreateRouteTable operation. The "output" return
  2083. // value can be used to capture response data after the request's "Send" method
  2084. // is called.
  2085. //
  2086. // Creating a request object using this method should be used when you want to inject
  2087. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2088. // access properties on the request object before or after sending the request. If
  2089. // you just want the service response, call the CreateRouteTable method directly
  2090. // instead.
  2091. //
  2092. // Note: You must call the "Send" method on the returned request object in order
  2093. // to execute the request.
  2094. //
  2095. // // Example sending a request using the CreateRouteTableRequest method.
  2096. // req, resp := client.CreateRouteTableRequest(params)
  2097. //
  2098. // err := req.Send()
  2099. // if err == nil { // resp is now filled
  2100. // fmt.Println(resp)
  2101. // }
  2102. //
  2103. func (c *EC2) CreateRouteTableRequest(input *CreateRouteTableInput) (req *request.Request, output *CreateRouteTableOutput) {
  2104. op := &request.Operation{
  2105. Name: opCreateRouteTable,
  2106. HTTPMethod: "POST",
  2107. HTTPPath: "/",
  2108. }
  2109. if input == nil {
  2110. input = &CreateRouteTableInput{}
  2111. }
  2112. req = c.newRequest(op, input, output)
  2113. output = &CreateRouteTableOutput{}
  2114. req.Data = output
  2115. return
  2116. }
  2117. // Creates a route table for the specified VPC. After you create a route table,
  2118. // you can add routes and associate the table with a subnet.
  2119. //
  2120. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  2121. // in the Amazon Virtual Private Cloud User Guide.
  2122. func (c *EC2) CreateRouteTable(input *CreateRouteTableInput) (*CreateRouteTableOutput, error) {
  2123. req, out := c.CreateRouteTableRequest(input)
  2124. err := req.Send()
  2125. return out, err
  2126. }
  2127. const opCreateSecurityGroup = "CreateSecurityGroup"
  2128. // CreateSecurityGroupRequest generates a "aws/request.Request" representing the
  2129. // client's request for the CreateSecurityGroup operation. The "output" return
  2130. // value can be used to capture response data after the request's "Send" method
  2131. // is called.
  2132. //
  2133. // Creating a request object using this method should be used when you want to inject
  2134. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2135. // access properties on the request object before or after sending the request. If
  2136. // you just want the service response, call the CreateSecurityGroup method directly
  2137. // instead.
  2138. //
  2139. // Note: You must call the "Send" method on the returned request object in order
  2140. // to execute the request.
  2141. //
  2142. // // Example sending a request using the CreateSecurityGroupRequest method.
  2143. // req, resp := client.CreateSecurityGroupRequest(params)
  2144. //
  2145. // err := req.Send()
  2146. // if err == nil { // resp is now filled
  2147. // fmt.Println(resp)
  2148. // }
  2149. //
  2150. func (c *EC2) CreateSecurityGroupRequest(input *CreateSecurityGroupInput) (req *request.Request, output *CreateSecurityGroupOutput) {
  2151. op := &request.Operation{
  2152. Name: opCreateSecurityGroup,
  2153. HTTPMethod: "POST",
  2154. HTTPPath: "/",
  2155. }
  2156. if input == nil {
  2157. input = &CreateSecurityGroupInput{}
  2158. }
  2159. req = c.newRequest(op, input, output)
  2160. output = &CreateSecurityGroupOutput{}
  2161. req.Data = output
  2162. return
  2163. }
  2164. // Creates a security group.
  2165. //
  2166. // A security group is for use with instances either in the EC2-Classic platform
  2167. // or in a specific VPC. For more information, see Amazon EC2 Security Groups
  2168. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
  2169. // in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your
  2170. // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  2171. // in the Amazon Virtual Private Cloud User Guide.
  2172. //
  2173. // EC2-Classic: You can have up to 500 security groups.
  2174. //
  2175. // EC2-VPC: You can create up to 500 security groups per VPC.
  2176. //
  2177. // When you create a security group, you specify a friendly name of your choice.
  2178. // You can have a security group for use in EC2-Classic with the same name as
  2179. // a security group for use in a VPC. However, you can't have two security groups
  2180. // for use in EC2-Classic with the same name or two security groups for use
  2181. // in a VPC with the same name.
  2182. //
  2183. // You have a default security group for use in EC2-Classic and a default security
  2184. // group for use in your VPC. If you don't specify a security group when you
  2185. // launch an instance, the instance is launched into the appropriate default
  2186. // security group. A default security group includes a default rule that grants
  2187. // instances unrestricted network access to each other.
  2188. //
  2189. // You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress,
  2190. // AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.
  2191. func (c *EC2) CreateSecurityGroup(input *CreateSecurityGroupInput) (*CreateSecurityGroupOutput, error) {
  2192. req, out := c.CreateSecurityGroupRequest(input)
  2193. err := req.Send()
  2194. return out, err
  2195. }
  2196. const opCreateSnapshot = "CreateSnapshot"
  2197. // CreateSnapshotRequest generates a "aws/request.Request" representing the
  2198. // client's request for the CreateSnapshot operation. The "output" return
  2199. // value can be used to capture response data after the request's "Send" method
  2200. // is called.
  2201. //
  2202. // Creating a request object using this method should be used when you want to inject
  2203. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2204. // access properties on the request object before or after sending the request. If
  2205. // you just want the service response, call the CreateSnapshot method directly
  2206. // instead.
  2207. //
  2208. // Note: You must call the "Send" method on the returned request object in order
  2209. // to execute the request.
  2210. //
  2211. // // Example sending a request using the CreateSnapshotRequest method.
  2212. // req, resp := client.CreateSnapshotRequest(params)
  2213. //
  2214. // err := req.Send()
  2215. // if err == nil { // resp is now filled
  2216. // fmt.Println(resp)
  2217. // }
  2218. //
  2219. func (c *EC2) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *Snapshot) {
  2220. op := &request.Operation{
  2221. Name: opCreateSnapshot,
  2222. HTTPMethod: "POST",
  2223. HTTPPath: "/",
  2224. }
  2225. if input == nil {
  2226. input = &CreateSnapshotInput{}
  2227. }
  2228. req = c.newRequest(op, input, output)
  2229. output = &Snapshot{}
  2230. req.Data = output
  2231. return
  2232. }
  2233. // Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use
  2234. // snapshots for backups, to make copies of EBS volumes, and to save data before
  2235. // shutting down an instance.
  2236. //
  2237. // When a snapshot is created, any AWS Marketplace product codes that are associated
  2238. // with the source volume are propagated to the snapshot.
  2239. //
  2240. // You can take a snapshot of an attached volume that is in use. However, snapshots
  2241. // only capture data that has been written to your EBS volume at the time the
  2242. // snapshot command is issued; this may exclude any data that has been cached
  2243. // by any applications or the operating system. If you can pause any file systems
  2244. // on the volume long enough to take a snapshot, your snapshot should be complete.
  2245. // However, if you cannot pause all file writes to the volume, you should unmount
  2246. // the volume from within the instance, issue the snapshot command, and then
  2247. // remount the volume to ensure a consistent and complete snapshot. You may
  2248. // remount and use your volume while the snapshot status is pending.
  2249. //
  2250. // To create a snapshot for EBS volumes that serve as root devices, you should
  2251. // stop the instance before taking the snapshot.
  2252. //
  2253. // Snapshots that are taken from encrypted volumes are automatically encrypted.
  2254. // Volumes that are created from encrypted snapshots are also automatically
  2255. // encrypted. Your encrypted volumes and any associated snapshots always remain
  2256. // protected.
  2257. //
  2258. // For more information, see Amazon Elastic Block Store (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html)
  2259. // and Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  2260. // in the Amazon Elastic Compute Cloud User Guide.
  2261. func (c *EC2) CreateSnapshot(input *CreateSnapshotInput) (*Snapshot, error) {
  2262. req, out := c.CreateSnapshotRequest(input)
  2263. err := req.Send()
  2264. return out, err
  2265. }
  2266. const opCreateSpotDatafeedSubscription = "CreateSpotDatafeedSubscription"
  2267. // CreateSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  2268. // client's request for the CreateSpotDatafeedSubscription operation. The "output" return
  2269. // value can be used to capture response data after the request's "Send" method
  2270. // is called.
  2271. //
  2272. // Creating a request object using this method should be used when you want to inject
  2273. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2274. // access properties on the request object before or after sending the request. If
  2275. // you just want the service response, call the CreateSpotDatafeedSubscription method directly
  2276. // instead.
  2277. //
  2278. // Note: You must call the "Send" method on the returned request object in order
  2279. // to execute the request.
  2280. //
  2281. // // Example sending a request using the CreateSpotDatafeedSubscriptionRequest method.
  2282. // req, resp := client.CreateSpotDatafeedSubscriptionRequest(params)
  2283. //
  2284. // err := req.Send()
  2285. // if err == nil { // resp is now filled
  2286. // fmt.Println(resp)
  2287. // }
  2288. //
  2289. func (c *EC2) CreateSpotDatafeedSubscriptionRequest(input *CreateSpotDatafeedSubscriptionInput) (req *request.Request, output *CreateSpotDatafeedSubscriptionOutput) {
  2290. op := &request.Operation{
  2291. Name: opCreateSpotDatafeedSubscription,
  2292. HTTPMethod: "POST",
  2293. HTTPPath: "/",
  2294. }
  2295. if input == nil {
  2296. input = &CreateSpotDatafeedSubscriptionInput{}
  2297. }
  2298. req = c.newRequest(op, input, output)
  2299. output = &CreateSpotDatafeedSubscriptionOutput{}
  2300. req.Data = output
  2301. return
  2302. }
  2303. // Creates a data feed for Spot instances, enabling you to view Spot instance
  2304. // usage logs. You can create one data feed per AWS account. For more information,
  2305. // see Spot Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html)
  2306. // in the Amazon Elastic Compute Cloud User Guide.
  2307. func (c *EC2) CreateSpotDatafeedSubscription(input *CreateSpotDatafeedSubscriptionInput) (*CreateSpotDatafeedSubscriptionOutput, error) {
  2308. req, out := c.CreateSpotDatafeedSubscriptionRequest(input)
  2309. err := req.Send()
  2310. return out, err
  2311. }
  2312. const opCreateSubnet = "CreateSubnet"
  2313. // CreateSubnetRequest generates a "aws/request.Request" representing the
  2314. // client's request for the CreateSubnet operation. The "output" return
  2315. // value can be used to capture response data after the request's "Send" method
  2316. // is called.
  2317. //
  2318. // Creating a request object using this method should be used when you want to inject
  2319. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2320. // access properties on the request object before or after sending the request. If
  2321. // you just want the service response, call the CreateSubnet method directly
  2322. // instead.
  2323. //
  2324. // Note: You must call the "Send" method on the returned request object in order
  2325. // to execute the request.
  2326. //
  2327. // // Example sending a request using the CreateSubnetRequest method.
  2328. // req, resp := client.CreateSubnetRequest(params)
  2329. //
  2330. // err := req.Send()
  2331. // if err == nil { // resp is now filled
  2332. // fmt.Println(resp)
  2333. // }
  2334. //
  2335. func (c *EC2) CreateSubnetRequest(input *CreateSubnetInput) (req *request.Request, output *CreateSubnetOutput) {
  2336. op := &request.Operation{
  2337. Name: opCreateSubnet,
  2338. HTTPMethod: "POST",
  2339. HTTPPath: "/",
  2340. }
  2341. if input == nil {
  2342. input = &CreateSubnetInput{}
  2343. }
  2344. req = c.newRequest(op, input, output)
  2345. output = &CreateSubnetOutput{}
  2346. req.Data = output
  2347. return
  2348. }
  2349. // Creates a subnet in an existing VPC.
  2350. //
  2351. // When you create each subnet, you provide the VPC ID and the CIDR block you
  2352. // want for the subnet. After you create a subnet, you can't change its CIDR
  2353. // block. The subnet's CIDR block can be the same as the VPC's CIDR block (assuming
  2354. // you want only a single subnet in the VPC), or a subset of the VPC's CIDR
  2355. // block. If you create more than one subnet in a VPC, the subnets' CIDR blocks
  2356. // must not overlap. The smallest subnet (and VPC) you can create uses a /28
  2357. // netmask (16 IP addresses), and the largest uses a /16 netmask (65,536 IP
  2358. // addresses).
  2359. //
  2360. // AWS reserves both the first four and the last IP address in each subnet's
  2361. // CIDR block. They're not available for use.
  2362. //
  2363. // If you add more than one subnet to a VPC, they're set up in a star topology
  2364. // with a logical router in the middle.
  2365. //
  2366. // If you launch an instance in a VPC using an Amazon EBS-backed AMI, the IP
  2367. // address doesn't change if you stop and restart the instance (unlike a similar
  2368. // instance launched outside a VPC, which gets a new IP address when restarted).
  2369. // It's therefore possible to have a subnet with no running instances (they're
  2370. // all stopped), but no remaining IP addresses available.
  2371. //
  2372. // For more information about subnets, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  2373. // in the Amazon Virtual Private Cloud User Guide.
  2374. func (c *EC2) CreateSubnet(input *CreateSubnetInput) (*CreateSubnetOutput, error) {
  2375. req, out := c.CreateSubnetRequest(input)
  2376. err := req.Send()
  2377. return out, err
  2378. }
  2379. const opCreateTags = "CreateTags"
  2380. // CreateTagsRequest generates a "aws/request.Request" representing the
  2381. // client's request for the CreateTags operation. The "output" return
  2382. // value can be used to capture response data after the request's "Send" method
  2383. // is called.
  2384. //
  2385. // Creating a request object using this method should be used when you want to inject
  2386. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2387. // access properties on the request object before or after sending the request. If
  2388. // you just want the service response, call the CreateTags method directly
  2389. // instead.
  2390. //
  2391. // Note: You must call the "Send" method on the returned request object in order
  2392. // to execute the request.
  2393. //
  2394. // // Example sending a request using the CreateTagsRequest method.
  2395. // req, resp := client.CreateTagsRequest(params)
  2396. //
  2397. // err := req.Send()
  2398. // if err == nil { // resp is now filled
  2399. // fmt.Println(resp)
  2400. // }
  2401. //
  2402. func (c *EC2) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) {
  2403. op := &request.Operation{
  2404. Name: opCreateTags,
  2405. HTTPMethod: "POST",
  2406. HTTPPath: "/",
  2407. }
  2408. if input == nil {
  2409. input = &CreateTagsInput{}
  2410. }
  2411. req = c.newRequest(op, input, output)
  2412. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  2413. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2414. output = &CreateTagsOutput{}
  2415. req.Data = output
  2416. return
  2417. }
  2418. // Adds or overwrites one or more tags for the specified Amazon EC2 resource
  2419. // or resources. Each resource can have a maximum of 10 tags. Each tag consists
  2420. // of a key and optional value. Tag keys must be unique per resource.
  2421. //
  2422. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  2423. // in the Amazon Elastic Compute Cloud User Guide. For more information about
  2424. // creating IAM policies that control users' access to resources based on tags,
  2425. // see Supported Resource-Level Permissions for Amazon EC2 API Actions (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-supported-iam-actions-resources.html)
  2426. // in the Amazon Elastic Compute Cloud User Guide.
  2427. func (c *EC2) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) {
  2428. req, out := c.CreateTagsRequest(input)
  2429. err := req.Send()
  2430. return out, err
  2431. }
  2432. const opCreateVolume = "CreateVolume"
  2433. // CreateVolumeRequest generates a "aws/request.Request" representing the
  2434. // client's request for the CreateVolume operation. The "output" return
  2435. // value can be used to capture response data after the request's "Send" method
  2436. // is called.
  2437. //
  2438. // Creating a request object using this method should be used when you want to inject
  2439. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2440. // access properties on the request object before or after sending the request. If
  2441. // you just want the service response, call the CreateVolume method directly
  2442. // instead.
  2443. //
  2444. // Note: You must call the "Send" method on the returned request object in order
  2445. // to execute the request.
  2446. //
  2447. // // Example sending a request using the CreateVolumeRequest method.
  2448. // req, resp := client.CreateVolumeRequest(params)
  2449. //
  2450. // err := req.Send()
  2451. // if err == nil { // resp is now filled
  2452. // fmt.Println(resp)
  2453. // }
  2454. //
  2455. func (c *EC2) CreateVolumeRequest(input *CreateVolumeInput) (req *request.Request, output *Volume) {
  2456. op := &request.Operation{
  2457. Name: opCreateVolume,
  2458. HTTPMethod: "POST",
  2459. HTTPPath: "/",
  2460. }
  2461. if input == nil {
  2462. input = &CreateVolumeInput{}
  2463. }
  2464. req = c.newRequest(op, input, output)
  2465. output = &Volume{}
  2466. req.Data = output
  2467. return
  2468. }
  2469. // Creates an EBS volume that can be attached to an instance in the same Availability
  2470. // Zone. The volume is created in the regional endpoint that you send the HTTP
  2471. // request to. For more information see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html).
  2472. //
  2473. // You can create a new empty volume or restore a volume from an EBS snapshot.
  2474. // Any AWS Marketplace product codes from the snapshot are propagated to the
  2475. // volume.
  2476. //
  2477. // You can create encrypted volumes with the Encrypted parameter. Encrypted
  2478. // volumes may only be attached to instances that support Amazon EBS encryption.
  2479. // Volumes that are created from encrypted snapshots are also automatically
  2480. // encrypted. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  2481. // in the Amazon Elastic Compute Cloud User Guide.
  2482. //
  2483. // For more information, see Creating or Restoring an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html)
  2484. // in the Amazon Elastic Compute Cloud User Guide.
  2485. func (c *EC2) CreateVolume(input *CreateVolumeInput) (*Volume, error) {
  2486. req, out := c.CreateVolumeRequest(input)
  2487. err := req.Send()
  2488. return out, err
  2489. }
  2490. const opCreateVpc = "CreateVpc"
  2491. // CreateVpcRequest generates a "aws/request.Request" representing the
  2492. // client's request for the CreateVpc operation. The "output" return
  2493. // value can be used to capture response data after the request's "Send" method
  2494. // is called.
  2495. //
  2496. // Creating a request object using this method should be used when you want to inject
  2497. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2498. // access properties on the request object before or after sending the request. If
  2499. // you just want the service response, call the CreateVpc method directly
  2500. // instead.
  2501. //
  2502. // Note: You must call the "Send" method on the returned request object in order
  2503. // to execute the request.
  2504. //
  2505. // // Example sending a request using the CreateVpcRequest method.
  2506. // req, resp := client.CreateVpcRequest(params)
  2507. //
  2508. // err := req.Send()
  2509. // if err == nil { // resp is now filled
  2510. // fmt.Println(resp)
  2511. // }
  2512. //
  2513. func (c *EC2) CreateVpcRequest(input *CreateVpcInput) (req *request.Request, output *CreateVpcOutput) {
  2514. op := &request.Operation{
  2515. Name: opCreateVpc,
  2516. HTTPMethod: "POST",
  2517. HTTPPath: "/",
  2518. }
  2519. if input == nil {
  2520. input = &CreateVpcInput{}
  2521. }
  2522. req = c.newRequest(op, input, output)
  2523. output = &CreateVpcOutput{}
  2524. req.Data = output
  2525. return
  2526. }
  2527. // Creates a VPC with the specified CIDR block.
  2528. //
  2529. // The smallest VPC you can create uses a /28 netmask (16 IP addresses), and
  2530. // the largest uses a /16 netmask (65,536 IP addresses). To help you decide
  2531. // how big to make your VPC, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  2532. // in the Amazon Virtual Private Cloud User Guide.
  2533. //
  2534. // By default, each instance you launch in the VPC has the default DHCP options,
  2535. // which includes only a default DNS server that we provide (AmazonProvidedDNS).
  2536. // For more information about DHCP options, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  2537. // in the Amazon Virtual Private Cloud User Guide.
  2538. //
  2539. // You can specify the instance tenancy value for the VPC when you create it.
  2540. // You can't change this value for the VPC after you create it. For more information,
  2541. // see Dedicated Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/dedicated-instance.html.html)
  2542. // in the Amazon Virtual Private Cloud User Guide.
  2543. func (c *EC2) CreateVpc(input *CreateVpcInput) (*CreateVpcOutput, error) {
  2544. req, out := c.CreateVpcRequest(input)
  2545. err := req.Send()
  2546. return out, err
  2547. }
  2548. const opCreateVpcEndpoint = "CreateVpcEndpoint"
  2549. // CreateVpcEndpointRequest generates a "aws/request.Request" representing the
  2550. // client's request for the CreateVpcEndpoint operation. The "output" return
  2551. // value can be used to capture response data after the request's "Send" method
  2552. // is called.
  2553. //
  2554. // Creating a request object using this method should be used when you want to inject
  2555. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2556. // access properties on the request object before or after sending the request. If
  2557. // you just want the service response, call the CreateVpcEndpoint method directly
  2558. // instead.
  2559. //
  2560. // Note: You must call the "Send" method on the returned request object in order
  2561. // to execute the request.
  2562. //
  2563. // // Example sending a request using the CreateVpcEndpointRequest method.
  2564. // req, resp := client.CreateVpcEndpointRequest(params)
  2565. //
  2566. // err := req.Send()
  2567. // if err == nil { // resp is now filled
  2568. // fmt.Println(resp)
  2569. // }
  2570. //
  2571. func (c *EC2) CreateVpcEndpointRequest(input *CreateVpcEndpointInput) (req *request.Request, output *CreateVpcEndpointOutput) {
  2572. op := &request.Operation{
  2573. Name: opCreateVpcEndpoint,
  2574. HTTPMethod: "POST",
  2575. HTTPPath: "/",
  2576. }
  2577. if input == nil {
  2578. input = &CreateVpcEndpointInput{}
  2579. }
  2580. req = c.newRequest(op, input, output)
  2581. output = &CreateVpcEndpointOutput{}
  2582. req.Data = output
  2583. return
  2584. }
  2585. // Creates a VPC endpoint for a specified AWS service. An endpoint enables you
  2586. // to create a private connection between your VPC and another AWS service in
  2587. // your account. You can specify an endpoint policy to attach to the endpoint
  2588. // that will control access to the service from your VPC. You can also specify
  2589. // the VPC route tables that use the endpoint.
  2590. //
  2591. // Currently, only endpoints to Amazon S3 are supported.
  2592. func (c *EC2) CreateVpcEndpoint(input *CreateVpcEndpointInput) (*CreateVpcEndpointOutput, error) {
  2593. req, out := c.CreateVpcEndpointRequest(input)
  2594. err := req.Send()
  2595. return out, err
  2596. }
  2597. const opCreateVpcPeeringConnection = "CreateVpcPeeringConnection"
  2598. // CreateVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  2599. // client's request for the CreateVpcPeeringConnection operation. The "output" return
  2600. // value can be used to capture response data after the request's "Send" method
  2601. // is called.
  2602. //
  2603. // Creating a request object using this method should be used when you want to inject
  2604. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2605. // access properties on the request object before or after sending the request. If
  2606. // you just want the service response, call the CreateVpcPeeringConnection method directly
  2607. // instead.
  2608. //
  2609. // Note: You must call the "Send" method on the returned request object in order
  2610. // to execute the request.
  2611. //
  2612. // // Example sending a request using the CreateVpcPeeringConnectionRequest method.
  2613. // req, resp := client.CreateVpcPeeringConnectionRequest(params)
  2614. //
  2615. // err := req.Send()
  2616. // if err == nil { // resp is now filled
  2617. // fmt.Println(resp)
  2618. // }
  2619. //
  2620. func (c *EC2) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConnectionInput) (req *request.Request, output *CreateVpcPeeringConnectionOutput) {
  2621. op := &request.Operation{
  2622. Name: opCreateVpcPeeringConnection,
  2623. HTTPMethod: "POST",
  2624. HTTPPath: "/",
  2625. }
  2626. if input == nil {
  2627. input = &CreateVpcPeeringConnectionInput{}
  2628. }
  2629. req = c.newRequest(op, input, output)
  2630. output = &CreateVpcPeeringConnectionOutput{}
  2631. req.Data = output
  2632. return
  2633. }
  2634. // Requests a VPC peering connection between two VPCs: a requester VPC that
  2635. // you own and a peer VPC with which to create the connection. The peer VPC
  2636. // can belong to another AWS account. The requester VPC and peer VPC cannot
  2637. // have overlapping CIDR blocks.
  2638. //
  2639. // The owner of the peer VPC must accept the peering request to activate the
  2640. // peering connection. The VPC peering connection request expires after 7 days,
  2641. // after which it cannot be accepted or rejected.
  2642. //
  2643. // A CreateVpcPeeringConnection request between VPCs with overlapping CIDR
  2644. // blocks results in the VPC peering connection having a status of failed.
  2645. func (c *EC2) CreateVpcPeeringConnection(input *CreateVpcPeeringConnectionInput) (*CreateVpcPeeringConnectionOutput, error) {
  2646. req, out := c.CreateVpcPeeringConnectionRequest(input)
  2647. err := req.Send()
  2648. return out, err
  2649. }
  2650. const opCreateVpnConnection = "CreateVpnConnection"
  2651. // CreateVpnConnectionRequest generates a "aws/request.Request" representing the
  2652. // client's request for the CreateVpnConnection operation. The "output" return
  2653. // value can be used to capture response data after the request's "Send" method
  2654. // is called.
  2655. //
  2656. // Creating a request object using this method should be used when you want to inject
  2657. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2658. // access properties on the request object before or after sending the request. If
  2659. // you just want the service response, call the CreateVpnConnection method directly
  2660. // instead.
  2661. //
  2662. // Note: You must call the "Send" method on the returned request object in order
  2663. // to execute the request.
  2664. //
  2665. // // Example sending a request using the CreateVpnConnectionRequest method.
  2666. // req, resp := client.CreateVpnConnectionRequest(params)
  2667. //
  2668. // err := req.Send()
  2669. // if err == nil { // resp is now filled
  2670. // fmt.Println(resp)
  2671. // }
  2672. //
  2673. func (c *EC2) CreateVpnConnectionRequest(input *CreateVpnConnectionInput) (req *request.Request, output *CreateVpnConnectionOutput) {
  2674. op := &request.Operation{
  2675. Name: opCreateVpnConnection,
  2676. HTTPMethod: "POST",
  2677. HTTPPath: "/",
  2678. }
  2679. if input == nil {
  2680. input = &CreateVpnConnectionInput{}
  2681. }
  2682. req = c.newRequest(op, input, output)
  2683. output = &CreateVpnConnectionOutput{}
  2684. req.Data = output
  2685. return
  2686. }
  2687. // Creates a VPN connection between an existing virtual private gateway and
  2688. // a VPN customer gateway. The only supported connection type is ipsec.1.
  2689. //
  2690. // The response includes information that you need to give to your network
  2691. // administrator to configure your customer gateway.
  2692. //
  2693. // We strongly recommend that you use HTTPS when calling this operation because
  2694. // the response contains sensitive cryptographic information for configuring
  2695. // your customer gateway.
  2696. //
  2697. // If you decide to shut down your VPN connection for any reason and later
  2698. // create a new VPN connection, you must reconfigure your customer gateway with
  2699. // the new information returned from this call.
  2700. //
  2701. // This is an idempotent operation. If you perform the operation more than
  2702. // once, Amazon EC2 doesn't return an error.
  2703. //
  2704. // For more information about VPN connections, see Adding a Hardware Virtual
  2705. // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  2706. // in the Amazon Virtual Private Cloud User Guide.
  2707. func (c *EC2) CreateVpnConnection(input *CreateVpnConnectionInput) (*CreateVpnConnectionOutput, error) {
  2708. req, out := c.CreateVpnConnectionRequest(input)
  2709. err := req.Send()
  2710. return out, err
  2711. }
  2712. const opCreateVpnConnectionRoute = "CreateVpnConnectionRoute"
  2713. // CreateVpnConnectionRouteRequest generates a "aws/request.Request" representing the
  2714. // client's request for the CreateVpnConnectionRoute operation. The "output" return
  2715. // value can be used to capture response data after the request's "Send" method
  2716. // is called.
  2717. //
  2718. // Creating a request object using this method should be used when you want to inject
  2719. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2720. // access properties on the request object before or after sending the request. If
  2721. // you just want the service response, call the CreateVpnConnectionRoute method directly
  2722. // instead.
  2723. //
  2724. // Note: You must call the "Send" method on the returned request object in order
  2725. // to execute the request.
  2726. //
  2727. // // Example sending a request using the CreateVpnConnectionRouteRequest method.
  2728. // req, resp := client.CreateVpnConnectionRouteRequest(params)
  2729. //
  2730. // err := req.Send()
  2731. // if err == nil { // resp is now filled
  2732. // fmt.Println(resp)
  2733. // }
  2734. //
  2735. func (c *EC2) CreateVpnConnectionRouteRequest(input *CreateVpnConnectionRouteInput) (req *request.Request, output *CreateVpnConnectionRouteOutput) {
  2736. op := &request.Operation{
  2737. Name: opCreateVpnConnectionRoute,
  2738. HTTPMethod: "POST",
  2739. HTTPPath: "/",
  2740. }
  2741. if input == nil {
  2742. input = &CreateVpnConnectionRouteInput{}
  2743. }
  2744. req = c.newRequest(op, input, output)
  2745. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  2746. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2747. output = &CreateVpnConnectionRouteOutput{}
  2748. req.Data = output
  2749. return
  2750. }
  2751. // Creates a static route associated with a VPN connection between an existing
  2752. // virtual private gateway and a VPN customer gateway. The static route allows
  2753. // traffic to be routed from the virtual private gateway to the VPN customer
  2754. // gateway.
  2755. //
  2756. // For more information about VPN connections, see Adding a Hardware Virtual
  2757. // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  2758. // in the Amazon Virtual Private Cloud User Guide.
  2759. func (c *EC2) CreateVpnConnectionRoute(input *CreateVpnConnectionRouteInput) (*CreateVpnConnectionRouteOutput, error) {
  2760. req, out := c.CreateVpnConnectionRouteRequest(input)
  2761. err := req.Send()
  2762. return out, err
  2763. }
  2764. const opCreateVpnGateway = "CreateVpnGateway"
  2765. // CreateVpnGatewayRequest generates a "aws/request.Request" representing the
  2766. // client's request for the CreateVpnGateway operation. The "output" return
  2767. // value can be used to capture response data after the request's "Send" method
  2768. // is called.
  2769. //
  2770. // Creating a request object using this method should be used when you want to inject
  2771. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2772. // access properties on the request object before or after sending the request. If
  2773. // you just want the service response, call the CreateVpnGateway method directly
  2774. // instead.
  2775. //
  2776. // Note: You must call the "Send" method on the returned request object in order
  2777. // to execute the request.
  2778. //
  2779. // // Example sending a request using the CreateVpnGatewayRequest method.
  2780. // req, resp := client.CreateVpnGatewayRequest(params)
  2781. //
  2782. // err := req.Send()
  2783. // if err == nil { // resp is now filled
  2784. // fmt.Println(resp)
  2785. // }
  2786. //
  2787. func (c *EC2) CreateVpnGatewayRequest(input *CreateVpnGatewayInput) (req *request.Request, output *CreateVpnGatewayOutput) {
  2788. op := &request.Operation{
  2789. Name: opCreateVpnGateway,
  2790. HTTPMethod: "POST",
  2791. HTTPPath: "/",
  2792. }
  2793. if input == nil {
  2794. input = &CreateVpnGatewayInput{}
  2795. }
  2796. req = c.newRequest(op, input, output)
  2797. output = &CreateVpnGatewayOutput{}
  2798. req.Data = output
  2799. return
  2800. }
  2801. // Creates a virtual private gateway. A virtual private gateway is the endpoint
  2802. // on the VPC side of your VPN connection. You can create a virtual private
  2803. // gateway before creating the VPC itself.
  2804. //
  2805. // For more information about virtual private gateways, see Adding a Hardware
  2806. // Virtual Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  2807. // in the Amazon Virtual Private Cloud User Guide.
  2808. func (c *EC2) CreateVpnGateway(input *CreateVpnGatewayInput) (*CreateVpnGatewayOutput, error) {
  2809. req, out := c.CreateVpnGatewayRequest(input)
  2810. err := req.Send()
  2811. return out, err
  2812. }
  2813. const opDeleteCustomerGateway = "DeleteCustomerGateway"
  2814. // DeleteCustomerGatewayRequest generates a "aws/request.Request" representing the
  2815. // client's request for the DeleteCustomerGateway operation. The "output" return
  2816. // value can be used to capture response data after the request's "Send" method
  2817. // is called.
  2818. //
  2819. // Creating a request object using this method should be used when you want to inject
  2820. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2821. // access properties on the request object before or after sending the request. If
  2822. // you just want the service response, call the DeleteCustomerGateway method directly
  2823. // instead.
  2824. //
  2825. // Note: You must call the "Send" method on the returned request object in order
  2826. // to execute the request.
  2827. //
  2828. // // Example sending a request using the DeleteCustomerGatewayRequest method.
  2829. // req, resp := client.DeleteCustomerGatewayRequest(params)
  2830. //
  2831. // err := req.Send()
  2832. // if err == nil { // resp is now filled
  2833. // fmt.Println(resp)
  2834. // }
  2835. //
  2836. func (c *EC2) DeleteCustomerGatewayRequest(input *DeleteCustomerGatewayInput) (req *request.Request, output *DeleteCustomerGatewayOutput) {
  2837. op := &request.Operation{
  2838. Name: opDeleteCustomerGateway,
  2839. HTTPMethod: "POST",
  2840. HTTPPath: "/",
  2841. }
  2842. if input == nil {
  2843. input = &DeleteCustomerGatewayInput{}
  2844. }
  2845. req = c.newRequest(op, input, output)
  2846. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  2847. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2848. output = &DeleteCustomerGatewayOutput{}
  2849. req.Data = output
  2850. return
  2851. }
  2852. // Deletes the specified customer gateway. You must delete the VPN connection
  2853. // before you can delete the customer gateway.
  2854. func (c *EC2) DeleteCustomerGateway(input *DeleteCustomerGatewayInput) (*DeleteCustomerGatewayOutput, error) {
  2855. req, out := c.DeleteCustomerGatewayRequest(input)
  2856. err := req.Send()
  2857. return out, err
  2858. }
  2859. const opDeleteDhcpOptions = "DeleteDhcpOptions"
  2860. // DeleteDhcpOptionsRequest generates a "aws/request.Request" representing the
  2861. // client's request for the DeleteDhcpOptions operation. The "output" return
  2862. // value can be used to capture response data after the request's "Send" method
  2863. // is called.
  2864. //
  2865. // Creating a request object using this method should be used when you want to inject
  2866. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2867. // access properties on the request object before or after sending the request. If
  2868. // you just want the service response, call the DeleteDhcpOptions method directly
  2869. // instead.
  2870. //
  2871. // Note: You must call the "Send" method on the returned request object in order
  2872. // to execute the request.
  2873. //
  2874. // // Example sending a request using the DeleteDhcpOptionsRequest method.
  2875. // req, resp := client.DeleteDhcpOptionsRequest(params)
  2876. //
  2877. // err := req.Send()
  2878. // if err == nil { // resp is now filled
  2879. // fmt.Println(resp)
  2880. // }
  2881. //
  2882. func (c *EC2) DeleteDhcpOptionsRequest(input *DeleteDhcpOptionsInput) (req *request.Request, output *DeleteDhcpOptionsOutput) {
  2883. op := &request.Operation{
  2884. Name: opDeleteDhcpOptions,
  2885. HTTPMethod: "POST",
  2886. HTTPPath: "/",
  2887. }
  2888. if input == nil {
  2889. input = &DeleteDhcpOptionsInput{}
  2890. }
  2891. req = c.newRequest(op, input, output)
  2892. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  2893. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2894. output = &DeleteDhcpOptionsOutput{}
  2895. req.Data = output
  2896. return
  2897. }
  2898. // Deletes the specified set of DHCP options. You must disassociate the set
  2899. // of DHCP options before you can delete it. You can disassociate the set of
  2900. // DHCP options by associating either a new set of options or the default set
  2901. // of options with the VPC.
  2902. func (c *EC2) DeleteDhcpOptions(input *DeleteDhcpOptionsInput) (*DeleteDhcpOptionsOutput, error) {
  2903. req, out := c.DeleteDhcpOptionsRequest(input)
  2904. err := req.Send()
  2905. return out, err
  2906. }
  2907. const opDeleteFlowLogs = "DeleteFlowLogs"
  2908. // DeleteFlowLogsRequest generates a "aws/request.Request" representing the
  2909. // client's request for the DeleteFlowLogs operation. The "output" return
  2910. // value can be used to capture response data after the request's "Send" method
  2911. // is called.
  2912. //
  2913. // Creating a request object using this method should be used when you want to inject
  2914. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2915. // access properties on the request object before or after sending the request. If
  2916. // you just want the service response, call the DeleteFlowLogs method directly
  2917. // instead.
  2918. //
  2919. // Note: You must call the "Send" method on the returned request object in order
  2920. // to execute the request.
  2921. //
  2922. // // Example sending a request using the DeleteFlowLogsRequest method.
  2923. // req, resp := client.DeleteFlowLogsRequest(params)
  2924. //
  2925. // err := req.Send()
  2926. // if err == nil { // resp is now filled
  2927. // fmt.Println(resp)
  2928. // }
  2929. //
  2930. func (c *EC2) DeleteFlowLogsRequest(input *DeleteFlowLogsInput) (req *request.Request, output *DeleteFlowLogsOutput) {
  2931. op := &request.Operation{
  2932. Name: opDeleteFlowLogs,
  2933. HTTPMethod: "POST",
  2934. HTTPPath: "/",
  2935. }
  2936. if input == nil {
  2937. input = &DeleteFlowLogsInput{}
  2938. }
  2939. req = c.newRequest(op, input, output)
  2940. output = &DeleteFlowLogsOutput{}
  2941. req.Data = output
  2942. return
  2943. }
  2944. // Deletes one or more flow logs.
  2945. func (c *EC2) DeleteFlowLogs(input *DeleteFlowLogsInput) (*DeleteFlowLogsOutput, error) {
  2946. req, out := c.DeleteFlowLogsRequest(input)
  2947. err := req.Send()
  2948. return out, err
  2949. }
  2950. const opDeleteInternetGateway = "DeleteInternetGateway"
  2951. // DeleteInternetGatewayRequest generates a "aws/request.Request" representing the
  2952. // client's request for the DeleteInternetGateway operation. The "output" return
  2953. // value can be used to capture response data after the request's "Send" method
  2954. // is called.
  2955. //
  2956. // Creating a request object using this method should be used when you want to inject
  2957. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2958. // access properties on the request object before or after sending the request. If
  2959. // you just want the service response, call the DeleteInternetGateway method directly
  2960. // instead.
  2961. //
  2962. // Note: You must call the "Send" method on the returned request object in order
  2963. // to execute the request.
  2964. //
  2965. // // Example sending a request using the DeleteInternetGatewayRequest method.
  2966. // req, resp := client.DeleteInternetGatewayRequest(params)
  2967. //
  2968. // err := req.Send()
  2969. // if err == nil { // resp is now filled
  2970. // fmt.Println(resp)
  2971. // }
  2972. //
  2973. func (c *EC2) DeleteInternetGatewayRequest(input *DeleteInternetGatewayInput) (req *request.Request, output *DeleteInternetGatewayOutput) {
  2974. op := &request.Operation{
  2975. Name: opDeleteInternetGateway,
  2976. HTTPMethod: "POST",
  2977. HTTPPath: "/",
  2978. }
  2979. if input == nil {
  2980. input = &DeleteInternetGatewayInput{}
  2981. }
  2982. req = c.newRequest(op, input, output)
  2983. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  2984. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  2985. output = &DeleteInternetGatewayOutput{}
  2986. req.Data = output
  2987. return
  2988. }
  2989. // Deletes the specified Internet gateway. You must detach the Internet gateway
  2990. // from the VPC before you can delete it.
  2991. func (c *EC2) DeleteInternetGateway(input *DeleteInternetGatewayInput) (*DeleteInternetGatewayOutput, error) {
  2992. req, out := c.DeleteInternetGatewayRequest(input)
  2993. err := req.Send()
  2994. return out, err
  2995. }
  2996. const opDeleteKeyPair = "DeleteKeyPair"
  2997. // DeleteKeyPairRequest generates a "aws/request.Request" representing the
  2998. // client's request for the DeleteKeyPair operation. The "output" return
  2999. // value can be used to capture response data after the request's "Send" method
  3000. // is called.
  3001. //
  3002. // Creating a request object using this method should be used when you want to inject
  3003. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3004. // access properties on the request object before or after sending the request. If
  3005. // you just want the service response, call the DeleteKeyPair method directly
  3006. // instead.
  3007. //
  3008. // Note: You must call the "Send" method on the returned request object in order
  3009. // to execute the request.
  3010. //
  3011. // // Example sending a request using the DeleteKeyPairRequest method.
  3012. // req, resp := client.DeleteKeyPairRequest(params)
  3013. //
  3014. // err := req.Send()
  3015. // if err == nil { // resp is now filled
  3016. // fmt.Println(resp)
  3017. // }
  3018. //
  3019. func (c *EC2) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Request, output *DeleteKeyPairOutput) {
  3020. op := &request.Operation{
  3021. Name: opDeleteKeyPair,
  3022. HTTPMethod: "POST",
  3023. HTTPPath: "/",
  3024. }
  3025. if input == nil {
  3026. input = &DeleteKeyPairInput{}
  3027. }
  3028. req = c.newRequest(op, input, output)
  3029. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3030. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3031. output = &DeleteKeyPairOutput{}
  3032. req.Data = output
  3033. return
  3034. }
  3035. // Deletes the specified key pair, by removing the public key from Amazon EC2.
  3036. func (c *EC2) DeleteKeyPair(input *DeleteKeyPairInput) (*DeleteKeyPairOutput, error) {
  3037. req, out := c.DeleteKeyPairRequest(input)
  3038. err := req.Send()
  3039. return out, err
  3040. }
  3041. const opDeleteNatGateway = "DeleteNatGateway"
  3042. // DeleteNatGatewayRequest generates a "aws/request.Request" representing the
  3043. // client's request for the DeleteNatGateway operation. The "output" return
  3044. // value can be used to capture response data after the request's "Send" method
  3045. // is called.
  3046. //
  3047. // Creating a request object using this method should be used when you want to inject
  3048. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3049. // access properties on the request object before or after sending the request. If
  3050. // you just want the service response, call the DeleteNatGateway method directly
  3051. // instead.
  3052. //
  3053. // Note: You must call the "Send" method on the returned request object in order
  3054. // to execute the request.
  3055. //
  3056. // // Example sending a request using the DeleteNatGatewayRequest method.
  3057. // req, resp := client.DeleteNatGatewayRequest(params)
  3058. //
  3059. // err := req.Send()
  3060. // if err == nil { // resp is now filled
  3061. // fmt.Println(resp)
  3062. // }
  3063. //
  3064. func (c *EC2) DeleteNatGatewayRequest(input *DeleteNatGatewayInput) (req *request.Request, output *DeleteNatGatewayOutput) {
  3065. op := &request.Operation{
  3066. Name: opDeleteNatGateway,
  3067. HTTPMethod: "POST",
  3068. HTTPPath: "/",
  3069. }
  3070. if input == nil {
  3071. input = &DeleteNatGatewayInput{}
  3072. }
  3073. req = c.newRequest(op, input, output)
  3074. output = &DeleteNatGatewayOutput{}
  3075. req.Data = output
  3076. return
  3077. }
  3078. // Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its
  3079. // Elastic IP address, but does not release the address from your account. Deleting
  3080. // a NAT gateway does not delete any NAT gateway routes in your route tables.
  3081. func (c *EC2) DeleteNatGateway(input *DeleteNatGatewayInput) (*DeleteNatGatewayOutput, error) {
  3082. req, out := c.DeleteNatGatewayRequest(input)
  3083. err := req.Send()
  3084. return out, err
  3085. }
  3086. const opDeleteNetworkAcl = "DeleteNetworkAcl"
  3087. // DeleteNetworkAclRequest generates a "aws/request.Request" representing the
  3088. // client's request for the DeleteNetworkAcl operation. The "output" return
  3089. // value can be used to capture response data after the request's "Send" method
  3090. // is called.
  3091. //
  3092. // Creating a request object using this method should be used when you want to inject
  3093. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3094. // access properties on the request object before or after sending the request. If
  3095. // you just want the service response, call the DeleteNetworkAcl method directly
  3096. // instead.
  3097. //
  3098. // Note: You must call the "Send" method on the returned request object in order
  3099. // to execute the request.
  3100. //
  3101. // // Example sending a request using the DeleteNetworkAclRequest method.
  3102. // req, resp := client.DeleteNetworkAclRequest(params)
  3103. //
  3104. // err := req.Send()
  3105. // if err == nil { // resp is now filled
  3106. // fmt.Println(resp)
  3107. // }
  3108. //
  3109. func (c *EC2) DeleteNetworkAclRequest(input *DeleteNetworkAclInput) (req *request.Request, output *DeleteNetworkAclOutput) {
  3110. op := &request.Operation{
  3111. Name: opDeleteNetworkAcl,
  3112. HTTPMethod: "POST",
  3113. HTTPPath: "/",
  3114. }
  3115. if input == nil {
  3116. input = &DeleteNetworkAclInput{}
  3117. }
  3118. req = c.newRequest(op, input, output)
  3119. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3120. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3121. output = &DeleteNetworkAclOutput{}
  3122. req.Data = output
  3123. return
  3124. }
  3125. // Deletes the specified network ACL. You can't delete the ACL if it's associated
  3126. // with any subnets. You can't delete the default network ACL.
  3127. func (c *EC2) DeleteNetworkAcl(input *DeleteNetworkAclInput) (*DeleteNetworkAclOutput, error) {
  3128. req, out := c.DeleteNetworkAclRequest(input)
  3129. err := req.Send()
  3130. return out, err
  3131. }
  3132. const opDeleteNetworkAclEntry = "DeleteNetworkAclEntry"
  3133. // DeleteNetworkAclEntryRequest generates a "aws/request.Request" representing the
  3134. // client's request for the DeleteNetworkAclEntry operation. The "output" return
  3135. // value can be used to capture response data after the request's "Send" method
  3136. // is called.
  3137. //
  3138. // Creating a request object using this method should be used when you want to inject
  3139. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3140. // access properties on the request object before or after sending the request. If
  3141. // you just want the service response, call the DeleteNetworkAclEntry method directly
  3142. // instead.
  3143. //
  3144. // Note: You must call the "Send" method on the returned request object in order
  3145. // to execute the request.
  3146. //
  3147. // // Example sending a request using the DeleteNetworkAclEntryRequest method.
  3148. // req, resp := client.DeleteNetworkAclEntryRequest(params)
  3149. //
  3150. // err := req.Send()
  3151. // if err == nil { // resp is now filled
  3152. // fmt.Println(resp)
  3153. // }
  3154. //
  3155. func (c *EC2) DeleteNetworkAclEntryRequest(input *DeleteNetworkAclEntryInput) (req *request.Request, output *DeleteNetworkAclEntryOutput) {
  3156. op := &request.Operation{
  3157. Name: opDeleteNetworkAclEntry,
  3158. HTTPMethod: "POST",
  3159. HTTPPath: "/",
  3160. }
  3161. if input == nil {
  3162. input = &DeleteNetworkAclEntryInput{}
  3163. }
  3164. req = c.newRequest(op, input, output)
  3165. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3166. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3167. output = &DeleteNetworkAclEntryOutput{}
  3168. req.Data = output
  3169. return
  3170. }
  3171. // Deletes the specified ingress or egress entry (rule) from the specified network
  3172. // ACL.
  3173. func (c *EC2) DeleteNetworkAclEntry(input *DeleteNetworkAclEntryInput) (*DeleteNetworkAclEntryOutput, error) {
  3174. req, out := c.DeleteNetworkAclEntryRequest(input)
  3175. err := req.Send()
  3176. return out, err
  3177. }
  3178. const opDeleteNetworkInterface = "DeleteNetworkInterface"
  3179. // DeleteNetworkInterfaceRequest generates a "aws/request.Request" representing the
  3180. // client's request for the DeleteNetworkInterface operation. The "output" return
  3181. // value can be used to capture response data after the request's "Send" method
  3182. // is called.
  3183. //
  3184. // Creating a request object using this method should be used when you want to inject
  3185. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3186. // access properties on the request object before or after sending the request. If
  3187. // you just want the service response, call the DeleteNetworkInterface method directly
  3188. // instead.
  3189. //
  3190. // Note: You must call the "Send" method on the returned request object in order
  3191. // to execute the request.
  3192. //
  3193. // // Example sending a request using the DeleteNetworkInterfaceRequest method.
  3194. // req, resp := client.DeleteNetworkInterfaceRequest(params)
  3195. //
  3196. // err := req.Send()
  3197. // if err == nil { // resp is now filled
  3198. // fmt.Println(resp)
  3199. // }
  3200. //
  3201. func (c *EC2) DeleteNetworkInterfaceRequest(input *DeleteNetworkInterfaceInput) (req *request.Request, output *DeleteNetworkInterfaceOutput) {
  3202. op := &request.Operation{
  3203. Name: opDeleteNetworkInterface,
  3204. HTTPMethod: "POST",
  3205. HTTPPath: "/",
  3206. }
  3207. if input == nil {
  3208. input = &DeleteNetworkInterfaceInput{}
  3209. }
  3210. req = c.newRequest(op, input, output)
  3211. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3212. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3213. output = &DeleteNetworkInterfaceOutput{}
  3214. req.Data = output
  3215. return
  3216. }
  3217. // Deletes the specified network interface. You must detach the network interface
  3218. // before you can delete it.
  3219. func (c *EC2) DeleteNetworkInterface(input *DeleteNetworkInterfaceInput) (*DeleteNetworkInterfaceOutput, error) {
  3220. req, out := c.DeleteNetworkInterfaceRequest(input)
  3221. err := req.Send()
  3222. return out, err
  3223. }
  3224. const opDeletePlacementGroup = "DeletePlacementGroup"
  3225. // DeletePlacementGroupRequest generates a "aws/request.Request" representing the
  3226. // client's request for the DeletePlacementGroup operation. The "output" return
  3227. // value can be used to capture response data after the request's "Send" method
  3228. // is called.
  3229. //
  3230. // Creating a request object using this method should be used when you want to inject
  3231. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3232. // access properties on the request object before or after sending the request. If
  3233. // you just want the service response, call the DeletePlacementGroup method directly
  3234. // instead.
  3235. //
  3236. // Note: You must call the "Send" method on the returned request object in order
  3237. // to execute the request.
  3238. //
  3239. // // Example sending a request using the DeletePlacementGroupRequest method.
  3240. // req, resp := client.DeletePlacementGroupRequest(params)
  3241. //
  3242. // err := req.Send()
  3243. // if err == nil { // resp is now filled
  3244. // fmt.Println(resp)
  3245. // }
  3246. //
  3247. func (c *EC2) DeletePlacementGroupRequest(input *DeletePlacementGroupInput) (req *request.Request, output *DeletePlacementGroupOutput) {
  3248. op := &request.Operation{
  3249. Name: opDeletePlacementGroup,
  3250. HTTPMethod: "POST",
  3251. HTTPPath: "/",
  3252. }
  3253. if input == nil {
  3254. input = &DeletePlacementGroupInput{}
  3255. }
  3256. req = c.newRequest(op, input, output)
  3257. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3258. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3259. output = &DeletePlacementGroupOutput{}
  3260. req.Data = output
  3261. return
  3262. }
  3263. // Deletes the specified placement group. You must terminate all instances in
  3264. // the placement group before you can delete the placement group. For more information
  3265. // about placement groups and cluster instances, see Cluster Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html)
  3266. // in the Amazon Elastic Compute Cloud User Guide.
  3267. func (c *EC2) DeletePlacementGroup(input *DeletePlacementGroupInput) (*DeletePlacementGroupOutput, error) {
  3268. req, out := c.DeletePlacementGroupRequest(input)
  3269. err := req.Send()
  3270. return out, err
  3271. }
  3272. const opDeleteRoute = "DeleteRoute"
  3273. // DeleteRouteRequest generates a "aws/request.Request" representing the
  3274. // client's request for the DeleteRoute operation. The "output" return
  3275. // value can be used to capture response data after the request's "Send" method
  3276. // is called.
  3277. //
  3278. // Creating a request object using this method should be used when you want to inject
  3279. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3280. // access properties on the request object before or after sending the request. If
  3281. // you just want the service response, call the DeleteRoute method directly
  3282. // instead.
  3283. //
  3284. // Note: You must call the "Send" method on the returned request object in order
  3285. // to execute the request.
  3286. //
  3287. // // Example sending a request using the DeleteRouteRequest method.
  3288. // req, resp := client.DeleteRouteRequest(params)
  3289. //
  3290. // err := req.Send()
  3291. // if err == nil { // resp is now filled
  3292. // fmt.Println(resp)
  3293. // }
  3294. //
  3295. func (c *EC2) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Request, output *DeleteRouteOutput) {
  3296. op := &request.Operation{
  3297. Name: opDeleteRoute,
  3298. HTTPMethod: "POST",
  3299. HTTPPath: "/",
  3300. }
  3301. if input == nil {
  3302. input = &DeleteRouteInput{}
  3303. }
  3304. req = c.newRequest(op, input, output)
  3305. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3306. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3307. output = &DeleteRouteOutput{}
  3308. req.Data = output
  3309. return
  3310. }
  3311. // Deletes the specified route from the specified route table.
  3312. func (c *EC2) DeleteRoute(input *DeleteRouteInput) (*DeleteRouteOutput, error) {
  3313. req, out := c.DeleteRouteRequest(input)
  3314. err := req.Send()
  3315. return out, err
  3316. }
  3317. const opDeleteRouteTable = "DeleteRouteTable"
  3318. // DeleteRouteTableRequest generates a "aws/request.Request" representing the
  3319. // client's request for the DeleteRouteTable operation. The "output" return
  3320. // value can be used to capture response data after the request's "Send" method
  3321. // is called.
  3322. //
  3323. // Creating a request object using this method should be used when you want to inject
  3324. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3325. // access properties on the request object before or after sending the request. If
  3326. // you just want the service response, call the DeleteRouteTable method directly
  3327. // instead.
  3328. //
  3329. // Note: You must call the "Send" method on the returned request object in order
  3330. // to execute the request.
  3331. //
  3332. // // Example sending a request using the DeleteRouteTableRequest method.
  3333. // req, resp := client.DeleteRouteTableRequest(params)
  3334. //
  3335. // err := req.Send()
  3336. // if err == nil { // resp is now filled
  3337. // fmt.Println(resp)
  3338. // }
  3339. //
  3340. func (c *EC2) DeleteRouteTableRequest(input *DeleteRouteTableInput) (req *request.Request, output *DeleteRouteTableOutput) {
  3341. op := &request.Operation{
  3342. Name: opDeleteRouteTable,
  3343. HTTPMethod: "POST",
  3344. HTTPPath: "/",
  3345. }
  3346. if input == nil {
  3347. input = &DeleteRouteTableInput{}
  3348. }
  3349. req = c.newRequest(op, input, output)
  3350. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3351. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3352. output = &DeleteRouteTableOutput{}
  3353. req.Data = output
  3354. return
  3355. }
  3356. // Deletes the specified route table. You must disassociate the route table
  3357. // from any subnets before you can delete it. You can't delete the main route
  3358. // table.
  3359. func (c *EC2) DeleteRouteTable(input *DeleteRouteTableInput) (*DeleteRouteTableOutput, error) {
  3360. req, out := c.DeleteRouteTableRequest(input)
  3361. err := req.Send()
  3362. return out, err
  3363. }
  3364. const opDeleteSecurityGroup = "DeleteSecurityGroup"
  3365. // DeleteSecurityGroupRequest generates a "aws/request.Request" representing the
  3366. // client's request for the DeleteSecurityGroup operation. The "output" return
  3367. // value can be used to capture response data after the request's "Send" method
  3368. // is called.
  3369. //
  3370. // Creating a request object using this method should be used when you want to inject
  3371. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3372. // access properties on the request object before or after sending the request. If
  3373. // you just want the service response, call the DeleteSecurityGroup method directly
  3374. // instead.
  3375. //
  3376. // Note: You must call the "Send" method on the returned request object in order
  3377. // to execute the request.
  3378. //
  3379. // // Example sending a request using the DeleteSecurityGroupRequest method.
  3380. // req, resp := client.DeleteSecurityGroupRequest(params)
  3381. //
  3382. // err := req.Send()
  3383. // if err == nil { // resp is now filled
  3384. // fmt.Println(resp)
  3385. // }
  3386. //
  3387. func (c *EC2) DeleteSecurityGroupRequest(input *DeleteSecurityGroupInput) (req *request.Request, output *DeleteSecurityGroupOutput) {
  3388. op := &request.Operation{
  3389. Name: opDeleteSecurityGroup,
  3390. HTTPMethod: "POST",
  3391. HTTPPath: "/",
  3392. }
  3393. if input == nil {
  3394. input = &DeleteSecurityGroupInput{}
  3395. }
  3396. req = c.newRequest(op, input, output)
  3397. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3398. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3399. output = &DeleteSecurityGroupOutput{}
  3400. req.Data = output
  3401. return
  3402. }
  3403. // Deletes a security group.
  3404. //
  3405. // If you attempt to delete a security group that is associated with an instance,
  3406. // or is referenced by another security group, the operation fails with InvalidGroup.InUse
  3407. // in EC2-Classic or DependencyViolation in EC2-VPC.
  3408. func (c *EC2) DeleteSecurityGroup(input *DeleteSecurityGroupInput) (*DeleteSecurityGroupOutput, error) {
  3409. req, out := c.DeleteSecurityGroupRequest(input)
  3410. err := req.Send()
  3411. return out, err
  3412. }
  3413. const opDeleteSnapshot = "DeleteSnapshot"
  3414. // DeleteSnapshotRequest generates a "aws/request.Request" representing the
  3415. // client's request for the DeleteSnapshot operation. The "output" return
  3416. // value can be used to capture response data after the request's "Send" method
  3417. // is called.
  3418. //
  3419. // Creating a request object using this method should be used when you want to inject
  3420. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3421. // access properties on the request object before or after sending the request. If
  3422. // you just want the service response, call the DeleteSnapshot method directly
  3423. // instead.
  3424. //
  3425. // Note: You must call the "Send" method on the returned request object in order
  3426. // to execute the request.
  3427. //
  3428. // // Example sending a request using the DeleteSnapshotRequest method.
  3429. // req, resp := client.DeleteSnapshotRequest(params)
  3430. //
  3431. // err := req.Send()
  3432. // if err == nil { // resp is now filled
  3433. // fmt.Println(resp)
  3434. // }
  3435. //
  3436. func (c *EC2) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Request, output *DeleteSnapshotOutput) {
  3437. op := &request.Operation{
  3438. Name: opDeleteSnapshot,
  3439. HTTPMethod: "POST",
  3440. HTTPPath: "/",
  3441. }
  3442. if input == nil {
  3443. input = &DeleteSnapshotInput{}
  3444. }
  3445. req = c.newRequest(op, input, output)
  3446. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3447. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3448. output = &DeleteSnapshotOutput{}
  3449. req.Data = output
  3450. return
  3451. }
  3452. // Deletes the specified snapshot.
  3453. //
  3454. // When you make periodic snapshots of a volume, the snapshots are incremental,
  3455. // and only the blocks on the device that have changed since your last snapshot
  3456. // are saved in the new snapshot. When you delete a snapshot, only the data
  3457. // not needed for any other snapshot is removed. So regardless of which prior
  3458. // snapshots have been deleted, all active snapshots will have access to all
  3459. // the information needed to restore the volume.
  3460. //
  3461. // You cannot delete a snapshot of the root device of an EBS volume used by
  3462. // a registered AMI. You must first de-register the AMI before you can delete
  3463. // the snapshot.
  3464. //
  3465. // For more information, see Deleting an Amazon EBS Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-snapshot.html)
  3466. // in the Amazon Elastic Compute Cloud User Guide.
  3467. func (c *EC2) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) {
  3468. req, out := c.DeleteSnapshotRequest(input)
  3469. err := req.Send()
  3470. return out, err
  3471. }
  3472. const opDeleteSpotDatafeedSubscription = "DeleteSpotDatafeedSubscription"
  3473. // DeleteSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  3474. // client's request for the DeleteSpotDatafeedSubscription operation. The "output" return
  3475. // value can be used to capture response data after the request's "Send" method
  3476. // is called.
  3477. //
  3478. // Creating a request object using this method should be used when you want to inject
  3479. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3480. // access properties on the request object before or after sending the request. If
  3481. // you just want the service response, call the DeleteSpotDatafeedSubscription method directly
  3482. // instead.
  3483. //
  3484. // Note: You must call the "Send" method on the returned request object in order
  3485. // to execute the request.
  3486. //
  3487. // // Example sending a request using the DeleteSpotDatafeedSubscriptionRequest method.
  3488. // req, resp := client.DeleteSpotDatafeedSubscriptionRequest(params)
  3489. //
  3490. // err := req.Send()
  3491. // if err == nil { // resp is now filled
  3492. // fmt.Println(resp)
  3493. // }
  3494. //
  3495. func (c *EC2) DeleteSpotDatafeedSubscriptionRequest(input *DeleteSpotDatafeedSubscriptionInput) (req *request.Request, output *DeleteSpotDatafeedSubscriptionOutput) {
  3496. op := &request.Operation{
  3497. Name: opDeleteSpotDatafeedSubscription,
  3498. HTTPMethod: "POST",
  3499. HTTPPath: "/",
  3500. }
  3501. if input == nil {
  3502. input = &DeleteSpotDatafeedSubscriptionInput{}
  3503. }
  3504. req = c.newRequest(op, input, output)
  3505. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3506. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3507. output = &DeleteSpotDatafeedSubscriptionOutput{}
  3508. req.Data = output
  3509. return
  3510. }
  3511. // Deletes the data feed for Spot instances.
  3512. func (c *EC2) DeleteSpotDatafeedSubscription(input *DeleteSpotDatafeedSubscriptionInput) (*DeleteSpotDatafeedSubscriptionOutput, error) {
  3513. req, out := c.DeleteSpotDatafeedSubscriptionRequest(input)
  3514. err := req.Send()
  3515. return out, err
  3516. }
  3517. const opDeleteSubnet = "DeleteSubnet"
  3518. // DeleteSubnetRequest generates a "aws/request.Request" representing the
  3519. // client's request for the DeleteSubnet operation. The "output" return
  3520. // value can be used to capture response data after the request's "Send" method
  3521. // is called.
  3522. //
  3523. // Creating a request object using this method should be used when you want to inject
  3524. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3525. // access properties on the request object before or after sending the request. If
  3526. // you just want the service response, call the DeleteSubnet method directly
  3527. // instead.
  3528. //
  3529. // Note: You must call the "Send" method on the returned request object in order
  3530. // to execute the request.
  3531. //
  3532. // // Example sending a request using the DeleteSubnetRequest method.
  3533. // req, resp := client.DeleteSubnetRequest(params)
  3534. //
  3535. // err := req.Send()
  3536. // if err == nil { // resp is now filled
  3537. // fmt.Println(resp)
  3538. // }
  3539. //
  3540. func (c *EC2) DeleteSubnetRequest(input *DeleteSubnetInput) (req *request.Request, output *DeleteSubnetOutput) {
  3541. op := &request.Operation{
  3542. Name: opDeleteSubnet,
  3543. HTTPMethod: "POST",
  3544. HTTPPath: "/",
  3545. }
  3546. if input == nil {
  3547. input = &DeleteSubnetInput{}
  3548. }
  3549. req = c.newRequest(op, input, output)
  3550. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3551. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3552. output = &DeleteSubnetOutput{}
  3553. req.Data = output
  3554. return
  3555. }
  3556. // Deletes the specified subnet. You must terminate all running instances in
  3557. // the subnet before you can delete the subnet.
  3558. func (c *EC2) DeleteSubnet(input *DeleteSubnetInput) (*DeleteSubnetOutput, error) {
  3559. req, out := c.DeleteSubnetRequest(input)
  3560. err := req.Send()
  3561. return out, err
  3562. }
  3563. const opDeleteTags = "DeleteTags"
  3564. // DeleteTagsRequest generates a "aws/request.Request" representing the
  3565. // client's request for the DeleteTags operation. The "output" return
  3566. // value can be used to capture response data after the request's "Send" method
  3567. // is called.
  3568. //
  3569. // Creating a request object using this method should be used when you want to inject
  3570. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3571. // access properties on the request object before or after sending the request. If
  3572. // you just want the service response, call the DeleteTags method directly
  3573. // instead.
  3574. //
  3575. // Note: You must call the "Send" method on the returned request object in order
  3576. // to execute the request.
  3577. //
  3578. // // Example sending a request using the DeleteTagsRequest method.
  3579. // req, resp := client.DeleteTagsRequest(params)
  3580. //
  3581. // err := req.Send()
  3582. // if err == nil { // resp is now filled
  3583. // fmt.Println(resp)
  3584. // }
  3585. //
  3586. func (c *EC2) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
  3587. op := &request.Operation{
  3588. Name: opDeleteTags,
  3589. HTTPMethod: "POST",
  3590. HTTPPath: "/",
  3591. }
  3592. if input == nil {
  3593. input = &DeleteTagsInput{}
  3594. }
  3595. req = c.newRequest(op, input, output)
  3596. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3597. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3598. output = &DeleteTagsOutput{}
  3599. req.Data = output
  3600. return
  3601. }
  3602. // Deletes the specified set of tags from the specified set of resources. This
  3603. // call is designed to follow a DescribeTags request.
  3604. //
  3605. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  3606. // in the Amazon Elastic Compute Cloud User Guide.
  3607. func (c *EC2) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
  3608. req, out := c.DeleteTagsRequest(input)
  3609. err := req.Send()
  3610. return out, err
  3611. }
  3612. const opDeleteVolume = "DeleteVolume"
  3613. // DeleteVolumeRequest generates a "aws/request.Request" representing the
  3614. // client's request for the DeleteVolume operation. The "output" return
  3615. // value can be used to capture response data after the request's "Send" method
  3616. // is called.
  3617. //
  3618. // Creating a request object using this method should be used when you want to inject
  3619. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3620. // access properties on the request object before or after sending the request. If
  3621. // you just want the service response, call the DeleteVolume method directly
  3622. // instead.
  3623. //
  3624. // Note: You must call the "Send" method on the returned request object in order
  3625. // to execute the request.
  3626. //
  3627. // // Example sending a request using the DeleteVolumeRequest method.
  3628. // req, resp := client.DeleteVolumeRequest(params)
  3629. //
  3630. // err := req.Send()
  3631. // if err == nil { // resp is now filled
  3632. // fmt.Println(resp)
  3633. // }
  3634. //
  3635. func (c *EC2) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Request, output *DeleteVolumeOutput) {
  3636. op := &request.Operation{
  3637. Name: opDeleteVolume,
  3638. HTTPMethod: "POST",
  3639. HTTPPath: "/",
  3640. }
  3641. if input == nil {
  3642. input = &DeleteVolumeInput{}
  3643. }
  3644. req = c.newRequest(op, input, output)
  3645. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3646. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3647. output = &DeleteVolumeOutput{}
  3648. req.Data = output
  3649. return
  3650. }
  3651. // Deletes the specified EBS volume. The volume must be in the available state
  3652. // (not attached to an instance).
  3653. //
  3654. // The volume may remain in the deleting state for several minutes.
  3655. //
  3656. // For more information, see Deleting an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-deleting-volume.html)
  3657. // in the Amazon Elastic Compute Cloud User Guide.
  3658. func (c *EC2) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error) {
  3659. req, out := c.DeleteVolumeRequest(input)
  3660. err := req.Send()
  3661. return out, err
  3662. }
  3663. const opDeleteVpc = "DeleteVpc"
  3664. // DeleteVpcRequest generates a "aws/request.Request" representing the
  3665. // client's request for the DeleteVpc operation. The "output" return
  3666. // value can be used to capture response data after the request's "Send" method
  3667. // is called.
  3668. //
  3669. // Creating a request object using this method should be used when you want to inject
  3670. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3671. // access properties on the request object before or after sending the request. If
  3672. // you just want the service response, call the DeleteVpc method directly
  3673. // instead.
  3674. //
  3675. // Note: You must call the "Send" method on the returned request object in order
  3676. // to execute the request.
  3677. //
  3678. // // Example sending a request using the DeleteVpcRequest method.
  3679. // req, resp := client.DeleteVpcRequest(params)
  3680. //
  3681. // err := req.Send()
  3682. // if err == nil { // resp is now filled
  3683. // fmt.Println(resp)
  3684. // }
  3685. //
  3686. func (c *EC2) DeleteVpcRequest(input *DeleteVpcInput) (req *request.Request, output *DeleteVpcOutput) {
  3687. op := &request.Operation{
  3688. Name: opDeleteVpc,
  3689. HTTPMethod: "POST",
  3690. HTTPPath: "/",
  3691. }
  3692. if input == nil {
  3693. input = &DeleteVpcInput{}
  3694. }
  3695. req = c.newRequest(op, input, output)
  3696. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3697. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3698. output = &DeleteVpcOutput{}
  3699. req.Data = output
  3700. return
  3701. }
  3702. // Deletes the specified VPC. You must detach or delete all gateways and resources
  3703. // that are associated with the VPC before you can delete it. For example, you
  3704. // must terminate all instances running in the VPC, delete all security groups
  3705. // associated with the VPC (except the default one), delete all route tables
  3706. // associated with the VPC (except the default one), and so on.
  3707. func (c *EC2) DeleteVpc(input *DeleteVpcInput) (*DeleteVpcOutput, error) {
  3708. req, out := c.DeleteVpcRequest(input)
  3709. err := req.Send()
  3710. return out, err
  3711. }
  3712. const opDeleteVpcEndpoints = "DeleteVpcEndpoints"
  3713. // DeleteVpcEndpointsRequest generates a "aws/request.Request" representing the
  3714. // client's request for the DeleteVpcEndpoints operation. The "output" return
  3715. // value can be used to capture response data after the request's "Send" method
  3716. // is called.
  3717. //
  3718. // Creating a request object using this method should be used when you want to inject
  3719. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3720. // access properties on the request object before or after sending the request. If
  3721. // you just want the service response, call the DeleteVpcEndpoints method directly
  3722. // instead.
  3723. //
  3724. // Note: You must call the "Send" method on the returned request object in order
  3725. // to execute the request.
  3726. //
  3727. // // Example sending a request using the DeleteVpcEndpointsRequest method.
  3728. // req, resp := client.DeleteVpcEndpointsRequest(params)
  3729. //
  3730. // err := req.Send()
  3731. // if err == nil { // resp is now filled
  3732. // fmt.Println(resp)
  3733. // }
  3734. //
  3735. func (c *EC2) DeleteVpcEndpointsRequest(input *DeleteVpcEndpointsInput) (req *request.Request, output *DeleteVpcEndpointsOutput) {
  3736. op := &request.Operation{
  3737. Name: opDeleteVpcEndpoints,
  3738. HTTPMethod: "POST",
  3739. HTTPPath: "/",
  3740. }
  3741. if input == nil {
  3742. input = &DeleteVpcEndpointsInput{}
  3743. }
  3744. req = c.newRequest(op, input, output)
  3745. output = &DeleteVpcEndpointsOutput{}
  3746. req.Data = output
  3747. return
  3748. }
  3749. // Deletes one or more specified VPC endpoints. Deleting the endpoint also deletes
  3750. // the endpoint routes in the route tables that were associated with the endpoint.
  3751. func (c *EC2) DeleteVpcEndpoints(input *DeleteVpcEndpointsInput) (*DeleteVpcEndpointsOutput, error) {
  3752. req, out := c.DeleteVpcEndpointsRequest(input)
  3753. err := req.Send()
  3754. return out, err
  3755. }
  3756. const opDeleteVpcPeeringConnection = "DeleteVpcPeeringConnection"
  3757. // DeleteVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  3758. // client's request for the DeleteVpcPeeringConnection operation. The "output" return
  3759. // value can be used to capture response data after the request's "Send" method
  3760. // is called.
  3761. //
  3762. // Creating a request object using this method should be used when you want to inject
  3763. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3764. // access properties on the request object before or after sending the request. If
  3765. // you just want the service response, call the DeleteVpcPeeringConnection method directly
  3766. // instead.
  3767. //
  3768. // Note: You must call the "Send" method on the returned request object in order
  3769. // to execute the request.
  3770. //
  3771. // // Example sending a request using the DeleteVpcPeeringConnectionRequest method.
  3772. // req, resp := client.DeleteVpcPeeringConnectionRequest(params)
  3773. //
  3774. // err := req.Send()
  3775. // if err == nil { // resp is now filled
  3776. // fmt.Println(resp)
  3777. // }
  3778. //
  3779. func (c *EC2) DeleteVpcPeeringConnectionRequest(input *DeleteVpcPeeringConnectionInput) (req *request.Request, output *DeleteVpcPeeringConnectionOutput) {
  3780. op := &request.Operation{
  3781. Name: opDeleteVpcPeeringConnection,
  3782. HTTPMethod: "POST",
  3783. HTTPPath: "/",
  3784. }
  3785. if input == nil {
  3786. input = &DeleteVpcPeeringConnectionInput{}
  3787. }
  3788. req = c.newRequest(op, input, output)
  3789. output = &DeleteVpcPeeringConnectionOutput{}
  3790. req.Data = output
  3791. return
  3792. }
  3793. // Deletes a VPC peering connection. Either the owner of the requester VPC or
  3794. // the owner of the peer VPC can delete the VPC peering connection if it's in
  3795. // the active state. The owner of the requester VPC can delete a VPC peering
  3796. // connection in the pending-acceptance state.
  3797. func (c *EC2) DeleteVpcPeeringConnection(input *DeleteVpcPeeringConnectionInput) (*DeleteVpcPeeringConnectionOutput, error) {
  3798. req, out := c.DeleteVpcPeeringConnectionRequest(input)
  3799. err := req.Send()
  3800. return out, err
  3801. }
  3802. const opDeleteVpnConnection = "DeleteVpnConnection"
  3803. // DeleteVpnConnectionRequest generates a "aws/request.Request" representing the
  3804. // client's request for the DeleteVpnConnection operation. The "output" return
  3805. // value can be used to capture response data after the request's "Send" method
  3806. // is called.
  3807. //
  3808. // Creating a request object using this method should be used when you want to inject
  3809. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3810. // access properties on the request object before or after sending the request. If
  3811. // you just want the service response, call the DeleteVpnConnection method directly
  3812. // instead.
  3813. //
  3814. // Note: You must call the "Send" method on the returned request object in order
  3815. // to execute the request.
  3816. //
  3817. // // Example sending a request using the DeleteVpnConnectionRequest method.
  3818. // req, resp := client.DeleteVpnConnectionRequest(params)
  3819. //
  3820. // err := req.Send()
  3821. // if err == nil { // resp is now filled
  3822. // fmt.Println(resp)
  3823. // }
  3824. //
  3825. func (c *EC2) DeleteVpnConnectionRequest(input *DeleteVpnConnectionInput) (req *request.Request, output *DeleteVpnConnectionOutput) {
  3826. op := &request.Operation{
  3827. Name: opDeleteVpnConnection,
  3828. HTTPMethod: "POST",
  3829. HTTPPath: "/",
  3830. }
  3831. if input == nil {
  3832. input = &DeleteVpnConnectionInput{}
  3833. }
  3834. req = c.newRequest(op, input, output)
  3835. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3836. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3837. output = &DeleteVpnConnectionOutput{}
  3838. req.Data = output
  3839. return
  3840. }
  3841. // Deletes the specified VPN connection.
  3842. //
  3843. // If you're deleting the VPC and its associated components, we recommend that
  3844. // you detach the virtual private gateway from the VPC and delete the VPC before
  3845. // deleting the VPN connection. If you believe that the tunnel credentials for
  3846. // your VPN connection have been compromised, you can delete the VPN connection
  3847. // and create a new one that has new keys, without needing to delete the VPC
  3848. // or virtual private gateway. If you create a new VPN connection, you must
  3849. // reconfigure the customer gateway using the new configuration information
  3850. // returned with the new VPN connection ID.
  3851. func (c *EC2) DeleteVpnConnection(input *DeleteVpnConnectionInput) (*DeleteVpnConnectionOutput, error) {
  3852. req, out := c.DeleteVpnConnectionRequest(input)
  3853. err := req.Send()
  3854. return out, err
  3855. }
  3856. const opDeleteVpnConnectionRoute = "DeleteVpnConnectionRoute"
  3857. // DeleteVpnConnectionRouteRequest generates a "aws/request.Request" representing the
  3858. // client's request for the DeleteVpnConnectionRoute operation. The "output" return
  3859. // value can be used to capture response data after the request's "Send" method
  3860. // is called.
  3861. //
  3862. // Creating a request object using this method should be used when you want to inject
  3863. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3864. // access properties on the request object before or after sending the request. If
  3865. // you just want the service response, call the DeleteVpnConnectionRoute method directly
  3866. // instead.
  3867. //
  3868. // Note: You must call the "Send" method on the returned request object in order
  3869. // to execute the request.
  3870. //
  3871. // // Example sending a request using the DeleteVpnConnectionRouteRequest method.
  3872. // req, resp := client.DeleteVpnConnectionRouteRequest(params)
  3873. //
  3874. // err := req.Send()
  3875. // if err == nil { // resp is now filled
  3876. // fmt.Println(resp)
  3877. // }
  3878. //
  3879. func (c *EC2) DeleteVpnConnectionRouteRequest(input *DeleteVpnConnectionRouteInput) (req *request.Request, output *DeleteVpnConnectionRouteOutput) {
  3880. op := &request.Operation{
  3881. Name: opDeleteVpnConnectionRoute,
  3882. HTTPMethod: "POST",
  3883. HTTPPath: "/",
  3884. }
  3885. if input == nil {
  3886. input = &DeleteVpnConnectionRouteInput{}
  3887. }
  3888. req = c.newRequest(op, input, output)
  3889. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3890. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3891. output = &DeleteVpnConnectionRouteOutput{}
  3892. req.Data = output
  3893. return
  3894. }
  3895. // Deletes the specified static route associated with a VPN connection between
  3896. // an existing virtual private gateway and a VPN customer gateway. The static
  3897. // route allows traffic to be routed from the virtual private gateway to the
  3898. // VPN customer gateway.
  3899. func (c *EC2) DeleteVpnConnectionRoute(input *DeleteVpnConnectionRouteInput) (*DeleteVpnConnectionRouteOutput, error) {
  3900. req, out := c.DeleteVpnConnectionRouteRequest(input)
  3901. err := req.Send()
  3902. return out, err
  3903. }
  3904. const opDeleteVpnGateway = "DeleteVpnGateway"
  3905. // DeleteVpnGatewayRequest generates a "aws/request.Request" representing the
  3906. // client's request for the DeleteVpnGateway operation. The "output" return
  3907. // value can be used to capture response data after the request's "Send" method
  3908. // is called.
  3909. //
  3910. // Creating a request object using this method should be used when you want to inject
  3911. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3912. // access properties on the request object before or after sending the request. If
  3913. // you just want the service response, call the DeleteVpnGateway method directly
  3914. // instead.
  3915. //
  3916. // Note: You must call the "Send" method on the returned request object in order
  3917. // to execute the request.
  3918. //
  3919. // // Example sending a request using the DeleteVpnGatewayRequest method.
  3920. // req, resp := client.DeleteVpnGatewayRequest(params)
  3921. //
  3922. // err := req.Send()
  3923. // if err == nil { // resp is now filled
  3924. // fmt.Println(resp)
  3925. // }
  3926. //
  3927. func (c *EC2) DeleteVpnGatewayRequest(input *DeleteVpnGatewayInput) (req *request.Request, output *DeleteVpnGatewayOutput) {
  3928. op := &request.Operation{
  3929. Name: opDeleteVpnGateway,
  3930. HTTPMethod: "POST",
  3931. HTTPPath: "/",
  3932. }
  3933. if input == nil {
  3934. input = &DeleteVpnGatewayInput{}
  3935. }
  3936. req = c.newRequest(op, input, output)
  3937. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3938. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3939. output = &DeleteVpnGatewayOutput{}
  3940. req.Data = output
  3941. return
  3942. }
  3943. // Deletes the specified virtual private gateway. We recommend that before you
  3944. // delete a virtual private gateway, you detach it from the VPC and delete the
  3945. // VPN connection. Note that you don't need to delete the virtual private gateway
  3946. // if you plan to delete and recreate the VPN connection between your VPC and
  3947. // your network.
  3948. func (c *EC2) DeleteVpnGateway(input *DeleteVpnGatewayInput) (*DeleteVpnGatewayOutput, error) {
  3949. req, out := c.DeleteVpnGatewayRequest(input)
  3950. err := req.Send()
  3951. return out, err
  3952. }
  3953. const opDeregisterImage = "DeregisterImage"
  3954. // DeregisterImageRequest generates a "aws/request.Request" representing the
  3955. // client's request for the DeregisterImage operation. The "output" return
  3956. // value can be used to capture response data after the request's "Send" method
  3957. // is called.
  3958. //
  3959. // Creating a request object using this method should be used when you want to inject
  3960. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3961. // access properties on the request object before or after sending the request. If
  3962. // you just want the service response, call the DeregisterImage method directly
  3963. // instead.
  3964. //
  3965. // Note: You must call the "Send" method on the returned request object in order
  3966. // to execute the request.
  3967. //
  3968. // // Example sending a request using the DeregisterImageRequest method.
  3969. // req, resp := client.DeregisterImageRequest(params)
  3970. //
  3971. // err := req.Send()
  3972. // if err == nil { // resp is now filled
  3973. // fmt.Println(resp)
  3974. // }
  3975. //
  3976. func (c *EC2) DeregisterImageRequest(input *DeregisterImageInput) (req *request.Request, output *DeregisterImageOutput) {
  3977. op := &request.Operation{
  3978. Name: opDeregisterImage,
  3979. HTTPMethod: "POST",
  3980. HTTPPath: "/",
  3981. }
  3982. if input == nil {
  3983. input = &DeregisterImageInput{}
  3984. }
  3985. req = c.newRequest(op, input, output)
  3986. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  3987. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  3988. output = &DeregisterImageOutput{}
  3989. req.Data = output
  3990. return
  3991. }
  3992. // Deregisters the specified AMI. After you deregister an AMI, it can't be used
  3993. // to launch new instances.
  3994. //
  3995. // This command does not delete the AMI.
  3996. func (c *EC2) DeregisterImage(input *DeregisterImageInput) (*DeregisterImageOutput, error) {
  3997. req, out := c.DeregisterImageRequest(input)
  3998. err := req.Send()
  3999. return out, err
  4000. }
  4001. const opDescribeAccountAttributes = "DescribeAccountAttributes"
  4002. // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
  4003. // client's request for the DescribeAccountAttributes operation. The "output" return
  4004. // value can be used to capture response data after the request's "Send" method
  4005. // is called.
  4006. //
  4007. // Creating a request object using this method should be used when you want to inject
  4008. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4009. // access properties on the request object before or after sending the request. If
  4010. // you just want the service response, call the DescribeAccountAttributes method directly
  4011. // instead.
  4012. //
  4013. // Note: You must call the "Send" method on the returned request object in order
  4014. // to execute the request.
  4015. //
  4016. // // Example sending a request using the DescribeAccountAttributesRequest method.
  4017. // req, resp := client.DescribeAccountAttributesRequest(params)
  4018. //
  4019. // err := req.Send()
  4020. // if err == nil { // resp is now filled
  4021. // fmt.Println(resp)
  4022. // }
  4023. //
  4024. func (c *EC2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) {
  4025. op := &request.Operation{
  4026. Name: opDescribeAccountAttributes,
  4027. HTTPMethod: "POST",
  4028. HTTPPath: "/",
  4029. }
  4030. if input == nil {
  4031. input = &DescribeAccountAttributesInput{}
  4032. }
  4033. req = c.newRequest(op, input, output)
  4034. output = &DescribeAccountAttributesOutput{}
  4035. req.Data = output
  4036. return
  4037. }
  4038. // Describes attributes of your AWS account. The following are the supported
  4039. // account attributes:
  4040. //
  4041. // supported-platforms: Indicates whether your account can launch instances
  4042. // into EC2-Classic and EC2-VPC, or only into EC2-VPC.
  4043. //
  4044. // default-vpc: The ID of the default VPC for your account, or none.
  4045. //
  4046. // max-instances: The maximum number of On-Demand instances that you can
  4047. // run.
  4048. //
  4049. // vpc-max-security-groups-per-interface: The maximum number of security
  4050. // groups that you can assign to a network interface.
  4051. //
  4052. // max-elastic-ips: The maximum number of Elastic IP addresses that you
  4053. // can allocate for use with EC2-Classic.
  4054. //
  4055. // vpc-max-elastic-ips: The maximum number of Elastic IP addresses that
  4056. // you can allocate for use with EC2-VPC.
  4057. func (c *EC2) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) {
  4058. req, out := c.DescribeAccountAttributesRequest(input)
  4059. err := req.Send()
  4060. return out, err
  4061. }
  4062. const opDescribeAddresses = "DescribeAddresses"
  4063. // DescribeAddressesRequest generates a "aws/request.Request" representing the
  4064. // client's request for the DescribeAddresses operation. The "output" return
  4065. // value can be used to capture response data after the request's "Send" method
  4066. // is called.
  4067. //
  4068. // Creating a request object using this method should be used when you want to inject
  4069. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4070. // access properties on the request object before or after sending the request. If
  4071. // you just want the service response, call the DescribeAddresses method directly
  4072. // instead.
  4073. //
  4074. // Note: You must call the "Send" method on the returned request object in order
  4075. // to execute the request.
  4076. //
  4077. // // Example sending a request using the DescribeAddressesRequest method.
  4078. // req, resp := client.DescribeAddressesRequest(params)
  4079. //
  4080. // err := req.Send()
  4081. // if err == nil { // resp is now filled
  4082. // fmt.Println(resp)
  4083. // }
  4084. //
  4085. func (c *EC2) DescribeAddressesRequest(input *DescribeAddressesInput) (req *request.Request, output *DescribeAddressesOutput) {
  4086. op := &request.Operation{
  4087. Name: opDescribeAddresses,
  4088. HTTPMethod: "POST",
  4089. HTTPPath: "/",
  4090. }
  4091. if input == nil {
  4092. input = &DescribeAddressesInput{}
  4093. }
  4094. req = c.newRequest(op, input, output)
  4095. output = &DescribeAddressesOutput{}
  4096. req.Data = output
  4097. return
  4098. }
  4099. // Describes one or more of your Elastic IP addresses.
  4100. //
  4101. // An Elastic IP address is for use in either the EC2-Classic platform or in
  4102. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  4103. // in the Amazon Elastic Compute Cloud User Guide.
  4104. func (c *EC2) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) {
  4105. req, out := c.DescribeAddressesRequest(input)
  4106. err := req.Send()
  4107. return out, err
  4108. }
  4109. const opDescribeAvailabilityZones = "DescribeAvailabilityZones"
  4110. // DescribeAvailabilityZonesRequest generates a "aws/request.Request" representing the
  4111. // client's request for the DescribeAvailabilityZones operation. The "output" return
  4112. // value can be used to capture response data after the request's "Send" method
  4113. // is called.
  4114. //
  4115. // Creating a request object using this method should be used when you want to inject
  4116. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4117. // access properties on the request object before or after sending the request. If
  4118. // you just want the service response, call the DescribeAvailabilityZones method directly
  4119. // instead.
  4120. //
  4121. // Note: You must call the "Send" method on the returned request object in order
  4122. // to execute the request.
  4123. //
  4124. // // Example sending a request using the DescribeAvailabilityZonesRequest method.
  4125. // req, resp := client.DescribeAvailabilityZonesRequest(params)
  4126. //
  4127. // err := req.Send()
  4128. // if err == nil { // resp is now filled
  4129. // fmt.Println(resp)
  4130. // }
  4131. //
  4132. func (c *EC2) DescribeAvailabilityZonesRequest(input *DescribeAvailabilityZonesInput) (req *request.Request, output *DescribeAvailabilityZonesOutput) {
  4133. op := &request.Operation{
  4134. Name: opDescribeAvailabilityZones,
  4135. HTTPMethod: "POST",
  4136. HTTPPath: "/",
  4137. }
  4138. if input == nil {
  4139. input = &DescribeAvailabilityZonesInput{}
  4140. }
  4141. req = c.newRequest(op, input, output)
  4142. output = &DescribeAvailabilityZonesOutput{}
  4143. req.Data = output
  4144. return
  4145. }
  4146. // Describes one or more of the Availability Zones that are available to you.
  4147. // The results include zones only for the region you're currently using. If
  4148. // there is an event impacting an Availability Zone, you can use this request
  4149. // to view the state and any provided message for that Availability Zone.
  4150. //
  4151. // For more information, see Regions and Availability Zones (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html)
  4152. // in the Amazon Elastic Compute Cloud User Guide.
  4153. func (c *EC2) DescribeAvailabilityZones(input *DescribeAvailabilityZonesInput) (*DescribeAvailabilityZonesOutput, error) {
  4154. req, out := c.DescribeAvailabilityZonesRequest(input)
  4155. err := req.Send()
  4156. return out, err
  4157. }
  4158. const opDescribeBundleTasks = "DescribeBundleTasks"
  4159. // DescribeBundleTasksRequest generates a "aws/request.Request" representing the
  4160. // client's request for the DescribeBundleTasks operation. The "output" return
  4161. // value can be used to capture response data after the request's "Send" method
  4162. // is called.
  4163. //
  4164. // Creating a request object using this method should be used when you want to inject
  4165. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4166. // access properties on the request object before or after sending the request. If
  4167. // you just want the service response, call the DescribeBundleTasks method directly
  4168. // instead.
  4169. //
  4170. // Note: You must call the "Send" method on the returned request object in order
  4171. // to execute the request.
  4172. //
  4173. // // Example sending a request using the DescribeBundleTasksRequest method.
  4174. // req, resp := client.DescribeBundleTasksRequest(params)
  4175. //
  4176. // err := req.Send()
  4177. // if err == nil { // resp is now filled
  4178. // fmt.Println(resp)
  4179. // }
  4180. //
  4181. func (c *EC2) DescribeBundleTasksRequest(input *DescribeBundleTasksInput) (req *request.Request, output *DescribeBundleTasksOutput) {
  4182. op := &request.Operation{
  4183. Name: opDescribeBundleTasks,
  4184. HTTPMethod: "POST",
  4185. HTTPPath: "/",
  4186. }
  4187. if input == nil {
  4188. input = &DescribeBundleTasksInput{}
  4189. }
  4190. req = c.newRequest(op, input, output)
  4191. output = &DescribeBundleTasksOutput{}
  4192. req.Data = output
  4193. return
  4194. }
  4195. // Describes one or more of your bundling tasks.
  4196. //
  4197. // Completed bundle tasks are listed for only a limited time. If your bundle
  4198. // task is no longer in the list, you can still register an AMI from it. Just
  4199. // use RegisterImage with the Amazon S3 bucket name and image manifest name
  4200. // you provided to the bundle task.
  4201. func (c *EC2) DescribeBundleTasks(input *DescribeBundleTasksInput) (*DescribeBundleTasksOutput, error) {
  4202. req, out := c.DescribeBundleTasksRequest(input)
  4203. err := req.Send()
  4204. return out, err
  4205. }
  4206. const opDescribeClassicLinkInstances = "DescribeClassicLinkInstances"
  4207. // DescribeClassicLinkInstancesRequest generates a "aws/request.Request" representing the
  4208. // client's request for the DescribeClassicLinkInstances operation. The "output" return
  4209. // value can be used to capture response data after the request's "Send" method
  4210. // is called.
  4211. //
  4212. // Creating a request object using this method should be used when you want to inject
  4213. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4214. // access properties on the request object before or after sending the request. If
  4215. // you just want the service response, call the DescribeClassicLinkInstances method directly
  4216. // instead.
  4217. //
  4218. // Note: You must call the "Send" method on the returned request object in order
  4219. // to execute the request.
  4220. //
  4221. // // Example sending a request using the DescribeClassicLinkInstancesRequest method.
  4222. // req, resp := client.DescribeClassicLinkInstancesRequest(params)
  4223. //
  4224. // err := req.Send()
  4225. // if err == nil { // resp is now filled
  4226. // fmt.Println(resp)
  4227. // }
  4228. //
  4229. func (c *EC2) DescribeClassicLinkInstancesRequest(input *DescribeClassicLinkInstancesInput) (req *request.Request, output *DescribeClassicLinkInstancesOutput) {
  4230. op := &request.Operation{
  4231. Name: opDescribeClassicLinkInstances,
  4232. HTTPMethod: "POST",
  4233. HTTPPath: "/",
  4234. }
  4235. if input == nil {
  4236. input = &DescribeClassicLinkInstancesInput{}
  4237. }
  4238. req = c.newRequest(op, input, output)
  4239. output = &DescribeClassicLinkInstancesOutput{}
  4240. req.Data = output
  4241. return
  4242. }
  4243. // Describes one or more of your linked EC2-Classic instances. This request
  4244. // only returns information about EC2-Classic instances linked to a VPC through
  4245. // ClassicLink; you cannot use this request to return information about other
  4246. // instances.
  4247. func (c *EC2) DescribeClassicLinkInstances(input *DescribeClassicLinkInstancesInput) (*DescribeClassicLinkInstancesOutput, error) {
  4248. req, out := c.DescribeClassicLinkInstancesRequest(input)
  4249. err := req.Send()
  4250. return out, err
  4251. }
  4252. const opDescribeConversionTasks = "DescribeConversionTasks"
  4253. // DescribeConversionTasksRequest generates a "aws/request.Request" representing the
  4254. // client's request for the DescribeConversionTasks operation. The "output" return
  4255. // value can be used to capture response data after the request's "Send" method
  4256. // is called.
  4257. //
  4258. // Creating a request object using this method should be used when you want to inject
  4259. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4260. // access properties on the request object before or after sending the request. If
  4261. // you just want the service response, call the DescribeConversionTasks method directly
  4262. // instead.
  4263. //
  4264. // Note: You must call the "Send" method on the returned request object in order
  4265. // to execute the request.
  4266. //
  4267. // // Example sending a request using the DescribeConversionTasksRequest method.
  4268. // req, resp := client.DescribeConversionTasksRequest(params)
  4269. //
  4270. // err := req.Send()
  4271. // if err == nil { // resp is now filled
  4272. // fmt.Println(resp)
  4273. // }
  4274. //
  4275. func (c *EC2) DescribeConversionTasksRequest(input *DescribeConversionTasksInput) (req *request.Request, output *DescribeConversionTasksOutput) {
  4276. op := &request.Operation{
  4277. Name: opDescribeConversionTasks,
  4278. HTTPMethod: "POST",
  4279. HTTPPath: "/",
  4280. }
  4281. if input == nil {
  4282. input = &DescribeConversionTasksInput{}
  4283. }
  4284. req = c.newRequest(op, input, output)
  4285. output = &DescribeConversionTasksOutput{}
  4286. req.Data = output
  4287. return
  4288. }
  4289. // Describes one or more of your conversion tasks. For more information, see
  4290. // Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2
  4291. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UploadingYourInstancesandVolumes.html)
  4292. // in the Amazon Elastic Compute Cloud User Guide.
  4293. //
  4294. // For information about the import manifest referenced by this API action,
  4295. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  4296. func (c *EC2) DescribeConversionTasks(input *DescribeConversionTasksInput) (*DescribeConversionTasksOutput, error) {
  4297. req, out := c.DescribeConversionTasksRequest(input)
  4298. err := req.Send()
  4299. return out, err
  4300. }
  4301. const opDescribeCustomerGateways = "DescribeCustomerGateways"
  4302. // DescribeCustomerGatewaysRequest generates a "aws/request.Request" representing the
  4303. // client's request for the DescribeCustomerGateways operation. The "output" return
  4304. // value can be used to capture response data after the request's "Send" method
  4305. // is called.
  4306. //
  4307. // Creating a request object using this method should be used when you want to inject
  4308. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4309. // access properties on the request object before or after sending the request. If
  4310. // you just want the service response, call the DescribeCustomerGateways method directly
  4311. // instead.
  4312. //
  4313. // Note: You must call the "Send" method on the returned request object in order
  4314. // to execute the request.
  4315. //
  4316. // // Example sending a request using the DescribeCustomerGatewaysRequest method.
  4317. // req, resp := client.DescribeCustomerGatewaysRequest(params)
  4318. //
  4319. // err := req.Send()
  4320. // if err == nil { // resp is now filled
  4321. // fmt.Println(resp)
  4322. // }
  4323. //
  4324. func (c *EC2) DescribeCustomerGatewaysRequest(input *DescribeCustomerGatewaysInput) (req *request.Request, output *DescribeCustomerGatewaysOutput) {
  4325. op := &request.Operation{
  4326. Name: opDescribeCustomerGateways,
  4327. HTTPMethod: "POST",
  4328. HTTPPath: "/",
  4329. }
  4330. if input == nil {
  4331. input = &DescribeCustomerGatewaysInput{}
  4332. }
  4333. req = c.newRequest(op, input, output)
  4334. output = &DescribeCustomerGatewaysOutput{}
  4335. req.Data = output
  4336. return
  4337. }
  4338. // Describes one or more of your VPN customer gateways.
  4339. //
  4340. // For more information about VPN customer gateways, see Adding a Hardware
  4341. // Virtual Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  4342. // in the Amazon Virtual Private Cloud User Guide.
  4343. func (c *EC2) DescribeCustomerGateways(input *DescribeCustomerGatewaysInput) (*DescribeCustomerGatewaysOutput, error) {
  4344. req, out := c.DescribeCustomerGatewaysRequest(input)
  4345. err := req.Send()
  4346. return out, err
  4347. }
  4348. const opDescribeDhcpOptions = "DescribeDhcpOptions"
  4349. // DescribeDhcpOptionsRequest generates a "aws/request.Request" representing the
  4350. // client's request for the DescribeDhcpOptions operation. The "output" return
  4351. // value can be used to capture response data after the request's "Send" method
  4352. // is called.
  4353. //
  4354. // Creating a request object using this method should be used when you want to inject
  4355. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4356. // access properties on the request object before or after sending the request. If
  4357. // you just want the service response, call the DescribeDhcpOptions method directly
  4358. // instead.
  4359. //
  4360. // Note: You must call the "Send" method on the returned request object in order
  4361. // to execute the request.
  4362. //
  4363. // // Example sending a request using the DescribeDhcpOptionsRequest method.
  4364. // req, resp := client.DescribeDhcpOptionsRequest(params)
  4365. //
  4366. // err := req.Send()
  4367. // if err == nil { // resp is now filled
  4368. // fmt.Println(resp)
  4369. // }
  4370. //
  4371. func (c *EC2) DescribeDhcpOptionsRequest(input *DescribeDhcpOptionsInput) (req *request.Request, output *DescribeDhcpOptionsOutput) {
  4372. op := &request.Operation{
  4373. Name: opDescribeDhcpOptions,
  4374. HTTPMethod: "POST",
  4375. HTTPPath: "/",
  4376. }
  4377. if input == nil {
  4378. input = &DescribeDhcpOptionsInput{}
  4379. }
  4380. req = c.newRequest(op, input, output)
  4381. output = &DescribeDhcpOptionsOutput{}
  4382. req.Data = output
  4383. return
  4384. }
  4385. // Describes one or more of your DHCP options sets.
  4386. //
  4387. // For more information about DHCP options sets, see DHCP Options Sets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html)
  4388. // in the Amazon Virtual Private Cloud User Guide.
  4389. func (c *EC2) DescribeDhcpOptions(input *DescribeDhcpOptionsInput) (*DescribeDhcpOptionsOutput, error) {
  4390. req, out := c.DescribeDhcpOptionsRequest(input)
  4391. err := req.Send()
  4392. return out, err
  4393. }
  4394. const opDescribeExportTasks = "DescribeExportTasks"
  4395. // DescribeExportTasksRequest generates a "aws/request.Request" representing the
  4396. // client's request for the DescribeExportTasks operation. The "output" return
  4397. // value can be used to capture response data after the request's "Send" method
  4398. // is called.
  4399. //
  4400. // Creating a request object using this method should be used when you want to inject
  4401. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4402. // access properties on the request object before or after sending the request. If
  4403. // you just want the service response, call the DescribeExportTasks method directly
  4404. // instead.
  4405. //
  4406. // Note: You must call the "Send" method on the returned request object in order
  4407. // to execute the request.
  4408. //
  4409. // // Example sending a request using the DescribeExportTasksRequest method.
  4410. // req, resp := client.DescribeExportTasksRequest(params)
  4411. //
  4412. // err := req.Send()
  4413. // if err == nil { // resp is now filled
  4414. // fmt.Println(resp)
  4415. // }
  4416. //
  4417. func (c *EC2) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) {
  4418. op := &request.Operation{
  4419. Name: opDescribeExportTasks,
  4420. HTTPMethod: "POST",
  4421. HTTPPath: "/",
  4422. }
  4423. if input == nil {
  4424. input = &DescribeExportTasksInput{}
  4425. }
  4426. req = c.newRequest(op, input, output)
  4427. output = &DescribeExportTasksOutput{}
  4428. req.Data = output
  4429. return
  4430. }
  4431. // Describes one or more of your export tasks.
  4432. func (c *EC2) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) {
  4433. req, out := c.DescribeExportTasksRequest(input)
  4434. err := req.Send()
  4435. return out, err
  4436. }
  4437. const opDescribeFlowLogs = "DescribeFlowLogs"
  4438. // DescribeFlowLogsRequest generates a "aws/request.Request" representing the
  4439. // client's request for the DescribeFlowLogs operation. The "output" return
  4440. // value can be used to capture response data after the request's "Send" method
  4441. // is called.
  4442. //
  4443. // Creating a request object using this method should be used when you want to inject
  4444. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4445. // access properties on the request object before or after sending the request. If
  4446. // you just want the service response, call the DescribeFlowLogs method directly
  4447. // instead.
  4448. //
  4449. // Note: You must call the "Send" method on the returned request object in order
  4450. // to execute the request.
  4451. //
  4452. // // Example sending a request using the DescribeFlowLogsRequest method.
  4453. // req, resp := client.DescribeFlowLogsRequest(params)
  4454. //
  4455. // err := req.Send()
  4456. // if err == nil { // resp is now filled
  4457. // fmt.Println(resp)
  4458. // }
  4459. //
  4460. func (c *EC2) DescribeFlowLogsRequest(input *DescribeFlowLogsInput) (req *request.Request, output *DescribeFlowLogsOutput) {
  4461. op := &request.Operation{
  4462. Name: opDescribeFlowLogs,
  4463. HTTPMethod: "POST",
  4464. HTTPPath: "/",
  4465. }
  4466. if input == nil {
  4467. input = &DescribeFlowLogsInput{}
  4468. }
  4469. req = c.newRequest(op, input, output)
  4470. output = &DescribeFlowLogsOutput{}
  4471. req.Data = output
  4472. return
  4473. }
  4474. // Describes one or more flow logs. To view the information in your flow logs
  4475. // (the log streams for the network interfaces), you must use the CloudWatch
  4476. // Logs console or the CloudWatch Logs API.
  4477. func (c *EC2) DescribeFlowLogs(input *DescribeFlowLogsInput) (*DescribeFlowLogsOutput, error) {
  4478. req, out := c.DescribeFlowLogsRequest(input)
  4479. err := req.Send()
  4480. return out, err
  4481. }
  4482. const opDescribeHosts = "DescribeHosts"
  4483. // DescribeHostsRequest generates a "aws/request.Request" representing the
  4484. // client's request for the DescribeHosts operation. The "output" return
  4485. // value can be used to capture response data after the request's "Send" method
  4486. // is called.
  4487. //
  4488. // Creating a request object using this method should be used when you want to inject
  4489. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4490. // access properties on the request object before or after sending the request. If
  4491. // you just want the service response, call the DescribeHosts method directly
  4492. // instead.
  4493. //
  4494. // Note: You must call the "Send" method on the returned request object in order
  4495. // to execute the request.
  4496. //
  4497. // // Example sending a request using the DescribeHostsRequest method.
  4498. // req, resp := client.DescribeHostsRequest(params)
  4499. //
  4500. // err := req.Send()
  4501. // if err == nil { // resp is now filled
  4502. // fmt.Println(resp)
  4503. // }
  4504. //
  4505. func (c *EC2) DescribeHostsRequest(input *DescribeHostsInput) (req *request.Request, output *DescribeHostsOutput) {
  4506. op := &request.Operation{
  4507. Name: opDescribeHosts,
  4508. HTTPMethod: "POST",
  4509. HTTPPath: "/",
  4510. }
  4511. if input == nil {
  4512. input = &DescribeHostsInput{}
  4513. }
  4514. req = c.newRequest(op, input, output)
  4515. output = &DescribeHostsOutput{}
  4516. req.Data = output
  4517. return
  4518. }
  4519. // Describes one or more of your Dedicated hosts.
  4520. //
  4521. // The results describe only the Dedicated hosts in the region you're currently
  4522. // using. All listed instances consume capacity on your Dedicated host. Dedicated
  4523. // hosts that have recently been released will be listed with the state released.
  4524. func (c *EC2) DescribeHosts(input *DescribeHostsInput) (*DescribeHostsOutput, error) {
  4525. req, out := c.DescribeHostsRequest(input)
  4526. err := req.Send()
  4527. return out, err
  4528. }
  4529. const opDescribeIdFormat = "DescribeIdFormat"
  4530. // DescribeIdFormatRequest generates a "aws/request.Request" representing the
  4531. // client's request for the DescribeIdFormat operation. The "output" return
  4532. // value can be used to capture response data after the request's "Send" method
  4533. // is called.
  4534. //
  4535. // Creating a request object using this method should be used when you want to inject
  4536. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4537. // access properties on the request object before or after sending the request. If
  4538. // you just want the service response, call the DescribeIdFormat method directly
  4539. // instead.
  4540. //
  4541. // Note: You must call the "Send" method on the returned request object in order
  4542. // to execute the request.
  4543. //
  4544. // // Example sending a request using the DescribeIdFormatRequest method.
  4545. // req, resp := client.DescribeIdFormatRequest(params)
  4546. //
  4547. // err := req.Send()
  4548. // if err == nil { // resp is now filled
  4549. // fmt.Println(resp)
  4550. // }
  4551. //
  4552. func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *request.Request, output *DescribeIdFormatOutput) {
  4553. op := &request.Operation{
  4554. Name: opDescribeIdFormat,
  4555. HTTPMethod: "POST",
  4556. HTTPPath: "/",
  4557. }
  4558. if input == nil {
  4559. input = &DescribeIdFormatInput{}
  4560. }
  4561. req = c.newRequest(op, input, output)
  4562. output = &DescribeIdFormatOutput{}
  4563. req.Data = output
  4564. return
  4565. }
  4566. // Describes the ID format settings for your resources on a per-region basis,
  4567. // for example, to view which resource types are enabled for longer IDs. This
  4568. // request only returns information about resource types whose ID formats can
  4569. // be modified; it does not return information about other resource types.
  4570. //
  4571. // The following resource types support longer IDs: instance | reservation
  4572. // | snapshot | volume.
  4573. //
  4574. // These settings apply to the IAM user who makes the request; they do not
  4575. // apply to the entire AWS account. By default, an IAM user defaults to the
  4576. // same settings as the root user, unless they explicitly override the settings
  4577. // by running the ModifyIdFormat command. Resources created with longer IDs
  4578. // are visible to all IAM users, regardless of these settings and provided that
  4579. // they have permission to use the relevant Describe command for the resource
  4580. // type.
  4581. func (c *EC2) DescribeIdFormat(input *DescribeIdFormatInput) (*DescribeIdFormatOutput, error) {
  4582. req, out := c.DescribeIdFormatRequest(input)
  4583. err := req.Send()
  4584. return out, err
  4585. }
  4586. const opDescribeIdentityIdFormat = "DescribeIdentityIdFormat"
  4587. // DescribeIdentityIdFormatRequest generates a "aws/request.Request" representing the
  4588. // client's request for the DescribeIdentityIdFormat operation. The "output" return
  4589. // value can be used to capture response data after the request's "Send" method
  4590. // is called.
  4591. //
  4592. // Creating a request object using this method should be used when you want to inject
  4593. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4594. // access properties on the request object before or after sending the request. If
  4595. // you just want the service response, call the DescribeIdentityIdFormat method directly
  4596. // instead.
  4597. //
  4598. // Note: You must call the "Send" method on the returned request object in order
  4599. // to execute the request.
  4600. //
  4601. // // Example sending a request using the DescribeIdentityIdFormatRequest method.
  4602. // req, resp := client.DescribeIdentityIdFormatRequest(params)
  4603. //
  4604. // err := req.Send()
  4605. // if err == nil { // resp is now filled
  4606. // fmt.Println(resp)
  4607. // }
  4608. //
  4609. func (c *EC2) DescribeIdentityIdFormatRequest(input *DescribeIdentityIdFormatInput) (req *request.Request, output *DescribeIdentityIdFormatOutput) {
  4610. op := &request.Operation{
  4611. Name: opDescribeIdentityIdFormat,
  4612. HTTPMethod: "POST",
  4613. HTTPPath: "/",
  4614. }
  4615. if input == nil {
  4616. input = &DescribeIdentityIdFormatInput{}
  4617. }
  4618. req = c.newRequest(op, input, output)
  4619. output = &DescribeIdentityIdFormatOutput{}
  4620. req.Data = output
  4621. return
  4622. }
  4623. // Describes the ID format settings for resources for the specified IAM user,
  4624. // IAM role, or root user. For example, you can view the resource types that
  4625. // are enabled for longer IDs. This request only returns information about resource
  4626. // types whose ID formats can be modified; it does not return information about
  4627. // other resource types. For more information, see Resource IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  4628. // in the Amazon Elastic Compute Cloud User Guide.
  4629. //
  4630. // The following resource types support longer IDs: instance | reservation
  4631. // | snapshot | volume.
  4632. //
  4633. // These settings apply to the principal specified in the request. They do
  4634. // not apply to the principal that makes the request.
  4635. func (c *EC2) DescribeIdentityIdFormat(input *DescribeIdentityIdFormatInput) (*DescribeIdentityIdFormatOutput, error) {
  4636. req, out := c.DescribeIdentityIdFormatRequest(input)
  4637. err := req.Send()
  4638. return out, err
  4639. }
  4640. const opDescribeImageAttribute = "DescribeImageAttribute"
  4641. // DescribeImageAttributeRequest generates a "aws/request.Request" representing the
  4642. // client's request for the DescribeImageAttribute operation. The "output" return
  4643. // value can be used to capture response data after the request's "Send" method
  4644. // is called.
  4645. //
  4646. // Creating a request object using this method should be used when you want to inject
  4647. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4648. // access properties on the request object before or after sending the request. If
  4649. // you just want the service response, call the DescribeImageAttribute method directly
  4650. // instead.
  4651. //
  4652. // Note: You must call the "Send" method on the returned request object in order
  4653. // to execute the request.
  4654. //
  4655. // // Example sending a request using the DescribeImageAttributeRequest method.
  4656. // req, resp := client.DescribeImageAttributeRequest(params)
  4657. //
  4658. // err := req.Send()
  4659. // if err == nil { // resp is now filled
  4660. // fmt.Println(resp)
  4661. // }
  4662. //
  4663. func (c *EC2) DescribeImageAttributeRequest(input *DescribeImageAttributeInput) (req *request.Request, output *DescribeImageAttributeOutput) {
  4664. op := &request.Operation{
  4665. Name: opDescribeImageAttribute,
  4666. HTTPMethod: "POST",
  4667. HTTPPath: "/",
  4668. }
  4669. if input == nil {
  4670. input = &DescribeImageAttributeInput{}
  4671. }
  4672. req = c.newRequest(op, input, output)
  4673. output = &DescribeImageAttributeOutput{}
  4674. req.Data = output
  4675. return
  4676. }
  4677. // Describes the specified attribute of the specified AMI. You can specify only
  4678. // one attribute at a time.
  4679. func (c *EC2) DescribeImageAttribute(input *DescribeImageAttributeInput) (*DescribeImageAttributeOutput, error) {
  4680. req, out := c.DescribeImageAttributeRequest(input)
  4681. err := req.Send()
  4682. return out, err
  4683. }
  4684. const opDescribeImages = "DescribeImages"
  4685. // DescribeImagesRequest generates a "aws/request.Request" representing the
  4686. // client's request for the DescribeImages operation. The "output" return
  4687. // value can be used to capture response data after the request's "Send" method
  4688. // is called.
  4689. //
  4690. // Creating a request object using this method should be used when you want to inject
  4691. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4692. // access properties on the request object before or after sending the request. If
  4693. // you just want the service response, call the DescribeImages method directly
  4694. // instead.
  4695. //
  4696. // Note: You must call the "Send" method on the returned request object in order
  4697. // to execute the request.
  4698. //
  4699. // // Example sending a request using the DescribeImagesRequest method.
  4700. // req, resp := client.DescribeImagesRequest(params)
  4701. //
  4702. // err := req.Send()
  4703. // if err == nil { // resp is now filled
  4704. // fmt.Println(resp)
  4705. // }
  4706. //
  4707. func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput) {
  4708. op := &request.Operation{
  4709. Name: opDescribeImages,
  4710. HTTPMethod: "POST",
  4711. HTTPPath: "/",
  4712. }
  4713. if input == nil {
  4714. input = &DescribeImagesInput{}
  4715. }
  4716. req = c.newRequest(op, input, output)
  4717. output = &DescribeImagesOutput{}
  4718. req.Data = output
  4719. return
  4720. }
  4721. // Describes one or more of the images (AMIs, AKIs, and ARIs) available to you.
  4722. // Images available to you include public images, private images that you own,
  4723. // and private images owned by other AWS accounts but for which you have explicit
  4724. // launch permissions.
  4725. //
  4726. // Deregistered images are included in the returned results for an unspecified
  4727. // interval after deregistration.
  4728. func (c *EC2) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error) {
  4729. req, out := c.DescribeImagesRequest(input)
  4730. err := req.Send()
  4731. return out, err
  4732. }
  4733. const opDescribeImportImageTasks = "DescribeImportImageTasks"
  4734. // DescribeImportImageTasksRequest generates a "aws/request.Request" representing the
  4735. // client's request for the DescribeImportImageTasks operation. The "output" return
  4736. // value can be used to capture response data after the request's "Send" method
  4737. // is called.
  4738. //
  4739. // Creating a request object using this method should be used when you want to inject
  4740. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4741. // access properties on the request object before or after sending the request. If
  4742. // you just want the service response, call the DescribeImportImageTasks method directly
  4743. // instead.
  4744. //
  4745. // Note: You must call the "Send" method on the returned request object in order
  4746. // to execute the request.
  4747. //
  4748. // // Example sending a request using the DescribeImportImageTasksRequest method.
  4749. // req, resp := client.DescribeImportImageTasksRequest(params)
  4750. //
  4751. // err := req.Send()
  4752. // if err == nil { // resp is now filled
  4753. // fmt.Println(resp)
  4754. // }
  4755. //
  4756. func (c *EC2) DescribeImportImageTasksRequest(input *DescribeImportImageTasksInput) (req *request.Request, output *DescribeImportImageTasksOutput) {
  4757. op := &request.Operation{
  4758. Name: opDescribeImportImageTasks,
  4759. HTTPMethod: "POST",
  4760. HTTPPath: "/",
  4761. }
  4762. if input == nil {
  4763. input = &DescribeImportImageTasksInput{}
  4764. }
  4765. req = c.newRequest(op, input, output)
  4766. output = &DescribeImportImageTasksOutput{}
  4767. req.Data = output
  4768. return
  4769. }
  4770. // Displays details about an import virtual machine or import snapshot tasks
  4771. // that are already created.
  4772. func (c *EC2) DescribeImportImageTasks(input *DescribeImportImageTasksInput) (*DescribeImportImageTasksOutput, error) {
  4773. req, out := c.DescribeImportImageTasksRequest(input)
  4774. err := req.Send()
  4775. return out, err
  4776. }
  4777. const opDescribeImportSnapshotTasks = "DescribeImportSnapshotTasks"
  4778. // DescribeImportSnapshotTasksRequest generates a "aws/request.Request" representing the
  4779. // client's request for the DescribeImportSnapshotTasks operation. The "output" return
  4780. // value can be used to capture response data after the request's "Send" method
  4781. // is called.
  4782. //
  4783. // Creating a request object using this method should be used when you want to inject
  4784. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4785. // access properties on the request object before or after sending the request. If
  4786. // you just want the service response, call the DescribeImportSnapshotTasks method directly
  4787. // instead.
  4788. //
  4789. // Note: You must call the "Send" method on the returned request object in order
  4790. // to execute the request.
  4791. //
  4792. // // Example sending a request using the DescribeImportSnapshotTasksRequest method.
  4793. // req, resp := client.DescribeImportSnapshotTasksRequest(params)
  4794. //
  4795. // err := req.Send()
  4796. // if err == nil { // resp is now filled
  4797. // fmt.Println(resp)
  4798. // }
  4799. //
  4800. func (c *EC2) DescribeImportSnapshotTasksRequest(input *DescribeImportSnapshotTasksInput) (req *request.Request, output *DescribeImportSnapshotTasksOutput) {
  4801. op := &request.Operation{
  4802. Name: opDescribeImportSnapshotTasks,
  4803. HTTPMethod: "POST",
  4804. HTTPPath: "/",
  4805. }
  4806. if input == nil {
  4807. input = &DescribeImportSnapshotTasksInput{}
  4808. }
  4809. req = c.newRequest(op, input, output)
  4810. output = &DescribeImportSnapshotTasksOutput{}
  4811. req.Data = output
  4812. return
  4813. }
  4814. // Describes your import snapshot tasks.
  4815. func (c *EC2) DescribeImportSnapshotTasks(input *DescribeImportSnapshotTasksInput) (*DescribeImportSnapshotTasksOutput, error) {
  4816. req, out := c.DescribeImportSnapshotTasksRequest(input)
  4817. err := req.Send()
  4818. return out, err
  4819. }
  4820. const opDescribeInstanceAttribute = "DescribeInstanceAttribute"
  4821. // DescribeInstanceAttributeRequest generates a "aws/request.Request" representing the
  4822. // client's request for the DescribeInstanceAttribute operation. The "output" return
  4823. // value can be used to capture response data after the request's "Send" method
  4824. // is called.
  4825. //
  4826. // Creating a request object using this method should be used when you want to inject
  4827. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4828. // access properties on the request object before or after sending the request. If
  4829. // you just want the service response, call the DescribeInstanceAttribute method directly
  4830. // instead.
  4831. //
  4832. // Note: You must call the "Send" method on the returned request object in order
  4833. // to execute the request.
  4834. //
  4835. // // Example sending a request using the DescribeInstanceAttributeRequest method.
  4836. // req, resp := client.DescribeInstanceAttributeRequest(params)
  4837. //
  4838. // err := req.Send()
  4839. // if err == nil { // resp is now filled
  4840. // fmt.Println(resp)
  4841. // }
  4842. //
  4843. func (c *EC2) DescribeInstanceAttributeRequest(input *DescribeInstanceAttributeInput) (req *request.Request, output *DescribeInstanceAttributeOutput) {
  4844. op := &request.Operation{
  4845. Name: opDescribeInstanceAttribute,
  4846. HTTPMethod: "POST",
  4847. HTTPPath: "/",
  4848. }
  4849. if input == nil {
  4850. input = &DescribeInstanceAttributeInput{}
  4851. }
  4852. req = c.newRequest(op, input, output)
  4853. output = &DescribeInstanceAttributeOutput{}
  4854. req.Data = output
  4855. return
  4856. }
  4857. // Describes the specified attribute of the specified instance. You can specify
  4858. // only one attribute at a time. Valid attribute values are: instanceType |
  4859. // kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior
  4860. // | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck |
  4861. // groupSet | ebsOptimized | sriovNetSupport
  4862. func (c *EC2) DescribeInstanceAttribute(input *DescribeInstanceAttributeInput) (*DescribeInstanceAttributeOutput, error) {
  4863. req, out := c.DescribeInstanceAttributeRequest(input)
  4864. err := req.Send()
  4865. return out, err
  4866. }
  4867. const opDescribeInstanceStatus = "DescribeInstanceStatus"
  4868. // DescribeInstanceStatusRequest generates a "aws/request.Request" representing the
  4869. // client's request for the DescribeInstanceStatus operation. The "output" return
  4870. // value can be used to capture response data after the request's "Send" method
  4871. // is called.
  4872. //
  4873. // Creating a request object using this method should be used when you want to inject
  4874. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4875. // access properties on the request object before or after sending the request. If
  4876. // you just want the service response, call the DescribeInstanceStatus method directly
  4877. // instead.
  4878. //
  4879. // Note: You must call the "Send" method on the returned request object in order
  4880. // to execute the request.
  4881. //
  4882. // // Example sending a request using the DescribeInstanceStatusRequest method.
  4883. // req, resp := client.DescribeInstanceStatusRequest(params)
  4884. //
  4885. // err := req.Send()
  4886. // if err == nil { // resp is now filled
  4887. // fmt.Println(resp)
  4888. // }
  4889. //
  4890. func (c *EC2) DescribeInstanceStatusRequest(input *DescribeInstanceStatusInput) (req *request.Request, output *DescribeInstanceStatusOutput) {
  4891. op := &request.Operation{
  4892. Name: opDescribeInstanceStatus,
  4893. HTTPMethod: "POST",
  4894. HTTPPath: "/",
  4895. Paginator: &request.Paginator{
  4896. InputTokens: []string{"NextToken"},
  4897. OutputTokens: []string{"NextToken"},
  4898. LimitToken: "MaxResults",
  4899. TruncationToken: "",
  4900. },
  4901. }
  4902. if input == nil {
  4903. input = &DescribeInstanceStatusInput{}
  4904. }
  4905. req = c.newRequest(op, input, output)
  4906. output = &DescribeInstanceStatusOutput{}
  4907. req.Data = output
  4908. return
  4909. }
  4910. // Describes the status of one or more instances. By default, only running instances
  4911. // are described, unless specified otherwise.
  4912. //
  4913. // Instance status includes the following components:
  4914. //
  4915. // Status checks - Amazon EC2 performs status checks on running EC2 instances
  4916. // to identify hardware and software issues. For more information, see Status
  4917. // Checks for Your Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html)
  4918. // and Troubleshooting Instances with Failed Status Checks (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html)
  4919. // in the Amazon Elastic Compute Cloud User Guide.
  4920. //
  4921. // Scheduled events - Amazon EC2 can schedule events (such as reboot, stop,
  4922. // or terminate) for your instances related to hardware issues, software updates,
  4923. // or system maintenance. For more information, see Scheduled Events for Your
  4924. // Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html)
  4925. // in the Amazon Elastic Compute Cloud User Guide.
  4926. //
  4927. // Instance state - You can manage your instances from the moment you launch
  4928. // them through their termination. For more information, see Instance Lifecycle
  4929. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  4930. // in the Amazon Elastic Compute Cloud User Guide.
  4931. func (c *EC2) DescribeInstanceStatus(input *DescribeInstanceStatusInput) (*DescribeInstanceStatusOutput, error) {
  4932. req, out := c.DescribeInstanceStatusRequest(input)
  4933. err := req.Send()
  4934. return out, err
  4935. }
  4936. // DescribeInstanceStatusPages iterates over the pages of a DescribeInstanceStatus operation,
  4937. // calling the "fn" function with the response data for each page. To stop
  4938. // iterating, return false from the fn function.
  4939. //
  4940. // See DescribeInstanceStatus method for more information on how to use this operation.
  4941. //
  4942. // Note: This operation can generate multiple requests to a service.
  4943. //
  4944. // // Example iterating over at most 3 pages of a DescribeInstanceStatus operation.
  4945. // pageNum := 0
  4946. // err := client.DescribeInstanceStatusPages(params,
  4947. // func(page *DescribeInstanceStatusOutput, lastPage bool) bool {
  4948. // pageNum++
  4949. // fmt.Println(page)
  4950. // return pageNum <= 3
  4951. // })
  4952. //
  4953. func (c *EC2) DescribeInstanceStatusPages(input *DescribeInstanceStatusInput, fn func(p *DescribeInstanceStatusOutput, lastPage bool) (shouldContinue bool)) error {
  4954. page, _ := c.DescribeInstanceStatusRequest(input)
  4955. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  4956. return page.EachPage(func(p interface{}, lastPage bool) bool {
  4957. return fn(p.(*DescribeInstanceStatusOutput), lastPage)
  4958. })
  4959. }
  4960. const opDescribeInstances = "DescribeInstances"
  4961. // DescribeInstancesRequest generates a "aws/request.Request" representing the
  4962. // client's request for the DescribeInstances operation. The "output" return
  4963. // value can be used to capture response data after the request's "Send" method
  4964. // is called.
  4965. //
  4966. // Creating a request object using this method should be used when you want to inject
  4967. // custom logic into the request's lifecycle using a custom handler, or if you want to
  4968. // access properties on the request object before or after sending the request. If
  4969. // you just want the service response, call the DescribeInstances method directly
  4970. // instead.
  4971. //
  4972. // Note: You must call the "Send" method on the returned request object in order
  4973. // to execute the request.
  4974. //
  4975. // // Example sending a request using the DescribeInstancesRequest method.
  4976. // req, resp := client.DescribeInstancesRequest(params)
  4977. //
  4978. // err := req.Send()
  4979. // if err == nil { // resp is now filled
  4980. // fmt.Println(resp)
  4981. // }
  4982. //
  4983. func (c *EC2) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) {
  4984. op := &request.Operation{
  4985. Name: opDescribeInstances,
  4986. HTTPMethod: "POST",
  4987. HTTPPath: "/",
  4988. Paginator: &request.Paginator{
  4989. InputTokens: []string{"NextToken"},
  4990. OutputTokens: []string{"NextToken"},
  4991. LimitToken: "MaxResults",
  4992. TruncationToken: "",
  4993. },
  4994. }
  4995. if input == nil {
  4996. input = &DescribeInstancesInput{}
  4997. }
  4998. req = c.newRequest(op, input, output)
  4999. output = &DescribeInstancesOutput{}
  5000. req.Data = output
  5001. return
  5002. }
  5003. // Describes one or more of your instances.
  5004. //
  5005. // If you specify one or more instance IDs, Amazon EC2 returns information
  5006. // for those instances. If you do not specify instance IDs, Amazon EC2 returns
  5007. // information for all relevant instances. If you specify an instance ID that
  5008. // is not valid, an error is returned. If you specify an instance that you do
  5009. // not own, it is not included in the returned results.
  5010. //
  5011. // Recently terminated instances might appear in the returned results. This
  5012. // interval is usually less than one hour.
  5013. //
  5014. // If you describe instances in the rare case where an Availability Zone is
  5015. // experiencing a service disruption and you specify instance IDs that are in
  5016. // the affected zone, or do not specify any instance IDs at all, the call fails.
  5017. // If you describe instances and specify only instance IDs that are in an unaffected
  5018. // zone, the call works normally.
  5019. func (c *EC2) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) {
  5020. req, out := c.DescribeInstancesRequest(input)
  5021. err := req.Send()
  5022. return out, err
  5023. }
  5024. // DescribeInstancesPages iterates over the pages of a DescribeInstances operation,
  5025. // calling the "fn" function with the response data for each page. To stop
  5026. // iterating, return false from the fn function.
  5027. //
  5028. // See DescribeInstances method for more information on how to use this operation.
  5029. //
  5030. // Note: This operation can generate multiple requests to a service.
  5031. //
  5032. // // Example iterating over at most 3 pages of a DescribeInstances operation.
  5033. // pageNum := 0
  5034. // err := client.DescribeInstancesPages(params,
  5035. // func(page *DescribeInstancesOutput, lastPage bool) bool {
  5036. // pageNum++
  5037. // fmt.Println(page)
  5038. // return pageNum <= 3
  5039. // })
  5040. //
  5041. func (c *EC2) DescribeInstancesPages(input *DescribeInstancesInput, fn func(p *DescribeInstancesOutput, lastPage bool) (shouldContinue bool)) error {
  5042. page, _ := c.DescribeInstancesRequest(input)
  5043. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  5044. return page.EachPage(func(p interface{}, lastPage bool) bool {
  5045. return fn(p.(*DescribeInstancesOutput), lastPage)
  5046. })
  5047. }
  5048. const opDescribeInternetGateways = "DescribeInternetGateways"
  5049. // DescribeInternetGatewaysRequest generates a "aws/request.Request" representing the
  5050. // client's request for the DescribeInternetGateways operation. The "output" return
  5051. // value can be used to capture response data after the request's "Send" method
  5052. // is called.
  5053. //
  5054. // Creating a request object using this method should be used when you want to inject
  5055. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5056. // access properties on the request object before or after sending the request. If
  5057. // you just want the service response, call the DescribeInternetGateways method directly
  5058. // instead.
  5059. //
  5060. // Note: You must call the "Send" method on the returned request object in order
  5061. // to execute the request.
  5062. //
  5063. // // Example sending a request using the DescribeInternetGatewaysRequest method.
  5064. // req, resp := client.DescribeInternetGatewaysRequest(params)
  5065. //
  5066. // err := req.Send()
  5067. // if err == nil { // resp is now filled
  5068. // fmt.Println(resp)
  5069. // }
  5070. //
  5071. func (c *EC2) DescribeInternetGatewaysRequest(input *DescribeInternetGatewaysInput) (req *request.Request, output *DescribeInternetGatewaysOutput) {
  5072. op := &request.Operation{
  5073. Name: opDescribeInternetGateways,
  5074. HTTPMethod: "POST",
  5075. HTTPPath: "/",
  5076. }
  5077. if input == nil {
  5078. input = &DescribeInternetGatewaysInput{}
  5079. }
  5080. req = c.newRequest(op, input, output)
  5081. output = &DescribeInternetGatewaysOutput{}
  5082. req.Data = output
  5083. return
  5084. }
  5085. // Describes one or more of your Internet gateways.
  5086. func (c *EC2) DescribeInternetGateways(input *DescribeInternetGatewaysInput) (*DescribeInternetGatewaysOutput, error) {
  5087. req, out := c.DescribeInternetGatewaysRequest(input)
  5088. err := req.Send()
  5089. return out, err
  5090. }
  5091. const opDescribeKeyPairs = "DescribeKeyPairs"
  5092. // DescribeKeyPairsRequest generates a "aws/request.Request" representing the
  5093. // client's request for the DescribeKeyPairs operation. The "output" return
  5094. // value can be used to capture response data after the request's "Send" method
  5095. // is called.
  5096. //
  5097. // Creating a request object using this method should be used when you want to inject
  5098. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5099. // access properties on the request object before or after sending the request. If
  5100. // you just want the service response, call the DescribeKeyPairs method directly
  5101. // instead.
  5102. //
  5103. // Note: You must call the "Send" method on the returned request object in order
  5104. // to execute the request.
  5105. //
  5106. // // Example sending a request using the DescribeKeyPairsRequest method.
  5107. // req, resp := client.DescribeKeyPairsRequest(params)
  5108. //
  5109. // err := req.Send()
  5110. // if err == nil { // resp is now filled
  5111. // fmt.Println(resp)
  5112. // }
  5113. //
  5114. func (c *EC2) DescribeKeyPairsRequest(input *DescribeKeyPairsInput) (req *request.Request, output *DescribeKeyPairsOutput) {
  5115. op := &request.Operation{
  5116. Name: opDescribeKeyPairs,
  5117. HTTPMethod: "POST",
  5118. HTTPPath: "/",
  5119. }
  5120. if input == nil {
  5121. input = &DescribeKeyPairsInput{}
  5122. }
  5123. req = c.newRequest(op, input, output)
  5124. output = &DescribeKeyPairsOutput{}
  5125. req.Data = output
  5126. return
  5127. }
  5128. // Describes one or more of your key pairs.
  5129. //
  5130. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  5131. // in the Amazon Elastic Compute Cloud User Guide.
  5132. func (c *EC2) DescribeKeyPairs(input *DescribeKeyPairsInput) (*DescribeKeyPairsOutput, error) {
  5133. req, out := c.DescribeKeyPairsRequest(input)
  5134. err := req.Send()
  5135. return out, err
  5136. }
  5137. const opDescribeMovingAddresses = "DescribeMovingAddresses"
  5138. // DescribeMovingAddressesRequest generates a "aws/request.Request" representing the
  5139. // client's request for the DescribeMovingAddresses operation. The "output" return
  5140. // value can be used to capture response data after the request's "Send" method
  5141. // is called.
  5142. //
  5143. // Creating a request object using this method should be used when you want to inject
  5144. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5145. // access properties on the request object before or after sending the request. If
  5146. // you just want the service response, call the DescribeMovingAddresses method directly
  5147. // instead.
  5148. //
  5149. // Note: You must call the "Send" method on the returned request object in order
  5150. // to execute the request.
  5151. //
  5152. // // Example sending a request using the DescribeMovingAddressesRequest method.
  5153. // req, resp := client.DescribeMovingAddressesRequest(params)
  5154. //
  5155. // err := req.Send()
  5156. // if err == nil { // resp is now filled
  5157. // fmt.Println(resp)
  5158. // }
  5159. //
  5160. func (c *EC2) DescribeMovingAddressesRequest(input *DescribeMovingAddressesInput) (req *request.Request, output *DescribeMovingAddressesOutput) {
  5161. op := &request.Operation{
  5162. Name: opDescribeMovingAddresses,
  5163. HTTPMethod: "POST",
  5164. HTTPPath: "/",
  5165. }
  5166. if input == nil {
  5167. input = &DescribeMovingAddressesInput{}
  5168. }
  5169. req = c.newRequest(op, input, output)
  5170. output = &DescribeMovingAddressesOutput{}
  5171. req.Data = output
  5172. return
  5173. }
  5174. // Describes your Elastic IP addresses that are being moved to the EC2-VPC platform,
  5175. // or that are being restored to the EC2-Classic platform. This request does
  5176. // not return information about any other Elastic IP addresses in your account.
  5177. func (c *EC2) DescribeMovingAddresses(input *DescribeMovingAddressesInput) (*DescribeMovingAddressesOutput, error) {
  5178. req, out := c.DescribeMovingAddressesRequest(input)
  5179. err := req.Send()
  5180. return out, err
  5181. }
  5182. const opDescribeNatGateways = "DescribeNatGateways"
  5183. // DescribeNatGatewaysRequest generates a "aws/request.Request" representing the
  5184. // client's request for the DescribeNatGateways operation. The "output" return
  5185. // value can be used to capture response data after the request's "Send" method
  5186. // is called.
  5187. //
  5188. // Creating a request object using this method should be used when you want to inject
  5189. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5190. // access properties on the request object before or after sending the request. If
  5191. // you just want the service response, call the DescribeNatGateways method directly
  5192. // instead.
  5193. //
  5194. // Note: You must call the "Send" method on the returned request object in order
  5195. // to execute the request.
  5196. //
  5197. // // Example sending a request using the DescribeNatGatewaysRequest method.
  5198. // req, resp := client.DescribeNatGatewaysRequest(params)
  5199. //
  5200. // err := req.Send()
  5201. // if err == nil { // resp is now filled
  5202. // fmt.Println(resp)
  5203. // }
  5204. //
  5205. func (c *EC2) DescribeNatGatewaysRequest(input *DescribeNatGatewaysInput) (req *request.Request, output *DescribeNatGatewaysOutput) {
  5206. op := &request.Operation{
  5207. Name: opDescribeNatGateways,
  5208. HTTPMethod: "POST",
  5209. HTTPPath: "/",
  5210. }
  5211. if input == nil {
  5212. input = &DescribeNatGatewaysInput{}
  5213. }
  5214. req = c.newRequest(op, input, output)
  5215. output = &DescribeNatGatewaysOutput{}
  5216. req.Data = output
  5217. return
  5218. }
  5219. // Describes one or more of the your NAT gateways.
  5220. func (c *EC2) DescribeNatGateways(input *DescribeNatGatewaysInput) (*DescribeNatGatewaysOutput, error) {
  5221. req, out := c.DescribeNatGatewaysRequest(input)
  5222. err := req.Send()
  5223. return out, err
  5224. }
  5225. const opDescribeNetworkAcls = "DescribeNetworkAcls"
  5226. // DescribeNetworkAclsRequest generates a "aws/request.Request" representing the
  5227. // client's request for the DescribeNetworkAcls operation. The "output" return
  5228. // value can be used to capture response data after the request's "Send" method
  5229. // is called.
  5230. //
  5231. // Creating a request object using this method should be used when you want to inject
  5232. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5233. // access properties on the request object before or after sending the request. If
  5234. // you just want the service response, call the DescribeNetworkAcls method directly
  5235. // instead.
  5236. //
  5237. // Note: You must call the "Send" method on the returned request object in order
  5238. // to execute the request.
  5239. //
  5240. // // Example sending a request using the DescribeNetworkAclsRequest method.
  5241. // req, resp := client.DescribeNetworkAclsRequest(params)
  5242. //
  5243. // err := req.Send()
  5244. // if err == nil { // resp is now filled
  5245. // fmt.Println(resp)
  5246. // }
  5247. //
  5248. func (c *EC2) DescribeNetworkAclsRequest(input *DescribeNetworkAclsInput) (req *request.Request, output *DescribeNetworkAclsOutput) {
  5249. op := &request.Operation{
  5250. Name: opDescribeNetworkAcls,
  5251. HTTPMethod: "POST",
  5252. HTTPPath: "/",
  5253. }
  5254. if input == nil {
  5255. input = &DescribeNetworkAclsInput{}
  5256. }
  5257. req = c.newRequest(op, input, output)
  5258. output = &DescribeNetworkAclsOutput{}
  5259. req.Data = output
  5260. return
  5261. }
  5262. // Describes one or more of your network ACLs.
  5263. //
  5264. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  5265. // in the Amazon Virtual Private Cloud User Guide.
  5266. func (c *EC2) DescribeNetworkAcls(input *DescribeNetworkAclsInput) (*DescribeNetworkAclsOutput, error) {
  5267. req, out := c.DescribeNetworkAclsRequest(input)
  5268. err := req.Send()
  5269. return out, err
  5270. }
  5271. const opDescribeNetworkInterfaceAttribute = "DescribeNetworkInterfaceAttribute"
  5272. // DescribeNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  5273. // client's request for the DescribeNetworkInterfaceAttribute operation. The "output" return
  5274. // value can be used to capture response data after the request's "Send" method
  5275. // is called.
  5276. //
  5277. // Creating a request object using this method should be used when you want to inject
  5278. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5279. // access properties on the request object before or after sending the request. If
  5280. // you just want the service response, call the DescribeNetworkInterfaceAttribute method directly
  5281. // instead.
  5282. //
  5283. // Note: You must call the "Send" method on the returned request object in order
  5284. // to execute the request.
  5285. //
  5286. // // Example sending a request using the DescribeNetworkInterfaceAttributeRequest method.
  5287. // req, resp := client.DescribeNetworkInterfaceAttributeRequest(params)
  5288. //
  5289. // err := req.Send()
  5290. // if err == nil { // resp is now filled
  5291. // fmt.Println(resp)
  5292. // }
  5293. //
  5294. func (c *EC2) DescribeNetworkInterfaceAttributeRequest(input *DescribeNetworkInterfaceAttributeInput) (req *request.Request, output *DescribeNetworkInterfaceAttributeOutput) {
  5295. op := &request.Operation{
  5296. Name: opDescribeNetworkInterfaceAttribute,
  5297. HTTPMethod: "POST",
  5298. HTTPPath: "/",
  5299. }
  5300. if input == nil {
  5301. input = &DescribeNetworkInterfaceAttributeInput{}
  5302. }
  5303. req = c.newRequest(op, input, output)
  5304. output = &DescribeNetworkInterfaceAttributeOutput{}
  5305. req.Data = output
  5306. return
  5307. }
  5308. // Describes a network interface attribute. You can specify only one attribute
  5309. // at a time.
  5310. func (c *EC2) DescribeNetworkInterfaceAttribute(input *DescribeNetworkInterfaceAttributeInput) (*DescribeNetworkInterfaceAttributeOutput, error) {
  5311. req, out := c.DescribeNetworkInterfaceAttributeRequest(input)
  5312. err := req.Send()
  5313. return out, err
  5314. }
  5315. const opDescribeNetworkInterfaces = "DescribeNetworkInterfaces"
  5316. // DescribeNetworkInterfacesRequest generates a "aws/request.Request" representing the
  5317. // client's request for the DescribeNetworkInterfaces operation. The "output" return
  5318. // value can be used to capture response data after the request's "Send" method
  5319. // is called.
  5320. //
  5321. // Creating a request object using this method should be used when you want to inject
  5322. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5323. // access properties on the request object before or after sending the request. If
  5324. // you just want the service response, call the DescribeNetworkInterfaces method directly
  5325. // instead.
  5326. //
  5327. // Note: You must call the "Send" method on the returned request object in order
  5328. // to execute the request.
  5329. //
  5330. // // Example sending a request using the DescribeNetworkInterfacesRequest method.
  5331. // req, resp := client.DescribeNetworkInterfacesRequest(params)
  5332. //
  5333. // err := req.Send()
  5334. // if err == nil { // resp is now filled
  5335. // fmt.Println(resp)
  5336. // }
  5337. //
  5338. func (c *EC2) DescribeNetworkInterfacesRequest(input *DescribeNetworkInterfacesInput) (req *request.Request, output *DescribeNetworkInterfacesOutput) {
  5339. op := &request.Operation{
  5340. Name: opDescribeNetworkInterfaces,
  5341. HTTPMethod: "POST",
  5342. HTTPPath: "/",
  5343. }
  5344. if input == nil {
  5345. input = &DescribeNetworkInterfacesInput{}
  5346. }
  5347. req = c.newRequest(op, input, output)
  5348. output = &DescribeNetworkInterfacesOutput{}
  5349. req.Data = output
  5350. return
  5351. }
  5352. // Describes one or more of your network interfaces.
  5353. func (c *EC2) DescribeNetworkInterfaces(input *DescribeNetworkInterfacesInput) (*DescribeNetworkInterfacesOutput, error) {
  5354. req, out := c.DescribeNetworkInterfacesRequest(input)
  5355. err := req.Send()
  5356. return out, err
  5357. }
  5358. const opDescribePlacementGroups = "DescribePlacementGroups"
  5359. // DescribePlacementGroupsRequest generates a "aws/request.Request" representing the
  5360. // client's request for the DescribePlacementGroups operation. The "output" return
  5361. // value can be used to capture response data after the request's "Send" method
  5362. // is called.
  5363. //
  5364. // Creating a request object using this method should be used when you want to inject
  5365. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5366. // access properties on the request object before or after sending the request. If
  5367. // you just want the service response, call the DescribePlacementGroups method directly
  5368. // instead.
  5369. //
  5370. // Note: You must call the "Send" method on the returned request object in order
  5371. // to execute the request.
  5372. //
  5373. // // Example sending a request using the DescribePlacementGroupsRequest method.
  5374. // req, resp := client.DescribePlacementGroupsRequest(params)
  5375. //
  5376. // err := req.Send()
  5377. // if err == nil { // resp is now filled
  5378. // fmt.Println(resp)
  5379. // }
  5380. //
  5381. func (c *EC2) DescribePlacementGroupsRequest(input *DescribePlacementGroupsInput) (req *request.Request, output *DescribePlacementGroupsOutput) {
  5382. op := &request.Operation{
  5383. Name: opDescribePlacementGroups,
  5384. HTTPMethod: "POST",
  5385. HTTPPath: "/",
  5386. }
  5387. if input == nil {
  5388. input = &DescribePlacementGroupsInput{}
  5389. }
  5390. req = c.newRequest(op, input, output)
  5391. output = &DescribePlacementGroupsOutput{}
  5392. req.Data = output
  5393. return
  5394. }
  5395. // Describes one or more of your placement groups. For more information about
  5396. // placement groups and cluster instances, see Cluster Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using_cluster_computing.html)
  5397. // in the Amazon Elastic Compute Cloud User Guide.
  5398. func (c *EC2) DescribePlacementGroups(input *DescribePlacementGroupsInput) (*DescribePlacementGroupsOutput, error) {
  5399. req, out := c.DescribePlacementGroupsRequest(input)
  5400. err := req.Send()
  5401. return out, err
  5402. }
  5403. const opDescribePrefixLists = "DescribePrefixLists"
  5404. // DescribePrefixListsRequest generates a "aws/request.Request" representing the
  5405. // client's request for the DescribePrefixLists operation. The "output" return
  5406. // value can be used to capture response data after the request's "Send" method
  5407. // is called.
  5408. //
  5409. // Creating a request object using this method should be used when you want to inject
  5410. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5411. // access properties on the request object before or after sending the request. If
  5412. // you just want the service response, call the DescribePrefixLists method directly
  5413. // instead.
  5414. //
  5415. // Note: You must call the "Send" method on the returned request object in order
  5416. // to execute the request.
  5417. //
  5418. // // Example sending a request using the DescribePrefixListsRequest method.
  5419. // req, resp := client.DescribePrefixListsRequest(params)
  5420. //
  5421. // err := req.Send()
  5422. // if err == nil { // resp is now filled
  5423. // fmt.Println(resp)
  5424. // }
  5425. //
  5426. func (c *EC2) DescribePrefixListsRequest(input *DescribePrefixListsInput) (req *request.Request, output *DescribePrefixListsOutput) {
  5427. op := &request.Operation{
  5428. Name: opDescribePrefixLists,
  5429. HTTPMethod: "POST",
  5430. HTTPPath: "/",
  5431. }
  5432. if input == nil {
  5433. input = &DescribePrefixListsInput{}
  5434. }
  5435. req = c.newRequest(op, input, output)
  5436. output = &DescribePrefixListsOutput{}
  5437. req.Data = output
  5438. return
  5439. }
  5440. // Describes available AWS services in a prefix list format, which includes
  5441. // the prefix list name and prefix list ID of the service and the IP address
  5442. // range for the service. A prefix list ID is required for creating an outbound
  5443. // security group rule that allows traffic from a VPC to access an AWS service
  5444. // through a VPC endpoint.
  5445. func (c *EC2) DescribePrefixLists(input *DescribePrefixListsInput) (*DescribePrefixListsOutput, error) {
  5446. req, out := c.DescribePrefixListsRequest(input)
  5447. err := req.Send()
  5448. return out, err
  5449. }
  5450. const opDescribeRegions = "DescribeRegions"
  5451. // DescribeRegionsRequest generates a "aws/request.Request" representing the
  5452. // client's request for the DescribeRegions operation. The "output" return
  5453. // value can be used to capture response data after the request's "Send" method
  5454. // is called.
  5455. //
  5456. // Creating a request object using this method should be used when you want to inject
  5457. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5458. // access properties on the request object before or after sending the request. If
  5459. // you just want the service response, call the DescribeRegions method directly
  5460. // instead.
  5461. //
  5462. // Note: You must call the "Send" method on the returned request object in order
  5463. // to execute the request.
  5464. //
  5465. // // Example sending a request using the DescribeRegionsRequest method.
  5466. // req, resp := client.DescribeRegionsRequest(params)
  5467. //
  5468. // err := req.Send()
  5469. // if err == nil { // resp is now filled
  5470. // fmt.Println(resp)
  5471. // }
  5472. //
  5473. func (c *EC2) DescribeRegionsRequest(input *DescribeRegionsInput) (req *request.Request, output *DescribeRegionsOutput) {
  5474. op := &request.Operation{
  5475. Name: opDescribeRegions,
  5476. HTTPMethod: "POST",
  5477. HTTPPath: "/",
  5478. }
  5479. if input == nil {
  5480. input = &DescribeRegionsInput{}
  5481. }
  5482. req = c.newRequest(op, input, output)
  5483. output = &DescribeRegionsOutput{}
  5484. req.Data = output
  5485. return
  5486. }
  5487. // Describes one or more regions that are currently available to you.
  5488. //
  5489. // For a list of the regions supported by Amazon EC2, see Regions and Endpoints
  5490. // (http://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region).
  5491. func (c *EC2) DescribeRegions(input *DescribeRegionsInput) (*DescribeRegionsOutput, error) {
  5492. req, out := c.DescribeRegionsRequest(input)
  5493. err := req.Send()
  5494. return out, err
  5495. }
  5496. const opDescribeReservedInstances = "DescribeReservedInstances"
  5497. // DescribeReservedInstancesRequest generates a "aws/request.Request" representing the
  5498. // client's request for the DescribeReservedInstances operation. The "output" return
  5499. // value can be used to capture response data after the request's "Send" method
  5500. // is called.
  5501. //
  5502. // Creating a request object using this method should be used when you want to inject
  5503. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5504. // access properties on the request object before or after sending the request. If
  5505. // you just want the service response, call the DescribeReservedInstances method directly
  5506. // instead.
  5507. //
  5508. // Note: You must call the "Send" method on the returned request object in order
  5509. // to execute the request.
  5510. //
  5511. // // Example sending a request using the DescribeReservedInstancesRequest method.
  5512. // req, resp := client.DescribeReservedInstancesRequest(params)
  5513. //
  5514. // err := req.Send()
  5515. // if err == nil { // resp is now filled
  5516. // fmt.Println(resp)
  5517. // }
  5518. //
  5519. func (c *EC2) DescribeReservedInstancesRequest(input *DescribeReservedInstancesInput) (req *request.Request, output *DescribeReservedInstancesOutput) {
  5520. op := &request.Operation{
  5521. Name: opDescribeReservedInstances,
  5522. HTTPMethod: "POST",
  5523. HTTPPath: "/",
  5524. }
  5525. if input == nil {
  5526. input = &DescribeReservedInstancesInput{}
  5527. }
  5528. req = c.newRequest(op, input, output)
  5529. output = &DescribeReservedInstancesOutput{}
  5530. req.Data = output
  5531. return
  5532. }
  5533. // Describes one or more of the Reserved Instances that you purchased.
  5534. //
  5535. // For more information about Reserved Instances, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html)
  5536. // in the Amazon Elastic Compute Cloud User Guide.
  5537. func (c *EC2) DescribeReservedInstances(input *DescribeReservedInstancesInput) (*DescribeReservedInstancesOutput, error) {
  5538. req, out := c.DescribeReservedInstancesRequest(input)
  5539. err := req.Send()
  5540. return out, err
  5541. }
  5542. const opDescribeReservedInstancesListings = "DescribeReservedInstancesListings"
  5543. // DescribeReservedInstancesListingsRequest generates a "aws/request.Request" representing the
  5544. // client's request for the DescribeReservedInstancesListings operation. The "output" return
  5545. // value can be used to capture response data after the request's "Send" method
  5546. // is called.
  5547. //
  5548. // Creating a request object using this method should be used when you want to inject
  5549. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5550. // access properties on the request object before or after sending the request. If
  5551. // you just want the service response, call the DescribeReservedInstancesListings method directly
  5552. // instead.
  5553. //
  5554. // Note: You must call the "Send" method on the returned request object in order
  5555. // to execute the request.
  5556. //
  5557. // // Example sending a request using the DescribeReservedInstancesListingsRequest method.
  5558. // req, resp := client.DescribeReservedInstancesListingsRequest(params)
  5559. //
  5560. // err := req.Send()
  5561. // if err == nil { // resp is now filled
  5562. // fmt.Println(resp)
  5563. // }
  5564. //
  5565. func (c *EC2) DescribeReservedInstancesListingsRequest(input *DescribeReservedInstancesListingsInput) (req *request.Request, output *DescribeReservedInstancesListingsOutput) {
  5566. op := &request.Operation{
  5567. Name: opDescribeReservedInstancesListings,
  5568. HTTPMethod: "POST",
  5569. HTTPPath: "/",
  5570. }
  5571. if input == nil {
  5572. input = &DescribeReservedInstancesListingsInput{}
  5573. }
  5574. req = c.newRequest(op, input, output)
  5575. output = &DescribeReservedInstancesListingsOutput{}
  5576. req.Data = output
  5577. return
  5578. }
  5579. // Describes your account's Reserved Instance listings in the Reserved Instance
  5580. // Marketplace.
  5581. //
  5582. // The Reserved Instance Marketplace matches sellers who want to resell Reserved
  5583. // Instance capacity that they no longer need with buyers who want to purchase
  5584. // additional capacity. Reserved Instances bought and sold through the Reserved
  5585. // Instance Marketplace work like any other Reserved Instances.
  5586. //
  5587. // As a seller, you choose to list some or all of your Reserved Instances,
  5588. // and you specify the upfront price to receive for them. Your Reserved Instances
  5589. // are then listed in the Reserved Instance Marketplace and are available for
  5590. // purchase.
  5591. //
  5592. // As a buyer, you specify the configuration of the Reserved Instance to purchase,
  5593. // and the Marketplace matches what you're searching for with what's available.
  5594. // The Marketplace first sells the lowest priced Reserved Instances to you,
  5595. // and continues to sell available Reserved Instance listings to you until your
  5596. // demand is met. You are charged based on the total price of all of the listings
  5597. // that you purchase.
  5598. //
  5599. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  5600. // in the Amazon Elastic Compute Cloud User Guide.
  5601. func (c *EC2) DescribeReservedInstancesListings(input *DescribeReservedInstancesListingsInput) (*DescribeReservedInstancesListingsOutput, error) {
  5602. req, out := c.DescribeReservedInstancesListingsRequest(input)
  5603. err := req.Send()
  5604. return out, err
  5605. }
  5606. const opDescribeReservedInstancesModifications = "DescribeReservedInstancesModifications"
  5607. // DescribeReservedInstancesModificationsRequest generates a "aws/request.Request" representing the
  5608. // client's request for the DescribeReservedInstancesModifications operation. The "output" return
  5609. // value can be used to capture response data after the request's "Send" method
  5610. // is called.
  5611. //
  5612. // Creating a request object using this method should be used when you want to inject
  5613. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5614. // access properties on the request object before or after sending the request. If
  5615. // you just want the service response, call the DescribeReservedInstancesModifications method directly
  5616. // instead.
  5617. //
  5618. // Note: You must call the "Send" method on the returned request object in order
  5619. // to execute the request.
  5620. //
  5621. // // Example sending a request using the DescribeReservedInstancesModificationsRequest method.
  5622. // req, resp := client.DescribeReservedInstancesModificationsRequest(params)
  5623. //
  5624. // err := req.Send()
  5625. // if err == nil { // resp is now filled
  5626. // fmt.Println(resp)
  5627. // }
  5628. //
  5629. func (c *EC2) DescribeReservedInstancesModificationsRequest(input *DescribeReservedInstancesModificationsInput) (req *request.Request, output *DescribeReservedInstancesModificationsOutput) {
  5630. op := &request.Operation{
  5631. Name: opDescribeReservedInstancesModifications,
  5632. HTTPMethod: "POST",
  5633. HTTPPath: "/",
  5634. Paginator: &request.Paginator{
  5635. InputTokens: []string{"NextToken"},
  5636. OutputTokens: []string{"NextToken"},
  5637. LimitToken: "",
  5638. TruncationToken: "",
  5639. },
  5640. }
  5641. if input == nil {
  5642. input = &DescribeReservedInstancesModificationsInput{}
  5643. }
  5644. req = c.newRequest(op, input, output)
  5645. output = &DescribeReservedInstancesModificationsOutput{}
  5646. req.Data = output
  5647. return
  5648. }
  5649. // Describes the modifications made to your Reserved Instances. If no parameter
  5650. // is specified, information about all your Reserved Instances modification
  5651. // requests is returned. If a modification ID is specified, only information
  5652. // about the specific modification is returned.
  5653. //
  5654. // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html)
  5655. // in the Amazon Elastic Compute Cloud User Guide.
  5656. func (c *EC2) DescribeReservedInstancesModifications(input *DescribeReservedInstancesModificationsInput) (*DescribeReservedInstancesModificationsOutput, error) {
  5657. req, out := c.DescribeReservedInstancesModificationsRequest(input)
  5658. err := req.Send()
  5659. return out, err
  5660. }
  5661. // DescribeReservedInstancesModificationsPages iterates over the pages of a DescribeReservedInstancesModifications operation,
  5662. // calling the "fn" function with the response data for each page. To stop
  5663. // iterating, return false from the fn function.
  5664. //
  5665. // See DescribeReservedInstancesModifications method for more information on how to use this operation.
  5666. //
  5667. // Note: This operation can generate multiple requests to a service.
  5668. //
  5669. // // Example iterating over at most 3 pages of a DescribeReservedInstancesModifications operation.
  5670. // pageNum := 0
  5671. // err := client.DescribeReservedInstancesModificationsPages(params,
  5672. // func(page *DescribeReservedInstancesModificationsOutput, lastPage bool) bool {
  5673. // pageNum++
  5674. // fmt.Println(page)
  5675. // return pageNum <= 3
  5676. // })
  5677. //
  5678. func (c *EC2) DescribeReservedInstancesModificationsPages(input *DescribeReservedInstancesModificationsInput, fn func(p *DescribeReservedInstancesModificationsOutput, lastPage bool) (shouldContinue bool)) error {
  5679. page, _ := c.DescribeReservedInstancesModificationsRequest(input)
  5680. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  5681. return page.EachPage(func(p interface{}, lastPage bool) bool {
  5682. return fn(p.(*DescribeReservedInstancesModificationsOutput), lastPage)
  5683. })
  5684. }
  5685. const opDescribeReservedInstancesOfferings = "DescribeReservedInstancesOfferings"
  5686. // DescribeReservedInstancesOfferingsRequest generates a "aws/request.Request" representing the
  5687. // client's request for the DescribeReservedInstancesOfferings operation. The "output" return
  5688. // value can be used to capture response data after the request's "Send" method
  5689. // is called.
  5690. //
  5691. // Creating a request object using this method should be used when you want to inject
  5692. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5693. // access properties on the request object before or after sending the request. If
  5694. // you just want the service response, call the DescribeReservedInstancesOfferings method directly
  5695. // instead.
  5696. //
  5697. // Note: You must call the "Send" method on the returned request object in order
  5698. // to execute the request.
  5699. //
  5700. // // Example sending a request using the DescribeReservedInstancesOfferingsRequest method.
  5701. // req, resp := client.DescribeReservedInstancesOfferingsRequest(params)
  5702. //
  5703. // err := req.Send()
  5704. // if err == nil { // resp is now filled
  5705. // fmt.Println(resp)
  5706. // }
  5707. //
  5708. func (c *EC2) DescribeReservedInstancesOfferingsRequest(input *DescribeReservedInstancesOfferingsInput) (req *request.Request, output *DescribeReservedInstancesOfferingsOutput) {
  5709. op := &request.Operation{
  5710. Name: opDescribeReservedInstancesOfferings,
  5711. HTTPMethod: "POST",
  5712. HTTPPath: "/",
  5713. Paginator: &request.Paginator{
  5714. InputTokens: []string{"NextToken"},
  5715. OutputTokens: []string{"NextToken"},
  5716. LimitToken: "MaxResults",
  5717. TruncationToken: "",
  5718. },
  5719. }
  5720. if input == nil {
  5721. input = &DescribeReservedInstancesOfferingsInput{}
  5722. }
  5723. req = c.newRequest(op, input, output)
  5724. output = &DescribeReservedInstancesOfferingsOutput{}
  5725. req.Data = output
  5726. return
  5727. }
  5728. // Describes Reserved Instance offerings that are available for purchase. With
  5729. // Reserved Instances, you purchase the right to launch instances for a period
  5730. // of time. During that time period, you do not receive insufficient capacity
  5731. // errors, and you pay a lower usage rate than the rate charged for On-Demand
  5732. // instances for the actual time used.
  5733. //
  5734. // If you have listed your own Reserved Instances for sale in the Reserved
  5735. // Instance Marketplace, they will be excluded from these results. This is to
  5736. // ensure that you do not purchase your own Reserved Instances.
  5737. //
  5738. // For more information, see Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  5739. // in the Amazon Elastic Compute Cloud User Guide.
  5740. func (c *EC2) DescribeReservedInstancesOfferings(input *DescribeReservedInstancesOfferingsInput) (*DescribeReservedInstancesOfferingsOutput, error) {
  5741. req, out := c.DescribeReservedInstancesOfferingsRequest(input)
  5742. err := req.Send()
  5743. return out, err
  5744. }
  5745. // DescribeReservedInstancesOfferingsPages iterates over the pages of a DescribeReservedInstancesOfferings operation,
  5746. // calling the "fn" function with the response data for each page. To stop
  5747. // iterating, return false from the fn function.
  5748. //
  5749. // See DescribeReservedInstancesOfferings method for more information on how to use this operation.
  5750. //
  5751. // Note: This operation can generate multiple requests to a service.
  5752. //
  5753. // // Example iterating over at most 3 pages of a DescribeReservedInstancesOfferings operation.
  5754. // pageNum := 0
  5755. // err := client.DescribeReservedInstancesOfferingsPages(params,
  5756. // func(page *DescribeReservedInstancesOfferingsOutput, lastPage bool) bool {
  5757. // pageNum++
  5758. // fmt.Println(page)
  5759. // return pageNum <= 3
  5760. // })
  5761. //
  5762. func (c *EC2) DescribeReservedInstancesOfferingsPages(input *DescribeReservedInstancesOfferingsInput, fn func(p *DescribeReservedInstancesOfferingsOutput, lastPage bool) (shouldContinue bool)) error {
  5763. page, _ := c.DescribeReservedInstancesOfferingsRequest(input)
  5764. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  5765. return page.EachPage(func(p interface{}, lastPage bool) bool {
  5766. return fn(p.(*DescribeReservedInstancesOfferingsOutput), lastPage)
  5767. })
  5768. }
  5769. const opDescribeRouteTables = "DescribeRouteTables"
  5770. // DescribeRouteTablesRequest generates a "aws/request.Request" representing the
  5771. // client's request for the DescribeRouteTables operation. The "output" return
  5772. // value can be used to capture response data after the request's "Send" method
  5773. // is called.
  5774. //
  5775. // Creating a request object using this method should be used when you want to inject
  5776. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5777. // access properties on the request object before or after sending the request. If
  5778. // you just want the service response, call the DescribeRouteTables method directly
  5779. // instead.
  5780. //
  5781. // Note: You must call the "Send" method on the returned request object in order
  5782. // to execute the request.
  5783. //
  5784. // // Example sending a request using the DescribeRouteTablesRequest method.
  5785. // req, resp := client.DescribeRouteTablesRequest(params)
  5786. //
  5787. // err := req.Send()
  5788. // if err == nil { // resp is now filled
  5789. // fmt.Println(resp)
  5790. // }
  5791. //
  5792. func (c *EC2) DescribeRouteTablesRequest(input *DescribeRouteTablesInput) (req *request.Request, output *DescribeRouteTablesOutput) {
  5793. op := &request.Operation{
  5794. Name: opDescribeRouteTables,
  5795. HTTPMethod: "POST",
  5796. HTTPPath: "/",
  5797. }
  5798. if input == nil {
  5799. input = &DescribeRouteTablesInput{}
  5800. }
  5801. req = c.newRequest(op, input, output)
  5802. output = &DescribeRouteTablesOutput{}
  5803. req.Data = output
  5804. return
  5805. }
  5806. // Describes one or more of your route tables.
  5807. //
  5808. // Each subnet in your VPC must be associated with a route table. If a subnet
  5809. // is not explicitly associated with any route table, it is implicitly associated
  5810. // with the main route table. This command does not return the subnet ID for
  5811. // implicit associations.
  5812. //
  5813. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  5814. // in the Amazon Virtual Private Cloud User Guide.
  5815. func (c *EC2) DescribeRouteTables(input *DescribeRouteTablesInput) (*DescribeRouteTablesOutput, error) {
  5816. req, out := c.DescribeRouteTablesRequest(input)
  5817. err := req.Send()
  5818. return out, err
  5819. }
  5820. const opDescribeScheduledInstanceAvailability = "DescribeScheduledInstanceAvailability"
  5821. // DescribeScheduledInstanceAvailabilityRequest generates a "aws/request.Request" representing the
  5822. // client's request for the DescribeScheduledInstanceAvailability operation. The "output" return
  5823. // value can be used to capture response data after the request's "Send" method
  5824. // is called.
  5825. //
  5826. // Creating a request object using this method should be used when you want to inject
  5827. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5828. // access properties on the request object before or after sending the request. If
  5829. // you just want the service response, call the DescribeScheduledInstanceAvailability method directly
  5830. // instead.
  5831. //
  5832. // Note: You must call the "Send" method on the returned request object in order
  5833. // to execute the request.
  5834. //
  5835. // // Example sending a request using the DescribeScheduledInstanceAvailabilityRequest method.
  5836. // req, resp := client.DescribeScheduledInstanceAvailabilityRequest(params)
  5837. //
  5838. // err := req.Send()
  5839. // if err == nil { // resp is now filled
  5840. // fmt.Println(resp)
  5841. // }
  5842. //
  5843. func (c *EC2) DescribeScheduledInstanceAvailabilityRequest(input *DescribeScheduledInstanceAvailabilityInput) (req *request.Request, output *DescribeScheduledInstanceAvailabilityOutput) {
  5844. op := &request.Operation{
  5845. Name: opDescribeScheduledInstanceAvailability,
  5846. HTTPMethod: "POST",
  5847. HTTPPath: "/",
  5848. }
  5849. if input == nil {
  5850. input = &DescribeScheduledInstanceAvailabilityInput{}
  5851. }
  5852. req = c.newRequest(op, input, output)
  5853. output = &DescribeScheduledInstanceAvailabilityOutput{}
  5854. req.Data = output
  5855. return
  5856. }
  5857. // Finds available schedules that meet the specified criteria.
  5858. //
  5859. // You can search for an available schedule no more than 3 months in advance.
  5860. // You must meet the minimum required duration of 1,200 hours per year. For
  5861. // example, the minimum daily schedule is 4 hours, the minimum weekly schedule
  5862. // is 24 hours, and the minimum monthly schedule is 100 hours.
  5863. //
  5864. // After you find a schedule that meets your needs, call PurchaseScheduledInstances
  5865. // to purchase Scheduled Instances with that schedule.
  5866. func (c *EC2) DescribeScheduledInstanceAvailability(input *DescribeScheduledInstanceAvailabilityInput) (*DescribeScheduledInstanceAvailabilityOutput, error) {
  5867. req, out := c.DescribeScheduledInstanceAvailabilityRequest(input)
  5868. err := req.Send()
  5869. return out, err
  5870. }
  5871. const opDescribeScheduledInstances = "DescribeScheduledInstances"
  5872. // DescribeScheduledInstancesRequest generates a "aws/request.Request" representing the
  5873. // client's request for the DescribeScheduledInstances operation. The "output" return
  5874. // value can be used to capture response data after the request's "Send" method
  5875. // is called.
  5876. //
  5877. // Creating a request object using this method should be used when you want to inject
  5878. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5879. // access properties on the request object before or after sending the request. If
  5880. // you just want the service response, call the DescribeScheduledInstances method directly
  5881. // instead.
  5882. //
  5883. // Note: You must call the "Send" method on the returned request object in order
  5884. // to execute the request.
  5885. //
  5886. // // Example sending a request using the DescribeScheduledInstancesRequest method.
  5887. // req, resp := client.DescribeScheduledInstancesRequest(params)
  5888. //
  5889. // err := req.Send()
  5890. // if err == nil { // resp is now filled
  5891. // fmt.Println(resp)
  5892. // }
  5893. //
  5894. func (c *EC2) DescribeScheduledInstancesRequest(input *DescribeScheduledInstancesInput) (req *request.Request, output *DescribeScheduledInstancesOutput) {
  5895. op := &request.Operation{
  5896. Name: opDescribeScheduledInstances,
  5897. HTTPMethod: "POST",
  5898. HTTPPath: "/",
  5899. }
  5900. if input == nil {
  5901. input = &DescribeScheduledInstancesInput{}
  5902. }
  5903. req = c.newRequest(op, input, output)
  5904. output = &DescribeScheduledInstancesOutput{}
  5905. req.Data = output
  5906. return
  5907. }
  5908. // Describes one or more of your Scheduled Instances.
  5909. func (c *EC2) DescribeScheduledInstances(input *DescribeScheduledInstancesInput) (*DescribeScheduledInstancesOutput, error) {
  5910. req, out := c.DescribeScheduledInstancesRequest(input)
  5911. err := req.Send()
  5912. return out, err
  5913. }
  5914. const opDescribeSecurityGroupReferences = "DescribeSecurityGroupReferences"
  5915. // DescribeSecurityGroupReferencesRequest generates a "aws/request.Request" representing the
  5916. // client's request for the DescribeSecurityGroupReferences operation. The "output" return
  5917. // value can be used to capture response data after the request's "Send" method
  5918. // is called.
  5919. //
  5920. // Creating a request object using this method should be used when you want to inject
  5921. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5922. // access properties on the request object before or after sending the request. If
  5923. // you just want the service response, call the DescribeSecurityGroupReferences method directly
  5924. // instead.
  5925. //
  5926. // Note: You must call the "Send" method on the returned request object in order
  5927. // to execute the request.
  5928. //
  5929. // // Example sending a request using the DescribeSecurityGroupReferencesRequest method.
  5930. // req, resp := client.DescribeSecurityGroupReferencesRequest(params)
  5931. //
  5932. // err := req.Send()
  5933. // if err == nil { // resp is now filled
  5934. // fmt.Println(resp)
  5935. // }
  5936. //
  5937. func (c *EC2) DescribeSecurityGroupReferencesRequest(input *DescribeSecurityGroupReferencesInput) (req *request.Request, output *DescribeSecurityGroupReferencesOutput) {
  5938. op := &request.Operation{
  5939. Name: opDescribeSecurityGroupReferences,
  5940. HTTPMethod: "POST",
  5941. HTTPPath: "/",
  5942. }
  5943. if input == nil {
  5944. input = &DescribeSecurityGroupReferencesInput{}
  5945. }
  5946. req = c.newRequest(op, input, output)
  5947. output = &DescribeSecurityGroupReferencesOutput{}
  5948. req.Data = output
  5949. return
  5950. }
  5951. // [EC2-VPC only] Describes the VPCs on the other side of a VPC peering connection
  5952. // that are referencing the security groups you've specified in this request.
  5953. func (c *EC2) DescribeSecurityGroupReferences(input *DescribeSecurityGroupReferencesInput) (*DescribeSecurityGroupReferencesOutput, error) {
  5954. req, out := c.DescribeSecurityGroupReferencesRequest(input)
  5955. err := req.Send()
  5956. return out, err
  5957. }
  5958. const opDescribeSecurityGroups = "DescribeSecurityGroups"
  5959. // DescribeSecurityGroupsRequest generates a "aws/request.Request" representing the
  5960. // client's request for the DescribeSecurityGroups operation. The "output" return
  5961. // value can be used to capture response data after the request's "Send" method
  5962. // is called.
  5963. //
  5964. // Creating a request object using this method should be used when you want to inject
  5965. // custom logic into the request's lifecycle using a custom handler, or if you want to
  5966. // access properties on the request object before or after sending the request. If
  5967. // you just want the service response, call the DescribeSecurityGroups method directly
  5968. // instead.
  5969. //
  5970. // Note: You must call the "Send" method on the returned request object in order
  5971. // to execute the request.
  5972. //
  5973. // // Example sending a request using the DescribeSecurityGroupsRequest method.
  5974. // req, resp := client.DescribeSecurityGroupsRequest(params)
  5975. //
  5976. // err := req.Send()
  5977. // if err == nil { // resp is now filled
  5978. // fmt.Println(resp)
  5979. // }
  5980. //
  5981. func (c *EC2) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) (req *request.Request, output *DescribeSecurityGroupsOutput) {
  5982. op := &request.Operation{
  5983. Name: opDescribeSecurityGroups,
  5984. HTTPMethod: "POST",
  5985. HTTPPath: "/",
  5986. }
  5987. if input == nil {
  5988. input = &DescribeSecurityGroupsInput{}
  5989. }
  5990. req = c.newRequest(op, input, output)
  5991. output = &DescribeSecurityGroupsOutput{}
  5992. req.Data = output
  5993. return
  5994. }
  5995. // Describes one or more of your security groups.
  5996. //
  5997. // A security group is for use with instances either in the EC2-Classic platform
  5998. // or in a specific VPC. For more information, see Amazon EC2 Security Groups
  5999. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
  6000. // in the Amazon Elastic Compute Cloud User Guide and Security Groups for Your
  6001. // VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html)
  6002. // in the Amazon Virtual Private Cloud User Guide.
  6003. func (c *EC2) DescribeSecurityGroups(input *DescribeSecurityGroupsInput) (*DescribeSecurityGroupsOutput, error) {
  6004. req, out := c.DescribeSecurityGroupsRequest(input)
  6005. err := req.Send()
  6006. return out, err
  6007. }
  6008. const opDescribeSnapshotAttribute = "DescribeSnapshotAttribute"
  6009. // DescribeSnapshotAttributeRequest generates a "aws/request.Request" representing the
  6010. // client's request for the DescribeSnapshotAttribute operation. The "output" return
  6011. // value can be used to capture response data after the request's "Send" method
  6012. // is called.
  6013. //
  6014. // Creating a request object using this method should be used when you want to inject
  6015. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6016. // access properties on the request object before or after sending the request. If
  6017. // you just want the service response, call the DescribeSnapshotAttribute method directly
  6018. // instead.
  6019. //
  6020. // Note: You must call the "Send" method on the returned request object in order
  6021. // to execute the request.
  6022. //
  6023. // // Example sending a request using the DescribeSnapshotAttributeRequest method.
  6024. // req, resp := client.DescribeSnapshotAttributeRequest(params)
  6025. //
  6026. // err := req.Send()
  6027. // if err == nil { // resp is now filled
  6028. // fmt.Println(resp)
  6029. // }
  6030. //
  6031. func (c *EC2) DescribeSnapshotAttributeRequest(input *DescribeSnapshotAttributeInput) (req *request.Request, output *DescribeSnapshotAttributeOutput) {
  6032. op := &request.Operation{
  6033. Name: opDescribeSnapshotAttribute,
  6034. HTTPMethod: "POST",
  6035. HTTPPath: "/",
  6036. }
  6037. if input == nil {
  6038. input = &DescribeSnapshotAttributeInput{}
  6039. }
  6040. req = c.newRequest(op, input, output)
  6041. output = &DescribeSnapshotAttributeOutput{}
  6042. req.Data = output
  6043. return
  6044. }
  6045. // Describes the specified attribute of the specified snapshot. You can specify
  6046. // only one attribute at a time.
  6047. //
  6048. // For more information about EBS snapshots, see Amazon EBS Snapshots (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html)
  6049. // in the Amazon Elastic Compute Cloud User Guide.
  6050. func (c *EC2) DescribeSnapshotAttribute(input *DescribeSnapshotAttributeInput) (*DescribeSnapshotAttributeOutput, error) {
  6051. req, out := c.DescribeSnapshotAttributeRequest(input)
  6052. err := req.Send()
  6053. return out, err
  6054. }
  6055. const opDescribeSnapshots = "DescribeSnapshots"
  6056. // DescribeSnapshotsRequest generates a "aws/request.Request" representing the
  6057. // client's request for the DescribeSnapshots operation. The "output" return
  6058. // value can be used to capture response data after the request's "Send" method
  6059. // is called.
  6060. //
  6061. // Creating a request object using this method should be used when you want to inject
  6062. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6063. // access properties on the request object before or after sending the request. If
  6064. // you just want the service response, call the DescribeSnapshots method directly
  6065. // instead.
  6066. //
  6067. // Note: You must call the "Send" method on the returned request object in order
  6068. // to execute the request.
  6069. //
  6070. // // Example sending a request using the DescribeSnapshotsRequest method.
  6071. // req, resp := client.DescribeSnapshotsRequest(params)
  6072. //
  6073. // err := req.Send()
  6074. // if err == nil { // resp is now filled
  6075. // fmt.Println(resp)
  6076. // }
  6077. //
  6078. func (c *EC2) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput) {
  6079. op := &request.Operation{
  6080. Name: opDescribeSnapshots,
  6081. HTTPMethod: "POST",
  6082. HTTPPath: "/",
  6083. Paginator: &request.Paginator{
  6084. InputTokens: []string{"NextToken"},
  6085. OutputTokens: []string{"NextToken"},
  6086. LimitToken: "MaxResults",
  6087. TruncationToken: "",
  6088. },
  6089. }
  6090. if input == nil {
  6091. input = &DescribeSnapshotsInput{}
  6092. }
  6093. req = c.newRequest(op, input, output)
  6094. output = &DescribeSnapshotsOutput{}
  6095. req.Data = output
  6096. return
  6097. }
  6098. // Describes one or more of the EBS snapshots available to you. Available snapshots
  6099. // include public snapshots available for any AWS account to launch, private
  6100. // snapshots that you own, and private snapshots owned by another AWS account
  6101. // but for which you've been given explicit create volume permissions.
  6102. //
  6103. // The create volume permissions fall into the following categories:
  6104. //
  6105. // public: The owner of the snapshot granted create volume permissions for
  6106. // the snapshot to the all group. All AWS accounts have create volume permissions
  6107. // for these snapshots.
  6108. //
  6109. // explicit: The owner of the snapshot granted create volume permissions
  6110. // to a specific AWS account.
  6111. //
  6112. // implicit: An AWS account has implicit create volume permissions for all
  6113. // snapshots it owns.
  6114. //
  6115. // The list of snapshots returned can be modified by specifying snapshot
  6116. // IDs, snapshot owners, or AWS accounts with create volume permissions. If
  6117. // no options are specified, Amazon EC2 returns all snapshots for which you
  6118. // have create volume permissions.
  6119. //
  6120. // If you specify one or more snapshot IDs, only snapshots that have the specified
  6121. // IDs are returned. If you specify an invalid snapshot ID, an error is returned.
  6122. // If you specify a snapshot ID for which you do not have access, it is not
  6123. // included in the returned results.
  6124. //
  6125. // If you specify one or more snapshot owners using the OwnerIds option, only
  6126. // snapshots from the specified owners and for which you have access are returned.
  6127. // The results can include the AWS account IDs of the specified owners, amazon
  6128. // for snapshots owned by Amazon, or self for snapshots that you own.
  6129. //
  6130. // If you specify a list of restorable users, only snapshots with create snapshot
  6131. // permissions for those users are returned. You can specify AWS account IDs
  6132. // (if you own the snapshots), self for snapshots for which you own or have
  6133. // explicit permissions, or all for public snapshots.
  6134. //
  6135. // If you are describing a long list of snapshots, you can paginate the output
  6136. // to make the list more manageable. The MaxResults parameter sets the maximum
  6137. // number of results returned in a single page. If the list of results exceeds
  6138. // your MaxResults value, then that number of results is returned along with
  6139. // a NextToken value that can be passed to a subsequent DescribeSnapshots request
  6140. // to retrieve the remaining results.
  6141. //
  6142. // For more information about EBS snapshots, see Amazon EBS Snapshots (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html)
  6143. // in the Amazon Elastic Compute Cloud User Guide.
  6144. func (c *EC2) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) {
  6145. req, out := c.DescribeSnapshotsRequest(input)
  6146. err := req.Send()
  6147. return out, err
  6148. }
  6149. // DescribeSnapshotsPages iterates over the pages of a DescribeSnapshots operation,
  6150. // calling the "fn" function with the response data for each page. To stop
  6151. // iterating, return false from the fn function.
  6152. //
  6153. // See DescribeSnapshots method for more information on how to use this operation.
  6154. //
  6155. // Note: This operation can generate multiple requests to a service.
  6156. //
  6157. // // Example iterating over at most 3 pages of a DescribeSnapshots operation.
  6158. // pageNum := 0
  6159. // err := client.DescribeSnapshotsPages(params,
  6160. // func(page *DescribeSnapshotsOutput, lastPage bool) bool {
  6161. // pageNum++
  6162. // fmt.Println(page)
  6163. // return pageNum <= 3
  6164. // })
  6165. //
  6166. func (c *EC2) DescribeSnapshotsPages(input *DescribeSnapshotsInput, fn func(p *DescribeSnapshotsOutput, lastPage bool) (shouldContinue bool)) error {
  6167. page, _ := c.DescribeSnapshotsRequest(input)
  6168. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  6169. return page.EachPage(func(p interface{}, lastPage bool) bool {
  6170. return fn(p.(*DescribeSnapshotsOutput), lastPage)
  6171. })
  6172. }
  6173. const opDescribeSpotDatafeedSubscription = "DescribeSpotDatafeedSubscription"
  6174. // DescribeSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the
  6175. // client's request for the DescribeSpotDatafeedSubscription operation. The "output" return
  6176. // value can be used to capture response data after the request's "Send" method
  6177. // is called.
  6178. //
  6179. // Creating a request object using this method should be used when you want to inject
  6180. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6181. // access properties on the request object before or after sending the request. If
  6182. // you just want the service response, call the DescribeSpotDatafeedSubscription method directly
  6183. // instead.
  6184. //
  6185. // Note: You must call the "Send" method on the returned request object in order
  6186. // to execute the request.
  6187. //
  6188. // // Example sending a request using the DescribeSpotDatafeedSubscriptionRequest method.
  6189. // req, resp := client.DescribeSpotDatafeedSubscriptionRequest(params)
  6190. //
  6191. // err := req.Send()
  6192. // if err == nil { // resp is now filled
  6193. // fmt.Println(resp)
  6194. // }
  6195. //
  6196. func (c *EC2) DescribeSpotDatafeedSubscriptionRequest(input *DescribeSpotDatafeedSubscriptionInput) (req *request.Request, output *DescribeSpotDatafeedSubscriptionOutput) {
  6197. op := &request.Operation{
  6198. Name: opDescribeSpotDatafeedSubscription,
  6199. HTTPMethod: "POST",
  6200. HTTPPath: "/",
  6201. }
  6202. if input == nil {
  6203. input = &DescribeSpotDatafeedSubscriptionInput{}
  6204. }
  6205. req = c.newRequest(op, input, output)
  6206. output = &DescribeSpotDatafeedSubscriptionOutput{}
  6207. req.Data = output
  6208. return
  6209. }
  6210. // Describes the data feed for Spot instances. For more information, see Spot
  6211. // Instance Data Feed (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html)
  6212. // in the Amazon Elastic Compute Cloud User Guide.
  6213. func (c *EC2) DescribeSpotDatafeedSubscription(input *DescribeSpotDatafeedSubscriptionInput) (*DescribeSpotDatafeedSubscriptionOutput, error) {
  6214. req, out := c.DescribeSpotDatafeedSubscriptionRequest(input)
  6215. err := req.Send()
  6216. return out, err
  6217. }
  6218. const opDescribeSpotFleetInstances = "DescribeSpotFleetInstances"
  6219. // DescribeSpotFleetInstancesRequest generates a "aws/request.Request" representing the
  6220. // client's request for the DescribeSpotFleetInstances operation. The "output" return
  6221. // value can be used to capture response data after the request's "Send" method
  6222. // is called.
  6223. //
  6224. // Creating a request object using this method should be used when you want to inject
  6225. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6226. // access properties on the request object before or after sending the request. If
  6227. // you just want the service response, call the DescribeSpotFleetInstances method directly
  6228. // instead.
  6229. //
  6230. // Note: You must call the "Send" method on the returned request object in order
  6231. // to execute the request.
  6232. //
  6233. // // Example sending a request using the DescribeSpotFleetInstancesRequest method.
  6234. // req, resp := client.DescribeSpotFleetInstancesRequest(params)
  6235. //
  6236. // err := req.Send()
  6237. // if err == nil { // resp is now filled
  6238. // fmt.Println(resp)
  6239. // }
  6240. //
  6241. func (c *EC2) DescribeSpotFleetInstancesRequest(input *DescribeSpotFleetInstancesInput) (req *request.Request, output *DescribeSpotFleetInstancesOutput) {
  6242. op := &request.Operation{
  6243. Name: opDescribeSpotFleetInstances,
  6244. HTTPMethod: "POST",
  6245. HTTPPath: "/",
  6246. }
  6247. if input == nil {
  6248. input = &DescribeSpotFleetInstancesInput{}
  6249. }
  6250. req = c.newRequest(op, input, output)
  6251. output = &DescribeSpotFleetInstancesOutput{}
  6252. req.Data = output
  6253. return
  6254. }
  6255. // Describes the running instances for the specified Spot fleet.
  6256. func (c *EC2) DescribeSpotFleetInstances(input *DescribeSpotFleetInstancesInput) (*DescribeSpotFleetInstancesOutput, error) {
  6257. req, out := c.DescribeSpotFleetInstancesRequest(input)
  6258. err := req.Send()
  6259. return out, err
  6260. }
  6261. const opDescribeSpotFleetRequestHistory = "DescribeSpotFleetRequestHistory"
  6262. // DescribeSpotFleetRequestHistoryRequest generates a "aws/request.Request" representing the
  6263. // client's request for the DescribeSpotFleetRequestHistory operation. The "output" return
  6264. // value can be used to capture response data after the request's "Send" method
  6265. // is called.
  6266. //
  6267. // Creating a request object using this method should be used when you want to inject
  6268. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6269. // access properties on the request object before or after sending the request. If
  6270. // you just want the service response, call the DescribeSpotFleetRequestHistory method directly
  6271. // instead.
  6272. //
  6273. // Note: You must call the "Send" method on the returned request object in order
  6274. // to execute the request.
  6275. //
  6276. // // Example sending a request using the DescribeSpotFleetRequestHistoryRequest method.
  6277. // req, resp := client.DescribeSpotFleetRequestHistoryRequest(params)
  6278. //
  6279. // err := req.Send()
  6280. // if err == nil { // resp is now filled
  6281. // fmt.Println(resp)
  6282. // }
  6283. //
  6284. func (c *EC2) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetRequestHistoryInput) (req *request.Request, output *DescribeSpotFleetRequestHistoryOutput) {
  6285. op := &request.Operation{
  6286. Name: opDescribeSpotFleetRequestHistory,
  6287. HTTPMethod: "POST",
  6288. HTTPPath: "/",
  6289. }
  6290. if input == nil {
  6291. input = &DescribeSpotFleetRequestHistoryInput{}
  6292. }
  6293. req = c.newRequest(op, input, output)
  6294. output = &DescribeSpotFleetRequestHistoryOutput{}
  6295. req.Data = output
  6296. return
  6297. }
  6298. // Describes the events for the specified Spot fleet request during the specified
  6299. // time.
  6300. //
  6301. // Spot fleet events are delayed by up to 30 seconds before they can be described.
  6302. // This ensures that you can query by the last evaluated time and not miss a
  6303. // recorded event.
  6304. func (c *EC2) DescribeSpotFleetRequestHistory(input *DescribeSpotFleetRequestHistoryInput) (*DescribeSpotFleetRequestHistoryOutput, error) {
  6305. req, out := c.DescribeSpotFleetRequestHistoryRequest(input)
  6306. err := req.Send()
  6307. return out, err
  6308. }
  6309. const opDescribeSpotFleetRequests = "DescribeSpotFleetRequests"
  6310. // DescribeSpotFleetRequestsRequest generates a "aws/request.Request" representing the
  6311. // client's request for the DescribeSpotFleetRequests operation. The "output" return
  6312. // value can be used to capture response data after the request's "Send" method
  6313. // is called.
  6314. //
  6315. // Creating a request object using this method should be used when you want to inject
  6316. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6317. // access properties on the request object before or after sending the request. If
  6318. // you just want the service response, call the DescribeSpotFleetRequests method directly
  6319. // instead.
  6320. //
  6321. // Note: You must call the "Send" method on the returned request object in order
  6322. // to execute the request.
  6323. //
  6324. // // Example sending a request using the DescribeSpotFleetRequestsRequest method.
  6325. // req, resp := client.DescribeSpotFleetRequestsRequest(params)
  6326. //
  6327. // err := req.Send()
  6328. // if err == nil { // resp is now filled
  6329. // fmt.Println(resp)
  6330. // }
  6331. //
  6332. func (c *EC2) DescribeSpotFleetRequestsRequest(input *DescribeSpotFleetRequestsInput) (req *request.Request, output *DescribeSpotFleetRequestsOutput) {
  6333. op := &request.Operation{
  6334. Name: opDescribeSpotFleetRequests,
  6335. HTTPMethod: "POST",
  6336. HTTPPath: "/",
  6337. Paginator: &request.Paginator{
  6338. InputTokens: []string{"NextToken"},
  6339. OutputTokens: []string{"NextToken"},
  6340. LimitToken: "MaxResults",
  6341. TruncationToken: "",
  6342. },
  6343. }
  6344. if input == nil {
  6345. input = &DescribeSpotFleetRequestsInput{}
  6346. }
  6347. req = c.newRequest(op, input, output)
  6348. output = &DescribeSpotFleetRequestsOutput{}
  6349. req.Data = output
  6350. return
  6351. }
  6352. // Describes your Spot fleet requests.
  6353. func (c *EC2) DescribeSpotFleetRequests(input *DescribeSpotFleetRequestsInput) (*DescribeSpotFleetRequestsOutput, error) {
  6354. req, out := c.DescribeSpotFleetRequestsRequest(input)
  6355. err := req.Send()
  6356. return out, err
  6357. }
  6358. // DescribeSpotFleetRequestsPages iterates over the pages of a DescribeSpotFleetRequests operation,
  6359. // calling the "fn" function with the response data for each page. To stop
  6360. // iterating, return false from the fn function.
  6361. //
  6362. // See DescribeSpotFleetRequests method for more information on how to use this operation.
  6363. //
  6364. // Note: This operation can generate multiple requests to a service.
  6365. //
  6366. // // Example iterating over at most 3 pages of a DescribeSpotFleetRequests operation.
  6367. // pageNum := 0
  6368. // err := client.DescribeSpotFleetRequestsPages(params,
  6369. // func(page *DescribeSpotFleetRequestsOutput, lastPage bool) bool {
  6370. // pageNum++
  6371. // fmt.Println(page)
  6372. // return pageNum <= 3
  6373. // })
  6374. //
  6375. func (c *EC2) DescribeSpotFleetRequestsPages(input *DescribeSpotFleetRequestsInput, fn func(p *DescribeSpotFleetRequestsOutput, lastPage bool) (shouldContinue bool)) error {
  6376. page, _ := c.DescribeSpotFleetRequestsRequest(input)
  6377. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  6378. return page.EachPage(func(p interface{}, lastPage bool) bool {
  6379. return fn(p.(*DescribeSpotFleetRequestsOutput), lastPage)
  6380. })
  6381. }
  6382. const opDescribeSpotInstanceRequests = "DescribeSpotInstanceRequests"
  6383. // DescribeSpotInstanceRequestsRequest generates a "aws/request.Request" representing the
  6384. // client's request for the DescribeSpotInstanceRequests operation. The "output" return
  6385. // value can be used to capture response data after the request's "Send" method
  6386. // is called.
  6387. //
  6388. // Creating a request object using this method should be used when you want to inject
  6389. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6390. // access properties on the request object before or after sending the request. If
  6391. // you just want the service response, call the DescribeSpotInstanceRequests method directly
  6392. // instead.
  6393. //
  6394. // Note: You must call the "Send" method on the returned request object in order
  6395. // to execute the request.
  6396. //
  6397. // // Example sending a request using the DescribeSpotInstanceRequestsRequest method.
  6398. // req, resp := client.DescribeSpotInstanceRequestsRequest(params)
  6399. //
  6400. // err := req.Send()
  6401. // if err == nil { // resp is now filled
  6402. // fmt.Println(resp)
  6403. // }
  6404. //
  6405. func (c *EC2) DescribeSpotInstanceRequestsRequest(input *DescribeSpotInstanceRequestsInput) (req *request.Request, output *DescribeSpotInstanceRequestsOutput) {
  6406. op := &request.Operation{
  6407. Name: opDescribeSpotInstanceRequests,
  6408. HTTPMethod: "POST",
  6409. HTTPPath: "/",
  6410. }
  6411. if input == nil {
  6412. input = &DescribeSpotInstanceRequestsInput{}
  6413. }
  6414. req = c.newRequest(op, input, output)
  6415. output = &DescribeSpotInstanceRequestsOutput{}
  6416. req.Data = output
  6417. return
  6418. }
  6419. // Describes the Spot instance requests that belong to your account. Spot instances
  6420. // are instances that Amazon EC2 launches when the bid price that you specify
  6421. // exceeds the current Spot price. Amazon EC2 periodically sets the Spot price
  6422. // based on available Spot instance capacity and current Spot instance requests.
  6423. // For more information, see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html)
  6424. // in the Amazon Elastic Compute Cloud User Guide.
  6425. //
  6426. // You can use DescribeSpotInstanceRequests to find a running Spot instance
  6427. // by examining the response. If the status of the Spot instance is fulfilled,
  6428. // the instance ID appears in the response and contains the identifier of the
  6429. // instance. Alternatively, you can use DescribeInstances with a filter to look
  6430. // for instances where the instance lifecycle is spot.
  6431. func (c *EC2) DescribeSpotInstanceRequests(input *DescribeSpotInstanceRequestsInput) (*DescribeSpotInstanceRequestsOutput, error) {
  6432. req, out := c.DescribeSpotInstanceRequestsRequest(input)
  6433. err := req.Send()
  6434. return out, err
  6435. }
  6436. const opDescribeSpotPriceHistory = "DescribeSpotPriceHistory"
  6437. // DescribeSpotPriceHistoryRequest generates a "aws/request.Request" representing the
  6438. // client's request for the DescribeSpotPriceHistory operation. The "output" return
  6439. // value can be used to capture response data after the request's "Send" method
  6440. // is called.
  6441. //
  6442. // Creating a request object using this method should be used when you want to inject
  6443. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6444. // access properties on the request object before or after sending the request. If
  6445. // you just want the service response, call the DescribeSpotPriceHistory method directly
  6446. // instead.
  6447. //
  6448. // Note: You must call the "Send" method on the returned request object in order
  6449. // to execute the request.
  6450. //
  6451. // // Example sending a request using the DescribeSpotPriceHistoryRequest method.
  6452. // req, resp := client.DescribeSpotPriceHistoryRequest(params)
  6453. //
  6454. // err := req.Send()
  6455. // if err == nil { // resp is now filled
  6456. // fmt.Println(resp)
  6457. // }
  6458. //
  6459. func (c *EC2) DescribeSpotPriceHistoryRequest(input *DescribeSpotPriceHistoryInput) (req *request.Request, output *DescribeSpotPriceHistoryOutput) {
  6460. op := &request.Operation{
  6461. Name: opDescribeSpotPriceHistory,
  6462. HTTPMethod: "POST",
  6463. HTTPPath: "/",
  6464. Paginator: &request.Paginator{
  6465. InputTokens: []string{"NextToken"},
  6466. OutputTokens: []string{"NextToken"},
  6467. LimitToken: "MaxResults",
  6468. TruncationToken: "",
  6469. },
  6470. }
  6471. if input == nil {
  6472. input = &DescribeSpotPriceHistoryInput{}
  6473. }
  6474. req = c.newRequest(op, input, output)
  6475. output = &DescribeSpotPriceHistoryOutput{}
  6476. req.Data = output
  6477. return
  6478. }
  6479. // Describes the Spot price history. The prices returned are listed in chronological
  6480. // order, from the oldest to the most recent, for up to the past 90 days. For
  6481. // more information, see Spot Instance Pricing History (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html)
  6482. // in the Amazon Elastic Compute Cloud User Guide.
  6483. //
  6484. // When you specify a start and end time, this operation returns the prices
  6485. // of the instance types within the time range that you specified and the time
  6486. // when the price changed. The price is valid within the time period that you
  6487. // specified; the response merely indicates the last time that the price changed.
  6488. func (c *EC2) DescribeSpotPriceHistory(input *DescribeSpotPriceHistoryInput) (*DescribeSpotPriceHistoryOutput, error) {
  6489. req, out := c.DescribeSpotPriceHistoryRequest(input)
  6490. err := req.Send()
  6491. return out, err
  6492. }
  6493. // DescribeSpotPriceHistoryPages iterates over the pages of a DescribeSpotPriceHistory operation,
  6494. // calling the "fn" function with the response data for each page. To stop
  6495. // iterating, return false from the fn function.
  6496. //
  6497. // See DescribeSpotPriceHistory method for more information on how to use this operation.
  6498. //
  6499. // Note: This operation can generate multiple requests to a service.
  6500. //
  6501. // // Example iterating over at most 3 pages of a DescribeSpotPriceHistory operation.
  6502. // pageNum := 0
  6503. // err := client.DescribeSpotPriceHistoryPages(params,
  6504. // func(page *DescribeSpotPriceHistoryOutput, lastPage bool) bool {
  6505. // pageNum++
  6506. // fmt.Println(page)
  6507. // return pageNum <= 3
  6508. // })
  6509. //
  6510. func (c *EC2) DescribeSpotPriceHistoryPages(input *DescribeSpotPriceHistoryInput, fn func(p *DescribeSpotPriceHistoryOutput, lastPage bool) (shouldContinue bool)) error {
  6511. page, _ := c.DescribeSpotPriceHistoryRequest(input)
  6512. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  6513. return page.EachPage(func(p interface{}, lastPage bool) bool {
  6514. return fn(p.(*DescribeSpotPriceHistoryOutput), lastPage)
  6515. })
  6516. }
  6517. const opDescribeStaleSecurityGroups = "DescribeStaleSecurityGroups"
  6518. // DescribeStaleSecurityGroupsRequest generates a "aws/request.Request" representing the
  6519. // client's request for the DescribeStaleSecurityGroups operation. The "output" return
  6520. // value can be used to capture response data after the request's "Send" method
  6521. // is called.
  6522. //
  6523. // Creating a request object using this method should be used when you want to inject
  6524. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6525. // access properties on the request object before or after sending the request. If
  6526. // you just want the service response, call the DescribeStaleSecurityGroups method directly
  6527. // instead.
  6528. //
  6529. // Note: You must call the "Send" method on the returned request object in order
  6530. // to execute the request.
  6531. //
  6532. // // Example sending a request using the DescribeStaleSecurityGroupsRequest method.
  6533. // req, resp := client.DescribeStaleSecurityGroupsRequest(params)
  6534. //
  6535. // err := req.Send()
  6536. // if err == nil { // resp is now filled
  6537. // fmt.Println(resp)
  6538. // }
  6539. //
  6540. func (c *EC2) DescribeStaleSecurityGroupsRequest(input *DescribeStaleSecurityGroupsInput) (req *request.Request, output *DescribeStaleSecurityGroupsOutput) {
  6541. op := &request.Operation{
  6542. Name: opDescribeStaleSecurityGroups,
  6543. HTTPMethod: "POST",
  6544. HTTPPath: "/",
  6545. }
  6546. if input == nil {
  6547. input = &DescribeStaleSecurityGroupsInput{}
  6548. }
  6549. req = c.newRequest(op, input, output)
  6550. output = &DescribeStaleSecurityGroupsOutput{}
  6551. req.Data = output
  6552. return
  6553. }
  6554. // [EC2-VPC only] Describes the stale security group rules for security groups
  6555. // in a specified VPC. Rules are stale when they reference a deleted security
  6556. // group in a peer VPC, or a security group in a peer VPC for which the VPC
  6557. // peering connection has been deleted.
  6558. func (c *EC2) DescribeStaleSecurityGroups(input *DescribeStaleSecurityGroupsInput) (*DescribeStaleSecurityGroupsOutput, error) {
  6559. req, out := c.DescribeStaleSecurityGroupsRequest(input)
  6560. err := req.Send()
  6561. return out, err
  6562. }
  6563. const opDescribeSubnets = "DescribeSubnets"
  6564. // DescribeSubnetsRequest generates a "aws/request.Request" representing the
  6565. // client's request for the DescribeSubnets operation. The "output" return
  6566. // value can be used to capture response data after the request's "Send" method
  6567. // is called.
  6568. //
  6569. // Creating a request object using this method should be used when you want to inject
  6570. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6571. // access properties on the request object before or after sending the request. If
  6572. // you just want the service response, call the DescribeSubnets method directly
  6573. // instead.
  6574. //
  6575. // Note: You must call the "Send" method on the returned request object in order
  6576. // to execute the request.
  6577. //
  6578. // // Example sending a request using the DescribeSubnetsRequest method.
  6579. // req, resp := client.DescribeSubnetsRequest(params)
  6580. //
  6581. // err := req.Send()
  6582. // if err == nil { // resp is now filled
  6583. // fmt.Println(resp)
  6584. // }
  6585. //
  6586. func (c *EC2) DescribeSubnetsRequest(input *DescribeSubnetsInput) (req *request.Request, output *DescribeSubnetsOutput) {
  6587. op := &request.Operation{
  6588. Name: opDescribeSubnets,
  6589. HTTPMethod: "POST",
  6590. HTTPPath: "/",
  6591. }
  6592. if input == nil {
  6593. input = &DescribeSubnetsInput{}
  6594. }
  6595. req = c.newRequest(op, input, output)
  6596. output = &DescribeSubnetsOutput{}
  6597. req.Data = output
  6598. return
  6599. }
  6600. // Describes one or more of your subnets.
  6601. //
  6602. // For more information about subnets, see Your VPC and Subnets (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html)
  6603. // in the Amazon Virtual Private Cloud User Guide.
  6604. func (c *EC2) DescribeSubnets(input *DescribeSubnetsInput) (*DescribeSubnetsOutput, error) {
  6605. req, out := c.DescribeSubnetsRequest(input)
  6606. err := req.Send()
  6607. return out, err
  6608. }
  6609. const opDescribeTags = "DescribeTags"
  6610. // DescribeTagsRequest generates a "aws/request.Request" representing the
  6611. // client's request for the DescribeTags operation. The "output" return
  6612. // value can be used to capture response data after the request's "Send" method
  6613. // is called.
  6614. //
  6615. // Creating a request object using this method should be used when you want to inject
  6616. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6617. // access properties on the request object before or after sending the request. If
  6618. // you just want the service response, call the DescribeTags method directly
  6619. // instead.
  6620. //
  6621. // Note: You must call the "Send" method on the returned request object in order
  6622. // to execute the request.
  6623. //
  6624. // // Example sending a request using the DescribeTagsRequest method.
  6625. // req, resp := client.DescribeTagsRequest(params)
  6626. //
  6627. // err := req.Send()
  6628. // if err == nil { // resp is now filled
  6629. // fmt.Println(resp)
  6630. // }
  6631. //
  6632. func (c *EC2) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  6633. op := &request.Operation{
  6634. Name: opDescribeTags,
  6635. HTTPMethod: "POST",
  6636. HTTPPath: "/",
  6637. Paginator: &request.Paginator{
  6638. InputTokens: []string{"NextToken"},
  6639. OutputTokens: []string{"NextToken"},
  6640. LimitToken: "MaxResults",
  6641. TruncationToken: "",
  6642. },
  6643. }
  6644. if input == nil {
  6645. input = &DescribeTagsInput{}
  6646. }
  6647. req = c.newRequest(op, input, output)
  6648. output = &DescribeTagsOutput{}
  6649. req.Data = output
  6650. return
  6651. }
  6652. // Describes one or more of the tags for your EC2 resources.
  6653. //
  6654. // For more information about tags, see Tagging Your Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html)
  6655. // in the Amazon Elastic Compute Cloud User Guide.
  6656. func (c *EC2) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  6657. req, out := c.DescribeTagsRequest(input)
  6658. err := req.Send()
  6659. return out, err
  6660. }
  6661. // DescribeTagsPages iterates over the pages of a DescribeTags operation,
  6662. // calling the "fn" function with the response data for each page. To stop
  6663. // iterating, return false from the fn function.
  6664. //
  6665. // See DescribeTags method for more information on how to use this operation.
  6666. //
  6667. // Note: This operation can generate multiple requests to a service.
  6668. //
  6669. // // Example iterating over at most 3 pages of a DescribeTags operation.
  6670. // pageNum := 0
  6671. // err := client.DescribeTagsPages(params,
  6672. // func(page *DescribeTagsOutput, lastPage bool) bool {
  6673. // pageNum++
  6674. // fmt.Println(page)
  6675. // return pageNum <= 3
  6676. // })
  6677. //
  6678. func (c *EC2) DescribeTagsPages(input *DescribeTagsInput, fn func(p *DescribeTagsOutput, lastPage bool) (shouldContinue bool)) error {
  6679. page, _ := c.DescribeTagsRequest(input)
  6680. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  6681. return page.EachPage(func(p interface{}, lastPage bool) bool {
  6682. return fn(p.(*DescribeTagsOutput), lastPage)
  6683. })
  6684. }
  6685. const opDescribeVolumeAttribute = "DescribeVolumeAttribute"
  6686. // DescribeVolumeAttributeRequest generates a "aws/request.Request" representing the
  6687. // client's request for the DescribeVolumeAttribute operation. The "output" return
  6688. // value can be used to capture response data after the request's "Send" method
  6689. // is called.
  6690. //
  6691. // Creating a request object using this method should be used when you want to inject
  6692. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6693. // access properties on the request object before or after sending the request. If
  6694. // you just want the service response, call the DescribeVolumeAttribute method directly
  6695. // instead.
  6696. //
  6697. // Note: You must call the "Send" method on the returned request object in order
  6698. // to execute the request.
  6699. //
  6700. // // Example sending a request using the DescribeVolumeAttributeRequest method.
  6701. // req, resp := client.DescribeVolumeAttributeRequest(params)
  6702. //
  6703. // err := req.Send()
  6704. // if err == nil { // resp is now filled
  6705. // fmt.Println(resp)
  6706. // }
  6707. //
  6708. func (c *EC2) DescribeVolumeAttributeRequest(input *DescribeVolumeAttributeInput) (req *request.Request, output *DescribeVolumeAttributeOutput) {
  6709. op := &request.Operation{
  6710. Name: opDescribeVolumeAttribute,
  6711. HTTPMethod: "POST",
  6712. HTTPPath: "/",
  6713. }
  6714. if input == nil {
  6715. input = &DescribeVolumeAttributeInput{}
  6716. }
  6717. req = c.newRequest(op, input, output)
  6718. output = &DescribeVolumeAttributeOutput{}
  6719. req.Data = output
  6720. return
  6721. }
  6722. // Describes the specified attribute of the specified volume. You can specify
  6723. // only one attribute at a time.
  6724. //
  6725. // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html)
  6726. // in the Amazon Elastic Compute Cloud User Guide.
  6727. func (c *EC2) DescribeVolumeAttribute(input *DescribeVolumeAttributeInput) (*DescribeVolumeAttributeOutput, error) {
  6728. req, out := c.DescribeVolumeAttributeRequest(input)
  6729. err := req.Send()
  6730. return out, err
  6731. }
  6732. const opDescribeVolumeStatus = "DescribeVolumeStatus"
  6733. // DescribeVolumeStatusRequest generates a "aws/request.Request" representing the
  6734. // client's request for the DescribeVolumeStatus operation. The "output" return
  6735. // value can be used to capture response data after the request's "Send" method
  6736. // is called.
  6737. //
  6738. // Creating a request object using this method should be used when you want to inject
  6739. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6740. // access properties on the request object before or after sending the request. If
  6741. // you just want the service response, call the DescribeVolumeStatus method directly
  6742. // instead.
  6743. //
  6744. // Note: You must call the "Send" method on the returned request object in order
  6745. // to execute the request.
  6746. //
  6747. // // Example sending a request using the DescribeVolumeStatusRequest method.
  6748. // req, resp := client.DescribeVolumeStatusRequest(params)
  6749. //
  6750. // err := req.Send()
  6751. // if err == nil { // resp is now filled
  6752. // fmt.Println(resp)
  6753. // }
  6754. //
  6755. func (c *EC2) DescribeVolumeStatusRequest(input *DescribeVolumeStatusInput) (req *request.Request, output *DescribeVolumeStatusOutput) {
  6756. op := &request.Operation{
  6757. Name: opDescribeVolumeStatus,
  6758. HTTPMethod: "POST",
  6759. HTTPPath: "/",
  6760. Paginator: &request.Paginator{
  6761. InputTokens: []string{"NextToken"},
  6762. OutputTokens: []string{"NextToken"},
  6763. LimitToken: "MaxResults",
  6764. TruncationToken: "",
  6765. },
  6766. }
  6767. if input == nil {
  6768. input = &DescribeVolumeStatusInput{}
  6769. }
  6770. req = c.newRequest(op, input, output)
  6771. output = &DescribeVolumeStatusOutput{}
  6772. req.Data = output
  6773. return
  6774. }
  6775. // Describes the status of the specified volumes. Volume status provides the
  6776. // result of the checks performed on your volumes to determine events that can
  6777. // impair the performance of your volumes. The performance of a volume can be
  6778. // affected if an issue occurs on the volume's underlying host. If the volume's
  6779. // underlying host experiences a power outage or system issue, after the system
  6780. // is restored, there could be data inconsistencies on the volume. Volume events
  6781. // notify you if this occurs. Volume actions notify you if any action needs
  6782. // to be taken in response to the event.
  6783. //
  6784. // The DescribeVolumeStatus operation provides the following information about
  6785. // the specified volumes:
  6786. //
  6787. // Status: Reflects the current status of the volume. The possible values
  6788. // are ok, impaired , warning, or insufficient-data. If all checks pass, the
  6789. // overall status of the volume is ok. If the check fails, the overall status
  6790. // is impaired. If the status is insufficient-data, then the checks may still
  6791. // be taking place on your volume at the time. We recommend that you retry the
  6792. // request. For more information on volume status, see Monitoring the Status
  6793. // of Your Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-volume-status.html).
  6794. //
  6795. // Events: Reflect the cause of a volume status and may require you to take
  6796. // action. For example, if your volume returns an impaired status, then the
  6797. // volume event might be potential-data-inconsistency. This means that your
  6798. // volume has been affected by an issue with the underlying host, has all I/O
  6799. // operations disabled, and may have inconsistent data.
  6800. //
  6801. // Actions: Reflect the actions you may have to take in response to an event.
  6802. // For example, if the status of the volume is impaired and the volume event
  6803. // shows potential-data-inconsistency, then the action shows enable-volume-io.
  6804. // This means that you may want to enable the I/O operations for the volume
  6805. // by calling the EnableVolumeIO action and then check the volume for data consistency.
  6806. //
  6807. // Volume status is based on the volume status checks, and does not reflect
  6808. // the volume state. Therefore, volume status does not indicate volumes in the
  6809. // error state (for example, when a volume is incapable of accepting I/O.)
  6810. func (c *EC2) DescribeVolumeStatus(input *DescribeVolumeStatusInput) (*DescribeVolumeStatusOutput, error) {
  6811. req, out := c.DescribeVolumeStatusRequest(input)
  6812. err := req.Send()
  6813. return out, err
  6814. }
  6815. // DescribeVolumeStatusPages iterates over the pages of a DescribeVolumeStatus operation,
  6816. // calling the "fn" function with the response data for each page. To stop
  6817. // iterating, return false from the fn function.
  6818. //
  6819. // See DescribeVolumeStatus method for more information on how to use this operation.
  6820. //
  6821. // Note: This operation can generate multiple requests to a service.
  6822. //
  6823. // // Example iterating over at most 3 pages of a DescribeVolumeStatus operation.
  6824. // pageNum := 0
  6825. // err := client.DescribeVolumeStatusPages(params,
  6826. // func(page *DescribeVolumeStatusOutput, lastPage bool) bool {
  6827. // pageNum++
  6828. // fmt.Println(page)
  6829. // return pageNum <= 3
  6830. // })
  6831. //
  6832. func (c *EC2) DescribeVolumeStatusPages(input *DescribeVolumeStatusInput, fn func(p *DescribeVolumeStatusOutput, lastPage bool) (shouldContinue bool)) error {
  6833. page, _ := c.DescribeVolumeStatusRequest(input)
  6834. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  6835. return page.EachPage(func(p interface{}, lastPage bool) bool {
  6836. return fn(p.(*DescribeVolumeStatusOutput), lastPage)
  6837. })
  6838. }
  6839. const opDescribeVolumes = "DescribeVolumes"
  6840. // DescribeVolumesRequest generates a "aws/request.Request" representing the
  6841. // client's request for the DescribeVolumes operation. The "output" return
  6842. // value can be used to capture response data after the request's "Send" method
  6843. // is called.
  6844. //
  6845. // Creating a request object using this method should be used when you want to inject
  6846. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6847. // access properties on the request object before or after sending the request. If
  6848. // you just want the service response, call the DescribeVolumes method directly
  6849. // instead.
  6850. //
  6851. // Note: You must call the "Send" method on the returned request object in order
  6852. // to execute the request.
  6853. //
  6854. // // Example sending a request using the DescribeVolumesRequest method.
  6855. // req, resp := client.DescribeVolumesRequest(params)
  6856. //
  6857. // err := req.Send()
  6858. // if err == nil { // resp is now filled
  6859. // fmt.Println(resp)
  6860. // }
  6861. //
  6862. func (c *EC2) DescribeVolumesRequest(input *DescribeVolumesInput) (req *request.Request, output *DescribeVolumesOutput) {
  6863. op := &request.Operation{
  6864. Name: opDescribeVolumes,
  6865. HTTPMethod: "POST",
  6866. HTTPPath: "/",
  6867. Paginator: &request.Paginator{
  6868. InputTokens: []string{"NextToken"},
  6869. OutputTokens: []string{"NextToken"},
  6870. LimitToken: "MaxResults",
  6871. TruncationToken: "",
  6872. },
  6873. }
  6874. if input == nil {
  6875. input = &DescribeVolumesInput{}
  6876. }
  6877. req = c.newRequest(op, input, output)
  6878. output = &DescribeVolumesOutput{}
  6879. req.Data = output
  6880. return
  6881. }
  6882. // Describes the specified EBS volumes.
  6883. //
  6884. // If you are describing a long list of volumes, you can paginate the output
  6885. // to make the list more manageable. The MaxResults parameter sets the maximum
  6886. // number of results returned in a single page. If the list of results exceeds
  6887. // your MaxResults value, then that number of results is returned along with
  6888. // a NextToken value that can be passed to a subsequent DescribeVolumes request
  6889. // to retrieve the remaining results.
  6890. //
  6891. // For more information about EBS volumes, see Amazon EBS Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html)
  6892. // in the Amazon Elastic Compute Cloud User Guide.
  6893. func (c *EC2) DescribeVolumes(input *DescribeVolumesInput) (*DescribeVolumesOutput, error) {
  6894. req, out := c.DescribeVolumesRequest(input)
  6895. err := req.Send()
  6896. return out, err
  6897. }
  6898. // DescribeVolumesPages iterates over the pages of a DescribeVolumes operation,
  6899. // calling the "fn" function with the response data for each page. To stop
  6900. // iterating, return false from the fn function.
  6901. //
  6902. // See DescribeVolumes method for more information on how to use this operation.
  6903. //
  6904. // Note: This operation can generate multiple requests to a service.
  6905. //
  6906. // // Example iterating over at most 3 pages of a DescribeVolumes operation.
  6907. // pageNum := 0
  6908. // err := client.DescribeVolumesPages(params,
  6909. // func(page *DescribeVolumesOutput, lastPage bool) bool {
  6910. // pageNum++
  6911. // fmt.Println(page)
  6912. // return pageNum <= 3
  6913. // })
  6914. //
  6915. func (c *EC2) DescribeVolumesPages(input *DescribeVolumesInput, fn func(p *DescribeVolumesOutput, lastPage bool) (shouldContinue bool)) error {
  6916. page, _ := c.DescribeVolumesRequest(input)
  6917. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  6918. return page.EachPage(func(p interface{}, lastPage bool) bool {
  6919. return fn(p.(*DescribeVolumesOutput), lastPage)
  6920. })
  6921. }
  6922. const opDescribeVpcAttribute = "DescribeVpcAttribute"
  6923. // DescribeVpcAttributeRequest generates a "aws/request.Request" representing the
  6924. // client's request for the DescribeVpcAttribute operation. The "output" return
  6925. // value can be used to capture response data after the request's "Send" method
  6926. // is called.
  6927. //
  6928. // Creating a request object using this method should be used when you want to inject
  6929. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6930. // access properties on the request object before or after sending the request. If
  6931. // you just want the service response, call the DescribeVpcAttribute method directly
  6932. // instead.
  6933. //
  6934. // Note: You must call the "Send" method on the returned request object in order
  6935. // to execute the request.
  6936. //
  6937. // // Example sending a request using the DescribeVpcAttributeRequest method.
  6938. // req, resp := client.DescribeVpcAttributeRequest(params)
  6939. //
  6940. // err := req.Send()
  6941. // if err == nil { // resp is now filled
  6942. // fmt.Println(resp)
  6943. // }
  6944. //
  6945. func (c *EC2) DescribeVpcAttributeRequest(input *DescribeVpcAttributeInput) (req *request.Request, output *DescribeVpcAttributeOutput) {
  6946. op := &request.Operation{
  6947. Name: opDescribeVpcAttribute,
  6948. HTTPMethod: "POST",
  6949. HTTPPath: "/",
  6950. }
  6951. if input == nil {
  6952. input = &DescribeVpcAttributeInput{}
  6953. }
  6954. req = c.newRequest(op, input, output)
  6955. output = &DescribeVpcAttributeOutput{}
  6956. req.Data = output
  6957. return
  6958. }
  6959. // Describes the specified attribute of the specified VPC. You can specify only
  6960. // one attribute at a time.
  6961. func (c *EC2) DescribeVpcAttribute(input *DescribeVpcAttributeInput) (*DescribeVpcAttributeOutput, error) {
  6962. req, out := c.DescribeVpcAttributeRequest(input)
  6963. err := req.Send()
  6964. return out, err
  6965. }
  6966. const opDescribeVpcClassicLink = "DescribeVpcClassicLink"
  6967. // DescribeVpcClassicLinkRequest generates a "aws/request.Request" representing the
  6968. // client's request for the DescribeVpcClassicLink operation. The "output" return
  6969. // value can be used to capture response data after the request's "Send" method
  6970. // is called.
  6971. //
  6972. // Creating a request object using this method should be used when you want to inject
  6973. // custom logic into the request's lifecycle using a custom handler, or if you want to
  6974. // access properties on the request object before or after sending the request. If
  6975. // you just want the service response, call the DescribeVpcClassicLink method directly
  6976. // instead.
  6977. //
  6978. // Note: You must call the "Send" method on the returned request object in order
  6979. // to execute the request.
  6980. //
  6981. // // Example sending a request using the DescribeVpcClassicLinkRequest method.
  6982. // req, resp := client.DescribeVpcClassicLinkRequest(params)
  6983. //
  6984. // err := req.Send()
  6985. // if err == nil { // resp is now filled
  6986. // fmt.Println(resp)
  6987. // }
  6988. //
  6989. func (c *EC2) DescribeVpcClassicLinkRequest(input *DescribeVpcClassicLinkInput) (req *request.Request, output *DescribeVpcClassicLinkOutput) {
  6990. op := &request.Operation{
  6991. Name: opDescribeVpcClassicLink,
  6992. HTTPMethod: "POST",
  6993. HTTPPath: "/",
  6994. }
  6995. if input == nil {
  6996. input = &DescribeVpcClassicLinkInput{}
  6997. }
  6998. req = c.newRequest(op, input, output)
  6999. output = &DescribeVpcClassicLinkOutput{}
  7000. req.Data = output
  7001. return
  7002. }
  7003. // Describes the ClassicLink status of one or more VPCs.
  7004. func (c *EC2) DescribeVpcClassicLink(input *DescribeVpcClassicLinkInput) (*DescribeVpcClassicLinkOutput, error) {
  7005. req, out := c.DescribeVpcClassicLinkRequest(input)
  7006. err := req.Send()
  7007. return out, err
  7008. }
  7009. const opDescribeVpcClassicLinkDnsSupport = "DescribeVpcClassicLinkDnsSupport"
  7010. // DescribeVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  7011. // client's request for the DescribeVpcClassicLinkDnsSupport operation. The "output" return
  7012. // value can be used to capture response data after the request's "Send" method
  7013. // is called.
  7014. //
  7015. // Creating a request object using this method should be used when you want to inject
  7016. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7017. // access properties on the request object before or after sending the request. If
  7018. // you just want the service response, call the DescribeVpcClassicLinkDnsSupport method directly
  7019. // instead.
  7020. //
  7021. // Note: You must call the "Send" method on the returned request object in order
  7022. // to execute the request.
  7023. //
  7024. // // Example sending a request using the DescribeVpcClassicLinkDnsSupportRequest method.
  7025. // req, resp := client.DescribeVpcClassicLinkDnsSupportRequest(params)
  7026. //
  7027. // err := req.Send()
  7028. // if err == nil { // resp is now filled
  7029. // fmt.Println(resp)
  7030. // }
  7031. //
  7032. func (c *EC2) DescribeVpcClassicLinkDnsSupportRequest(input *DescribeVpcClassicLinkDnsSupportInput) (req *request.Request, output *DescribeVpcClassicLinkDnsSupportOutput) {
  7033. op := &request.Operation{
  7034. Name: opDescribeVpcClassicLinkDnsSupport,
  7035. HTTPMethod: "POST",
  7036. HTTPPath: "/",
  7037. }
  7038. if input == nil {
  7039. input = &DescribeVpcClassicLinkDnsSupportInput{}
  7040. }
  7041. req = c.newRequest(op, input, output)
  7042. output = &DescribeVpcClassicLinkDnsSupportOutput{}
  7043. req.Data = output
  7044. return
  7045. }
  7046. // Describes the ClassicLink DNS support status of one or more VPCs. If enabled,
  7047. // the DNS hostname of a linked EC2-Classic instance resolves to its private
  7048. // IP address when addressed from an instance in the VPC to which it's linked.
  7049. // Similarly, the DNS hostname of an instance in a VPC resolves to its private
  7050. // IP address when addressed from a linked EC2-Classic instance. For more information
  7051. // about ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  7052. // in the Amazon Elastic Compute Cloud User Guide.
  7053. func (c *EC2) DescribeVpcClassicLinkDnsSupport(input *DescribeVpcClassicLinkDnsSupportInput) (*DescribeVpcClassicLinkDnsSupportOutput, error) {
  7054. req, out := c.DescribeVpcClassicLinkDnsSupportRequest(input)
  7055. err := req.Send()
  7056. return out, err
  7057. }
  7058. const opDescribeVpcEndpointServices = "DescribeVpcEndpointServices"
  7059. // DescribeVpcEndpointServicesRequest generates a "aws/request.Request" representing the
  7060. // client's request for the DescribeVpcEndpointServices operation. The "output" return
  7061. // value can be used to capture response data after the request's "Send" method
  7062. // is called.
  7063. //
  7064. // Creating a request object using this method should be used when you want to inject
  7065. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7066. // access properties on the request object before or after sending the request. If
  7067. // you just want the service response, call the DescribeVpcEndpointServices method directly
  7068. // instead.
  7069. //
  7070. // Note: You must call the "Send" method on the returned request object in order
  7071. // to execute the request.
  7072. //
  7073. // // Example sending a request using the DescribeVpcEndpointServicesRequest method.
  7074. // req, resp := client.DescribeVpcEndpointServicesRequest(params)
  7075. //
  7076. // err := req.Send()
  7077. // if err == nil { // resp is now filled
  7078. // fmt.Println(resp)
  7079. // }
  7080. //
  7081. func (c *EC2) DescribeVpcEndpointServicesRequest(input *DescribeVpcEndpointServicesInput) (req *request.Request, output *DescribeVpcEndpointServicesOutput) {
  7082. op := &request.Operation{
  7083. Name: opDescribeVpcEndpointServices,
  7084. HTTPMethod: "POST",
  7085. HTTPPath: "/",
  7086. }
  7087. if input == nil {
  7088. input = &DescribeVpcEndpointServicesInput{}
  7089. }
  7090. req = c.newRequest(op, input, output)
  7091. output = &DescribeVpcEndpointServicesOutput{}
  7092. req.Data = output
  7093. return
  7094. }
  7095. // Describes all supported AWS services that can be specified when creating
  7096. // a VPC endpoint.
  7097. func (c *EC2) DescribeVpcEndpointServices(input *DescribeVpcEndpointServicesInput) (*DescribeVpcEndpointServicesOutput, error) {
  7098. req, out := c.DescribeVpcEndpointServicesRequest(input)
  7099. err := req.Send()
  7100. return out, err
  7101. }
  7102. const opDescribeVpcEndpoints = "DescribeVpcEndpoints"
  7103. // DescribeVpcEndpointsRequest generates a "aws/request.Request" representing the
  7104. // client's request for the DescribeVpcEndpoints operation. The "output" return
  7105. // value can be used to capture response data after the request's "Send" method
  7106. // is called.
  7107. //
  7108. // Creating a request object using this method should be used when you want to inject
  7109. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7110. // access properties on the request object before or after sending the request. If
  7111. // you just want the service response, call the DescribeVpcEndpoints method directly
  7112. // instead.
  7113. //
  7114. // Note: You must call the "Send" method on the returned request object in order
  7115. // to execute the request.
  7116. //
  7117. // // Example sending a request using the DescribeVpcEndpointsRequest method.
  7118. // req, resp := client.DescribeVpcEndpointsRequest(params)
  7119. //
  7120. // err := req.Send()
  7121. // if err == nil { // resp is now filled
  7122. // fmt.Println(resp)
  7123. // }
  7124. //
  7125. func (c *EC2) DescribeVpcEndpointsRequest(input *DescribeVpcEndpointsInput) (req *request.Request, output *DescribeVpcEndpointsOutput) {
  7126. op := &request.Operation{
  7127. Name: opDescribeVpcEndpoints,
  7128. HTTPMethod: "POST",
  7129. HTTPPath: "/",
  7130. }
  7131. if input == nil {
  7132. input = &DescribeVpcEndpointsInput{}
  7133. }
  7134. req = c.newRequest(op, input, output)
  7135. output = &DescribeVpcEndpointsOutput{}
  7136. req.Data = output
  7137. return
  7138. }
  7139. // Describes one or more of your VPC endpoints.
  7140. func (c *EC2) DescribeVpcEndpoints(input *DescribeVpcEndpointsInput) (*DescribeVpcEndpointsOutput, error) {
  7141. req, out := c.DescribeVpcEndpointsRequest(input)
  7142. err := req.Send()
  7143. return out, err
  7144. }
  7145. const opDescribeVpcPeeringConnections = "DescribeVpcPeeringConnections"
  7146. // DescribeVpcPeeringConnectionsRequest generates a "aws/request.Request" representing the
  7147. // client's request for the DescribeVpcPeeringConnections operation. The "output" return
  7148. // value can be used to capture response data after the request's "Send" method
  7149. // is called.
  7150. //
  7151. // Creating a request object using this method should be used when you want to inject
  7152. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7153. // access properties on the request object before or after sending the request. If
  7154. // you just want the service response, call the DescribeVpcPeeringConnections method directly
  7155. // instead.
  7156. //
  7157. // Note: You must call the "Send" method on the returned request object in order
  7158. // to execute the request.
  7159. //
  7160. // // Example sending a request using the DescribeVpcPeeringConnectionsRequest method.
  7161. // req, resp := client.DescribeVpcPeeringConnectionsRequest(params)
  7162. //
  7163. // err := req.Send()
  7164. // if err == nil { // resp is now filled
  7165. // fmt.Println(resp)
  7166. // }
  7167. //
  7168. func (c *EC2) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeeringConnectionsInput) (req *request.Request, output *DescribeVpcPeeringConnectionsOutput) {
  7169. op := &request.Operation{
  7170. Name: opDescribeVpcPeeringConnections,
  7171. HTTPMethod: "POST",
  7172. HTTPPath: "/",
  7173. }
  7174. if input == nil {
  7175. input = &DescribeVpcPeeringConnectionsInput{}
  7176. }
  7177. req = c.newRequest(op, input, output)
  7178. output = &DescribeVpcPeeringConnectionsOutput{}
  7179. req.Data = output
  7180. return
  7181. }
  7182. // Describes one or more of your VPC peering connections.
  7183. func (c *EC2) DescribeVpcPeeringConnections(input *DescribeVpcPeeringConnectionsInput) (*DescribeVpcPeeringConnectionsOutput, error) {
  7184. req, out := c.DescribeVpcPeeringConnectionsRequest(input)
  7185. err := req.Send()
  7186. return out, err
  7187. }
  7188. const opDescribeVpcs = "DescribeVpcs"
  7189. // DescribeVpcsRequest generates a "aws/request.Request" representing the
  7190. // client's request for the DescribeVpcs operation. The "output" return
  7191. // value can be used to capture response data after the request's "Send" method
  7192. // is called.
  7193. //
  7194. // Creating a request object using this method should be used when you want to inject
  7195. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7196. // access properties on the request object before or after sending the request. If
  7197. // you just want the service response, call the DescribeVpcs method directly
  7198. // instead.
  7199. //
  7200. // Note: You must call the "Send" method on the returned request object in order
  7201. // to execute the request.
  7202. //
  7203. // // Example sending a request using the DescribeVpcsRequest method.
  7204. // req, resp := client.DescribeVpcsRequest(params)
  7205. //
  7206. // err := req.Send()
  7207. // if err == nil { // resp is now filled
  7208. // fmt.Println(resp)
  7209. // }
  7210. //
  7211. func (c *EC2) DescribeVpcsRequest(input *DescribeVpcsInput) (req *request.Request, output *DescribeVpcsOutput) {
  7212. op := &request.Operation{
  7213. Name: opDescribeVpcs,
  7214. HTTPMethod: "POST",
  7215. HTTPPath: "/",
  7216. }
  7217. if input == nil {
  7218. input = &DescribeVpcsInput{}
  7219. }
  7220. req = c.newRequest(op, input, output)
  7221. output = &DescribeVpcsOutput{}
  7222. req.Data = output
  7223. return
  7224. }
  7225. // Describes one or more of your VPCs.
  7226. func (c *EC2) DescribeVpcs(input *DescribeVpcsInput) (*DescribeVpcsOutput, error) {
  7227. req, out := c.DescribeVpcsRequest(input)
  7228. err := req.Send()
  7229. return out, err
  7230. }
  7231. const opDescribeVpnConnections = "DescribeVpnConnections"
  7232. // DescribeVpnConnectionsRequest generates a "aws/request.Request" representing the
  7233. // client's request for the DescribeVpnConnections operation. The "output" return
  7234. // value can be used to capture response data after the request's "Send" method
  7235. // is called.
  7236. //
  7237. // Creating a request object using this method should be used when you want to inject
  7238. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7239. // access properties on the request object before or after sending the request. If
  7240. // you just want the service response, call the DescribeVpnConnections method directly
  7241. // instead.
  7242. //
  7243. // Note: You must call the "Send" method on the returned request object in order
  7244. // to execute the request.
  7245. //
  7246. // // Example sending a request using the DescribeVpnConnectionsRequest method.
  7247. // req, resp := client.DescribeVpnConnectionsRequest(params)
  7248. //
  7249. // err := req.Send()
  7250. // if err == nil { // resp is now filled
  7251. // fmt.Println(resp)
  7252. // }
  7253. //
  7254. func (c *EC2) DescribeVpnConnectionsRequest(input *DescribeVpnConnectionsInput) (req *request.Request, output *DescribeVpnConnectionsOutput) {
  7255. op := &request.Operation{
  7256. Name: opDescribeVpnConnections,
  7257. HTTPMethod: "POST",
  7258. HTTPPath: "/",
  7259. }
  7260. if input == nil {
  7261. input = &DescribeVpnConnectionsInput{}
  7262. }
  7263. req = c.newRequest(op, input, output)
  7264. output = &DescribeVpnConnectionsOutput{}
  7265. req.Data = output
  7266. return
  7267. }
  7268. // Describes one or more of your VPN connections.
  7269. //
  7270. // For more information about VPN connections, see Adding a Hardware Virtual
  7271. // Private Gateway to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  7272. // in the Amazon Virtual Private Cloud User Guide.
  7273. func (c *EC2) DescribeVpnConnections(input *DescribeVpnConnectionsInput) (*DescribeVpnConnectionsOutput, error) {
  7274. req, out := c.DescribeVpnConnectionsRequest(input)
  7275. err := req.Send()
  7276. return out, err
  7277. }
  7278. const opDescribeVpnGateways = "DescribeVpnGateways"
  7279. // DescribeVpnGatewaysRequest generates a "aws/request.Request" representing the
  7280. // client's request for the DescribeVpnGateways operation. The "output" return
  7281. // value can be used to capture response data after the request's "Send" method
  7282. // is called.
  7283. //
  7284. // Creating a request object using this method should be used when you want to inject
  7285. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7286. // access properties on the request object before or after sending the request. If
  7287. // you just want the service response, call the DescribeVpnGateways method directly
  7288. // instead.
  7289. //
  7290. // Note: You must call the "Send" method on the returned request object in order
  7291. // to execute the request.
  7292. //
  7293. // // Example sending a request using the DescribeVpnGatewaysRequest method.
  7294. // req, resp := client.DescribeVpnGatewaysRequest(params)
  7295. //
  7296. // err := req.Send()
  7297. // if err == nil { // resp is now filled
  7298. // fmt.Println(resp)
  7299. // }
  7300. //
  7301. func (c *EC2) DescribeVpnGatewaysRequest(input *DescribeVpnGatewaysInput) (req *request.Request, output *DescribeVpnGatewaysOutput) {
  7302. op := &request.Operation{
  7303. Name: opDescribeVpnGateways,
  7304. HTTPMethod: "POST",
  7305. HTTPPath: "/",
  7306. }
  7307. if input == nil {
  7308. input = &DescribeVpnGatewaysInput{}
  7309. }
  7310. req = c.newRequest(op, input, output)
  7311. output = &DescribeVpnGatewaysOutput{}
  7312. req.Data = output
  7313. return
  7314. }
  7315. // Describes one or more of your virtual private gateways.
  7316. //
  7317. // For more information about virtual private gateways, see Adding an IPsec
  7318. // Hardware VPN to Your VPC (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html)
  7319. // in the Amazon Virtual Private Cloud User Guide.
  7320. func (c *EC2) DescribeVpnGateways(input *DescribeVpnGatewaysInput) (*DescribeVpnGatewaysOutput, error) {
  7321. req, out := c.DescribeVpnGatewaysRequest(input)
  7322. err := req.Send()
  7323. return out, err
  7324. }
  7325. const opDetachClassicLinkVpc = "DetachClassicLinkVpc"
  7326. // DetachClassicLinkVpcRequest generates a "aws/request.Request" representing the
  7327. // client's request for the DetachClassicLinkVpc operation. The "output" return
  7328. // value can be used to capture response data after the request's "Send" method
  7329. // is called.
  7330. //
  7331. // Creating a request object using this method should be used when you want to inject
  7332. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7333. // access properties on the request object before or after sending the request. If
  7334. // you just want the service response, call the DetachClassicLinkVpc method directly
  7335. // instead.
  7336. //
  7337. // Note: You must call the "Send" method on the returned request object in order
  7338. // to execute the request.
  7339. //
  7340. // // Example sending a request using the DetachClassicLinkVpcRequest method.
  7341. // req, resp := client.DetachClassicLinkVpcRequest(params)
  7342. //
  7343. // err := req.Send()
  7344. // if err == nil { // resp is now filled
  7345. // fmt.Println(resp)
  7346. // }
  7347. //
  7348. func (c *EC2) DetachClassicLinkVpcRequest(input *DetachClassicLinkVpcInput) (req *request.Request, output *DetachClassicLinkVpcOutput) {
  7349. op := &request.Operation{
  7350. Name: opDetachClassicLinkVpc,
  7351. HTTPMethod: "POST",
  7352. HTTPPath: "/",
  7353. }
  7354. if input == nil {
  7355. input = &DetachClassicLinkVpcInput{}
  7356. }
  7357. req = c.newRequest(op, input, output)
  7358. output = &DetachClassicLinkVpcOutput{}
  7359. req.Data = output
  7360. return
  7361. }
  7362. // Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance
  7363. // has been unlinked, the VPC security groups are no longer associated with
  7364. // it. An instance is automatically unlinked from a VPC when it's stopped.
  7365. func (c *EC2) DetachClassicLinkVpc(input *DetachClassicLinkVpcInput) (*DetachClassicLinkVpcOutput, error) {
  7366. req, out := c.DetachClassicLinkVpcRequest(input)
  7367. err := req.Send()
  7368. return out, err
  7369. }
  7370. const opDetachInternetGateway = "DetachInternetGateway"
  7371. // DetachInternetGatewayRequest generates a "aws/request.Request" representing the
  7372. // client's request for the DetachInternetGateway operation. The "output" return
  7373. // value can be used to capture response data after the request's "Send" method
  7374. // is called.
  7375. //
  7376. // Creating a request object using this method should be used when you want to inject
  7377. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7378. // access properties on the request object before or after sending the request. If
  7379. // you just want the service response, call the DetachInternetGateway method directly
  7380. // instead.
  7381. //
  7382. // Note: You must call the "Send" method on the returned request object in order
  7383. // to execute the request.
  7384. //
  7385. // // Example sending a request using the DetachInternetGatewayRequest method.
  7386. // req, resp := client.DetachInternetGatewayRequest(params)
  7387. //
  7388. // err := req.Send()
  7389. // if err == nil { // resp is now filled
  7390. // fmt.Println(resp)
  7391. // }
  7392. //
  7393. func (c *EC2) DetachInternetGatewayRequest(input *DetachInternetGatewayInput) (req *request.Request, output *DetachInternetGatewayOutput) {
  7394. op := &request.Operation{
  7395. Name: opDetachInternetGateway,
  7396. HTTPMethod: "POST",
  7397. HTTPPath: "/",
  7398. }
  7399. if input == nil {
  7400. input = &DetachInternetGatewayInput{}
  7401. }
  7402. req = c.newRequest(op, input, output)
  7403. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7404. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7405. output = &DetachInternetGatewayOutput{}
  7406. req.Data = output
  7407. return
  7408. }
  7409. // Detaches an Internet gateway from a VPC, disabling connectivity between the
  7410. // Internet and the VPC. The VPC must not contain any running instances with
  7411. // Elastic IP addresses.
  7412. func (c *EC2) DetachInternetGateway(input *DetachInternetGatewayInput) (*DetachInternetGatewayOutput, error) {
  7413. req, out := c.DetachInternetGatewayRequest(input)
  7414. err := req.Send()
  7415. return out, err
  7416. }
  7417. const opDetachNetworkInterface = "DetachNetworkInterface"
  7418. // DetachNetworkInterfaceRequest generates a "aws/request.Request" representing the
  7419. // client's request for the DetachNetworkInterface operation. The "output" return
  7420. // value can be used to capture response data after the request's "Send" method
  7421. // is called.
  7422. //
  7423. // Creating a request object using this method should be used when you want to inject
  7424. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7425. // access properties on the request object before or after sending the request. If
  7426. // you just want the service response, call the DetachNetworkInterface method directly
  7427. // instead.
  7428. //
  7429. // Note: You must call the "Send" method on the returned request object in order
  7430. // to execute the request.
  7431. //
  7432. // // Example sending a request using the DetachNetworkInterfaceRequest method.
  7433. // req, resp := client.DetachNetworkInterfaceRequest(params)
  7434. //
  7435. // err := req.Send()
  7436. // if err == nil { // resp is now filled
  7437. // fmt.Println(resp)
  7438. // }
  7439. //
  7440. func (c *EC2) DetachNetworkInterfaceRequest(input *DetachNetworkInterfaceInput) (req *request.Request, output *DetachNetworkInterfaceOutput) {
  7441. op := &request.Operation{
  7442. Name: opDetachNetworkInterface,
  7443. HTTPMethod: "POST",
  7444. HTTPPath: "/",
  7445. }
  7446. if input == nil {
  7447. input = &DetachNetworkInterfaceInput{}
  7448. }
  7449. req = c.newRequest(op, input, output)
  7450. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7451. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7452. output = &DetachNetworkInterfaceOutput{}
  7453. req.Data = output
  7454. return
  7455. }
  7456. // Detaches a network interface from an instance.
  7457. func (c *EC2) DetachNetworkInterface(input *DetachNetworkInterfaceInput) (*DetachNetworkInterfaceOutput, error) {
  7458. req, out := c.DetachNetworkInterfaceRequest(input)
  7459. err := req.Send()
  7460. return out, err
  7461. }
  7462. const opDetachVolume = "DetachVolume"
  7463. // DetachVolumeRequest generates a "aws/request.Request" representing the
  7464. // client's request for the DetachVolume operation. The "output" return
  7465. // value can be used to capture response data after the request's "Send" method
  7466. // is called.
  7467. //
  7468. // Creating a request object using this method should be used when you want to inject
  7469. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7470. // access properties on the request object before or after sending the request. If
  7471. // you just want the service response, call the DetachVolume method directly
  7472. // instead.
  7473. //
  7474. // Note: You must call the "Send" method on the returned request object in order
  7475. // to execute the request.
  7476. //
  7477. // // Example sending a request using the DetachVolumeRequest method.
  7478. // req, resp := client.DetachVolumeRequest(params)
  7479. //
  7480. // err := req.Send()
  7481. // if err == nil { // resp is now filled
  7482. // fmt.Println(resp)
  7483. // }
  7484. //
  7485. func (c *EC2) DetachVolumeRequest(input *DetachVolumeInput) (req *request.Request, output *VolumeAttachment) {
  7486. op := &request.Operation{
  7487. Name: opDetachVolume,
  7488. HTTPMethod: "POST",
  7489. HTTPPath: "/",
  7490. }
  7491. if input == nil {
  7492. input = &DetachVolumeInput{}
  7493. }
  7494. req = c.newRequest(op, input, output)
  7495. output = &VolumeAttachment{}
  7496. req.Data = output
  7497. return
  7498. }
  7499. // Detaches an EBS volume from an instance. Make sure to unmount any file systems
  7500. // on the device within your operating system before detaching the volume. Failure
  7501. // to do so results in the volume being stuck in a busy state while detaching.
  7502. //
  7503. // If an Amazon EBS volume is the root device of an instance, it can't be detached
  7504. // while the instance is running. To detach the root volume, stop the instance
  7505. // first.
  7506. //
  7507. // When a volume with an AWS Marketplace product code is detached from an instance,
  7508. // the product code is no longer associated with the instance.
  7509. //
  7510. // For more information, see Detaching an Amazon EBS Volume (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html)
  7511. // in the Amazon Elastic Compute Cloud User Guide.
  7512. func (c *EC2) DetachVolume(input *DetachVolumeInput) (*VolumeAttachment, error) {
  7513. req, out := c.DetachVolumeRequest(input)
  7514. err := req.Send()
  7515. return out, err
  7516. }
  7517. const opDetachVpnGateway = "DetachVpnGateway"
  7518. // DetachVpnGatewayRequest generates a "aws/request.Request" representing the
  7519. // client's request for the DetachVpnGateway operation. The "output" return
  7520. // value can be used to capture response data after the request's "Send" method
  7521. // is called.
  7522. //
  7523. // Creating a request object using this method should be used when you want to inject
  7524. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7525. // access properties on the request object before or after sending the request. If
  7526. // you just want the service response, call the DetachVpnGateway method directly
  7527. // instead.
  7528. //
  7529. // Note: You must call the "Send" method on the returned request object in order
  7530. // to execute the request.
  7531. //
  7532. // // Example sending a request using the DetachVpnGatewayRequest method.
  7533. // req, resp := client.DetachVpnGatewayRequest(params)
  7534. //
  7535. // err := req.Send()
  7536. // if err == nil { // resp is now filled
  7537. // fmt.Println(resp)
  7538. // }
  7539. //
  7540. func (c *EC2) DetachVpnGatewayRequest(input *DetachVpnGatewayInput) (req *request.Request, output *DetachVpnGatewayOutput) {
  7541. op := &request.Operation{
  7542. Name: opDetachVpnGateway,
  7543. HTTPMethod: "POST",
  7544. HTTPPath: "/",
  7545. }
  7546. if input == nil {
  7547. input = &DetachVpnGatewayInput{}
  7548. }
  7549. req = c.newRequest(op, input, output)
  7550. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7551. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7552. output = &DetachVpnGatewayOutput{}
  7553. req.Data = output
  7554. return
  7555. }
  7556. // Detaches a virtual private gateway from a VPC. You do this if you're planning
  7557. // to turn off the VPC and not use it anymore. You can confirm a virtual private
  7558. // gateway has been completely detached from a VPC by describing the virtual
  7559. // private gateway (any attachments to the virtual private gateway are also
  7560. // described).
  7561. //
  7562. // You must wait for the attachment's state to switch to detached before you
  7563. // can delete the VPC or attach a different VPC to the virtual private gateway.
  7564. func (c *EC2) DetachVpnGateway(input *DetachVpnGatewayInput) (*DetachVpnGatewayOutput, error) {
  7565. req, out := c.DetachVpnGatewayRequest(input)
  7566. err := req.Send()
  7567. return out, err
  7568. }
  7569. const opDisableVgwRoutePropagation = "DisableVgwRoutePropagation"
  7570. // DisableVgwRoutePropagationRequest generates a "aws/request.Request" representing the
  7571. // client's request for the DisableVgwRoutePropagation operation. The "output" return
  7572. // value can be used to capture response data after the request's "Send" method
  7573. // is called.
  7574. //
  7575. // Creating a request object using this method should be used when you want to inject
  7576. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7577. // access properties on the request object before or after sending the request. If
  7578. // you just want the service response, call the DisableVgwRoutePropagation method directly
  7579. // instead.
  7580. //
  7581. // Note: You must call the "Send" method on the returned request object in order
  7582. // to execute the request.
  7583. //
  7584. // // Example sending a request using the DisableVgwRoutePropagationRequest method.
  7585. // req, resp := client.DisableVgwRoutePropagationRequest(params)
  7586. //
  7587. // err := req.Send()
  7588. // if err == nil { // resp is now filled
  7589. // fmt.Println(resp)
  7590. // }
  7591. //
  7592. func (c *EC2) DisableVgwRoutePropagationRequest(input *DisableVgwRoutePropagationInput) (req *request.Request, output *DisableVgwRoutePropagationOutput) {
  7593. op := &request.Operation{
  7594. Name: opDisableVgwRoutePropagation,
  7595. HTTPMethod: "POST",
  7596. HTTPPath: "/",
  7597. }
  7598. if input == nil {
  7599. input = &DisableVgwRoutePropagationInput{}
  7600. }
  7601. req = c.newRequest(op, input, output)
  7602. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7603. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7604. output = &DisableVgwRoutePropagationOutput{}
  7605. req.Data = output
  7606. return
  7607. }
  7608. // Disables a virtual private gateway (VGW) from propagating routes to a specified
  7609. // route table of a VPC.
  7610. func (c *EC2) DisableVgwRoutePropagation(input *DisableVgwRoutePropagationInput) (*DisableVgwRoutePropagationOutput, error) {
  7611. req, out := c.DisableVgwRoutePropagationRequest(input)
  7612. err := req.Send()
  7613. return out, err
  7614. }
  7615. const opDisableVpcClassicLink = "DisableVpcClassicLink"
  7616. // DisableVpcClassicLinkRequest generates a "aws/request.Request" representing the
  7617. // client's request for the DisableVpcClassicLink operation. The "output" return
  7618. // value can be used to capture response data after the request's "Send" method
  7619. // is called.
  7620. //
  7621. // Creating a request object using this method should be used when you want to inject
  7622. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7623. // access properties on the request object before or after sending the request. If
  7624. // you just want the service response, call the DisableVpcClassicLink method directly
  7625. // instead.
  7626. //
  7627. // Note: You must call the "Send" method on the returned request object in order
  7628. // to execute the request.
  7629. //
  7630. // // Example sending a request using the DisableVpcClassicLinkRequest method.
  7631. // req, resp := client.DisableVpcClassicLinkRequest(params)
  7632. //
  7633. // err := req.Send()
  7634. // if err == nil { // resp is now filled
  7635. // fmt.Println(resp)
  7636. // }
  7637. //
  7638. func (c *EC2) DisableVpcClassicLinkRequest(input *DisableVpcClassicLinkInput) (req *request.Request, output *DisableVpcClassicLinkOutput) {
  7639. op := &request.Operation{
  7640. Name: opDisableVpcClassicLink,
  7641. HTTPMethod: "POST",
  7642. HTTPPath: "/",
  7643. }
  7644. if input == nil {
  7645. input = &DisableVpcClassicLinkInput{}
  7646. }
  7647. req = c.newRequest(op, input, output)
  7648. output = &DisableVpcClassicLinkOutput{}
  7649. req.Data = output
  7650. return
  7651. }
  7652. // Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC
  7653. // that has EC2-Classic instances linked to it.
  7654. func (c *EC2) DisableVpcClassicLink(input *DisableVpcClassicLinkInput) (*DisableVpcClassicLinkOutput, error) {
  7655. req, out := c.DisableVpcClassicLinkRequest(input)
  7656. err := req.Send()
  7657. return out, err
  7658. }
  7659. const opDisableVpcClassicLinkDnsSupport = "DisableVpcClassicLinkDnsSupport"
  7660. // DisableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  7661. // client's request for the DisableVpcClassicLinkDnsSupport operation. The "output" return
  7662. // value can be used to capture response data after the request's "Send" method
  7663. // is called.
  7664. //
  7665. // Creating a request object using this method should be used when you want to inject
  7666. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7667. // access properties on the request object before or after sending the request. If
  7668. // you just want the service response, call the DisableVpcClassicLinkDnsSupport method directly
  7669. // instead.
  7670. //
  7671. // Note: You must call the "Send" method on the returned request object in order
  7672. // to execute the request.
  7673. //
  7674. // // Example sending a request using the DisableVpcClassicLinkDnsSupportRequest method.
  7675. // req, resp := client.DisableVpcClassicLinkDnsSupportRequest(params)
  7676. //
  7677. // err := req.Send()
  7678. // if err == nil { // resp is now filled
  7679. // fmt.Println(resp)
  7680. // }
  7681. //
  7682. func (c *EC2) DisableVpcClassicLinkDnsSupportRequest(input *DisableVpcClassicLinkDnsSupportInput) (req *request.Request, output *DisableVpcClassicLinkDnsSupportOutput) {
  7683. op := &request.Operation{
  7684. Name: opDisableVpcClassicLinkDnsSupport,
  7685. HTTPMethod: "POST",
  7686. HTTPPath: "/",
  7687. }
  7688. if input == nil {
  7689. input = &DisableVpcClassicLinkDnsSupportInput{}
  7690. }
  7691. req = c.newRequest(op, input, output)
  7692. output = &DisableVpcClassicLinkDnsSupportOutput{}
  7693. req.Data = output
  7694. return
  7695. }
  7696. // Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve
  7697. // to public IP addresses when addressed between a linked EC2-Classic instance
  7698. // and instances in the VPC to which it's linked. For more information about
  7699. // ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  7700. // in the Amazon Elastic Compute Cloud User Guide.
  7701. func (c *EC2) DisableVpcClassicLinkDnsSupport(input *DisableVpcClassicLinkDnsSupportInput) (*DisableVpcClassicLinkDnsSupportOutput, error) {
  7702. req, out := c.DisableVpcClassicLinkDnsSupportRequest(input)
  7703. err := req.Send()
  7704. return out, err
  7705. }
  7706. const opDisassociateAddress = "DisassociateAddress"
  7707. // DisassociateAddressRequest generates a "aws/request.Request" representing the
  7708. // client's request for the DisassociateAddress operation. The "output" return
  7709. // value can be used to capture response data after the request's "Send" method
  7710. // is called.
  7711. //
  7712. // Creating a request object using this method should be used when you want to inject
  7713. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7714. // access properties on the request object before or after sending the request. If
  7715. // you just want the service response, call the DisassociateAddress method directly
  7716. // instead.
  7717. //
  7718. // Note: You must call the "Send" method on the returned request object in order
  7719. // to execute the request.
  7720. //
  7721. // // Example sending a request using the DisassociateAddressRequest method.
  7722. // req, resp := client.DisassociateAddressRequest(params)
  7723. //
  7724. // err := req.Send()
  7725. // if err == nil { // resp is now filled
  7726. // fmt.Println(resp)
  7727. // }
  7728. //
  7729. func (c *EC2) DisassociateAddressRequest(input *DisassociateAddressInput) (req *request.Request, output *DisassociateAddressOutput) {
  7730. op := &request.Operation{
  7731. Name: opDisassociateAddress,
  7732. HTTPMethod: "POST",
  7733. HTTPPath: "/",
  7734. }
  7735. if input == nil {
  7736. input = &DisassociateAddressInput{}
  7737. }
  7738. req = c.newRequest(op, input, output)
  7739. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7740. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7741. output = &DisassociateAddressOutput{}
  7742. req.Data = output
  7743. return
  7744. }
  7745. // Disassociates an Elastic IP address from the instance or network interface
  7746. // it's associated with.
  7747. //
  7748. // An Elastic IP address is for use in either the EC2-Classic platform or in
  7749. // a VPC. For more information, see Elastic IP Addresses (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html)
  7750. // in the Amazon Elastic Compute Cloud User Guide.
  7751. //
  7752. // This is an idempotent operation. If you perform the operation more than
  7753. // once, Amazon EC2 doesn't return an error.
  7754. func (c *EC2) DisassociateAddress(input *DisassociateAddressInput) (*DisassociateAddressOutput, error) {
  7755. req, out := c.DisassociateAddressRequest(input)
  7756. err := req.Send()
  7757. return out, err
  7758. }
  7759. const opDisassociateRouteTable = "DisassociateRouteTable"
  7760. // DisassociateRouteTableRequest generates a "aws/request.Request" representing the
  7761. // client's request for the DisassociateRouteTable operation. The "output" return
  7762. // value can be used to capture response data after the request's "Send" method
  7763. // is called.
  7764. //
  7765. // Creating a request object using this method should be used when you want to inject
  7766. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7767. // access properties on the request object before or after sending the request. If
  7768. // you just want the service response, call the DisassociateRouteTable method directly
  7769. // instead.
  7770. //
  7771. // Note: You must call the "Send" method on the returned request object in order
  7772. // to execute the request.
  7773. //
  7774. // // Example sending a request using the DisassociateRouteTableRequest method.
  7775. // req, resp := client.DisassociateRouteTableRequest(params)
  7776. //
  7777. // err := req.Send()
  7778. // if err == nil { // resp is now filled
  7779. // fmt.Println(resp)
  7780. // }
  7781. //
  7782. func (c *EC2) DisassociateRouteTableRequest(input *DisassociateRouteTableInput) (req *request.Request, output *DisassociateRouteTableOutput) {
  7783. op := &request.Operation{
  7784. Name: opDisassociateRouteTable,
  7785. HTTPMethod: "POST",
  7786. HTTPPath: "/",
  7787. }
  7788. if input == nil {
  7789. input = &DisassociateRouteTableInput{}
  7790. }
  7791. req = c.newRequest(op, input, output)
  7792. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7793. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7794. output = &DisassociateRouteTableOutput{}
  7795. req.Data = output
  7796. return
  7797. }
  7798. // Disassociates a subnet from a route table.
  7799. //
  7800. // After you perform this action, the subnet no longer uses the routes in the
  7801. // route table. Instead, it uses the routes in the VPC's main route table. For
  7802. // more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  7803. // in the Amazon Virtual Private Cloud User Guide.
  7804. func (c *EC2) DisassociateRouteTable(input *DisassociateRouteTableInput) (*DisassociateRouteTableOutput, error) {
  7805. req, out := c.DisassociateRouteTableRequest(input)
  7806. err := req.Send()
  7807. return out, err
  7808. }
  7809. const opEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
  7810. // EnableVgwRoutePropagationRequest generates a "aws/request.Request" representing the
  7811. // client's request for the EnableVgwRoutePropagation operation. The "output" return
  7812. // value can be used to capture response data after the request's "Send" method
  7813. // is called.
  7814. //
  7815. // Creating a request object using this method should be used when you want to inject
  7816. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7817. // access properties on the request object before or after sending the request. If
  7818. // you just want the service response, call the EnableVgwRoutePropagation method directly
  7819. // instead.
  7820. //
  7821. // Note: You must call the "Send" method on the returned request object in order
  7822. // to execute the request.
  7823. //
  7824. // // Example sending a request using the EnableVgwRoutePropagationRequest method.
  7825. // req, resp := client.EnableVgwRoutePropagationRequest(params)
  7826. //
  7827. // err := req.Send()
  7828. // if err == nil { // resp is now filled
  7829. // fmt.Println(resp)
  7830. // }
  7831. //
  7832. func (c *EC2) EnableVgwRoutePropagationRequest(input *EnableVgwRoutePropagationInput) (req *request.Request, output *EnableVgwRoutePropagationOutput) {
  7833. op := &request.Operation{
  7834. Name: opEnableVgwRoutePropagation,
  7835. HTTPMethod: "POST",
  7836. HTTPPath: "/",
  7837. }
  7838. if input == nil {
  7839. input = &EnableVgwRoutePropagationInput{}
  7840. }
  7841. req = c.newRequest(op, input, output)
  7842. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7843. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7844. output = &EnableVgwRoutePropagationOutput{}
  7845. req.Data = output
  7846. return
  7847. }
  7848. // Enables a virtual private gateway (VGW) to propagate routes to the specified
  7849. // route table of a VPC.
  7850. func (c *EC2) EnableVgwRoutePropagation(input *EnableVgwRoutePropagationInput) (*EnableVgwRoutePropagationOutput, error) {
  7851. req, out := c.EnableVgwRoutePropagationRequest(input)
  7852. err := req.Send()
  7853. return out, err
  7854. }
  7855. const opEnableVolumeIO = "EnableVolumeIO"
  7856. // EnableVolumeIORequest generates a "aws/request.Request" representing the
  7857. // client's request for the EnableVolumeIO operation. The "output" return
  7858. // value can be used to capture response data after the request's "Send" method
  7859. // is called.
  7860. //
  7861. // Creating a request object using this method should be used when you want to inject
  7862. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7863. // access properties on the request object before or after sending the request. If
  7864. // you just want the service response, call the EnableVolumeIO method directly
  7865. // instead.
  7866. //
  7867. // Note: You must call the "Send" method on the returned request object in order
  7868. // to execute the request.
  7869. //
  7870. // // Example sending a request using the EnableVolumeIORequest method.
  7871. // req, resp := client.EnableVolumeIORequest(params)
  7872. //
  7873. // err := req.Send()
  7874. // if err == nil { // resp is now filled
  7875. // fmt.Println(resp)
  7876. // }
  7877. //
  7878. func (c *EC2) EnableVolumeIORequest(input *EnableVolumeIOInput) (req *request.Request, output *EnableVolumeIOOutput) {
  7879. op := &request.Operation{
  7880. Name: opEnableVolumeIO,
  7881. HTTPMethod: "POST",
  7882. HTTPPath: "/",
  7883. }
  7884. if input == nil {
  7885. input = &EnableVolumeIOInput{}
  7886. }
  7887. req = c.newRequest(op, input, output)
  7888. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  7889. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  7890. output = &EnableVolumeIOOutput{}
  7891. req.Data = output
  7892. return
  7893. }
  7894. // Enables I/O operations for a volume that had I/O operations disabled because
  7895. // the data on the volume was potentially inconsistent.
  7896. func (c *EC2) EnableVolumeIO(input *EnableVolumeIOInput) (*EnableVolumeIOOutput, error) {
  7897. req, out := c.EnableVolumeIORequest(input)
  7898. err := req.Send()
  7899. return out, err
  7900. }
  7901. const opEnableVpcClassicLink = "EnableVpcClassicLink"
  7902. // EnableVpcClassicLinkRequest generates a "aws/request.Request" representing the
  7903. // client's request for the EnableVpcClassicLink operation. The "output" return
  7904. // value can be used to capture response data after the request's "Send" method
  7905. // is called.
  7906. //
  7907. // Creating a request object using this method should be used when you want to inject
  7908. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7909. // access properties on the request object before or after sending the request. If
  7910. // you just want the service response, call the EnableVpcClassicLink method directly
  7911. // instead.
  7912. //
  7913. // Note: You must call the "Send" method on the returned request object in order
  7914. // to execute the request.
  7915. //
  7916. // // Example sending a request using the EnableVpcClassicLinkRequest method.
  7917. // req, resp := client.EnableVpcClassicLinkRequest(params)
  7918. //
  7919. // err := req.Send()
  7920. // if err == nil { // resp is now filled
  7921. // fmt.Println(resp)
  7922. // }
  7923. //
  7924. func (c *EC2) EnableVpcClassicLinkRequest(input *EnableVpcClassicLinkInput) (req *request.Request, output *EnableVpcClassicLinkOutput) {
  7925. op := &request.Operation{
  7926. Name: opEnableVpcClassicLink,
  7927. HTTPMethod: "POST",
  7928. HTTPPath: "/",
  7929. }
  7930. if input == nil {
  7931. input = &EnableVpcClassicLinkInput{}
  7932. }
  7933. req = c.newRequest(op, input, output)
  7934. output = &EnableVpcClassicLinkOutput{}
  7935. req.Data = output
  7936. return
  7937. }
  7938. // Enables a VPC for ClassicLink. You can then link EC2-Classic instances to
  7939. // your ClassicLink-enabled VPC to allow communication over private IP addresses.
  7940. // You cannot enable your VPC for ClassicLink if any of your VPC's route tables
  7941. // have existing routes for address ranges within the 10.0.0.0/8 IP address
  7942. // range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16
  7943. // IP address ranges. For more information, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  7944. // in the Amazon Elastic Compute Cloud User Guide.
  7945. func (c *EC2) EnableVpcClassicLink(input *EnableVpcClassicLinkInput) (*EnableVpcClassicLinkOutput, error) {
  7946. req, out := c.EnableVpcClassicLinkRequest(input)
  7947. err := req.Send()
  7948. return out, err
  7949. }
  7950. const opEnableVpcClassicLinkDnsSupport = "EnableVpcClassicLinkDnsSupport"
  7951. // EnableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the
  7952. // client's request for the EnableVpcClassicLinkDnsSupport operation. The "output" return
  7953. // value can be used to capture response data after the request's "Send" method
  7954. // is called.
  7955. //
  7956. // Creating a request object using this method should be used when you want to inject
  7957. // custom logic into the request's lifecycle using a custom handler, or if you want to
  7958. // access properties on the request object before or after sending the request. If
  7959. // you just want the service response, call the EnableVpcClassicLinkDnsSupport method directly
  7960. // instead.
  7961. //
  7962. // Note: You must call the "Send" method on the returned request object in order
  7963. // to execute the request.
  7964. //
  7965. // // Example sending a request using the EnableVpcClassicLinkDnsSupportRequest method.
  7966. // req, resp := client.EnableVpcClassicLinkDnsSupportRequest(params)
  7967. //
  7968. // err := req.Send()
  7969. // if err == nil { // resp is now filled
  7970. // fmt.Println(resp)
  7971. // }
  7972. //
  7973. func (c *EC2) EnableVpcClassicLinkDnsSupportRequest(input *EnableVpcClassicLinkDnsSupportInput) (req *request.Request, output *EnableVpcClassicLinkDnsSupportOutput) {
  7974. op := &request.Operation{
  7975. Name: opEnableVpcClassicLinkDnsSupport,
  7976. HTTPMethod: "POST",
  7977. HTTPPath: "/",
  7978. }
  7979. if input == nil {
  7980. input = &EnableVpcClassicLinkDnsSupportInput{}
  7981. }
  7982. req = c.newRequest(op, input, output)
  7983. output = &EnableVpcClassicLinkDnsSupportOutput{}
  7984. req.Data = output
  7985. return
  7986. }
  7987. // Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled,
  7988. // the DNS hostname of a linked EC2-Classic instance resolves to its private
  7989. // IP address when addressed from an instance in the VPC to which it's linked.
  7990. // Similarly, the DNS hostname of an instance in a VPC resolves to its private
  7991. // IP address when addressed from a linked EC2-Classic instance. For more information
  7992. // about ClassicLink, see ClassicLink (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
  7993. // in the Amazon Elastic Compute Cloud User Guide.
  7994. func (c *EC2) EnableVpcClassicLinkDnsSupport(input *EnableVpcClassicLinkDnsSupportInput) (*EnableVpcClassicLinkDnsSupportOutput, error) {
  7995. req, out := c.EnableVpcClassicLinkDnsSupportRequest(input)
  7996. err := req.Send()
  7997. return out, err
  7998. }
  7999. const opGetConsoleOutput = "GetConsoleOutput"
  8000. // GetConsoleOutputRequest generates a "aws/request.Request" representing the
  8001. // client's request for the GetConsoleOutput operation. The "output" return
  8002. // value can be used to capture response data after the request's "Send" method
  8003. // is called.
  8004. //
  8005. // Creating a request object using this method should be used when you want to inject
  8006. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8007. // access properties on the request object before or after sending the request. If
  8008. // you just want the service response, call the GetConsoleOutput method directly
  8009. // instead.
  8010. //
  8011. // Note: You must call the "Send" method on the returned request object in order
  8012. // to execute the request.
  8013. //
  8014. // // Example sending a request using the GetConsoleOutputRequest method.
  8015. // req, resp := client.GetConsoleOutputRequest(params)
  8016. //
  8017. // err := req.Send()
  8018. // if err == nil { // resp is now filled
  8019. // fmt.Println(resp)
  8020. // }
  8021. //
  8022. func (c *EC2) GetConsoleOutputRequest(input *GetConsoleOutputInput) (req *request.Request, output *GetConsoleOutputOutput) {
  8023. op := &request.Operation{
  8024. Name: opGetConsoleOutput,
  8025. HTTPMethod: "POST",
  8026. HTTPPath: "/",
  8027. }
  8028. if input == nil {
  8029. input = &GetConsoleOutputInput{}
  8030. }
  8031. req = c.newRequest(op, input, output)
  8032. output = &GetConsoleOutputOutput{}
  8033. req.Data = output
  8034. return
  8035. }
  8036. // Gets the console output for the specified instance.
  8037. //
  8038. // Instances do not have a physical monitor through which you can view their
  8039. // console output. They also lack physical controls that allow you to power
  8040. // up, reboot, or shut them down. To allow these actions, we provide them through
  8041. // the Amazon EC2 API and command line interface.
  8042. //
  8043. // Instance console output is buffered and posted shortly after instance boot,
  8044. // reboot, and termination. Amazon EC2 preserves the most recent 64 KB output
  8045. // which is available for at least one hour after the most recent post.
  8046. //
  8047. // For Linux instances, the instance console output displays the exact console
  8048. // output that would normally be displayed on a physical monitor attached to
  8049. // a computer. This output is buffered because the instance produces it and
  8050. // then posts it to a store where the instance's owner can retrieve it.
  8051. //
  8052. // For Windows instances, the instance console output includes output from
  8053. // the EC2Config service.
  8054. func (c *EC2) GetConsoleOutput(input *GetConsoleOutputInput) (*GetConsoleOutputOutput, error) {
  8055. req, out := c.GetConsoleOutputRequest(input)
  8056. err := req.Send()
  8057. return out, err
  8058. }
  8059. const opGetConsoleScreenshot = "GetConsoleScreenshot"
  8060. // GetConsoleScreenshotRequest generates a "aws/request.Request" representing the
  8061. // client's request for the GetConsoleScreenshot operation. The "output" return
  8062. // value can be used to capture response data after the request's "Send" method
  8063. // is called.
  8064. //
  8065. // Creating a request object using this method should be used when you want to inject
  8066. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8067. // access properties on the request object before or after sending the request. If
  8068. // you just want the service response, call the GetConsoleScreenshot method directly
  8069. // instead.
  8070. //
  8071. // Note: You must call the "Send" method on the returned request object in order
  8072. // to execute the request.
  8073. //
  8074. // // Example sending a request using the GetConsoleScreenshotRequest method.
  8075. // req, resp := client.GetConsoleScreenshotRequest(params)
  8076. //
  8077. // err := req.Send()
  8078. // if err == nil { // resp is now filled
  8079. // fmt.Println(resp)
  8080. // }
  8081. //
  8082. func (c *EC2) GetConsoleScreenshotRequest(input *GetConsoleScreenshotInput) (req *request.Request, output *GetConsoleScreenshotOutput) {
  8083. op := &request.Operation{
  8084. Name: opGetConsoleScreenshot,
  8085. HTTPMethod: "POST",
  8086. HTTPPath: "/",
  8087. }
  8088. if input == nil {
  8089. input = &GetConsoleScreenshotInput{}
  8090. }
  8091. req = c.newRequest(op, input, output)
  8092. output = &GetConsoleScreenshotOutput{}
  8093. req.Data = output
  8094. return
  8095. }
  8096. // Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.
  8097. //
  8098. // The returned content is Base64-encoded.
  8099. func (c *EC2) GetConsoleScreenshot(input *GetConsoleScreenshotInput) (*GetConsoleScreenshotOutput, error) {
  8100. req, out := c.GetConsoleScreenshotRequest(input)
  8101. err := req.Send()
  8102. return out, err
  8103. }
  8104. const opGetPasswordData = "GetPasswordData"
  8105. // GetPasswordDataRequest generates a "aws/request.Request" representing the
  8106. // client's request for the GetPasswordData operation. The "output" return
  8107. // value can be used to capture response data after the request's "Send" method
  8108. // is called.
  8109. //
  8110. // Creating a request object using this method should be used when you want to inject
  8111. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8112. // access properties on the request object before or after sending the request. If
  8113. // you just want the service response, call the GetPasswordData method directly
  8114. // instead.
  8115. //
  8116. // Note: You must call the "Send" method on the returned request object in order
  8117. // to execute the request.
  8118. //
  8119. // // Example sending a request using the GetPasswordDataRequest method.
  8120. // req, resp := client.GetPasswordDataRequest(params)
  8121. //
  8122. // err := req.Send()
  8123. // if err == nil { // resp is now filled
  8124. // fmt.Println(resp)
  8125. // }
  8126. //
  8127. func (c *EC2) GetPasswordDataRequest(input *GetPasswordDataInput) (req *request.Request, output *GetPasswordDataOutput) {
  8128. op := &request.Operation{
  8129. Name: opGetPasswordData,
  8130. HTTPMethod: "POST",
  8131. HTTPPath: "/",
  8132. }
  8133. if input == nil {
  8134. input = &GetPasswordDataInput{}
  8135. }
  8136. req = c.newRequest(op, input, output)
  8137. output = &GetPasswordDataOutput{}
  8138. req.Data = output
  8139. return
  8140. }
  8141. // Retrieves the encrypted administrator password for an instance running Windows.
  8142. //
  8143. // The Windows password is generated at boot if the EC2Config service plugin,
  8144. // Ec2SetPassword, is enabled. This usually only happens the first time an AMI
  8145. // is launched, and then Ec2SetPassword is automatically disabled. The password
  8146. // is not generated for rebundled AMIs unless Ec2SetPassword is enabled before
  8147. // bundling.
  8148. //
  8149. // The password is encrypted using the key pair that you specified when you
  8150. // launched the instance. You must provide the corresponding key pair file.
  8151. //
  8152. // Password generation and encryption takes a few moments. We recommend that
  8153. // you wait up to 15 minutes after launching an instance before trying to retrieve
  8154. // the generated password.
  8155. func (c *EC2) GetPasswordData(input *GetPasswordDataInput) (*GetPasswordDataOutput, error) {
  8156. req, out := c.GetPasswordDataRequest(input)
  8157. err := req.Send()
  8158. return out, err
  8159. }
  8160. const opImportImage = "ImportImage"
  8161. // ImportImageRequest generates a "aws/request.Request" representing the
  8162. // client's request for the ImportImage operation. The "output" return
  8163. // value can be used to capture response data after the request's "Send" method
  8164. // is called.
  8165. //
  8166. // Creating a request object using this method should be used when you want to inject
  8167. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8168. // access properties on the request object before or after sending the request. If
  8169. // you just want the service response, call the ImportImage method directly
  8170. // instead.
  8171. //
  8172. // Note: You must call the "Send" method on the returned request object in order
  8173. // to execute the request.
  8174. //
  8175. // // Example sending a request using the ImportImageRequest method.
  8176. // req, resp := client.ImportImageRequest(params)
  8177. //
  8178. // err := req.Send()
  8179. // if err == nil { // resp is now filled
  8180. // fmt.Println(resp)
  8181. // }
  8182. //
  8183. func (c *EC2) ImportImageRequest(input *ImportImageInput) (req *request.Request, output *ImportImageOutput) {
  8184. op := &request.Operation{
  8185. Name: opImportImage,
  8186. HTTPMethod: "POST",
  8187. HTTPPath: "/",
  8188. }
  8189. if input == nil {
  8190. input = &ImportImageInput{}
  8191. }
  8192. req = c.newRequest(op, input, output)
  8193. output = &ImportImageOutput{}
  8194. req.Data = output
  8195. return
  8196. }
  8197. // Import single or multi-volume disk images or EBS snapshots into an Amazon
  8198. // Machine Image (AMI).
  8199. func (c *EC2) ImportImage(input *ImportImageInput) (*ImportImageOutput, error) {
  8200. req, out := c.ImportImageRequest(input)
  8201. err := req.Send()
  8202. return out, err
  8203. }
  8204. const opImportInstance = "ImportInstance"
  8205. // ImportInstanceRequest generates a "aws/request.Request" representing the
  8206. // client's request for the ImportInstance operation. The "output" return
  8207. // value can be used to capture response data after the request's "Send" method
  8208. // is called.
  8209. //
  8210. // Creating a request object using this method should be used when you want to inject
  8211. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8212. // access properties on the request object before or after sending the request. If
  8213. // you just want the service response, call the ImportInstance method directly
  8214. // instead.
  8215. //
  8216. // Note: You must call the "Send" method on the returned request object in order
  8217. // to execute the request.
  8218. //
  8219. // // Example sending a request using the ImportInstanceRequest method.
  8220. // req, resp := client.ImportInstanceRequest(params)
  8221. //
  8222. // err := req.Send()
  8223. // if err == nil { // resp is now filled
  8224. // fmt.Println(resp)
  8225. // }
  8226. //
  8227. func (c *EC2) ImportInstanceRequest(input *ImportInstanceInput) (req *request.Request, output *ImportInstanceOutput) {
  8228. op := &request.Operation{
  8229. Name: opImportInstance,
  8230. HTTPMethod: "POST",
  8231. HTTPPath: "/",
  8232. }
  8233. if input == nil {
  8234. input = &ImportInstanceInput{}
  8235. }
  8236. req = c.newRequest(op, input, output)
  8237. output = &ImportInstanceOutput{}
  8238. req.Data = output
  8239. return
  8240. }
  8241. // Creates an import instance task using metadata from the specified disk image.
  8242. // ImportInstance only supports single-volume VMs. To import multi-volume VMs,
  8243. // use ImportImage. After importing the image, you then upload it using the
  8244. // ec2-import-volume command in the EC2 command line tools. For more information,
  8245. // see Using the Command Line Tools to Import Your Virtual Machine to Amazon
  8246. // EC2 (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UploadingYourInstancesandVolumes.html)
  8247. // in the Amazon Elastic Compute Cloud User Guide.
  8248. //
  8249. // For information about the import manifest referenced by this API action,
  8250. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  8251. func (c *EC2) ImportInstance(input *ImportInstanceInput) (*ImportInstanceOutput, error) {
  8252. req, out := c.ImportInstanceRequest(input)
  8253. err := req.Send()
  8254. return out, err
  8255. }
  8256. const opImportKeyPair = "ImportKeyPair"
  8257. // ImportKeyPairRequest generates a "aws/request.Request" representing the
  8258. // client's request for the ImportKeyPair operation. The "output" return
  8259. // value can be used to capture response data after the request's "Send" method
  8260. // is called.
  8261. //
  8262. // Creating a request object using this method should be used when you want to inject
  8263. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8264. // access properties on the request object before or after sending the request. If
  8265. // you just want the service response, call the ImportKeyPair method directly
  8266. // instead.
  8267. //
  8268. // Note: You must call the "Send" method on the returned request object in order
  8269. // to execute the request.
  8270. //
  8271. // // Example sending a request using the ImportKeyPairRequest method.
  8272. // req, resp := client.ImportKeyPairRequest(params)
  8273. //
  8274. // err := req.Send()
  8275. // if err == nil { // resp is now filled
  8276. // fmt.Println(resp)
  8277. // }
  8278. //
  8279. func (c *EC2) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Request, output *ImportKeyPairOutput) {
  8280. op := &request.Operation{
  8281. Name: opImportKeyPair,
  8282. HTTPMethod: "POST",
  8283. HTTPPath: "/",
  8284. }
  8285. if input == nil {
  8286. input = &ImportKeyPairInput{}
  8287. }
  8288. req = c.newRequest(op, input, output)
  8289. output = &ImportKeyPairOutput{}
  8290. req.Data = output
  8291. return
  8292. }
  8293. // Imports the public key from an RSA key pair that you created with a third-party
  8294. // tool. Compare this with CreateKeyPair, in which AWS creates the key pair
  8295. // and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair,
  8296. // you create the key pair and give AWS just the public key. The private key
  8297. // is never transferred between you and AWS.
  8298. //
  8299. // For more information about key pairs, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  8300. // in the Amazon Elastic Compute Cloud User Guide.
  8301. func (c *EC2) ImportKeyPair(input *ImportKeyPairInput) (*ImportKeyPairOutput, error) {
  8302. req, out := c.ImportKeyPairRequest(input)
  8303. err := req.Send()
  8304. return out, err
  8305. }
  8306. const opImportSnapshot = "ImportSnapshot"
  8307. // ImportSnapshotRequest generates a "aws/request.Request" representing the
  8308. // client's request for the ImportSnapshot operation. The "output" return
  8309. // value can be used to capture response data after the request's "Send" method
  8310. // is called.
  8311. //
  8312. // Creating a request object using this method should be used when you want to inject
  8313. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8314. // access properties on the request object before or after sending the request. If
  8315. // you just want the service response, call the ImportSnapshot method directly
  8316. // instead.
  8317. //
  8318. // Note: You must call the "Send" method on the returned request object in order
  8319. // to execute the request.
  8320. //
  8321. // // Example sending a request using the ImportSnapshotRequest method.
  8322. // req, resp := client.ImportSnapshotRequest(params)
  8323. //
  8324. // err := req.Send()
  8325. // if err == nil { // resp is now filled
  8326. // fmt.Println(resp)
  8327. // }
  8328. //
  8329. func (c *EC2) ImportSnapshotRequest(input *ImportSnapshotInput) (req *request.Request, output *ImportSnapshotOutput) {
  8330. op := &request.Operation{
  8331. Name: opImportSnapshot,
  8332. HTTPMethod: "POST",
  8333. HTTPPath: "/",
  8334. }
  8335. if input == nil {
  8336. input = &ImportSnapshotInput{}
  8337. }
  8338. req = c.newRequest(op, input, output)
  8339. output = &ImportSnapshotOutput{}
  8340. req.Data = output
  8341. return
  8342. }
  8343. // Imports a disk into an EBS snapshot.
  8344. func (c *EC2) ImportSnapshot(input *ImportSnapshotInput) (*ImportSnapshotOutput, error) {
  8345. req, out := c.ImportSnapshotRequest(input)
  8346. err := req.Send()
  8347. return out, err
  8348. }
  8349. const opImportVolume = "ImportVolume"
  8350. // ImportVolumeRequest generates a "aws/request.Request" representing the
  8351. // client's request for the ImportVolume operation. The "output" return
  8352. // value can be used to capture response data after the request's "Send" method
  8353. // is called.
  8354. //
  8355. // Creating a request object using this method should be used when you want to inject
  8356. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8357. // access properties on the request object before or after sending the request. If
  8358. // you just want the service response, call the ImportVolume method directly
  8359. // instead.
  8360. //
  8361. // Note: You must call the "Send" method on the returned request object in order
  8362. // to execute the request.
  8363. //
  8364. // // Example sending a request using the ImportVolumeRequest method.
  8365. // req, resp := client.ImportVolumeRequest(params)
  8366. //
  8367. // err := req.Send()
  8368. // if err == nil { // resp is now filled
  8369. // fmt.Println(resp)
  8370. // }
  8371. //
  8372. func (c *EC2) ImportVolumeRequest(input *ImportVolumeInput) (req *request.Request, output *ImportVolumeOutput) {
  8373. op := &request.Operation{
  8374. Name: opImportVolume,
  8375. HTTPMethod: "POST",
  8376. HTTPPath: "/",
  8377. }
  8378. if input == nil {
  8379. input = &ImportVolumeInput{}
  8380. }
  8381. req = c.newRequest(op, input, output)
  8382. output = &ImportVolumeOutput{}
  8383. req.Data = output
  8384. return
  8385. }
  8386. // Creates an import volume task using metadata from the specified disk image.
  8387. // After importing the image, you then upload it using the ec2-import-volume
  8388. // command in the Amazon EC2 command-line interface (CLI) tools. For more information,
  8389. // see Using the Command Line Tools to Import Your Virtual Machine to Amazon
  8390. // EC2 (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UploadingYourInstancesandVolumes.html)
  8391. // in the Amazon Elastic Compute Cloud User Guide.
  8392. //
  8393. // For information about the import manifest referenced by this API action,
  8394. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  8395. func (c *EC2) ImportVolume(input *ImportVolumeInput) (*ImportVolumeOutput, error) {
  8396. req, out := c.ImportVolumeRequest(input)
  8397. err := req.Send()
  8398. return out, err
  8399. }
  8400. const opModifyHosts = "ModifyHosts"
  8401. // ModifyHostsRequest generates a "aws/request.Request" representing the
  8402. // client's request for the ModifyHosts operation. The "output" return
  8403. // value can be used to capture response data after the request's "Send" method
  8404. // is called.
  8405. //
  8406. // Creating a request object using this method should be used when you want to inject
  8407. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8408. // access properties on the request object before or after sending the request. If
  8409. // you just want the service response, call the ModifyHosts method directly
  8410. // instead.
  8411. //
  8412. // Note: You must call the "Send" method on the returned request object in order
  8413. // to execute the request.
  8414. //
  8415. // // Example sending a request using the ModifyHostsRequest method.
  8416. // req, resp := client.ModifyHostsRequest(params)
  8417. //
  8418. // err := req.Send()
  8419. // if err == nil { // resp is now filled
  8420. // fmt.Println(resp)
  8421. // }
  8422. //
  8423. func (c *EC2) ModifyHostsRequest(input *ModifyHostsInput) (req *request.Request, output *ModifyHostsOutput) {
  8424. op := &request.Operation{
  8425. Name: opModifyHosts,
  8426. HTTPMethod: "POST",
  8427. HTTPPath: "/",
  8428. }
  8429. if input == nil {
  8430. input = &ModifyHostsInput{}
  8431. }
  8432. req = c.newRequest(op, input, output)
  8433. output = &ModifyHostsOutput{}
  8434. req.Data = output
  8435. return
  8436. }
  8437. // Modify the auto-placement setting of a Dedicated host. When auto-placement
  8438. // is enabled, AWS will place instances that you launch with a tenancy of host,
  8439. // but without targeting a specific host ID, onto any available Dedicated host
  8440. // in your account which has auto-placement enabled. When auto-placement is
  8441. // disabled, you need to provide a host ID if you want the instance to launch
  8442. // onto a specific host. If no host ID is provided, the instance will be launched
  8443. // onto a suitable host which has auto-placement enabled.
  8444. func (c *EC2) ModifyHosts(input *ModifyHostsInput) (*ModifyHostsOutput, error) {
  8445. req, out := c.ModifyHostsRequest(input)
  8446. err := req.Send()
  8447. return out, err
  8448. }
  8449. const opModifyIdFormat = "ModifyIdFormat"
  8450. // ModifyIdFormatRequest generates a "aws/request.Request" representing the
  8451. // client's request for the ModifyIdFormat operation. The "output" return
  8452. // value can be used to capture response data after the request's "Send" method
  8453. // is called.
  8454. //
  8455. // Creating a request object using this method should be used when you want to inject
  8456. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8457. // access properties on the request object before or after sending the request. If
  8458. // you just want the service response, call the ModifyIdFormat method directly
  8459. // instead.
  8460. //
  8461. // Note: You must call the "Send" method on the returned request object in order
  8462. // to execute the request.
  8463. //
  8464. // // Example sending a request using the ModifyIdFormatRequest method.
  8465. // req, resp := client.ModifyIdFormatRequest(params)
  8466. //
  8467. // err := req.Send()
  8468. // if err == nil { // resp is now filled
  8469. // fmt.Println(resp)
  8470. // }
  8471. //
  8472. func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Request, output *ModifyIdFormatOutput) {
  8473. op := &request.Operation{
  8474. Name: opModifyIdFormat,
  8475. HTTPMethod: "POST",
  8476. HTTPPath: "/",
  8477. }
  8478. if input == nil {
  8479. input = &ModifyIdFormatInput{}
  8480. }
  8481. req = c.newRequest(op, input, output)
  8482. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  8483. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  8484. output = &ModifyIdFormatOutput{}
  8485. req.Data = output
  8486. return
  8487. }
  8488. // Modifies the ID format for the specified resource on a per-region basis.
  8489. // You can specify that resources should receive longer IDs (17-character IDs)
  8490. // when they are created. The following resource types support longer IDs: instance
  8491. // | reservation | snapshot | volume.
  8492. //
  8493. // This setting applies to the IAM user who makes the request; it does not
  8494. // apply to the entire AWS account. By default, an IAM user defaults to the
  8495. // same settings as the root user. If you're using this action as the root user,
  8496. // then these settings apply to the entire account, unless an IAM user explicitly
  8497. // overrides these settings for themselves. For more information, see Resource
  8498. // IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  8499. // in the Amazon Elastic Compute Cloud User Guide.
  8500. //
  8501. // Resources created with longer IDs are visible to all IAM roles and users,
  8502. // regardless of these settings and provided that they have permission to use
  8503. // the relevant Describe command for the resource type.
  8504. func (c *EC2) ModifyIdFormat(input *ModifyIdFormatInput) (*ModifyIdFormatOutput, error) {
  8505. req, out := c.ModifyIdFormatRequest(input)
  8506. err := req.Send()
  8507. return out, err
  8508. }
  8509. const opModifyIdentityIdFormat = "ModifyIdentityIdFormat"
  8510. // ModifyIdentityIdFormatRequest generates a "aws/request.Request" representing the
  8511. // client's request for the ModifyIdentityIdFormat operation. The "output" return
  8512. // value can be used to capture response data after the request's "Send" method
  8513. // is called.
  8514. //
  8515. // Creating a request object using this method should be used when you want to inject
  8516. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8517. // access properties on the request object before or after sending the request. If
  8518. // you just want the service response, call the ModifyIdentityIdFormat method directly
  8519. // instead.
  8520. //
  8521. // Note: You must call the "Send" method on the returned request object in order
  8522. // to execute the request.
  8523. //
  8524. // // Example sending a request using the ModifyIdentityIdFormatRequest method.
  8525. // req, resp := client.ModifyIdentityIdFormatRequest(params)
  8526. //
  8527. // err := req.Send()
  8528. // if err == nil { // resp is now filled
  8529. // fmt.Println(resp)
  8530. // }
  8531. //
  8532. func (c *EC2) ModifyIdentityIdFormatRequest(input *ModifyIdentityIdFormatInput) (req *request.Request, output *ModifyIdentityIdFormatOutput) {
  8533. op := &request.Operation{
  8534. Name: opModifyIdentityIdFormat,
  8535. HTTPMethod: "POST",
  8536. HTTPPath: "/",
  8537. }
  8538. if input == nil {
  8539. input = &ModifyIdentityIdFormatInput{}
  8540. }
  8541. req = c.newRequest(op, input, output)
  8542. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  8543. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  8544. output = &ModifyIdentityIdFormatOutput{}
  8545. req.Data = output
  8546. return
  8547. }
  8548. // Modifies the ID format of a resource for the specified IAM user, IAM role,
  8549. // or root user. You can specify that resources should receive longer IDs (17-character
  8550. // IDs) when they are created. The following resource types support longer IDs:
  8551. // instance | reservation | snapshot | volume. For more information, see Resource
  8552. // IDs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/resource-ids.html)
  8553. // in the Amazon Elastic Compute Cloud User Guide.
  8554. //
  8555. // This setting applies to the principal specified in the request; it does
  8556. // not apply to the principal that makes the request.
  8557. //
  8558. // Resources created with longer IDs are visible to all IAM roles and users,
  8559. // regardless of these settings and provided that they have permission to use
  8560. // the relevant Describe command for the resource type.
  8561. func (c *EC2) ModifyIdentityIdFormat(input *ModifyIdentityIdFormatInput) (*ModifyIdentityIdFormatOutput, error) {
  8562. req, out := c.ModifyIdentityIdFormatRequest(input)
  8563. err := req.Send()
  8564. return out, err
  8565. }
  8566. const opModifyImageAttribute = "ModifyImageAttribute"
  8567. // ModifyImageAttributeRequest generates a "aws/request.Request" representing the
  8568. // client's request for the ModifyImageAttribute operation. The "output" return
  8569. // value can be used to capture response data after the request's "Send" method
  8570. // is called.
  8571. //
  8572. // Creating a request object using this method should be used when you want to inject
  8573. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8574. // access properties on the request object before or after sending the request. If
  8575. // you just want the service response, call the ModifyImageAttribute method directly
  8576. // instead.
  8577. //
  8578. // Note: You must call the "Send" method on the returned request object in order
  8579. // to execute the request.
  8580. //
  8581. // // Example sending a request using the ModifyImageAttributeRequest method.
  8582. // req, resp := client.ModifyImageAttributeRequest(params)
  8583. //
  8584. // err := req.Send()
  8585. // if err == nil { // resp is now filled
  8586. // fmt.Println(resp)
  8587. // }
  8588. //
  8589. func (c *EC2) ModifyImageAttributeRequest(input *ModifyImageAttributeInput) (req *request.Request, output *ModifyImageAttributeOutput) {
  8590. op := &request.Operation{
  8591. Name: opModifyImageAttribute,
  8592. HTTPMethod: "POST",
  8593. HTTPPath: "/",
  8594. }
  8595. if input == nil {
  8596. input = &ModifyImageAttributeInput{}
  8597. }
  8598. req = c.newRequest(op, input, output)
  8599. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  8600. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  8601. output = &ModifyImageAttributeOutput{}
  8602. req.Data = output
  8603. return
  8604. }
  8605. // Modifies the specified attribute of the specified AMI. You can specify only
  8606. // one attribute at a time.
  8607. //
  8608. // AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace
  8609. // product code cannot be made public.
  8610. //
  8611. // The SriovNetSupport enhanced networking attribute cannot be changed using
  8612. // this command. Instead, enable SriovNetSupport on an instance and create an
  8613. // AMI from the instance. This will result in an image with SriovNetSupport
  8614. // enabled.
  8615. func (c *EC2) ModifyImageAttribute(input *ModifyImageAttributeInput) (*ModifyImageAttributeOutput, error) {
  8616. req, out := c.ModifyImageAttributeRequest(input)
  8617. err := req.Send()
  8618. return out, err
  8619. }
  8620. const opModifyInstanceAttribute = "ModifyInstanceAttribute"
  8621. // ModifyInstanceAttributeRequest generates a "aws/request.Request" representing the
  8622. // client's request for the ModifyInstanceAttribute operation. The "output" return
  8623. // value can be used to capture response data after the request's "Send" method
  8624. // is called.
  8625. //
  8626. // Creating a request object using this method should be used when you want to inject
  8627. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8628. // access properties on the request object before or after sending the request. If
  8629. // you just want the service response, call the ModifyInstanceAttribute method directly
  8630. // instead.
  8631. //
  8632. // Note: You must call the "Send" method on the returned request object in order
  8633. // to execute the request.
  8634. //
  8635. // // Example sending a request using the ModifyInstanceAttributeRequest method.
  8636. // req, resp := client.ModifyInstanceAttributeRequest(params)
  8637. //
  8638. // err := req.Send()
  8639. // if err == nil { // resp is now filled
  8640. // fmt.Println(resp)
  8641. // }
  8642. //
  8643. func (c *EC2) ModifyInstanceAttributeRequest(input *ModifyInstanceAttributeInput) (req *request.Request, output *ModifyInstanceAttributeOutput) {
  8644. op := &request.Operation{
  8645. Name: opModifyInstanceAttribute,
  8646. HTTPMethod: "POST",
  8647. HTTPPath: "/",
  8648. }
  8649. if input == nil {
  8650. input = &ModifyInstanceAttributeInput{}
  8651. }
  8652. req = c.newRequest(op, input, output)
  8653. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  8654. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  8655. output = &ModifyInstanceAttributeOutput{}
  8656. req.Data = output
  8657. return
  8658. }
  8659. // Modifies the specified attribute of the specified instance. You can specify
  8660. // only one attribute at a time.
  8661. //
  8662. // To modify some attributes, the instance must be stopped. For more information,
  8663. // see Modifying Attributes of a Stopped Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html)
  8664. // in the Amazon Elastic Compute Cloud User Guide.
  8665. func (c *EC2) ModifyInstanceAttribute(input *ModifyInstanceAttributeInput) (*ModifyInstanceAttributeOutput, error) {
  8666. req, out := c.ModifyInstanceAttributeRequest(input)
  8667. err := req.Send()
  8668. return out, err
  8669. }
  8670. const opModifyInstancePlacement = "ModifyInstancePlacement"
  8671. // ModifyInstancePlacementRequest generates a "aws/request.Request" representing the
  8672. // client's request for the ModifyInstancePlacement operation. The "output" return
  8673. // value can be used to capture response data after the request's "Send" method
  8674. // is called.
  8675. //
  8676. // Creating a request object using this method should be used when you want to inject
  8677. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8678. // access properties on the request object before or after sending the request. If
  8679. // you just want the service response, call the ModifyInstancePlacement method directly
  8680. // instead.
  8681. //
  8682. // Note: You must call the "Send" method on the returned request object in order
  8683. // to execute the request.
  8684. //
  8685. // // Example sending a request using the ModifyInstancePlacementRequest method.
  8686. // req, resp := client.ModifyInstancePlacementRequest(params)
  8687. //
  8688. // err := req.Send()
  8689. // if err == nil { // resp is now filled
  8690. // fmt.Println(resp)
  8691. // }
  8692. //
  8693. func (c *EC2) ModifyInstancePlacementRequest(input *ModifyInstancePlacementInput) (req *request.Request, output *ModifyInstancePlacementOutput) {
  8694. op := &request.Operation{
  8695. Name: opModifyInstancePlacement,
  8696. HTTPMethod: "POST",
  8697. HTTPPath: "/",
  8698. }
  8699. if input == nil {
  8700. input = &ModifyInstancePlacementInput{}
  8701. }
  8702. req = c.newRequest(op, input, output)
  8703. output = &ModifyInstancePlacementOutput{}
  8704. req.Data = output
  8705. return
  8706. }
  8707. // Set the instance affinity value for a specific stopped instance and modify
  8708. // the instance tenancy setting.
  8709. //
  8710. // Instance affinity is disabled by default. When instance affinity is host
  8711. // and it is not associated with a specific Dedicated host, the next time it
  8712. // is launched it will automatically be associated with the host it lands on.
  8713. // This relationship will persist if the instance is stopped/started, or rebooted.
  8714. //
  8715. // You can modify the host ID associated with a stopped instance. If a stopped
  8716. // instance has a new host ID association, the instance will target that host
  8717. // when restarted.
  8718. //
  8719. // You can modify the tenancy of a stopped instance with a tenancy of host
  8720. // or dedicated.
  8721. //
  8722. // Affinity, hostID, and tenancy are not required parameters, but at least
  8723. // one of them must be specified in the request. Affinity and tenancy can be
  8724. // modified in the same request, but tenancy can only be modified on instances
  8725. // that are stopped.
  8726. func (c *EC2) ModifyInstancePlacement(input *ModifyInstancePlacementInput) (*ModifyInstancePlacementOutput, error) {
  8727. req, out := c.ModifyInstancePlacementRequest(input)
  8728. err := req.Send()
  8729. return out, err
  8730. }
  8731. const opModifyNetworkInterfaceAttribute = "ModifyNetworkInterfaceAttribute"
  8732. // ModifyNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  8733. // client's request for the ModifyNetworkInterfaceAttribute operation. The "output" return
  8734. // value can be used to capture response data after the request's "Send" method
  8735. // is called.
  8736. //
  8737. // Creating a request object using this method should be used when you want to inject
  8738. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8739. // access properties on the request object before or after sending the request. If
  8740. // you just want the service response, call the ModifyNetworkInterfaceAttribute method directly
  8741. // instead.
  8742. //
  8743. // Note: You must call the "Send" method on the returned request object in order
  8744. // to execute the request.
  8745. //
  8746. // // Example sending a request using the ModifyNetworkInterfaceAttributeRequest method.
  8747. // req, resp := client.ModifyNetworkInterfaceAttributeRequest(params)
  8748. //
  8749. // err := req.Send()
  8750. // if err == nil { // resp is now filled
  8751. // fmt.Println(resp)
  8752. // }
  8753. //
  8754. func (c *EC2) ModifyNetworkInterfaceAttributeRequest(input *ModifyNetworkInterfaceAttributeInput) (req *request.Request, output *ModifyNetworkInterfaceAttributeOutput) {
  8755. op := &request.Operation{
  8756. Name: opModifyNetworkInterfaceAttribute,
  8757. HTTPMethod: "POST",
  8758. HTTPPath: "/",
  8759. }
  8760. if input == nil {
  8761. input = &ModifyNetworkInterfaceAttributeInput{}
  8762. }
  8763. req = c.newRequest(op, input, output)
  8764. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  8765. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  8766. output = &ModifyNetworkInterfaceAttributeOutput{}
  8767. req.Data = output
  8768. return
  8769. }
  8770. // Modifies the specified network interface attribute. You can specify only
  8771. // one attribute at a time.
  8772. func (c *EC2) ModifyNetworkInterfaceAttribute(input *ModifyNetworkInterfaceAttributeInput) (*ModifyNetworkInterfaceAttributeOutput, error) {
  8773. req, out := c.ModifyNetworkInterfaceAttributeRequest(input)
  8774. err := req.Send()
  8775. return out, err
  8776. }
  8777. const opModifyReservedInstances = "ModifyReservedInstances"
  8778. // ModifyReservedInstancesRequest generates a "aws/request.Request" representing the
  8779. // client's request for the ModifyReservedInstances operation. The "output" return
  8780. // value can be used to capture response data after the request's "Send" method
  8781. // is called.
  8782. //
  8783. // Creating a request object using this method should be used when you want to inject
  8784. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8785. // access properties on the request object before or after sending the request. If
  8786. // you just want the service response, call the ModifyReservedInstances method directly
  8787. // instead.
  8788. //
  8789. // Note: You must call the "Send" method on the returned request object in order
  8790. // to execute the request.
  8791. //
  8792. // // Example sending a request using the ModifyReservedInstancesRequest method.
  8793. // req, resp := client.ModifyReservedInstancesRequest(params)
  8794. //
  8795. // err := req.Send()
  8796. // if err == nil { // resp is now filled
  8797. // fmt.Println(resp)
  8798. // }
  8799. //
  8800. func (c *EC2) ModifyReservedInstancesRequest(input *ModifyReservedInstancesInput) (req *request.Request, output *ModifyReservedInstancesOutput) {
  8801. op := &request.Operation{
  8802. Name: opModifyReservedInstances,
  8803. HTTPMethod: "POST",
  8804. HTTPPath: "/",
  8805. }
  8806. if input == nil {
  8807. input = &ModifyReservedInstancesInput{}
  8808. }
  8809. req = c.newRequest(op, input, output)
  8810. output = &ModifyReservedInstancesOutput{}
  8811. req.Data = output
  8812. return
  8813. }
  8814. // Modifies the Availability Zone, instance count, instance type, or network
  8815. // platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved
  8816. // Instances to be modified must be identical, except for Availability Zone,
  8817. // network platform, and instance type.
  8818. //
  8819. // For more information, see Modifying Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html)
  8820. // in the Amazon Elastic Compute Cloud User Guide.
  8821. func (c *EC2) ModifyReservedInstances(input *ModifyReservedInstancesInput) (*ModifyReservedInstancesOutput, error) {
  8822. req, out := c.ModifyReservedInstancesRequest(input)
  8823. err := req.Send()
  8824. return out, err
  8825. }
  8826. const opModifySnapshotAttribute = "ModifySnapshotAttribute"
  8827. // ModifySnapshotAttributeRequest generates a "aws/request.Request" representing the
  8828. // client's request for the ModifySnapshotAttribute operation. The "output" return
  8829. // value can be used to capture response data after the request's "Send" method
  8830. // is called.
  8831. //
  8832. // Creating a request object using this method should be used when you want to inject
  8833. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8834. // access properties on the request object before or after sending the request. If
  8835. // you just want the service response, call the ModifySnapshotAttribute method directly
  8836. // instead.
  8837. //
  8838. // Note: You must call the "Send" method on the returned request object in order
  8839. // to execute the request.
  8840. //
  8841. // // Example sending a request using the ModifySnapshotAttributeRequest method.
  8842. // req, resp := client.ModifySnapshotAttributeRequest(params)
  8843. //
  8844. // err := req.Send()
  8845. // if err == nil { // resp is now filled
  8846. // fmt.Println(resp)
  8847. // }
  8848. //
  8849. func (c *EC2) ModifySnapshotAttributeRequest(input *ModifySnapshotAttributeInput) (req *request.Request, output *ModifySnapshotAttributeOutput) {
  8850. op := &request.Operation{
  8851. Name: opModifySnapshotAttribute,
  8852. HTTPMethod: "POST",
  8853. HTTPPath: "/",
  8854. }
  8855. if input == nil {
  8856. input = &ModifySnapshotAttributeInput{}
  8857. }
  8858. req = c.newRequest(op, input, output)
  8859. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  8860. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  8861. output = &ModifySnapshotAttributeOutput{}
  8862. req.Data = output
  8863. return
  8864. }
  8865. // Adds or removes permission settings for the specified snapshot. You may add
  8866. // or remove specified AWS account IDs from a snapshot's list of create volume
  8867. // permissions, but you cannot do both in a single API call. If you need to
  8868. // both add and remove account IDs for a snapshot, you must use multiple API
  8869. // calls.
  8870. //
  8871. // Encrypted snapshots and snapshots with AWS Marketplace product codes cannot
  8872. // be made public. Snapshots encrypted with your default CMK cannot be shared
  8873. // with other accounts.
  8874. //
  8875. // For more information on modifying snapshot permissions, see Sharing Snapshots
  8876. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html)
  8877. // in the Amazon Elastic Compute Cloud User Guide.
  8878. func (c *EC2) ModifySnapshotAttribute(input *ModifySnapshotAttributeInput) (*ModifySnapshotAttributeOutput, error) {
  8879. req, out := c.ModifySnapshotAttributeRequest(input)
  8880. err := req.Send()
  8881. return out, err
  8882. }
  8883. const opModifySpotFleetRequest = "ModifySpotFleetRequest"
  8884. // ModifySpotFleetRequestRequest generates a "aws/request.Request" representing the
  8885. // client's request for the ModifySpotFleetRequest operation. The "output" return
  8886. // value can be used to capture response data after the request's "Send" method
  8887. // is called.
  8888. //
  8889. // Creating a request object using this method should be used when you want to inject
  8890. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8891. // access properties on the request object before or after sending the request. If
  8892. // you just want the service response, call the ModifySpotFleetRequest method directly
  8893. // instead.
  8894. //
  8895. // Note: You must call the "Send" method on the returned request object in order
  8896. // to execute the request.
  8897. //
  8898. // // Example sending a request using the ModifySpotFleetRequestRequest method.
  8899. // req, resp := client.ModifySpotFleetRequestRequest(params)
  8900. //
  8901. // err := req.Send()
  8902. // if err == nil { // resp is now filled
  8903. // fmt.Println(resp)
  8904. // }
  8905. //
  8906. func (c *EC2) ModifySpotFleetRequestRequest(input *ModifySpotFleetRequestInput) (req *request.Request, output *ModifySpotFleetRequestOutput) {
  8907. op := &request.Operation{
  8908. Name: opModifySpotFleetRequest,
  8909. HTTPMethod: "POST",
  8910. HTTPPath: "/",
  8911. }
  8912. if input == nil {
  8913. input = &ModifySpotFleetRequestInput{}
  8914. }
  8915. req = c.newRequest(op, input, output)
  8916. output = &ModifySpotFleetRequestOutput{}
  8917. req.Data = output
  8918. return
  8919. }
  8920. // Modifies the specified Spot fleet request.
  8921. //
  8922. // While the Spot fleet request is being modified, it is in the modifying state.
  8923. //
  8924. // To scale up your Spot fleet, increase its target capacity. The Spot fleet
  8925. // launches the additional Spot instances according to the allocation strategy
  8926. // for the Spot fleet request. If the allocation strategy is lowestPrice, the
  8927. // Spot fleet launches instances using the Spot pool with the lowest price.
  8928. // If the allocation strategy is diversified, the Spot fleet distributes the
  8929. // instances across the Spot pools.
  8930. //
  8931. // To scale down your Spot fleet, decrease its target capacity. First, the
  8932. // Spot fleet cancels any open bids that exceed the new target capacity. You
  8933. // can request that the Spot fleet terminate Spot instances until the size of
  8934. // the fleet no longer exceeds the new target capacity. If the allocation strategy
  8935. // is lowestPrice, the Spot fleet terminates the instances with the highest
  8936. // price per unit. If the allocation strategy is diversified, the Spot fleet
  8937. // terminates instances across the Spot pools. Alternatively, you can request
  8938. // that the Spot fleet keep the fleet at its current size, but not replace any
  8939. // Spot instances that are interrupted or that you terminate manually.
  8940. func (c *EC2) ModifySpotFleetRequest(input *ModifySpotFleetRequestInput) (*ModifySpotFleetRequestOutput, error) {
  8941. req, out := c.ModifySpotFleetRequestRequest(input)
  8942. err := req.Send()
  8943. return out, err
  8944. }
  8945. const opModifySubnetAttribute = "ModifySubnetAttribute"
  8946. // ModifySubnetAttributeRequest generates a "aws/request.Request" representing the
  8947. // client's request for the ModifySubnetAttribute operation. The "output" return
  8948. // value can be used to capture response data after the request's "Send" method
  8949. // is called.
  8950. //
  8951. // Creating a request object using this method should be used when you want to inject
  8952. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8953. // access properties on the request object before or after sending the request. If
  8954. // you just want the service response, call the ModifySubnetAttribute method directly
  8955. // instead.
  8956. //
  8957. // Note: You must call the "Send" method on the returned request object in order
  8958. // to execute the request.
  8959. //
  8960. // // Example sending a request using the ModifySubnetAttributeRequest method.
  8961. // req, resp := client.ModifySubnetAttributeRequest(params)
  8962. //
  8963. // err := req.Send()
  8964. // if err == nil { // resp is now filled
  8965. // fmt.Println(resp)
  8966. // }
  8967. //
  8968. func (c *EC2) ModifySubnetAttributeRequest(input *ModifySubnetAttributeInput) (req *request.Request, output *ModifySubnetAttributeOutput) {
  8969. op := &request.Operation{
  8970. Name: opModifySubnetAttribute,
  8971. HTTPMethod: "POST",
  8972. HTTPPath: "/",
  8973. }
  8974. if input == nil {
  8975. input = &ModifySubnetAttributeInput{}
  8976. }
  8977. req = c.newRequest(op, input, output)
  8978. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  8979. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  8980. output = &ModifySubnetAttributeOutput{}
  8981. req.Data = output
  8982. return
  8983. }
  8984. // Modifies a subnet attribute.
  8985. func (c *EC2) ModifySubnetAttribute(input *ModifySubnetAttributeInput) (*ModifySubnetAttributeOutput, error) {
  8986. req, out := c.ModifySubnetAttributeRequest(input)
  8987. err := req.Send()
  8988. return out, err
  8989. }
  8990. const opModifyVolumeAttribute = "ModifyVolumeAttribute"
  8991. // ModifyVolumeAttributeRequest generates a "aws/request.Request" representing the
  8992. // client's request for the ModifyVolumeAttribute operation. The "output" return
  8993. // value can be used to capture response data after the request's "Send" method
  8994. // is called.
  8995. //
  8996. // Creating a request object using this method should be used when you want to inject
  8997. // custom logic into the request's lifecycle using a custom handler, or if you want to
  8998. // access properties on the request object before or after sending the request. If
  8999. // you just want the service response, call the ModifyVolumeAttribute method directly
  9000. // instead.
  9001. //
  9002. // Note: You must call the "Send" method on the returned request object in order
  9003. // to execute the request.
  9004. //
  9005. // // Example sending a request using the ModifyVolumeAttributeRequest method.
  9006. // req, resp := client.ModifyVolumeAttributeRequest(params)
  9007. //
  9008. // err := req.Send()
  9009. // if err == nil { // resp is now filled
  9010. // fmt.Println(resp)
  9011. // }
  9012. //
  9013. func (c *EC2) ModifyVolumeAttributeRequest(input *ModifyVolumeAttributeInput) (req *request.Request, output *ModifyVolumeAttributeOutput) {
  9014. op := &request.Operation{
  9015. Name: opModifyVolumeAttribute,
  9016. HTTPMethod: "POST",
  9017. HTTPPath: "/",
  9018. }
  9019. if input == nil {
  9020. input = &ModifyVolumeAttributeInput{}
  9021. }
  9022. req = c.newRequest(op, input, output)
  9023. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  9024. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  9025. output = &ModifyVolumeAttributeOutput{}
  9026. req.Data = output
  9027. return
  9028. }
  9029. // Modifies a volume attribute.
  9030. //
  9031. // By default, all I/O operations for the volume are suspended when the data
  9032. // on the volume is determined to be potentially inconsistent, to prevent undetectable,
  9033. // latent data corruption. The I/O access to the volume can be resumed by first
  9034. // enabling I/O access and then checking the data consistency on your volume.
  9035. //
  9036. // You can change the default behavior to resume I/O operations. We recommend
  9037. // that you change this only for boot volumes or for volumes that are stateless
  9038. // or disposable.
  9039. func (c *EC2) ModifyVolumeAttribute(input *ModifyVolumeAttributeInput) (*ModifyVolumeAttributeOutput, error) {
  9040. req, out := c.ModifyVolumeAttributeRequest(input)
  9041. err := req.Send()
  9042. return out, err
  9043. }
  9044. const opModifyVpcAttribute = "ModifyVpcAttribute"
  9045. // ModifyVpcAttributeRequest generates a "aws/request.Request" representing the
  9046. // client's request for the ModifyVpcAttribute operation. The "output" return
  9047. // value can be used to capture response data after the request's "Send" method
  9048. // is called.
  9049. //
  9050. // Creating a request object using this method should be used when you want to inject
  9051. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9052. // access properties on the request object before or after sending the request. If
  9053. // you just want the service response, call the ModifyVpcAttribute method directly
  9054. // instead.
  9055. //
  9056. // Note: You must call the "Send" method on the returned request object in order
  9057. // to execute the request.
  9058. //
  9059. // // Example sending a request using the ModifyVpcAttributeRequest method.
  9060. // req, resp := client.ModifyVpcAttributeRequest(params)
  9061. //
  9062. // err := req.Send()
  9063. // if err == nil { // resp is now filled
  9064. // fmt.Println(resp)
  9065. // }
  9066. //
  9067. func (c *EC2) ModifyVpcAttributeRequest(input *ModifyVpcAttributeInput) (req *request.Request, output *ModifyVpcAttributeOutput) {
  9068. op := &request.Operation{
  9069. Name: opModifyVpcAttribute,
  9070. HTTPMethod: "POST",
  9071. HTTPPath: "/",
  9072. }
  9073. if input == nil {
  9074. input = &ModifyVpcAttributeInput{}
  9075. }
  9076. req = c.newRequest(op, input, output)
  9077. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  9078. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  9079. output = &ModifyVpcAttributeOutput{}
  9080. req.Data = output
  9081. return
  9082. }
  9083. // Modifies the specified attribute of the specified VPC.
  9084. func (c *EC2) ModifyVpcAttribute(input *ModifyVpcAttributeInput) (*ModifyVpcAttributeOutput, error) {
  9085. req, out := c.ModifyVpcAttributeRequest(input)
  9086. err := req.Send()
  9087. return out, err
  9088. }
  9089. const opModifyVpcEndpoint = "ModifyVpcEndpoint"
  9090. // ModifyVpcEndpointRequest generates a "aws/request.Request" representing the
  9091. // client's request for the ModifyVpcEndpoint operation. The "output" return
  9092. // value can be used to capture response data after the request's "Send" method
  9093. // is called.
  9094. //
  9095. // Creating a request object using this method should be used when you want to inject
  9096. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9097. // access properties on the request object before or after sending the request. If
  9098. // you just want the service response, call the ModifyVpcEndpoint method directly
  9099. // instead.
  9100. //
  9101. // Note: You must call the "Send" method on the returned request object in order
  9102. // to execute the request.
  9103. //
  9104. // // Example sending a request using the ModifyVpcEndpointRequest method.
  9105. // req, resp := client.ModifyVpcEndpointRequest(params)
  9106. //
  9107. // err := req.Send()
  9108. // if err == nil { // resp is now filled
  9109. // fmt.Println(resp)
  9110. // }
  9111. //
  9112. func (c *EC2) ModifyVpcEndpointRequest(input *ModifyVpcEndpointInput) (req *request.Request, output *ModifyVpcEndpointOutput) {
  9113. op := &request.Operation{
  9114. Name: opModifyVpcEndpoint,
  9115. HTTPMethod: "POST",
  9116. HTTPPath: "/",
  9117. }
  9118. if input == nil {
  9119. input = &ModifyVpcEndpointInput{}
  9120. }
  9121. req = c.newRequest(op, input, output)
  9122. output = &ModifyVpcEndpointOutput{}
  9123. req.Data = output
  9124. return
  9125. }
  9126. // Modifies attributes of a specified VPC endpoint. You can modify the policy
  9127. // associated with the endpoint, and you can add and remove route tables associated
  9128. // with the endpoint.
  9129. func (c *EC2) ModifyVpcEndpoint(input *ModifyVpcEndpointInput) (*ModifyVpcEndpointOutput, error) {
  9130. req, out := c.ModifyVpcEndpointRequest(input)
  9131. err := req.Send()
  9132. return out, err
  9133. }
  9134. const opModifyVpcPeeringConnectionOptions = "ModifyVpcPeeringConnectionOptions"
  9135. // ModifyVpcPeeringConnectionOptionsRequest generates a "aws/request.Request" representing the
  9136. // client's request for the ModifyVpcPeeringConnectionOptions operation. The "output" return
  9137. // value can be used to capture response data after the request's "Send" method
  9138. // is called.
  9139. //
  9140. // Creating a request object using this method should be used when you want to inject
  9141. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9142. // access properties on the request object before or after sending the request. If
  9143. // you just want the service response, call the ModifyVpcPeeringConnectionOptions method directly
  9144. // instead.
  9145. //
  9146. // Note: You must call the "Send" method on the returned request object in order
  9147. // to execute the request.
  9148. //
  9149. // // Example sending a request using the ModifyVpcPeeringConnectionOptionsRequest method.
  9150. // req, resp := client.ModifyVpcPeeringConnectionOptionsRequest(params)
  9151. //
  9152. // err := req.Send()
  9153. // if err == nil { // resp is now filled
  9154. // fmt.Println(resp)
  9155. // }
  9156. //
  9157. func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringConnectionOptionsInput) (req *request.Request, output *ModifyVpcPeeringConnectionOptionsOutput) {
  9158. op := &request.Operation{
  9159. Name: opModifyVpcPeeringConnectionOptions,
  9160. HTTPMethod: "POST",
  9161. HTTPPath: "/",
  9162. }
  9163. if input == nil {
  9164. input = &ModifyVpcPeeringConnectionOptionsInput{}
  9165. }
  9166. req = c.newRequest(op, input, output)
  9167. output = &ModifyVpcPeeringConnectionOptionsOutput{}
  9168. req.Data = output
  9169. return
  9170. }
  9171. // Modifies the VPC peering connection options on one side of a VPC peering
  9172. // connection. You can do the following:
  9173. //
  9174. // Enable/disable communication over the peering connection between an EC2-Classic
  9175. // instance that's linked to your VPC (using ClassicLink) and instances in the
  9176. // peer VPC.
  9177. //
  9178. // Enable/disable communication over the peering connection between instances
  9179. // in your VPC and an EC2-Classic instance that's linked to the peer VPC.
  9180. //
  9181. // Enable/disable a local VPC to resolve public DNS hostnames to private
  9182. // IP addresses when queried from instances in the peer VPC.
  9183. //
  9184. // If the peered VPCs are in different accounts, each owner must initiate
  9185. // a separate request to modify the peering connection options, depending on
  9186. // whether their VPC was the requester or accepter for the VPC peering connection.
  9187. // If the peered VPCs are in the same account, you can modify the requester
  9188. // and accepter options in the same request. To confirm which VPC is the accepter
  9189. // and requester for a VPC peering connection, use the DescribeVpcPeeringConnections
  9190. // command.
  9191. func (c *EC2) ModifyVpcPeeringConnectionOptions(input *ModifyVpcPeeringConnectionOptionsInput) (*ModifyVpcPeeringConnectionOptionsOutput, error) {
  9192. req, out := c.ModifyVpcPeeringConnectionOptionsRequest(input)
  9193. err := req.Send()
  9194. return out, err
  9195. }
  9196. const opMonitorInstances = "MonitorInstances"
  9197. // MonitorInstancesRequest generates a "aws/request.Request" representing the
  9198. // client's request for the MonitorInstances operation. The "output" return
  9199. // value can be used to capture response data after the request's "Send" method
  9200. // is called.
  9201. //
  9202. // Creating a request object using this method should be used when you want to inject
  9203. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9204. // access properties on the request object before or after sending the request. If
  9205. // you just want the service response, call the MonitorInstances method directly
  9206. // instead.
  9207. //
  9208. // Note: You must call the "Send" method on the returned request object in order
  9209. // to execute the request.
  9210. //
  9211. // // Example sending a request using the MonitorInstancesRequest method.
  9212. // req, resp := client.MonitorInstancesRequest(params)
  9213. //
  9214. // err := req.Send()
  9215. // if err == nil { // resp is now filled
  9216. // fmt.Println(resp)
  9217. // }
  9218. //
  9219. func (c *EC2) MonitorInstancesRequest(input *MonitorInstancesInput) (req *request.Request, output *MonitorInstancesOutput) {
  9220. op := &request.Operation{
  9221. Name: opMonitorInstances,
  9222. HTTPMethod: "POST",
  9223. HTTPPath: "/",
  9224. }
  9225. if input == nil {
  9226. input = &MonitorInstancesInput{}
  9227. }
  9228. req = c.newRequest(op, input, output)
  9229. output = &MonitorInstancesOutput{}
  9230. req.Data = output
  9231. return
  9232. }
  9233. // Enables monitoring for a running instance. For more information about monitoring
  9234. // instances, see Monitoring Your Instances and Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html)
  9235. // in the Amazon Elastic Compute Cloud User Guide.
  9236. func (c *EC2) MonitorInstances(input *MonitorInstancesInput) (*MonitorInstancesOutput, error) {
  9237. req, out := c.MonitorInstancesRequest(input)
  9238. err := req.Send()
  9239. return out, err
  9240. }
  9241. const opMoveAddressToVpc = "MoveAddressToVpc"
  9242. // MoveAddressToVpcRequest generates a "aws/request.Request" representing the
  9243. // client's request for the MoveAddressToVpc operation. The "output" return
  9244. // value can be used to capture response data after the request's "Send" method
  9245. // is called.
  9246. //
  9247. // Creating a request object using this method should be used when you want to inject
  9248. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9249. // access properties on the request object before or after sending the request. If
  9250. // you just want the service response, call the MoveAddressToVpc method directly
  9251. // instead.
  9252. //
  9253. // Note: You must call the "Send" method on the returned request object in order
  9254. // to execute the request.
  9255. //
  9256. // // Example sending a request using the MoveAddressToVpcRequest method.
  9257. // req, resp := client.MoveAddressToVpcRequest(params)
  9258. //
  9259. // err := req.Send()
  9260. // if err == nil { // resp is now filled
  9261. // fmt.Println(resp)
  9262. // }
  9263. //
  9264. func (c *EC2) MoveAddressToVpcRequest(input *MoveAddressToVpcInput) (req *request.Request, output *MoveAddressToVpcOutput) {
  9265. op := &request.Operation{
  9266. Name: opMoveAddressToVpc,
  9267. HTTPMethod: "POST",
  9268. HTTPPath: "/",
  9269. }
  9270. if input == nil {
  9271. input = &MoveAddressToVpcInput{}
  9272. }
  9273. req = c.newRequest(op, input, output)
  9274. output = &MoveAddressToVpcOutput{}
  9275. req.Data = output
  9276. return
  9277. }
  9278. // Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC
  9279. // platform. The Elastic IP address must be allocated to your account for more
  9280. // than 24 hours, and it must not be associated with an instance. After the
  9281. // Elastic IP address is moved, it is no longer available for use in the EC2-Classic
  9282. // platform, unless you move it back using the RestoreAddressToClassic request.
  9283. // You cannot move an Elastic IP address that was originally allocated for use
  9284. // in the EC2-VPC platform to the EC2-Classic platform.
  9285. func (c *EC2) MoveAddressToVpc(input *MoveAddressToVpcInput) (*MoveAddressToVpcOutput, error) {
  9286. req, out := c.MoveAddressToVpcRequest(input)
  9287. err := req.Send()
  9288. return out, err
  9289. }
  9290. const opPurchaseReservedInstancesOffering = "PurchaseReservedInstancesOffering"
  9291. // PurchaseReservedInstancesOfferingRequest generates a "aws/request.Request" representing the
  9292. // client's request for the PurchaseReservedInstancesOffering operation. The "output" return
  9293. // value can be used to capture response data after the request's "Send" method
  9294. // is called.
  9295. //
  9296. // Creating a request object using this method should be used when you want to inject
  9297. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9298. // access properties on the request object before or after sending the request. If
  9299. // you just want the service response, call the PurchaseReservedInstancesOffering method directly
  9300. // instead.
  9301. //
  9302. // Note: You must call the "Send" method on the returned request object in order
  9303. // to execute the request.
  9304. //
  9305. // // Example sending a request using the PurchaseReservedInstancesOfferingRequest method.
  9306. // req, resp := client.PurchaseReservedInstancesOfferingRequest(params)
  9307. //
  9308. // err := req.Send()
  9309. // if err == nil { // resp is now filled
  9310. // fmt.Println(resp)
  9311. // }
  9312. //
  9313. func (c *EC2) PurchaseReservedInstancesOfferingRequest(input *PurchaseReservedInstancesOfferingInput) (req *request.Request, output *PurchaseReservedInstancesOfferingOutput) {
  9314. op := &request.Operation{
  9315. Name: opPurchaseReservedInstancesOffering,
  9316. HTTPMethod: "POST",
  9317. HTTPPath: "/",
  9318. }
  9319. if input == nil {
  9320. input = &PurchaseReservedInstancesOfferingInput{}
  9321. }
  9322. req = c.newRequest(op, input, output)
  9323. output = &PurchaseReservedInstancesOfferingOutput{}
  9324. req.Data = output
  9325. return
  9326. }
  9327. // Purchases a Reserved Instance for use with your account. With Reserved Instances,
  9328. // you obtain a capacity reservation for a certain instance configuration over
  9329. // a specified period of time and pay a lower hourly rate compared to On-Demand
  9330. // instance pricing.
  9331. //
  9332. // Use DescribeReservedInstancesOfferings to get a list of Reserved Instance
  9333. // offerings that match your specifications. After you've purchased a Reserved
  9334. // Instance, you can check for your new Reserved Instance with DescribeReservedInstances.
  9335. //
  9336. // For more information, see Reserved Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html)
  9337. // and Reserved Instance Marketplace (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html)
  9338. // in the Amazon Elastic Compute Cloud User Guide.
  9339. func (c *EC2) PurchaseReservedInstancesOffering(input *PurchaseReservedInstancesOfferingInput) (*PurchaseReservedInstancesOfferingOutput, error) {
  9340. req, out := c.PurchaseReservedInstancesOfferingRequest(input)
  9341. err := req.Send()
  9342. return out, err
  9343. }
  9344. const opPurchaseScheduledInstances = "PurchaseScheduledInstances"
  9345. // PurchaseScheduledInstancesRequest generates a "aws/request.Request" representing the
  9346. // client's request for the PurchaseScheduledInstances operation. The "output" return
  9347. // value can be used to capture response data after the request's "Send" method
  9348. // is called.
  9349. //
  9350. // Creating a request object using this method should be used when you want to inject
  9351. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9352. // access properties on the request object before or after sending the request. If
  9353. // you just want the service response, call the PurchaseScheduledInstances method directly
  9354. // instead.
  9355. //
  9356. // Note: You must call the "Send" method on the returned request object in order
  9357. // to execute the request.
  9358. //
  9359. // // Example sending a request using the PurchaseScheduledInstancesRequest method.
  9360. // req, resp := client.PurchaseScheduledInstancesRequest(params)
  9361. //
  9362. // err := req.Send()
  9363. // if err == nil { // resp is now filled
  9364. // fmt.Println(resp)
  9365. // }
  9366. //
  9367. func (c *EC2) PurchaseScheduledInstancesRequest(input *PurchaseScheduledInstancesInput) (req *request.Request, output *PurchaseScheduledInstancesOutput) {
  9368. op := &request.Operation{
  9369. Name: opPurchaseScheduledInstances,
  9370. HTTPMethod: "POST",
  9371. HTTPPath: "/",
  9372. }
  9373. if input == nil {
  9374. input = &PurchaseScheduledInstancesInput{}
  9375. }
  9376. req = c.newRequest(op, input, output)
  9377. output = &PurchaseScheduledInstancesOutput{}
  9378. req.Data = output
  9379. return
  9380. }
  9381. // Purchases one or more Scheduled Instances with the specified schedule.
  9382. //
  9383. // Scheduled Instances enable you to purchase Amazon EC2 compute capacity by
  9384. // the hour for a one-year term. Before you can purchase a Scheduled Instance,
  9385. // you must call DescribeScheduledInstanceAvailability to check for available
  9386. // schedules and obtain a purchase token. After you purchase a Scheduled Instance,
  9387. // you must call RunScheduledInstances during each scheduled time period.
  9388. //
  9389. // After you purchase a Scheduled Instance, you can't cancel, modify, or resell
  9390. // your purchase.
  9391. func (c *EC2) PurchaseScheduledInstances(input *PurchaseScheduledInstancesInput) (*PurchaseScheduledInstancesOutput, error) {
  9392. req, out := c.PurchaseScheduledInstancesRequest(input)
  9393. err := req.Send()
  9394. return out, err
  9395. }
  9396. const opRebootInstances = "RebootInstances"
  9397. // RebootInstancesRequest generates a "aws/request.Request" representing the
  9398. // client's request for the RebootInstances operation. The "output" return
  9399. // value can be used to capture response data after the request's "Send" method
  9400. // is called.
  9401. //
  9402. // Creating a request object using this method should be used when you want to inject
  9403. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9404. // access properties on the request object before or after sending the request. If
  9405. // you just want the service response, call the RebootInstances method directly
  9406. // instead.
  9407. //
  9408. // Note: You must call the "Send" method on the returned request object in order
  9409. // to execute the request.
  9410. //
  9411. // // Example sending a request using the RebootInstancesRequest method.
  9412. // req, resp := client.RebootInstancesRequest(params)
  9413. //
  9414. // err := req.Send()
  9415. // if err == nil { // resp is now filled
  9416. // fmt.Println(resp)
  9417. // }
  9418. //
  9419. func (c *EC2) RebootInstancesRequest(input *RebootInstancesInput) (req *request.Request, output *RebootInstancesOutput) {
  9420. op := &request.Operation{
  9421. Name: opRebootInstances,
  9422. HTTPMethod: "POST",
  9423. HTTPPath: "/",
  9424. }
  9425. if input == nil {
  9426. input = &RebootInstancesInput{}
  9427. }
  9428. req = c.newRequest(op, input, output)
  9429. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  9430. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  9431. output = &RebootInstancesOutput{}
  9432. req.Data = output
  9433. return
  9434. }
  9435. // Requests a reboot of one or more instances. This operation is asynchronous;
  9436. // it only queues a request to reboot the specified instances. The operation
  9437. // succeeds if the instances are valid and belong to you. Requests to reboot
  9438. // terminated instances are ignored.
  9439. //
  9440. // If an instance does not cleanly shut down within four minutes, Amazon EC2
  9441. // performs a hard reboot.
  9442. //
  9443. // For more information about troubleshooting, see Getting Console Output and
  9444. // Rebooting Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html)
  9445. // in the Amazon Elastic Compute Cloud User Guide.
  9446. func (c *EC2) RebootInstances(input *RebootInstancesInput) (*RebootInstancesOutput, error) {
  9447. req, out := c.RebootInstancesRequest(input)
  9448. err := req.Send()
  9449. return out, err
  9450. }
  9451. const opRegisterImage = "RegisterImage"
  9452. // RegisterImageRequest generates a "aws/request.Request" representing the
  9453. // client's request for the RegisterImage operation. The "output" return
  9454. // value can be used to capture response data after the request's "Send" method
  9455. // is called.
  9456. //
  9457. // Creating a request object using this method should be used when you want to inject
  9458. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9459. // access properties on the request object before or after sending the request. If
  9460. // you just want the service response, call the RegisterImage method directly
  9461. // instead.
  9462. //
  9463. // Note: You must call the "Send" method on the returned request object in order
  9464. // to execute the request.
  9465. //
  9466. // // Example sending a request using the RegisterImageRequest method.
  9467. // req, resp := client.RegisterImageRequest(params)
  9468. //
  9469. // err := req.Send()
  9470. // if err == nil { // resp is now filled
  9471. // fmt.Println(resp)
  9472. // }
  9473. //
  9474. func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Request, output *RegisterImageOutput) {
  9475. op := &request.Operation{
  9476. Name: opRegisterImage,
  9477. HTTPMethod: "POST",
  9478. HTTPPath: "/",
  9479. }
  9480. if input == nil {
  9481. input = &RegisterImageInput{}
  9482. }
  9483. req = c.newRequest(op, input, output)
  9484. output = &RegisterImageOutput{}
  9485. req.Data = output
  9486. return
  9487. }
  9488. // Registers an AMI. When you're creating an AMI, this is the final step you
  9489. // must complete before you can launch an instance from the AMI. For more information
  9490. // about creating AMIs, see Creating Your Own AMIs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html)
  9491. // in the Amazon Elastic Compute Cloud User Guide.
  9492. //
  9493. // For Amazon EBS-backed instances, CreateImage creates and registers the
  9494. // AMI in a single request, so you don't have to register the AMI yourself.
  9495. //
  9496. // You can also use RegisterImage to create an Amazon EBS-backed Linux AMI
  9497. // from a snapshot of a root device volume. For more information, see Launching
  9498. // an Instance from a Snapshot (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_LaunchingInstanceFromSnapshot.html)
  9499. // in the Amazon Elastic Compute Cloud User Guide.
  9500. //
  9501. // Some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE
  9502. // Linux Enterprise Server (SLES), use the EC2 billingProduct code associated
  9503. // with an AMI to verify subscription status for package updates. Creating an
  9504. // AMI from an EBS snapshot does not maintain this billing code, and subsequent
  9505. // instances launched from such an AMI will not be able to connect to package
  9506. // update infrastructure.
  9507. //
  9508. // Similarly, although you can create a Windows AMI from a snapshot, you can't
  9509. // successfully launch an instance from the AMI.
  9510. //
  9511. // To create Windows AMIs or to create AMIs for Linux operating systems that
  9512. // must retain AMI billing codes to work properly, see CreateImage.
  9513. //
  9514. // If needed, you can deregister an AMI at any time. Any modifications you
  9515. // make to an AMI backed by an instance store volume invalidates its registration.
  9516. // If you make changes to an image, deregister the previous image and register
  9517. // the new image.
  9518. //
  9519. // You can't register an image where a secondary (non-root) snapshot has AWS
  9520. // Marketplace product codes.
  9521. func (c *EC2) RegisterImage(input *RegisterImageInput) (*RegisterImageOutput, error) {
  9522. req, out := c.RegisterImageRequest(input)
  9523. err := req.Send()
  9524. return out, err
  9525. }
  9526. const opRejectVpcPeeringConnection = "RejectVpcPeeringConnection"
  9527. // RejectVpcPeeringConnectionRequest generates a "aws/request.Request" representing the
  9528. // client's request for the RejectVpcPeeringConnection operation. The "output" return
  9529. // value can be used to capture response data after the request's "Send" method
  9530. // is called.
  9531. //
  9532. // Creating a request object using this method should be used when you want to inject
  9533. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9534. // access properties on the request object before or after sending the request. If
  9535. // you just want the service response, call the RejectVpcPeeringConnection method directly
  9536. // instead.
  9537. //
  9538. // Note: You must call the "Send" method on the returned request object in order
  9539. // to execute the request.
  9540. //
  9541. // // Example sending a request using the RejectVpcPeeringConnectionRequest method.
  9542. // req, resp := client.RejectVpcPeeringConnectionRequest(params)
  9543. //
  9544. // err := req.Send()
  9545. // if err == nil { // resp is now filled
  9546. // fmt.Println(resp)
  9547. // }
  9548. //
  9549. func (c *EC2) RejectVpcPeeringConnectionRequest(input *RejectVpcPeeringConnectionInput) (req *request.Request, output *RejectVpcPeeringConnectionOutput) {
  9550. op := &request.Operation{
  9551. Name: opRejectVpcPeeringConnection,
  9552. HTTPMethod: "POST",
  9553. HTTPPath: "/",
  9554. }
  9555. if input == nil {
  9556. input = &RejectVpcPeeringConnectionInput{}
  9557. }
  9558. req = c.newRequest(op, input, output)
  9559. output = &RejectVpcPeeringConnectionOutput{}
  9560. req.Data = output
  9561. return
  9562. }
  9563. // Rejects a VPC peering connection request. The VPC peering connection must
  9564. // be in the pending-acceptance state. Use the DescribeVpcPeeringConnections
  9565. // request to view your outstanding VPC peering connection requests. To delete
  9566. // an active VPC peering connection, or to delete a VPC peering connection request
  9567. // that you initiated, use DeleteVpcPeeringConnection.
  9568. func (c *EC2) RejectVpcPeeringConnection(input *RejectVpcPeeringConnectionInput) (*RejectVpcPeeringConnectionOutput, error) {
  9569. req, out := c.RejectVpcPeeringConnectionRequest(input)
  9570. err := req.Send()
  9571. return out, err
  9572. }
  9573. const opReleaseAddress = "ReleaseAddress"
  9574. // ReleaseAddressRequest generates a "aws/request.Request" representing the
  9575. // client's request for the ReleaseAddress operation. The "output" return
  9576. // value can be used to capture response data after the request's "Send" method
  9577. // is called.
  9578. //
  9579. // Creating a request object using this method should be used when you want to inject
  9580. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9581. // access properties on the request object before or after sending the request. If
  9582. // you just want the service response, call the ReleaseAddress method directly
  9583. // instead.
  9584. //
  9585. // Note: You must call the "Send" method on the returned request object in order
  9586. // to execute the request.
  9587. //
  9588. // // Example sending a request using the ReleaseAddressRequest method.
  9589. // req, resp := client.ReleaseAddressRequest(params)
  9590. //
  9591. // err := req.Send()
  9592. // if err == nil { // resp is now filled
  9593. // fmt.Println(resp)
  9594. // }
  9595. //
  9596. func (c *EC2) ReleaseAddressRequest(input *ReleaseAddressInput) (req *request.Request, output *ReleaseAddressOutput) {
  9597. op := &request.Operation{
  9598. Name: opReleaseAddress,
  9599. HTTPMethod: "POST",
  9600. HTTPPath: "/",
  9601. }
  9602. if input == nil {
  9603. input = &ReleaseAddressInput{}
  9604. }
  9605. req = c.newRequest(op, input, output)
  9606. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  9607. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  9608. output = &ReleaseAddressOutput{}
  9609. req.Data = output
  9610. return
  9611. }
  9612. // Releases the specified Elastic IP address.
  9613. //
  9614. // After releasing an Elastic IP address, it is released to the IP address
  9615. // pool and might be unavailable to you. Be sure to update your DNS records
  9616. // and any servers or devices that communicate with the address. If you attempt
  9617. // to release an Elastic IP address that you already released, you'll get an
  9618. // AuthFailure error if the address is already allocated to another AWS account.
  9619. //
  9620. // [EC2-Classic, default VPC] Releasing an Elastic IP address automatically
  9621. // disassociates it from any instance that it's associated with. To disassociate
  9622. // an Elastic IP address without releasing it, use DisassociateAddress.
  9623. //
  9624. // [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic
  9625. // IP address before you try to release it. Otherwise, Amazon EC2 returns an
  9626. // error (InvalidIPAddress.InUse).
  9627. func (c *EC2) ReleaseAddress(input *ReleaseAddressInput) (*ReleaseAddressOutput, error) {
  9628. req, out := c.ReleaseAddressRequest(input)
  9629. err := req.Send()
  9630. return out, err
  9631. }
  9632. const opReleaseHosts = "ReleaseHosts"
  9633. // ReleaseHostsRequest generates a "aws/request.Request" representing the
  9634. // client's request for the ReleaseHosts operation. The "output" return
  9635. // value can be used to capture response data after the request's "Send" method
  9636. // is called.
  9637. //
  9638. // Creating a request object using this method should be used when you want to inject
  9639. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9640. // access properties on the request object before or after sending the request. If
  9641. // you just want the service response, call the ReleaseHosts method directly
  9642. // instead.
  9643. //
  9644. // Note: You must call the "Send" method on the returned request object in order
  9645. // to execute the request.
  9646. //
  9647. // // Example sending a request using the ReleaseHostsRequest method.
  9648. // req, resp := client.ReleaseHostsRequest(params)
  9649. //
  9650. // err := req.Send()
  9651. // if err == nil { // resp is now filled
  9652. // fmt.Println(resp)
  9653. // }
  9654. //
  9655. func (c *EC2) ReleaseHostsRequest(input *ReleaseHostsInput) (req *request.Request, output *ReleaseHostsOutput) {
  9656. op := &request.Operation{
  9657. Name: opReleaseHosts,
  9658. HTTPMethod: "POST",
  9659. HTTPPath: "/",
  9660. }
  9661. if input == nil {
  9662. input = &ReleaseHostsInput{}
  9663. }
  9664. req = c.newRequest(op, input, output)
  9665. output = &ReleaseHostsOutput{}
  9666. req.Data = output
  9667. return
  9668. }
  9669. // When you no longer want to use a Dedicated host it can be released. On-Demand
  9670. // billing is stopped and the host goes into released state. The host ID of
  9671. // Dedicated hosts that have been released can no longer be specified in another
  9672. // request, e.g., ModifyHosts. You must stop or terminate all instances on a
  9673. // host before it can be released.
  9674. //
  9675. // When Dedicated hosts are released, it make take some time for them to stop
  9676. // counting toward your limit and you may receive capacity errors when trying
  9677. // to allocate new Dedicated hosts. Try waiting a few minutes, and then try
  9678. // again.
  9679. //
  9680. // Released hosts will still appear in a DescribeHosts response.
  9681. func (c *EC2) ReleaseHosts(input *ReleaseHostsInput) (*ReleaseHostsOutput, error) {
  9682. req, out := c.ReleaseHostsRequest(input)
  9683. err := req.Send()
  9684. return out, err
  9685. }
  9686. const opReplaceNetworkAclAssociation = "ReplaceNetworkAclAssociation"
  9687. // ReplaceNetworkAclAssociationRequest generates a "aws/request.Request" representing the
  9688. // client's request for the ReplaceNetworkAclAssociation operation. The "output" return
  9689. // value can be used to capture response data after the request's "Send" method
  9690. // is called.
  9691. //
  9692. // Creating a request object using this method should be used when you want to inject
  9693. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9694. // access properties on the request object before or after sending the request. If
  9695. // you just want the service response, call the ReplaceNetworkAclAssociation method directly
  9696. // instead.
  9697. //
  9698. // Note: You must call the "Send" method on the returned request object in order
  9699. // to execute the request.
  9700. //
  9701. // // Example sending a request using the ReplaceNetworkAclAssociationRequest method.
  9702. // req, resp := client.ReplaceNetworkAclAssociationRequest(params)
  9703. //
  9704. // err := req.Send()
  9705. // if err == nil { // resp is now filled
  9706. // fmt.Println(resp)
  9707. // }
  9708. //
  9709. func (c *EC2) ReplaceNetworkAclAssociationRequest(input *ReplaceNetworkAclAssociationInput) (req *request.Request, output *ReplaceNetworkAclAssociationOutput) {
  9710. op := &request.Operation{
  9711. Name: opReplaceNetworkAclAssociation,
  9712. HTTPMethod: "POST",
  9713. HTTPPath: "/",
  9714. }
  9715. if input == nil {
  9716. input = &ReplaceNetworkAclAssociationInput{}
  9717. }
  9718. req = c.newRequest(op, input, output)
  9719. output = &ReplaceNetworkAclAssociationOutput{}
  9720. req.Data = output
  9721. return
  9722. }
  9723. // Changes which network ACL a subnet is associated with. By default when you
  9724. // create a subnet, it's automatically associated with the default network ACL.
  9725. // For more information about network ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  9726. // in the Amazon Virtual Private Cloud User Guide.
  9727. func (c *EC2) ReplaceNetworkAclAssociation(input *ReplaceNetworkAclAssociationInput) (*ReplaceNetworkAclAssociationOutput, error) {
  9728. req, out := c.ReplaceNetworkAclAssociationRequest(input)
  9729. err := req.Send()
  9730. return out, err
  9731. }
  9732. const opReplaceNetworkAclEntry = "ReplaceNetworkAclEntry"
  9733. // ReplaceNetworkAclEntryRequest generates a "aws/request.Request" representing the
  9734. // client's request for the ReplaceNetworkAclEntry operation. The "output" return
  9735. // value can be used to capture response data after the request's "Send" method
  9736. // is called.
  9737. //
  9738. // Creating a request object using this method should be used when you want to inject
  9739. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9740. // access properties on the request object before or after sending the request. If
  9741. // you just want the service response, call the ReplaceNetworkAclEntry method directly
  9742. // instead.
  9743. //
  9744. // Note: You must call the "Send" method on the returned request object in order
  9745. // to execute the request.
  9746. //
  9747. // // Example sending a request using the ReplaceNetworkAclEntryRequest method.
  9748. // req, resp := client.ReplaceNetworkAclEntryRequest(params)
  9749. //
  9750. // err := req.Send()
  9751. // if err == nil { // resp is now filled
  9752. // fmt.Println(resp)
  9753. // }
  9754. //
  9755. func (c *EC2) ReplaceNetworkAclEntryRequest(input *ReplaceNetworkAclEntryInput) (req *request.Request, output *ReplaceNetworkAclEntryOutput) {
  9756. op := &request.Operation{
  9757. Name: opReplaceNetworkAclEntry,
  9758. HTTPMethod: "POST",
  9759. HTTPPath: "/",
  9760. }
  9761. if input == nil {
  9762. input = &ReplaceNetworkAclEntryInput{}
  9763. }
  9764. req = c.newRequest(op, input, output)
  9765. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  9766. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  9767. output = &ReplaceNetworkAclEntryOutput{}
  9768. req.Data = output
  9769. return
  9770. }
  9771. // Replaces an entry (rule) in a network ACL. For more information about network
  9772. // ACLs, see Network ACLs (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html)
  9773. // in the Amazon Virtual Private Cloud User Guide.
  9774. func (c *EC2) ReplaceNetworkAclEntry(input *ReplaceNetworkAclEntryInput) (*ReplaceNetworkAclEntryOutput, error) {
  9775. req, out := c.ReplaceNetworkAclEntryRequest(input)
  9776. err := req.Send()
  9777. return out, err
  9778. }
  9779. const opReplaceRoute = "ReplaceRoute"
  9780. // ReplaceRouteRequest generates a "aws/request.Request" representing the
  9781. // client's request for the ReplaceRoute operation. The "output" return
  9782. // value can be used to capture response data after the request's "Send" method
  9783. // is called.
  9784. //
  9785. // Creating a request object using this method should be used when you want to inject
  9786. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9787. // access properties on the request object before or after sending the request. If
  9788. // you just want the service response, call the ReplaceRoute method directly
  9789. // instead.
  9790. //
  9791. // Note: You must call the "Send" method on the returned request object in order
  9792. // to execute the request.
  9793. //
  9794. // // Example sending a request using the ReplaceRouteRequest method.
  9795. // req, resp := client.ReplaceRouteRequest(params)
  9796. //
  9797. // err := req.Send()
  9798. // if err == nil { // resp is now filled
  9799. // fmt.Println(resp)
  9800. // }
  9801. //
  9802. func (c *EC2) ReplaceRouteRequest(input *ReplaceRouteInput) (req *request.Request, output *ReplaceRouteOutput) {
  9803. op := &request.Operation{
  9804. Name: opReplaceRoute,
  9805. HTTPMethod: "POST",
  9806. HTTPPath: "/",
  9807. }
  9808. if input == nil {
  9809. input = &ReplaceRouteInput{}
  9810. }
  9811. req = c.newRequest(op, input, output)
  9812. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  9813. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  9814. output = &ReplaceRouteOutput{}
  9815. req.Data = output
  9816. return
  9817. }
  9818. // Replaces an existing route within a route table in a VPC. You must provide
  9819. // only one of the following: Internet gateway or virtual private gateway, NAT
  9820. // instance, NAT gateway, VPC peering connection, or network interface.
  9821. //
  9822. // For more information about route tables, see Route Tables (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  9823. // in the Amazon Virtual Private Cloud User Guide.
  9824. func (c *EC2) ReplaceRoute(input *ReplaceRouteInput) (*ReplaceRouteOutput, error) {
  9825. req, out := c.ReplaceRouteRequest(input)
  9826. err := req.Send()
  9827. return out, err
  9828. }
  9829. const opReplaceRouteTableAssociation = "ReplaceRouteTableAssociation"
  9830. // ReplaceRouteTableAssociationRequest generates a "aws/request.Request" representing the
  9831. // client's request for the ReplaceRouteTableAssociation operation. The "output" return
  9832. // value can be used to capture response data after the request's "Send" method
  9833. // is called.
  9834. //
  9835. // Creating a request object using this method should be used when you want to inject
  9836. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9837. // access properties on the request object before or after sending the request. If
  9838. // you just want the service response, call the ReplaceRouteTableAssociation method directly
  9839. // instead.
  9840. //
  9841. // Note: You must call the "Send" method on the returned request object in order
  9842. // to execute the request.
  9843. //
  9844. // // Example sending a request using the ReplaceRouteTableAssociationRequest method.
  9845. // req, resp := client.ReplaceRouteTableAssociationRequest(params)
  9846. //
  9847. // err := req.Send()
  9848. // if err == nil { // resp is now filled
  9849. // fmt.Println(resp)
  9850. // }
  9851. //
  9852. func (c *EC2) ReplaceRouteTableAssociationRequest(input *ReplaceRouteTableAssociationInput) (req *request.Request, output *ReplaceRouteTableAssociationOutput) {
  9853. op := &request.Operation{
  9854. Name: opReplaceRouteTableAssociation,
  9855. HTTPMethod: "POST",
  9856. HTTPPath: "/",
  9857. }
  9858. if input == nil {
  9859. input = &ReplaceRouteTableAssociationInput{}
  9860. }
  9861. req = c.newRequest(op, input, output)
  9862. output = &ReplaceRouteTableAssociationOutput{}
  9863. req.Data = output
  9864. return
  9865. }
  9866. // Changes the route table associated with a given subnet in a VPC. After the
  9867. // operation completes, the subnet uses the routes in the new route table it's
  9868. // associated with. For more information about route tables, see Route Tables
  9869. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html)
  9870. // in the Amazon Virtual Private Cloud User Guide.
  9871. //
  9872. // You can also use ReplaceRouteTableAssociation to change which table is the
  9873. // main route table in the VPC. You just specify the main route table's association
  9874. // ID and the route table to be the new main route table.
  9875. func (c *EC2) ReplaceRouteTableAssociation(input *ReplaceRouteTableAssociationInput) (*ReplaceRouteTableAssociationOutput, error) {
  9876. req, out := c.ReplaceRouteTableAssociationRequest(input)
  9877. err := req.Send()
  9878. return out, err
  9879. }
  9880. const opReportInstanceStatus = "ReportInstanceStatus"
  9881. // ReportInstanceStatusRequest generates a "aws/request.Request" representing the
  9882. // client's request for the ReportInstanceStatus operation. The "output" return
  9883. // value can be used to capture response data after the request's "Send" method
  9884. // is called.
  9885. //
  9886. // Creating a request object using this method should be used when you want to inject
  9887. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9888. // access properties on the request object before or after sending the request. If
  9889. // you just want the service response, call the ReportInstanceStatus method directly
  9890. // instead.
  9891. //
  9892. // Note: You must call the "Send" method on the returned request object in order
  9893. // to execute the request.
  9894. //
  9895. // // Example sending a request using the ReportInstanceStatusRequest method.
  9896. // req, resp := client.ReportInstanceStatusRequest(params)
  9897. //
  9898. // err := req.Send()
  9899. // if err == nil { // resp is now filled
  9900. // fmt.Println(resp)
  9901. // }
  9902. //
  9903. func (c *EC2) ReportInstanceStatusRequest(input *ReportInstanceStatusInput) (req *request.Request, output *ReportInstanceStatusOutput) {
  9904. op := &request.Operation{
  9905. Name: opReportInstanceStatus,
  9906. HTTPMethod: "POST",
  9907. HTTPPath: "/",
  9908. }
  9909. if input == nil {
  9910. input = &ReportInstanceStatusInput{}
  9911. }
  9912. req = c.newRequest(op, input, output)
  9913. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  9914. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  9915. output = &ReportInstanceStatusOutput{}
  9916. req.Data = output
  9917. return
  9918. }
  9919. // Submits feedback about the status of an instance. The instance must be in
  9920. // the running state. If your experience with the instance differs from the
  9921. // instance status returned by DescribeInstanceStatus, use ReportInstanceStatus
  9922. // to report your experience with the instance. Amazon EC2 collects this information
  9923. // to improve the accuracy of status checks.
  9924. //
  9925. // Use of this action does not change the value returned by DescribeInstanceStatus.
  9926. func (c *EC2) ReportInstanceStatus(input *ReportInstanceStatusInput) (*ReportInstanceStatusOutput, error) {
  9927. req, out := c.ReportInstanceStatusRequest(input)
  9928. err := req.Send()
  9929. return out, err
  9930. }
  9931. const opRequestSpotFleet = "RequestSpotFleet"
  9932. // RequestSpotFleetRequest generates a "aws/request.Request" representing the
  9933. // client's request for the RequestSpotFleet operation. The "output" return
  9934. // value can be used to capture response data after the request's "Send" method
  9935. // is called.
  9936. //
  9937. // Creating a request object using this method should be used when you want to inject
  9938. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9939. // access properties on the request object before or after sending the request. If
  9940. // you just want the service response, call the RequestSpotFleet method directly
  9941. // instead.
  9942. //
  9943. // Note: You must call the "Send" method on the returned request object in order
  9944. // to execute the request.
  9945. //
  9946. // // Example sending a request using the RequestSpotFleetRequest method.
  9947. // req, resp := client.RequestSpotFleetRequest(params)
  9948. //
  9949. // err := req.Send()
  9950. // if err == nil { // resp is now filled
  9951. // fmt.Println(resp)
  9952. // }
  9953. //
  9954. func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *request.Request, output *RequestSpotFleetOutput) {
  9955. op := &request.Operation{
  9956. Name: opRequestSpotFleet,
  9957. HTTPMethod: "POST",
  9958. HTTPPath: "/",
  9959. }
  9960. if input == nil {
  9961. input = &RequestSpotFleetInput{}
  9962. }
  9963. req = c.newRequest(op, input, output)
  9964. output = &RequestSpotFleetOutput{}
  9965. req.Data = output
  9966. return
  9967. }
  9968. // Creates a Spot fleet request.
  9969. //
  9970. // You can submit a single request that includes multiple launch specifications
  9971. // that vary by instance type, AMI, Availability Zone, or subnet.
  9972. //
  9973. // By default, the Spot fleet requests Spot instances in the Spot pool where
  9974. // the price per unit is the lowest. Each launch specification can include its
  9975. // own instance weighting that reflects the value of the instance type to your
  9976. // application workload.
  9977. //
  9978. // Alternatively, you can specify that the Spot fleet distribute the target
  9979. // capacity across the Spot pools included in its launch specifications. By
  9980. // ensuring that the Spot instances in your Spot fleet are in different Spot
  9981. // pools, you can improve the availability of your fleet.
  9982. //
  9983. // For more information, see Spot Fleet Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html)
  9984. // in the Amazon Elastic Compute Cloud User Guide.
  9985. func (c *EC2) RequestSpotFleet(input *RequestSpotFleetInput) (*RequestSpotFleetOutput, error) {
  9986. req, out := c.RequestSpotFleetRequest(input)
  9987. err := req.Send()
  9988. return out, err
  9989. }
  9990. const opRequestSpotInstances = "RequestSpotInstances"
  9991. // RequestSpotInstancesRequest generates a "aws/request.Request" representing the
  9992. // client's request for the RequestSpotInstances operation. The "output" return
  9993. // value can be used to capture response data after the request's "Send" method
  9994. // is called.
  9995. //
  9996. // Creating a request object using this method should be used when you want to inject
  9997. // custom logic into the request's lifecycle using a custom handler, or if you want to
  9998. // access properties on the request object before or after sending the request. If
  9999. // you just want the service response, call the RequestSpotInstances method directly
  10000. // instead.
  10001. //
  10002. // Note: You must call the "Send" method on the returned request object in order
  10003. // to execute the request.
  10004. //
  10005. // // Example sending a request using the RequestSpotInstancesRequest method.
  10006. // req, resp := client.RequestSpotInstancesRequest(params)
  10007. //
  10008. // err := req.Send()
  10009. // if err == nil { // resp is now filled
  10010. // fmt.Println(resp)
  10011. // }
  10012. //
  10013. func (c *EC2) RequestSpotInstancesRequest(input *RequestSpotInstancesInput) (req *request.Request, output *RequestSpotInstancesOutput) {
  10014. op := &request.Operation{
  10015. Name: opRequestSpotInstances,
  10016. HTTPMethod: "POST",
  10017. HTTPPath: "/",
  10018. }
  10019. if input == nil {
  10020. input = &RequestSpotInstancesInput{}
  10021. }
  10022. req = c.newRequest(op, input, output)
  10023. output = &RequestSpotInstancesOutput{}
  10024. req.Data = output
  10025. return
  10026. }
  10027. // Creates a Spot instance request. Spot instances are instances that Amazon
  10028. // EC2 launches when the bid price that you specify exceeds the current Spot
  10029. // price. Amazon EC2 periodically sets the Spot price based on available Spot
  10030. // Instance capacity and current Spot instance requests. For more information,
  10031. // see Spot Instance Requests (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html)
  10032. // in the Amazon Elastic Compute Cloud User Guide.
  10033. func (c *EC2) RequestSpotInstances(input *RequestSpotInstancesInput) (*RequestSpotInstancesOutput, error) {
  10034. req, out := c.RequestSpotInstancesRequest(input)
  10035. err := req.Send()
  10036. return out, err
  10037. }
  10038. const opResetImageAttribute = "ResetImageAttribute"
  10039. // ResetImageAttributeRequest generates a "aws/request.Request" representing the
  10040. // client's request for the ResetImageAttribute operation. The "output" return
  10041. // value can be used to capture response data after the request's "Send" method
  10042. // is called.
  10043. //
  10044. // Creating a request object using this method should be used when you want to inject
  10045. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10046. // access properties on the request object before or after sending the request. If
  10047. // you just want the service response, call the ResetImageAttribute method directly
  10048. // instead.
  10049. //
  10050. // Note: You must call the "Send" method on the returned request object in order
  10051. // to execute the request.
  10052. //
  10053. // // Example sending a request using the ResetImageAttributeRequest method.
  10054. // req, resp := client.ResetImageAttributeRequest(params)
  10055. //
  10056. // err := req.Send()
  10057. // if err == nil { // resp is now filled
  10058. // fmt.Println(resp)
  10059. // }
  10060. //
  10061. func (c *EC2) ResetImageAttributeRequest(input *ResetImageAttributeInput) (req *request.Request, output *ResetImageAttributeOutput) {
  10062. op := &request.Operation{
  10063. Name: opResetImageAttribute,
  10064. HTTPMethod: "POST",
  10065. HTTPPath: "/",
  10066. }
  10067. if input == nil {
  10068. input = &ResetImageAttributeInput{}
  10069. }
  10070. req = c.newRequest(op, input, output)
  10071. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  10072. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  10073. output = &ResetImageAttributeOutput{}
  10074. req.Data = output
  10075. return
  10076. }
  10077. // Resets an attribute of an AMI to its default value.
  10078. //
  10079. // The productCodes attribute can't be reset.
  10080. func (c *EC2) ResetImageAttribute(input *ResetImageAttributeInput) (*ResetImageAttributeOutput, error) {
  10081. req, out := c.ResetImageAttributeRequest(input)
  10082. err := req.Send()
  10083. return out, err
  10084. }
  10085. const opResetInstanceAttribute = "ResetInstanceAttribute"
  10086. // ResetInstanceAttributeRequest generates a "aws/request.Request" representing the
  10087. // client's request for the ResetInstanceAttribute operation. The "output" return
  10088. // value can be used to capture response data after the request's "Send" method
  10089. // is called.
  10090. //
  10091. // Creating a request object using this method should be used when you want to inject
  10092. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10093. // access properties on the request object before or after sending the request. If
  10094. // you just want the service response, call the ResetInstanceAttribute method directly
  10095. // instead.
  10096. //
  10097. // Note: You must call the "Send" method on the returned request object in order
  10098. // to execute the request.
  10099. //
  10100. // // Example sending a request using the ResetInstanceAttributeRequest method.
  10101. // req, resp := client.ResetInstanceAttributeRequest(params)
  10102. //
  10103. // err := req.Send()
  10104. // if err == nil { // resp is now filled
  10105. // fmt.Println(resp)
  10106. // }
  10107. //
  10108. func (c *EC2) ResetInstanceAttributeRequest(input *ResetInstanceAttributeInput) (req *request.Request, output *ResetInstanceAttributeOutput) {
  10109. op := &request.Operation{
  10110. Name: opResetInstanceAttribute,
  10111. HTTPMethod: "POST",
  10112. HTTPPath: "/",
  10113. }
  10114. if input == nil {
  10115. input = &ResetInstanceAttributeInput{}
  10116. }
  10117. req = c.newRequest(op, input, output)
  10118. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  10119. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  10120. output = &ResetInstanceAttributeOutput{}
  10121. req.Data = output
  10122. return
  10123. }
  10124. // Resets an attribute of an instance to its default value. To reset the kernel
  10125. // or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck,
  10126. // the instance can be either running or stopped.
  10127. //
  10128. // The sourceDestCheck attribute controls whether source/destination checking
  10129. // is enabled. The default value is true, which means checking is enabled. This
  10130. // value must be false for a NAT instance to perform NAT. For more information,
  10131. // see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  10132. // in the Amazon Virtual Private Cloud User Guide.
  10133. func (c *EC2) ResetInstanceAttribute(input *ResetInstanceAttributeInput) (*ResetInstanceAttributeOutput, error) {
  10134. req, out := c.ResetInstanceAttributeRequest(input)
  10135. err := req.Send()
  10136. return out, err
  10137. }
  10138. const opResetNetworkInterfaceAttribute = "ResetNetworkInterfaceAttribute"
  10139. // ResetNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the
  10140. // client's request for the ResetNetworkInterfaceAttribute operation. The "output" return
  10141. // value can be used to capture response data after the request's "Send" method
  10142. // is called.
  10143. //
  10144. // Creating a request object using this method should be used when you want to inject
  10145. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10146. // access properties on the request object before or after sending the request. If
  10147. // you just want the service response, call the ResetNetworkInterfaceAttribute method directly
  10148. // instead.
  10149. //
  10150. // Note: You must call the "Send" method on the returned request object in order
  10151. // to execute the request.
  10152. //
  10153. // // Example sending a request using the ResetNetworkInterfaceAttributeRequest method.
  10154. // req, resp := client.ResetNetworkInterfaceAttributeRequest(params)
  10155. //
  10156. // err := req.Send()
  10157. // if err == nil { // resp is now filled
  10158. // fmt.Println(resp)
  10159. // }
  10160. //
  10161. func (c *EC2) ResetNetworkInterfaceAttributeRequest(input *ResetNetworkInterfaceAttributeInput) (req *request.Request, output *ResetNetworkInterfaceAttributeOutput) {
  10162. op := &request.Operation{
  10163. Name: opResetNetworkInterfaceAttribute,
  10164. HTTPMethod: "POST",
  10165. HTTPPath: "/",
  10166. }
  10167. if input == nil {
  10168. input = &ResetNetworkInterfaceAttributeInput{}
  10169. }
  10170. req = c.newRequest(op, input, output)
  10171. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  10172. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  10173. output = &ResetNetworkInterfaceAttributeOutput{}
  10174. req.Data = output
  10175. return
  10176. }
  10177. // Resets a network interface attribute. You can specify only one attribute
  10178. // at a time.
  10179. func (c *EC2) ResetNetworkInterfaceAttribute(input *ResetNetworkInterfaceAttributeInput) (*ResetNetworkInterfaceAttributeOutput, error) {
  10180. req, out := c.ResetNetworkInterfaceAttributeRequest(input)
  10181. err := req.Send()
  10182. return out, err
  10183. }
  10184. const opResetSnapshotAttribute = "ResetSnapshotAttribute"
  10185. // ResetSnapshotAttributeRequest generates a "aws/request.Request" representing the
  10186. // client's request for the ResetSnapshotAttribute operation. The "output" return
  10187. // value can be used to capture response data after the request's "Send" method
  10188. // is called.
  10189. //
  10190. // Creating a request object using this method should be used when you want to inject
  10191. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10192. // access properties on the request object before or after sending the request. If
  10193. // you just want the service response, call the ResetSnapshotAttribute method directly
  10194. // instead.
  10195. //
  10196. // Note: You must call the "Send" method on the returned request object in order
  10197. // to execute the request.
  10198. //
  10199. // // Example sending a request using the ResetSnapshotAttributeRequest method.
  10200. // req, resp := client.ResetSnapshotAttributeRequest(params)
  10201. //
  10202. // err := req.Send()
  10203. // if err == nil { // resp is now filled
  10204. // fmt.Println(resp)
  10205. // }
  10206. //
  10207. func (c *EC2) ResetSnapshotAttributeRequest(input *ResetSnapshotAttributeInput) (req *request.Request, output *ResetSnapshotAttributeOutput) {
  10208. op := &request.Operation{
  10209. Name: opResetSnapshotAttribute,
  10210. HTTPMethod: "POST",
  10211. HTTPPath: "/",
  10212. }
  10213. if input == nil {
  10214. input = &ResetSnapshotAttributeInput{}
  10215. }
  10216. req = c.newRequest(op, input, output)
  10217. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  10218. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  10219. output = &ResetSnapshotAttributeOutput{}
  10220. req.Data = output
  10221. return
  10222. }
  10223. // Resets permission settings for the specified snapshot.
  10224. //
  10225. // For more information on modifying snapshot permissions, see Sharing Snapshots
  10226. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-modifying-snapshot-permissions.html)
  10227. // in the Amazon Elastic Compute Cloud User Guide.
  10228. func (c *EC2) ResetSnapshotAttribute(input *ResetSnapshotAttributeInput) (*ResetSnapshotAttributeOutput, error) {
  10229. req, out := c.ResetSnapshotAttributeRequest(input)
  10230. err := req.Send()
  10231. return out, err
  10232. }
  10233. const opRestoreAddressToClassic = "RestoreAddressToClassic"
  10234. // RestoreAddressToClassicRequest generates a "aws/request.Request" representing the
  10235. // client's request for the RestoreAddressToClassic operation. The "output" return
  10236. // value can be used to capture response data after the request's "Send" method
  10237. // is called.
  10238. //
  10239. // Creating a request object using this method should be used when you want to inject
  10240. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10241. // access properties on the request object before or after sending the request. If
  10242. // you just want the service response, call the RestoreAddressToClassic method directly
  10243. // instead.
  10244. //
  10245. // Note: You must call the "Send" method on the returned request object in order
  10246. // to execute the request.
  10247. //
  10248. // // Example sending a request using the RestoreAddressToClassicRequest method.
  10249. // req, resp := client.RestoreAddressToClassicRequest(params)
  10250. //
  10251. // err := req.Send()
  10252. // if err == nil { // resp is now filled
  10253. // fmt.Println(resp)
  10254. // }
  10255. //
  10256. func (c *EC2) RestoreAddressToClassicRequest(input *RestoreAddressToClassicInput) (req *request.Request, output *RestoreAddressToClassicOutput) {
  10257. op := &request.Operation{
  10258. Name: opRestoreAddressToClassic,
  10259. HTTPMethod: "POST",
  10260. HTTPPath: "/",
  10261. }
  10262. if input == nil {
  10263. input = &RestoreAddressToClassicInput{}
  10264. }
  10265. req = c.newRequest(op, input, output)
  10266. output = &RestoreAddressToClassicOutput{}
  10267. req.Data = output
  10268. return
  10269. }
  10270. // Restores an Elastic IP address that was previously moved to the EC2-VPC platform
  10271. // back to the EC2-Classic platform. You cannot move an Elastic IP address that
  10272. // was originally allocated for use in EC2-VPC. The Elastic IP address must
  10273. // not be associated with an instance or network interface.
  10274. func (c *EC2) RestoreAddressToClassic(input *RestoreAddressToClassicInput) (*RestoreAddressToClassicOutput, error) {
  10275. req, out := c.RestoreAddressToClassicRequest(input)
  10276. err := req.Send()
  10277. return out, err
  10278. }
  10279. const opRevokeSecurityGroupEgress = "RevokeSecurityGroupEgress"
  10280. // RevokeSecurityGroupEgressRequest generates a "aws/request.Request" representing the
  10281. // client's request for the RevokeSecurityGroupEgress operation. The "output" return
  10282. // value can be used to capture response data after the request's "Send" method
  10283. // is called.
  10284. //
  10285. // Creating a request object using this method should be used when you want to inject
  10286. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10287. // access properties on the request object before or after sending the request. If
  10288. // you just want the service response, call the RevokeSecurityGroupEgress method directly
  10289. // instead.
  10290. //
  10291. // Note: You must call the "Send" method on the returned request object in order
  10292. // to execute the request.
  10293. //
  10294. // // Example sending a request using the RevokeSecurityGroupEgressRequest method.
  10295. // req, resp := client.RevokeSecurityGroupEgressRequest(params)
  10296. //
  10297. // err := req.Send()
  10298. // if err == nil { // resp is now filled
  10299. // fmt.Println(resp)
  10300. // }
  10301. //
  10302. func (c *EC2) RevokeSecurityGroupEgressRequest(input *RevokeSecurityGroupEgressInput) (req *request.Request, output *RevokeSecurityGroupEgressOutput) {
  10303. op := &request.Operation{
  10304. Name: opRevokeSecurityGroupEgress,
  10305. HTTPMethod: "POST",
  10306. HTTPPath: "/",
  10307. }
  10308. if input == nil {
  10309. input = &RevokeSecurityGroupEgressInput{}
  10310. }
  10311. req = c.newRequest(op, input, output)
  10312. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  10313. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  10314. output = &RevokeSecurityGroupEgressOutput{}
  10315. req.Data = output
  10316. return
  10317. }
  10318. // [EC2-VPC only] Removes one or more egress rules from a security group for
  10319. // EC2-VPC. This action doesn't apply to security groups for use in EC2-Classic.
  10320. // The values that you specify in the revoke request (for example, ports) must
  10321. // match the existing rule's values for the rule to be revoked.
  10322. //
  10323. // Each rule consists of the protocol and the CIDR range or source security
  10324. // group. For the TCP and UDP protocols, you must also specify the destination
  10325. // port or range of ports. For the ICMP protocol, you must also specify the
  10326. // ICMP type and code.
  10327. //
  10328. // Rule changes are propagated to instances within the security group as quickly
  10329. // as possible. However, a small delay might occur.
  10330. func (c *EC2) RevokeSecurityGroupEgress(input *RevokeSecurityGroupEgressInput) (*RevokeSecurityGroupEgressOutput, error) {
  10331. req, out := c.RevokeSecurityGroupEgressRequest(input)
  10332. err := req.Send()
  10333. return out, err
  10334. }
  10335. const opRevokeSecurityGroupIngress = "RevokeSecurityGroupIngress"
  10336. // RevokeSecurityGroupIngressRequest generates a "aws/request.Request" representing the
  10337. // client's request for the RevokeSecurityGroupIngress operation. The "output" return
  10338. // value can be used to capture response data after the request's "Send" method
  10339. // is called.
  10340. //
  10341. // Creating a request object using this method should be used when you want to inject
  10342. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10343. // access properties on the request object before or after sending the request. If
  10344. // you just want the service response, call the RevokeSecurityGroupIngress method directly
  10345. // instead.
  10346. //
  10347. // Note: You must call the "Send" method on the returned request object in order
  10348. // to execute the request.
  10349. //
  10350. // // Example sending a request using the RevokeSecurityGroupIngressRequest method.
  10351. // req, resp := client.RevokeSecurityGroupIngressRequest(params)
  10352. //
  10353. // err := req.Send()
  10354. // if err == nil { // resp is now filled
  10355. // fmt.Println(resp)
  10356. // }
  10357. //
  10358. func (c *EC2) RevokeSecurityGroupIngressRequest(input *RevokeSecurityGroupIngressInput) (req *request.Request, output *RevokeSecurityGroupIngressOutput) {
  10359. op := &request.Operation{
  10360. Name: opRevokeSecurityGroupIngress,
  10361. HTTPMethod: "POST",
  10362. HTTPPath: "/",
  10363. }
  10364. if input == nil {
  10365. input = &RevokeSecurityGroupIngressInput{}
  10366. }
  10367. req = c.newRequest(op, input, output)
  10368. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  10369. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  10370. output = &RevokeSecurityGroupIngressOutput{}
  10371. req.Data = output
  10372. return
  10373. }
  10374. // Removes one or more ingress rules from a security group. The values that
  10375. // you specify in the revoke request (for example, ports) must match the existing
  10376. // rule's values for the rule to be removed.
  10377. //
  10378. // Each rule consists of the protocol and the CIDR range or source security
  10379. // group. For the TCP and UDP protocols, you must also specify the destination
  10380. // port or range of ports. For the ICMP protocol, you must also specify the
  10381. // ICMP type and code.
  10382. //
  10383. // Rule changes are propagated to instances within the security group as quickly
  10384. // as possible. However, a small delay might occur.
  10385. func (c *EC2) RevokeSecurityGroupIngress(input *RevokeSecurityGroupIngressInput) (*RevokeSecurityGroupIngressOutput, error) {
  10386. req, out := c.RevokeSecurityGroupIngressRequest(input)
  10387. err := req.Send()
  10388. return out, err
  10389. }
  10390. const opRunInstances = "RunInstances"
  10391. // RunInstancesRequest generates a "aws/request.Request" representing the
  10392. // client's request for the RunInstances operation. The "output" return
  10393. // value can be used to capture response data after the request's "Send" method
  10394. // is called.
  10395. //
  10396. // Creating a request object using this method should be used when you want to inject
  10397. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10398. // access properties on the request object before or after sending the request. If
  10399. // you just want the service response, call the RunInstances method directly
  10400. // instead.
  10401. //
  10402. // Note: You must call the "Send" method on the returned request object in order
  10403. // to execute the request.
  10404. //
  10405. // // Example sending a request using the RunInstancesRequest method.
  10406. // req, resp := client.RunInstancesRequest(params)
  10407. //
  10408. // err := req.Send()
  10409. // if err == nil { // resp is now filled
  10410. // fmt.Println(resp)
  10411. // }
  10412. //
  10413. func (c *EC2) RunInstancesRequest(input *RunInstancesInput) (req *request.Request, output *Reservation) {
  10414. op := &request.Operation{
  10415. Name: opRunInstances,
  10416. HTTPMethod: "POST",
  10417. HTTPPath: "/",
  10418. }
  10419. if input == nil {
  10420. input = &RunInstancesInput{}
  10421. }
  10422. req = c.newRequest(op, input, output)
  10423. output = &Reservation{}
  10424. req.Data = output
  10425. return
  10426. }
  10427. // Launches the specified number of instances using an AMI for which you have
  10428. // permissions.
  10429. //
  10430. // When you launch an instance, it enters the pending state. After the instance
  10431. // is ready for you, it enters the running state. To check the state of your
  10432. // instance, call DescribeInstances.
  10433. //
  10434. // To ensure faster instance launches, break up large requests into smaller
  10435. // batches. For example, create five separate launch requests for 100 instances
  10436. // each instead of one launch request for 500 instances.
  10437. //
  10438. // To tag your instance, ensure that it is running as CreateTags requires a
  10439. // resource ID. For more information about tagging, see Tagging Your Amazon
  10440. // EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html).
  10441. //
  10442. // If you don't specify a security group when launching an instance, Amazon
  10443. // EC2 uses the default security group. For more information, see Security Groups
  10444. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html)
  10445. // in the Amazon Elastic Compute Cloud User Guide.
  10446. //
  10447. // [EC2-VPC only accounts] If you don't specify a subnet in the request, we
  10448. // choose a default subnet from your default VPC for you.
  10449. //
  10450. // [EC2-Classic accounts] If you're launching into EC2-Classic and you don't
  10451. // specify an Availability Zone, we choose one for you.
  10452. //
  10453. // Linux instances have access to the public key of the key pair at boot. You
  10454. // can use this key to provide secure access to the instance. Amazon EC2 public
  10455. // images use this feature to provide secure access without passwords. For more
  10456. // information, see Key Pairs (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html)
  10457. // in the Amazon Elastic Compute Cloud User Guide.
  10458. //
  10459. // You can provide optional user data when launching an instance. For more
  10460. // information, see Instance Metadata (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html)
  10461. // in the Amazon Elastic Compute Cloud User Guide.
  10462. //
  10463. // If any of the AMIs have a product code attached for which the user has not
  10464. // subscribed, RunInstances fails.
  10465. //
  10466. // Some instance types can only be launched into a VPC. If you do not have
  10467. // a default VPC, or if you do not specify a subnet ID in the request, RunInstances
  10468. // fails. For more information, see Instance Types Available Only in a VPC (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-vpc.html#vpc-only-instance-types).
  10469. //
  10470. // For more information about troubleshooting, see What To Do If An Instance
  10471. // Immediately Terminates (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html),
  10472. // and Troubleshooting Connecting to Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html)
  10473. // in the Amazon Elastic Compute Cloud User Guide.
  10474. func (c *EC2) RunInstances(input *RunInstancesInput) (*Reservation, error) {
  10475. req, out := c.RunInstancesRequest(input)
  10476. err := req.Send()
  10477. return out, err
  10478. }
  10479. const opRunScheduledInstances = "RunScheduledInstances"
  10480. // RunScheduledInstancesRequest generates a "aws/request.Request" representing the
  10481. // client's request for the RunScheduledInstances operation. The "output" return
  10482. // value can be used to capture response data after the request's "Send" method
  10483. // is called.
  10484. //
  10485. // Creating a request object using this method should be used when you want to inject
  10486. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10487. // access properties on the request object before or after sending the request. If
  10488. // you just want the service response, call the RunScheduledInstances method directly
  10489. // instead.
  10490. //
  10491. // Note: You must call the "Send" method on the returned request object in order
  10492. // to execute the request.
  10493. //
  10494. // // Example sending a request using the RunScheduledInstancesRequest method.
  10495. // req, resp := client.RunScheduledInstancesRequest(params)
  10496. //
  10497. // err := req.Send()
  10498. // if err == nil { // resp is now filled
  10499. // fmt.Println(resp)
  10500. // }
  10501. //
  10502. func (c *EC2) RunScheduledInstancesRequest(input *RunScheduledInstancesInput) (req *request.Request, output *RunScheduledInstancesOutput) {
  10503. op := &request.Operation{
  10504. Name: opRunScheduledInstances,
  10505. HTTPMethod: "POST",
  10506. HTTPPath: "/",
  10507. }
  10508. if input == nil {
  10509. input = &RunScheduledInstancesInput{}
  10510. }
  10511. req = c.newRequest(op, input, output)
  10512. output = &RunScheduledInstancesOutput{}
  10513. req.Data = output
  10514. return
  10515. }
  10516. // Launches the specified Scheduled Instances.
  10517. //
  10518. // Before you can launch a Scheduled Instance, you must purchase it and obtain
  10519. // an identifier using PurchaseScheduledInstances.
  10520. //
  10521. // You must launch a Scheduled Instance during its scheduled time period. You
  10522. // can't stop or reboot a Scheduled Instance, but you can terminate it as needed.
  10523. // If you terminate a Scheduled Instance before the current scheduled time period
  10524. // ends, you can launch it again after a few minutes. For more information,
  10525. // see Scheduled Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-scheduled-instances.html)
  10526. // in the Amazon Elastic Compute Cloud User Guide.
  10527. func (c *EC2) RunScheduledInstances(input *RunScheduledInstancesInput) (*RunScheduledInstancesOutput, error) {
  10528. req, out := c.RunScheduledInstancesRequest(input)
  10529. err := req.Send()
  10530. return out, err
  10531. }
  10532. const opStartInstances = "StartInstances"
  10533. // StartInstancesRequest generates a "aws/request.Request" representing the
  10534. // client's request for the StartInstances operation. The "output" return
  10535. // value can be used to capture response data after the request's "Send" method
  10536. // is called.
  10537. //
  10538. // Creating a request object using this method should be used when you want to inject
  10539. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10540. // access properties on the request object before or after sending the request. If
  10541. // you just want the service response, call the StartInstances method directly
  10542. // instead.
  10543. //
  10544. // Note: You must call the "Send" method on the returned request object in order
  10545. // to execute the request.
  10546. //
  10547. // // Example sending a request using the StartInstancesRequest method.
  10548. // req, resp := client.StartInstancesRequest(params)
  10549. //
  10550. // err := req.Send()
  10551. // if err == nil { // resp is now filled
  10552. // fmt.Println(resp)
  10553. // }
  10554. //
  10555. func (c *EC2) StartInstancesRequest(input *StartInstancesInput) (req *request.Request, output *StartInstancesOutput) {
  10556. op := &request.Operation{
  10557. Name: opStartInstances,
  10558. HTTPMethod: "POST",
  10559. HTTPPath: "/",
  10560. }
  10561. if input == nil {
  10562. input = &StartInstancesInput{}
  10563. }
  10564. req = c.newRequest(op, input, output)
  10565. output = &StartInstancesOutput{}
  10566. req.Data = output
  10567. return
  10568. }
  10569. // Starts an Amazon EBS-backed AMI that you've previously stopped.
  10570. //
  10571. // Instances that use Amazon EBS volumes as their root devices can be quickly
  10572. // stopped and started. When an instance is stopped, the compute resources are
  10573. // released and you are not billed for hourly instance usage. However, your
  10574. // root partition Amazon EBS volume remains, continues to persist your data,
  10575. // and you are charged for Amazon EBS volume usage. You can restart your instance
  10576. // at any time. Each time you transition an instance from stopped to started,
  10577. // Amazon EC2 charges a full instance hour, even if transitions happen multiple
  10578. // times within a single hour.
  10579. //
  10580. // Before stopping an instance, make sure it is in a state from which it can
  10581. // be restarted. Stopping an instance does not preserve data stored in RAM.
  10582. //
  10583. // Performing this operation on an instance that uses an instance store as
  10584. // its root device returns an error.
  10585. //
  10586. // For more information, see Stopping Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html)
  10587. // in the Amazon Elastic Compute Cloud User Guide.
  10588. func (c *EC2) StartInstances(input *StartInstancesInput) (*StartInstancesOutput, error) {
  10589. req, out := c.StartInstancesRequest(input)
  10590. err := req.Send()
  10591. return out, err
  10592. }
  10593. const opStopInstances = "StopInstances"
  10594. // StopInstancesRequest generates a "aws/request.Request" representing the
  10595. // client's request for the StopInstances operation. The "output" return
  10596. // value can be used to capture response data after the request's "Send" method
  10597. // is called.
  10598. //
  10599. // Creating a request object using this method should be used when you want to inject
  10600. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10601. // access properties on the request object before or after sending the request. If
  10602. // you just want the service response, call the StopInstances method directly
  10603. // instead.
  10604. //
  10605. // Note: You must call the "Send" method on the returned request object in order
  10606. // to execute the request.
  10607. //
  10608. // // Example sending a request using the StopInstancesRequest method.
  10609. // req, resp := client.StopInstancesRequest(params)
  10610. //
  10611. // err := req.Send()
  10612. // if err == nil { // resp is now filled
  10613. // fmt.Println(resp)
  10614. // }
  10615. //
  10616. func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Request, output *StopInstancesOutput) {
  10617. op := &request.Operation{
  10618. Name: opStopInstances,
  10619. HTTPMethod: "POST",
  10620. HTTPPath: "/",
  10621. }
  10622. if input == nil {
  10623. input = &StopInstancesInput{}
  10624. }
  10625. req = c.newRequest(op, input, output)
  10626. output = &StopInstancesOutput{}
  10627. req.Data = output
  10628. return
  10629. }
  10630. // Stops an Amazon EBS-backed instance.
  10631. //
  10632. // We don't charge hourly usage for a stopped instance, or data transfer fees;
  10633. // however, your root partition Amazon EBS volume remains, continues to persist
  10634. // your data, and you are charged for Amazon EBS volume usage. Each time you
  10635. // transition an instance from stopped to started, Amazon EC2 charges a full
  10636. // instance hour, even if transitions happen multiple times within a single
  10637. // hour.
  10638. //
  10639. // You can't start or stop Spot instances, and you can't stop instance store-backed
  10640. // instances.
  10641. //
  10642. // When you stop an instance, we shut it down. You can restart your instance
  10643. // at any time. Before stopping an instance, make sure it is in a state from
  10644. // which it can be restarted. Stopping an instance does not preserve data stored
  10645. // in RAM.
  10646. //
  10647. // Stopping an instance is different to rebooting or terminating it. For example,
  10648. // when you stop an instance, the root device and any other devices attached
  10649. // to the instance persist. When you terminate an instance, the root device
  10650. // and any other devices attached during the instance launch are automatically
  10651. // deleted. For more information about the differences between rebooting, stopping,
  10652. // and terminating instances, see Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  10653. // in the Amazon Elastic Compute Cloud User Guide.
  10654. //
  10655. // When you stop an instance, we attempt to shut it down forcibly after a short
  10656. // while. If your instance appears stuck in the stopping state after a period
  10657. // of time, there may be an issue with the underlying host computer. For more
  10658. // information, see Troubleshooting Stopping Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html)
  10659. // in the Amazon Elastic Compute Cloud User Guide.
  10660. func (c *EC2) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error) {
  10661. req, out := c.StopInstancesRequest(input)
  10662. err := req.Send()
  10663. return out, err
  10664. }
  10665. const opTerminateInstances = "TerminateInstances"
  10666. // TerminateInstancesRequest generates a "aws/request.Request" representing the
  10667. // client's request for the TerminateInstances operation. The "output" return
  10668. // value can be used to capture response data after the request's "Send" method
  10669. // is called.
  10670. //
  10671. // Creating a request object using this method should be used when you want to inject
  10672. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10673. // access properties on the request object before or after sending the request. If
  10674. // you just want the service response, call the TerminateInstances method directly
  10675. // instead.
  10676. //
  10677. // Note: You must call the "Send" method on the returned request object in order
  10678. // to execute the request.
  10679. //
  10680. // // Example sending a request using the TerminateInstancesRequest method.
  10681. // req, resp := client.TerminateInstancesRequest(params)
  10682. //
  10683. // err := req.Send()
  10684. // if err == nil { // resp is now filled
  10685. // fmt.Println(resp)
  10686. // }
  10687. //
  10688. func (c *EC2) TerminateInstancesRequest(input *TerminateInstancesInput) (req *request.Request, output *TerminateInstancesOutput) {
  10689. op := &request.Operation{
  10690. Name: opTerminateInstances,
  10691. HTTPMethod: "POST",
  10692. HTTPPath: "/",
  10693. }
  10694. if input == nil {
  10695. input = &TerminateInstancesInput{}
  10696. }
  10697. req = c.newRequest(op, input, output)
  10698. output = &TerminateInstancesOutput{}
  10699. req.Data = output
  10700. return
  10701. }
  10702. // Shuts down one or more instances. This operation is idempotent; if you terminate
  10703. // an instance more than once, each call succeeds.
  10704. //
  10705. // Terminated instances remain visible after termination (for approximately
  10706. // one hour).
  10707. //
  10708. // By default, Amazon EC2 deletes all EBS volumes that were attached when the
  10709. // instance launched. Volumes attached after instance launch continue running.
  10710. //
  10711. // You can stop, start, and terminate EBS-backed instances. You can only terminate
  10712. // instance store-backed instances. What happens to an instance differs if you
  10713. // stop it or terminate it. For example, when you stop an instance, the root
  10714. // device and any other devices attached to the instance persist. When you terminate
  10715. // an instance, any attached EBS volumes with the DeleteOnTermination block
  10716. // device mapping parameter set to true are automatically deleted. For more
  10717. // information about the differences between stopping and terminating instances,
  10718. // see Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html)
  10719. // in the Amazon Elastic Compute Cloud User Guide.
  10720. //
  10721. // For more information about troubleshooting, see Troubleshooting Terminating
  10722. // Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesShuttingDown.html)
  10723. // in the Amazon Elastic Compute Cloud User Guide.
  10724. func (c *EC2) TerminateInstances(input *TerminateInstancesInput) (*TerminateInstancesOutput, error) {
  10725. req, out := c.TerminateInstancesRequest(input)
  10726. err := req.Send()
  10727. return out, err
  10728. }
  10729. const opUnassignPrivateIpAddresses = "UnassignPrivateIpAddresses"
  10730. // UnassignPrivateIpAddressesRequest generates a "aws/request.Request" representing the
  10731. // client's request for the UnassignPrivateIpAddresses operation. The "output" return
  10732. // value can be used to capture response data after the request's "Send" method
  10733. // is called.
  10734. //
  10735. // Creating a request object using this method should be used when you want to inject
  10736. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10737. // access properties on the request object before or after sending the request. If
  10738. // you just want the service response, call the UnassignPrivateIpAddresses method directly
  10739. // instead.
  10740. //
  10741. // Note: You must call the "Send" method on the returned request object in order
  10742. // to execute the request.
  10743. //
  10744. // // Example sending a request using the UnassignPrivateIpAddressesRequest method.
  10745. // req, resp := client.UnassignPrivateIpAddressesRequest(params)
  10746. //
  10747. // err := req.Send()
  10748. // if err == nil { // resp is now filled
  10749. // fmt.Println(resp)
  10750. // }
  10751. //
  10752. func (c *EC2) UnassignPrivateIpAddressesRequest(input *UnassignPrivateIpAddressesInput) (req *request.Request, output *UnassignPrivateIpAddressesOutput) {
  10753. op := &request.Operation{
  10754. Name: opUnassignPrivateIpAddresses,
  10755. HTTPMethod: "POST",
  10756. HTTPPath: "/",
  10757. }
  10758. if input == nil {
  10759. input = &UnassignPrivateIpAddressesInput{}
  10760. }
  10761. req = c.newRequest(op, input, output)
  10762. req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler)
  10763. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  10764. output = &UnassignPrivateIpAddressesOutput{}
  10765. req.Data = output
  10766. return
  10767. }
  10768. // Unassigns one or more secondary private IP addresses from a network interface.
  10769. func (c *EC2) UnassignPrivateIpAddresses(input *UnassignPrivateIpAddressesInput) (*UnassignPrivateIpAddressesOutput, error) {
  10770. req, out := c.UnassignPrivateIpAddressesRequest(input)
  10771. err := req.Send()
  10772. return out, err
  10773. }
  10774. const opUnmonitorInstances = "UnmonitorInstances"
  10775. // UnmonitorInstancesRequest generates a "aws/request.Request" representing the
  10776. // client's request for the UnmonitorInstances operation. The "output" return
  10777. // value can be used to capture response data after the request's "Send" method
  10778. // is called.
  10779. //
  10780. // Creating a request object using this method should be used when you want to inject
  10781. // custom logic into the request's lifecycle using a custom handler, or if you want to
  10782. // access properties on the request object before or after sending the request. If
  10783. // you just want the service response, call the UnmonitorInstances method directly
  10784. // instead.
  10785. //
  10786. // Note: You must call the "Send" method on the returned request object in order
  10787. // to execute the request.
  10788. //
  10789. // // Example sending a request using the UnmonitorInstancesRequest method.
  10790. // req, resp := client.UnmonitorInstancesRequest(params)
  10791. //
  10792. // err := req.Send()
  10793. // if err == nil { // resp is now filled
  10794. // fmt.Println(resp)
  10795. // }
  10796. //
  10797. func (c *EC2) UnmonitorInstancesRequest(input *UnmonitorInstancesInput) (req *request.Request, output *UnmonitorInstancesOutput) {
  10798. op := &request.Operation{
  10799. Name: opUnmonitorInstances,
  10800. HTTPMethod: "POST",
  10801. HTTPPath: "/",
  10802. }
  10803. if input == nil {
  10804. input = &UnmonitorInstancesInput{}
  10805. }
  10806. req = c.newRequest(op, input, output)
  10807. output = &UnmonitorInstancesOutput{}
  10808. req.Data = output
  10809. return
  10810. }
  10811. // Disables monitoring for a running instance. For more information about monitoring
  10812. // instances, see Monitoring Your Instances and Volumes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html)
  10813. // in the Amazon Elastic Compute Cloud User Guide.
  10814. func (c *EC2) UnmonitorInstances(input *UnmonitorInstancesInput) (*UnmonitorInstancesOutput, error) {
  10815. req, out := c.UnmonitorInstancesRequest(input)
  10816. err := req.Send()
  10817. return out, err
  10818. }
  10819. // Contains the parameters for AcceptVpcPeeringConnection.
  10820. type AcceptVpcPeeringConnectionInput struct {
  10821. _ struct{} `type:"structure"`
  10822. // Checks whether you have the required permissions for the action, without
  10823. // actually making the request, and provides an error response. If you have
  10824. // the required permissions, the error response is DryRunOperation. Otherwise,
  10825. // it is UnauthorizedOperation.
  10826. DryRun *bool `locationName:"dryRun" type:"boolean"`
  10827. // The ID of the VPC peering connection.
  10828. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  10829. }
  10830. // String returns the string representation
  10831. func (s AcceptVpcPeeringConnectionInput) String() string {
  10832. return awsutil.Prettify(s)
  10833. }
  10834. // GoString returns the string representation
  10835. func (s AcceptVpcPeeringConnectionInput) GoString() string {
  10836. return s.String()
  10837. }
  10838. // Contains the output of AcceptVpcPeeringConnection.
  10839. type AcceptVpcPeeringConnectionOutput struct {
  10840. _ struct{} `type:"structure"`
  10841. // Information about the VPC peering connection.
  10842. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
  10843. }
  10844. // String returns the string representation
  10845. func (s AcceptVpcPeeringConnectionOutput) String() string {
  10846. return awsutil.Prettify(s)
  10847. }
  10848. // GoString returns the string representation
  10849. func (s AcceptVpcPeeringConnectionOutput) GoString() string {
  10850. return s.String()
  10851. }
  10852. // Describes an account attribute.
  10853. type AccountAttribute struct {
  10854. _ struct{} `type:"structure"`
  10855. // The name of the account attribute.
  10856. AttributeName *string `locationName:"attributeName" type:"string"`
  10857. // One or more values for the account attribute.
  10858. AttributeValues []*AccountAttributeValue `locationName:"attributeValueSet" locationNameList:"item" type:"list"`
  10859. }
  10860. // String returns the string representation
  10861. func (s AccountAttribute) String() string {
  10862. return awsutil.Prettify(s)
  10863. }
  10864. // GoString returns the string representation
  10865. func (s AccountAttribute) GoString() string {
  10866. return s.String()
  10867. }
  10868. // Describes a value of an account attribute.
  10869. type AccountAttributeValue struct {
  10870. _ struct{} `type:"structure"`
  10871. // The value of the attribute.
  10872. AttributeValue *string `locationName:"attributeValue" type:"string"`
  10873. }
  10874. // String returns the string representation
  10875. func (s AccountAttributeValue) String() string {
  10876. return awsutil.Prettify(s)
  10877. }
  10878. // GoString returns the string representation
  10879. func (s AccountAttributeValue) GoString() string {
  10880. return s.String()
  10881. }
  10882. // Describes a running instance in a Spot fleet.
  10883. type ActiveInstance struct {
  10884. _ struct{} `type:"structure"`
  10885. // The ID of the instance.
  10886. InstanceId *string `locationName:"instanceId" type:"string"`
  10887. // The instance type.
  10888. InstanceType *string `locationName:"instanceType" type:"string"`
  10889. // The ID of the Spot instance request.
  10890. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  10891. }
  10892. // String returns the string representation
  10893. func (s ActiveInstance) String() string {
  10894. return awsutil.Prettify(s)
  10895. }
  10896. // GoString returns the string representation
  10897. func (s ActiveInstance) GoString() string {
  10898. return s.String()
  10899. }
  10900. // Describes an Elastic IP address.
  10901. type Address struct {
  10902. _ struct{} `type:"structure"`
  10903. // The ID representing the allocation of the address for use with EC2-VPC.
  10904. AllocationId *string `locationName:"allocationId" type:"string"`
  10905. // The ID representing the association of the address with an instance in a
  10906. // VPC.
  10907. AssociationId *string `locationName:"associationId" type:"string"`
  10908. // Indicates whether this Elastic IP address is for use with instances in EC2-Classic
  10909. // (standard) or instances in a VPC (vpc).
  10910. Domain *string `locationName:"domain" type:"string" enum:"DomainType"`
  10911. // The ID of the instance that the address is associated with (if any).
  10912. InstanceId *string `locationName:"instanceId" type:"string"`
  10913. // The ID of the network interface.
  10914. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  10915. // The ID of the AWS account that owns the network interface.
  10916. NetworkInterfaceOwnerId *string `locationName:"networkInterfaceOwnerId" type:"string"`
  10917. // The private IP address associated with the Elastic IP address.
  10918. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  10919. // The Elastic IP address.
  10920. PublicIp *string `locationName:"publicIp" type:"string"`
  10921. }
  10922. // String returns the string representation
  10923. func (s Address) String() string {
  10924. return awsutil.Prettify(s)
  10925. }
  10926. // GoString returns the string representation
  10927. func (s Address) GoString() string {
  10928. return s.String()
  10929. }
  10930. // Contains the parameters for AllocateAddress.
  10931. type AllocateAddressInput struct {
  10932. _ struct{} `type:"structure"`
  10933. // Set to vpc to allocate the address for use with instances in a VPC.
  10934. //
  10935. // Default: The address is for use with instances in EC2-Classic.
  10936. Domain *string `type:"string" enum:"DomainType"`
  10937. // Checks whether you have the required permissions for the action, without
  10938. // actually making the request, and provides an error response. If you have
  10939. // the required permissions, the error response is DryRunOperation. Otherwise,
  10940. // it is UnauthorizedOperation.
  10941. DryRun *bool `locationName:"dryRun" type:"boolean"`
  10942. }
  10943. // String returns the string representation
  10944. func (s AllocateAddressInput) String() string {
  10945. return awsutil.Prettify(s)
  10946. }
  10947. // GoString returns the string representation
  10948. func (s AllocateAddressInput) GoString() string {
  10949. return s.String()
  10950. }
  10951. // Contains the output of AllocateAddress.
  10952. type AllocateAddressOutput struct {
  10953. _ struct{} `type:"structure"`
  10954. // [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic
  10955. // IP address for use with instances in a VPC.
  10956. AllocationId *string `locationName:"allocationId" type:"string"`
  10957. // Indicates whether this Elastic IP address is for use with instances in EC2-Classic
  10958. // (standard) or instances in a VPC (vpc).
  10959. Domain *string `locationName:"domain" type:"string" enum:"DomainType"`
  10960. // The Elastic IP address.
  10961. PublicIp *string `locationName:"publicIp" type:"string"`
  10962. }
  10963. // String returns the string representation
  10964. func (s AllocateAddressOutput) String() string {
  10965. return awsutil.Prettify(s)
  10966. }
  10967. // GoString returns the string representation
  10968. func (s AllocateAddressOutput) GoString() string {
  10969. return s.String()
  10970. }
  10971. // Contains the parameters for AllocateHosts.
  10972. type AllocateHostsInput struct {
  10973. _ struct{} `type:"structure"`
  10974. // This is enabled by default. This property allows instances to be automatically
  10975. // placed onto available Dedicated hosts, when you are launching instances without
  10976. // specifying a host ID.
  10977. //
  10978. // Default: Enabled
  10979. AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"`
  10980. // The Availability Zone for the Dedicated hosts.
  10981. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  10982. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  10983. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  10984. // in the Amazon Elastic Compute Cloud User Guide.
  10985. ClientToken *string `locationName:"clientToken" type:"string"`
  10986. // Specify the instance type that you want your Dedicated hosts to be configured
  10987. // for. When you specify the instance type, that is the only instance type that
  10988. // you can launch onto that host.
  10989. InstanceType *string `locationName:"instanceType" type:"string" required:"true"`
  10990. // The number of Dedicated hosts you want to allocate to your account with these
  10991. // parameters.
  10992. Quantity *int64 `locationName:"quantity" type:"integer" required:"true"`
  10993. }
  10994. // String returns the string representation
  10995. func (s AllocateHostsInput) String() string {
  10996. return awsutil.Prettify(s)
  10997. }
  10998. // GoString returns the string representation
  10999. func (s AllocateHostsInput) GoString() string {
  11000. return s.String()
  11001. }
  11002. // Validate inspects the fields of the type to determine if they are valid.
  11003. func (s *AllocateHostsInput) Validate() error {
  11004. invalidParams := request.ErrInvalidParams{Context: "AllocateHostsInput"}
  11005. if s.AvailabilityZone == nil {
  11006. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  11007. }
  11008. if s.InstanceType == nil {
  11009. invalidParams.Add(request.NewErrParamRequired("InstanceType"))
  11010. }
  11011. if s.Quantity == nil {
  11012. invalidParams.Add(request.NewErrParamRequired("Quantity"))
  11013. }
  11014. if invalidParams.Len() > 0 {
  11015. return invalidParams
  11016. }
  11017. return nil
  11018. }
  11019. // Contains the output of AllocateHosts.
  11020. type AllocateHostsOutput struct {
  11021. _ struct{} `type:"structure"`
  11022. // The ID of the allocated Dedicated host. This is used when you want to launch
  11023. // an instance onto a specific host.
  11024. HostIds []*string `locationName:"hostIdSet" locationNameList:"item" type:"list"`
  11025. }
  11026. // String returns the string representation
  11027. func (s AllocateHostsOutput) String() string {
  11028. return awsutil.Prettify(s)
  11029. }
  11030. // GoString returns the string representation
  11031. func (s AllocateHostsOutput) GoString() string {
  11032. return s.String()
  11033. }
  11034. // Contains the parameters for AssignPrivateIpAddresses.
  11035. type AssignPrivateIpAddressesInput struct {
  11036. _ struct{} `type:"structure"`
  11037. // Indicates whether to allow an IP address that is already assigned to another
  11038. // network interface or instance to be reassigned to the specified network interface.
  11039. AllowReassignment *bool `locationName:"allowReassignment" type:"boolean"`
  11040. // The ID of the network interface.
  11041. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  11042. // One or more IP addresses to be assigned as a secondary private IP address
  11043. // to the network interface. You can't specify this parameter when also specifying
  11044. // a number of secondary IP addresses.
  11045. //
  11046. // If you don't specify an IP address, Amazon EC2 automatically selects an
  11047. // IP address within the subnet range.
  11048. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list"`
  11049. // The number of secondary IP addresses to assign to the network interface.
  11050. // You can't specify this parameter when also specifying private IP addresses.
  11051. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  11052. }
  11053. // String returns the string representation
  11054. func (s AssignPrivateIpAddressesInput) String() string {
  11055. return awsutil.Prettify(s)
  11056. }
  11057. // GoString returns the string representation
  11058. func (s AssignPrivateIpAddressesInput) GoString() string {
  11059. return s.String()
  11060. }
  11061. // Validate inspects the fields of the type to determine if they are valid.
  11062. func (s *AssignPrivateIpAddressesInput) Validate() error {
  11063. invalidParams := request.ErrInvalidParams{Context: "AssignPrivateIpAddressesInput"}
  11064. if s.NetworkInterfaceId == nil {
  11065. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  11066. }
  11067. if invalidParams.Len() > 0 {
  11068. return invalidParams
  11069. }
  11070. return nil
  11071. }
  11072. type AssignPrivateIpAddressesOutput struct {
  11073. _ struct{} `type:"structure"`
  11074. }
  11075. // String returns the string representation
  11076. func (s AssignPrivateIpAddressesOutput) String() string {
  11077. return awsutil.Prettify(s)
  11078. }
  11079. // GoString returns the string representation
  11080. func (s AssignPrivateIpAddressesOutput) GoString() string {
  11081. return s.String()
  11082. }
  11083. // Contains the parameters for AssociateAddress.
  11084. type AssociateAddressInput struct {
  11085. _ struct{} `type:"structure"`
  11086. // [EC2-VPC] The allocation ID. This is required for EC2-VPC.
  11087. AllocationId *string `type:"string"`
  11088. // [EC2-VPC] For a VPC in an EC2-Classic account, specify true to allow an Elastic
  11089. // IP address that is already associated with an instance or network interface
  11090. // to be reassociated with the specified instance or network interface. Otherwise,
  11091. // the operation fails. In a VPC in an EC2-VPC-only account, reassociation is
  11092. // automatic, therefore you can specify false to ensure the operation fails
  11093. // if the Elastic IP address is already associated with another resource.
  11094. AllowReassociation *bool `locationName:"allowReassociation" type:"boolean"`
  11095. // Checks whether you have the required permissions for the action, without
  11096. // actually making the request, and provides an error response. If you have
  11097. // the required permissions, the error response is DryRunOperation. Otherwise,
  11098. // it is UnauthorizedOperation.
  11099. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11100. // The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you
  11101. // can specify either the instance ID or the network interface ID, but not both.
  11102. // The operation fails if you specify an instance ID unless exactly one network
  11103. // interface is attached.
  11104. InstanceId *string `type:"string"`
  11105. // [EC2-VPC] The ID of the network interface. If the instance has more than
  11106. // one network interface, you must specify a network interface ID.
  11107. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  11108. // [EC2-VPC] The primary or secondary private IP address to associate with the
  11109. // Elastic IP address. If no private IP address is specified, the Elastic IP
  11110. // address is associated with the primary private IP address.
  11111. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  11112. // The Elastic IP address. This is required for EC2-Classic.
  11113. PublicIp *string `type:"string"`
  11114. }
  11115. // String returns the string representation
  11116. func (s AssociateAddressInput) String() string {
  11117. return awsutil.Prettify(s)
  11118. }
  11119. // GoString returns the string representation
  11120. func (s AssociateAddressInput) GoString() string {
  11121. return s.String()
  11122. }
  11123. // Contains the output of AssociateAddress.
  11124. type AssociateAddressOutput struct {
  11125. _ struct{} `type:"structure"`
  11126. // [EC2-VPC] The ID that represents the association of the Elastic IP address
  11127. // with an instance.
  11128. AssociationId *string `locationName:"associationId" type:"string"`
  11129. }
  11130. // String returns the string representation
  11131. func (s AssociateAddressOutput) String() string {
  11132. return awsutil.Prettify(s)
  11133. }
  11134. // GoString returns the string representation
  11135. func (s AssociateAddressOutput) GoString() string {
  11136. return s.String()
  11137. }
  11138. // Contains the parameters for AssociateDhcpOptions.
  11139. type AssociateDhcpOptionsInput struct {
  11140. _ struct{} `type:"structure"`
  11141. // The ID of the DHCP options set, or default to associate no DHCP options with
  11142. // the VPC.
  11143. DhcpOptionsId *string `type:"string" required:"true"`
  11144. // Checks whether you have the required permissions for the action, without
  11145. // actually making the request, and provides an error response. If you have
  11146. // the required permissions, the error response is DryRunOperation. Otherwise,
  11147. // it is UnauthorizedOperation.
  11148. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11149. // The ID of the VPC.
  11150. VpcId *string `type:"string" required:"true"`
  11151. }
  11152. // String returns the string representation
  11153. func (s AssociateDhcpOptionsInput) String() string {
  11154. return awsutil.Prettify(s)
  11155. }
  11156. // GoString returns the string representation
  11157. func (s AssociateDhcpOptionsInput) GoString() string {
  11158. return s.String()
  11159. }
  11160. // Validate inspects the fields of the type to determine if they are valid.
  11161. func (s *AssociateDhcpOptionsInput) Validate() error {
  11162. invalidParams := request.ErrInvalidParams{Context: "AssociateDhcpOptionsInput"}
  11163. if s.DhcpOptionsId == nil {
  11164. invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId"))
  11165. }
  11166. if s.VpcId == nil {
  11167. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  11168. }
  11169. if invalidParams.Len() > 0 {
  11170. return invalidParams
  11171. }
  11172. return nil
  11173. }
  11174. type AssociateDhcpOptionsOutput struct {
  11175. _ struct{} `type:"structure"`
  11176. }
  11177. // String returns the string representation
  11178. func (s AssociateDhcpOptionsOutput) String() string {
  11179. return awsutil.Prettify(s)
  11180. }
  11181. // GoString returns the string representation
  11182. func (s AssociateDhcpOptionsOutput) GoString() string {
  11183. return s.String()
  11184. }
  11185. // Contains the parameters for AssociateRouteTable.
  11186. type AssociateRouteTableInput struct {
  11187. _ struct{} `type:"structure"`
  11188. // Checks whether you have the required permissions for the action, without
  11189. // actually making the request, and provides an error response. If you have
  11190. // the required permissions, the error response is DryRunOperation. Otherwise,
  11191. // it is UnauthorizedOperation.
  11192. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11193. // The ID of the route table.
  11194. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  11195. // The ID of the subnet.
  11196. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  11197. }
  11198. // String returns the string representation
  11199. func (s AssociateRouteTableInput) String() string {
  11200. return awsutil.Prettify(s)
  11201. }
  11202. // GoString returns the string representation
  11203. func (s AssociateRouteTableInput) GoString() string {
  11204. return s.String()
  11205. }
  11206. // Validate inspects the fields of the type to determine if they are valid.
  11207. func (s *AssociateRouteTableInput) Validate() error {
  11208. invalidParams := request.ErrInvalidParams{Context: "AssociateRouteTableInput"}
  11209. if s.RouteTableId == nil {
  11210. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  11211. }
  11212. if s.SubnetId == nil {
  11213. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  11214. }
  11215. if invalidParams.Len() > 0 {
  11216. return invalidParams
  11217. }
  11218. return nil
  11219. }
  11220. // Contains the output of AssociateRouteTable.
  11221. type AssociateRouteTableOutput struct {
  11222. _ struct{} `type:"structure"`
  11223. // The route table association ID (needed to disassociate the route table).
  11224. AssociationId *string `locationName:"associationId" type:"string"`
  11225. }
  11226. // String returns the string representation
  11227. func (s AssociateRouteTableOutput) String() string {
  11228. return awsutil.Prettify(s)
  11229. }
  11230. // GoString returns the string representation
  11231. func (s AssociateRouteTableOutput) GoString() string {
  11232. return s.String()
  11233. }
  11234. // Contains the parameters for AttachClassicLinkVpc.
  11235. type AttachClassicLinkVpcInput struct {
  11236. _ struct{} `type:"structure"`
  11237. // Checks whether you have the required permissions for the action, without
  11238. // actually making the request, and provides an error response. If you have
  11239. // the required permissions, the error response is DryRunOperation. Otherwise,
  11240. // it is UnauthorizedOperation.
  11241. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11242. // The ID of one or more of the VPC's security groups. You cannot specify security
  11243. // groups from a different VPC.
  11244. Groups []*string `locationName:"SecurityGroupId" locationNameList:"groupId" type:"list" required:"true"`
  11245. // The ID of an EC2-Classic instance to link to the ClassicLink-enabled VPC.
  11246. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  11247. // The ID of a ClassicLink-enabled VPC.
  11248. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  11249. }
  11250. // String returns the string representation
  11251. func (s AttachClassicLinkVpcInput) String() string {
  11252. return awsutil.Prettify(s)
  11253. }
  11254. // GoString returns the string representation
  11255. func (s AttachClassicLinkVpcInput) GoString() string {
  11256. return s.String()
  11257. }
  11258. // Validate inspects the fields of the type to determine if they are valid.
  11259. func (s *AttachClassicLinkVpcInput) Validate() error {
  11260. invalidParams := request.ErrInvalidParams{Context: "AttachClassicLinkVpcInput"}
  11261. if s.Groups == nil {
  11262. invalidParams.Add(request.NewErrParamRequired("Groups"))
  11263. }
  11264. if s.InstanceId == nil {
  11265. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  11266. }
  11267. if s.VpcId == nil {
  11268. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  11269. }
  11270. if invalidParams.Len() > 0 {
  11271. return invalidParams
  11272. }
  11273. return nil
  11274. }
  11275. // Contains the output of AttachClassicLinkVpc.
  11276. type AttachClassicLinkVpcOutput struct {
  11277. _ struct{} `type:"structure"`
  11278. // Returns true if the request succeeds; otherwise, it returns an error.
  11279. Return *bool `locationName:"return" type:"boolean"`
  11280. }
  11281. // String returns the string representation
  11282. func (s AttachClassicLinkVpcOutput) String() string {
  11283. return awsutil.Prettify(s)
  11284. }
  11285. // GoString returns the string representation
  11286. func (s AttachClassicLinkVpcOutput) GoString() string {
  11287. return s.String()
  11288. }
  11289. // Contains the parameters for AttachInternetGateway.
  11290. type AttachInternetGatewayInput struct {
  11291. _ struct{} `type:"structure"`
  11292. // Checks whether you have the required permissions for the action, without
  11293. // actually making the request, and provides an error response. If you have
  11294. // the required permissions, the error response is DryRunOperation. Otherwise,
  11295. // it is UnauthorizedOperation.
  11296. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11297. // The ID of the Internet gateway.
  11298. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  11299. // The ID of the VPC.
  11300. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  11301. }
  11302. // String returns the string representation
  11303. func (s AttachInternetGatewayInput) String() string {
  11304. return awsutil.Prettify(s)
  11305. }
  11306. // GoString returns the string representation
  11307. func (s AttachInternetGatewayInput) GoString() string {
  11308. return s.String()
  11309. }
  11310. // Validate inspects the fields of the type to determine if they are valid.
  11311. func (s *AttachInternetGatewayInput) Validate() error {
  11312. invalidParams := request.ErrInvalidParams{Context: "AttachInternetGatewayInput"}
  11313. if s.InternetGatewayId == nil {
  11314. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  11315. }
  11316. if s.VpcId == nil {
  11317. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  11318. }
  11319. if invalidParams.Len() > 0 {
  11320. return invalidParams
  11321. }
  11322. return nil
  11323. }
  11324. type AttachInternetGatewayOutput struct {
  11325. _ struct{} `type:"structure"`
  11326. }
  11327. // String returns the string representation
  11328. func (s AttachInternetGatewayOutput) String() string {
  11329. return awsutil.Prettify(s)
  11330. }
  11331. // GoString returns the string representation
  11332. func (s AttachInternetGatewayOutput) GoString() string {
  11333. return s.String()
  11334. }
  11335. // Contains the parameters for AttachNetworkInterface.
  11336. type AttachNetworkInterfaceInput struct {
  11337. _ struct{} `type:"structure"`
  11338. // The index of the device for the network interface attachment.
  11339. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer" required:"true"`
  11340. // Checks whether you have the required permissions for the action, without
  11341. // actually making the request, and provides an error response. If you have
  11342. // the required permissions, the error response is DryRunOperation. Otherwise,
  11343. // it is UnauthorizedOperation.
  11344. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11345. // The ID of the instance.
  11346. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  11347. // The ID of the network interface.
  11348. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  11349. }
  11350. // String returns the string representation
  11351. func (s AttachNetworkInterfaceInput) String() string {
  11352. return awsutil.Prettify(s)
  11353. }
  11354. // GoString returns the string representation
  11355. func (s AttachNetworkInterfaceInput) GoString() string {
  11356. return s.String()
  11357. }
  11358. // Validate inspects the fields of the type to determine if they are valid.
  11359. func (s *AttachNetworkInterfaceInput) Validate() error {
  11360. invalidParams := request.ErrInvalidParams{Context: "AttachNetworkInterfaceInput"}
  11361. if s.DeviceIndex == nil {
  11362. invalidParams.Add(request.NewErrParamRequired("DeviceIndex"))
  11363. }
  11364. if s.InstanceId == nil {
  11365. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  11366. }
  11367. if s.NetworkInterfaceId == nil {
  11368. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  11369. }
  11370. if invalidParams.Len() > 0 {
  11371. return invalidParams
  11372. }
  11373. return nil
  11374. }
  11375. // Contains the output of AttachNetworkInterface.
  11376. type AttachNetworkInterfaceOutput struct {
  11377. _ struct{} `type:"structure"`
  11378. // The ID of the network interface attachment.
  11379. AttachmentId *string `locationName:"attachmentId" type:"string"`
  11380. }
  11381. // String returns the string representation
  11382. func (s AttachNetworkInterfaceOutput) String() string {
  11383. return awsutil.Prettify(s)
  11384. }
  11385. // GoString returns the string representation
  11386. func (s AttachNetworkInterfaceOutput) GoString() string {
  11387. return s.String()
  11388. }
  11389. // Contains the parameters for AttachVolume.
  11390. type AttachVolumeInput struct {
  11391. _ struct{} `type:"structure"`
  11392. // The device name to expose to the instance (for example, /dev/sdh or xvdh).
  11393. Device *string `type:"string" required:"true"`
  11394. // Checks whether you have the required permissions for the action, without
  11395. // actually making the request, and provides an error response. If you have
  11396. // the required permissions, the error response is DryRunOperation. Otherwise,
  11397. // it is UnauthorizedOperation.
  11398. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11399. // The ID of the instance.
  11400. InstanceId *string `type:"string" required:"true"`
  11401. // The ID of the EBS volume. The volume and instance must be within the same
  11402. // Availability Zone.
  11403. VolumeId *string `type:"string" required:"true"`
  11404. }
  11405. // String returns the string representation
  11406. func (s AttachVolumeInput) String() string {
  11407. return awsutil.Prettify(s)
  11408. }
  11409. // GoString returns the string representation
  11410. func (s AttachVolumeInput) GoString() string {
  11411. return s.String()
  11412. }
  11413. // Validate inspects the fields of the type to determine if they are valid.
  11414. func (s *AttachVolumeInput) Validate() error {
  11415. invalidParams := request.ErrInvalidParams{Context: "AttachVolumeInput"}
  11416. if s.Device == nil {
  11417. invalidParams.Add(request.NewErrParamRequired("Device"))
  11418. }
  11419. if s.InstanceId == nil {
  11420. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  11421. }
  11422. if s.VolumeId == nil {
  11423. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  11424. }
  11425. if invalidParams.Len() > 0 {
  11426. return invalidParams
  11427. }
  11428. return nil
  11429. }
  11430. // Contains the parameters for AttachVpnGateway.
  11431. type AttachVpnGatewayInput struct {
  11432. _ struct{} `type:"structure"`
  11433. // Checks whether you have the required permissions for the action, without
  11434. // actually making the request, and provides an error response. If you have
  11435. // the required permissions, the error response is DryRunOperation. Otherwise,
  11436. // it is UnauthorizedOperation.
  11437. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11438. // The ID of the VPC.
  11439. VpcId *string `type:"string" required:"true"`
  11440. // The ID of the virtual private gateway.
  11441. VpnGatewayId *string `type:"string" required:"true"`
  11442. }
  11443. // String returns the string representation
  11444. func (s AttachVpnGatewayInput) String() string {
  11445. return awsutil.Prettify(s)
  11446. }
  11447. // GoString returns the string representation
  11448. func (s AttachVpnGatewayInput) GoString() string {
  11449. return s.String()
  11450. }
  11451. // Validate inspects the fields of the type to determine if they are valid.
  11452. func (s *AttachVpnGatewayInput) Validate() error {
  11453. invalidParams := request.ErrInvalidParams{Context: "AttachVpnGatewayInput"}
  11454. if s.VpcId == nil {
  11455. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  11456. }
  11457. if s.VpnGatewayId == nil {
  11458. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  11459. }
  11460. if invalidParams.Len() > 0 {
  11461. return invalidParams
  11462. }
  11463. return nil
  11464. }
  11465. // Contains the output of AttachVpnGateway.
  11466. type AttachVpnGatewayOutput struct {
  11467. _ struct{} `type:"structure"`
  11468. // Information about the attachment.
  11469. VpcAttachment *VpcAttachment `locationName:"attachment" type:"structure"`
  11470. }
  11471. // String returns the string representation
  11472. func (s AttachVpnGatewayOutput) String() string {
  11473. return awsutil.Prettify(s)
  11474. }
  11475. // GoString returns the string representation
  11476. func (s AttachVpnGatewayOutput) GoString() string {
  11477. return s.String()
  11478. }
  11479. // Describes a value for a resource attribute that is a Boolean value.
  11480. type AttributeBooleanValue struct {
  11481. _ struct{} `type:"structure"`
  11482. // The attribute value. The valid values are true or false.
  11483. Value *bool `locationName:"value" type:"boolean"`
  11484. }
  11485. // String returns the string representation
  11486. func (s AttributeBooleanValue) String() string {
  11487. return awsutil.Prettify(s)
  11488. }
  11489. // GoString returns the string representation
  11490. func (s AttributeBooleanValue) GoString() string {
  11491. return s.String()
  11492. }
  11493. // Describes a value for a resource attribute that is a String.
  11494. type AttributeValue struct {
  11495. _ struct{} `type:"structure"`
  11496. // The attribute value. Note that the value is case-sensitive.
  11497. Value *string `locationName:"value" type:"string"`
  11498. }
  11499. // String returns the string representation
  11500. func (s AttributeValue) String() string {
  11501. return awsutil.Prettify(s)
  11502. }
  11503. // GoString returns the string representation
  11504. func (s AttributeValue) GoString() string {
  11505. return s.String()
  11506. }
  11507. // Contains the parameters for AuthorizeSecurityGroupEgress.
  11508. type AuthorizeSecurityGroupEgressInput struct {
  11509. _ struct{} `type:"structure"`
  11510. // The CIDR IP address range. We recommend that you specify the CIDR range in
  11511. // a set of IP permissions instead.
  11512. CidrIp *string `locationName:"cidrIp" type:"string"`
  11513. // Checks whether you have the required permissions for the action, without
  11514. // actually making the request, and provides an error response. If you have
  11515. // the required permissions, the error response is DryRunOperation. Otherwise,
  11516. // it is UnauthorizedOperation.
  11517. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11518. // The start of port range for the TCP and UDP protocols, or an ICMP type number.
  11519. // We recommend that you specify the port range in a set of IP permissions instead.
  11520. FromPort *int64 `locationName:"fromPort" type:"integer"`
  11521. // The ID of the security group.
  11522. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  11523. // A set of IP permissions. You can't specify a destination security group and
  11524. // a CIDR IP address range.
  11525. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  11526. // The IP protocol name or number. We recommend that you specify the protocol
  11527. // in a set of IP permissions instead.
  11528. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  11529. // The name of a destination security group. To authorize outbound access to
  11530. // a destination security group, we recommend that you use a set of IP permissions
  11531. // instead.
  11532. SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`
  11533. // The AWS account number for a destination security group. To authorize outbound
  11534. // access to a destination security group, we recommend that you use a set of
  11535. // IP permissions instead.
  11536. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`
  11537. // The end of port range for the TCP and UDP protocols, or an ICMP type number.
  11538. // We recommend that you specify the port range in a set of IP permissions instead.
  11539. ToPort *int64 `locationName:"toPort" type:"integer"`
  11540. }
  11541. // String returns the string representation
  11542. func (s AuthorizeSecurityGroupEgressInput) String() string {
  11543. return awsutil.Prettify(s)
  11544. }
  11545. // GoString returns the string representation
  11546. func (s AuthorizeSecurityGroupEgressInput) GoString() string {
  11547. return s.String()
  11548. }
  11549. // Validate inspects the fields of the type to determine if they are valid.
  11550. func (s *AuthorizeSecurityGroupEgressInput) Validate() error {
  11551. invalidParams := request.ErrInvalidParams{Context: "AuthorizeSecurityGroupEgressInput"}
  11552. if s.GroupId == nil {
  11553. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  11554. }
  11555. if invalidParams.Len() > 0 {
  11556. return invalidParams
  11557. }
  11558. return nil
  11559. }
  11560. type AuthorizeSecurityGroupEgressOutput struct {
  11561. _ struct{} `type:"structure"`
  11562. }
  11563. // String returns the string representation
  11564. func (s AuthorizeSecurityGroupEgressOutput) String() string {
  11565. return awsutil.Prettify(s)
  11566. }
  11567. // GoString returns the string representation
  11568. func (s AuthorizeSecurityGroupEgressOutput) GoString() string {
  11569. return s.String()
  11570. }
  11571. // Contains the parameters for AuthorizeSecurityGroupIngress.
  11572. type AuthorizeSecurityGroupIngressInput struct {
  11573. _ struct{} `type:"structure"`
  11574. // The CIDR IP address range. You can't specify this parameter when specifying
  11575. // a source security group.
  11576. CidrIp *string `type:"string"`
  11577. // Checks whether you have the required permissions for the action, without
  11578. // actually making the request, and provides an error response. If you have
  11579. // the required permissions, the error response is DryRunOperation. Otherwise,
  11580. // it is UnauthorizedOperation.
  11581. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11582. // The start of port range for the TCP and UDP protocols, or an ICMP type number.
  11583. // For the ICMP type number, use -1 to specify all ICMP types.
  11584. FromPort *int64 `type:"integer"`
  11585. // The ID of the security group. Required for a nondefault VPC.
  11586. GroupId *string `type:"string"`
  11587. // [EC2-Classic, default VPC] The name of the security group.
  11588. GroupName *string `type:"string"`
  11589. // A set of IP permissions. Can be used to specify multiple rules in a single
  11590. // command.
  11591. IpPermissions []*IpPermission `locationNameList:"item" type:"list"`
  11592. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  11593. // (VPC only) Use -1 to specify all traffic. If you specify -1, traffic on all
  11594. // ports is allowed, regardless of any ports you specify.
  11595. IpProtocol *string `type:"string"`
  11596. // [EC2-Classic, default VPC] The name of the source security group. You can't
  11597. // specify this parameter in combination with the following parameters: the
  11598. // CIDR IP address range, the start of the port range, the IP protocol, and
  11599. // the end of the port range. Creates rules that grant full ICMP, UDP, and TCP
  11600. // access. To create a rule with a specific IP protocol and port range, use
  11601. // a set of IP permissions instead. For EC2-VPC, the source security group must
  11602. // be in the same VPC.
  11603. SourceSecurityGroupName *string `type:"string"`
  11604. // [EC2-Classic] The AWS account number for the source security group, if the
  11605. // source security group is in a different account. You can't specify this parameter
  11606. // in combination with the following parameters: the CIDR IP address range,
  11607. // the IP protocol, the start of the port range, and the end of the port range.
  11608. // Creates rules that grant full ICMP, UDP, and TCP access. To create a rule
  11609. // with a specific IP protocol and port range, use a set of IP permissions instead.
  11610. SourceSecurityGroupOwnerId *string `type:"string"`
  11611. // The end of port range for the TCP and UDP protocols, or an ICMP code number.
  11612. // For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.
  11613. ToPort *int64 `type:"integer"`
  11614. }
  11615. // String returns the string representation
  11616. func (s AuthorizeSecurityGroupIngressInput) String() string {
  11617. return awsutil.Prettify(s)
  11618. }
  11619. // GoString returns the string representation
  11620. func (s AuthorizeSecurityGroupIngressInput) GoString() string {
  11621. return s.String()
  11622. }
  11623. type AuthorizeSecurityGroupIngressOutput struct {
  11624. _ struct{} `type:"structure"`
  11625. }
  11626. // String returns the string representation
  11627. func (s AuthorizeSecurityGroupIngressOutput) String() string {
  11628. return awsutil.Prettify(s)
  11629. }
  11630. // GoString returns the string representation
  11631. func (s AuthorizeSecurityGroupIngressOutput) GoString() string {
  11632. return s.String()
  11633. }
  11634. // Describes an Availability Zone.
  11635. type AvailabilityZone struct {
  11636. _ struct{} `type:"structure"`
  11637. // Any messages about the Availability Zone.
  11638. Messages []*AvailabilityZoneMessage `locationName:"messageSet" locationNameList:"item" type:"list"`
  11639. // The name of the region.
  11640. RegionName *string `locationName:"regionName" type:"string"`
  11641. // The state of the Availability Zone.
  11642. State *string `locationName:"zoneState" type:"string" enum:"AvailabilityZoneState"`
  11643. // The name of the Availability Zone.
  11644. ZoneName *string `locationName:"zoneName" type:"string"`
  11645. }
  11646. // String returns the string representation
  11647. func (s AvailabilityZone) String() string {
  11648. return awsutil.Prettify(s)
  11649. }
  11650. // GoString returns the string representation
  11651. func (s AvailabilityZone) GoString() string {
  11652. return s.String()
  11653. }
  11654. // Describes a message about an Availability Zone.
  11655. type AvailabilityZoneMessage struct {
  11656. _ struct{} `type:"structure"`
  11657. // The message about the Availability Zone.
  11658. Message *string `locationName:"message" type:"string"`
  11659. }
  11660. // String returns the string representation
  11661. func (s AvailabilityZoneMessage) String() string {
  11662. return awsutil.Prettify(s)
  11663. }
  11664. // GoString returns the string representation
  11665. func (s AvailabilityZoneMessage) GoString() string {
  11666. return s.String()
  11667. }
  11668. // The capacity information for instances launched onto the Dedicated host.
  11669. type AvailableCapacity struct {
  11670. _ struct{} `type:"structure"`
  11671. // The total number of instances that the Dedicated host supports.
  11672. AvailableInstanceCapacity []*InstanceCapacity `locationName:"availableInstanceCapacity" locationNameList:"item" type:"list"`
  11673. // The number of vCPUs available on the Dedicated host.
  11674. AvailableVCpus *int64 `locationName:"availableVCpus" type:"integer"`
  11675. }
  11676. // String returns the string representation
  11677. func (s AvailableCapacity) String() string {
  11678. return awsutil.Prettify(s)
  11679. }
  11680. // GoString returns the string representation
  11681. func (s AvailableCapacity) GoString() string {
  11682. return s.String()
  11683. }
  11684. type BlobAttributeValue struct {
  11685. _ struct{} `type:"structure"`
  11686. // Value is automatically base64 encoded/decoded by the SDK.
  11687. Value []byte `locationName:"value" type:"blob"`
  11688. }
  11689. // String returns the string representation
  11690. func (s BlobAttributeValue) String() string {
  11691. return awsutil.Prettify(s)
  11692. }
  11693. // GoString returns the string representation
  11694. func (s BlobAttributeValue) GoString() string {
  11695. return s.String()
  11696. }
  11697. // Describes a block device mapping.
  11698. type BlockDeviceMapping struct {
  11699. _ struct{} `type:"structure"`
  11700. // The device name exposed to the instance (for example, /dev/sdh or xvdh).
  11701. DeviceName *string `locationName:"deviceName" type:"string"`
  11702. // Parameters used to automatically set up EBS volumes when the instance is
  11703. // launched.
  11704. Ebs *EbsBlockDevice `locationName:"ebs" type:"structure"`
  11705. // Suppresses the specified device included in the block device mapping of the
  11706. // AMI.
  11707. NoDevice *string `locationName:"noDevice" type:"string"`
  11708. // The virtual device name (ephemeralN). Instance store volumes are numbered
  11709. // starting from 0. An instance type with 2 available instance store volumes
  11710. // can specify mappings for ephemeral0 and ephemeral1.The number of available
  11711. // instance store volumes depends on the instance type. After you connect to
  11712. // the instance, you must mount the volume.
  11713. //
  11714. // Constraints: For M3 instances, you must specify instance store volumes in
  11715. // the block device mapping for the instance. When you launch an M3 instance,
  11716. // we ignore any instance store volumes specified in the block device mapping
  11717. // for the AMI.
  11718. VirtualName *string `locationName:"virtualName" type:"string"`
  11719. }
  11720. // String returns the string representation
  11721. func (s BlockDeviceMapping) String() string {
  11722. return awsutil.Prettify(s)
  11723. }
  11724. // GoString returns the string representation
  11725. func (s BlockDeviceMapping) GoString() string {
  11726. return s.String()
  11727. }
  11728. // Contains the parameters for BundleInstance.
  11729. type BundleInstanceInput struct {
  11730. _ struct{} `type:"structure"`
  11731. // Checks whether you have the required permissions for the action, without
  11732. // actually making the request, and provides an error response. If you have
  11733. // the required permissions, the error response is DryRunOperation. Otherwise,
  11734. // it is UnauthorizedOperation.
  11735. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11736. // The ID of the instance to bundle.
  11737. //
  11738. // Type: String
  11739. //
  11740. // Default: None
  11741. //
  11742. // Required: Yes
  11743. InstanceId *string `type:"string" required:"true"`
  11744. // The bucket in which to store the AMI. You can specify a bucket that you already
  11745. // own or a new bucket that Amazon EC2 creates on your behalf. If you specify
  11746. // a bucket that belongs to someone else, Amazon EC2 returns an error.
  11747. Storage *Storage `type:"structure" required:"true"`
  11748. }
  11749. // String returns the string representation
  11750. func (s BundleInstanceInput) String() string {
  11751. return awsutil.Prettify(s)
  11752. }
  11753. // GoString returns the string representation
  11754. func (s BundleInstanceInput) GoString() string {
  11755. return s.String()
  11756. }
  11757. // Validate inspects the fields of the type to determine if they are valid.
  11758. func (s *BundleInstanceInput) Validate() error {
  11759. invalidParams := request.ErrInvalidParams{Context: "BundleInstanceInput"}
  11760. if s.InstanceId == nil {
  11761. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  11762. }
  11763. if s.Storage == nil {
  11764. invalidParams.Add(request.NewErrParamRequired("Storage"))
  11765. }
  11766. if invalidParams.Len() > 0 {
  11767. return invalidParams
  11768. }
  11769. return nil
  11770. }
  11771. // Contains the output of BundleInstance.
  11772. type BundleInstanceOutput struct {
  11773. _ struct{} `type:"structure"`
  11774. // Information about the bundle task.
  11775. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
  11776. }
  11777. // String returns the string representation
  11778. func (s BundleInstanceOutput) String() string {
  11779. return awsutil.Prettify(s)
  11780. }
  11781. // GoString returns the string representation
  11782. func (s BundleInstanceOutput) GoString() string {
  11783. return s.String()
  11784. }
  11785. // Describes a bundle task.
  11786. type BundleTask struct {
  11787. _ struct{} `type:"structure"`
  11788. // The ID of the bundle task.
  11789. BundleId *string `locationName:"bundleId" type:"string"`
  11790. // If the task fails, a description of the error.
  11791. BundleTaskError *BundleTaskError `locationName:"error" type:"structure"`
  11792. // The ID of the instance associated with this bundle task.
  11793. InstanceId *string `locationName:"instanceId" type:"string"`
  11794. // The level of task completion, as a percent (for example, 20%).
  11795. Progress *string `locationName:"progress" type:"string"`
  11796. // The time this task started.
  11797. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  11798. // The state of the task.
  11799. State *string `locationName:"state" type:"string" enum:"BundleTaskState"`
  11800. // The Amazon S3 storage locations.
  11801. Storage *Storage `locationName:"storage" type:"structure"`
  11802. // The time of the most recent update for the task.
  11803. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
  11804. }
  11805. // String returns the string representation
  11806. func (s BundleTask) String() string {
  11807. return awsutil.Prettify(s)
  11808. }
  11809. // GoString returns the string representation
  11810. func (s BundleTask) GoString() string {
  11811. return s.String()
  11812. }
  11813. // Describes an error for BundleInstance.
  11814. type BundleTaskError struct {
  11815. _ struct{} `type:"structure"`
  11816. // The error code.
  11817. Code *string `locationName:"code" type:"string"`
  11818. // The error message.
  11819. Message *string `locationName:"message" type:"string"`
  11820. }
  11821. // String returns the string representation
  11822. func (s BundleTaskError) String() string {
  11823. return awsutil.Prettify(s)
  11824. }
  11825. // GoString returns the string representation
  11826. func (s BundleTaskError) GoString() string {
  11827. return s.String()
  11828. }
  11829. // Contains the parameters for CancelBundleTask.
  11830. type CancelBundleTaskInput struct {
  11831. _ struct{} `type:"structure"`
  11832. // The ID of the bundle task.
  11833. BundleId *string `type:"string" required:"true"`
  11834. // Checks whether you have the required permissions for the action, without
  11835. // actually making the request, and provides an error response. If you have
  11836. // the required permissions, the error response is DryRunOperation. Otherwise,
  11837. // it is UnauthorizedOperation.
  11838. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11839. }
  11840. // String returns the string representation
  11841. func (s CancelBundleTaskInput) String() string {
  11842. return awsutil.Prettify(s)
  11843. }
  11844. // GoString returns the string representation
  11845. func (s CancelBundleTaskInput) GoString() string {
  11846. return s.String()
  11847. }
  11848. // Validate inspects the fields of the type to determine if they are valid.
  11849. func (s *CancelBundleTaskInput) Validate() error {
  11850. invalidParams := request.ErrInvalidParams{Context: "CancelBundleTaskInput"}
  11851. if s.BundleId == nil {
  11852. invalidParams.Add(request.NewErrParamRequired("BundleId"))
  11853. }
  11854. if invalidParams.Len() > 0 {
  11855. return invalidParams
  11856. }
  11857. return nil
  11858. }
  11859. // Contains the output of CancelBundleTask.
  11860. type CancelBundleTaskOutput struct {
  11861. _ struct{} `type:"structure"`
  11862. // Information about the bundle task.
  11863. BundleTask *BundleTask `locationName:"bundleInstanceTask" type:"structure"`
  11864. }
  11865. // String returns the string representation
  11866. func (s CancelBundleTaskOutput) String() string {
  11867. return awsutil.Prettify(s)
  11868. }
  11869. // GoString returns the string representation
  11870. func (s CancelBundleTaskOutput) GoString() string {
  11871. return s.String()
  11872. }
  11873. // Contains the parameters for CancelConversionTask.
  11874. type CancelConversionTaskInput struct {
  11875. _ struct{} `type:"structure"`
  11876. // The ID of the conversion task.
  11877. ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"`
  11878. // Checks whether you have the required permissions for the action, without
  11879. // actually making the request, and provides an error response. If you have
  11880. // the required permissions, the error response is DryRunOperation. Otherwise,
  11881. // it is UnauthorizedOperation.
  11882. DryRun *bool `locationName:"dryRun" type:"boolean"`
  11883. // The reason for canceling the conversion task.
  11884. ReasonMessage *string `locationName:"reasonMessage" type:"string"`
  11885. }
  11886. // String returns the string representation
  11887. func (s CancelConversionTaskInput) String() string {
  11888. return awsutil.Prettify(s)
  11889. }
  11890. // GoString returns the string representation
  11891. func (s CancelConversionTaskInput) GoString() string {
  11892. return s.String()
  11893. }
  11894. // Validate inspects the fields of the type to determine if they are valid.
  11895. func (s *CancelConversionTaskInput) Validate() error {
  11896. invalidParams := request.ErrInvalidParams{Context: "CancelConversionTaskInput"}
  11897. if s.ConversionTaskId == nil {
  11898. invalidParams.Add(request.NewErrParamRequired("ConversionTaskId"))
  11899. }
  11900. if invalidParams.Len() > 0 {
  11901. return invalidParams
  11902. }
  11903. return nil
  11904. }
  11905. type CancelConversionTaskOutput struct {
  11906. _ struct{} `type:"structure"`
  11907. }
  11908. // String returns the string representation
  11909. func (s CancelConversionTaskOutput) String() string {
  11910. return awsutil.Prettify(s)
  11911. }
  11912. // GoString returns the string representation
  11913. func (s CancelConversionTaskOutput) GoString() string {
  11914. return s.String()
  11915. }
  11916. // Contains the parameters for CancelExportTask.
  11917. type CancelExportTaskInput struct {
  11918. _ struct{} `type:"structure"`
  11919. // The ID of the export task. This is the ID returned by CreateInstanceExportTask.
  11920. ExportTaskId *string `locationName:"exportTaskId" type:"string" required:"true"`
  11921. }
  11922. // String returns the string representation
  11923. func (s CancelExportTaskInput) String() string {
  11924. return awsutil.Prettify(s)
  11925. }
  11926. // GoString returns the string representation
  11927. func (s CancelExportTaskInput) GoString() string {
  11928. return s.String()
  11929. }
  11930. // Validate inspects the fields of the type to determine if they are valid.
  11931. func (s *CancelExportTaskInput) Validate() error {
  11932. invalidParams := request.ErrInvalidParams{Context: "CancelExportTaskInput"}
  11933. if s.ExportTaskId == nil {
  11934. invalidParams.Add(request.NewErrParamRequired("ExportTaskId"))
  11935. }
  11936. if invalidParams.Len() > 0 {
  11937. return invalidParams
  11938. }
  11939. return nil
  11940. }
  11941. type CancelExportTaskOutput struct {
  11942. _ struct{} `type:"structure"`
  11943. }
  11944. // String returns the string representation
  11945. func (s CancelExportTaskOutput) String() string {
  11946. return awsutil.Prettify(s)
  11947. }
  11948. // GoString returns the string representation
  11949. func (s CancelExportTaskOutput) GoString() string {
  11950. return s.String()
  11951. }
  11952. // Contains the parameters for CancelImportTask.
  11953. type CancelImportTaskInput struct {
  11954. _ struct{} `type:"structure"`
  11955. // The reason for canceling the task.
  11956. CancelReason *string `type:"string"`
  11957. // Checks whether you have the required permissions for the action, without
  11958. // actually making the request, and provides an error response. If you have
  11959. // the required permissions, the error response is DryRunOperation. Otherwise,
  11960. // it is UnauthorizedOperation.
  11961. DryRun *bool `type:"boolean"`
  11962. // The ID of the import image or import snapshot task to be canceled.
  11963. ImportTaskId *string `type:"string"`
  11964. }
  11965. // String returns the string representation
  11966. func (s CancelImportTaskInput) String() string {
  11967. return awsutil.Prettify(s)
  11968. }
  11969. // GoString returns the string representation
  11970. func (s CancelImportTaskInput) GoString() string {
  11971. return s.String()
  11972. }
  11973. // Contains the output for CancelImportTask.
  11974. type CancelImportTaskOutput struct {
  11975. _ struct{} `type:"structure"`
  11976. // The ID of the task being canceled.
  11977. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  11978. // The current state of the task being canceled.
  11979. PreviousState *string `locationName:"previousState" type:"string"`
  11980. // The current state of the task being canceled.
  11981. State *string `locationName:"state" type:"string"`
  11982. }
  11983. // String returns the string representation
  11984. func (s CancelImportTaskOutput) String() string {
  11985. return awsutil.Prettify(s)
  11986. }
  11987. // GoString returns the string representation
  11988. func (s CancelImportTaskOutput) GoString() string {
  11989. return s.String()
  11990. }
  11991. // Contains the parameters for CancelReservedInstancesListing.
  11992. type CancelReservedInstancesListingInput struct {
  11993. _ struct{} `type:"structure"`
  11994. // The ID of the Reserved Instance listing.
  11995. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string" required:"true"`
  11996. }
  11997. // String returns the string representation
  11998. func (s CancelReservedInstancesListingInput) String() string {
  11999. return awsutil.Prettify(s)
  12000. }
  12001. // GoString returns the string representation
  12002. func (s CancelReservedInstancesListingInput) GoString() string {
  12003. return s.String()
  12004. }
  12005. // Validate inspects the fields of the type to determine if they are valid.
  12006. func (s *CancelReservedInstancesListingInput) Validate() error {
  12007. invalidParams := request.ErrInvalidParams{Context: "CancelReservedInstancesListingInput"}
  12008. if s.ReservedInstancesListingId == nil {
  12009. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesListingId"))
  12010. }
  12011. if invalidParams.Len() > 0 {
  12012. return invalidParams
  12013. }
  12014. return nil
  12015. }
  12016. // Contains the output of CancelReservedInstancesListing.
  12017. type CancelReservedInstancesListingOutput struct {
  12018. _ struct{} `type:"structure"`
  12019. // The Reserved Instance listing.
  12020. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  12021. }
  12022. // String returns the string representation
  12023. func (s CancelReservedInstancesListingOutput) String() string {
  12024. return awsutil.Prettify(s)
  12025. }
  12026. // GoString returns the string representation
  12027. func (s CancelReservedInstancesListingOutput) GoString() string {
  12028. return s.String()
  12029. }
  12030. // Describes a Spot fleet error.
  12031. type CancelSpotFleetRequestsError struct {
  12032. _ struct{} `type:"structure"`
  12033. // The error code.
  12034. Code *string `locationName:"code" type:"string" required:"true" enum:"CancelBatchErrorCode"`
  12035. // The description for the error code.
  12036. Message *string `locationName:"message" type:"string" required:"true"`
  12037. }
  12038. // String returns the string representation
  12039. func (s CancelSpotFleetRequestsError) String() string {
  12040. return awsutil.Prettify(s)
  12041. }
  12042. // GoString returns the string representation
  12043. func (s CancelSpotFleetRequestsError) GoString() string {
  12044. return s.String()
  12045. }
  12046. // Describes a Spot fleet request that was not successfully canceled.
  12047. type CancelSpotFleetRequestsErrorItem struct {
  12048. _ struct{} `type:"structure"`
  12049. // The error.
  12050. Error *CancelSpotFleetRequestsError `locationName:"error" type:"structure" required:"true"`
  12051. // The ID of the Spot fleet request.
  12052. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  12053. }
  12054. // String returns the string representation
  12055. func (s CancelSpotFleetRequestsErrorItem) String() string {
  12056. return awsutil.Prettify(s)
  12057. }
  12058. // GoString returns the string representation
  12059. func (s CancelSpotFleetRequestsErrorItem) GoString() string {
  12060. return s.String()
  12061. }
  12062. // Contains the parameters for CancelSpotFleetRequests.
  12063. type CancelSpotFleetRequestsInput struct {
  12064. _ struct{} `type:"structure"`
  12065. // Checks whether you have the required permissions for the action, without
  12066. // actually making the request, and provides an error response. If you have
  12067. // the required permissions, the error response is DryRunOperation. Otherwise,
  12068. // it is UnauthorizedOperation.
  12069. DryRun *bool `locationName:"dryRun" type:"boolean"`
  12070. // The IDs of the Spot fleet requests.
  12071. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list" required:"true"`
  12072. // Indicates whether to terminate instances for a Spot fleet request if it is
  12073. // canceled successfully.
  12074. TerminateInstances *bool `locationName:"terminateInstances" type:"boolean" required:"true"`
  12075. }
  12076. // String returns the string representation
  12077. func (s CancelSpotFleetRequestsInput) String() string {
  12078. return awsutil.Prettify(s)
  12079. }
  12080. // GoString returns the string representation
  12081. func (s CancelSpotFleetRequestsInput) GoString() string {
  12082. return s.String()
  12083. }
  12084. // Validate inspects the fields of the type to determine if they are valid.
  12085. func (s *CancelSpotFleetRequestsInput) Validate() error {
  12086. invalidParams := request.ErrInvalidParams{Context: "CancelSpotFleetRequestsInput"}
  12087. if s.SpotFleetRequestIds == nil {
  12088. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestIds"))
  12089. }
  12090. if s.TerminateInstances == nil {
  12091. invalidParams.Add(request.NewErrParamRequired("TerminateInstances"))
  12092. }
  12093. if invalidParams.Len() > 0 {
  12094. return invalidParams
  12095. }
  12096. return nil
  12097. }
  12098. // Contains the output of CancelSpotFleetRequests.
  12099. type CancelSpotFleetRequestsOutput struct {
  12100. _ struct{} `type:"structure"`
  12101. // Information about the Spot fleet requests that are successfully canceled.
  12102. SuccessfulFleetRequests []*CancelSpotFleetRequestsSuccessItem `locationName:"successfulFleetRequestSet" locationNameList:"item" type:"list"`
  12103. // Information about the Spot fleet requests that are not successfully canceled.
  12104. UnsuccessfulFleetRequests []*CancelSpotFleetRequestsErrorItem `locationName:"unsuccessfulFleetRequestSet" locationNameList:"item" type:"list"`
  12105. }
  12106. // String returns the string representation
  12107. func (s CancelSpotFleetRequestsOutput) String() string {
  12108. return awsutil.Prettify(s)
  12109. }
  12110. // GoString returns the string representation
  12111. func (s CancelSpotFleetRequestsOutput) GoString() string {
  12112. return s.String()
  12113. }
  12114. // Describes a Spot fleet request that was successfully canceled.
  12115. type CancelSpotFleetRequestsSuccessItem struct {
  12116. _ struct{} `type:"structure"`
  12117. // The current state of the Spot fleet request.
  12118. CurrentSpotFleetRequestState *string `locationName:"currentSpotFleetRequestState" type:"string" required:"true" enum:"BatchState"`
  12119. // The previous state of the Spot fleet request.
  12120. PreviousSpotFleetRequestState *string `locationName:"previousSpotFleetRequestState" type:"string" required:"true" enum:"BatchState"`
  12121. // The ID of the Spot fleet request.
  12122. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  12123. }
  12124. // String returns the string representation
  12125. func (s CancelSpotFleetRequestsSuccessItem) String() string {
  12126. return awsutil.Prettify(s)
  12127. }
  12128. // GoString returns the string representation
  12129. func (s CancelSpotFleetRequestsSuccessItem) GoString() string {
  12130. return s.String()
  12131. }
  12132. // Contains the parameters for CancelSpotInstanceRequests.
  12133. type CancelSpotInstanceRequestsInput struct {
  12134. _ struct{} `type:"structure"`
  12135. // Checks whether you have the required permissions for the action, without
  12136. // actually making the request, and provides an error response. If you have
  12137. // the required permissions, the error response is DryRunOperation. Otherwise,
  12138. // it is UnauthorizedOperation.
  12139. DryRun *bool `locationName:"dryRun" type:"boolean"`
  12140. // One or more Spot instance request IDs.
  12141. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list" required:"true"`
  12142. }
  12143. // String returns the string representation
  12144. func (s CancelSpotInstanceRequestsInput) String() string {
  12145. return awsutil.Prettify(s)
  12146. }
  12147. // GoString returns the string representation
  12148. func (s CancelSpotInstanceRequestsInput) GoString() string {
  12149. return s.String()
  12150. }
  12151. // Validate inspects the fields of the type to determine if they are valid.
  12152. func (s *CancelSpotInstanceRequestsInput) Validate() error {
  12153. invalidParams := request.ErrInvalidParams{Context: "CancelSpotInstanceRequestsInput"}
  12154. if s.SpotInstanceRequestIds == nil {
  12155. invalidParams.Add(request.NewErrParamRequired("SpotInstanceRequestIds"))
  12156. }
  12157. if invalidParams.Len() > 0 {
  12158. return invalidParams
  12159. }
  12160. return nil
  12161. }
  12162. // Contains the output of CancelSpotInstanceRequests.
  12163. type CancelSpotInstanceRequestsOutput struct {
  12164. _ struct{} `type:"structure"`
  12165. // One or more Spot instance requests.
  12166. CancelledSpotInstanceRequests []*CancelledSpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  12167. }
  12168. // String returns the string representation
  12169. func (s CancelSpotInstanceRequestsOutput) String() string {
  12170. return awsutil.Prettify(s)
  12171. }
  12172. // GoString returns the string representation
  12173. func (s CancelSpotInstanceRequestsOutput) GoString() string {
  12174. return s.String()
  12175. }
  12176. // Describes a request to cancel a Spot instance.
  12177. type CancelledSpotInstanceRequest struct {
  12178. _ struct{} `type:"structure"`
  12179. // The ID of the Spot instance request.
  12180. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  12181. // The state of the Spot instance request.
  12182. State *string `locationName:"state" type:"string" enum:"CancelSpotInstanceRequestState"`
  12183. }
  12184. // String returns the string representation
  12185. func (s CancelledSpotInstanceRequest) String() string {
  12186. return awsutil.Prettify(s)
  12187. }
  12188. // GoString returns the string representation
  12189. func (s CancelledSpotInstanceRequest) GoString() string {
  12190. return s.String()
  12191. }
  12192. // Describes the ClassicLink DNS support status of a VPC.
  12193. type ClassicLinkDnsSupport struct {
  12194. _ struct{} `type:"structure"`
  12195. // Indicates whether ClassicLink DNS support is enabled for the VPC.
  12196. ClassicLinkDnsSupported *bool `locationName:"classicLinkDnsSupported" type:"boolean"`
  12197. // The ID of the VPC.
  12198. VpcId *string `locationName:"vpcId" type:"string"`
  12199. }
  12200. // String returns the string representation
  12201. func (s ClassicLinkDnsSupport) String() string {
  12202. return awsutil.Prettify(s)
  12203. }
  12204. // GoString returns the string representation
  12205. func (s ClassicLinkDnsSupport) GoString() string {
  12206. return s.String()
  12207. }
  12208. // Describes a linked EC2-Classic instance.
  12209. type ClassicLinkInstance struct {
  12210. _ struct{} `type:"structure"`
  12211. // A list of security groups.
  12212. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  12213. // The ID of the instance.
  12214. InstanceId *string `locationName:"instanceId" type:"string"`
  12215. // Any tags assigned to the instance.
  12216. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  12217. // The ID of the VPC.
  12218. VpcId *string `locationName:"vpcId" type:"string"`
  12219. }
  12220. // String returns the string representation
  12221. func (s ClassicLinkInstance) String() string {
  12222. return awsutil.Prettify(s)
  12223. }
  12224. // GoString returns the string representation
  12225. func (s ClassicLinkInstance) GoString() string {
  12226. return s.String()
  12227. }
  12228. // Describes the client-specific data.
  12229. type ClientData struct {
  12230. _ struct{} `type:"structure"`
  12231. // A user-defined comment about the disk upload.
  12232. Comment *string `type:"string"`
  12233. // The time that the disk upload ends.
  12234. UploadEnd *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  12235. // The size of the uploaded disk image, in GiB.
  12236. UploadSize *float64 `type:"double"`
  12237. // The time that the disk upload starts.
  12238. UploadStart *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  12239. }
  12240. // String returns the string representation
  12241. func (s ClientData) String() string {
  12242. return awsutil.Prettify(s)
  12243. }
  12244. // GoString returns the string representation
  12245. func (s ClientData) GoString() string {
  12246. return s.String()
  12247. }
  12248. // Contains the parameters for ConfirmProductInstance.
  12249. type ConfirmProductInstanceInput struct {
  12250. _ struct{} `type:"structure"`
  12251. // Checks whether you have the required permissions for the action, without
  12252. // actually making the request, and provides an error response. If you have
  12253. // the required permissions, the error response is DryRunOperation. Otherwise,
  12254. // it is UnauthorizedOperation.
  12255. DryRun *bool `locationName:"dryRun" type:"boolean"`
  12256. // The ID of the instance.
  12257. InstanceId *string `type:"string" required:"true"`
  12258. // The product code. This must be a product code that you own.
  12259. ProductCode *string `type:"string" required:"true"`
  12260. }
  12261. // String returns the string representation
  12262. func (s ConfirmProductInstanceInput) String() string {
  12263. return awsutil.Prettify(s)
  12264. }
  12265. // GoString returns the string representation
  12266. func (s ConfirmProductInstanceInput) GoString() string {
  12267. return s.String()
  12268. }
  12269. // Validate inspects the fields of the type to determine if they are valid.
  12270. func (s *ConfirmProductInstanceInput) Validate() error {
  12271. invalidParams := request.ErrInvalidParams{Context: "ConfirmProductInstanceInput"}
  12272. if s.InstanceId == nil {
  12273. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  12274. }
  12275. if s.ProductCode == nil {
  12276. invalidParams.Add(request.NewErrParamRequired("ProductCode"))
  12277. }
  12278. if invalidParams.Len() > 0 {
  12279. return invalidParams
  12280. }
  12281. return nil
  12282. }
  12283. // Contains the output of ConfirmProductInstance.
  12284. type ConfirmProductInstanceOutput struct {
  12285. _ struct{} `type:"structure"`
  12286. // The AWS account ID of the instance owner. This is only present if the product
  12287. // code is attached to the instance.
  12288. OwnerId *string `locationName:"ownerId" type:"string"`
  12289. // The return value of the request. Returns true if the specified product code
  12290. // is owned by the requester and associated with the specified instance.
  12291. Return *bool `locationName:"return" type:"boolean"`
  12292. }
  12293. // String returns the string representation
  12294. func (s ConfirmProductInstanceOutput) String() string {
  12295. return awsutil.Prettify(s)
  12296. }
  12297. // GoString returns the string representation
  12298. func (s ConfirmProductInstanceOutput) GoString() string {
  12299. return s.String()
  12300. }
  12301. // Describes a conversion task.
  12302. type ConversionTask struct {
  12303. _ struct{} `type:"structure"`
  12304. // The ID of the conversion task.
  12305. ConversionTaskId *string `locationName:"conversionTaskId" type:"string" required:"true"`
  12306. // The time when the task expires. If the upload isn't complete before the expiration
  12307. // time, we automatically cancel the task.
  12308. ExpirationTime *string `locationName:"expirationTime" type:"string"`
  12309. // If the task is for importing an instance, this contains information about
  12310. // the import instance task.
  12311. ImportInstance *ImportInstanceTaskDetails `locationName:"importInstance" type:"structure"`
  12312. // If the task is for importing a volume, this contains information about the
  12313. // import volume task.
  12314. ImportVolume *ImportVolumeTaskDetails `locationName:"importVolume" type:"structure"`
  12315. // The state of the conversion task.
  12316. State *string `locationName:"state" type:"string" required:"true" enum:"ConversionTaskState"`
  12317. // The status message related to the conversion task.
  12318. StatusMessage *string `locationName:"statusMessage" type:"string"`
  12319. // Any tags assigned to the task.
  12320. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  12321. }
  12322. // String returns the string representation
  12323. func (s ConversionTask) String() string {
  12324. return awsutil.Prettify(s)
  12325. }
  12326. // GoString returns the string representation
  12327. func (s ConversionTask) GoString() string {
  12328. return s.String()
  12329. }
  12330. // Contains the parameters for CopyImage.
  12331. type CopyImageInput struct {
  12332. _ struct{} `type:"structure"`
  12333. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  12334. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  12335. // in the Amazon Elastic Compute Cloud User Guide.
  12336. ClientToken *string `type:"string"`
  12337. // A description for the new AMI in the destination region.
  12338. Description *string `type:"string"`
  12339. // Checks whether you have the required permissions for the action, without
  12340. // actually making the request, and provides an error response. If you have
  12341. // the required permissions, the error response is DryRunOperation. Otherwise,
  12342. // it is UnauthorizedOperation.
  12343. DryRun *bool `locationName:"dryRun" type:"boolean"`
  12344. // Specifies whether the destination snapshots of the copied image should be
  12345. // encrypted. The default CMK for EBS is used unless a non-default AWS Key Management
  12346. // Service (AWS KMS) CMK is specified with KmsKeyId. For more information, see
  12347. // Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  12348. // in the Amazon Elastic Compute Cloud User Guide.
  12349. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  12350. // The full ARN of the AWS Key Management Service (AWS KMS) CMK to use when
  12351. // encrypting the snapshots of an image during a copy operation. This parameter
  12352. // is only required if you want to use a non-default CMK; if this parameter
  12353. // is not specified, the default CMK for EBS is used. The ARN contains the arn:aws:kms
  12354. // namespace, followed by the region of the CMK, the AWS account ID of the CMK
  12355. // owner, the key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  12356. // The specified CMK must exist in the region that the snapshot is being copied
  12357. // to. If a KmsKeyId is specified, the Encrypted flag must also be set.
  12358. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  12359. // The name of the new AMI in the destination region.
  12360. Name *string `type:"string" required:"true"`
  12361. // The ID of the AMI to copy.
  12362. SourceImageId *string `type:"string" required:"true"`
  12363. // The name of the region that contains the AMI to copy.
  12364. SourceRegion *string `type:"string" required:"true"`
  12365. }
  12366. // String returns the string representation
  12367. func (s CopyImageInput) String() string {
  12368. return awsutil.Prettify(s)
  12369. }
  12370. // GoString returns the string representation
  12371. func (s CopyImageInput) GoString() string {
  12372. return s.String()
  12373. }
  12374. // Validate inspects the fields of the type to determine if they are valid.
  12375. func (s *CopyImageInput) Validate() error {
  12376. invalidParams := request.ErrInvalidParams{Context: "CopyImageInput"}
  12377. if s.Name == nil {
  12378. invalidParams.Add(request.NewErrParamRequired("Name"))
  12379. }
  12380. if s.SourceImageId == nil {
  12381. invalidParams.Add(request.NewErrParamRequired("SourceImageId"))
  12382. }
  12383. if s.SourceRegion == nil {
  12384. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  12385. }
  12386. if invalidParams.Len() > 0 {
  12387. return invalidParams
  12388. }
  12389. return nil
  12390. }
  12391. // Contains the output of CopyImage.
  12392. type CopyImageOutput struct {
  12393. _ struct{} `type:"structure"`
  12394. // The ID of the new AMI.
  12395. ImageId *string `locationName:"imageId" type:"string"`
  12396. }
  12397. // String returns the string representation
  12398. func (s CopyImageOutput) String() string {
  12399. return awsutil.Prettify(s)
  12400. }
  12401. // GoString returns the string representation
  12402. func (s CopyImageOutput) GoString() string {
  12403. return s.String()
  12404. }
  12405. // Contains the parameters for CopySnapshot.
  12406. type CopySnapshotInput struct {
  12407. _ struct{} `type:"structure"`
  12408. // A description for the EBS snapshot.
  12409. Description *string `type:"string"`
  12410. // The destination region to use in the PresignedUrl parameter of a snapshot
  12411. // copy operation. This parameter is only valid for specifying the destination
  12412. // region in a PresignedUrl parameter, where it is required.
  12413. //
  12414. // CopySnapshot sends the snapshot copy to the regional endpoint that you
  12415. // send the HTTP request to, such as ec2.us-east-1.amazonaws.com (in the AWS
  12416. // CLI, this is specified with the --region parameter or the default region
  12417. // in your AWS configuration file).
  12418. DestinationRegion *string `locationName:"destinationRegion" type:"string"`
  12419. // Checks whether you have the required permissions for the action, without
  12420. // actually making the request, and provides an error response. If you have
  12421. // the required permissions, the error response is DryRunOperation. Otherwise,
  12422. // it is UnauthorizedOperation.
  12423. DryRun *bool `locationName:"dryRun" type:"boolean"`
  12424. // Specifies whether the destination snapshot should be encrypted. You can encrypt
  12425. // a copy of an unencrypted snapshot using this flag, but you cannot use it
  12426. // to create an unencrypted copy from an encrypted snapshot. Your default CMK
  12427. // for EBS is used unless a non-default AWS Key Management Service (AWS KMS)
  12428. // CMK is specified with KmsKeyId. For more information, see Amazon EBS Encryption
  12429. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in
  12430. // the Amazon Elastic Compute Cloud User Guide.
  12431. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  12432. // The full ARN of the AWS Key Management Service (AWS KMS) CMK to use when
  12433. // creating the snapshot copy. This parameter is only required if you want to
  12434. // use a non-default CMK; if this parameter is not specified, the default CMK
  12435. // for EBS is used. The ARN contains the arn:aws:kms namespace, followed by
  12436. // the region of the CMK, the AWS account ID of the CMK owner, the key namespace,
  12437. // and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  12438. // The specified CMK must exist in the region that the snapshot is being copied
  12439. // to. If a KmsKeyId is specified, the Encrypted flag must also be set.
  12440. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  12441. // The pre-signed URL that facilitates copying an encrypted snapshot. This parameter
  12442. // is only required when copying an encrypted snapshot with the Amazon EC2 Query
  12443. // API; it is available as an optional parameter in all other cases. The PresignedUrl
  12444. // should use the snapshot source endpoint, the CopySnapshot action, and include
  12445. // the SourceRegion, SourceSnapshotId, and DestinationRegion parameters. The
  12446. // PresignedUrl must be signed using AWS Signature Version 4. Because EBS snapshots
  12447. // are stored in Amazon S3, the signing algorithm for this parameter uses the
  12448. // same logic that is described in Authenticating Requests by Using Query Parameters
  12449. // (AWS Signature Version 4) (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
  12450. // in the Amazon Simple Storage Service API Reference. An invalid or improperly
  12451. // signed PresignedUrl will cause the copy operation to fail asynchronously,
  12452. // and the snapshot will move to an error state.
  12453. PresignedUrl *string `locationName:"presignedUrl" type:"string"`
  12454. // The ID of the region that contains the snapshot to be copied.
  12455. SourceRegion *string `type:"string" required:"true"`
  12456. // The ID of the EBS snapshot to copy.
  12457. SourceSnapshotId *string `type:"string" required:"true"`
  12458. }
  12459. // String returns the string representation
  12460. func (s CopySnapshotInput) String() string {
  12461. return awsutil.Prettify(s)
  12462. }
  12463. // GoString returns the string representation
  12464. func (s CopySnapshotInput) GoString() string {
  12465. return s.String()
  12466. }
  12467. // Validate inspects the fields of the type to determine if they are valid.
  12468. func (s *CopySnapshotInput) Validate() error {
  12469. invalidParams := request.ErrInvalidParams{Context: "CopySnapshotInput"}
  12470. if s.SourceRegion == nil {
  12471. invalidParams.Add(request.NewErrParamRequired("SourceRegion"))
  12472. }
  12473. if s.SourceSnapshotId == nil {
  12474. invalidParams.Add(request.NewErrParamRequired("SourceSnapshotId"))
  12475. }
  12476. if invalidParams.Len() > 0 {
  12477. return invalidParams
  12478. }
  12479. return nil
  12480. }
  12481. // Contains the output of CopySnapshot.
  12482. type CopySnapshotOutput struct {
  12483. _ struct{} `type:"structure"`
  12484. // The ID of the new snapshot.
  12485. SnapshotId *string `locationName:"snapshotId" type:"string"`
  12486. }
  12487. // String returns the string representation
  12488. func (s CopySnapshotOutput) String() string {
  12489. return awsutil.Prettify(s)
  12490. }
  12491. // GoString returns the string representation
  12492. func (s CopySnapshotOutput) GoString() string {
  12493. return s.String()
  12494. }
  12495. // Contains the parameters for CreateCustomerGateway.
  12496. type CreateCustomerGatewayInput struct {
  12497. _ struct{} `type:"structure"`
  12498. // For devices that support BGP, the customer gateway's BGP ASN.
  12499. //
  12500. // Default: 65000
  12501. BgpAsn *int64 `type:"integer" required:"true"`
  12502. // Checks whether you have the required permissions for the action, without
  12503. // actually making the request, and provides an error response. If you have
  12504. // the required permissions, the error response is DryRunOperation. Otherwise,
  12505. // it is UnauthorizedOperation.
  12506. DryRun *bool `locationName:"dryRun" type:"boolean"`
  12507. // The Internet-routable IP address for the customer gateway's outside interface.
  12508. // The address must be static.
  12509. PublicIp *string `locationName:"IpAddress" type:"string" required:"true"`
  12510. // The type of VPN connection that this customer gateway supports (ipsec.1).
  12511. Type *string `type:"string" required:"true" enum:"GatewayType"`
  12512. }
  12513. // String returns the string representation
  12514. func (s CreateCustomerGatewayInput) String() string {
  12515. return awsutil.Prettify(s)
  12516. }
  12517. // GoString returns the string representation
  12518. func (s CreateCustomerGatewayInput) GoString() string {
  12519. return s.String()
  12520. }
  12521. // Validate inspects the fields of the type to determine if they are valid.
  12522. func (s *CreateCustomerGatewayInput) Validate() error {
  12523. invalidParams := request.ErrInvalidParams{Context: "CreateCustomerGatewayInput"}
  12524. if s.BgpAsn == nil {
  12525. invalidParams.Add(request.NewErrParamRequired("BgpAsn"))
  12526. }
  12527. if s.PublicIp == nil {
  12528. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  12529. }
  12530. if s.Type == nil {
  12531. invalidParams.Add(request.NewErrParamRequired("Type"))
  12532. }
  12533. if invalidParams.Len() > 0 {
  12534. return invalidParams
  12535. }
  12536. return nil
  12537. }
  12538. // Contains the output of CreateCustomerGateway.
  12539. type CreateCustomerGatewayOutput struct {
  12540. _ struct{} `type:"structure"`
  12541. // Information about the customer gateway.
  12542. CustomerGateway *CustomerGateway `locationName:"customerGateway" type:"structure"`
  12543. }
  12544. // String returns the string representation
  12545. func (s CreateCustomerGatewayOutput) String() string {
  12546. return awsutil.Prettify(s)
  12547. }
  12548. // GoString returns the string representation
  12549. func (s CreateCustomerGatewayOutput) GoString() string {
  12550. return s.String()
  12551. }
  12552. // Contains the parameters for CreateDhcpOptions.
  12553. type CreateDhcpOptionsInput struct {
  12554. _ struct{} `type:"structure"`
  12555. // A DHCP configuration option.
  12556. DhcpConfigurations []*NewDhcpConfiguration `locationName:"dhcpConfiguration" locationNameList:"item" type:"list" required:"true"`
  12557. // Checks whether you have the required permissions for the action, without
  12558. // actually making the request, and provides an error response. If you have
  12559. // the required permissions, the error response is DryRunOperation. Otherwise,
  12560. // it is UnauthorizedOperation.
  12561. DryRun *bool `locationName:"dryRun" type:"boolean"`
  12562. }
  12563. // String returns the string representation
  12564. func (s CreateDhcpOptionsInput) String() string {
  12565. return awsutil.Prettify(s)
  12566. }
  12567. // GoString returns the string representation
  12568. func (s CreateDhcpOptionsInput) GoString() string {
  12569. return s.String()
  12570. }
  12571. // Validate inspects the fields of the type to determine if they are valid.
  12572. func (s *CreateDhcpOptionsInput) Validate() error {
  12573. invalidParams := request.ErrInvalidParams{Context: "CreateDhcpOptionsInput"}
  12574. if s.DhcpConfigurations == nil {
  12575. invalidParams.Add(request.NewErrParamRequired("DhcpConfigurations"))
  12576. }
  12577. if invalidParams.Len() > 0 {
  12578. return invalidParams
  12579. }
  12580. return nil
  12581. }
  12582. // Contains the output of CreateDhcpOptions.
  12583. type CreateDhcpOptionsOutput struct {
  12584. _ struct{} `type:"structure"`
  12585. // A set of DHCP options.
  12586. DhcpOptions *DhcpOptions `locationName:"dhcpOptions" type:"structure"`
  12587. }
  12588. // String returns the string representation
  12589. func (s CreateDhcpOptionsOutput) String() string {
  12590. return awsutil.Prettify(s)
  12591. }
  12592. // GoString returns the string representation
  12593. func (s CreateDhcpOptionsOutput) GoString() string {
  12594. return s.String()
  12595. }
  12596. // Contains the parameters for CreateFlowLogs.
  12597. type CreateFlowLogsInput struct {
  12598. _ struct{} `type:"structure"`
  12599. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  12600. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html).
  12601. ClientToken *string `type:"string"`
  12602. // The ARN for the IAM role that's used to post flow logs to a CloudWatch Logs
  12603. // log group.
  12604. DeliverLogsPermissionArn *string `type:"string" required:"true"`
  12605. // The name of the CloudWatch log group.
  12606. LogGroupName *string `type:"string" required:"true"`
  12607. // One or more subnet, network interface, or VPC IDs.
  12608. //
  12609. // Constraints: Maximum of 1000 resources
  12610. ResourceIds []*string `locationName:"ResourceId" locationNameList:"item" type:"list" required:"true"`
  12611. // The type of resource on which to create the flow log.
  12612. ResourceType *string `type:"string" required:"true" enum:"FlowLogsResourceType"`
  12613. // The type of traffic to log.
  12614. TrafficType *string `type:"string" required:"true" enum:"TrafficType"`
  12615. }
  12616. // String returns the string representation
  12617. func (s CreateFlowLogsInput) String() string {
  12618. return awsutil.Prettify(s)
  12619. }
  12620. // GoString returns the string representation
  12621. func (s CreateFlowLogsInput) GoString() string {
  12622. return s.String()
  12623. }
  12624. // Validate inspects the fields of the type to determine if they are valid.
  12625. func (s *CreateFlowLogsInput) Validate() error {
  12626. invalidParams := request.ErrInvalidParams{Context: "CreateFlowLogsInput"}
  12627. if s.DeliverLogsPermissionArn == nil {
  12628. invalidParams.Add(request.NewErrParamRequired("DeliverLogsPermissionArn"))
  12629. }
  12630. if s.LogGroupName == nil {
  12631. invalidParams.Add(request.NewErrParamRequired("LogGroupName"))
  12632. }
  12633. if s.ResourceIds == nil {
  12634. invalidParams.Add(request.NewErrParamRequired("ResourceIds"))
  12635. }
  12636. if s.ResourceType == nil {
  12637. invalidParams.Add(request.NewErrParamRequired("ResourceType"))
  12638. }
  12639. if s.TrafficType == nil {
  12640. invalidParams.Add(request.NewErrParamRequired("TrafficType"))
  12641. }
  12642. if invalidParams.Len() > 0 {
  12643. return invalidParams
  12644. }
  12645. return nil
  12646. }
  12647. // Contains the output of CreateFlowLogs.
  12648. type CreateFlowLogsOutput struct {
  12649. _ struct{} `type:"structure"`
  12650. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  12651. // the request.
  12652. ClientToken *string `locationName:"clientToken" type:"string"`
  12653. // The IDs of the flow logs.
  12654. FlowLogIds []*string `locationName:"flowLogIdSet" locationNameList:"item" type:"list"`
  12655. // Information about the flow logs that could not be created successfully.
  12656. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  12657. }
  12658. // String returns the string representation
  12659. func (s CreateFlowLogsOutput) String() string {
  12660. return awsutil.Prettify(s)
  12661. }
  12662. // GoString returns the string representation
  12663. func (s CreateFlowLogsOutput) GoString() string {
  12664. return s.String()
  12665. }
  12666. // Contains the parameters for CreateImage.
  12667. type CreateImageInput struct {
  12668. _ struct{} `type:"structure"`
  12669. // Information about one or more block device mappings.
  12670. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  12671. // A description for the new image.
  12672. Description *string `locationName:"description" type:"string"`
  12673. // Checks whether you have the required permissions for the action, without
  12674. // actually making the request, and provides an error response. If you have
  12675. // the required permissions, the error response is DryRunOperation. Otherwise,
  12676. // it is UnauthorizedOperation.
  12677. DryRun *bool `locationName:"dryRun" type:"boolean"`
  12678. // The ID of the instance.
  12679. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  12680. // A name for the new image.
  12681. //
  12682. // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
  12683. // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
  12684. // at-signs (@), or underscores(_)
  12685. Name *string `locationName:"name" type:"string" required:"true"`
  12686. // By default, Amazon EC2 attempts to shut down and reboot the instance before
  12687. // creating the image. If the 'No Reboot' option is set, Amazon EC2 doesn't
  12688. // shut down the instance before creating the image. When this option is used,
  12689. // file system integrity on the created image can't be guaranteed.
  12690. NoReboot *bool `locationName:"noReboot" type:"boolean"`
  12691. }
  12692. // String returns the string representation
  12693. func (s CreateImageInput) String() string {
  12694. return awsutil.Prettify(s)
  12695. }
  12696. // GoString returns the string representation
  12697. func (s CreateImageInput) GoString() string {
  12698. return s.String()
  12699. }
  12700. // Validate inspects the fields of the type to determine if they are valid.
  12701. func (s *CreateImageInput) Validate() error {
  12702. invalidParams := request.ErrInvalidParams{Context: "CreateImageInput"}
  12703. if s.InstanceId == nil {
  12704. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  12705. }
  12706. if s.Name == nil {
  12707. invalidParams.Add(request.NewErrParamRequired("Name"))
  12708. }
  12709. if invalidParams.Len() > 0 {
  12710. return invalidParams
  12711. }
  12712. return nil
  12713. }
  12714. // Contains the output of CreateImage.
  12715. type CreateImageOutput struct {
  12716. _ struct{} `type:"structure"`
  12717. // The ID of the new AMI.
  12718. ImageId *string `locationName:"imageId" type:"string"`
  12719. }
  12720. // String returns the string representation
  12721. func (s CreateImageOutput) String() string {
  12722. return awsutil.Prettify(s)
  12723. }
  12724. // GoString returns the string representation
  12725. func (s CreateImageOutput) GoString() string {
  12726. return s.String()
  12727. }
  12728. // Contains the parameters for CreateInstanceExportTask.
  12729. type CreateInstanceExportTaskInput struct {
  12730. _ struct{} `type:"structure"`
  12731. // A description for the conversion task or the resource being exported. The
  12732. // maximum length is 255 bytes.
  12733. Description *string `locationName:"description" type:"string"`
  12734. // The format and location for an instance export task.
  12735. ExportToS3Task *ExportToS3TaskSpecification `locationName:"exportToS3" type:"structure"`
  12736. // The ID of the instance.
  12737. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  12738. // The target virtualization environment.
  12739. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"`
  12740. }
  12741. // String returns the string representation
  12742. func (s CreateInstanceExportTaskInput) String() string {
  12743. return awsutil.Prettify(s)
  12744. }
  12745. // GoString returns the string representation
  12746. func (s CreateInstanceExportTaskInput) GoString() string {
  12747. return s.String()
  12748. }
  12749. // Validate inspects the fields of the type to determine if they are valid.
  12750. func (s *CreateInstanceExportTaskInput) Validate() error {
  12751. invalidParams := request.ErrInvalidParams{Context: "CreateInstanceExportTaskInput"}
  12752. if s.InstanceId == nil {
  12753. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  12754. }
  12755. if invalidParams.Len() > 0 {
  12756. return invalidParams
  12757. }
  12758. return nil
  12759. }
  12760. // Contains the output for CreateInstanceExportTask.
  12761. type CreateInstanceExportTaskOutput struct {
  12762. _ struct{} `type:"structure"`
  12763. // Information about the instance export task.
  12764. ExportTask *ExportTask `locationName:"exportTask" type:"structure"`
  12765. }
  12766. // String returns the string representation
  12767. func (s CreateInstanceExportTaskOutput) String() string {
  12768. return awsutil.Prettify(s)
  12769. }
  12770. // GoString returns the string representation
  12771. func (s CreateInstanceExportTaskOutput) GoString() string {
  12772. return s.String()
  12773. }
  12774. // Contains the parameters for CreateInternetGateway.
  12775. type CreateInternetGatewayInput struct {
  12776. _ struct{} `type:"structure"`
  12777. // Checks whether you have the required permissions for the action, without
  12778. // actually making the request, and provides an error response. If you have
  12779. // the required permissions, the error response is DryRunOperation. Otherwise,
  12780. // it is UnauthorizedOperation.
  12781. DryRun *bool `locationName:"dryRun" type:"boolean"`
  12782. }
  12783. // String returns the string representation
  12784. func (s CreateInternetGatewayInput) String() string {
  12785. return awsutil.Prettify(s)
  12786. }
  12787. // GoString returns the string representation
  12788. func (s CreateInternetGatewayInput) GoString() string {
  12789. return s.String()
  12790. }
  12791. // Contains the output of CreateInternetGateway.
  12792. type CreateInternetGatewayOutput struct {
  12793. _ struct{} `type:"structure"`
  12794. // Information about the Internet gateway.
  12795. InternetGateway *InternetGateway `locationName:"internetGateway" type:"structure"`
  12796. }
  12797. // String returns the string representation
  12798. func (s CreateInternetGatewayOutput) String() string {
  12799. return awsutil.Prettify(s)
  12800. }
  12801. // GoString returns the string representation
  12802. func (s CreateInternetGatewayOutput) GoString() string {
  12803. return s.String()
  12804. }
  12805. // Contains the parameters for CreateKeyPair.
  12806. type CreateKeyPairInput struct {
  12807. _ struct{} `type:"structure"`
  12808. // Checks whether you have the required permissions for the action, without
  12809. // actually making the request, and provides an error response. If you have
  12810. // the required permissions, the error response is DryRunOperation. Otherwise,
  12811. // it is UnauthorizedOperation.
  12812. DryRun *bool `locationName:"dryRun" type:"boolean"`
  12813. // A unique name for the key pair.
  12814. //
  12815. // Constraints: Up to 255 ASCII characters
  12816. KeyName *string `type:"string" required:"true"`
  12817. }
  12818. // String returns the string representation
  12819. func (s CreateKeyPairInput) String() string {
  12820. return awsutil.Prettify(s)
  12821. }
  12822. // GoString returns the string representation
  12823. func (s CreateKeyPairInput) GoString() string {
  12824. return s.String()
  12825. }
  12826. // Validate inspects the fields of the type to determine if they are valid.
  12827. func (s *CreateKeyPairInput) Validate() error {
  12828. invalidParams := request.ErrInvalidParams{Context: "CreateKeyPairInput"}
  12829. if s.KeyName == nil {
  12830. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  12831. }
  12832. if invalidParams.Len() > 0 {
  12833. return invalidParams
  12834. }
  12835. return nil
  12836. }
  12837. // Describes a key pair.
  12838. type CreateKeyPairOutput struct {
  12839. _ struct{} `type:"structure"`
  12840. // The SHA-1 digest of the DER encoded private key.
  12841. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  12842. // An unencrypted PEM encoded RSA private key.
  12843. KeyMaterial *string `locationName:"keyMaterial" type:"string"`
  12844. // The name of the key pair.
  12845. KeyName *string `locationName:"keyName" type:"string"`
  12846. }
  12847. // String returns the string representation
  12848. func (s CreateKeyPairOutput) String() string {
  12849. return awsutil.Prettify(s)
  12850. }
  12851. // GoString returns the string representation
  12852. func (s CreateKeyPairOutput) GoString() string {
  12853. return s.String()
  12854. }
  12855. // Contains the parameters for CreateNatGateway.
  12856. type CreateNatGatewayInput struct {
  12857. _ struct{} `type:"structure"`
  12858. // The allocation ID of an Elastic IP address to associate with the NAT gateway.
  12859. // If the Elastic IP address is associated with another resource, you must first
  12860. // disassociate it.
  12861. AllocationId *string `type:"string" required:"true"`
  12862. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  12863. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  12864. //
  12865. // Constraint: Maximum 64 ASCII characters.
  12866. ClientToken *string `type:"string"`
  12867. // The subnet in which to create the NAT gateway.
  12868. SubnetId *string `type:"string" required:"true"`
  12869. }
  12870. // String returns the string representation
  12871. func (s CreateNatGatewayInput) String() string {
  12872. return awsutil.Prettify(s)
  12873. }
  12874. // GoString returns the string representation
  12875. func (s CreateNatGatewayInput) GoString() string {
  12876. return s.String()
  12877. }
  12878. // Validate inspects the fields of the type to determine if they are valid.
  12879. func (s *CreateNatGatewayInput) Validate() error {
  12880. invalidParams := request.ErrInvalidParams{Context: "CreateNatGatewayInput"}
  12881. if s.AllocationId == nil {
  12882. invalidParams.Add(request.NewErrParamRequired("AllocationId"))
  12883. }
  12884. if s.SubnetId == nil {
  12885. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  12886. }
  12887. if invalidParams.Len() > 0 {
  12888. return invalidParams
  12889. }
  12890. return nil
  12891. }
  12892. // Contains the output of CreateNatGateway.
  12893. type CreateNatGatewayOutput struct {
  12894. _ struct{} `type:"structure"`
  12895. // Unique, case-sensitive identifier to ensure the idempotency of the request.
  12896. // Only returned if a client token was provided in the request.
  12897. ClientToken *string `locationName:"clientToken" type:"string"`
  12898. // Information about the NAT gateway.
  12899. NatGateway *NatGateway `locationName:"natGateway" type:"structure"`
  12900. }
  12901. // String returns the string representation
  12902. func (s CreateNatGatewayOutput) String() string {
  12903. return awsutil.Prettify(s)
  12904. }
  12905. // GoString returns the string representation
  12906. func (s CreateNatGatewayOutput) GoString() string {
  12907. return s.String()
  12908. }
  12909. // Contains the parameters for CreateNetworkAclEntry.
  12910. type CreateNetworkAclEntryInput struct {
  12911. _ struct{} `type:"structure"`
  12912. // The network range to allow or deny, in CIDR notation (for example 172.16.0.0/24).
  12913. CidrBlock *string `locationName:"cidrBlock" type:"string" required:"true"`
  12914. // Checks whether you have the required permissions for the action, without
  12915. // actually making the request, and provides an error response. If you have
  12916. // the required permissions, the error response is DryRunOperation. Otherwise,
  12917. // it is UnauthorizedOperation.
  12918. DryRun *bool `locationName:"dryRun" type:"boolean"`
  12919. // Indicates whether this is an egress rule (rule is applied to traffic leaving
  12920. // the subnet).
  12921. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  12922. // ICMP protocol: The ICMP type and code. Required if specifying ICMP for the
  12923. // protocol.
  12924. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`
  12925. // The ID of the network ACL.
  12926. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  12927. // TCP or UDP protocols: The range of ports the rule applies to.
  12928. PortRange *PortRange `locationName:"portRange" type:"structure"`
  12929. // The protocol. A value of -1 means all protocols.
  12930. Protocol *string `locationName:"protocol" type:"string" required:"true"`
  12931. // Indicates whether to allow or deny the traffic that matches the rule.
  12932. RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"`
  12933. // The rule number for the entry (for example, 100). ACL entries are processed
  12934. // in ascending order by rule number.
  12935. //
  12936. // Constraints: Positive integer from 1 to 32766. The range 32767 to 65535
  12937. // is reserved for internal use.
  12938. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  12939. }
  12940. // String returns the string representation
  12941. func (s CreateNetworkAclEntryInput) String() string {
  12942. return awsutil.Prettify(s)
  12943. }
  12944. // GoString returns the string representation
  12945. func (s CreateNetworkAclEntryInput) GoString() string {
  12946. return s.String()
  12947. }
  12948. // Validate inspects the fields of the type to determine if they are valid.
  12949. func (s *CreateNetworkAclEntryInput) Validate() error {
  12950. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclEntryInput"}
  12951. if s.CidrBlock == nil {
  12952. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  12953. }
  12954. if s.Egress == nil {
  12955. invalidParams.Add(request.NewErrParamRequired("Egress"))
  12956. }
  12957. if s.NetworkAclId == nil {
  12958. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  12959. }
  12960. if s.Protocol == nil {
  12961. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  12962. }
  12963. if s.RuleAction == nil {
  12964. invalidParams.Add(request.NewErrParamRequired("RuleAction"))
  12965. }
  12966. if s.RuleNumber == nil {
  12967. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  12968. }
  12969. if invalidParams.Len() > 0 {
  12970. return invalidParams
  12971. }
  12972. return nil
  12973. }
  12974. type CreateNetworkAclEntryOutput struct {
  12975. _ struct{} `type:"structure"`
  12976. }
  12977. // String returns the string representation
  12978. func (s CreateNetworkAclEntryOutput) String() string {
  12979. return awsutil.Prettify(s)
  12980. }
  12981. // GoString returns the string representation
  12982. func (s CreateNetworkAclEntryOutput) GoString() string {
  12983. return s.String()
  12984. }
  12985. // Contains the parameters for CreateNetworkAcl.
  12986. type CreateNetworkAclInput struct {
  12987. _ struct{} `type:"structure"`
  12988. // Checks whether you have the required permissions for the action, without
  12989. // actually making the request, and provides an error response. If you have
  12990. // the required permissions, the error response is DryRunOperation. Otherwise,
  12991. // it is UnauthorizedOperation.
  12992. DryRun *bool `locationName:"dryRun" type:"boolean"`
  12993. // The ID of the VPC.
  12994. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  12995. }
  12996. // String returns the string representation
  12997. func (s CreateNetworkAclInput) String() string {
  12998. return awsutil.Prettify(s)
  12999. }
  13000. // GoString returns the string representation
  13001. func (s CreateNetworkAclInput) GoString() string {
  13002. return s.String()
  13003. }
  13004. // Validate inspects the fields of the type to determine if they are valid.
  13005. func (s *CreateNetworkAclInput) Validate() error {
  13006. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkAclInput"}
  13007. if s.VpcId == nil {
  13008. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  13009. }
  13010. if invalidParams.Len() > 0 {
  13011. return invalidParams
  13012. }
  13013. return nil
  13014. }
  13015. // Contains the output of CreateNetworkAcl.
  13016. type CreateNetworkAclOutput struct {
  13017. _ struct{} `type:"structure"`
  13018. // Information about the network ACL.
  13019. NetworkAcl *NetworkAcl `locationName:"networkAcl" type:"structure"`
  13020. }
  13021. // String returns the string representation
  13022. func (s CreateNetworkAclOutput) String() string {
  13023. return awsutil.Prettify(s)
  13024. }
  13025. // GoString returns the string representation
  13026. func (s CreateNetworkAclOutput) GoString() string {
  13027. return s.String()
  13028. }
  13029. // Contains the parameters for CreateNetworkInterface.
  13030. type CreateNetworkInterfaceInput struct {
  13031. _ struct{} `type:"structure"`
  13032. // A description for the network interface.
  13033. Description *string `locationName:"description" type:"string"`
  13034. // Checks whether you have the required permissions for the action, without
  13035. // actually making the request, and provides an error response. If you have
  13036. // the required permissions, the error response is DryRunOperation. Otherwise,
  13037. // it is UnauthorizedOperation.
  13038. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13039. // The IDs of one or more security groups.
  13040. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  13041. // The primary private IP address of the network interface. If you don't specify
  13042. // an IP address, Amazon EC2 selects one for you from the subnet range. If you
  13043. // specify an IP address, you cannot indicate any IP addresses specified in
  13044. // privateIpAddresses as primary (only one IP address can be designated as primary).
  13045. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  13046. // One or more private IP addresses.
  13047. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddresses" locationNameList:"item" type:"list"`
  13048. // The number of secondary private IP addresses to assign to a network interface.
  13049. // When you specify a number of secondary IP addresses, Amazon EC2 selects these
  13050. // IP addresses within the subnet range. You can't specify this option and specify
  13051. // more than one private IP address using privateIpAddresses.
  13052. //
  13053. // The number of IP addresses you can assign to a network interface varies
  13054. // by instance type. For more information, see Private IP Addresses Per ENI
  13055. // Per Instance Type (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI)
  13056. // in the Amazon Elastic Compute Cloud User Guide.
  13057. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  13058. // The ID of the subnet to associate with the network interface.
  13059. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  13060. }
  13061. // String returns the string representation
  13062. func (s CreateNetworkInterfaceInput) String() string {
  13063. return awsutil.Prettify(s)
  13064. }
  13065. // GoString returns the string representation
  13066. func (s CreateNetworkInterfaceInput) GoString() string {
  13067. return s.String()
  13068. }
  13069. // Validate inspects the fields of the type to determine if they are valid.
  13070. func (s *CreateNetworkInterfaceInput) Validate() error {
  13071. invalidParams := request.ErrInvalidParams{Context: "CreateNetworkInterfaceInput"}
  13072. if s.SubnetId == nil {
  13073. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  13074. }
  13075. if s.PrivateIpAddresses != nil {
  13076. for i, v := range s.PrivateIpAddresses {
  13077. if v == nil {
  13078. continue
  13079. }
  13080. if err := v.Validate(); err != nil {
  13081. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams))
  13082. }
  13083. }
  13084. }
  13085. if invalidParams.Len() > 0 {
  13086. return invalidParams
  13087. }
  13088. return nil
  13089. }
  13090. // Contains the output of CreateNetworkInterface.
  13091. type CreateNetworkInterfaceOutput struct {
  13092. _ struct{} `type:"structure"`
  13093. // Information about the network interface.
  13094. NetworkInterface *NetworkInterface `locationName:"networkInterface" type:"structure"`
  13095. }
  13096. // String returns the string representation
  13097. func (s CreateNetworkInterfaceOutput) String() string {
  13098. return awsutil.Prettify(s)
  13099. }
  13100. // GoString returns the string representation
  13101. func (s CreateNetworkInterfaceOutput) GoString() string {
  13102. return s.String()
  13103. }
  13104. // Contains the parameters for CreatePlacementGroup.
  13105. type CreatePlacementGroupInput struct {
  13106. _ struct{} `type:"structure"`
  13107. // Checks whether you have the required permissions for the action, without
  13108. // actually making the request, and provides an error response. If you have
  13109. // the required permissions, the error response is DryRunOperation. Otherwise,
  13110. // it is UnauthorizedOperation.
  13111. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13112. // A name for the placement group.
  13113. //
  13114. // Constraints: Up to 255 ASCII characters
  13115. GroupName *string `locationName:"groupName" type:"string" required:"true"`
  13116. // The placement strategy.
  13117. Strategy *string `locationName:"strategy" type:"string" required:"true" enum:"PlacementStrategy"`
  13118. }
  13119. // String returns the string representation
  13120. func (s CreatePlacementGroupInput) String() string {
  13121. return awsutil.Prettify(s)
  13122. }
  13123. // GoString returns the string representation
  13124. func (s CreatePlacementGroupInput) GoString() string {
  13125. return s.String()
  13126. }
  13127. // Validate inspects the fields of the type to determine if they are valid.
  13128. func (s *CreatePlacementGroupInput) Validate() error {
  13129. invalidParams := request.ErrInvalidParams{Context: "CreatePlacementGroupInput"}
  13130. if s.GroupName == nil {
  13131. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  13132. }
  13133. if s.Strategy == nil {
  13134. invalidParams.Add(request.NewErrParamRequired("Strategy"))
  13135. }
  13136. if invalidParams.Len() > 0 {
  13137. return invalidParams
  13138. }
  13139. return nil
  13140. }
  13141. type CreatePlacementGroupOutput struct {
  13142. _ struct{} `type:"structure"`
  13143. }
  13144. // String returns the string representation
  13145. func (s CreatePlacementGroupOutput) String() string {
  13146. return awsutil.Prettify(s)
  13147. }
  13148. // GoString returns the string representation
  13149. func (s CreatePlacementGroupOutput) GoString() string {
  13150. return s.String()
  13151. }
  13152. // Contains the parameters for CreateReservedInstancesListing.
  13153. type CreateReservedInstancesListingInput struct {
  13154. _ struct{} `type:"structure"`
  13155. // Unique, case-sensitive identifier you provide to ensure idempotency of your
  13156. // listings. This helps avoid duplicate listings. For more information, see
  13157. // Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  13158. ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
  13159. // The number of instances that are a part of a Reserved Instance account to
  13160. // be listed in the Reserved Instance Marketplace. This number should be less
  13161. // than or equal to the instance count associated with the Reserved Instance
  13162. // ID specified in this call.
  13163. InstanceCount *int64 `locationName:"instanceCount" type:"integer" required:"true"`
  13164. // A list specifying the price of the Reserved Instance for each month remaining
  13165. // in the Reserved Instance term.
  13166. PriceSchedules []*PriceScheduleSpecification `locationName:"priceSchedules" locationNameList:"item" type:"list" required:"true"`
  13167. // The ID of the active Reserved Instance.
  13168. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string" required:"true"`
  13169. }
  13170. // String returns the string representation
  13171. func (s CreateReservedInstancesListingInput) String() string {
  13172. return awsutil.Prettify(s)
  13173. }
  13174. // GoString returns the string representation
  13175. func (s CreateReservedInstancesListingInput) GoString() string {
  13176. return s.String()
  13177. }
  13178. // Validate inspects the fields of the type to determine if they are valid.
  13179. func (s *CreateReservedInstancesListingInput) Validate() error {
  13180. invalidParams := request.ErrInvalidParams{Context: "CreateReservedInstancesListingInput"}
  13181. if s.ClientToken == nil {
  13182. invalidParams.Add(request.NewErrParamRequired("ClientToken"))
  13183. }
  13184. if s.InstanceCount == nil {
  13185. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  13186. }
  13187. if s.PriceSchedules == nil {
  13188. invalidParams.Add(request.NewErrParamRequired("PriceSchedules"))
  13189. }
  13190. if s.ReservedInstancesId == nil {
  13191. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesId"))
  13192. }
  13193. if invalidParams.Len() > 0 {
  13194. return invalidParams
  13195. }
  13196. return nil
  13197. }
  13198. // Contains the output of CreateReservedInstancesListing.
  13199. type CreateReservedInstancesListingOutput struct {
  13200. _ struct{} `type:"structure"`
  13201. // Information about the Reserved Instance listing.
  13202. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  13203. }
  13204. // String returns the string representation
  13205. func (s CreateReservedInstancesListingOutput) String() string {
  13206. return awsutil.Prettify(s)
  13207. }
  13208. // GoString returns the string representation
  13209. func (s CreateReservedInstancesListingOutput) GoString() string {
  13210. return s.String()
  13211. }
  13212. // Contains the parameters for CreateRoute.
  13213. type CreateRouteInput struct {
  13214. _ struct{} `type:"structure"`
  13215. // The CIDR address block used for the destination match. Routing decisions
  13216. // are based on the most specific match.
  13217. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string" required:"true"`
  13218. // Checks whether you have the required permissions for the action, without
  13219. // actually making the request, and provides an error response. If you have
  13220. // the required permissions, the error response is DryRunOperation. Otherwise,
  13221. // it is UnauthorizedOperation.
  13222. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13223. // The ID of an Internet gateway or virtual private gateway attached to your
  13224. // VPC.
  13225. GatewayId *string `locationName:"gatewayId" type:"string"`
  13226. // The ID of a NAT instance in your VPC. The operation fails if you specify
  13227. // an instance ID unless exactly one network interface is attached.
  13228. InstanceId *string `locationName:"instanceId" type:"string"`
  13229. // The ID of a NAT gateway.
  13230. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  13231. // The ID of a network interface.
  13232. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  13233. // The ID of the route table for the route.
  13234. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  13235. // The ID of a VPC peering connection.
  13236. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  13237. }
  13238. // String returns the string representation
  13239. func (s CreateRouteInput) String() string {
  13240. return awsutil.Prettify(s)
  13241. }
  13242. // GoString returns the string representation
  13243. func (s CreateRouteInput) GoString() string {
  13244. return s.String()
  13245. }
  13246. // Validate inspects the fields of the type to determine if they are valid.
  13247. func (s *CreateRouteInput) Validate() error {
  13248. invalidParams := request.ErrInvalidParams{Context: "CreateRouteInput"}
  13249. if s.DestinationCidrBlock == nil {
  13250. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  13251. }
  13252. if s.RouteTableId == nil {
  13253. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  13254. }
  13255. if invalidParams.Len() > 0 {
  13256. return invalidParams
  13257. }
  13258. return nil
  13259. }
  13260. // Contains the output of CreateRoute.
  13261. type CreateRouteOutput struct {
  13262. _ struct{} `type:"structure"`
  13263. // Returns true if the request succeeds; otherwise, it returns an error.
  13264. Return *bool `locationName:"return" type:"boolean"`
  13265. }
  13266. // String returns the string representation
  13267. func (s CreateRouteOutput) String() string {
  13268. return awsutil.Prettify(s)
  13269. }
  13270. // GoString returns the string representation
  13271. func (s CreateRouteOutput) GoString() string {
  13272. return s.String()
  13273. }
  13274. // Contains the parameters for CreateRouteTable.
  13275. type CreateRouteTableInput struct {
  13276. _ struct{} `type:"structure"`
  13277. // Checks whether you have the required permissions for the action, without
  13278. // actually making the request, and provides an error response. If you have
  13279. // the required permissions, the error response is DryRunOperation. Otherwise,
  13280. // it is UnauthorizedOperation.
  13281. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13282. // The ID of the VPC.
  13283. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  13284. }
  13285. // String returns the string representation
  13286. func (s CreateRouteTableInput) String() string {
  13287. return awsutil.Prettify(s)
  13288. }
  13289. // GoString returns the string representation
  13290. func (s CreateRouteTableInput) GoString() string {
  13291. return s.String()
  13292. }
  13293. // Validate inspects the fields of the type to determine if they are valid.
  13294. func (s *CreateRouteTableInput) Validate() error {
  13295. invalidParams := request.ErrInvalidParams{Context: "CreateRouteTableInput"}
  13296. if s.VpcId == nil {
  13297. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  13298. }
  13299. if invalidParams.Len() > 0 {
  13300. return invalidParams
  13301. }
  13302. return nil
  13303. }
  13304. // Contains the output of CreateRouteTable.
  13305. type CreateRouteTableOutput struct {
  13306. _ struct{} `type:"structure"`
  13307. // Information about the route table.
  13308. RouteTable *RouteTable `locationName:"routeTable" type:"structure"`
  13309. }
  13310. // String returns the string representation
  13311. func (s CreateRouteTableOutput) String() string {
  13312. return awsutil.Prettify(s)
  13313. }
  13314. // GoString returns the string representation
  13315. func (s CreateRouteTableOutput) GoString() string {
  13316. return s.String()
  13317. }
  13318. // Contains the parameters for CreateSecurityGroup.
  13319. type CreateSecurityGroupInput struct {
  13320. _ struct{} `type:"structure"`
  13321. // A description for the security group. This is informational only.
  13322. //
  13323. // Constraints: Up to 255 characters in length
  13324. //
  13325. // Constraints for EC2-Classic: ASCII characters
  13326. //
  13327. // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
  13328. Description *string `locationName:"GroupDescription" type:"string" required:"true"`
  13329. // Checks whether you have the required permissions for the action, without
  13330. // actually making the request, and provides an error response. If you have
  13331. // the required permissions, the error response is DryRunOperation. Otherwise,
  13332. // it is UnauthorizedOperation.
  13333. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13334. // The name of the security group.
  13335. //
  13336. // Constraints: Up to 255 characters in length
  13337. //
  13338. // Constraints for EC2-Classic: ASCII characters
  13339. //
  13340. // Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
  13341. GroupName *string `type:"string" required:"true"`
  13342. // [EC2-VPC] The ID of the VPC. Required for EC2-VPC.
  13343. VpcId *string `type:"string"`
  13344. }
  13345. // String returns the string representation
  13346. func (s CreateSecurityGroupInput) String() string {
  13347. return awsutil.Prettify(s)
  13348. }
  13349. // GoString returns the string representation
  13350. func (s CreateSecurityGroupInput) GoString() string {
  13351. return s.String()
  13352. }
  13353. // Validate inspects the fields of the type to determine if they are valid.
  13354. func (s *CreateSecurityGroupInput) Validate() error {
  13355. invalidParams := request.ErrInvalidParams{Context: "CreateSecurityGroupInput"}
  13356. if s.Description == nil {
  13357. invalidParams.Add(request.NewErrParamRequired("Description"))
  13358. }
  13359. if s.GroupName == nil {
  13360. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  13361. }
  13362. if invalidParams.Len() > 0 {
  13363. return invalidParams
  13364. }
  13365. return nil
  13366. }
  13367. // Contains the output of CreateSecurityGroup.
  13368. type CreateSecurityGroupOutput struct {
  13369. _ struct{} `type:"structure"`
  13370. // The ID of the security group.
  13371. GroupId *string `locationName:"groupId" type:"string"`
  13372. }
  13373. // String returns the string representation
  13374. func (s CreateSecurityGroupOutput) String() string {
  13375. return awsutil.Prettify(s)
  13376. }
  13377. // GoString returns the string representation
  13378. func (s CreateSecurityGroupOutput) GoString() string {
  13379. return s.String()
  13380. }
  13381. // Contains the parameters for CreateSnapshot.
  13382. type CreateSnapshotInput struct {
  13383. _ struct{} `type:"structure"`
  13384. // A description for the snapshot.
  13385. Description *string `type:"string"`
  13386. // Checks whether you have the required permissions for the action, without
  13387. // actually making the request, and provides an error response. If you have
  13388. // the required permissions, the error response is DryRunOperation. Otherwise,
  13389. // it is UnauthorizedOperation.
  13390. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13391. // The ID of the EBS volume.
  13392. VolumeId *string `type:"string" required:"true"`
  13393. }
  13394. // String returns the string representation
  13395. func (s CreateSnapshotInput) String() string {
  13396. return awsutil.Prettify(s)
  13397. }
  13398. // GoString returns the string representation
  13399. func (s CreateSnapshotInput) GoString() string {
  13400. return s.String()
  13401. }
  13402. // Validate inspects the fields of the type to determine if they are valid.
  13403. func (s *CreateSnapshotInput) Validate() error {
  13404. invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"}
  13405. if s.VolumeId == nil {
  13406. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  13407. }
  13408. if invalidParams.Len() > 0 {
  13409. return invalidParams
  13410. }
  13411. return nil
  13412. }
  13413. // Contains the parameters for CreateSpotDatafeedSubscription.
  13414. type CreateSpotDatafeedSubscriptionInput struct {
  13415. _ struct{} `type:"structure"`
  13416. // The Amazon S3 bucket in which to store the Spot instance data feed.
  13417. Bucket *string `locationName:"bucket" type:"string" required:"true"`
  13418. // Checks whether you have the required permissions for the action, without
  13419. // actually making the request, and provides an error response. If you have
  13420. // the required permissions, the error response is DryRunOperation. Otherwise,
  13421. // it is UnauthorizedOperation.
  13422. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13423. // A prefix for the data feed file names.
  13424. Prefix *string `locationName:"prefix" type:"string"`
  13425. }
  13426. // String returns the string representation
  13427. func (s CreateSpotDatafeedSubscriptionInput) String() string {
  13428. return awsutil.Prettify(s)
  13429. }
  13430. // GoString returns the string representation
  13431. func (s CreateSpotDatafeedSubscriptionInput) GoString() string {
  13432. return s.String()
  13433. }
  13434. // Validate inspects the fields of the type to determine if they are valid.
  13435. func (s *CreateSpotDatafeedSubscriptionInput) Validate() error {
  13436. invalidParams := request.ErrInvalidParams{Context: "CreateSpotDatafeedSubscriptionInput"}
  13437. if s.Bucket == nil {
  13438. invalidParams.Add(request.NewErrParamRequired("Bucket"))
  13439. }
  13440. if invalidParams.Len() > 0 {
  13441. return invalidParams
  13442. }
  13443. return nil
  13444. }
  13445. // Contains the output of CreateSpotDatafeedSubscription.
  13446. type CreateSpotDatafeedSubscriptionOutput struct {
  13447. _ struct{} `type:"structure"`
  13448. // The Spot instance data feed subscription.
  13449. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
  13450. }
  13451. // String returns the string representation
  13452. func (s CreateSpotDatafeedSubscriptionOutput) String() string {
  13453. return awsutil.Prettify(s)
  13454. }
  13455. // GoString returns the string representation
  13456. func (s CreateSpotDatafeedSubscriptionOutput) GoString() string {
  13457. return s.String()
  13458. }
  13459. // Contains the parameters for CreateSubnet.
  13460. type CreateSubnetInput struct {
  13461. _ struct{} `type:"structure"`
  13462. // The Availability Zone for the subnet.
  13463. //
  13464. // Default: AWS selects one for you. If you create more than one subnet in
  13465. // your VPC, we may not necessarily select a different zone for each subnet.
  13466. AvailabilityZone *string `type:"string"`
  13467. // The network range for the subnet, in CIDR notation. For example, 10.0.0.0/24.
  13468. CidrBlock *string `type:"string" required:"true"`
  13469. // Checks whether you have the required permissions for the action, without
  13470. // actually making the request, and provides an error response. If you have
  13471. // the required permissions, the error response is DryRunOperation. Otherwise,
  13472. // it is UnauthorizedOperation.
  13473. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13474. // The ID of the VPC.
  13475. VpcId *string `type:"string" required:"true"`
  13476. }
  13477. // String returns the string representation
  13478. func (s CreateSubnetInput) String() string {
  13479. return awsutil.Prettify(s)
  13480. }
  13481. // GoString returns the string representation
  13482. func (s CreateSubnetInput) GoString() string {
  13483. return s.String()
  13484. }
  13485. // Validate inspects the fields of the type to determine if they are valid.
  13486. func (s *CreateSubnetInput) Validate() error {
  13487. invalidParams := request.ErrInvalidParams{Context: "CreateSubnetInput"}
  13488. if s.CidrBlock == nil {
  13489. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  13490. }
  13491. if s.VpcId == nil {
  13492. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  13493. }
  13494. if invalidParams.Len() > 0 {
  13495. return invalidParams
  13496. }
  13497. return nil
  13498. }
  13499. // Contains the output of CreateSubnet.
  13500. type CreateSubnetOutput struct {
  13501. _ struct{} `type:"structure"`
  13502. // Information about the subnet.
  13503. Subnet *Subnet `locationName:"subnet" type:"structure"`
  13504. }
  13505. // String returns the string representation
  13506. func (s CreateSubnetOutput) String() string {
  13507. return awsutil.Prettify(s)
  13508. }
  13509. // GoString returns the string representation
  13510. func (s CreateSubnetOutput) GoString() string {
  13511. return s.String()
  13512. }
  13513. // Contains the parameters for CreateTags.
  13514. type CreateTagsInput struct {
  13515. _ struct{} `type:"structure"`
  13516. // Checks whether you have the required permissions for the action, without
  13517. // actually making the request, and provides an error response. If you have
  13518. // the required permissions, the error response is DryRunOperation. Otherwise,
  13519. // it is UnauthorizedOperation.
  13520. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13521. // The IDs of one or more resources to tag. For example, ami-1a2b3c4d.
  13522. Resources []*string `locationName:"ResourceId" type:"list" required:"true"`
  13523. // One or more tags. The value parameter is required, but if you don't want
  13524. // the tag to have a value, specify the parameter with no value, and we set
  13525. // the value to an empty string.
  13526. Tags []*Tag `locationName:"Tag" locationNameList:"item" type:"list" required:"true"`
  13527. }
  13528. // String returns the string representation
  13529. func (s CreateTagsInput) String() string {
  13530. return awsutil.Prettify(s)
  13531. }
  13532. // GoString returns the string representation
  13533. func (s CreateTagsInput) GoString() string {
  13534. return s.String()
  13535. }
  13536. // Validate inspects the fields of the type to determine if they are valid.
  13537. func (s *CreateTagsInput) Validate() error {
  13538. invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"}
  13539. if s.Resources == nil {
  13540. invalidParams.Add(request.NewErrParamRequired("Resources"))
  13541. }
  13542. if s.Tags == nil {
  13543. invalidParams.Add(request.NewErrParamRequired("Tags"))
  13544. }
  13545. if invalidParams.Len() > 0 {
  13546. return invalidParams
  13547. }
  13548. return nil
  13549. }
  13550. type CreateTagsOutput struct {
  13551. _ struct{} `type:"structure"`
  13552. }
  13553. // String returns the string representation
  13554. func (s CreateTagsOutput) String() string {
  13555. return awsutil.Prettify(s)
  13556. }
  13557. // GoString returns the string representation
  13558. func (s CreateTagsOutput) GoString() string {
  13559. return s.String()
  13560. }
  13561. // Contains the parameters for CreateVolume.
  13562. type CreateVolumeInput struct {
  13563. _ struct{} `type:"structure"`
  13564. // The Availability Zone in which to create the volume. Use DescribeAvailabilityZones
  13565. // to list the Availability Zones that are currently available to you.
  13566. AvailabilityZone *string `type:"string" required:"true"`
  13567. // Checks whether you have the required permissions for the action, without
  13568. // actually making the request, and provides an error response. If you have
  13569. // the required permissions, the error response is DryRunOperation. Otherwise,
  13570. // it is UnauthorizedOperation.
  13571. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13572. // Specifies whether the volume should be encrypted. Encrypted Amazon EBS volumes
  13573. // may only be attached to instances that support Amazon EBS encryption. Volumes
  13574. // that are created from encrypted snapshots are automatically encrypted. There
  13575. // is no way to create an encrypted volume from an unencrypted snapshot or vice
  13576. // versa. If your AMI uses encrypted volumes, you can only launch it on supported
  13577. // instance types. For more information, see Amazon EBS Encryption (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
  13578. // in the Amazon Elastic Compute Cloud User Guide.
  13579. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  13580. // Only valid for Provisioned IOPS SSD volumes. The number of I/O operations
  13581. // per second (IOPS) to provision for the volume, with a maximum ratio of 30
  13582. // IOPS/GiB.
  13583. //
  13584. // Constraint: Range is 100 to 20000 for Provisioned IOPS SSD volumes
  13585. Iops *int64 `type:"integer"`
  13586. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  13587. // key (CMK) to use when creating the encrypted volume. This parameter is only
  13588. // required if you want to use a non-default CMK; if this parameter is not specified,
  13589. // the default CMK for EBS is used. The ARN contains the arn:aws:kms namespace,
  13590. // followed by the region of the CMK, the AWS account ID of the CMK owner, the
  13591. // key namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef.
  13592. // If a KmsKeyId is specified, the Encrypted flag must also be set.
  13593. KmsKeyId *string `type:"string"`
  13594. // The size of the volume, in GiBs.
  13595. //
  13596. // Constraints: 1-16384 for gp2, 4-16384 for io1, 500-16384 for st1, 500-16384
  13597. // for sc1, and 1-1024 for standard. If you specify a snapshot, the volume size
  13598. // must be equal to or larger than the snapshot size.
  13599. //
  13600. // Default: If you're creating the volume from a snapshot and don't specify
  13601. // a volume size, the default is the snapshot size.
  13602. Size *int64 `type:"integer"`
  13603. // The snapshot from which to create the volume.
  13604. SnapshotId *string `type:"string"`
  13605. // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
  13606. // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
  13607. // for Magnetic volumes.
  13608. //
  13609. // Default: standard
  13610. VolumeType *string `type:"string" enum:"VolumeType"`
  13611. }
  13612. // String returns the string representation
  13613. func (s CreateVolumeInput) String() string {
  13614. return awsutil.Prettify(s)
  13615. }
  13616. // GoString returns the string representation
  13617. func (s CreateVolumeInput) GoString() string {
  13618. return s.String()
  13619. }
  13620. // Validate inspects the fields of the type to determine if they are valid.
  13621. func (s *CreateVolumeInput) Validate() error {
  13622. invalidParams := request.ErrInvalidParams{Context: "CreateVolumeInput"}
  13623. if s.AvailabilityZone == nil {
  13624. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  13625. }
  13626. if invalidParams.Len() > 0 {
  13627. return invalidParams
  13628. }
  13629. return nil
  13630. }
  13631. // Describes the user or group to be added or removed from the permissions for
  13632. // a volume.
  13633. type CreateVolumePermission struct {
  13634. _ struct{} `type:"structure"`
  13635. // The specific group that is to be added or removed from a volume's list of
  13636. // create volume permissions.
  13637. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  13638. // The specific AWS account ID that is to be added or removed from a volume's
  13639. // list of create volume permissions.
  13640. UserId *string `locationName:"userId" type:"string"`
  13641. }
  13642. // String returns the string representation
  13643. func (s CreateVolumePermission) String() string {
  13644. return awsutil.Prettify(s)
  13645. }
  13646. // GoString returns the string representation
  13647. func (s CreateVolumePermission) GoString() string {
  13648. return s.String()
  13649. }
  13650. // Describes modifications to the permissions for a volume.
  13651. type CreateVolumePermissionModifications struct {
  13652. _ struct{} `type:"structure"`
  13653. // Adds a specific AWS account ID or group to a volume's list of create volume
  13654. // permissions.
  13655. Add []*CreateVolumePermission `locationNameList:"item" type:"list"`
  13656. // Removes a specific AWS account ID or group from a volume's list of create
  13657. // volume permissions.
  13658. Remove []*CreateVolumePermission `locationNameList:"item" type:"list"`
  13659. }
  13660. // String returns the string representation
  13661. func (s CreateVolumePermissionModifications) String() string {
  13662. return awsutil.Prettify(s)
  13663. }
  13664. // GoString returns the string representation
  13665. func (s CreateVolumePermissionModifications) GoString() string {
  13666. return s.String()
  13667. }
  13668. // Contains the parameters for CreateVpcEndpoint.
  13669. type CreateVpcEndpointInput struct {
  13670. _ struct{} `type:"structure"`
  13671. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  13672. // the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  13673. ClientToken *string `type:"string"`
  13674. // Checks whether you have the required permissions for the action, without
  13675. // actually making the request, and provides an error response. If you have
  13676. // the required permissions, the error response is DryRunOperation. Otherwise,
  13677. // it is UnauthorizedOperation.
  13678. DryRun *bool `type:"boolean"`
  13679. // A policy to attach to the endpoint that controls access to the service. The
  13680. // policy must be in valid JSON format. If this parameter is not specified,
  13681. // we attach a default policy that allows full access to the service.
  13682. PolicyDocument *string `type:"string"`
  13683. // One or more route table IDs.
  13684. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
  13685. // The AWS service name, in the form com.amazonaws.region.service . To get a
  13686. // list of available services, use the DescribeVpcEndpointServices request.
  13687. ServiceName *string `type:"string" required:"true"`
  13688. // The ID of the VPC in which the endpoint will be used.
  13689. VpcId *string `type:"string" required:"true"`
  13690. }
  13691. // String returns the string representation
  13692. func (s CreateVpcEndpointInput) String() string {
  13693. return awsutil.Prettify(s)
  13694. }
  13695. // GoString returns the string representation
  13696. func (s CreateVpcEndpointInput) GoString() string {
  13697. return s.String()
  13698. }
  13699. // Validate inspects the fields of the type to determine if they are valid.
  13700. func (s *CreateVpcEndpointInput) Validate() error {
  13701. invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointInput"}
  13702. if s.ServiceName == nil {
  13703. invalidParams.Add(request.NewErrParamRequired("ServiceName"))
  13704. }
  13705. if s.VpcId == nil {
  13706. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  13707. }
  13708. if invalidParams.Len() > 0 {
  13709. return invalidParams
  13710. }
  13711. return nil
  13712. }
  13713. // Contains the output of CreateVpcEndpoint.
  13714. type CreateVpcEndpointOutput struct {
  13715. _ struct{} `type:"structure"`
  13716. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  13717. // the request.
  13718. ClientToken *string `locationName:"clientToken" type:"string"`
  13719. // Information about the endpoint.
  13720. VpcEndpoint *VpcEndpoint `locationName:"vpcEndpoint" type:"structure"`
  13721. }
  13722. // String returns the string representation
  13723. func (s CreateVpcEndpointOutput) String() string {
  13724. return awsutil.Prettify(s)
  13725. }
  13726. // GoString returns the string representation
  13727. func (s CreateVpcEndpointOutput) GoString() string {
  13728. return s.String()
  13729. }
  13730. // Contains the parameters for CreateVpc.
  13731. type CreateVpcInput struct {
  13732. _ struct{} `type:"structure"`
  13733. // The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
  13734. CidrBlock *string `type:"string" required:"true"`
  13735. // Checks whether you have the required permissions for the action, without
  13736. // actually making the request, and provides an error response. If you have
  13737. // the required permissions, the error response is DryRunOperation. Otherwise,
  13738. // it is UnauthorizedOperation.
  13739. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13740. // The tenancy options for instances launched into the VPC. For default, instances
  13741. // are launched with shared tenancy by default. You can launch instances with
  13742. // any tenancy into a shared tenancy VPC. For dedicated, instances are launched
  13743. // as dedicated tenancy instances by default. You can only launch instances
  13744. // with a tenancy of dedicated or host into a dedicated tenancy VPC.
  13745. //
  13746. // Important: The host value cannot be used with this parameter. Use the default
  13747. // or dedicated values only.
  13748. //
  13749. // Default: default
  13750. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  13751. }
  13752. // String returns the string representation
  13753. func (s CreateVpcInput) String() string {
  13754. return awsutil.Prettify(s)
  13755. }
  13756. // GoString returns the string representation
  13757. func (s CreateVpcInput) GoString() string {
  13758. return s.String()
  13759. }
  13760. // Validate inspects the fields of the type to determine if they are valid.
  13761. func (s *CreateVpcInput) Validate() error {
  13762. invalidParams := request.ErrInvalidParams{Context: "CreateVpcInput"}
  13763. if s.CidrBlock == nil {
  13764. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  13765. }
  13766. if invalidParams.Len() > 0 {
  13767. return invalidParams
  13768. }
  13769. return nil
  13770. }
  13771. // Contains the output of CreateVpc.
  13772. type CreateVpcOutput struct {
  13773. _ struct{} `type:"structure"`
  13774. // Information about the VPC.
  13775. Vpc *Vpc `locationName:"vpc" type:"structure"`
  13776. }
  13777. // String returns the string representation
  13778. func (s CreateVpcOutput) String() string {
  13779. return awsutil.Prettify(s)
  13780. }
  13781. // GoString returns the string representation
  13782. func (s CreateVpcOutput) GoString() string {
  13783. return s.String()
  13784. }
  13785. // Contains the parameters for CreateVpcPeeringConnection.
  13786. type CreateVpcPeeringConnectionInput struct {
  13787. _ struct{} `type:"structure"`
  13788. // Checks whether you have the required permissions for the action, without
  13789. // actually making the request, and provides an error response. If you have
  13790. // the required permissions, the error response is DryRunOperation. Otherwise,
  13791. // it is UnauthorizedOperation.
  13792. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13793. // The AWS account ID of the owner of the peer VPC.
  13794. //
  13795. // Default: Your AWS account ID
  13796. PeerOwnerId *string `locationName:"peerOwnerId" type:"string"`
  13797. // The ID of the VPC with which you are creating the VPC peering connection.
  13798. PeerVpcId *string `locationName:"peerVpcId" type:"string"`
  13799. // The ID of the requester VPC.
  13800. VpcId *string `locationName:"vpcId" type:"string"`
  13801. }
  13802. // String returns the string representation
  13803. func (s CreateVpcPeeringConnectionInput) String() string {
  13804. return awsutil.Prettify(s)
  13805. }
  13806. // GoString returns the string representation
  13807. func (s CreateVpcPeeringConnectionInput) GoString() string {
  13808. return s.String()
  13809. }
  13810. // Contains the output of CreateVpcPeeringConnection.
  13811. type CreateVpcPeeringConnectionOutput struct {
  13812. _ struct{} `type:"structure"`
  13813. // Information about the VPC peering connection.
  13814. VpcPeeringConnection *VpcPeeringConnection `locationName:"vpcPeeringConnection" type:"structure"`
  13815. }
  13816. // String returns the string representation
  13817. func (s CreateVpcPeeringConnectionOutput) String() string {
  13818. return awsutil.Prettify(s)
  13819. }
  13820. // GoString returns the string representation
  13821. func (s CreateVpcPeeringConnectionOutput) GoString() string {
  13822. return s.String()
  13823. }
  13824. // Contains the parameters for CreateVpnConnection.
  13825. type CreateVpnConnectionInput struct {
  13826. _ struct{} `type:"structure"`
  13827. // The ID of the customer gateway.
  13828. CustomerGatewayId *string `type:"string" required:"true"`
  13829. // Checks whether you have the required permissions for the action, without
  13830. // actually making the request, and provides an error response. If you have
  13831. // the required permissions, the error response is DryRunOperation. Otherwise,
  13832. // it is UnauthorizedOperation.
  13833. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13834. // Indicates whether the VPN connection requires static routes. If you are creating
  13835. // a VPN connection for a device that does not support BGP, you must specify
  13836. // true.
  13837. //
  13838. // Default: false
  13839. Options *VpnConnectionOptionsSpecification `locationName:"options" type:"structure"`
  13840. // The type of VPN connection (ipsec.1).
  13841. Type *string `type:"string" required:"true"`
  13842. // The ID of the virtual private gateway.
  13843. VpnGatewayId *string `type:"string" required:"true"`
  13844. }
  13845. // String returns the string representation
  13846. func (s CreateVpnConnectionInput) String() string {
  13847. return awsutil.Prettify(s)
  13848. }
  13849. // GoString returns the string representation
  13850. func (s CreateVpnConnectionInput) GoString() string {
  13851. return s.String()
  13852. }
  13853. // Validate inspects the fields of the type to determine if they are valid.
  13854. func (s *CreateVpnConnectionInput) Validate() error {
  13855. invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionInput"}
  13856. if s.CustomerGatewayId == nil {
  13857. invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId"))
  13858. }
  13859. if s.Type == nil {
  13860. invalidParams.Add(request.NewErrParamRequired("Type"))
  13861. }
  13862. if s.VpnGatewayId == nil {
  13863. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  13864. }
  13865. if invalidParams.Len() > 0 {
  13866. return invalidParams
  13867. }
  13868. return nil
  13869. }
  13870. // Contains the output of CreateVpnConnection.
  13871. type CreateVpnConnectionOutput struct {
  13872. _ struct{} `type:"structure"`
  13873. // Information about the VPN connection.
  13874. VpnConnection *VpnConnection `locationName:"vpnConnection" type:"structure"`
  13875. }
  13876. // String returns the string representation
  13877. func (s CreateVpnConnectionOutput) String() string {
  13878. return awsutil.Prettify(s)
  13879. }
  13880. // GoString returns the string representation
  13881. func (s CreateVpnConnectionOutput) GoString() string {
  13882. return s.String()
  13883. }
  13884. // Contains the parameters for CreateVpnConnectionRoute.
  13885. type CreateVpnConnectionRouteInput struct {
  13886. _ struct{} `type:"structure"`
  13887. // The CIDR block associated with the local subnet of the customer network.
  13888. DestinationCidrBlock *string `type:"string" required:"true"`
  13889. // The ID of the VPN connection.
  13890. VpnConnectionId *string `type:"string" required:"true"`
  13891. }
  13892. // String returns the string representation
  13893. func (s CreateVpnConnectionRouteInput) String() string {
  13894. return awsutil.Prettify(s)
  13895. }
  13896. // GoString returns the string representation
  13897. func (s CreateVpnConnectionRouteInput) GoString() string {
  13898. return s.String()
  13899. }
  13900. // Validate inspects the fields of the type to determine if they are valid.
  13901. func (s *CreateVpnConnectionRouteInput) Validate() error {
  13902. invalidParams := request.ErrInvalidParams{Context: "CreateVpnConnectionRouteInput"}
  13903. if s.DestinationCidrBlock == nil {
  13904. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  13905. }
  13906. if s.VpnConnectionId == nil {
  13907. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  13908. }
  13909. if invalidParams.Len() > 0 {
  13910. return invalidParams
  13911. }
  13912. return nil
  13913. }
  13914. type CreateVpnConnectionRouteOutput struct {
  13915. _ struct{} `type:"structure"`
  13916. }
  13917. // String returns the string representation
  13918. func (s CreateVpnConnectionRouteOutput) String() string {
  13919. return awsutil.Prettify(s)
  13920. }
  13921. // GoString returns the string representation
  13922. func (s CreateVpnConnectionRouteOutput) GoString() string {
  13923. return s.String()
  13924. }
  13925. // Contains the parameters for CreateVpnGateway.
  13926. type CreateVpnGatewayInput struct {
  13927. _ struct{} `type:"structure"`
  13928. // The Availability Zone for the virtual private gateway.
  13929. AvailabilityZone *string `type:"string"`
  13930. // Checks whether you have the required permissions for the action, without
  13931. // actually making the request, and provides an error response. If you have
  13932. // the required permissions, the error response is DryRunOperation. Otherwise,
  13933. // it is UnauthorizedOperation.
  13934. DryRun *bool `locationName:"dryRun" type:"boolean"`
  13935. // The type of VPN connection this virtual private gateway supports.
  13936. Type *string `type:"string" required:"true" enum:"GatewayType"`
  13937. }
  13938. // String returns the string representation
  13939. func (s CreateVpnGatewayInput) String() string {
  13940. return awsutil.Prettify(s)
  13941. }
  13942. // GoString returns the string representation
  13943. func (s CreateVpnGatewayInput) GoString() string {
  13944. return s.String()
  13945. }
  13946. // Validate inspects the fields of the type to determine if they are valid.
  13947. func (s *CreateVpnGatewayInput) Validate() error {
  13948. invalidParams := request.ErrInvalidParams{Context: "CreateVpnGatewayInput"}
  13949. if s.Type == nil {
  13950. invalidParams.Add(request.NewErrParamRequired("Type"))
  13951. }
  13952. if invalidParams.Len() > 0 {
  13953. return invalidParams
  13954. }
  13955. return nil
  13956. }
  13957. // Contains the output of CreateVpnGateway.
  13958. type CreateVpnGatewayOutput struct {
  13959. _ struct{} `type:"structure"`
  13960. // Information about the virtual private gateway.
  13961. VpnGateway *VpnGateway `locationName:"vpnGateway" type:"structure"`
  13962. }
  13963. // String returns the string representation
  13964. func (s CreateVpnGatewayOutput) String() string {
  13965. return awsutil.Prettify(s)
  13966. }
  13967. // GoString returns the string representation
  13968. func (s CreateVpnGatewayOutput) GoString() string {
  13969. return s.String()
  13970. }
  13971. // Describes a customer gateway.
  13972. type CustomerGateway struct {
  13973. _ struct{} `type:"structure"`
  13974. // The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number
  13975. // (ASN).
  13976. BgpAsn *string `locationName:"bgpAsn" type:"string"`
  13977. // The ID of the customer gateway.
  13978. CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`
  13979. // The Internet-routable IP address of the customer gateway's outside interface.
  13980. IpAddress *string `locationName:"ipAddress" type:"string"`
  13981. // The current state of the customer gateway (pending | available | deleting
  13982. // | deleted).
  13983. State *string `locationName:"state" type:"string"`
  13984. // Any tags assigned to the customer gateway.
  13985. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  13986. // The type of VPN connection the customer gateway supports (ipsec.1).
  13987. Type *string `locationName:"type" type:"string"`
  13988. }
  13989. // String returns the string representation
  13990. func (s CustomerGateway) String() string {
  13991. return awsutil.Prettify(s)
  13992. }
  13993. // GoString returns the string representation
  13994. func (s CustomerGateway) GoString() string {
  13995. return s.String()
  13996. }
  13997. // Contains the parameters for DeleteCustomerGateway.
  13998. type DeleteCustomerGatewayInput struct {
  13999. _ struct{} `type:"structure"`
  14000. // The ID of the customer gateway.
  14001. CustomerGatewayId *string `type:"string" required:"true"`
  14002. // Checks whether you have the required permissions for the action, without
  14003. // actually making the request, and provides an error response. If you have
  14004. // the required permissions, the error response is DryRunOperation. Otherwise,
  14005. // it is UnauthorizedOperation.
  14006. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14007. }
  14008. // String returns the string representation
  14009. func (s DeleteCustomerGatewayInput) String() string {
  14010. return awsutil.Prettify(s)
  14011. }
  14012. // GoString returns the string representation
  14013. func (s DeleteCustomerGatewayInput) GoString() string {
  14014. return s.String()
  14015. }
  14016. // Validate inspects the fields of the type to determine if they are valid.
  14017. func (s *DeleteCustomerGatewayInput) Validate() error {
  14018. invalidParams := request.ErrInvalidParams{Context: "DeleteCustomerGatewayInput"}
  14019. if s.CustomerGatewayId == nil {
  14020. invalidParams.Add(request.NewErrParamRequired("CustomerGatewayId"))
  14021. }
  14022. if invalidParams.Len() > 0 {
  14023. return invalidParams
  14024. }
  14025. return nil
  14026. }
  14027. type DeleteCustomerGatewayOutput struct {
  14028. _ struct{} `type:"structure"`
  14029. }
  14030. // String returns the string representation
  14031. func (s DeleteCustomerGatewayOutput) String() string {
  14032. return awsutil.Prettify(s)
  14033. }
  14034. // GoString returns the string representation
  14035. func (s DeleteCustomerGatewayOutput) GoString() string {
  14036. return s.String()
  14037. }
  14038. // Contains the parameters for DeleteDhcpOptions.
  14039. type DeleteDhcpOptionsInput struct {
  14040. _ struct{} `type:"structure"`
  14041. // The ID of the DHCP options set.
  14042. DhcpOptionsId *string `type:"string" required:"true"`
  14043. // Checks whether you have the required permissions for the action, without
  14044. // actually making the request, and provides an error response. If you have
  14045. // the required permissions, the error response is DryRunOperation. Otherwise,
  14046. // it is UnauthorizedOperation.
  14047. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14048. }
  14049. // String returns the string representation
  14050. func (s DeleteDhcpOptionsInput) String() string {
  14051. return awsutil.Prettify(s)
  14052. }
  14053. // GoString returns the string representation
  14054. func (s DeleteDhcpOptionsInput) GoString() string {
  14055. return s.String()
  14056. }
  14057. // Validate inspects the fields of the type to determine if they are valid.
  14058. func (s *DeleteDhcpOptionsInput) Validate() error {
  14059. invalidParams := request.ErrInvalidParams{Context: "DeleteDhcpOptionsInput"}
  14060. if s.DhcpOptionsId == nil {
  14061. invalidParams.Add(request.NewErrParamRequired("DhcpOptionsId"))
  14062. }
  14063. if invalidParams.Len() > 0 {
  14064. return invalidParams
  14065. }
  14066. return nil
  14067. }
  14068. type DeleteDhcpOptionsOutput struct {
  14069. _ struct{} `type:"structure"`
  14070. }
  14071. // String returns the string representation
  14072. func (s DeleteDhcpOptionsOutput) String() string {
  14073. return awsutil.Prettify(s)
  14074. }
  14075. // GoString returns the string representation
  14076. func (s DeleteDhcpOptionsOutput) GoString() string {
  14077. return s.String()
  14078. }
  14079. // Contains the parameters for DeleteFlowLogs.
  14080. type DeleteFlowLogsInput struct {
  14081. _ struct{} `type:"structure"`
  14082. // One or more flow log IDs.
  14083. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list" required:"true"`
  14084. }
  14085. // String returns the string representation
  14086. func (s DeleteFlowLogsInput) String() string {
  14087. return awsutil.Prettify(s)
  14088. }
  14089. // GoString returns the string representation
  14090. func (s DeleteFlowLogsInput) GoString() string {
  14091. return s.String()
  14092. }
  14093. // Validate inspects the fields of the type to determine if they are valid.
  14094. func (s *DeleteFlowLogsInput) Validate() error {
  14095. invalidParams := request.ErrInvalidParams{Context: "DeleteFlowLogsInput"}
  14096. if s.FlowLogIds == nil {
  14097. invalidParams.Add(request.NewErrParamRequired("FlowLogIds"))
  14098. }
  14099. if invalidParams.Len() > 0 {
  14100. return invalidParams
  14101. }
  14102. return nil
  14103. }
  14104. // Contains the output of DeleteFlowLogs.
  14105. type DeleteFlowLogsOutput struct {
  14106. _ struct{} `type:"structure"`
  14107. // Information about the flow logs that could not be deleted successfully.
  14108. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  14109. }
  14110. // String returns the string representation
  14111. func (s DeleteFlowLogsOutput) String() string {
  14112. return awsutil.Prettify(s)
  14113. }
  14114. // GoString returns the string representation
  14115. func (s DeleteFlowLogsOutput) GoString() string {
  14116. return s.String()
  14117. }
  14118. // Contains the parameters for DeleteInternetGateway.
  14119. type DeleteInternetGatewayInput struct {
  14120. _ struct{} `type:"structure"`
  14121. // Checks whether you have the required permissions for the action, without
  14122. // actually making the request, and provides an error response. If you have
  14123. // the required permissions, the error response is DryRunOperation. Otherwise,
  14124. // it is UnauthorizedOperation.
  14125. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14126. // The ID of the Internet gateway.
  14127. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  14128. }
  14129. // String returns the string representation
  14130. func (s DeleteInternetGatewayInput) String() string {
  14131. return awsutil.Prettify(s)
  14132. }
  14133. // GoString returns the string representation
  14134. func (s DeleteInternetGatewayInput) GoString() string {
  14135. return s.String()
  14136. }
  14137. // Validate inspects the fields of the type to determine if they are valid.
  14138. func (s *DeleteInternetGatewayInput) Validate() error {
  14139. invalidParams := request.ErrInvalidParams{Context: "DeleteInternetGatewayInput"}
  14140. if s.InternetGatewayId == nil {
  14141. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  14142. }
  14143. if invalidParams.Len() > 0 {
  14144. return invalidParams
  14145. }
  14146. return nil
  14147. }
  14148. type DeleteInternetGatewayOutput struct {
  14149. _ struct{} `type:"structure"`
  14150. }
  14151. // String returns the string representation
  14152. func (s DeleteInternetGatewayOutput) String() string {
  14153. return awsutil.Prettify(s)
  14154. }
  14155. // GoString returns the string representation
  14156. func (s DeleteInternetGatewayOutput) GoString() string {
  14157. return s.String()
  14158. }
  14159. // Contains the parameters for DeleteKeyPair.
  14160. type DeleteKeyPairInput struct {
  14161. _ struct{} `type:"structure"`
  14162. // Checks whether you have the required permissions for the action, without
  14163. // actually making the request, and provides an error response. If you have
  14164. // the required permissions, the error response is DryRunOperation. Otherwise,
  14165. // it is UnauthorizedOperation.
  14166. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14167. // The name of the key pair.
  14168. KeyName *string `type:"string" required:"true"`
  14169. }
  14170. // String returns the string representation
  14171. func (s DeleteKeyPairInput) String() string {
  14172. return awsutil.Prettify(s)
  14173. }
  14174. // GoString returns the string representation
  14175. func (s DeleteKeyPairInput) GoString() string {
  14176. return s.String()
  14177. }
  14178. // Validate inspects the fields of the type to determine if they are valid.
  14179. func (s *DeleteKeyPairInput) Validate() error {
  14180. invalidParams := request.ErrInvalidParams{Context: "DeleteKeyPairInput"}
  14181. if s.KeyName == nil {
  14182. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  14183. }
  14184. if invalidParams.Len() > 0 {
  14185. return invalidParams
  14186. }
  14187. return nil
  14188. }
  14189. type DeleteKeyPairOutput struct {
  14190. _ struct{} `type:"structure"`
  14191. }
  14192. // String returns the string representation
  14193. func (s DeleteKeyPairOutput) String() string {
  14194. return awsutil.Prettify(s)
  14195. }
  14196. // GoString returns the string representation
  14197. func (s DeleteKeyPairOutput) GoString() string {
  14198. return s.String()
  14199. }
  14200. // Contains the parameters for DeleteNatGateway.
  14201. type DeleteNatGatewayInput struct {
  14202. _ struct{} `type:"structure"`
  14203. // The ID of the NAT gateway.
  14204. NatGatewayId *string `type:"string" required:"true"`
  14205. }
  14206. // String returns the string representation
  14207. func (s DeleteNatGatewayInput) String() string {
  14208. return awsutil.Prettify(s)
  14209. }
  14210. // GoString returns the string representation
  14211. func (s DeleteNatGatewayInput) GoString() string {
  14212. return s.String()
  14213. }
  14214. // Validate inspects the fields of the type to determine if they are valid.
  14215. func (s *DeleteNatGatewayInput) Validate() error {
  14216. invalidParams := request.ErrInvalidParams{Context: "DeleteNatGatewayInput"}
  14217. if s.NatGatewayId == nil {
  14218. invalidParams.Add(request.NewErrParamRequired("NatGatewayId"))
  14219. }
  14220. if invalidParams.Len() > 0 {
  14221. return invalidParams
  14222. }
  14223. return nil
  14224. }
  14225. // Contains the output of DeleteNatGateway.
  14226. type DeleteNatGatewayOutput struct {
  14227. _ struct{} `type:"structure"`
  14228. // The ID of the NAT gateway.
  14229. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  14230. }
  14231. // String returns the string representation
  14232. func (s DeleteNatGatewayOutput) String() string {
  14233. return awsutil.Prettify(s)
  14234. }
  14235. // GoString returns the string representation
  14236. func (s DeleteNatGatewayOutput) GoString() string {
  14237. return s.String()
  14238. }
  14239. // Contains the parameters for DeleteNetworkAclEntry.
  14240. type DeleteNetworkAclEntryInput struct {
  14241. _ struct{} `type:"structure"`
  14242. // Checks whether you have the required permissions for the action, without
  14243. // actually making the request, and provides an error response. If you have
  14244. // the required permissions, the error response is DryRunOperation. Otherwise,
  14245. // it is UnauthorizedOperation.
  14246. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14247. // Indicates whether the rule is an egress rule.
  14248. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  14249. // The ID of the network ACL.
  14250. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  14251. // The rule number of the entry to delete.
  14252. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  14253. }
  14254. // String returns the string representation
  14255. func (s DeleteNetworkAclEntryInput) String() string {
  14256. return awsutil.Prettify(s)
  14257. }
  14258. // GoString returns the string representation
  14259. func (s DeleteNetworkAclEntryInput) GoString() string {
  14260. return s.String()
  14261. }
  14262. // Validate inspects the fields of the type to determine if they are valid.
  14263. func (s *DeleteNetworkAclEntryInput) Validate() error {
  14264. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclEntryInput"}
  14265. if s.Egress == nil {
  14266. invalidParams.Add(request.NewErrParamRequired("Egress"))
  14267. }
  14268. if s.NetworkAclId == nil {
  14269. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  14270. }
  14271. if s.RuleNumber == nil {
  14272. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  14273. }
  14274. if invalidParams.Len() > 0 {
  14275. return invalidParams
  14276. }
  14277. return nil
  14278. }
  14279. type DeleteNetworkAclEntryOutput struct {
  14280. _ struct{} `type:"structure"`
  14281. }
  14282. // String returns the string representation
  14283. func (s DeleteNetworkAclEntryOutput) String() string {
  14284. return awsutil.Prettify(s)
  14285. }
  14286. // GoString returns the string representation
  14287. func (s DeleteNetworkAclEntryOutput) GoString() string {
  14288. return s.String()
  14289. }
  14290. // Contains the parameters for DeleteNetworkAcl.
  14291. type DeleteNetworkAclInput struct {
  14292. _ struct{} `type:"structure"`
  14293. // Checks whether you have the required permissions for the action, without
  14294. // actually making the request, and provides an error response. If you have
  14295. // the required permissions, the error response is DryRunOperation. Otherwise,
  14296. // it is UnauthorizedOperation.
  14297. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14298. // The ID of the network ACL.
  14299. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  14300. }
  14301. // String returns the string representation
  14302. func (s DeleteNetworkAclInput) String() string {
  14303. return awsutil.Prettify(s)
  14304. }
  14305. // GoString returns the string representation
  14306. func (s DeleteNetworkAclInput) GoString() string {
  14307. return s.String()
  14308. }
  14309. // Validate inspects the fields of the type to determine if they are valid.
  14310. func (s *DeleteNetworkAclInput) Validate() error {
  14311. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkAclInput"}
  14312. if s.NetworkAclId == nil {
  14313. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  14314. }
  14315. if invalidParams.Len() > 0 {
  14316. return invalidParams
  14317. }
  14318. return nil
  14319. }
  14320. type DeleteNetworkAclOutput struct {
  14321. _ struct{} `type:"structure"`
  14322. }
  14323. // String returns the string representation
  14324. func (s DeleteNetworkAclOutput) String() string {
  14325. return awsutil.Prettify(s)
  14326. }
  14327. // GoString returns the string representation
  14328. func (s DeleteNetworkAclOutput) GoString() string {
  14329. return s.String()
  14330. }
  14331. // Contains the parameters for DeleteNetworkInterface.
  14332. type DeleteNetworkInterfaceInput struct {
  14333. _ struct{} `type:"structure"`
  14334. // Checks whether you have the required permissions for the action, without
  14335. // actually making the request, and provides an error response. If you have
  14336. // the required permissions, the error response is DryRunOperation. Otherwise,
  14337. // it is UnauthorizedOperation.
  14338. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14339. // The ID of the network interface.
  14340. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  14341. }
  14342. // String returns the string representation
  14343. func (s DeleteNetworkInterfaceInput) String() string {
  14344. return awsutil.Prettify(s)
  14345. }
  14346. // GoString returns the string representation
  14347. func (s DeleteNetworkInterfaceInput) GoString() string {
  14348. return s.String()
  14349. }
  14350. // Validate inspects the fields of the type to determine if they are valid.
  14351. func (s *DeleteNetworkInterfaceInput) Validate() error {
  14352. invalidParams := request.ErrInvalidParams{Context: "DeleteNetworkInterfaceInput"}
  14353. if s.NetworkInterfaceId == nil {
  14354. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  14355. }
  14356. if invalidParams.Len() > 0 {
  14357. return invalidParams
  14358. }
  14359. return nil
  14360. }
  14361. type DeleteNetworkInterfaceOutput struct {
  14362. _ struct{} `type:"structure"`
  14363. }
  14364. // String returns the string representation
  14365. func (s DeleteNetworkInterfaceOutput) String() string {
  14366. return awsutil.Prettify(s)
  14367. }
  14368. // GoString returns the string representation
  14369. func (s DeleteNetworkInterfaceOutput) GoString() string {
  14370. return s.String()
  14371. }
  14372. // Contains the parameters for DeletePlacementGroup.
  14373. type DeletePlacementGroupInput struct {
  14374. _ struct{} `type:"structure"`
  14375. // Checks whether you have the required permissions for the action, without
  14376. // actually making the request, and provides an error response. If you have
  14377. // the required permissions, the error response is DryRunOperation. Otherwise,
  14378. // it is UnauthorizedOperation.
  14379. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14380. // The name of the placement group.
  14381. GroupName *string `locationName:"groupName" type:"string" required:"true"`
  14382. }
  14383. // String returns the string representation
  14384. func (s DeletePlacementGroupInput) String() string {
  14385. return awsutil.Prettify(s)
  14386. }
  14387. // GoString returns the string representation
  14388. func (s DeletePlacementGroupInput) GoString() string {
  14389. return s.String()
  14390. }
  14391. // Validate inspects the fields of the type to determine if they are valid.
  14392. func (s *DeletePlacementGroupInput) Validate() error {
  14393. invalidParams := request.ErrInvalidParams{Context: "DeletePlacementGroupInput"}
  14394. if s.GroupName == nil {
  14395. invalidParams.Add(request.NewErrParamRequired("GroupName"))
  14396. }
  14397. if invalidParams.Len() > 0 {
  14398. return invalidParams
  14399. }
  14400. return nil
  14401. }
  14402. type DeletePlacementGroupOutput struct {
  14403. _ struct{} `type:"structure"`
  14404. }
  14405. // String returns the string representation
  14406. func (s DeletePlacementGroupOutput) String() string {
  14407. return awsutil.Prettify(s)
  14408. }
  14409. // GoString returns the string representation
  14410. func (s DeletePlacementGroupOutput) GoString() string {
  14411. return s.String()
  14412. }
  14413. // Contains the parameters for DeleteRoute.
  14414. type DeleteRouteInput struct {
  14415. _ struct{} `type:"structure"`
  14416. // The CIDR range for the route. The value you specify must match the CIDR for
  14417. // the route exactly.
  14418. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string" required:"true"`
  14419. // Checks whether you have the required permissions for the action, without
  14420. // actually making the request, and provides an error response. If you have
  14421. // the required permissions, the error response is DryRunOperation. Otherwise,
  14422. // it is UnauthorizedOperation.
  14423. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14424. // The ID of the route table.
  14425. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  14426. }
  14427. // String returns the string representation
  14428. func (s DeleteRouteInput) String() string {
  14429. return awsutil.Prettify(s)
  14430. }
  14431. // GoString returns the string representation
  14432. func (s DeleteRouteInput) GoString() string {
  14433. return s.String()
  14434. }
  14435. // Validate inspects the fields of the type to determine if they are valid.
  14436. func (s *DeleteRouteInput) Validate() error {
  14437. invalidParams := request.ErrInvalidParams{Context: "DeleteRouteInput"}
  14438. if s.DestinationCidrBlock == nil {
  14439. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  14440. }
  14441. if s.RouteTableId == nil {
  14442. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  14443. }
  14444. if invalidParams.Len() > 0 {
  14445. return invalidParams
  14446. }
  14447. return nil
  14448. }
  14449. type DeleteRouteOutput struct {
  14450. _ struct{} `type:"structure"`
  14451. }
  14452. // String returns the string representation
  14453. func (s DeleteRouteOutput) String() string {
  14454. return awsutil.Prettify(s)
  14455. }
  14456. // GoString returns the string representation
  14457. func (s DeleteRouteOutput) GoString() string {
  14458. return s.String()
  14459. }
  14460. // Contains the parameters for DeleteRouteTable.
  14461. type DeleteRouteTableInput struct {
  14462. _ struct{} `type:"structure"`
  14463. // Checks whether you have the required permissions for the action, without
  14464. // actually making the request, and provides an error response. If you have
  14465. // the required permissions, the error response is DryRunOperation. Otherwise,
  14466. // it is UnauthorizedOperation.
  14467. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14468. // The ID of the route table.
  14469. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  14470. }
  14471. // String returns the string representation
  14472. func (s DeleteRouteTableInput) String() string {
  14473. return awsutil.Prettify(s)
  14474. }
  14475. // GoString returns the string representation
  14476. func (s DeleteRouteTableInput) GoString() string {
  14477. return s.String()
  14478. }
  14479. // Validate inspects the fields of the type to determine if they are valid.
  14480. func (s *DeleteRouteTableInput) Validate() error {
  14481. invalidParams := request.ErrInvalidParams{Context: "DeleteRouteTableInput"}
  14482. if s.RouteTableId == nil {
  14483. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  14484. }
  14485. if invalidParams.Len() > 0 {
  14486. return invalidParams
  14487. }
  14488. return nil
  14489. }
  14490. type DeleteRouteTableOutput struct {
  14491. _ struct{} `type:"structure"`
  14492. }
  14493. // String returns the string representation
  14494. func (s DeleteRouteTableOutput) String() string {
  14495. return awsutil.Prettify(s)
  14496. }
  14497. // GoString returns the string representation
  14498. func (s DeleteRouteTableOutput) GoString() string {
  14499. return s.String()
  14500. }
  14501. // Contains the parameters for DeleteSecurityGroup.
  14502. type DeleteSecurityGroupInput struct {
  14503. _ struct{} `type:"structure"`
  14504. // Checks whether you have the required permissions for the action, without
  14505. // actually making the request, and provides an error response. If you have
  14506. // the required permissions, the error response is DryRunOperation. Otherwise,
  14507. // it is UnauthorizedOperation.
  14508. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14509. // The ID of the security group. Required for a nondefault VPC.
  14510. GroupId *string `type:"string"`
  14511. // [EC2-Classic, default VPC] The name of the security group. You can specify
  14512. // either the security group name or the security group ID.
  14513. GroupName *string `type:"string"`
  14514. }
  14515. // String returns the string representation
  14516. func (s DeleteSecurityGroupInput) String() string {
  14517. return awsutil.Prettify(s)
  14518. }
  14519. // GoString returns the string representation
  14520. func (s DeleteSecurityGroupInput) GoString() string {
  14521. return s.String()
  14522. }
  14523. type DeleteSecurityGroupOutput struct {
  14524. _ struct{} `type:"structure"`
  14525. }
  14526. // String returns the string representation
  14527. func (s DeleteSecurityGroupOutput) String() string {
  14528. return awsutil.Prettify(s)
  14529. }
  14530. // GoString returns the string representation
  14531. func (s DeleteSecurityGroupOutput) GoString() string {
  14532. return s.String()
  14533. }
  14534. // Contains the parameters for DeleteSnapshot.
  14535. type DeleteSnapshotInput struct {
  14536. _ struct{} `type:"structure"`
  14537. // Checks whether you have the required permissions for the action, without
  14538. // actually making the request, and provides an error response. If you have
  14539. // the required permissions, the error response is DryRunOperation. Otherwise,
  14540. // it is UnauthorizedOperation.
  14541. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14542. // The ID of the EBS snapshot.
  14543. SnapshotId *string `type:"string" required:"true"`
  14544. }
  14545. // String returns the string representation
  14546. func (s DeleteSnapshotInput) String() string {
  14547. return awsutil.Prettify(s)
  14548. }
  14549. // GoString returns the string representation
  14550. func (s DeleteSnapshotInput) GoString() string {
  14551. return s.String()
  14552. }
  14553. // Validate inspects the fields of the type to determine if they are valid.
  14554. func (s *DeleteSnapshotInput) Validate() error {
  14555. invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"}
  14556. if s.SnapshotId == nil {
  14557. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  14558. }
  14559. if invalidParams.Len() > 0 {
  14560. return invalidParams
  14561. }
  14562. return nil
  14563. }
  14564. type DeleteSnapshotOutput struct {
  14565. _ struct{} `type:"structure"`
  14566. }
  14567. // String returns the string representation
  14568. func (s DeleteSnapshotOutput) String() string {
  14569. return awsutil.Prettify(s)
  14570. }
  14571. // GoString returns the string representation
  14572. func (s DeleteSnapshotOutput) GoString() string {
  14573. return s.String()
  14574. }
  14575. // Contains the parameters for DeleteSpotDatafeedSubscription.
  14576. type DeleteSpotDatafeedSubscriptionInput struct {
  14577. _ struct{} `type:"structure"`
  14578. // Checks whether you have the required permissions for the action, without
  14579. // actually making the request, and provides an error response. If you have
  14580. // the required permissions, the error response is DryRunOperation. Otherwise,
  14581. // it is UnauthorizedOperation.
  14582. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14583. }
  14584. // String returns the string representation
  14585. func (s DeleteSpotDatafeedSubscriptionInput) String() string {
  14586. return awsutil.Prettify(s)
  14587. }
  14588. // GoString returns the string representation
  14589. func (s DeleteSpotDatafeedSubscriptionInput) GoString() string {
  14590. return s.String()
  14591. }
  14592. type DeleteSpotDatafeedSubscriptionOutput struct {
  14593. _ struct{} `type:"structure"`
  14594. }
  14595. // String returns the string representation
  14596. func (s DeleteSpotDatafeedSubscriptionOutput) String() string {
  14597. return awsutil.Prettify(s)
  14598. }
  14599. // GoString returns the string representation
  14600. func (s DeleteSpotDatafeedSubscriptionOutput) GoString() string {
  14601. return s.String()
  14602. }
  14603. // Contains the parameters for DeleteSubnet.
  14604. type DeleteSubnetInput struct {
  14605. _ struct{} `type:"structure"`
  14606. // Checks whether you have the required permissions for the action, without
  14607. // actually making the request, and provides an error response. If you have
  14608. // the required permissions, the error response is DryRunOperation. Otherwise,
  14609. // it is UnauthorizedOperation.
  14610. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14611. // The ID of the subnet.
  14612. SubnetId *string `type:"string" required:"true"`
  14613. }
  14614. // String returns the string representation
  14615. func (s DeleteSubnetInput) String() string {
  14616. return awsutil.Prettify(s)
  14617. }
  14618. // GoString returns the string representation
  14619. func (s DeleteSubnetInput) GoString() string {
  14620. return s.String()
  14621. }
  14622. // Validate inspects the fields of the type to determine if they are valid.
  14623. func (s *DeleteSubnetInput) Validate() error {
  14624. invalidParams := request.ErrInvalidParams{Context: "DeleteSubnetInput"}
  14625. if s.SubnetId == nil {
  14626. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  14627. }
  14628. if invalidParams.Len() > 0 {
  14629. return invalidParams
  14630. }
  14631. return nil
  14632. }
  14633. type DeleteSubnetOutput struct {
  14634. _ struct{} `type:"structure"`
  14635. }
  14636. // String returns the string representation
  14637. func (s DeleteSubnetOutput) String() string {
  14638. return awsutil.Prettify(s)
  14639. }
  14640. // GoString returns the string representation
  14641. func (s DeleteSubnetOutput) GoString() string {
  14642. return s.String()
  14643. }
  14644. // Contains the parameters for DeleteTags.
  14645. type DeleteTagsInput struct {
  14646. _ struct{} `type:"structure"`
  14647. // Checks whether you have the required permissions for the action, without
  14648. // actually making the request, and provides an error response. If you have
  14649. // the required permissions, the error response is DryRunOperation. Otherwise,
  14650. // it is UnauthorizedOperation.
  14651. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14652. // The ID of the resource. For example, ami-1a2b3c4d. You can specify more than
  14653. // one resource ID.
  14654. Resources []*string `locationName:"resourceId" type:"list" required:"true"`
  14655. // One or more tags to delete. If you omit the value parameter, we delete the
  14656. // tag regardless of its value. If you specify this parameter with an empty
  14657. // string as the value, we delete the key only if its value is an empty string.
  14658. Tags []*Tag `locationName:"tag" locationNameList:"item" type:"list"`
  14659. }
  14660. // String returns the string representation
  14661. func (s DeleteTagsInput) String() string {
  14662. return awsutil.Prettify(s)
  14663. }
  14664. // GoString returns the string representation
  14665. func (s DeleteTagsInput) GoString() string {
  14666. return s.String()
  14667. }
  14668. // Validate inspects the fields of the type to determine if they are valid.
  14669. func (s *DeleteTagsInput) Validate() error {
  14670. invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
  14671. if s.Resources == nil {
  14672. invalidParams.Add(request.NewErrParamRequired("Resources"))
  14673. }
  14674. if invalidParams.Len() > 0 {
  14675. return invalidParams
  14676. }
  14677. return nil
  14678. }
  14679. type DeleteTagsOutput struct {
  14680. _ struct{} `type:"structure"`
  14681. }
  14682. // String returns the string representation
  14683. func (s DeleteTagsOutput) String() string {
  14684. return awsutil.Prettify(s)
  14685. }
  14686. // GoString returns the string representation
  14687. func (s DeleteTagsOutput) GoString() string {
  14688. return s.String()
  14689. }
  14690. // Contains the parameters for DeleteVolume.
  14691. type DeleteVolumeInput struct {
  14692. _ struct{} `type:"structure"`
  14693. // Checks whether you have the required permissions for the action, without
  14694. // actually making the request, and provides an error response. If you have
  14695. // the required permissions, the error response is DryRunOperation. Otherwise,
  14696. // it is UnauthorizedOperation.
  14697. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14698. // The ID of the volume.
  14699. VolumeId *string `type:"string" required:"true"`
  14700. }
  14701. // String returns the string representation
  14702. func (s DeleteVolumeInput) String() string {
  14703. return awsutil.Prettify(s)
  14704. }
  14705. // GoString returns the string representation
  14706. func (s DeleteVolumeInput) GoString() string {
  14707. return s.String()
  14708. }
  14709. // Validate inspects the fields of the type to determine if they are valid.
  14710. func (s *DeleteVolumeInput) Validate() error {
  14711. invalidParams := request.ErrInvalidParams{Context: "DeleteVolumeInput"}
  14712. if s.VolumeId == nil {
  14713. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  14714. }
  14715. if invalidParams.Len() > 0 {
  14716. return invalidParams
  14717. }
  14718. return nil
  14719. }
  14720. type DeleteVolumeOutput struct {
  14721. _ struct{} `type:"structure"`
  14722. }
  14723. // String returns the string representation
  14724. func (s DeleteVolumeOutput) String() string {
  14725. return awsutil.Prettify(s)
  14726. }
  14727. // GoString returns the string representation
  14728. func (s DeleteVolumeOutput) GoString() string {
  14729. return s.String()
  14730. }
  14731. // Contains the parameters for DeleteVpcEndpoints.
  14732. type DeleteVpcEndpointsInput struct {
  14733. _ struct{} `type:"structure"`
  14734. // Checks whether you have the required permissions for the action, without
  14735. // actually making the request, and provides an error response. If you have
  14736. // the required permissions, the error response is DryRunOperation. Otherwise,
  14737. // it is UnauthorizedOperation.
  14738. DryRun *bool `type:"boolean"`
  14739. // One or more endpoint IDs.
  14740. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list" required:"true"`
  14741. }
  14742. // String returns the string representation
  14743. func (s DeleteVpcEndpointsInput) String() string {
  14744. return awsutil.Prettify(s)
  14745. }
  14746. // GoString returns the string representation
  14747. func (s DeleteVpcEndpointsInput) GoString() string {
  14748. return s.String()
  14749. }
  14750. // Validate inspects the fields of the type to determine if they are valid.
  14751. func (s *DeleteVpcEndpointsInput) Validate() error {
  14752. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcEndpointsInput"}
  14753. if s.VpcEndpointIds == nil {
  14754. invalidParams.Add(request.NewErrParamRequired("VpcEndpointIds"))
  14755. }
  14756. if invalidParams.Len() > 0 {
  14757. return invalidParams
  14758. }
  14759. return nil
  14760. }
  14761. // Contains the output of DeleteVpcEndpoints.
  14762. type DeleteVpcEndpointsOutput struct {
  14763. _ struct{} `type:"structure"`
  14764. // Information about the endpoints that were not successfully deleted.
  14765. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  14766. }
  14767. // String returns the string representation
  14768. func (s DeleteVpcEndpointsOutput) String() string {
  14769. return awsutil.Prettify(s)
  14770. }
  14771. // GoString returns the string representation
  14772. func (s DeleteVpcEndpointsOutput) GoString() string {
  14773. return s.String()
  14774. }
  14775. // Contains the parameters for DeleteVpc.
  14776. type DeleteVpcInput struct {
  14777. _ struct{} `type:"structure"`
  14778. // Checks whether you have the required permissions for the action, without
  14779. // actually making the request, and provides an error response. If you have
  14780. // the required permissions, the error response is DryRunOperation. Otherwise,
  14781. // it is UnauthorizedOperation.
  14782. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14783. // The ID of the VPC.
  14784. VpcId *string `type:"string" required:"true"`
  14785. }
  14786. // String returns the string representation
  14787. func (s DeleteVpcInput) String() string {
  14788. return awsutil.Prettify(s)
  14789. }
  14790. // GoString returns the string representation
  14791. func (s DeleteVpcInput) GoString() string {
  14792. return s.String()
  14793. }
  14794. // Validate inspects the fields of the type to determine if they are valid.
  14795. func (s *DeleteVpcInput) Validate() error {
  14796. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcInput"}
  14797. if s.VpcId == nil {
  14798. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  14799. }
  14800. if invalidParams.Len() > 0 {
  14801. return invalidParams
  14802. }
  14803. return nil
  14804. }
  14805. type DeleteVpcOutput struct {
  14806. _ struct{} `type:"structure"`
  14807. }
  14808. // String returns the string representation
  14809. func (s DeleteVpcOutput) String() string {
  14810. return awsutil.Prettify(s)
  14811. }
  14812. // GoString returns the string representation
  14813. func (s DeleteVpcOutput) GoString() string {
  14814. return s.String()
  14815. }
  14816. // Contains the parameters for DeleteVpcPeeringConnection.
  14817. type DeleteVpcPeeringConnectionInput struct {
  14818. _ struct{} `type:"structure"`
  14819. // Checks whether you have the required permissions for the action, without
  14820. // actually making the request, and provides an error response. If you have
  14821. // the required permissions, the error response is DryRunOperation. Otherwise,
  14822. // it is UnauthorizedOperation.
  14823. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14824. // The ID of the VPC peering connection.
  14825. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
  14826. }
  14827. // String returns the string representation
  14828. func (s DeleteVpcPeeringConnectionInput) String() string {
  14829. return awsutil.Prettify(s)
  14830. }
  14831. // GoString returns the string representation
  14832. func (s DeleteVpcPeeringConnectionInput) GoString() string {
  14833. return s.String()
  14834. }
  14835. // Validate inspects the fields of the type to determine if they are valid.
  14836. func (s *DeleteVpcPeeringConnectionInput) Validate() error {
  14837. invalidParams := request.ErrInvalidParams{Context: "DeleteVpcPeeringConnectionInput"}
  14838. if s.VpcPeeringConnectionId == nil {
  14839. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  14840. }
  14841. if invalidParams.Len() > 0 {
  14842. return invalidParams
  14843. }
  14844. return nil
  14845. }
  14846. // Contains the output of DeleteVpcPeeringConnection.
  14847. type DeleteVpcPeeringConnectionOutput struct {
  14848. _ struct{} `type:"structure"`
  14849. // Returns true if the request succeeds; otherwise, it returns an error.
  14850. Return *bool `locationName:"return" type:"boolean"`
  14851. }
  14852. // String returns the string representation
  14853. func (s DeleteVpcPeeringConnectionOutput) String() string {
  14854. return awsutil.Prettify(s)
  14855. }
  14856. // GoString returns the string representation
  14857. func (s DeleteVpcPeeringConnectionOutput) GoString() string {
  14858. return s.String()
  14859. }
  14860. // Contains the parameters for DeleteVpnConnection.
  14861. type DeleteVpnConnectionInput struct {
  14862. _ struct{} `type:"structure"`
  14863. // Checks whether you have the required permissions for the action, without
  14864. // actually making the request, and provides an error response. If you have
  14865. // the required permissions, the error response is DryRunOperation. Otherwise,
  14866. // it is UnauthorizedOperation.
  14867. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14868. // The ID of the VPN connection.
  14869. VpnConnectionId *string `type:"string" required:"true"`
  14870. }
  14871. // String returns the string representation
  14872. func (s DeleteVpnConnectionInput) String() string {
  14873. return awsutil.Prettify(s)
  14874. }
  14875. // GoString returns the string representation
  14876. func (s DeleteVpnConnectionInput) GoString() string {
  14877. return s.String()
  14878. }
  14879. // Validate inspects the fields of the type to determine if they are valid.
  14880. func (s *DeleteVpnConnectionInput) Validate() error {
  14881. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionInput"}
  14882. if s.VpnConnectionId == nil {
  14883. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  14884. }
  14885. if invalidParams.Len() > 0 {
  14886. return invalidParams
  14887. }
  14888. return nil
  14889. }
  14890. type DeleteVpnConnectionOutput struct {
  14891. _ struct{} `type:"structure"`
  14892. }
  14893. // String returns the string representation
  14894. func (s DeleteVpnConnectionOutput) String() string {
  14895. return awsutil.Prettify(s)
  14896. }
  14897. // GoString returns the string representation
  14898. func (s DeleteVpnConnectionOutput) GoString() string {
  14899. return s.String()
  14900. }
  14901. // Contains the parameters for DeleteVpnConnectionRoute.
  14902. type DeleteVpnConnectionRouteInput struct {
  14903. _ struct{} `type:"structure"`
  14904. // The CIDR block associated with the local subnet of the customer network.
  14905. DestinationCidrBlock *string `type:"string" required:"true"`
  14906. // The ID of the VPN connection.
  14907. VpnConnectionId *string `type:"string" required:"true"`
  14908. }
  14909. // String returns the string representation
  14910. func (s DeleteVpnConnectionRouteInput) String() string {
  14911. return awsutil.Prettify(s)
  14912. }
  14913. // GoString returns the string representation
  14914. func (s DeleteVpnConnectionRouteInput) GoString() string {
  14915. return s.String()
  14916. }
  14917. // Validate inspects the fields of the type to determine if they are valid.
  14918. func (s *DeleteVpnConnectionRouteInput) Validate() error {
  14919. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnConnectionRouteInput"}
  14920. if s.DestinationCidrBlock == nil {
  14921. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  14922. }
  14923. if s.VpnConnectionId == nil {
  14924. invalidParams.Add(request.NewErrParamRequired("VpnConnectionId"))
  14925. }
  14926. if invalidParams.Len() > 0 {
  14927. return invalidParams
  14928. }
  14929. return nil
  14930. }
  14931. type DeleteVpnConnectionRouteOutput struct {
  14932. _ struct{} `type:"structure"`
  14933. }
  14934. // String returns the string representation
  14935. func (s DeleteVpnConnectionRouteOutput) String() string {
  14936. return awsutil.Prettify(s)
  14937. }
  14938. // GoString returns the string representation
  14939. func (s DeleteVpnConnectionRouteOutput) GoString() string {
  14940. return s.String()
  14941. }
  14942. // Contains the parameters for DeleteVpnGateway.
  14943. type DeleteVpnGatewayInput struct {
  14944. _ struct{} `type:"structure"`
  14945. // Checks whether you have the required permissions for the action, without
  14946. // actually making the request, and provides an error response. If you have
  14947. // the required permissions, the error response is DryRunOperation. Otherwise,
  14948. // it is UnauthorizedOperation.
  14949. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14950. // The ID of the virtual private gateway.
  14951. VpnGatewayId *string `type:"string" required:"true"`
  14952. }
  14953. // String returns the string representation
  14954. func (s DeleteVpnGatewayInput) String() string {
  14955. return awsutil.Prettify(s)
  14956. }
  14957. // GoString returns the string representation
  14958. func (s DeleteVpnGatewayInput) GoString() string {
  14959. return s.String()
  14960. }
  14961. // Validate inspects the fields of the type to determine if they are valid.
  14962. func (s *DeleteVpnGatewayInput) Validate() error {
  14963. invalidParams := request.ErrInvalidParams{Context: "DeleteVpnGatewayInput"}
  14964. if s.VpnGatewayId == nil {
  14965. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  14966. }
  14967. if invalidParams.Len() > 0 {
  14968. return invalidParams
  14969. }
  14970. return nil
  14971. }
  14972. type DeleteVpnGatewayOutput struct {
  14973. _ struct{} `type:"structure"`
  14974. }
  14975. // String returns the string representation
  14976. func (s DeleteVpnGatewayOutput) String() string {
  14977. return awsutil.Prettify(s)
  14978. }
  14979. // GoString returns the string representation
  14980. func (s DeleteVpnGatewayOutput) GoString() string {
  14981. return s.String()
  14982. }
  14983. // Contains the parameters for DeregisterImage.
  14984. type DeregisterImageInput struct {
  14985. _ struct{} `type:"structure"`
  14986. // Checks whether you have the required permissions for the action, without
  14987. // actually making the request, and provides an error response. If you have
  14988. // the required permissions, the error response is DryRunOperation. Otherwise,
  14989. // it is UnauthorizedOperation.
  14990. DryRun *bool `locationName:"dryRun" type:"boolean"`
  14991. // The ID of the AMI.
  14992. ImageId *string `type:"string" required:"true"`
  14993. }
  14994. // String returns the string representation
  14995. func (s DeregisterImageInput) String() string {
  14996. return awsutil.Prettify(s)
  14997. }
  14998. // GoString returns the string representation
  14999. func (s DeregisterImageInput) GoString() string {
  15000. return s.String()
  15001. }
  15002. // Validate inspects the fields of the type to determine if they are valid.
  15003. func (s *DeregisterImageInput) Validate() error {
  15004. invalidParams := request.ErrInvalidParams{Context: "DeregisterImageInput"}
  15005. if s.ImageId == nil {
  15006. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  15007. }
  15008. if invalidParams.Len() > 0 {
  15009. return invalidParams
  15010. }
  15011. return nil
  15012. }
  15013. type DeregisterImageOutput struct {
  15014. _ struct{} `type:"structure"`
  15015. }
  15016. // String returns the string representation
  15017. func (s DeregisterImageOutput) String() string {
  15018. return awsutil.Prettify(s)
  15019. }
  15020. // GoString returns the string representation
  15021. func (s DeregisterImageOutput) GoString() string {
  15022. return s.String()
  15023. }
  15024. // Contains the parameters for DescribeAccountAttributes.
  15025. type DescribeAccountAttributesInput struct {
  15026. _ struct{} `type:"structure"`
  15027. // One or more account attribute names.
  15028. AttributeNames []*string `locationName:"attributeName" locationNameList:"attributeName" type:"list"`
  15029. // Checks whether you have the required permissions for the action, without
  15030. // actually making the request, and provides an error response. If you have
  15031. // the required permissions, the error response is DryRunOperation. Otherwise,
  15032. // it is UnauthorizedOperation.
  15033. DryRun *bool `locationName:"dryRun" type:"boolean"`
  15034. }
  15035. // String returns the string representation
  15036. func (s DescribeAccountAttributesInput) String() string {
  15037. return awsutil.Prettify(s)
  15038. }
  15039. // GoString returns the string representation
  15040. func (s DescribeAccountAttributesInput) GoString() string {
  15041. return s.String()
  15042. }
  15043. // Contains the output of DescribeAccountAttributes.
  15044. type DescribeAccountAttributesOutput struct {
  15045. _ struct{} `type:"structure"`
  15046. // Information about one or more account attributes.
  15047. AccountAttributes []*AccountAttribute `locationName:"accountAttributeSet" locationNameList:"item" type:"list"`
  15048. }
  15049. // String returns the string representation
  15050. func (s DescribeAccountAttributesOutput) String() string {
  15051. return awsutil.Prettify(s)
  15052. }
  15053. // GoString returns the string representation
  15054. func (s DescribeAccountAttributesOutput) GoString() string {
  15055. return s.String()
  15056. }
  15057. // Contains the parameters for DescribeAddresses.
  15058. type DescribeAddressesInput struct {
  15059. _ struct{} `type:"structure"`
  15060. // [EC2-VPC] One or more allocation IDs.
  15061. //
  15062. // Default: Describes all your Elastic IP addresses.
  15063. AllocationIds []*string `locationName:"AllocationId" locationNameList:"AllocationId" type:"list"`
  15064. // Checks whether you have the required permissions for the action, without
  15065. // actually making the request, and provides an error response. If you have
  15066. // the required permissions, the error response is DryRunOperation. Otherwise,
  15067. // it is UnauthorizedOperation.
  15068. DryRun *bool `locationName:"dryRun" type:"boolean"`
  15069. // One or more filters. Filter names and values are case-sensitive.
  15070. //
  15071. // allocation-id - [EC2-VPC] The allocation ID for the address.
  15072. //
  15073. // association-id - [EC2-VPC] The association ID for the address.
  15074. //
  15075. // domain - Indicates whether the address is for use in EC2-Classic (standard)
  15076. // or in a VPC (vpc).
  15077. //
  15078. // instance-id - The ID of the instance the address is associated with,
  15079. // if any.
  15080. //
  15081. // network-interface-id - [EC2-VPC] The ID of the network interface that
  15082. // the address is associated with, if any.
  15083. //
  15084. // network-interface-owner-id - The AWS account ID of the owner.
  15085. //
  15086. // private-ip-address - [EC2-VPC] The private IP address associated with
  15087. // the Elastic IP address.
  15088. //
  15089. // public-ip - The Elastic IP address.
  15090. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  15091. // [EC2-Classic] One or more Elastic IP addresses.
  15092. //
  15093. // Default: Describes all your Elastic IP addresses.
  15094. PublicIps []*string `locationName:"PublicIp" locationNameList:"PublicIp" type:"list"`
  15095. }
  15096. // String returns the string representation
  15097. func (s DescribeAddressesInput) String() string {
  15098. return awsutil.Prettify(s)
  15099. }
  15100. // GoString returns the string representation
  15101. func (s DescribeAddressesInput) GoString() string {
  15102. return s.String()
  15103. }
  15104. // Contains the output of DescribeAddresses.
  15105. type DescribeAddressesOutput struct {
  15106. _ struct{} `type:"structure"`
  15107. // Information about one or more Elastic IP addresses.
  15108. Addresses []*Address `locationName:"addressesSet" locationNameList:"item" type:"list"`
  15109. }
  15110. // String returns the string representation
  15111. func (s DescribeAddressesOutput) String() string {
  15112. return awsutil.Prettify(s)
  15113. }
  15114. // GoString returns the string representation
  15115. func (s DescribeAddressesOutput) GoString() string {
  15116. return s.String()
  15117. }
  15118. // Contains the parameters for DescribeAvailabilityZones.
  15119. type DescribeAvailabilityZonesInput struct {
  15120. _ struct{} `type:"structure"`
  15121. // Checks whether you have the required permissions for the action, without
  15122. // actually making the request, and provides an error response. If you have
  15123. // the required permissions, the error response is DryRunOperation. Otherwise,
  15124. // it is UnauthorizedOperation.
  15125. DryRun *bool `locationName:"dryRun" type:"boolean"`
  15126. // One or more filters.
  15127. //
  15128. // message - Information about the Availability Zone.
  15129. //
  15130. // region-name - The name of the region for the Availability Zone (for example,
  15131. // us-east-1).
  15132. //
  15133. // state - The state of the Availability Zone (available | information |
  15134. // impaired | unavailable).
  15135. //
  15136. // zone-name - The name of the Availability Zone (for example, us-east-1a).
  15137. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  15138. // The names of one or more Availability Zones.
  15139. ZoneNames []*string `locationName:"ZoneName" locationNameList:"ZoneName" type:"list"`
  15140. }
  15141. // String returns the string representation
  15142. func (s DescribeAvailabilityZonesInput) String() string {
  15143. return awsutil.Prettify(s)
  15144. }
  15145. // GoString returns the string representation
  15146. func (s DescribeAvailabilityZonesInput) GoString() string {
  15147. return s.String()
  15148. }
  15149. // Contains the output of DescribeAvailabiltyZones.
  15150. type DescribeAvailabilityZonesOutput struct {
  15151. _ struct{} `type:"structure"`
  15152. // Information about one or more Availability Zones.
  15153. AvailabilityZones []*AvailabilityZone `locationName:"availabilityZoneInfo" locationNameList:"item" type:"list"`
  15154. }
  15155. // String returns the string representation
  15156. func (s DescribeAvailabilityZonesOutput) String() string {
  15157. return awsutil.Prettify(s)
  15158. }
  15159. // GoString returns the string representation
  15160. func (s DescribeAvailabilityZonesOutput) GoString() string {
  15161. return s.String()
  15162. }
  15163. // Contains the parameters for DescribeBundleTasks.
  15164. type DescribeBundleTasksInput struct {
  15165. _ struct{} `type:"structure"`
  15166. // One or more bundle task IDs.
  15167. //
  15168. // Default: Describes all your bundle tasks.
  15169. BundleIds []*string `locationName:"BundleId" locationNameList:"BundleId" type:"list"`
  15170. // Checks whether you have the required permissions for the action, without
  15171. // actually making the request, and provides an error response. If you have
  15172. // the required permissions, the error response is DryRunOperation. Otherwise,
  15173. // it is UnauthorizedOperation.
  15174. DryRun *bool `locationName:"dryRun" type:"boolean"`
  15175. // One or more filters.
  15176. //
  15177. // bundle-id - The ID of the bundle task.
  15178. //
  15179. // error-code - If the task failed, the error code returned.
  15180. //
  15181. // error-message - If the task failed, the error message returned.
  15182. //
  15183. // instance-id - The ID of the instance.
  15184. //
  15185. // progress - The level of task completion, as a percentage (for example,
  15186. // 20%).
  15187. //
  15188. // s3-bucket - The Amazon S3 bucket to store the AMI.
  15189. //
  15190. // s3-prefix - The beginning of the AMI name.
  15191. //
  15192. // start-time - The time the task started (for example, 2013-09-15T17:15:20.000Z).
  15193. //
  15194. // state - The state of the task (pending | waiting-for-shutdown | bundling
  15195. // | storing | cancelling | complete | failed).
  15196. //
  15197. // update-time - The time of the most recent update for the task.
  15198. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  15199. }
  15200. // String returns the string representation
  15201. func (s DescribeBundleTasksInput) String() string {
  15202. return awsutil.Prettify(s)
  15203. }
  15204. // GoString returns the string representation
  15205. func (s DescribeBundleTasksInput) GoString() string {
  15206. return s.String()
  15207. }
  15208. // Contains the output of DescribeBundleTasks.
  15209. type DescribeBundleTasksOutput struct {
  15210. _ struct{} `type:"structure"`
  15211. // Information about one or more bundle tasks.
  15212. BundleTasks []*BundleTask `locationName:"bundleInstanceTasksSet" locationNameList:"item" type:"list"`
  15213. }
  15214. // String returns the string representation
  15215. func (s DescribeBundleTasksOutput) String() string {
  15216. return awsutil.Prettify(s)
  15217. }
  15218. // GoString returns the string representation
  15219. func (s DescribeBundleTasksOutput) GoString() string {
  15220. return s.String()
  15221. }
  15222. // Contains the parameters for DescribeClassicLinkInstances.
  15223. type DescribeClassicLinkInstancesInput struct {
  15224. _ struct{} `type:"structure"`
  15225. // Checks whether you have the required permissions for the action, without
  15226. // actually making the request, and provides an error response. If you have
  15227. // the required permissions, the error response is DryRunOperation. Otherwise,
  15228. // it is UnauthorizedOperation.
  15229. DryRun *bool `locationName:"dryRun" type:"boolean"`
  15230. // One or more filters.
  15231. //
  15232. // group-id - The ID of a VPC security group that's associated with the
  15233. // instance.
  15234. //
  15235. // instance-id - The ID of the instance.
  15236. //
  15237. // tag:key=value - The key/value combination of a tag assigned to the resource.
  15238. //
  15239. // tag-key - The key of a tag assigned to the resource. This filter is independent
  15240. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  15241. // and the filter "tag-value=X", you get any resources assigned both the tag
  15242. // key Purpose (regardless of what the tag's value is), and the tag value X
  15243. // (regardless of what the tag's key is). If you want to list only resources
  15244. // where Purpose is X, see the tag:key=value filter.
  15245. //
  15246. // tag-value - The value of a tag assigned to the resource. This filter
  15247. // is independent of the tag-key filter.
  15248. //
  15249. // vpc-id - The ID of the VPC that the instance is linked to.
  15250. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  15251. // One or more instance IDs. Must be instances linked to a VPC through ClassicLink.
  15252. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  15253. // The maximum number of results to return for the request in a single page.
  15254. // The remaining results of the initial request can be seen by sending another
  15255. // request with the returned NextToken value. This value can be between 5 and
  15256. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  15257. // are returned. You cannot specify this parameter and the instance IDs parameter
  15258. // in the same request.
  15259. //
  15260. // Constraint: If the value is greater than 1000, we return only 1000 items.
  15261. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  15262. // The token to retrieve the next page of results.
  15263. NextToken *string `locationName:"nextToken" type:"string"`
  15264. }
  15265. // String returns the string representation
  15266. func (s DescribeClassicLinkInstancesInput) String() string {
  15267. return awsutil.Prettify(s)
  15268. }
  15269. // GoString returns the string representation
  15270. func (s DescribeClassicLinkInstancesInput) GoString() string {
  15271. return s.String()
  15272. }
  15273. // Contains the output of DescribeClassicLinkInstances.
  15274. type DescribeClassicLinkInstancesOutput struct {
  15275. _ struct{} `type:"structure"`
  15276. // Information about one or more linked EC2-Classic instances.
  15277. Instances []*ClassicLinkInstance `locationName:"instancesSet" locationNameList:"item" type:"list"`
  15278. // The token to use to retrieve the next page of results. This value is null
  15279. // when there are no more results to return.
  15280. NextToken *string `locationName:"nextToken" type:"string"`
  15281. }
  15282. // String returns the string representation
  15283. func (s DescribeClassicLinkInstancesOutput) String() string {
  15284. return awsutil.Prettify(s)
  15285. }
  15286. // GoString returns the string representation
  15287. func (s DescribeClassicLinkInstancesOutput) GoString() string {
  15288. return s.String()
  15289. }
  15290. // Contains the parameters for DescribeConversionTasks.
  15291. type DescribeConversionTasksInput struct {
  15292. _ struct{} `type:"structure"`
  15293. // One or more conversion task IDs.
  15294. ConversionTaskIds []*string `locationName:"conversionTaskId" locationNameList:"item" type:"list"`
  15295. // Checks whether you have the required permissions for the action, without
  15296. // actually making the request, and provides an error response. If you have
  15297. // the required permissions, the error response is DryRunOperation. Otherwise,
  15298. // it is UnauthorizedOperation.
  15299. DryRun *bool `locationName:"dryRun" type:"boolean"`
  15300. // One or more filters.
  15301. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  15302. }
  15303. // String returns the string representation
  15304. func (s DescribeConversionTasksInput) String() string {
  15305. return awsutil.Prettify(s)
  15306. }
  15307. // GoString returns the string representation
  15308. func (s DescribeConversionTasksInput) GoString() string {
  15309. return s.String()
  15310. }
  15311. // Contains the output for DescribeConversionTasks.
  15312. type DescribeConversionTasksOutput struct {
  15313. _ struct{} `type:"structure"`
  15314. // Information about the conversion tasks.
  15315. ConversionTasks []*ConversionTask `locationName:"conversionTasks" locationNameList:"item" type:"list"`
  15316. }
  15317. // String returns the string representation
  15318. func (s DescribeConversionTasksOutput) String() string {
  15319. return awsutil.Prettify(s)
  15320. }
  15321. // GoString returns the string representation
  15322. func (s DescribeConversionTasksOutput) GoString() string {
  15323. return s.String()
  15324. }
  15325. // Contains the parameters for DescribeCustomerGateways.
  15326. type DescribeCustomerGatewaysInput struct {
  15327. _ struct{} `type:"structure"`
  15328. // One or more customer gateway IDs.
  15329. //
  15330. // Default: Describes all your customer gateways.
  15331. CustomerGatewayIds []*string `locationName:"CustomerGatewayId" locationNameList:"CustomerGatewayId" type:"list"`
  15332. // Checks whether you have the required permissions for the action, without
  15333. // actually making the request, and provides an error response. If you have
  15334. // the required permissions, the error response is DryRunOperation. Otherwise,
  15335. // it is UnauthorizedOperation.
  15336. DryRun *bool `locationName:"dryRun" type:"boolean"`
  15337. // One or more filters.
  15338. //
  15339. // bgp-asn - The customer gateway's Border Gateway Protocol (BGP) Autonomous
  15340. // System Number (ASN).
  15341. //
  15342. // customer-gateway-id - The ID of the customer gateway.
  15343. //
  15344. // ip-address - The IP address of the customer gateway's Internet-routable
  15345. // external interface.
  15346. //
  15347. // state - The state of the customer gateway (pending | available | deleting
  15348. // | deleted).
  15349. //
  15350. // type - The type of customer gateway. Currently, the only supported type
  15351. // is ipsec.1.
  15352. //
  15353. // tag:key=value - The key/value combination of a tag assigned to the resource.
  15354. //
  15355. // tag-key - The key of a tag assigned to the resource. This filter is independent
  15356. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  15357. // and the filter "tag-value=X", you get any resources assigned both the tag
  15358. // key Purpose (regardless of what the tag's value is), and the tag value X
  15359. // (regardless of what the tag's key is). If you want to list only resources
  15360. // where Purpose is X, see the tag:key=value filter.
  15361. //
  15362. // tag-value - The value of a tag assigned to the resource. This filter
  15363. // is independent of the tag-key filter.
  15364. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  15365. }
  15366. // String returns the string representation
  15367. func (s DescribeCustomerGatewaysInput) String() string {
  15368. return awsutil.Prettify(s)
  15369. }
  15370. // GoString returns the string representation
  15371. func (s DescribeCustomerGatewaysInput) GoString() string {
  15372. return s.String()
  15373. }
  15374. // Contains the output of DescribeCustomerGateways.
  15375. type DescribeCustomerGatewaysOutput struct {
  15376. _ struct{} `type:"structure"`
  15377. // Information about one or more customer gateways.
  15378. CustomerGateways []*CustomerGateway `locationName:"customerGatewaySet" locationNameList:"item" type:"list"`
  15379. }
  15380. // String returns the string representation
  15381. func (s DescribeCustomerGatewaysOutput) String() string {
  15382. return awsutil.Prettify(s)
  15383. }
  15384. // GoString returns the string representation
  15385. func (s DescribeCustomerGatewaysOutput) GoString() string {
  15386. return s.String()
  15387. }
  15388. // Contains the parameters for DescribeDhcpOptions.
  15389. type DescribeDhcpOptionsInput struct {
  15390. _ struct{} `type:"structure"`
  15391. // The IDs of one or more DHCP options sets.
  15392. //
  15393. // Default: Describes all your DHCP options sets.
  15394. DhcpOptionsIds []*string `locationName:"DhcpOptionsId" locationNameList:"DhcpOptionsId" type:"list"`
  15395. // Checks whether you have the required permissions for the action, without
  15396. // actually making the request, and provides an error response. If you have
  15397. // the required permissions, the error response is DryRunOperation. Otherwise,
  15398. // it is UnauthorizedOperation.
  15399. DryRun *bool `locationName:"dryRun" type:"boolean"`
  15400. // One or more filters.
  15401. //
  15402. // dhcp-options-id - The ID of a set of DHCP options.
  15403. //
  15404. // key - The key for one of the options (for example, domain-name).
  15405. //
  15406. // value - The value for one of the options.
  15407. //
  15408. // tag:key=value - The key/value combination of a tag assigned to the resource.
  15409. //
  15410. // tag-key - The key of a tag assigned to the resource. This filter is independent
  15411. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  15412. // and the filter "tag-value=X", you get any resources assigned both the tag
  15413. // key Purpose (regardless of what the tag's value is), and the tag value X
  15414. // (regardless of what the tag's key is). If you want to list only resources
  15415. // where Purpose is X, see the tag:key=value filter.
  15416. //
  15417. // tag-value - The value of a tag assigned to the resource. This filter
  15418. // is independent of the tag-key filter.
  15419. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  15420. }
  15421. // String returns the string representation
  15422. func (s DescribeDhcpOptionsInput) String() string {
  15423. return awsutil.Prettify(s)
  15424. }
  15425. // GoString returns the string representation
  15426. func (s DescribeDhcpOptionsInput) GoString() string {
  15427. return s.String()
  15428. }
  15429. // Contains the output of DescribeDhcpOptions.
  15430. type DescribeDhcpOptionsOutput struct {
  15431. _ struct{} `type:"structure"`
  15432. // Information about one or more DHCP options sets.
  15433. DhcpOptions []*DhcpOptions `locationName:"dhcpOptionsSet" locationNameList:"item" type:"list"`
  15434. }
  15435. // String returns the string representation
  15436. func (s DescribeDhcpOptionsOutput) String() string {
  15437. return awsutil.Prettify(s)
  15438. }
  15439. // GoString returns the string representation
  15440. func (s DescribeDhcpOptionsOutput) GoString() string {
  15441. return s.String()
  15442. }
  15443. // Contains the parameters for DescribeExportTasks.
  15444. type DescribeExportTasksInput struct {
  15445. _ struct{} `type:"structure"`
  15446. // One or more export task IDs.
  15447. ExportTaskIds []*string `locationName:"exportTaskId" locationNameList:"ExportTaskId" type:"list"`
  15448. }
  15449. // String returns the string representation
  15450. func (s DescribeExportTasksInput) String() string {
  15451. return awsutil.Prettify(s)
  15452. }
  15453. // GoString returns the string representation
  15454. func (s DescribeExportTasksInput) GoString() string {
  15455. return s.String()
  15456. }
  15457. // Contains the output for DescribeExportTasks.
  15458. type DescribeExportTasksOutput struct {
  15459. _ struct{} `type:"structure"`
  15460. // Information about the export tasks.
  15461. ExportTasks []*ExportTask `locationName:"exportTaskSet" locationNameList:"item" type:"list"`
  15462. }
  15463. // String returns the string representation
  15464. func (s DescribeExportTasksOutput) String() string {
  15465. return awsutil.Prettify(s)
  15466. }
  15467. // GoString returns the string representation
  15468. func (s DescribeExportTasksOutput) GoString() string {
  15469. return s.String()
  15470. }
  15471. // Contains the parameters for DescribeFlowLogs.
  15472. type DescribeFlowLogsInput struct {
  15473. _ struct{} `type:"structure"`
  15474. // One or more filters.
  15475. //
  15476. // deliver-log-status - The status of the logs delivery (SUCCESS | FAILED).
  15477. //
  15478. // flow-log-id - The ID of the flow log.
  15479. //
  15480. // log-group-name - The name of the log group.
  15481. //
  15482. // resource-id - The ID of the VPC, subnet, or network interface.
  15483. //
  15484. // traffic-type - The type of traffic (ACCEPT | REJECT | ALL)
  15485. Filter []*Filter `locationNameList:"Filter" type:"list"`
  15486. // One or more flow log IDs.
  15487. FlowLogIds []*string `locationName:"FlowLogId" locationNameList:"item" type:"list"`
  15488. // The maximum number of results to return for the request in a single page.
  15489. // The remaining results can be seen by sending another request with the returned
  15490. // NextToken value. This value can be between 5 and 1000; if MaxResults is given
  15491. // a value larger than 1000, only 1000 results are returned. You cannot specify
  15492. // this parameter and the flow log IDs parameter in the same request.
  15493. MaxResults *int64 `type:"integer"`
  15494. // The token to retrieve the next page of results.
  15495. NextToken *string `type:"string"`
  15496. }
  15497. // String returns the string representation
  15498. func (s DescribeFlowLogsInput) String() string {
  15499. return awsutil.Prettify(s)
  15500. }
  15501. // GoString returns the string representation
  15502. func (s DescribeFlowLogsInput) GoString() string {
  15503. return s.String()
  15504. }
  15505. // Contains the output of DescribeFlowLogs.
  15506. type DescribeFlowLogsOutput struct {
  15507. _ struct{} `type:"structure"`
  15508. // Information about the flow logs.
  15509. FlowLogs []*FlowLog `locationName:"flowLogSet" locationNameList:"item" type:"list"`
  15510. // The token to use to retrieve the next page of results. This value is null
  15511. // when there are no more results to return.
  15512. NextToken *string `locationName:"nextToken" type:"string"`
  15513. }
  15514. // String returns the string representation
  15515. func (s DescribeFlowLogsOutput) String() string {
  15516. return awsutil.Prettify(s)
  15517. }
  15518. // GoString returns the string representation
  15519. func (s DescribeFlowLogsOutput) GoString() string {
  15520. return s.String()
  15521. }
  15522. // Contains the parameters for DescribeHosts.
  15523. type DescribeHostsInput struct {
  15524. _ struct{} `type:"structure"`
  15525. // One or more filters.
  15526. //
  15527. // instance-type - The instance type size that the Dedicated host is configured
  15528. // to support.
  15529. //
  15530. // auto-placement - Whether auto-placement is enabled or disabled (on |
  15531. // off).
  15532. //
  15533. // host-reservation-id - The ID of the reservation associated with this
  15534. // host.
  15535. //
  15536. // client-token - The idempotency token you provided when you launched the
  15537. // instance
  15538. //
  15539. // state- The allocation state of the Dedicated host (available | under-assessment
  15540. // | permanent-failure | released | released-permanent-failure).
  15541. //
  15542. // availability-zone - The Availability Zone of the host.
  15543. Filter []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  15544. // The IDs of the Dedicated hosts. The IDs are used for targeted instance launches.
  15545. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list"`
  15546. // The maximum number of results to return for the request in a single page.
  15547. // The remaining results can be seen by sending another request with the returned
  15548. // nextToken value. This value can be between 5 and 500; if maxResults is given
  15549. // a larger value than 500, you will receive an error. You cannot specify this
  15550. // parameter and the host IDs parameter in the same request.
  15551. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  15552. // The token to retrieve the next page of results.
  15553. NextToken *string `locationName:"nextToken" type:"string"`
  15554. }
  15555. // String returns the string representation
  15556. func (s DescribeHostsInput) String() string {
  15557. return awsutil.Prettify(s)
  15558. }
  15559. // GoString returns the string representation
  15560. func (s DescribeHostsInput) GoString() string {
  15561. return s.String()
  15562. }
  15563. // Contains the output of DescribeHosts.
  15564. type DescribeHostsOutput struct {
  15565. _ struct{} `type:"structure"`
  15566. // Information about the Dedicated hosts.
  15567. Hosts []*Host `locationName:"hostSet" locationNameList:"item" type:"list"`
  15568. // The token to use to retrieve the next page of results. This value is null
  15569. // when there are no more results to return.
  15570. NextToken *string `locationName:"nextToken" type:"string"`
  15571. }
  15572. // String returns the string representation
  15573. func (s DescribeHostsOutput) String() string {
  15574. return awsutil.Prettify(s)
  15575. }
  15576. // GoString returns the string representation
  15577. func (s DescribeHostsOutput) GoString() string {
  15578. return s.String()
  15579. }
  15580. // Contains the parameters for DescribeIdFormat.
  15581. type DescribeIdFormatInput struct {
  15582. _ struct{} `type:"structure"`
  15583. // The type of resource.
  15584. Resource *string `type:"string"`
  15585. }
  15586. // String returns the string representation
  15587. func (s DescribeIdFormatInput) String() string {
  15588. return awsutil.Prettify(s)
  15589. }
  15590. // GoString returns the string representation
  15591. func (s DescribeIdFormatInput) GoString() string {
  15592. return s.String()
  15593. }
  15594. // Contains the output of DescribeIdFormat.
  15595. type DescribeIdFormatOutput struct {
  15596. _ struct{} `type:"structure"`
  15597. // Information about the ID format for the resource.
  15598. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  15599. }
  15600. // String returns the string representation
  15601. func (s DescribeIdFormatOutput) String() string {
  15602. return awsutil.Prettify(s)
  15603. }
  15604. // GoString returns the string representation
  15605. func (s DescribeIdFormatOutput) GoString() string {
  15606. return s.String()
  15607. }
  15608. // Contains the parameters for DescribeIdentityIdFormat.
  15609. type DescribeIdentityIdFormatInput struct {
  15610. _ struct{} `type:"structure"`
  15611. // The ARN of the principal, which can be an IAM role, IAM user, or the root
  15612. // user.
  15613. PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
  15614. // The type of resource.
  15615. Resource *string `locationName:"resource" type:"string"`
  15616. }
  15617. // String returns the string representation
  15618. func (s DescribeIdentityIdFormatInput) String() string {
  15619. return awsutil.Prettify(s)
  15620. }
  15621. // GoString returns the string representation
  15622. func (s DescribeIdentityIdFormatInput) GoString() string {
  15623. return s.String()
  15624. }
  15625. // Validate inspects the fields of the type to determine if they are valid.
  15626. func (s *DescribeIdentityIdFormatInput) Validate() error {
  15627. invalidParams := request.ErrInvalidParams{Context: "DescribeIdentityIdFormatInput"}
  15628. if s.PrincipalArn == nil {
  15629. invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
  15630. }
  15631. if invalidParams.Len() > 0 {
  15632. return invalidParams
  15633. }
  15634. return nil
  15635. }
  15636. // Contains the output of DescribeIdentityIdFormat.
  15637. type DescribeIdentityIdFormatOutput struct {
  15638. _ struct{} `type:"structure"`
  15639. // Information about the ID format for the resources.
  15640. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"`
  15641. }
  15642. // String returns the string representation
  15643. func (s DescribeIdentityIdFormatOutput) String() string {
  15644. return awsutil.Prettify(s)
  15645. }
  15646. // GoString returns the string representation
  15647. func (s DescribeIdentityIdFormatOutput) GoString() string {
  15648. return s.String()
  15649. }
  15650. // Contains the parameters for DescribeImageAttribute.
  15651. type DescribeImageAttributeInput struct {
  15652. _ struct{} `type:"structure"`
  15653. // The AMI attribute.
  15654. //
  15655. // Note: Depending on your account privileges, the blockDeviceMapping attribute
  15656. // may return a Client.AuthFailure error. If this happens, use DescribeImages
  15657. // to get information about the block device mapping for the AMI.
  15658. Attribute *string `type:"string" required:"true" enum:"ImageAttributeName"`
  15659. // Checks whether you have the required permissions for the action, without
  15660. // actually making the request, and provides an error response. If you have
  15661. // the required permissions, the error response is DryRunOperation. Otherwise,
  15662. // it is UnauthorizedOperation.
  15663. DryRun *bool `locationName:"dryRun" type:"boolean"`
  15664. // The ID of the AMI.
  15665. ImageId *string `type:"string" required:"true"`
  15666. }
  15667. // String returns the string representation
  15668. func (s DescribeImageAttributeInput) String() string {
  15669. return awsutil.Prettify(s)
  15670. }
  15671. // GoString returns the string representation
  15672. func (s DescribeImageAttributeInput) GoString() string {
  15673. return s.String()
  15674. }
  15675. // Validate inspects the fields of the type to determine if they are valid.
  15676. func (s *DescribeImageAttributeInput) Validate() error {
  15677. invalidParams := request.ErrInvalidParams{Context: "DescribeImageAttributeInput"}
  15678. if s.Attribute == nil {
  15679. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  15680. }
  15681. if s.ImageId == nil {
  15682. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  15683. }
  15684. if invalidParams.Len() > 0 {
  15685. return invalidParams
  15686. }
  15687. return nil
  15688. }
  15689. // Describes an image attribute.
  15690. type DescribeImageAttributeOutput struct {
  15691. _ struct{} `type:"structure"`
  15692. // One or more block device mapping entries.
  15693. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  15694. // A description for the AMI.
  15695. Description *AttributeValue `locationName:"description" type:"structure"`
  15696. // The ID of the AMI.
  15697. ImageId *string `locationName:"imageId" type:"string"`
  15698. // The kernel ID.
  15699. KernelId *AttributeValue `locationName:"kernel" type:"structure"`
  15700. // One or more launch permissions.
  15701. LaunchPermissions []*LaunchPermission `locationName:"launchPermission" locationNameList:"item" type:"list"`
  15702. // One or more product codes.
  15703. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  15704. // The RAM disk ID.
  15705. RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`
  15706. // Indicates whether enhanced networking with the Intel 82599 Virtual Function
  15707. // interface is enabled.
  15708. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  15709. }
  15710. // String returns the string representation
  15711. func (s DescribeImageAttributeOutput) String() string {
  15712. return awsutil.Prettify(s)
  15713. }
  15714. // GoString returns the string representation
  15715. func (s DescribeImageAttributeOutput) GoString() string {
  15716. return s.String()
  15717. }
  15718. // Contains the parameters for DescribeImages.
  15719. type DescribeImagesInput struct {
  15720. _ struct{} `type:"structure"`
  15721. // Checks whether you have the required permissions for the action, without
  15722. // actually making the request, and provides an error response. If you have
  15723. // the required permissions, the error response is DryRunOperation. Otherwise,
  15724. // it is UnauthorizedOperation.
  15725. DryRun *bool `locationName:"dryRun" type:"boolean"`
  15726. // Scopes the images by users with explicit launch permissions. Specify an AWS
  15727. // account ID, self (the sender of the request), or all (public AMIs).
  15728. ExecutableUsers []*string `locationName:"ExecutableBy" locationNameList:"ExecutableBy" type:"list"`
  15729. // One or more filters.
  15730. //
  15731. // architecture - The image architecture (i386 | x86_64).
  15732. //
  15733. // block-device-mapping.delete-on-termination - A Boolean value that indicates
  15734. // whether the Amazon EBS volume is deleted on instance termination.
  15735. //
  15736. // block-device-mapping.device-name - The device name for the EBS volume
  15737. // (for example, /dev/sdh).
  15738. //
  15739. // block-device-mapping.snapshot-id - The ID of the snapshot used for the
  15740. // EBS volume.
  15741. //
  15742. // block-device-mapping.volume-size - The volume size of the EBS volume,
  15743. // in GiB.
  15744. //
  15745. // block-device-mapping.volume-type - The volume type of the EBS volume
  15746. // (gp2 | io1 | st1 | sc1 | standard).
  15747. //
  15748. // description - The description of the image (provided during image creation).
  15749. //
  15750. // hypervisor - The hypervisor type (ovm | xen).
  15751. //
  15752. // image-id - The ID of the image.
  15753. //
  15754. // image-type - The image type (machine | kernel | ramdisk).
  15755. //
  15756. // is-public - A Boolean that indicates whether the image is public.
  15757. //
  15758. // kernel-id - The kernel ID.
  15759. //
  15760. // manifest-location - The location of the image manifest.
  15761. //
  15762. // name - The name of the AMI (provided during image creation).
  15763. //
  15764. // owner-alias - The AWS account alias (for example, amazon).
  15765. //
  15766. // owner-id - The AWS account ID of the image owner.
  15767. //
  15768. // platform - The platform. To only list Windows-based AMIs, use windows.
  15769. //
  15770. // product-code - The product code.
  15771. //
  15772. // product-code.type - The type of the product code (devpay | marketplace).
  15773. //
  15774. // ramdisk-id - The RAM disk ID.
  15775. //
  15776. // root-device-name - The name of the root device volume (for example, /dev/sda1).
  15777. //
  15778. // root-device-type - The type of the root device volume (ebs | instance-store).
  15779. //
  15780. // state - The state of the image (available | pending | failed).
  15781. //
  15782. // state-reason-code - The reason code for the state change.
  15783. //
  15784. // state-reason-message - The message for the state change.
  15785. //
  15786. // tag:key=value - The key/value combination of a tag assigned to the resource.
  15787. //
  15788. // tag-key - The key of a tag assigned to the resource. This filter is independent
  15789. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  15790. // and the filter "tag-value=X", you get any resources assigned both the tag
  15791. // key Purpose (regardless of what the tag's value is), and the tag value X
  15792. // (regardless of what the tag's key is). If you want to list only resources
  15793. // where Purpose is X, see the tag:key=value filter.
  15794. //
  15795. // tag-value - The value of a tag assigned to the resource. This filter
  15796. // is independent of the tag-key filter.
  15797. //
  15798. // virtualization-type - The virtualization type (paravirtual | hvm).
  15799. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  15800. // One or more image IDs.
  15801. //
  15802. // Default: Describes all images available to you.
  15803. ImageIds []*string `locationName:"ImageId" locationNameList:"ImageId" type:"list"`
  15804. // Filters the images by the owner. Specify an AWS account ID, amazon (owner
  15805. // is Amazon), aws-marketplace (owner is AWS Marketplace), self (owner is the
  15806. // sender of the request). Omitting this option returns all images for which
  15807. // you have launch permissions, regardless of ownership.
  15808. Owners []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  15809. }
  15810. // String returns the string representation
  15811. func (s DescribeImagesInput) String() string {
  15812. return awsutil.Prettify(s)
  15813. }
  15814. // GoString returns the string representation
  15815. func (s DescribeImagesInput) GoString() string {
  15816. return s.String()
  15817. }
  15818. // Contains the output of DescribeImages.
  15819. type DescribeImagesOutput struct {
  15820. _ struct{} `type:"structure"`
  15821. // Information about one or more images.
  15822. Images []*Image `locationName:"imagesSet" locationNameList:"item" type:"list"`
  15823. }
  15824. // String returns the string representation
  15825. func (s DescribeImagesOutput) String() string {
  15826. return awsutil.Prettify(s)
  15827. }
  15828. // GoString returns the string representation
  15829. func (s DescribeImagesOutput) GoString() string {
  15830. return s.String()
  15831. }
  15832. // Contains the parameters for DescribeImportImageTasks.
  15833. type DescribeImportImageTasksInput struct {
  15834. _ struct{} `type:"structure"`
  15835. // Checks whether you have the required permissions for the action, without
  15836. // actually making the request, and provides an error response. If you have
  15837. // the required permissions, the error response is DryRunOperation. Otherwise,
  15838. // it is UnauthorizedOperation.
  15839. DryRun *bool `type:"boolean"`
  15840. // Filter tasks using the task-state filter and one of the following values:
  15841. // active, completed, deleting, deleted.
  15842. Filters []*Filter `locationNameList:"Filter" type:"list"`
  15843. // A list of import image task IDs.
  15844. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`
  15845. // The maximum number of results to return in a single call. To retrieve the
  15846. // remaining results, make another call with the returned NextToken value.
  15847. MaxResults *int64 `type:"integer"`
  15848. // A token that indicates the next page of results.
  15849. NextToken *string `type:"string"`
  15850. }
  15851. // String returns the string representation
  15852. func (s DescribeImportImageTasksInput) String() string {
  15853. return awsutil.Prettify(s)
  15854. }
  15855. // GoString returns the string representation
  15856. func (s DescribeImportImageTasksInput) GoString() string {
  15857. return s.String()
  15858. }
  15859. // Contains the output for DescribeImportImageTasks.
  15860. type DescribeImportImageTasksOutput struct {
  15861. _ struct{} `type:"structure"`
  15862. // A list of zero or more import image tasks that are currently active or were
  15863. // completed or canceled in the previous 7 days.
  15864. ImportImageTasks []*ImportImageTask `locationName:"importImageTaskSet" locationNameList:"item" type:"list"`
  15865. // The token to use to get the next page of results. This value is null when
  15866. // there are no more results to return.
  15867. NextToken *string `locationName:"nextToken" type:"string"`
  15868. }
  15869. // String returns the string representation
  15870. func (s DescribeImportImageTasksOutput) String() string {
  15871. return awsutil.Prettify(s)
  15872. }
  15873. // GoString returns the string representation
  15874. func (s DescribeImportImageTasksOutput) GoString() string {
  15875. return s.String()
  15876. }
  15877. // Contains the parameters for DescribeImportSnapshotTasks.
  15878. type DescribeImportSnapshotTasksInput struct {
  15879. _ struct{} `type:"structure"`
  15880. // Checks whether you have the required permissions for the action, without
  15881. // actually making the request, and provides an error response. If you have
  15882. // the required permissions, the error response is DryRunOperation. Otherwise,
  15883. // it is UnauthorizedOperation.
  15884. DryRun *bool `type:"boolean"`
  15885. // One or more filters.
  15886. Filters []*Filter `locationNameList:"Filter" type:"list"`
  15887. // A list of import snapshot task IDs.
  15888. ImportTaskIds []*string `locationName:"ImportTaskId" locationNameList:"ImportTaskId" type:"list"`
  15889. // The maximum number of results to return in a single call. To retrieve the
  15890. // remaining results, make another call with the returned NextToken value.
  15891. MaxResults *int64 `type:"integer"`
  15892. // A token that indicates the next page of results.
  15893. NextToken *string `type:"string"`
  15894. }
  15895. // String returns the string representation
  15896. func (s DescribeImportSnapshotTasksInput) String() string {
  15897. return awsutil.Prettify(s)
  15898. }
  15899. // GoString returns the string representation
  15900. func (s DescribeImportSnapshotTasksInput) GoString() string {
  15901. return s.String()
  15902. }
  15903. // Contains the output for DescribeImportSnapshotTasks.
  15904. type DescribeImportSnapshotTasksOutput struct {
  15905. _ struct{} `type:"structure"`
  15906. // A list of zero or more import snapshot tasks that are currently active or
  15907. // were completed or canceled in the previous 7 days.
  15908. ImportSnapshotTasks []*ImportSnapshotTask `locationName:"importSnapshotTaskSet" locationNameList:"item" type:"list"`
  15909. // The token to use to get the next page of results. This value is null when
  15910. // there are no more results to return.
  15911. NextToken *string `locationName:"nextToken" type:"string"`
  15912. }
  15913. // String returns the string representation
  15914. func (s DescribeImportSnapshotTasksOutput) String() string {
  15915. return awsutil.Prettify(s)
  15916. }
  15917. // GoString returns the string representation
  15918. func (s DescribeImportSnapshotTasksOutput) GoString() string {
  15919. return s.String()
  15920. }
  15921. // Contains the parameters for DescribeInstanceAttribute.
  15922. type DescribeInstanceAttributeInput struct {
  15923. _ struct{} `type:"structure"`
  15924. // The instance attribute.
  15925. //
  15926. // Note: The enaSupport attribute is not supported at this time.
  15927. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"`
  15928. // Checks whether you have the required permissions for the action, without
  15929. // actually making the request, and provides an error response. If you have
  15930. // the required permissions, the error response is DryRunOperation. Otherwise,
  15931. // it is UnauthorizedOperation.
  15932. DryRun *bool `locationName:"dryRun" type:"boolean"`
  15933. // The ID of the instance.
  15934. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  15935. }
  15936. // String returns the string representation
  15937. func (s DescribeInstanceAttributeInput) String() string {
  15938. return awsutil.Prettify(s)
  15939. }
  15940. // GoString returns the string representation
  15941. func (s DescribeInstanceAttributeInput) GoString() string {
  15942. return s.String()
  15943. }
  15944. // Validate inspects the fields of the type to determine if they are valid.
  15945. func (s *DescribeInstanceAttributeInput) Validate() error {
  15946. invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceAttributeInput"}
  15947. if s.Attribute == nil {
  15948. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  15949. }
  15950. if s.InstanceId == nil {
  15951. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  15952. }
  15953. if invalidParams.Len() > 0 {
  15954. return invalidParams
  15955. }
  15956. return nil
  15957. }
  15958. // Describes an instance attribute.
  15959. type DescribeInstanceAttributeOutput struct {
  15960. _ struct{} `type:"structure"`
  15961. // The block device mapping of the instance.
  15962. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  15963. // If the value is true, you can't terminate the instance through the Amazon
  15964. // EC2 console, CLI, or API; otherwise, you can.
  15965. DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`
  15966. // Indicates whether the instance is optimized for EBS I/O.
  15967. EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`
  15968. // Indicates whether enhanced networking with ENA is enabled.
  15969. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`
  15970. // The security groups associated with the instance.
  15971. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  15972. // The ID of the instance.
  15973. InstanceId *string `locationName:"instanceId" type:"string"`
  15974. // Indicates whether an instance stops or terminates when you initiate shutdown
  15975. // from the instance (using the operating system command for system shutdown).
  15976. InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`
  15977. // The instance type.
  15978. InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`
  15979. // The kernel ID.
  15980. KernelId *AttributeValue `locationName:"kernel" type:"structure"`
  15981. // A list of product codes.
  15982. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  15983. // The RAM disk ID.
  15984. RamdiskId *AttributeValue `locationName:"ramdisk" type:"structure"`
  15985. // The name of the root device (for example, /dev/sda1 or /dev/xvda).
  15986. RootDeviceName *AttributeValue `locationName:"rootDeviceName" type:"structure"`
  15987. // Indicates whether source/destination checking is enabled. A value of true
  15988. // means checking is enabled, and false means checking is disabled. This value
  15989. // must be false for a NAT instance to perform NAT.
  15990. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  15991. // Indicates whether enhanced networking with the Intel 82599 Virtual Function
  15992. // interface is enabled.
  15993. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  15994. // The user data.
  15995. UserData *AttributeValue `locationName:"userData" type:"structure"`
  15996. }
  15997. // String returns the string representation
  15998. func (s DescribeInstanceAttributeOutput) String() string {
  15999. return awsutil.Prettify(s)
  16000. }
  16001. // GoString returns the string representation
  16002. func (s DescribeInstanceAttributeOutput) GoString() string {
  16003. return s.String()
  16004. }
  16005. // Contains the parameters for DescribeInstanceStatus.
  16006. type DescribeInstanceStatusInput struct {
  16007. _ struct{} `type:"structure"`
  16008. // Checks whether you have the required permissions for the action, without
  16009. // actually making the request, and provides an error response. If you have
  16010. // the required permissions, the error response is DryRunOperation. Otherwise,
  16011. // it is UnauthorizedOperation.
  16012. DryRun *bool `locationName:"dryRun" type:"boolean"`
  16013. // One or more filters.
  16014. //
  16015. // availability-zone - The Availability Zone of the instance.
  16016. //
  16017. // event.code - The code for the scheduled event (instance-reboot | system-reboot
  16018. // | system-maintenance | instance-retirement | instance-stop).
  16019. //
  16020. // event.description - A description of the event.
  16021. //
  16022. // event.not-after - The latest end time for the scheduled event (for example,
  16023. // 2014-09-15T17:15:20.000Z).
  16024. //
  16025. // event.not-before - The earliest start time for the scheduled event (for
  16026. // example, 2014-09-15T17:15:20.000Z).
  16027. //
  16028. // instance-state-code - The code for the instance state, as a 16-bit unsigned
  16029. // integer. The high byte is an opaque internal value and should be ignored.
  16030. // The low byte is set based on the state represented. The valid values are
  16031. // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
  16032. // and 80 (stopped).
  16033. //
  16034. // instance-state-name - The state of the instance (pending | running |
  16035. // shutting-down | terminated | stopping | stopped).
  16036. //
  16037. // instance-status.reachability - Filters on instance status where the name
  16038. // is reachability (passed | failed | initializing | insufficient-data).
  16039. //
  16040. // instance-status.status - The status of the instance (ok | impaired |
  16041. // initializing | insufficient-data | not-applicable).
  16042. //
  16043. // system-status.reachability - Filters on system status where the name
  16044. // is reachability (passed | failed | initializing | insufficient-data).
  16045. //
  16046. // system-status.status - The system status of the instance (ok | impaired
  16047. // | initializing | insufficient-data | not-applicable).
  16048. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  16049. // When true, includes the health status for all instances. When false, includes
  16050. // the health status for running instances only.
  16051. //
  16052. // Default: false
  16053. IncludeAllInstances *bool `locationName:"includeAllInstances" type:"boolean"`
  16054. // One or more instance IDs.
  16055. //
  16056. // Default: Describes all your instances.
  16057. //
  16058. // Constraints: Maximum 100 explicitly specified instance IDs.
  16059. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  16060. // The maximum number of results to return in a single call. To retrieve the
  16061. // remaining results, make another call with the returned NextToken value. This
  16062. // value can be between 5 and 1000. You cannot specify this parameter and the
  16063. // instance IDs parameter in the same call.
  16064. MaxResults *int64 `type:"integer"`
  16065. // The token to retrieve the next page of results.
  16066. NextToken *string `type:"string"`
  16067. }
  16068. // String returns the string representation
  16069. func (s DescribeInstanceStatusInput) String() string {
  16070. return awsutil.Prettify(s)
  16071. }
  16072. // GoString returns the string representation
  16073. func (s DescribeInstanceStatusInput) GoString() string {
  16074. return s.String()
  16075. }
  16076. // Contains the output of DescribeInstanceStatus.
  16077. type DescribeInstanceStatusOutput struct {
  16078. _ struct{} `type:"structure"`
  16079. // One or more instance status descriptions.
  16080. InstanceStatuses []*InstanceStatus `locationName:"instanceStatusSet" locationNameList:"item" type:"list"`
  16081. // The token to use to retrieve the next page of results. This value is null
  16082. // when there are no more results to return.
  16083. NextToken *string `locationName:"nextToken" type:"string"`
  16084. }
  16085. // String returns the string representation
  16086. func (s DescribeInstanceStatusOutput) String() string {
  16087. return awsutil.Prettify(s)
  16088. }
  16089. // GoString returns the string representation
  16090. func (s DescribeInstanceStatusOutput) GoString() string {
  16091. return s.String()
  16092. }
  16093. // Contains the parameters for DescribeInstances.
  16094. type DescribeInstancesInput struct {
  16095. _ struct{} `type:"structure"`
  16096. // Checks whether you have the required permissions for the action, without
  16097. // actually making the request, and provides an error response. If you have
  16098. // the required permissions, the error response is DryRunOperation. Otherwise,
  16099. // it is UnauthorizedOperation.
  16100. DryRun *bool `locationName:"dryRun" type:"boolean"`
  16101. // One or more filters.
  16102. //
  16103. // affinity - The affinity setting for an instance running on a Dedicated
  16104. // host (default | host).
  16105. //
  16106. // architecture - The instance architecture (i386 | x86_64).
  16107. //
  16108. // availability-zone - The Availability Zone of the instance.
  16109. //
  16110. // block-device-mapping.attach-time - The attach time for an EBS volume
  16111. // mapped to the instance, for example, 2010-09-15T17:15:20.000Z.
  16112. //
  16113. // block-device-mapping.delete-on-termination - A Boolean that indicates
  16114. // whether the EBS volume is deleted on instance termination.
  16115. //
  16116. // block-device-mapping.device-name - The device name for the EBS volume
  16117. // (for example, /dev/sdh or xvdh).
  16118. //
  16119. // block-device-mapping.status - The status for the EBS volume (attaching
  16120. // | attached | detaching | detached).
  16121. //
  16122. // block-device-mapping.volume-id - The volume ID of the EBS volume.
  16123. //
  16124. // client-token - The idempotency token you provided when you launched the
  16125. // instance.
  16126. //
  16127. // dns-name - The public DNS name of the instance.
  16128. //
  16129. // group-id - The ID of the security group for the instance. EC2-Classic
  16130. // only.
  16131. //
  16132. // group-name - The name of the security group for the instance. EC2-Classic
  16133. // only.
  16134. //
  16135. // host-Id - The ID of the Dedicated host on which the instance is running,
  16136. // if applicable.
  16137. //
  16138. // hypervisor - The hypervisor type of the instance (ovm | xen).
  16139. //
  16140. // iam-instance-profile.arn - The instance profile associated with the instance.
  16141. // Specified as an ARN.
  16142. //
  16143. // image-id - The ID of the image used to launch the instance.
  16144. //
  16145. // instance-id - The ID of the instance.
  16146. //
  16147. // instance-lifecycle - Indicates whether this is a Spot Instance or a Scheduled
  16148. // Instance (spot | scheduled).
  16149. //
  16150. // instance-state-code - The state of the instance, as a 16-bit unsigned
  16151. // integer. The high byte is an opaque internal value and should be ignored.
  16152. // The low byte is set based on the state represented. The valid values are:
  16153. // 0 (pending), 16 (running), 32 (shutting-down), 48 (terminated), 64 (stopping),
  16154. // and 80 (stopped).
  16155. //
  16156. // instance-state-name - The state of the instance (pending | running |
  16157. // shutting-down | terminated | stopping | stopped).
  16158. //
  16159. // instance-type - The type of instance (for example, t2.micro).
  16160. //
  16161. // instance.group-id - The ID of the security group for the instance.
  16162. //
  16163. // instance.group-name - The name of the security group for the instance.
  16164. //
  16165. // ip-address - The public IP address of the instance.
  16166. //
  16167. // kernel-id - The kernel ID.
  16168. //
  16169. // key-name - The name of the key pair used when the instance was launched.
  16170. //
  16171. // launch-index - When launching multiple instances, this is the index for
  16172. // the instance in the launch group (for example, 0, 1, 2, and so on).
  16173. //
  16174. // launch-time - The time when the instance was launched.
  16175. //
  16176. // monitoring-state - Indicates whether monitoring is enabled for the instance
  16177. // (disabled | enabled).
  16178. //
  16179. // owner-id - The AWS account ID of the instance owner.
  16180. //
  16181. // placement-group-name - The name of the placement group for the instance.
  16182. //
  16183. // platform - The platform. Use windows if you have Windows instances; otherwise,
  16184. // leave blank.
  16185. //
  16186. // private-dns-name - The private DNS name of the instance.
  16187. //
  16188. // private-ip-address - The private IP address of the instance.
  16189. //
  16190. // product-code - The product code associated with the AMI used to launch
  16191. // the instance.
  16192. //
  16193. // product-code.type - The type of product code (devpay | marketplace).
  16194. //
  16195. // ramdisk-id - The RAM disk ID.
  16196. //
  16197. // reason - The reason for the current state of the instance (for example,
  16198. // shows "User Initiated [date]" when you stop or terminate the instance). Similar
  16199. // to the state-reason-code filter.
  16200. //
  16201. // requester-id - The ID of the entity that launched the instance on your
  16202. // behalf (for example, AWS Management Console, Auto Scaling, and so on).
  16203. //
  16204. // reservation-id - The ID of the instance's reservation. A reservation
  16205. // ID is created any time you launch an instance. A reservation ID has a one-to-one
  16206. // relationship with an instance launch request, but can be associated with
  16207. // more than one instance if you launch multiple instances using the same launch
  16208. // request. For example, if you launch one instance, you'll get one reservation
  16209. // ID. If you launch ten instances using the same launch request, you'll also
  16210. // get one reservation ID.
  16211. //
  16212. // root-device-name - The name of the root device for the instance (for
  16213. // example, /dev/sda1 or /dev/xvda).
  16214. //
  16215. // root-device-type - The type of root device that the instance uses (ebs
  16216. // | instance-store).
  16217. //
  16218. // source-dest-check - Indicates whether the instance performs source/destination
  16219. // checking. A value of true means that checking is enabled, and false means
  16220. // checking is disabled. The value must be false for the instance to perform
  16221. // network address translation (NAT) in your VPC.
  16222. //
  16223. // spot-instance-request-id - The ID of the Spot instance request.
  16224. //
  16225. // state-reason-code - The reason code for the state change.
  16226. //
  16227. // state-reason-message - A message that describes the state change.
  16228. //
  16229. // subnet-id - The ID of the subnet for the instance.
  16230. //
  16231. // tag:key=value - The key/value combination of a tag assigned to the resource,
  16232. // where tag:key is the tag's key.
  16233. //
  16234. // tag-key - The key of a tag assigned to the resource. This filter is independent
  16235. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  16236. // and the filter "tag-value=X", you get any resources assigned both the tag
  16237. // key Purpose (regardless of what the tag's value is), and the tag value X
  16238. // (regardless of what the tag's key is). If you want to list only resources
  16239. // where Purpose is X, see the tag:key=value filter.
  16240. //
  16241. // tag-value - The value of a tag assigned to the resource. This filter
  16242. // is independent of the tag-key filter.
  16243. //
  16244. // tenancy - The tenancy of an instance (dedicated | default | host).
  16245. //
  16246. // virtualization-type - The virtualization type of the instance (paravirtual
  16247. // | hvm).
  16248. //
  16249. // vpc-id - The ID of the VPC that the instance is running in.
  16250. //
  16251. // network-interface.description - The description of the network interface.
  16252. //
  16253. // network-interface.subnet-id - The ID of the subnet for the network interface.
  16254. //
  16255. // network-interface.vpc-id - The ID of the VPC for the network interface.
  16256. //
  16257. // network-interface.network-interface-id - The ID of the network interface.
  16258. //
  16259. // network-interface.owner-id - The ID of the owner of the network interface.
  16260. //
  16261. // network-interface.availability-zone - The Availability Zone for the network
  16262. // interface.
  16263. //
  16264. // network-interface.requester-id - The requester ID for the network interface.
  16265. //
  16266. // network-interface.requester-managed - Indicates whether the network interface
  16267. // is being managed by AWS.
  16268. //
  16269. // network-interface.status - The status of the network interface (available)
  16270. // | in-use).
  16271. //
  16272. // network-interface.mac-address - The MAC address of the network interface.
  16273. //
  16274. // network-interface.private-dns-name - The private DNS name of the network
  16275. // interface.
  16276. //
  16277. // network-interface.source-dest-check - Whether the network interface performs
  16278. // source/destination checking. A value of true means checking is enabled, and
  16279. // false means checking is disabled. The value must be false for the network
  16280. // interface to perform network address translation (NAT) in your VPC.
  16281. //
  16282. // network-interface.group-id - The ID of a security group associated with
  16283. // the network interface.
  16284. //
  16285. // network-interface.group-name - The name of a security group associated
  16286. // with the network interface.
  16287. //
  16288. // network-interface.attachment.attachment-id - The ID of the interface
  16289. // attachment.
  16290. //
  16291. // network-interface.attachment.instance-id - The ID of the instance to
  16292. // which the network interface is attached.
  16293. //
  16294. // network-interface.attachment.instance-owner-id - The owner ID of the
  16295. // instance to which the network interface is attached.
  16296. //
  16297. // network-interface.addresses.private-ip-address - The private IP address
  16298. // associated with the network interface.
  16299. //
  16300. // network-interface.attachment.device-index - The device index to which
  16301. // the network interface is attached.
  16302. //
  16303. // network-interface.attachment.status - The status of the attachment (attaching
  16304. // | attached | detaching | detached).
  16305. //
  16306. // network-interface.attachment.attach-time - The time that the network
  16307. // interface was attached to an instance.
  16308. //
  16309. // network-interface.attachment.delete-on-termination - Specifies whether
  16310. // the attachment is deleted when an instance is terminated.
  16311. //
  16312. // network-interface.addresses.primary - Specifies whether the IP address
  16313. // of the network interface is the primary private IP address.
  16314. //
  16315. // network-interface.addresses.association.public-ip - The ID of the association
  16316. // of an Elastic IP address with a network interface.
  16317. //
  16318. // network-interface.addresses.association.ip-owner-id - The owner ID of
  16319. // the private IP address associated with the network interface.
  16320. //
  16321. // association.public-ip - The address of the Elastic IP address bound to
  16322. // the network interface.
  16323. //
  16324. // association.ip-owner-id - The owner of the Elastic IP address associated
  16325. // with the network interface.
  16326. //
  16327. // association.allocation-id - The allocation ID returned when you allocated
  16328. // the Elastic IP address for your network interface.
  16329. //
  16330. // association.association-id - The association ID returned when the network
  16331. // interface was associated with an IP address.
  16332. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  16333. // One or more instance IDs.
  16334. //
  16335. // Default: Describes all your instances.
  16336. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list"`
  16337. // The maximum number of results to return in a single call. To retrieve the
  16338. // remaining results, make another call with the returned NextToken value. This
  16339. // value can be between 5 and 1000. You cannot specify this parameter and the
  16340. // instance IDs parameter or tag filters in the same call.
  16341. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  16342. // The token to request the next page of results.
  16343. NextToken *string `locationName:"nextToken" type:"string"`
  16344. }
  16345. // String returns the string representation
  16346. func (s DescribeInstancesInput) String() string {
  16347. return awsutil.Prettify(s)
  16348. }
  16349. // GoString returns the string representation
  16350. func (s DescribeInstancesInput) GoString() string {
  16351. return s.String()
  16352. }
  16353. // Contains the output of DescribeInstances.
  16354. type DescribeInstancesOutput struct {
  16355. _ struct{} `type:"structure"`
  16356. // The token to use to retrieve the next page of results. This value is null
  16357. // when there are no more results to return.
  16358. NextToken *string `locationName:"nextToken" type:"string"`
  16359. // Zero or more reservations.
  16360. Reservations []*Reservation `locationName:"reservationSet" locationNameList:"item" type:"list"`
  16361. }
  16362. // String returns the string representation
  16363. func (s DescribeInstancesOutput) String() string {
  16364. return awsutil.Prettify(s)
  16365. }
  16366. // GoString returns the string representation
  16367. func (s DescribeInstancesOutput) GoString() string {
  16368. return s.String()
  16369. }
  16370. // Contains the parameters for DescribeInternetGateways.
  16371. type DescribeInternetGatewaysInput struct {
  16372. _ struct{} `type:"structure"`
  16373. // Checks whether you have the required permissions for the action, without
  16374. // actually making the request, and provides an error response. If you have
  16375. // the required permissions, the error response is DryRunOperation. Otherwise,
  16376. // it is UnauthorizedOperation.
  16377. DryRun *bool `locationName:"dryRun" type:"boolean"`
  16378. // One or more filters.
  16379. //
  16380. // attachment.state - The current state of the attachment between the gateway
  16381. // and the VPC (available). Present only if a VPC is attached.
  16382. //
  16383. // attachment.vpc-id - The ID of an attached VPC.
  16384. //
  16385. // internet-gateway-id - The ID of the Internet gateway.
  16386. //
  16387. // tag:key=value - The key/value combination of a tag assigned to the resource.
  16388. //
  16389. // tag-key - The key of a tag assigned to the resource. This filter is independent
  16390. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  16391. // and the filter "tag-value=X", you get any resources assigned both the tag
  16392. // key Purpose (regardless of what the tag's value is), and the tag value X
  16393. // (regardless of what the tag's key is). If you want to list only resources
  16394. // where Purpose is X, see the tag:key=value filter.
  16395. //
  16396. // tag-value - The value of a tag assigned to the resource. This filter
  16397. // is independent of the tag-key filter.
  16398. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  16399. // One or more Internet gateway IDs.
  16400. //
  16401. // Default: Describes all your Internet gateways.
  16402. InternetGatewayIds []*string `locationName:"internetGatewayId" locationNameList:"item" type:"list"`
  16403. }
  16404. // String returns the string representation
  16405. func (s DescribeInternetGatewaysInput) String() string {
  16406. return awsutil.Prettify(s)
  16407. }
  16408. // GoString returns the string representation
  16409. func (s DescribeInternetGatewaysInput) GoString() string {
  16410. return s.String()
  16411. }
  16412. // Contains the output of DescribeInternetGateways.
  16413. type DescribeInternetGatewaysOutput struct {
  16414. _ struct{} `type:"structure"`
  16415. // Information about one or more Internet gateways.
  16416. InternetGateways []*InternetGateway `locationName:"internetGatewaySet" locationNameList:"item" type:"list"`
  16417. }
  16418. // String returns the string representation
  16419. func (s DescribeInternetGatewaysOutput) String() string {
  16420. return awsutil.Prettify(s)
  16421. }
  16422. // GoString returns the string representation
  16423. func (s DescribeInternetGatewaysOutput) GoString() string {
  16424. return s.String()
  16425. }
  16426. // Contains the parameters for DescribeKeyPairs.
  16427. type DescribeKeyPairsInput struct {
  16428. _ struct{} `type:"structure"`
  16429. // Checks whether you have the required permissions for the action, without
  16430. // actually making the request, and provides an error response. If you have
  16431. // the required permissions, the error response is DryRunOperation. Otherwise,
  16432. // it is UnauthorizedOperation.
  16433. DryRun *bool `locationName:"dryRun" type:"boolean"`
  16434. // One or more filters.
  16435. //
  16436. // fingerprint - The fingerprint of the key pair.
  16437. //
  16438. // key-name - The name of the key pair.
  16439. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  16440. // One or more key pair names.
  16441. //
  16442. // Default: Describes all your key pairs.
  16443. KeyNames []*string `locationName:"KeyName" locationNameList:"KeyName" type:"list"`
  16444. }
  16445. // String returns the string representation
  16446. func (s DescribeKeyPairsInput) String() string {
  16447. return awsutil.Prettify(s)
  16448. }
  16449. // GoString returns the string representation
  16450. func (s DescribeKeyPairsInput) GoString() string {
  16451. return s.String()
  16452. }
  16453. // Contains the output of DescribeKeyPairs.
  16454. type DescribeKeyPairsOutput struct {
  16455. _ struct{} `type:"structure"`
  16456. // Information about one or more key pairs.
  16457. KeyPairs []*KeyPairInfo `locationName:"keySet" locationNameList:"item" type:"list"`
  16458. }
  16459. // String returns the string representation
  16460. func (s DescribeKeyPairsOutput) String() string {
  16461. return awsutil.Prettify(s)
  16462. }
  16463. // GoString returns the string representation
  16464. func (s DescribeKeyPairsOutput) GoString() string {
  16465. return s.String()
  16466. }
  16467. // Contains the parameters for DescribeMovingAddresses.
  16468. type DescribeMovingAddressesInput struct {
  16469. _ struct{} `type:"structure"`
  16470. // Checks whether you have the required permissions for the action, without
  16471. // actually making the request, and provides an error response. If you have
  16472. // the required permissions, the error response is DryRunOperation. Otherwise,
  16473. // it is UnauthorizedOperation.
  16474. DryRun *bool `locationName:"dryRun" type:"boolean"`
  16475. // One or more filters.
  16476. //
  16477. // moving-status - The status of the Elastic IP address (MovingToVpc | RestoringToClassic).
  16478. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  16479. // The maximum number of results to return for the request in a single page.
  16480. // The remaining results of the initial request can be seen by sending another
  16481. // request with the returned NextToken value. This value can be between 5 and
  16482. // 1000; if MaxResults is given a value outside of this range, an error is returned.
  16483. //
  16484. // Default: If no value is provided, the default is 1000.
  16485. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  16486. // The token to use to retrieve the next page of results.
  16487. NextToken *string `locationName:"nextToken" type:"string"`
  16488. // One or more Elastic IP addresses.
  16489. PublicIps []*string `locationName:"publicIp" locationNameList:"item" type:"list"`
  16490. }
  16491. // String returns the string representation
  16492. func (s DescribeMovingAddressesInput) String() string {
  16493. return awsutil.Prettify(s)
  16494. }
  16495. // GoString returns the string representation
  16496. func (s DescribeMovingAddressesInput) GoString() string {
  16497. return s.String()
  16498. }
  16499. // Contains the output of DescribeMovingAddresses.
  16500. type DescribeMovingAddressesOutput struct {
  16501. _ struct{} `type:"structure"`
  16502. // The status for each Elastic IP address.
  16503. MovingAddressStatuses []*MovingAddressStatus `locationName:"movingAddressStatusSet" locationNameList:"item" type:"list"`
  16504. // The token to use to retrieve the next page of results. This value is null
  16505. // when there are no more results to return.
  16506. NextToken *string `locationName:"nextToken" type:"string"`
  16507. }
  16508. // String returns the string representation
  16509. func (s DescribeMovingAddressesOutput) String() string {
  16510. return awsutil.Prettify(s)
  16511. }
  16512. // GoString returns the string representation
  16513. func (s DescribeMovingAddressesOutput) GoString() string {
  16514. return s.String()
  16515. }
  16516. // Contains the parameters for DescribeNatGateways.
  16517. type DescribeNatGatewaysInput struct {
  16518. _ struct{} `type:"structure"`
  16519. // One or more filters.
  16520. //
  16521. // nat-gateway-id - The ID of the NAT gateway.
  16522. //
  16523. // state - The state of the NAT gateway (pending | failed | available |
  16524. // deleting | deleted).
  16525. //
  16526. // subnet-id - The ID of the subnet in which the NAT gateway resides.
  16527. //
  16528. // vpc-id - The ID of the VPC in which the NAT gateway resides.
  16529. Filter []*Filter `locationNameList:"Filter" type:"list"`
  16530. // The maximum number of items to return for this request. The request returns
  16531. // a token that you can specify in a subsequent call to get the next set of
  16532. // results.
  16533. //
  16534. // Constraint: If the value specified is greater than 1000, we return only
  16535. // 1000 items.
  16536. MaxResults *int64 `type:"integer"`
  16537. // One or more NAT gateway IDs.
  16538. NatGatewayIds []*string `locationName:"NatGatewayId" locationNameList:"item" type:"list"`
  16539. // The token to retrieve the next page of results.
  16540. NextToken *string `type:"string"`
  16541. }
  16542. // String returns the string representation
  16543. func (s DescribeNatGatewaysInput) String() string {
  16544. return awsutil.Prettify(s)
  16545. }
  16546. // GoString returns the string representation
  16547. func (s DescribeNatGatewaysInput) GoString() string {
  16548. return s.String()
  16549. }
  16550. // Contains the output of DescribeNatGateways.
  16551. type DescribeNatGatewaysOutput struct {
  16552. _ struct{} `type:"structure"`
  16553. // Information about the NAT gateways.
  16554. NatGateways []*NatGateway `locationName:"natGatewaySet" locationNameList:"item" type:"list"`
  16555. // The token to use to retrieve the next page of results. This value is null
  16556. // when there are no more results to return.
  16557. NextToken *string `locationName:"nextToken" type:"string"`
  16558. }
  16559. // String returns the string representation
  16560. func (s DescribeNatGatewaysOutput) String() string {
  16561. return awsutil.Prettify(s)
  16562. }
  16563. // GoString returns the string representation
  16564. func (s DescribeNatGatewaysOutput) GoString() string {
  16565. return s.String()
  16566. }
  16567. // Contains the parameters for DescribeNetworkAcls.
  16568. type DescribeNetworkAclsInput struct {
  16569. _ struct{} `type:"structure"`
  16570. // Checks whether you have the required permissions for the action, without
  16571. // actually making the request, and provides an error response. If you have
  16572. // the required permissions, the error response is DryRunOperation. Otherwise,
  16573. // it is UnauthorizedOperation.
  16574. DryRun *bool `locationName:"dryRun" type:"boolean"`
  16575. // One or more filters.
  16576. //
  16577. // association.association-id - The ID of an association ID for the ACL.
  16578. //
  16579. // association.network-acl-id - The ID of the network ACL involved in the
  16580. // association.
  16581. //
  16582. // association.subnet-id - The ID of the subnet involved in the association.
  16583. //
  16584. // default - Indicates whether the ACL is the default network ACL for the
  16585. // VPC.
  16586. //
  16587. // entry.cidr - The CIDR range specified in the entry.
  16588. //
  16589. // entry.egress - Indicates whether the entry applies to egress traffic.
  16590. //
  16591. // entry.icmp.code - The ICMP code specified in the entry, if any.
  16592. //
  16593. // entry.icmp.type - The ICMP type specified in the entry, if any.
  16594. //
  16595. // entry.port-range.from - The start of the port range specified in the
  16596. // entry.
  16597. //
  16598. // entry.port-range.to - The end of the port range specified in the entry.
  16599. //
  16600. // entry.protocol - The protocol specified in the entry (tcp | udp | icmp
  16601. // or a protocol number).
  16602. //
  16603. // entry.rule-action - Allows or denies the matching traffic (allow | deny).
  16604. //
  16605. // entry.rule-number - The number of an entry (in other words, rule) in
  16606. // the ACL's set of entries.
  16607. //
  16608. // network-acl-id - The ID of the network ACL.
  16609. //
  16610. // tag:key=value - The key/value combination of a tag assigned to the resource.
  16611. //
  16612. // tag-key - The key of a tag assigned to the resource. This filter is independent
  16613. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  16614. // and the filter "tag-value=X", you get any resources assigned both the tag
  16615. // key Purpose (regardless of what the tag's value is), and the tag value X
  16616. // (regardless of what the tag's key is). If you want to list only resources
  16617. // where Purpose is X, see the tag:key=value filter.
  16618. //
  16619. // tag-value - The value of a tag assigned to the resource. This filter
  16620. // is independent of the tag-key filter.
  16621. //
  16622. // vpc-id - The ID of the VPC for the network ACL.
  16623. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  16624. // One or more network ACL IDs.
  16625. //
  16626. // Default: Describes all your network ACLs.
  16627. NetworkAclIds []*string `locationName:"NetworkAclId" locationNameList:"item" type:"list"`
  16628. }
  16629. // String returns the string representation
  16630. func (s DescribeNetworkAclsInput) String() string {
  16631. return awsutil.Prettify(s)
  16632. }
  16633. // GoString returns the string representation
  16634. func (s DescribeNetworkAclsInput) GoString() string {
  16635. return s.String()
  16636. }
  16637. // Contains the output of DescribeNetworkAcls.
  16638. type DescribeNetworkAclsOutput struct {
  16639. _ struct{} `type:"structure"`
  16640. // Information about one or more network ACLs.
  16641. NetworkAcls []*NetworkAcl `locationName:"networkAclSet" locationNameList:"item" type:"list"`
  16642. }
  16643. // String returns the string representation
  16644. func (s DescribeNetworkAclsOutput) String() string {
  16645. return awsutil.Prettify(s)
  16646. }
  16647. // GoString returns the string representation
  16648. func (s DescribeNetworkAclsOutput) GoString() string {
  16649. return s.String()
  16650. }
  16651. // Contains the parameters for DescribeNetworkInterfaceAttribute.
  16652. type DescribeNetworkInterfaceAttributeInput struct {
  16653. _ struct{} `type:"structure"`
  16654. // The attribute of the network interface.
  16655. Attribute *string `locationName:"attribute" type:"string" enum:"NetworkInterfaceAttribute"`
  16656. // Checks whether you have the required permissions for the action, without
  16657. // actually making the request, and provides an error response. If you have
  16658. // the required permissions, the error response is DryRunOperation. Otherwise,
  16659. // it is UnauthorizedOperation.
  16660. DryRun *bool `locationName:"dryRun" type:"boolean"`
  16661. // The ID of the network interface.
  16662. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  16663. }
  16664. // String returns the string representation
  16665. func (s DescribeNetworkInterfaceAttributeInput) String() string {
  16666. return awsutil.Prettify(s)
  16667. }
  16668. // GoString returns the string representation
  16669. func (s DescribeNetworkInterfaceAttributeInput) GoString() string {
  16670. return s.String()
  16671. }
  16672. // Validate inspects the fields of the type to determine if they are valid.
  16673. func (s *DescribeNetworkInterfaceAttributeInput) Validate() error {
  16674. invalidParams := request.ErrInvalidParams{Context: "DescribeNetworkInterfaceAttributeInput"}
  16675. if s.NetworkInterfaceId == nil {
  16676. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  16677. }
  16678. if invalidParams.Len() > 0 {
  16679. return invalidParams
  16680. }
  16681. return nil
  16682. }
  16683. // Contains the output of DescribeNetworkInterfaceAttribute.
  16684. type DescribeNetworkInterfaceAttributeOutput struct {
  16685. _ struct{} `type:"structure"`
  16686. // The attachment (if any) of the network interface.
  16687. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  16688. // The description of the network interface.
  16689. Description *AttributeValue `locationName:"description" type:"structure"`
  16690. // The security groups associated with the network interface.
  16691. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  16692. // The ID of the network interface.
  16693. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  16694. // Indicates whether source/destination checking is enabled.
  16695. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  16696. }
  16697. // String returns the string representation
  16698. func (s DescribeNetworkInterfaceAttributeOutput) String() string {
  16699. return awsutil.Prettify(s)
  16700. }
  16701. // GoString returns the string representation
  16702. func (s DescribeNetworkInterfaceAttributeOutput) GoString() string {
  16703. return s.String()
  16704. }
  16705. // Contains the parameters for DescribeNetworkInterfaces.
  16706. type DescribeNetworkInterfacesInput struct {
  16707. _ struct{} `type:"structure"`
  16708. // Checks whether you have the required permissions for the action, without
  16709. // actually making the request, and provides an error response. If you have
  16710. // the required permissions, the error response is DryRunOperation. Otherwise,
  16711. // it is UnauthorizedOperation.
  16712. DryRun *bool `locationName:"dryRun" type:"boolean"`
  16713. // One or more filters.
  16714. //
  16715. // addresses.private-ip-address - The private IP addresses associated with
  16716. // the network interface.
  16717. //
  16718. // addresses.primary - Whether the private IP address is the primary IP
  16719. // address associated with the network interface.
  16720. //
  16721. // addresses.association.public-ip - The association ID returned when the
  16722. // network interface was associated with the Elastic IP address.
  16723. //
  16724. // addresses.association.owner-id - The owner ID of the addresses associated
  16725. // with the network interface.
  16726. //
  16727. // association.association-id - The association ID returned when the network
  16728. // interface was associated with an IP address.
  16729. //
  16730. // association.allocation-id - The allocation ID returned when you allocated
  16731. // the Elastic IP address for your network interface.
  16732. //
  16733. // association.ip-owner-id - The owner of the Elastic IP address associated
  16734. // with the network interface.
  16735. //
  16736. // association.public-ip - The address of the Elastic IP address bound to
  16737. // the network interface.
  16738. //
  16739. // association.public-dns-name - The public DNS name for the network interface.
  16740. //
  16741. // attachment.attachment-id - The ID of the interface attachment.
  16742. //
  16743. // attachment.attach.time - The time that the network interface was attached
  16744. // to an instance.
  16745. //
  16746. // attachment.delete-on-termination - Indicates whether the attachment is
  16747. // deleted when an instance is terminated.
  16748. //
  16749. // attachment.device-index - The device index to which the network interface
  16750. // is attached.
  16751. //
  16752. // attachment.instance-id - The ID of the instance to which the network
  16753. // interface is attached.
  16754. //
  16755. // attachment.instance-owner-id - The owner ID of the instance to which
  16756. // the network interface is attached.
  16757. //
  16758. // attachment.nat-gateway-id - The ID of the NAT gateway to which the network
  16759. // interface is attached.
  16760. //
  16761. // attachment.status - The status of the attachment (attaching | attached
  16762. // | detaching | detached).
  16763. //
  16764. // availability-zone - The Availability Zone of the network interface.
  16765. //
  16766. // description - The description of the network interface.
  16767. //
  16768. // group-id - The ID of a security group associated with the network interface.
  16769. //
  16770. // group-name - The name of a security group associated with the network
  16771. // interface.
  16772. //
  16773. // mac-address - The MAC address of the network interface.
  16774. //
  16775. // network-interface-id - The ID of the network interface.
  16776. //
  16777. // owner-id - The AWS account ID of the network interface owner.
  16778. //
  16779. // private-ip-address - The private IP address or addresses of the network
  16780. // interface.
  16781. //
  16782. // private-dns-name - The private DNS name of the network interface.
  16783. //
  16784. // requester-id - The ID of the entity that launched the instance on your
  16785. // behalf (for example, AWS Management Console, Auto Scaling, and so on).
  16786. //
  16787. // requester-managed - Indicates whether the network interface is being
  16788. // managed by an AWS service (for example, AWS Management Console, Auto Scaling,
  16789. // and so on).
  16790. //
  16791. // source-desk-check - Indicates whether the network interface performs
  16792. // source/destination checking. A value of true means checking is enabled, and
  16793. // false means checking is disabled. The value must be false for the network
  16794. // interface to perform network address translation (NAT) in your VPC.
  16795. //
  16796. // status - The status of the network interface. If the network interface
  16797. // is not attached to an instance, the status is available; if a network interface
  16798. // is attached to an instance the status is in-use.
  16799. //
  16800. // subnet-id - The ID of the subnet for the network interface.
  16801. //
  16802. // tag:key=value - The key/value combination of a tag assigned to the resource.
  16803. //
  16804. // tag-key - The key of a tag assigned to the resource. This filter is independent
  16805. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  16806. // and the filter "tag-value=X", you get any resources assigned both the tag
  16807. // key Purpose (regardless of what the tag's value is), and the tag value X
  16808. // (regardless of what the tag's key is). If you want to list only resources
  16809. // where Purpose is X, see the tag:key=value filter.
  16810. //
  16811. // tag-value - The value of a tag assigned to the resource. This filter
  16812. // is independent of the tag-key filter.
  16813. //
  16814. // vpc-id - The ID of the VPC for the network interface.
  16815. Filters []*Filter `locationName:"filter" locationNameList:"Filter" type:"list"`
  16816. // One or more network interface IDs.
  16817. //
  16818. // Default: Describes all your network interfaces.
  16819. NetworkInterfaceIds []*string `locationName:"NetworkInterfaceId" locationNameList:"item" type:"list"`
  16820. }
  16821. // String returns the string representation
  16822. func (s DescribeNetworkInterfacesInput) String() string {
  16823. return awsutil.Prettify(s)
  16824. }
  16825. // GoString returns the string representation
  16826. func (s DescribeNetworkInterfacesInput) GoString() string {
  16827. return s.String()
  16828. }
  16829. // Contains the output of DescribeNetworkInterfaces.
  16830. type DescribeNetworkInterfacesOutput struct {
  16831. _ struct{} `type:"structure"`
  16832. // Information about one or more network interfaces.
  16833. NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  16834. }
  16835. // String returns the string representation
  16836. func (s DescribeNetworkInterfacesOutput) String() string {
  16837. return awsutil.Prettify(s)
  16838. }
  16839. // GoString returns the string representation
  16840. func (s DescribeNetworkInterfacesOutput) GoString() string {
  16841. return s.String()
  16842. }
  16843. // Contains the parameters for DescribePlacementGroups.
  16844. type DescribePlacementGroupsInput struct {
  16845. _ struct{} `type:"structure"`
  16846. // Checks whether you have the required permissions for the action, without
  16847. // actually making the request, and provides an error response. If you have
  16848. // the required permissions, the error response is DryRunOperation. Otherwise,
  16849. // it is UnauthorizedOperation.
  16850. DryRun *bool `locationName:"dryRun" type:"boolean"`
  16851. // One or more filters.
  16852. //
  16853. // group-name - The name of the placement group.
  16854. //
  16855. // state - The state of the placement group (pending | available | deleting
  16856. // | deleted).
  16857. //
  16858. // strategy - The strategy of the placement group (cluster).
  16859. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  16860. // One or more placement group names.
  16861. //
  16862. // Default: Describes all your placement groups, or only those otherwise specified.
  16863. GroupNames []*string `locationName:"groupName" type:"list"`
  16864. }
  16865. // String returns the string representation
  16866. func (s DescribePlacementGroupsInput) String() string {
  16867. return awsutil.Prettify(s)
  16868. }
  16869. // GoString returns the string representation
  16870. func (s DescribePlacementGroupsInput) GoString() string {
  16871. return s.String()
  16872. }
  16873. // Contains the output of DescribePlacementGroups.
  16874. type DescribePlacementGroupsOutput struct {
  16875. _ struct{} `type:"structure"`
  16876. // One or more placement groups.
  16877. PlacementGroups []*PlacementGroup `locationName:"placementGroupSet" locationNameList:"item" type:"list"`
  16878. }
  16879. // String returns the string representation
  16880. func (s DescribePlacementGroupsOutput) String() string {
  16881. return awsutil.Prettify(s)
  16882. }
  16883. // GoString returns the string representation
  16884. func (s DescribePlacementGroupsOutput) GoString() string {
  16885. return s.String()
  16886. }
  16887. // Contains the parameters for DescribePrefixLists.
  16888. type DescribePrefixListsInput struct {
  16889. _ struct{} `type:"structure"`
  16890. // Checks whether you have the required permissions for the action, without
  16891. // actually making the request, and provides an error response. If you have
  16892. // the required permissions, the error response is DryRunOperation. Otherwise,
  16893. // it is UnauthorizedOperation.
  16894. DryRun *bool `type:"boolean"`
  16895. // One or more filters.
  16896. //
  16897. // prefix-list-id: The ID of a prefix list.
  16898. //
  16899. // prefix-list-name: The name of a prefix list.
  16900. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  16901. // The maximum number of items to return for this request. The request returns
  16902. // a token that you can specify in a subsequent call to get the next set of
  16903. // results.
  16904. //
  16905. // Constraint: If the value specified is greater than 1000, we return only
  16906. // 1000 items.
  16907. MaxResults *int64 `type:"integer"`
  16908. // The token for the next set of items to return. (You received this token from
  16909. // a prior call.)
  16910. NextToken *string `type:"string"`
  16911. // One or more prefix list IDs.
  16912. PrefixListIds []*string `locationName:"PrefixListId" locationNameList:"item" type:"list"`
  16913. }
  16914. // String returns the string representation
  16915. func (s DescribePrefixListsInput) String() string {
  16916. return awsutil.Prettify(s)
  16917. }
  16918. // GoString returns the string representation
  16919. func (s DescribePrefixListsInput) GoString() string {
  16920. return s.String()
  16921. }
  16922. // Contains the output of DescribePrefixLists.
  16923. type DescribePrefixListsOutput struct {
  16924. _ struct{} `type:"structure"`
  16925. // The token to use when requesting the next set of items. If there are no additional
  16926. // items to return, the string is empty.
  16927. NextToken *string `locationName:"nextToken" type:"string"`
  16928. // All available prefix lists.
  16929. PrefixLists []*PrefixList `locationName:"prefixListSet" locationNameList:"item" type:"list"`
  16930. }
  16931. // String returns the string representation
  16932. func (s DescribePrefixListsOutput) String() string {
  16933. return awsutil.Prettify(s)
  16934. }
  16935. // GoString returns the string representation
  16936. func (s DescribePrefixListsOutput) GoString() string {
  16937. return s.String()
  16938. }
  16939. // Contains the parameters for DescribeRegions.
  16940. type DescribeRegionsInput struct {
  16941. _ struct{} `type:"structure"`
  16942. // Checks whether you have the required permissions for the action, without
  16943. // actually making the request, and provides an error response. If you have
  16944. // the required permissions, the error response is DryRunOperation. Otherwise,
  16945. // it is UnauthorizedOperation.
  16946. DryRun *bool `locationName:"dryRun" type:"boolean"`
  16947. // One or more filters.
  16948. //
  16949. // endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com).
  16950. //
  16951. // region-name - The name of the region (for example, us-east-1).
  16952. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  16953. // The names of one or more regions.
  16954. RegionNames []*string `locationName:"RegionName" locationNameList:"RegionName" type:"list"`
  16955. }
  16956. // String returns the string representation
  16957. func (s DescribeRegionsInput) String() string {
  16958. return awsutil.Prettify(s)
  16959. }
  16960. // GoString returns the string representation
  16961. func (s DescribeRegionsInput) GoString() string {
  16962. return s.String()
  16963. }
  16964. // Contains the output of DescribeRegions.
  16965. type DescribeRegionsOutput struct {
  16966. _ struct{} `type:"structure"`
  16967. // Information about one or more regions.
  16968. Regions []*Region `locationName:"regionInfo" locationNameList:"item" type:"list"`
  16969. }
  16970. // String returns the string representation
  16971. func (s DescribeRegionsOutput) String() string {
  16972. return awsutil.Prettify(s)
  16973. }
  16974. // GoString returns the string representation
  16975. func (s DescribeRegionsOutput) GoString() string {
  16976. return s.String()
  16977. }
  16978. // Contains the parameters for DescribeReservedInstances.
  16979. type DescribeReservedInstancesInput struct {
  16980. _ struct{} `type:"structure"`
  16981. // Checks whether you have the required permissions for the action, without
  16982. // actually making the request, and provides an error response. If you have
  16983. // the required permissions, the error response is DryRunOperation. Otherwise,
  16984. // it is UnauthorizedOperation.
  16985. DryRun *bool `locationName:"dryRun" type:"boolean"`
  16986. // One or more filters.
  16987. //
  16988. // availability-zone - The Availability Zone where the Reserved Instance
  16989. // can be used.
  16990. //
  16991. // duration - The duration of the Reserved Instance (one year or three years),
  16992. // in seconds (31536000 | 94608000).
  16993. //
  16994. // end - The time when the Reserved Instance expires (for example, 2015-08-07T11:54:42.000Z).
  16995. //
  16996. // fixed-price - The purchase price of the Reserved Instance (for example,
  16997. // 9800.0).
  16998. //
  16999. // instance-type - The instance type that is covered by the reservation.
  17000. //
  17001. // product-description - The Reserved Instance product platform description.
  17002. // Instances that include (Amazon VPC) in the product platform description will
  17003. // only be displayed to EC2-Classic account holders and are for use with Amazon
  17004. // VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon
  17005. // VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) |
  17006. // Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows
  17007. // with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows
  17008. // with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows
  17009. // with SQL Server Enterprise (Amazon VPC)).
  17010. //
  17011. // reserved-instances-id - The ID of the Reserved Instance.
  17012. //
  17013. // start - The time at which the Reserved Instance purchase request was
  17014. // placed (for example, 2014-08-07T11:54:42.000Z).
  17015. //
  17016. // state - The state of the Reserved Instance (payment-pending | active
  17017. // | payment-failed | retired).
  17018. //
  17019. // tag:key=value - The key/value combination of a tag assigned to the resource.
  17020. //
  17021. // tag-key - The key of a tag assigned to the resource. This filter is independent
  17022. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  17023. // and the filter "tag-value=X", you get any resources assigned both the tag
  17024. // key Purpose (regardless of what the tag's value is), and the tag value X
  17025. // (regardless of what the tag's key is). If you want to list only resources
  17026. // where Purpose is X, see the tag:key=value filter.
  17027. //
  17028. // tag-value - The value of a tag assigned to the resource. This filter
  17029. // is independent of the tag-key filter.
  17030. //
  17031. // usage-price - The usage price of the Reserved Instance, per hour (for
  17032. // example, 0.84).
  17033. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  17034. // The Reserved Instance offering type. If you are using tools that predate
  17035. // the 2011-11-01 API version, you only have access to the Medium Utilization
  17036. // Reserved Instance offering type.
  17037. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  17038. // One or more Reserved Instance IDs.
  17039. //
  17040. // Default: Describes all your Reserved Instances, or only those otherwise
  17041. // specified.
  17042. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list"`
  17043. }
  17044. // String returns the string representation
  17045. func (s DescribeReservedInstancesInput) String() string {
  17046. return awsutil.Prettify(s)
  17047. }
  17048. // GoString returns the string representation
  17049. func (s DescribeReservedInstancesInput) GoString() string {
  17050. return s.String()
  17051. }
  17052. // Contains the parameters for DescribeReservedInstancesListings.
  17053. type DescribeReservedInstancesListingsInput struct {
  17054. _ struct{} `type:"structure"`
  17055. // One or more filters.
  17056. //
  17057. // reserved-instances-id - The ID of the Reserved Instances.
  17058. //
  17059. // reserved-instances-listing-id - The ID of the Reserved Instances listing.
  17060. //
  17061. // status - The status of the Reserved Instance listing (pending | active
  17062. // | cancelled | closed).
  17063. //
  17064. // status-message - The reason for the status.
  17065. Filters []*Filter `locationName:"filters" locationNameList:"Filter" type:"list"`
  17066. // One or more Reserved Instance IDs.
  17067. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  17068. // One or more Reserved Instance listing IDs.
  17069. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
  17070. }
  17071. // String returns the string representation
  17072. func (s DescribeReservedInstancesListingsInput) String() string {
  17073. return awsutil.Prettify(s)
  17074. }
  17075. // GoString returns the string representation
  17076. func (s DescribeReservedInstancesListingsInput) GoString() string {
  17077. return s.String()
  17078. }
  17079. // Contains the output of DescribeReservedInstancesListings.
  17080. type DescribeReservedInstancesListingsOutput struct {
  17081. _ struct{} `type:"structure"`
  17082. // Information about the Reserved Instance listing.
  17083. ReservedInstancesListings []*ReservedInstancesListing `locationName:"reservedInstancesListingsSet" locationNameList:"item" type:"list"`
  17084. }
  17085. // String returns the string representation
  17086. func (s DescribeReservedInstancesListingsOutput) String() string {
  17087. return awsutil.Prettify(s)
  17088. }
  17089. // GoString returns the string representation
  17090. func (s DescribeReservedInstancesListingsOutput) GoString() string {
  17091. return s.String()
  17092. }
  17093. // Contains the parameters for DescribeReservedInstancesModifications.
  17094. type DescribeReservedInstancesModificationsInput struct {
  17095. _ struct{} `type:"structure"`
  17096. // One or more filters.
  17097. //
  17098. // client-token - The idempotency token for the modification request.
  17099. //
  17100. // create-date - The time when the modification request was created.
  17101. //
  17102. // effective-date - The time when the modification becomes effective.
  17103. //
  17104. // modification-result.reserved-instances-id - The ID for the Reserved Instances
  17105. // created as part of the modification request. This ID is only available when
  17106. // the status of the modification is fulfilled.
  17107. //
  17108. // modification-result.target-configuration.availability-zone - The Availability
  17109. // Zone for the new Reserved Instances.
  17110. //
  17111. // modification-result.target-configuration.instance-count - The number
  17112. // of new Reserved Instances.
  17113. //
  17114. // modification-result.target-configuration.instance-type - The instance
  17115. // type of the new Reserved Instances.
  17116. //
  17117. // modification-result.target-configuration.platform - The network platform
  17118. // of the new Reserved Instances (EC2-Classic | EC2-VPC).
  17119. //
  17120. // reserved-instances-id - The ID of the Reserved Instances modified.
  17121. //
  17122. // reserved-instances-modification-id - The ID of the modification request.
  17123. //
  17124. // status - The status of the Reserved Instances modification request (processing
  17125. // | fulfilled | failed).
  17126. //
  17127. // status-message - The reason for the status.
  17128. //
  17129. // update-date - The time when the modification request was last updated.
  17130. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  17131. // The token to retrieve the next page of results.
  17132. NextToken *string `locationName:"nextToken" type:"string"`
  17133. // IDs for the submitted modification request.
  17134. ReservedInstancesModificationIds []*string `locationName:"ReservedInstancesModificationId" locationNameList:"ReservedInstancesModificationId" type:"list"`
  17135. }
  17136. // String returns the string representation
  17137. func (s DescribeReservedInstancesModificationsInput) String() string {
  17138. return awsutil.Prettify(s)
  17139. }
  17140. // GoString returns the string representation
  17141. func (s DescribeReservedInstancesModificationsInput) GoString() string {
  17142. return s.String()
  17143. }
  17144. // Contains the output of DescribeReservedInstancesModifications.
  17145. type DescribeReservedInstancesModificationsOutput struct {
  17146. _ struct{} `type:"structure"`
  17147. // The token to use to retrieve the next page of results. This value is null
  17148. // when there are no more results to return.
  17149. NextToken *string `locationName:"nextToken" type:"string"`
  17150. // The Reserved Instance modification information.
  17151. ReservedInstancesModifications []*ReservedInstancesModification `locationName:"reservedInstancesModificationsSet" locationNameList:"item" type:"list"`
  17152. }
  17153. // String returns the string representation
  17154. func (s DescribeReservedInstancesModificationsOutput) String() string {
  17155. return awsutil.Prettify(s)
  17156. }
  17157. // GoString returns the string representation
  17158. func (s DescribeReservedInstancesModificationsOutput) GoString() string {
  17159. return s.String()
  17160. }
  17161. // Contains the parameters for DescribeReservedInstancesOfferings.
  17162. type DescribeReservedInstancesOfferingsInput struct {
  17163. _ struct{} `type:"structure"`
  17164. // The Availability Zone in which the Reserved Instance can be used.
  17165. AvailabilityZone *string `type:"string"`
  17166. // Checks whether you have the required permissions for the action, without
  17167. // actually making the request, and provides an error response. If you have
  17168. // the required permissions, the error response is DryRunOperation. Otherwise,
  17169. // it is UnauthorizedOperation.
  17170. DryRun *bool `locationName:"dryRun" type:"boolean"`
  17171. // One or more filters.
  17172. //
  17173. // availability-zone - The Availability Zone where the Reserved Instance
  17174. // can be used.
  17175. //
  17176. // duration - The duration of the Reserved Instance (for example, one year
  17177. // or three years), in seconds (31536000 | 94608000).
  17178. //
  17179. // fixed-price - The purchase price of the Reserved Instance (for example,
  17180. // 9800.0).
  17181. //
  17182. // instance-type - The instance type that is covered by the reservation.
  17183. //
  17184. // marketplace - Set to true to show only Reserved Instance Marketplace
  17185. // offerings. When this filter is not used, which is the default behavior, all
  17186. // offerings from both AWS and the Reserved Instance Marketplace are listed.
  17187. //
  17188. // product-description - The Reserved Instance product platform description.
  17189. // Instances that include (Amazon VPC) in the product platform description will
  17190. // only be displayed to EC2-Classic account holders and are for use with Amazon
  17191. // VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE Linux (Amazon
  17192. // VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon VPC) |
  17193. // Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | Windows
  17194. // with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | Windows
  17195. // with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows
  17196. // with SQL Server Enterprise (Amazon VPC))
  17197. //
  17198. // reserved-instances-offering-id - The Reserved Instances offering ID.
  17199. //
  17200. // usage-price - The usage price of the Reserved Instance, per hour (for
  17201. // example, 0.84).
  17202. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  17203. // Include Reserved Instance Marketplace offerings in the response.
  17204. IncludeMarketplace *bool `type:"boolean"`
  17205. // The tenancy of the instances covered by the reservation. A Reserved Instance
  17206. // with a tenancy of dedicated is applied to instances that run in a VPC on
  17207. // single-tenant hardware (i.e., Dedicated Instances).
  17208. //
  17209. // Default: default
  17210. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  17211. // The instance type that the reservation will cover (for example, m1.small).
  17212. // For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  17213. // in the Amazon Elastic Compute Cloud User Guide.
  17214. InstanceType *string `type:"string" enum:"InstanceType"`
  17215. // The maximum duration (in seconds) to filter when searching for offerings.
  17216. //
  17217. // Default: 94608000 (3 years)
  17218. MaxDuration *int64 `type:"long"`
  17219. // The maximum number of instances to filter when searching for offerings.
  17220. //
  17221. // Default: 20
  17222. MaxInstanceCount *int64 `type:"integer"`
  17223. // The maximum number of results to return for the request in a single page.
  17224. // The remaining results of the initial request can be seen by sending another
  17225. // request with the returned NextToken value. The maximum is 100.
  17226. //
  17227. // Default: 100
  17228. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  17229. // The minimum duration (in seconds) to filter when searching for offerings.
  17230. //
  17231. // Default: 2592000 (1 month)
  17232. MinDuration *int64 `type:"long"`
  17233. // The token to retrieve the next page of results.
  17234. NextToken *string `locationName:"nextToken" type:"string"`
  17235. // The Reserved Instance offering type. If you are using tools that predate
  17236. // the 2011-11-01 API version, you only have access to the Medium Utilization
  17237. // Reserved Instance offering type.
  17238. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  17239. // The Reserved Instance product platform description. Instances that include
  17240. // (Amazon VPC) in the description are for use with Amazon VPC.
  17241. ProductDescription *string `type:"string" enum:"RIProductDescription"`
  17242. // One or more Reserved Instances offering IDs.
  17243. ReservedInstancesOfferingIds []*string `locationName:"ReservedInstancesOfferingId" type:"list"`
  17244. }
  17245. // String returns the string representation
  17246. func (s DescribeReservedInstancesOfferingsInput) String() string {
  17247. return awsutil.Prettify(s)
  17248. }
  17249. // GoString returns the string representation
  17250. func (s DescribeReservedInstancesOfferingsInput) GoString() string {
  17251. return s.String()
  17252. }
  17253. // Contains the output of DescribeReservedInstancesOfferings.
  17254. type DescribeReservedInstancesOfferingsOutput struct {
  17255. _ struct{} `type:"structure"`
  17256. // The token to use to retrieve the next page of results. This value is null
  17257. // when there are no more results to return.
  17258. NextToken *string `locationName:"nextToken" type:"string"`
  17259. // A list of Reserved Instances offerings.
  17260. ReservedInstancesOfferings []*ReservedInstancesOffering `locationName:"reservedInstancesOfferingsSet" locationNameList:"item" type:"list"`
  17261. }
  17262. // String returns the string representation
  17263. func (s DescribeReservedInstancesOfferingsOutput) String() string {
  17264. return awsutil.Prettify(s)
  17265. }
  17266. // GoString returns the string representation
  17267. func (s DescribeReservedInstancesOfferingsOutput) GoString() string {
  17268. return s.String()
  17269. }
  17270. // Contains the output for DescribeReservedInstances.
  17271. type DescribeReservedInstancesOutput struct {
  17272. _ struct{} `type:"structure"`
  17273. // A list of Reserved Instances.
  17274. ReservedInstances []*ReservedInstances `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
  17275. }
  17276. // String returns the string representation
  17277. func (s DescribeReservedInstancesOutput) String() string {
  17278. return awsutil.Prettify(s)
  17279. }
  17280. // GoString returns the string representation
  17281. func (s DescribeReservedInstancesOutput) GoString() string {
  17282. return s.String()
  17283. }
  17284. // Contains the parameters for DescribeRouteTables.
  17285. type DescribeRouteTablesInput struct {
  17286. _ struct{} `type:"structure"`
  17287. // Checks whether you have the required permissions for the action, without
  17288. // actually making the request, and provides an error response. If you have
  17289. // the required permissions, the error response is DryRunOperation. Otherwise,
  17290. // it is UnauthorizedOperation.
  17291. DryRun *bool `locationName:"dryRun" type:"boolean"`
  17292. // One or more filters.
  17293. //
  17294. // association.route-table-association-id - The ID of an association ID
  17295. // for the route table.
  17296. //
  17297. // association.route-table-id - The ID of the route table involved in the
  17298. // association.
  17299. //
  17300. // association.subnet-id - The ID of the subnet involved in the association.
  17301. //
  17302. // association.main - Indicates whether the route table is the main route
  17303. // table for the VPC (true | false).
  17304. //
  17305. // route-table-id - The ID of the route table.
  17306. //
  17307. // route.destination-cidr-block - The CIDR range specified in a route in
  17308. // the table.
  17309. //
  17310. // route.destination-prefix-list-id - The ID (prefix) of the AWS service
  17311. // specified in a route in the table.
  17312. //
  17313. // route.gateway-id - The ID of a gateway specified in a route in the table.
  17314. //
  17315. // route.instance-id - The ID of an instance specified in a route in the
  17316. // table.
  17317. //
  17318. // route.nat-gateway-id - The ID of a NAT gateway.
  17319. //
  17320. // route.origin - Describes how the route was created. CreateRouteTable
  17321. // indicates that the route was automatically created when the route table was
  17322. // created; CreateRoute indicates that the route was manually added to the route
  17323. // table; EnableVgwRoutePropagation indicates that the route was propagated
  17324. // by route propagation.
  17325. //
  17326. // route.state - The state of a route in the route table (active | blackhole).
  17327. // The blackhole state indicates that the route's target isn't available (for
  17328. // example, the specified gateway isn't attached to the VPC, the specified NAT
  17329. // instance has been terminated, and so on).
  17330. //
  17331. // route.vpc-peering-connection-id - The ID of a VPC peering connection
  17332. // specified in a route in the table.
  17333. //
  17334. // tag:key=value - The key/value combination of a tag assigned to the resource.
  17335. //
  17336. // tag-key - The key of a tag assigned to the resource. This filter is independent
  17337. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  17338. // and the filter "tag-value=X", you get any resources assigned both the tag
  17339. // key Purpose (regardless of what the tag's value is), and the tag value X
  17340. // (regardless of what the tag's key is). If you want to list only resources
  17341. // where Purpose is X, see the tag:key=value filter.
  17342. //
  17343. // tag-value - The value of a tag assigned to the resource. This filter
  17344. // is independent of the tag-key filter.
  17345. //
  17346. // vpc-id - The ID of the VPC for the route table.
  17347. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  17348. // One or more route table IDs.
  17349. //
  17350. // Default: Describes all your route tables.
  17351. RouteTableIds []*string `locationName:"RouteTableId" locationNameList:"item" type:"list"`
  17352. }
  17353. // String returns the string representation
  17354. func (s DescribeRouteTablesInput) String() string {
  17355. return awsutil.Prettify(s)
  17356. }
  17357. // GoString returns the string representation
  17358. func (s DescribeRouteTablesInput) GoString() string {
  17359. return s.String()
  17360. }
  17361. // Contains the output of DescribeRouteTables.
  17362. type DescribeRouteTablesOutput struct {
  17363. _ struct{} `type:"structure"`
  17364. // Information about one or more route tables.
  17365. RouteTables []*RouteTable `locationName:"routeTableSet" locationNameList:"item" type:"list"`
  17366. }
  17367. // String returns the string representation
  17368. func (s DescribeRouteTablesOutput) String() string {
  17369. return awsutil.Prettify(s)
  17370. }
  17371. // GoString returns the string representation
  17372. func (s DescribeRouteTablesOutput) GoString() string {
  17373. return s.String()
  17374. }
  17375. // Contains the parameters for DescribeScheduledInstanceAvailability.
  17376. type DescribeScheduledInstanceAvailabilityInput struct {
  17377. _ struct{} `type:"structure"`
  17378. // Checks whether you have the required permissions for the action, without
  17379. // actually making the request, and provides an error response. If you have
  17380. // the required permissions, the error response is DryRunOperation. Otherwise,
  17381. // it is UnauthorizedOperation.
  17382. DryRun *bool `type:"boolean"`
  17383. // One or more filters.
  17384. //
  17385. // availability-zone - The Availability Zone (for example, us-west-2a).
  17386. //
  17387. // instance-type - The instance type (for example, c4.large).
  17388. //
  17389. // network-platform - The network platform (EC2-Classic or EC2-VPC).
  17390. //
  17391. // platform - The platform (Linux/UNIX or Windows).
  17392. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  17393. // The time period for the first schedule to start.
  17394. FirstSlotStartTimeRange *SlotDateTimeRangeRequest `type:"structure" required:"true"`
  17395. // The maximum number of results to return in a single call. This value can
  17396. // be between 5 and 300. The default value is 300. To retrieve the remaining
  17397. // results, make another call with the returned NextToken value.
  17398. MaxResults *int64 `type:"integer"`
  17399. // The maximum available duration, in hours. This value must be greater than
  17400. // MinSlotDurationInHours and less than 1,720.
  17401. MaxSlotDurationInHours *int64 `type:"integer"`
  17402. // The minimum available duration, in hours. The minimum required duration is
  17403. // 1,200 hours per year. For example, the minimum daily schedule is 4 hours,
  17404. // the minimum weekly schedule is 24 hours, and the minimum monthly schedule
  17405. // is 100 hours.
  17406. MinSlotDurationInHours *int64 `type:"integer"`
  17407. // The token for the next set of results.
  17408. NextToken *string `type:"string"`
  17409. // The schedule recurrence.
  17410. Recurrence *ScheduledInstanceRecurrenceRequest `type:"structure" required:"true"`
  17411. }
  17412. // String returns the string representation
  17413. func (s DescribeScheduledInstanceAvailabilityInput) String() string {
  17414. return awsutil.Prettify(s)
  17415. }
  17416. // GoString returns the string representation
  17417. func (s DescribeScheduledInstanceAvailabilityInput) GoString() string {
  17418. return s.String()
  17419. }
  17420. // Validate inspects the fields of the type to determine if they are valid.
  17421. func (s *DescribeScheduledInstanceAvailabilityInput) Validate() error {
  17422. invalidParams := request.ErrInvalidParams{Context: "DescribeScheduledInstanceAvailabilityInput"}
  17423. if s.FirstSlotStartTimeRange == nil {
  17424. invalidParams.Add(request.NewErrParamRequired("FirstSlotStartTimeRange"))
  17425. }
  17426. if s.Recurrence == nil {
  17427. invalidParams.Add(request.NewErrParamRequired("Recurrence"))
  17428. }
  17429. if s.FirstSlotStartTimeRange != nil {
  17430. if err := s.FirstSlotStartTimeRange.Validate(); err != nil {
  17431. invalidParams.AddNested("FirstSlotStartTimeRange", err.(request.ErrInvalidParams))
  17432. }
  17433. }
  17434. if invalidParams.Len() > 0 {
  17435. return invalidParams
  17436. }
  17437. return nil
  17438. }
  17439. // Contains the output of DescribeScheduledInstanceAvailability.
  17440. type DescribeScheduledInstanceAvailabilityOutput struct {
  17441. _ struct{} `type:"structure"`
  17442. // The token required to retrieve the next set of results. This value is null
  17443. // when there are no more results to return.
  17444. NextToken *string `locationName:"nextToken" type:"string"`
  17445. // Information about the available Scheduled Instances.
  17446. ScheduledInstanceAvailabilitySet []*ScheduledInstanceAvailability `locationName:"scheduledInstanceAvailabilitySet" locationNameList:"item" type:"list"`
  17447. }
  17448. // String returns the string representation
  17449. func (s DescribeScheduledInstanceAvailabilityOutput) String() string {
  17450. return awsutil.Prettify(s)
  17451. }
  17452. // GoString returns the string representation
  17453. func (s DescribeScheduledInstanceAvailabilityOutput) GoString() string {
  17454. return s.String()
  17455. }
  17456. // Contains the parameters for DescribeScheduledInstances.
  17457. type DescribeScheduledInstancesInput struct {
  17458. _ struct{} `type:"structure"`
  17459. // Checks whether you have the required permissions for the action, without
  17460. // actually making the request, and provides an error response. If you have
  17461. // the required permissions, the error response is DryRunOperation. Otherwise,
  17462. // it is UnauthorizedOperation.
  17463. DryRun *bool `type:"boolean"`
  17464. // One or more filters.
  17465. //
  17466. // availability-zone - The Availability Zone (for example, us-west-2a).
  17467. //
  17468. // instance-type - The instance type (for example, c4.large).
  17469. //
  17470. // network-platform - The network platform (EC2-Classic or EC2-VPC).
  17471. //
  17472. // platform - The platform (Linux/UNIX or Windows).
  17473. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  17474. // The maximum number of results to return in a single call. This value can
  17475. // be between 5 and 300. The default value is 100. To retrieve the remaining
  17476. // results, make another call with the returned NextToken value.
  17477. MaxResults *int64 `type:"integer"`
  17478. // The token for the next set of results.
  17479. NextToken *string `type:"string"`
  17480. // One or more Scheduled Instance IDs.
  17481. ScheduledInstanceIds []*string `locationName:"ScheduledInstanceId" locationNameList:"ScheduledInstanceId" type:"list"`
  17482. // The time period for the first schedule to start.
  17483. SlotStartTimeRange *SlotStartTimeRangeRequest `type:"structure"`
  17484. }
  17485. // String returns the string representation
  17486. func (s DescribeScheduledInstancesInput) String() string {
  17487. return awsutil.Prettify(s)
  17488. }
  17489. // GoString returns the string representation
  17490. func (s DescribeScheduledInstancesInput) GoString() string {
  17491. return s.String()
  17492. }
  17493. // Contains the output of DescribeScheduledInstances.
  17494. type DescribeScheduledInstancesOutput struct {
  17495. _ struct{} `type:"structure"`
  17496. // The token required to retrieve the next set of results. This value is null
  17497. // when there are no more results to return.
  17498. NextToken *string `locationName:"nextToken" type:"string"`
  17499. // Information about the Scheduled Instances.
  17500. ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
  17501. }
  17502. // String returns the string representation
  17503. func (s DescribeScheduledInstancesOutput) String() string {
  17504. return awsutil.Prettify(s)
  17505. }
  17506. // GoString returns the string representation
  17507. func (s DescribeScheduledInstancesOutput) GoString() string {
  17508. return s.String()
  17509. }
  17510. type DescribeSecurityGroupReferencesInput struct {
  17511. _ struct{} `type:"structure"`
  17512. // Checks whether you have the required permissions for the operation, without
  17513. // actually making the request, and provides an error response. If you have
  17514. // the required permissions, the error response is DryRunOperation. Otherwise,
  17515. // it is UnauthorizedOperation.
  17516. DryRun *bool `type:"boolean"`
  17517. // One or more security group IDs in your account.
  17518. GroupId []*string `locationNameList:"item" type:"list" required:"true"`
  17519. }
  17520. // String returns the string representation
  17521. func (s DescribeSecurityGroupReferencesInput) String() string {
  17522. return awsutil.Prettify(s)
  17523. }
  17524. // GoString returns the string representation
  17525. func (s DescribeSecurityGroupReferencesInput) GoString() string {
  17526. return s.String()
  17527. }
  17528. // Validate inspects the fields of the type to determine if they are valid.
  17529. func (s *DescribeSecurityGroupReferencesInput) Validate() error {
  17530. invalidParams := request.ErrInvalidParams{Context: "DescribeSecurityGroupReferencesInput"}
  17531. if s.GroupId == nil {
  17532. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  17533. }
  17534. if invalidParams.Len() > 0 {
  17535. return invalidParams
  17536. }
  17537. return nil
  17538. }
  17539. type DescribeSecurityGroupReferencesOutput struct {
  17540. _ struct{} `type:"structure"`
  17541. // Information about the VPCs with the referencing security groups.
  17542. SecurityGroupReferenceSet []*SecurityGroupReference `locationName:"securityGroupReferenceSet" locationNameList:"item" type:"list"`
  17543. }
  17544. // String returns the string representation
  17545. func (s DescribeSecurityGroupReferencesOutput) String() string {
  17546. return awsutil.Prettify(s)
  17547. }
  17548. // GoString returns the string representation
  17549. func (s DescribeSecurityGroupReferencesOutput) GoString() string {
  17550. return s.String()
  17551. }
  17552. // Contains the parameters for DescribeSecurityGroups.
  17553. type DescribeSecurityGroupsInput struct {
  17554. _ struct{} `type:"structure"`
  17555. // Checks whether you have the required permissions for the action, without
  17556. // actually making the request, and provides an error response. If you have
  17557. // the required permissions, the error response is DryRunOperation. Otherwise,
  17558. // it is UnauthorizedOperation.
  17559. DryRun *bool `locationName:"dryRun" type:"boolean"`
  17560. // One or more filters. If using multiple filters for rules, the results include
  17561. // security groups for which any combination of rules - not necessarily a single
  17562. // rule - match all filters.
  17563. //
  17564. // description - The description of the security group.
  17565. //
  17566. // egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service
  17567. // to which the security group allows access.
  17568. //
  17569. // group-id - The ID of the security group.
  17570. //
  17571. // group-name - The name of the security group.
  17572. //
  17573. // ip-permission.cidr - A CIDR range that has been granted permission.
  17574. //
  17575. // ip-permission.from-port - The start of port range for the TCP and UDP
  17576. // protocols, or an ICMP type number.
  17577. //
  17578. // ip-permission.group-id - The ID of a security group that has been granted
  17579. // permission.
  17580. //
  17581. // ip-permission.group-name - The name of a security group that has been
  17582. // granted permission.
  17583. //
  17584. // ip-permission.protocol - The IP protocol for the permission (tcp | udp
  17585. // | icmp or a protocol number).
  17586. //
  17587. // ip-permission.to-port - The end of port range for the TCP and UDP protocols,
  17588. // or an ICMP code.
  17589. //
  17590. // ip-permission.user-id - The ID of an AWS account that has been granted
  17591. // permission.
  17592. //
  17593. // owner-id - The AWS account ID of the owner of the security group.
  17594. //
  17595. // tag-key - The key of a tag assigned to the security group.
  17596. //
  17597. // tag-value - The value of a tag assigned to the security group.
  17598. //
  17599. // vpc-id - The ID of the VPC specified when the security group was created.
  17600. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  17601. // One or more security group IDs. Required for security groups in a nondefault
  17602. // VPC.
  17603. //
  17604. // Default: Describes all your security groups.
  17605. GroupIds []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"`
  17606. // [EC2-Classic and default VPC only] One or more security group names. You
  17607. // can specify either the security group name or the security group ID. For
  17608. // security groups in a nondefault VPC, use the group-name filter to describe
  17609. // security groups by name.
  17610. //
  17611. // Default: Describes all your security groups.
  17612. GroupNames []*string `locationName:"GroupName" locationNameList:"GroupName" type:"list"`
  17613. }
  17614. // String returns the string representation
  17615. func (s DescribeSecurityGroupsInput) String() string {
  17616. return awsutil.Prettify(s)
  17617. }
  17618. // GoString returns the string representation
  17619. func (s DescribeSecurityGroupsInput) GoString() string {
  17620. return s.String()
  17621. }
  17622. // Contains the output of DescribeSecurityGroups.
  17623. type DescribeSecurityGroupsOutput struct {
  17624. _ struct{} `type:"structure"`
  17625. // Information about one or more security groups.
  17626. SecurityGroups []*SecurityGroup `locationName:"securityGroupInfo" locationNameList:"item" type:"list"`
  17627. }
  17628. // String returns the string representation
  17629. func (s DescribeSecurityGroupsOutput) String() string {
  17630. return awsutil.Prettify(s)
  17631. }
  17632. // GoString returns the string representation
  17633. func (s DescribeSecurityGroupsOutput) GoString() string {
  17634. return s.String()
  17635. }
  17636. // Contains the parameters for DescribeSnapshotAttribute.
  17637. type DescribeSnapshotAttributeInput struct {
  17638. _ struct{} `type:"structure"`
  17639. // The snapshot attribute you would like to view.
  17640. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"`
  17641. // Checks whether you have the required permissions for the action, without
  17642. // actually making the request, and provides an error response. If you have
  17643. // the required permissions, the error response is DryRunOperation. Otherwise,
  17644. // it is UnauthorizedOperation.
  17645. DryRun *bool `locationName:"dryRun" type:"boolean"`
  17646. // The ID of the EBS snapshot.
  17647. SnapshotId *string `type:"string" required:"true"`
  17648. }
  17649. // String returns the string representation
  17650. func (s DescribeSnapshotAttributeInput) String() string {
  17651. return awsutil.Prettify(s)
  17652. }
  17653. // GoString returns the string representation
  17654. func (s DescribeSnapshotAttributeInput) GoString() string {
  17655. return s.String()
  17656. }
  17657. // Validate inspects the fields of the type to determine if they are valid.
  17658. func (s *DescribeSnapshotAttributeInput) Validate() error {
  17659. invalidParams := request.ErrInvalidParams{Context: "DescribeSnapshotAttributeInput"}
  17660. if s.Attribute == nil {
  17661. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  17662. }
  17663. if s.SnapshotId == nil {
  17664. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  17665. }
  17666. if invalidParams.Len() > 0 {
  17667. return invalidParams
  17668. }
  17669. return nil
  17670. }
  17671. // Contains the output of DescribeSnapshotAttribute.
  17672. type DescribeSnapshotAttributeOutput struct {
  17673. _ struct{} `type:"structure"`
  17674. // A list of permissions for creating volumes from the snapshot.
  17675. CreateVolumePermissions []*CreateVolumePermission `locationName:"createVolumePermission" locationNameList:"item" type:"list"`
  17676. // A list of product codes.
  17677. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  17678. // The ID of the EBS snapshot.
  17679. SnapshotId *string `locationName:"snapshotId" type:"string"`
  17680. }
  17681. // String returns the string representation
  17682. func (s DescribeSnapshotAttributeOutput) String() string {
  17683. return awsutil.Prettify(s)
  17684. }
  17685. // GoString returns the string representation
  17686. func (s DescribeSnapshotAttributeOutput) GoString() string {
  17687. return s.String()
  17688. }
  17689. // Contains the parameters for DescribeSnapshots.
  17690. type DescribeSnapshotsInput struct {
  17691. _ struct{} `type:"structure"`
  17692. // Checks whether you have the required permissions for the action, without
  17693. // actually making the request, and provides an error response. If you have
  17694. // the required permissions, the error response is DryRunOperation. Otherwise,
  17695. // it is UnauthorizedOperation.
  17696. DryRun *bool `locationName:"dryRun" type:"boolean"`
  17697. // One or more filters.
  17698. //
  17699. // description - A description of the snapshot.
  17700. //
  17701. // owner-alias - The AWS account alias (for example, amazon) that owns the
  17702. // snapshot.
  17703. //
  17704. // owner-id - The ID of the AWS account that owns the snapshot.
  17705. //
  17706. // progress - The progress of the snapshot, as a percentage (for example,
  17707. // 80%).
  17708. //
  17709. // snapshot-id - The snapshot ID.
  17710. //
  17711. // start-time - The time stamp when the snapshot was initiated.
  17712. //
  17713. // status - The status of the snapshot (pending | completed | error).
  17714. //
  17715. // tag:key=value - The key/value combination of a tag assigned to the resource.
  17716. //
  17717. // tag-key - The key of a tag assigned to the resource. This filter is independent
  17718. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  17719. // and the filter "tag-value=X", you get any resources assigned both the tag
  17720. // key Purpose (regardless of what the tag's value is), and the tag value X
  17721. // (regardless of what the tag's key is). If you want to list only resources
  17722. // where Purpose is X, see the tag:key=value filter.
  17723. //
  17724. // tag-value - The value of a tag assigned to the resource. This filter
  17725. // is independent of the tag-key filter.
  17726. //
  17727. // volume-id - The ID of the volume the snapshot is for.
  17728. //
  17729. // volume-size - The size of the volume, in GiB.
  17730. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  17731. // The maximum number of snapshot results returned by DescribeSnapshots in paginated
  17732. // output. When this parameter is used, DescribeSnapshots only returns MaxResults
  17733. // results in a single page along with a NextToken response element. The remaining
  17734. // results of the initial request can be seen by sending another DescribeSnapshots
  17735. // request with the returned NextToken value. This value can be between 5 and
  17736. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  17737. // are returned. If this parameter is not used, then DescribeSnapshots returns
  17738. // all results. You cannot specify this parameter and the snapshot IDs parameter
  17739. // in the same request.
  17740. MaxResults *int64 `type:"integer"`
  17741. // The NextToken value returned from a previous paginated DescribeSnapshots
  17742. // request where MaxResults was used and the results exceeded the value of that
  17743. // parameter. Pagination continues from the end of the previous results that
  17744. // returned the NextToken value. This value is null when there are no more results
  17745. // to return.
  17746. NextToken *string `type:"string"`
  17747. // Returns the snapshots owned by the specified owner. Multiple owners can be
  17748. // specified.
  17749. OwnerIds []*string `locationName:"Owner" locationNameList:"Owner" type:"list"`
  17750. // One or more AWS accounts IDs that can create volumes from the snapshot.
  17751. RestorableByUserIds []*string `locationName:"RestorableBy" type:"list"`
  17752. // One or more snapshot IDs.
  17753. //
  17754. // Default: Describes snapshots for which you have launch permissions.
  17755. SnapshotIds []*string `locationName:"SnapshotId" locationNameList:"SnapshotId" type:"list"`
  17756. }
  17757. // String returns the string representation
  17758. func (s DescribeSnapshotsInput) String() string {
  17759. return awsutil.Prettify(s)
  17760. }
  17761. // GoString returns the string representation
  17762. func (s DescribeSnapshotsInput) GoString() string {
  17763. return s.String()
  17764. }
  17765. // Contains the output of DescribeSnapshots.
  17766. type DescribeSnapshotsOutput struct {
  17767. _ struct{} `type:"structure"`
  17768. // The NextToken value to include in a future DescribeSnapshots request. When
  17769. // the results of a DescribeSnapshots request exceed MaxResults, this value
  17770. // can be used to retrieve the next page of results. This value is null when
  17771. // there are no more results to return.
  17772. NextToken *string `locationName:"nextToken" type:"string"`
  17773. // Information about the snapshots.
  17774. Snapshots []*Snapshot `locationName:"snapshotSet" locationNameList:"item" type:"list"`
  17775. }
  17776. // String returns the string representation
  17777. func (s DescribeSnapshotsOutput) String() string {
  17778. return awsutil.Prettify(s)
  17779. }
  17780. // GoString returns the string representation
  17781. func (s DescribeSnapshotsOutput) GoString() string {
  17782. return s.String()
  17783. }
  17784. // Contains the parameters for DescribeSpotDatafeedSubscription.
  17785. type DescribeSpotDatafeedSubscriptionInput struct {
  17786. _ struct{} `type:"structure"`
  17787. // Checks whether you have the required permissions for the action, without
  17788. // actually making the request, and provides an error response. If you have
  17789. // the required permissions, the error response is DryRunOperation. Otherwise,
  17790. // it is UnauthorizedOperation.
  17791. DryRun *bool `locationName:"dryRun" type:"boolean"`
  17792. }
  17793. // String returns the string representation
  17794. func (s DescribeSpotDatafeedSubscriptionInput) String() string {
  17795. return awsutil.Prettify(s)
  17796. }
  17797. // GoString returns the string representation
  17798. func (s DescribeSpotDatafeedSubscriptionInput) GoString() string {
  17799. return s.String()
  17800. }
  17801. // Contains the output of DescribeSpotDatafeedSubscription.
  17802. type DescribeSpotDatafeedSubscriptionOutput struct {
  17803. _ struct{} `type:"structure"`
  17804. // The Spot instance data feed subscription.
  17805. SpotDatafeedSubscription *SpotDatafeedSubscription `locationName:"spotDatafeedSubscription" type:"structure"`
  17806. }
  17807. // String returns the string representation
  17808. func (s DescribeSpotDatafeedSubscriptionOutput) String() string {
  17809. return awsutil.Prettify(s)
  17810. }
  17811. // GoString returns the string representation
  17812. func (s DescribeSpotDatafeedSubscriptionOutput) GoString() string {
  17813. return s.String()
  17814. }
  17815. // Contains the parameters for DescribeSpotFleetInstances.
  17816. type DescribeSpotFleetInstancesInput struct {
  17817. _ struct{} `type:"structure"`
  17818. // Checks whether you have the required permissions for the action, without
  17819. // actually making the request, and provides an error response. If you have
  17820. // the required permissions, the error response is DryRunOperation. Otherwise,
  17821. // it is UnauthorizedOperation.
  17822. DryRun *bool `locationName:"dryRun" type:"boolean"`
  17823. // The maximum number of results to return in a single call. Specify a value
  17824. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  17825. // results, make another call with the returned NextToken value.
  17826. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  17827. // The token for the next set of results.
  17828. NextToken *string `locationName:"nextToken" type:"string"`
  17829. // The ID of the Spot fleet request.
  17830. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  17831. }
  17832. // String returns the string representation
  17833. func (s DescribeSpotFleetInstancesInput) String() string {
  17834. return awsutil.Prettify(s)
  17835. }
  17836. // GoString returns the string representation
  17837. func (s DescribeSpotFleetInstancesInput) GoString() string {
  17838. return s.String()
  17839. }
  17840. // Validate inspects the fields of the type to determine if they are valid.
  17841. func (s *DescribeSpotFleetInstancesInput) Validate() error {
  17842. invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetInstancesInput"}
  17843. if s.SpotFleetRequestId == nil {
  17844. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  17845. }
  17846. if invalidParams.Len() > 0 {
  17847. return invalidParams
  17848. }
  17849. return nil
  17850. }
  17851. // Contains the output of DescribeSpotFleetInstances.
  17852. type DescribeSpotFleetInstancesOutput struct {
  17853. _ struct{} `type:"structure"`
  17854. // The running instances. Note that this list is refreshed periodically and
  17855. // might be out of date.
  17856. ActiveInstances []*ActiveInstance `locationName:"activeInstanceSet" locationNameList:"item" type:"list" required:"true"`
  17857. // The token required to retrieve the next set of results. This value is null
  17858. // when there are no more results to return.
  17859. NextToken *string `locationName:"nextToken" type:"string"`
  17860. // The ID of the Spot fleet request.
  17861. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  17862. }
  17863. // String returns the string representation
  17864. func (s DescribeSpotFleetInstancesOutput) String() string {
  17865. return awsutil.Prettify(s)
  17866. }
  17867. // GoString returns the string representation
  17868. func (s DescribeSpotFleetInstancesOutput) GoString() string {
  17869. return s.String()
  17870. }
  17871. // Contains the parameters for DescribeSpotFleetRequestHistory.
  17872. type DescribeSpotFleetRequestHistoryInput struct {
  17873. _ struct{} `type:"structure"`
  17874. // Checks whether you have the required permissions for the action, without
  17875. // actually making the request, and provides an error response. If you have
  17876. // the required permissions, the error response is DryRunOperation. Otherwise,
  17877. // it is UnauthorizedOperation.
  17878. DryRun *bool `locationName:"dryRun" type:"boolean"`
  17879. // The type of events to describe. By default, all events are described.
  17880. EventType *string `locationName:"eventType" type:"string" enum:"EventType"`
  17881. // The maximum number of results to return in a single call. Specify a value
  17882. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  17883. // results, make another call with the returned NextToken value.
  17884. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  17885. // The token for the next set of results.
  17886. NextToken *string `locationName:"nextToken" type:"string"`
  17887. // The ID of the Spot fleet request.
  17888. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  17889. // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  17890. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  17891. }
  17892. // String returns the string representation
  17893. func (s DescribeSpotFleetRequestHistoryInput) String() string {
  17894. return awsutil.Prettify(s)
  17895. }
  17896. // GoString returns the string representation
  17897. func (s DescribeSpotFleetRequestHistoryInput) GoString() string {
  17898. return s.String()
  17899. }
  17900. // Validate inspects the fields of the type to determine if they are valid.
  17901. func (s *DescribeSpotFleetRequestHistoryInput) Validate() error {
  17902. invalidParams := request.ErrInvalidParams{Context: "DescribeSpotFleetRequestHistoryInput"}
  17903. if s.SpotFleetRequestId == nil {
  17904. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  17905. }
  17906. if s.StartTime == nil {
  17907. invalidParams.Add(request.NewErrParamRequired("StartTime"))
  17908. }
  17909. if invalidParams.Len() > 0 {
  17910. return invalidParams
  17911. }
  17912. return nil
  17913. }
  17914. // Contains the output of DescribeSpotFleetRequestHistory.
  17915. type DescribeSpotFleetRequestHistoryOutput struct {
  17916. _ struct{} `type:"structure"`
  17917. // Information about the events in the history of the Spot fleet request.
  17918. HistoryRecords []*HistoryRecord `locationName:"historyRecordSet" locationNameList:"item" type:"list" required:"true"`
  17919. // The last date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  17920. // All records up to this time were retrieved.
  17921. //
  17922. // If nextToken indicates that there are more results, this value is not present.
  17923. LastEvaluatedTime *time.Time `locationName:"lastEvaluatedTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  17924. // The token required to retrieve the next set of results. This value is null
  17925. // when there are no more results to return.
  17926. NextToken *string `locationName:"nextToken" type:"string"`
  17927. // The ID of the Spot fleet request.
  17928. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  17929. // The starting date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  17930. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  17931. }
  17932. // String returns the string representation
  17933. func (s DescribeSpotFleetRequestHistoryOutput) String() string {
  17934. return awsutil.Prettify(s)
  17935. }
  17936. // GoString returns the string representation
  17937. func (s DescribeSpotFleetRequestHistoryOutput) GoString() string {
  17938. return s.String()
  17939. }
  17940. // Contains the parameters for DescribeSpotFleetRequests.
  17941. type DescribeSpotFleetRequestsInput struct {
  17942. _ struct{} `type:"structure"`
  17943. // Checks whether you have the required permissions for the action, without
  17944. // actually making the request, and provides an error response. If you have
  17945. // the required permissions, the error response is DryRunOperation. Otherwise,
  17946. // it is UnauthorizedOperation.
  17947. DryRun *bool `locationName:"dryRun" type:"boolean"`
  17948. // The maximum number of results to return in a single call. Specify a value
  17949. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  17950. // results, make another call with the returned NextToken value.
  17951. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  17952. // The token for the next set of results.
  17953. NextToken *string `locationName:"nextToken" type:"string"`
  17954. // The IDs of the Spot fleet requests.
  17955. SpotFleetRequestIds []*string `locationName:"spotFleetRequestId" locationNameList:"item" type:"list"`
  17956. }
  17957. // String returns the string representation
  17958. func (s DescribeSpotFleetRequestsInput) String() string {
  17959. return awsutil.Prettify(s)
  17960. }
  17961. // GoString returns the string representation
  17962. func (s DescribeSpotFleetRequestsInput) GoString() string {
  17963. return s.String()
  17964. }
  17965. // Contains the output of DescribeSpotFleetRequests.
  17966. type DescribeSpotFleetRequestsOutput struct {
  17967. _ struct{} `type:"structure"`
  17968. // The token required to retrieve the next set of results. This value is null
  17969. // when there are no more results to return.
  17970. NextToken *string `locationName:"nextToken" type:"string"`
  17971. // Information about the configuration of your Spot fleet.
  17972. SpotFleetRequestConfigs []*SpotFleetRequestConfig `locationName:"spotFleetRequestConfigSet" locationNameList:"item" type:"list" required:"true"`
  17973. }
  17974. // String returns the string representation
  17975. func (s DescribeSpotFleetRequestsOutput) String() string {
  17976. return awsutil.Prettify(s)
  17977. }
  17978. // GoString returns the string representation
  17979. func (s DescribeSpotFleetRequestsOutput) GoString() string {
  17980. return s.String()
  17981. }
  17982. // Contains the parameters for DescribeSpotInstanceRequests.
  17983. type DescribeSpotInstanceRequestsInput struct {
  17984. _ struct{} `type:"structure"`
  17985. // Checks whether you have the required permissions for the action, without
  17986. // actually making the request, and provides an error response. If you have
  17987. // the required permissions, the error response is DryRunOperation. Otherwise,
  17988. // it is UnauthorizedOperation.
  17989. DryRun *bool `locationName:"dryRun" type:"boolean"`
  17990. // One or more filters.
  17991. //
  17992. // availability-zone-group - The Availability Zone group.
  17993. //
  17994. // create-time - The time stamp when the Spot instance request was created.
  17995. //
  17996. // fault-code - The fault code related to the request.
  17997. //
  17998. // fault-message - The fault message related to the request.
  17999. //
  18000. // instance-id - The ID of the instance that fulfilled the request.
  18001. //
  18002. // launch-group - The Spot instance launch group.
  18003. //
  18004. // launch.block-device-mapping.delete-on-termination - Indicates whether
  18005. // the Amazon EBS volume is deleted on instance termination.
  18006. //
  18007. // launch.block-device-mapping.device-name - The device name for the Amazon
  18008. // EBS volume (for example, /dev/sdh).
  18009. //
  18010. // launch.block-device-mapping.snapshot-id - The ID of the snapshot used
  18011. // for the Amazon EBS volume.
  18012. //
  18013. // launch.block-device-mapping.volume-size - The size of the Amazon EBS
  18014. // volume, in GiB.
  18015. //
  18016. // launch.block-device-mapping.volume-type - The type of the Amazon EBS
  18017. // volume: gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD, st1 for
  18018. // Throughput Optimized HDD, sc1for Cold HDD, or standard for Magnetic.
  18019. //
  18020. // launch.group-id - The security group for the instance.
  18021. //
  18022. // launch.image-id - The ID of the AMI.
  18023. //
  18024. // launch.instance-type - The type of instance (for example, m3.medium).
  18025. //
  18026. // launch.kernel-id - The kernel ID.
  18027. //
  18028. // launch.key-name - The name of the key pair the instance launched with.
  18029. //
  18030. // launch.monitoring-enabled - Whether monitoring is enabled for the Spot
  18031. // instance.
  18032. //
  18033. // launch.ramdisk-id - The RAM disk ID.
  18034. //
  18035. // network-interface.network-interface-id - The ID of the network interface.
  18036. //
  18037. // network-interface.device-index - The index of the device for the network
  18038. // interface attachment on the instance.
  18039. //
  18040. // network-interface.subnet-id - The ID of the subnet for the instance.
  18041. //
  18042. // network-interface.description - A description of the network interface.
  18043. //
  18044. // network-interface.private-ip-address - The primary private IP address
  18045. // of the network interface.
  18046. //
  18047. // network-interface.delete-on-termination - Indicates whether the network
  18048. // interface is deleted when the instance is terminated.
  18049. //
  18050. // network-interface.group-id - The ID of the security group associated
  18051. // with the network interface.
  18052. //
  18053. // network-interface.group-name - The name of the security group associated
  18054. // with the network interface.
  18055. //
  18056. // network-interface.addresses.primary - Indicates whether the IP address
  18057. // is the primary private IP address.
  18058. //
  18059. // product-description - The product description associated with the instance
  18060. // (Linux/UNIX | Windows).
  18061. //
  18062. // spot-instance-request-id - The Spot instance request ID.
  18063. //
  18064. // spot-price - The maximum hourly price for any Spot instance launched
  18065. // to fulfill the request.
  18066. //
  18067. // state - The state of the Spot instance request (open | active | closed
  18068. // | cancelled | failed). Spot bid status information can help you track your
  18069. // Amazon EC2 Spot instance requests. For more information, see Spot Bid Status
  18070. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
  18071. // in the Amazon Elastic Compute Cloud User Guide.
  18072. //
  18073. // status-code - The short code describing the most recent evaluation of
  18074. // your Spot instance request.
  18075. //
  18076. // status-message - The message explaining the status of the Spot instance
  18077. // request.
  18078. //
  18079. // tag:key=value - The key/value combination of a tag assigned to the resource.
  18080. //
  18081. // tag-key - The key of a tag assigned to the resource. This filter is independent
  18082. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  18083. // and the filter "tag-value=X", you get any resources assigned both the tag
  18084. // key Purpose (regardless of what the tag's value is), and the tag value X
  18085. // (regardless of what the tag's key is). If you want to list only resources
  18086. // where Purpose is X, see the tag:key=value filter.
  18087. //
  18088. // tag-value - The value of a tag assigned to the resource. This filter
  18089. // is independent of the tag-key filter.
  18090. //
  18091. // type - The type of Spot instance request (one-time | persistent).
  18092. //
  18093. // launched-availability-zone - The Availability Zone in which the bid is
  18094. // launched.
  18095. //
  18096. // valid-from - The start date of the request.
  18097. //
  18098. // valid-until - The end date of the request.
  18099. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  18100. // One or more Spot instance request IDs.
  18101. SpotInstanceRequestIds []*string `locationName:"SpotInstanceRequestId" locationNameList:"SpotInstanceRequestId" type:"list"`
  18102. }
  18103. // String returns the string representation
  18104. func (s DescribeSpotInstanceRequestsInput) String() string {
  18105. return awsutil.Prettify(s)
  18106. }
  18107. // GoString returns the string representation
  18108. func (s DescribeSpotInstanceRequestsInput) GoString() string {
  18109. return s.String()
  18110. }
  18111. // Contains the output of DescribeSpotInstanceRequests.
  18112. type DescribeSpotInstanceRequestsOutput struct {
  18113. _ struct{} `type:"structure"`
  18114. // One or more Spot instance requests.
  18115. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  18116. }
  18117. // String returns the string representation
  18118. func (s DescribeSpotInstanceRequestsOutput) String() string {
  18119. return awsutil.Prettify(s)
  18120. }
  18121. // GoString returns the string representation
  18122. func (s DescribeSpotInstanceRequestsOutput) GoString() string {
  18123. return s.String()
  18124. }
  18125. // Contains the parameters for DescribeSpotPriceHistory.
  18126. type DescribeSpotPriceHistoryInput struct {
  18127. _ struct{} `type:"structure"`
  18128. // Filters the results by the specified Availability Zone.
  18129. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  18130. // Checks whether you have the required permissions for the action, without
  18131. // actually making the request, and provides an error response. If you have
  18132. // the required permissions, the error response is DryRunOperation. Otherwise,
  18133. // it is UnauthorizedOperation.
  18134. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18135. // The date and time, up to the current date, from which to stop retrieving
  18136. // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  18137. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
  18138. // One or more filters.
  18139. //
  18140. // availability-zone - The Availability Zone for which prices should be
  18141. // returned.
  18142. //
  18143. // instance-type - The type of instance (for example, m3.medium).
  18144. //
  18145. // product-description - The product description for the Spot price (Linux/UNIX
  18146. // | SUSE Linux | Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon VPC)
  18147. // | Windows (Amazon VPC)).
  18148. //
  18149. // spot-price - The Spot price. The value must match exactly (or use wildcards;
  18150. // greater than or less than comparison is not supported).
  18151. //
  18152. // timestamp - The timestamp of the Spot price history, in UTC format (for
  18153. // example, YYYY-MM-DDTHH:MM:SSZ). You can use wildcards (* and ?). Greater
  18154. // than or less than comparison is not supported.
  18155. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  18156. // Filters the results by the specified instance types.
  18157. InstanceTypes []*string `locationName:"InstanceType" type:"list"`
  18158. // The maximum number of results to return in a single call. Specify a value
  18159. // between 1 and 1000. The default value is 1000. To retrieve the remaining
  18160. // results, make another call with the returned NextToken value.
  18161. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  18162. // The token for the next set of results.
  18163. NextToken *string `locationName:"nextToken" type:"string"`
  18164. // Filters the results by the specified basic product descriptions.
  18165. ProductDescriptions []*string `locationName:"ProductDescription" type:"list"`
  18166. // The date and time, up to the past 90 days, from which to start retrieving
  18167. // the price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  18168. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  18169. }
  18170. // String returns the string representation
  18171. func (s DescribeSpotPriceHistoryInput) String() string {
  18172. return awsutil.Prettify(s)
  18173. }
  18174. // GoString returns the string representation
  18175. func (s DescribeSpotPriceHistoryInput) GoString() string {
  18176. return s.String()
  18177. }
  18178. // Contains the output of DescribeSpotPriceHistory.
  18179. type DescribeSpotPriceHistoryOutput struct {
  18180. _ struct{} `type:"structure"`
  18181. // The token required to retrieve the next set of results. This value is null
  18182. // when there are no more results to return.
  18183. NextToken *string `locationName:"nextToken" type:"string"`
  18184. // The historical Spot prices.
  18185. SpotPriceHistory []*SpotPrice `locationName:"spotPriceHistorySet" locationNameList:"item" type:"list"`
  18186. }
  18187. // String returns the string representation
  18188. func (s DescribeSpotPriceHistoryOutput) String() string {
  18189. return awsutil.Prettify(s)
  18190. }
  18191. // GoString returns the string representation
  18192. func (s DescribeSpotPriceHistoryOutput) GoString() string {
  18193. return s.String()
  18194. }
  18195. type DescribeStaleSecurityGroupsInput struct {
  18196. _ struct{} `type:"structure"`
  18197. // Checks whether you have the required permissions for the operation, without
  18198. // actually making the request, and provides an error response. If you have
  18199. // the required permissions, the error response is DryRunOperation. Otherwise,
  18200. // it is UnauthorizedOperation.
  18201. DryRun *bool `type:"boolean"`
  18202. // The maximum number of items to return for this request. The request returns
  18203. // a token that you can specify in a subsequent call to get the next set of
  18204. // results.
  18205. MaxResults *int64 `min:"5" type:"integer"`
  18206. // The token for the next set of items to return. (You received this token from
  18207. // a prior call.)
  18208. NextToken *string `min:"1" type:"string"`
  18209. // The ID of the VPC.
  18210. VpcId *string `type:"string" required:"true"`
  18211. }
  18212. // String returns the string representation
  18213. func (s DescribeStaleSecurityGroupsInput) String() string {
  18214. return awsutil.Prettify(s)
  18215. }
  18216. // GoString returns the string representation
  18217. func (s DescribeStaleSecurityGroupsInput) GoString() string {
  18218. return s.String()
  18219. }
  18220. // Validate inspects the fields of the type to determine if they are valid.
  18221. func (s *DescribeStaleSecurityGroupsInput) Validate() error {
  18222. invalidParams := request.ErrInvalidParams{Context: "DescribeStaleSecurityGroupsInput"}
  18223. if s.MaxResults != nil && *s.MaxResults < 5 {
  18224. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  18225. }
  18226. if s.NextToken != nil && len(*s.NextToken) < 1 {
  18227. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  18228. }
  18229. if s.VpcId == nil {
  18230. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  18231. }
  18232. if invalidParams.Len() > 0 {
  18233. return invalidParams
  18234. }
  18235. return nil
  18236. }
  18237. type DescribeStaleSecurityGroupsOutput struct {
  18238. _ struct{} `type:"structure"`
  18239. // The token to use when requesting the next set of items. If there are no additional
  18240. // items to return, the string is empty.
  18241. NextToken *string `locationName:"nextToken" type:"string"`
  18242. // Information about the stale security groups.
  18243. StaleSecurityGroupSet []*StaleSecurityGroup `locationName:"staleSecurityGroupSet" locationNameList:"item" type:"list"`
  18244. }
  18245. // String returns the string representation
  18246. func (s DescribeStaleSecurityGroupsOutput) String() string {
  18247. return awsutil.Prettify(s)
  18248. }
  18249. // GoString returns the string representation
  18250. func (s DescribeStaleSecurityGroupsOutput) GoString() string {
  18251. return s.String()
  18252. }
  18253. // Contains the parameters for DescribeSubnets.
  18254. type DescribeSubnetsInput struct {
  18255. _ struct{} `type:"structure"`
  18256. // Checks whether you have the required permissions for the action, without
  18257. // actually making the request, and provides an error response. If you have
  18258. // the required permissions, the error response is DryRunOperation. Otherwise,
  18259. // it is UnauthorizedOperation.
  18260. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18261. // One or more filters.
  18262. //
  18263. // availabilityZone - The Availability Zone for the subnet. You can also
  18264. // use availability-zone as the filter name.
  18265. //
  18266. // available-ip-address-count - The number of IP addresses in the subnet
  18267. // that are available.
  18268. //
  18269. // cidrBlock - The CIDR block of the subnet. The CIDR block you specify
  18270. // must exactly match the subnet's CIDR block for information to be returned
  18271. // for the subnet. You can also use cidr or cidr-block as the filter names.
  18272. //
  18273. // defaultForAz - Indicates whether this is the default subnet for the Availability
  18274. // Zone. You can also use default-for-az as the filter name.
  18275. //
  18276. // state - The state of the subnet (pending | available).
  18277. //
  18278. // subnet-id - The ID of the subnet.
  18279. //
  18280. // tag:key=value - The key/value combination of a tag assigned to the resource.
  18281. //
  18282. // tag-key - The key of a tag assigned to the resource. This filter is independent
  18283. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  18284. // and the filter "tag-value=X", you get any resources assigned both the tag
  18285. // key Purpose (regardless of what the tag's value is), and the tag value X
  18286. // (regardless of what the tag's key is). If you want to list only resources
  18287. // where Purpose is X, see the tag:key=value filter.
  18288. //
  18289. // tag-value - The value of a tag assigned to the resource. This filter
  18290. // is independent of the tag-key filter.
  18291. //
  18292. // vpc-id - The ID of the VPC for the subnet.
  18293. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  18294. // One or more subnet IDs.
  18295. //
  18296. // Default: Describes all your subnets.
  18297. SubnetIds []*string `locationName:"SubnetId" locationNameList:"SubnetId" type:"list"`
  18298. }
  18299. // String returns the string representation
  18300. func (s DescribeSubnetsInput) String() string {
  18301. return awsutil.Prettify(s)
  18302. }
  18303. // GoString returns the string representation
  18304. func (s DescribeSubnetsInput) GoString() string {
  18305. return s.String()
  18306. }
  18307. // Contains the output of DescribeSubnets.
  18308. type DescribeSubnetsOutput struct {
  18309. _ struct{} `type:"structure"`
  18310. // Information about one or more subnets.
  18311. Subnets []*Subnet `locationName:"subnetSet" locationNameList:"item" type:"list"`
  18312. }
  18313. // String returns the string representation
  18314. func (s DescribeSubnetsOutput) String() string {
  18315. return awsutil.Prettify(s)
  18316. }
  18317. // GoString returns the string representation
  18318. func (s DescribeSubnetsOutput) GoString() string {
  18319. return s.String()
  18320. }
  18321. // Contains the parameters for DescribeTags.
  18322. type DescribeTagsInput struct {
  18323. _ struct{} `type:"structure"`
  18324. // Checks whether you have the required permissions for the action, without
  18325. // actually making the request, and provides an error response. If you have
  18326. // the required permissions, the error response is DryRunOperation. Otherwise,
  18327. // it is UnauthorizedOperation.
  18328. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18329. // One or more filters.
  18330. //
  18331. // key - The tag key.
  18332. //
  18333. // resource-id - The resource ID.
  18334. //
  18335. // resource-type - The resource type (customer-gateway | dhcp-options |
  18336. // image | instance | internet-gateway | network-acl | network-interface | reserved-instances
  18337. // | route-table | security-group | snapshot | spot-instances-request | subnet
  18338. // | volume | vpc | vpn-connection | vpn-gateway).
  18339. //
  18340. // value - The tag value.
  18341. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  18342. // The maximum number of results to return in a single call. This value can
  18343. // be between 5 and 1000. To retrieve the remaining results, make another call
  18344. // with the returned NextToken value.
  18345. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  18346. // The token to retrieve the next page of results.
  18347. NextToken *string `locationName:"nextToken" type:"string"`
  18348. }
  18349. // String returns the string representation
  18350. func (s DescribeTagsInput) String() string {
  18351. return awsutil.Prettify(s)
  18352. }
  18353. // GoString returns the string representation
  18354. func (s DescribeTagsInput) GoString() string {
  18355. return s.String()
  18356. }
  18357. // Contains the output of DescribeTags.
  18358. type DescribeTagsOutput struct {
  18359. _ struct{} `type:"structure"`
  18360. // The token to use to retrieve the next page of results. This value is null
  18361. // when there are no more results to return..
  18362. NextToken *string `locationName:"nextToken" type:"string"`
  18363. // A list of tags.
  18364. Tags []*TagDescription `locationName:"tagSet" locationNameList:"item" type:"list"`
  18365. }
  18366. // String returns the string representation
  18367. func (s DescribeTagsOutput) String() string {
  18368. return awsutil.Prettify(s)
  18369. }
  18370. // GoString returns the string representation
  18371. func (s DescribeTagsOutput) GoString() string {
  18372. return s.String()
  18373. }
  18374. // Contains the parameters for DescribeVolumeAttribute.
  18375. type DescribeVolumeAttributeInput struct {
  18376. _ struct{} `type:"structure"`
  18377. // The instance attribute.
  18378. Attribute *string `type:"string" enum:"VolumeAttributeName"`
  18379. // Checks whether you have the required permissions for the action, without
  18380. // actually making the request, and provides an error response. If you have
  18381. // the required permissions, the error response is DryRunOperation. Otherwise,
  18382. // it is UnauthorizedOperation.
  18383. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18384. // The ID of the volume.
  18385. VolumeId *string `type:"string" required:"true"`
  18386. }
  18387. // String returns the string representation
  18388. func (s DescribeVolumeAttributeInput) String() string {
  18389. return awsutil.Prettify(s)
  18390. }
  18391. // GoString returns the string representation
  18392. func (s DescribeVolumeAttributeInput) GoString() string {
  18393. return s.String()
  18394. }
  18395. // Validate inspects the fields of the type to determine if they are valid.
  18396. func (s *DescribeVolumeAttributeInput) Validate() error {
  18397. invalidParams := request.ErrInvalidParams{Context: "DescribeVolumeAttributeInput"}
  18398. if s.VolumeId == nil {
  18399. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  18400. }
  18401. if invalidParams.Len() > 0 {
  18402. return invalidParams
  18403. }
  18404. return nil
  18405. }
  18406. // Contains the output of DescribeVolumeAttribute.
  18407. type DescribeVolumeAttributeOutput struct {
  18408. _ struct{} `type:"structure"`
  18409. // The state of autoEnableIO attribute.
  18410. AutoEnableIO *AttributeBooleanValue `locationName:"autoEnableIO" type:"structure"`
  18411. // A list of product codes.
  18412. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  18413. // The ID of the volume.
  18414. VolumeId *string `locationName:"volumeId" type:"string"`
  18415. }
  18416. // String returns the string representation
  18417. func (s DescribeVolumeAttributeOutput) String() string {
  18418. return awsutil.Prettify(s)
  18419. }
  18420. // GoString returns the string representation
  18421. func (s DescribeVolumeAttributeOutput) GoString() string {
  18422. return s.String()
  18423. }
  18424. // Contains the parameters for DescribeVolumeStatus.
  18425. type DescribeVolumeStatusInput struct {
  18426. _ struct{} `type:"structure"`
  18427. // Checks whether you have the required permissions for the action, without
  18428. // actually making the request, and provides an error response. If you have
  18429. // the required permissions, the error response is DryRunOperation. Otherwise,
  18430. // it is UnauthorizedOperation.
  18431. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18432. // One or more filters.
  18433. //
  18434. // action.code - The action code for the event (for example, enable-volume-io).
  18435. //
  18436. // action.description - A description of the action.
  18437. //
  18438. // action.event-id - The event ID associated with the action.
  18439. //
  18440. // availability-zone - The Availability Zone of the instance.
  18441. //
  18442. // event.description - A description of the event.
  18443. //
  18444. // event.event-id - The event ID.
  18445. //
  18446. // event.event-type - The event type (for io-enabled: passed | failed; for
  18447. // io-performance: io-performance:degraded | io-performance:severely-degraded
  18448. // | io-performance:stalled).
  18449. //
  18450. // event.not-after - The latest end time for the event.
  18451. //
  18452. // event.not-before - The earliest start time for the event.
  18453. //
  18454. // volume-status.details-name - The cause for volume-status.status (io-enabled
  18455. // | io-performance).
  18456. //
  18457. // volume-status.details-status - The status of volume-status.details-name
  18458. // (for io-enabled: passed | failed; for io-performance: normal | degraded |
  18459. // severely-degraded | stalled).
  18460. //
  18461. // volume-status.status - The status of the volume (ok | impaired | warning
  18462. // | insufficient-data).
  18463. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  18464. // The maximum number of volume results returned by DescribeVolumeStatus in
  18465. // paginated output. When this parameter is used, the request only returns MaxResults
  18466. // results in a single page along with a NextToken response element. The remaining
  18467. // results of the initial request can be seen by sending another request with
  18468. // the returned NextToken value. This value can be between 5 and 1000; if MaxResults
  18469. // is given a value larger than 1000, only 1000 results are returned. If this
  18470. // parameter is not used, then DescribeVolumeStatus returns all results. You
  18471. // cannot specify this parameter and the volume IDs parameter in the same request.
  18472. MaxResults *int64 `type:"integer"`
  18473. // The NextToken value to include in a future DescribeVolumeStatus request.
  18474. // When the results of the request exceed MaxResults, this value can be used
  18475. // to retrieve the next page of results. This value is null when there are no
  18476. // more results to return.
  18477. NextToken *string `type:"string"`
  18478. // One or more volume IDs.
  18479. //
  18480. // Default: Describes all your volumes.
  18481. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  18482. }
  18483. // String returns the string representation
  18484. func (s DescribeVolumeStatusInput) String() string {
  18485. return awsutil.Prettify(s)
  18486. }
  18487. // GoString returns the string representation
  18488. func (s DescribeVolumeStatusInput) GoString() string {
  18489. return s.String()
  18490. }
  18491. // Contains the output of DescribeVolumeStatus.
  18492. type DescribeVolumeStatusOutput struct {
  18493. _ struct{} `type:"structure"`
  18494. // The token to use to retrieve the next page of results. This value is null
  18495. // when there are no more results to return.
  18496. NextToken *string `locationName:"nextToken" type:"string"`
  18497. // A list of volumes.
  18498. VolumeStatuses []*VolumeStatusItem `locationName:"volumeStatusSet" locationNameList:"item" type:"list"`
  18499. }
  18500. // String returns the string representation
  18501. func (s DescribeVolumeStatusOutput) String() string {
  18502. return awsutil.Prettify(s)
  18503. }
  18504. // GoString returns the string representation
  18505. func (s DescribeVolumeStatusOutput) GoString() string {
  18506. return s.String()
  18507. }
  18508. // Contains the parameters for DescribeVolumes.
  18509. type DescribeVolumesInput struct {
  18510. _ struct{} `type:"structure"`
  18511. // Checks whether you have the required permissions for the action, without
  18512. // actually making the request, and provides an error response. If you have
  18513. // the required permissions, the error response is DryRunOperation. Otherwise,
  18514. // it is UnauthorizedOperation.
  18515. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18516. // One or more filters.
  18517. //
  18518. // attachment.attach-time - The time stamp when the attachment initiated.
  18519. //
  18520. // attachment.delete-on-termination - Whether the volume is deleted on instance
  18521. // termination.
  18522. //
  18523. // attachment.device - The device name that is exposed to the instance (for
  18524. // example, /dev/sda1).
  18525. //
  18526. // attachment.instance-id - The ID of the instance the volume is attached
  18527. // to.
  18528. //
  18529. // attachment.status - The attachment state (attaching | attached | detaching
  18530. // | detached).
  18531. //
  18532. // availability-zone - The Availability Zone in which the volume was created.
  18533. //
  18534. // create-time - The time stamp when the volume was created.
  18535. //
  18536. // encrypted - The encryption status of the volume.
  18537. //
  18538. // size - The size of the volume, in GiB.
  18539. //
  18540. // snapshot-id - The snapshot from which the volume was created.
  18541. //
  18542. // status - The status of the volume (creating | available | in-use | deleting
  18543. // | deleted | error).
  18544. //
  18545. // tag:key=value - The key/value combination of a tag assigned to the resource.
  18546. //
  18547. // tag-key - The key of a tag assigned to the resource. This filter is independent
  18548. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  18549. // and the filter "tag-value=X", you get any resources assigned both the tag
  18550. // key Purpose (regardless of what the tag's value is), and the tag value X
  18551. // (regardless of what the tag's key is). If you want to list only resources
  18552. // where Purpose is X, see the tag:key=value filter.
  18553. //
  18554. // tag-value - The value of a tag assigned to the resource. This filter
  18555. // is independent of the tag-key filter.
  18556. //
  18557. // volume-id - The volume ID.
  18558. //
  18559. // volume-type - The Amazon EBS volume type. This can be gp2 for General
  18560. // Purpose SSD, io1 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD,
  18561. // sc1 for Cold HDD, or standard for Magnetic volumes.
  18562. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  18563. // The maximum number of volume results returned by DescribeVolumes in paginated
  18564. // output. When this parameter is used, DescribeVolumes only returns MaxResults
  18565. // results in a single page along with a NextToken response element. The remaining
  18566. // results of the initial request can be seen by sending another DescribeVolumes
  18567. // request with the returned NextToken value. This value can be between 5 and
  18568. // 1000; if MaxResults is given a value larger than 1000, only 1000 results
  18569. // are returned. If this parameter is not used, then DescribeVolumes returns
  18570. // all results. You cannot specify this parameter and the volume IDs parameter
  18571. // in the same request.
  18572. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  18573. // The NextToken value returned from a previous paginated DescribeVolumes request
  18574. // where MaxResults was used and the results exceeded the value of that parameter.
  18575. // Pagination continues from the end of the previous results that returned the
  18576. // NextToken value. This value is null when there are no more results to return.
  18577. NextToken *string `locationName:"nextToken" type:"string"`
  18578. // One or more volume IDs.
  18579. VolumeIds []*string `locationName:"VolumeId" locationNameList:"VolumeId" type:"list"`
  18580. }
  18581. // String returns the string representation
  18582. func (s DescribeVolumesInput) String() string {
  18583. return awsutil.Prettify(s)
  18584. }
  18585. // GoString returns the string representation
  18586. func (s DescribeVolumesInput) GoString() string {
  18587. return s.String()
  18588. }
  18589. // Contains the output of DescribeVolumes.
  18590. type DescribeVolumesOutput struct {
  18591. _ struct{} `type:"structure"`
  18592. // The NextToken value to include in a future DescribeVolumes request. When
  18593. // the results of a DescribeVolumes request exceed MaxResults, this value can
  18594. // be used to retrieve the next page of results. This value is null when there
  18595. // are no more results to return.
  18596. NextToken *string `locationName:"nextToken" type:"string"`
  18597. // Information about the volumes.
  18598. Volumes []*Volume `locationName:"volumeSet" locationNameList:"item" type:"list"`
  18599. }
  18600. // String returns the string representation
  18601. func (s DescribeVolumesOutput) String() string {
  18602. return awsutil.Prettify(s)
  18603. }
  18604. // GoString returns the string representation
  18605. func (s DescribeVolumesOutput) GoString() string {
  18606. return s.String()
  18607. }
  18608. // Contains the parameters for DescribeVpcAttribute.
  18609. type DescribeVpcAttributeInput struct {
  18610. _ struct{} `type:"structure"`
  18611. // The VPC attribute.
  18612. Attribute *string `type:"string" required:"true" enum:"VpcAttributeName"`
  18613. // Checks whether you have the required permissions for the action, without
  18614. // actually making the request, and provides an error response. If you have
  18615. // the required permissions, the error response is DryRunOperation. Otherwise,
  18616. // it is UnauthorizedOperation.
  18617. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18618. // The ID of the VPC.
  18619. VpcId *string `type:"string" required:"true"`
  18620. }
  18621. // String returns the string representation
  18622. func (s DescribeVpcAttributeInput) String() string {
  18623. return awsutil.Prettify(s)
  18624. }
  18625. // GoString returns the string representation
  18626. func (s DescribeVpcAttributeInput) GoString() string {
  18627. return s.String()
  18628. }
  18629. // Validate inspects the fields of the type to determine if they are valid.
  18630. func (s *DescribeVpcAttributeInput) Validate() error {
  18631. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcAttributeInput"}
  18632. if s.Attribute == nil {
  18633. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  18634. }
  18635. if s.VpcId == nil {
  18636. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  18637. }
  18638. if invalidParams.Len() > 0 {
  18639. return invalidParams
  18640. }
  18641. return nil
  18642. }
  18643. // Contains the output of DescribeVpcAttribute.
  18644. type DescribeVpcAttributeOutput struct {
  18645. _ struct{} `type:"structure"`
  18646. // Indicates whether the instances launched in the VPC get DNS hostnames. If
  18647. // this attribute is true, instances in the VPC get DNS hostnames; otherwise,
  18648. // they do not.
  18649. EnableDnsHostnames *AttributeBooleanValue `locationName:"enableDnsHostnames" type:"structure"`
  18650. // Indicates whether DNS resolution is enabled for the VPC. If this attribute
  18651. // is true, the Amazon DNS server resolves DNS hostnames for your instances
  18652. // to their corresponding IP addresses; otherwise, it does not.
  18653. EnableDnsSupport *AttributeBooleanValue `locationName:"enableDnsSupport" type:"structure"`
  18654. // The ID of the VPC.
  18655. VpcId *string `locationName:"vpcId" type:"string"`
  18656. }
  18657. // String returns the string representation
  18658. func (s DescribeVpcAttributeOutput) String() string {
  18659. return awsutil.Prettify(s)
  18660. }
  18661. // GoString returns the string representation
  18662. func (s DescribeVpcAttributeOutput) GoString() string {
  18663. return s.String()
  18664. }
  18665. // Contains the parameters for DescribeVpcClassicLinkDnsSupport.
  18666. type DescribeVpcClassicLinkDnsSupportInput struct {
  18667. _ struct{} `type:"structure"`
  18668. // The maximum number of items to return for this request. The request returns
  18669. // a token that you can specify in a subsequent call to get the next set of
  18670. // results.
  18671. MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`
  18672. // The token for the next set of items to return. (You received this token from
  18673. // a prior call.)
  18674. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  18675. // One or more VPC IDs.
  18676. VpcIds []*string `locationNameList:"VpcId" type:"list"`
  18677. }
  18678. // String returns the string representation
  18679. func (s DescribeVpcClassicLinkDnsSupportInput) String() string {
  18680. return awsutil.Prettify(s)
  18681. }
  18682. // GoString returns the string representation
  18683. func (s DescribeVpcClassicLinkDnsSupportInput) GoString() string {
  18684. return s.String()
  18685. }
  18686. // Validate inspects the fields of the type to determine if they are valid.
  18687. func (s *DescribeVpcClassicLinkDnsSupportInput) Validate() error {
  18688. invalidParams := request.ErrInvalidParams{Context: "DescribeVpcClassicLinkDnsSupportInput"}
  18689. if s.MaxResults != nil && *s.MaxResults < 5 {
  18690. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
  18691. }
  18692. if s.NextToken != nil && len(*s.NextToken) < 1 {
  18693. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  18694. }
  18695. if invalidParams.Len() > 0 {
  18696. return invalidParams
  18697. }
  18698. return nil
  18699. }
  18700. // Contains the output of DescribeVpcClassicLinkDnsSupport.
  18701. type DescribeVpcClassicLinkDnsSupportOutput struct {
  18702. _ struct{} `type:"structure"`
  18703. // The token to use when requesting the next set of items.
  18704. NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  18705. // Information about the ClassicLink DNS support status of the VPCs.
  18706. Vpcs []*ClassicLinkDnsSupport `locationName:"vpcs" locationNameList:"item" type:"list"`
  18707. }
  18708. // String returns the string representation
  18709. func (s DescribeVpcClassicLinkDnsSupportOutput) String() string {
  18710. return awsutil.Prettify(s)
  18711. }
  18712. // GoString returns the string representation
  18713. func (s DescribeVpcClassicLinkDnsSupportOutput) GoString() string {
  18714. return s.String()
  18715. }
  18716. // Contains the parameters for DescribeVpcClassicLink.
  18717. type DescribeVpcClassicLinkInput struct {
  18718. _ struct{} `type:"structure"`
  18719. // Checks whether you have the required permissions for the action, without
  18720. // actually making the request, and provides an error response. If you have
  18721. // the required permissions, the error response is DryRunOperation. Otherwise,
  18722. // it is UnauthorizedOperation.
  18723. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18724. // One or more filters.
  18725. //
  18726. // is-classic-link-enabled - Whether the VPC is enabled for ClassicLink
  18727. // (true | false).
  18728. //
  18729. // tag:key=value - The key/value combination of a tag assigned to the resource.
  18730. //
  18731. // tag-key - The key of a tag assigned to the resource. This filter is independent
  18732. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  18733. // and the filter "tag-value=X", you get any resources assigned both the tag
  18734. // key Purpose (regardless of what the tag's value is), and the tag value X
  18735. // (regardless of what the tag's key is). If you want to list only resources
  18736. // where Purpose is X, see the tag:key=value filter.
  18737. //
  18738. // tag-value - The value of a tag assigned to the resource. This filter
  18739. // is independent of the tag-key filter.
  18740. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  18741. // One or more VPCs for which you want to describe the ClassicLink status.
  18742. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
  18743. }
  18744. // String returns the string representation
  18745. func (s DescribeVpcClassicLinkInput) String() string {
  18746. return awsutil.Prettify(s)
  18747. }
  18748. // GoString returns the string representation
  18749. func (s DescribeVpcClassicLinkInput) GoString() string {
  18750. return s.String()
  18751. }
  18752. // Contains the output of DescribeVpcClassicLink.
  18753. type DescribeVpcClassicLinkOutput struct {
  18754. _ struct{} `type:"structure"`
  18755. // The ClassicLink status of one or more VPCs.
  18756. Vpcs []*VpcClassicLink `locationName:"vpcSet" locationNameList:"item" type:"list"`
  18757. }
  18758. // String returns the string representation
  18759. func (s DescribeVpcClassicLinkOutput) String() string {
  18760. return awsutil.Prettify(s)
  18761. }
  18762. // GoString returns the string representation
  18763. func (s DescribeVpcClassicLinkOutput) GoString() string {
  18764. return s.String()
  18765. }
  18766. // Contains the parameters for DescribeVpcEndpointServices.
  18767. type DescribeVpcEndpointServicesInput struct {
  18768. _ struct{} `type:"structure"`
  18769. // Checks whether you have the required permissions for the action, without
  18770. // actually making the request, and provides an error response. If you have
  18771. // the required permissions, the error response is DryRunOperation. Otherwise,
  18772. // it is UnauthorizedOperation.
  18773. DryRun *bool `type:"boolean"`
  18774. // The maximum number of items to return for this request. The request returns
  18775. // a token that you can specify in a subsequent call to get the next set of
  18776. // results.
  18777. //
  18778. // Constraint: If the value is greater than 1000, we return only 1000 items.
  18779. MaxResults *int64 `type:"integer"`
  18780. // The token for the next set of items to return. (You received this token from
  18781. // a prior call.)
  18782. NextToken *string `type:"string"`
  18783. }
  18784. // String returns the string representation
  18785. func (s DescribeVpcEndpointServicesInput) String() string {
  18786. return awsutil.Prettify(s)
  18787. }
  18788. // GoString returns the string representation
  18789. func (s DescribeVpcEndpointServicesInput) GoString() string {
  18790. return s.String()
  18791. }
  18792. // Contains the output of DescribeVpcEndpointServices.
  18793. type DescribeVpcEndpointServicesOutput struct {
  18794. _ struct{} `type:"structure"`
  18795. // The token to use when requesting the next set of items. If there are no additional
  18796. // items to return, the string is empty.
  18797. NextToken *string `locationName:"nextToken" type:"string"`
  18798. // A list of supported AWS services.
  18799. ServiceNames []*string `locationName:"serviceNameSet" locationNameList:"item" type:"list"`
  18800. }
  18801. // String returns the string representation
  18802. func (s DescribeVpcEndpointServicesOutput) String() string {
  18803. return awsutil.Prettify(s)
  18804. }
  18805. // GoString returns the string representation
  18806. func (s DescribeVpcEndpointServicesOutput) GoString() string {
  18807. return s.String()
  18808. }
  18809. // Contains the parameters for DescribeVpcEndpoints.
  18810. type DescribeVpcEndpointsInput struct {
  18811. _ struct{} `type:"structure"`
  18812. // Checks whether you have the required permissions for the action, without
  18813. // actually making the request, and provides an error response. If you have
  18814. // the required permissions, the error response is DryRunOperation. Otherwise,
  18815. // it is UnauthorizedOperation.
  18816. DryRun *bool `type:"boolean"`
  18817. // One or more filters.
  18818. //
  18819. // service-name: The name of the AWS service.
  18820. //
  18821. // vpc-id: The ID of the VPC in which the endpoint resides.
  18822. //
  18823. // vpc-endpoint-id: The ID of the endpoint.
  18824. //
  18825. // vpc-endpoint-state: The state of the endpoint. (pending | available |
  18826. // deleting | deleted)
  18827. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  18828. // The maximum number of items to return for this request. The request returns
  18829. // a token that you can specify in a subsequent call to get the next set of
  18830. // results.
  18831. //
  18832. // Constraint: If the value is greater than 1000, we return only 1000 items.
  18833. MaxResults *int64 `type:"integer"`
  18834. // The token for the next set of items to return. (You received this token from
  18835. // a prior call.)
  18836. NextToken *string `type:"string"`
  18837. // One or more endpoint IDs.
  18838. VpcEndpointIds []*string `locationName:"VpcEndpointId" locationNameList:"item" type:"list"`
  18839. }
  18840. // String returns the string representation
  18841. func (s DescribeVpcEndpointsInput) String() string {
  18842. return awsutil.Prettify(s)
  18843. }
  18844. // GoString returns the string representation
  18845. func (s DescribeVpcEndpointsInput) GoString() string {
  18846. return s.String()
  18847. }
  18848. // Contains the output of DescribeVpcEndpoints.
  18849. type DescribeVpcEndpointsOutput struct {
  18850. _ struct{} `type:"structure"`
  18851. // The token to use when requesting the next set of items. If there are no additional
  18852. // items to return, the string is empty.
  18853. NextToken *string `locationName:"nextToken" type:"string"`
  18854. // Information about the endpoints.
  18855. VpcEndpoints []*VpcEndpoint `locationName:"vpcEndpointSet" locationNameList:"item" type:"list"`
  18856. }
  18857. // String returns the string representation
  18858. func (s DescribeVpcEndpointsOutput) String() string {
  18859. return awsutil.Prettify(s)
  18860. }
  18861. // GoString returns the string representation
  18862. func (s DescribeVpcEndpointsOutput) GoString() string {
  18863. return s.String()
  18864. }
  18865. // Contains the parameters for DescribeVpcPeeringConnections.
  18866. type DescribeVpcPeeringConnectionsInput struct {
  18867. _ struct{} `type:"structure"`
  18868. // Checks whether you have the required permissions for the action, without
  18869. // actually making the request, and provides an error response. If you have
  18870. // the required permissions, the error response is DryRunOperation. Otherwise,
  18871. // it is UnauthorizedOperation.
  18872. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18873. // One or more filters.
  18874. //
  18875. // accepter-vpc-info.cidr-block - The CIDR block of the peer VPC.
  18876. //
  18877. // accepter-vpc-info.owner-id - The AWS account ID of the owner of the peer
  18878. // VPC.
  18879. //
  18880. // accepter-vpc-info.vpc-id - The ID of the peer VPC.
  18881. //
  18882. // expiration-time - The expiration date and time for the VPC peering connection.
  18883. //
  18884. // requester-vpc-info.cidr-block - The CIDR block of the requester's VPC.
  18885. //
  18886. // requester-vpc-info.owner-id - The AWS account ID of the owner of the
  18887. // requester VPC.
  18888. //
  18889. // requester-vpc-info.vpc-id - The ID of the requester VPC.
  18890. //
  18891. // status-code - The status of the VPC peering connection (pending-acceptance
  18892. // | failed | expired | provisioning | active | deleted | rejected).
  18893. //
  18894. // status-message - A message that provides more information about the status
  18895. // of the VPC peering connection, if applicable.
  18896. //
  18897. // tag:key=value - The key/value combination of a tag assigned to the resource.
  18898. //
  18899. // tag-key - The key of a tag assigned to the resource. This filter is independent
  18900. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  18901. // and the filter "tag-value=X", you get any resources assigned both the tag
  18902. // key Purpose (regardless of what the tag's value is), and the tag value X
  18903. // (regardless of what the tag's key is). If you want to list only resources
  18904. // where Purpose is X, see the tag:key=value filter.
  18905. //
  18906. // tag-value - The value of a tag assigned to the resource. This filter
  18907. // is independent of the tag-key filter.
  18908. //
  18909. // vpc-peering-connection-id - The ID of the VPC peering connection.
  18910. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  18911. // One or more VPC peering connection IDs.
  18912. //
  18913. // Default: Describes all your VPC peering connections.
  18914. VpcPeeringConnectionIds []*string `locationName:"VpcPeeringConnectionId" locationNameList:"item" type:"list"`
  18915. }
  18916. // String returns the string representation
  18917. func (s DescribeVpcPeeringConnectionsInput) String() string {
  18918. return awsutil.Prettify(s)
  18919. }
  18920. // GoString returns the string representation
  18921. func (s DescribeVpcPeeringConnectionsInput) GoString() string {
  18922. return s.String()
  18923. }
  18924. // Contains the output of DescribeVpcPeeringConnections.
  18925. type DescribeVpcPeeringConnectionsOutput struct {
  18926. _ struct{} `type:"structure"`
  18927. // Information about the VPC peering connections.
  18928. VpcPeeringConnections []*VpcPeeringConnection `locationName:"vpcPeeringConnectionSet" locationNameList:"item" type:"list"`
  18929. }
  18930. // String returns the string representation
  18931. func (s DescribeVpcPeeringConnectionsOutput) String() string {
  18932. return awsutil.Prettify(s)
  18933. }
  18934. // GoString returns the string representation
  18935. func (s DescribeVpcPeeringConnectionsOutput) GoString() string {
  18936. return s.String()
  18937. }
  18938. // Contains the parameters for DescribeVpcs.
  18939. type DescribeVpcsInput struct {
  18940. _ struct{} `type:"structure"`
  18941. // Checks whether you have the required permissions for the action, without
  18942. // actually making the request, and provides an error response. If you have
  18943. // the required permissions, the error response is DryRunOperation. Otherwise,
  18944. // it is UnauthorizedOperation.
  18945. DryRun *bool `locationName:"dryRun" type:"boolean"`
  18946. // One or more filters.
  18947. //
  18948. // cidr - The CIDR block of the VPC. The CIDR block you specify must exactly
  18949. // match the VPC's CIDR block for information to be returned for the VPC. Must
  18950. // contain the slash followed by one or two digits (for example, /28).
  18951. //
  18952. // dhcp-options-id - The ID of a set of DHCP options.
  18953. //
  18954. // isDefault - Indicates whether the VPC is the default VPC.
  18955. //
  18956. // state - The state of the VPC (pending | available).
  18957. //
  18958. // tag:key=value - The key/value combination of a tag assigned to the resource.
  18959. //
  18960. // tag-key - The key of a tag assigned to the resource. This filter is independent
  18961. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  18962. // and the filter "tag-value=X", you get any resources assigned both the tag
  18963. // key Purpose (regardless of what the tag's value is), and the tag value X
  18964. // (regardless of what the tag's key is). If you want to list only resources
  18965. // where Purpose is X, see the tag:key=value filter.
  18966. //
  18967. // tag-value - The value of a tag assigned to the resource. This filter
  18968. // is independent of the tag-key filter.
  18969. //
  18970. // vpc-id - The ID of the VPC.
  18971. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  18972. // One or more VPC IDs.
  18973. //
  18974. // Default: Describes all your VPCs.
  18975. VpcIds []*string `locationName:"VpcId" locationNameList:"VpcId" type:"list"`
  18976. }
  18977. // String returns the string representation
  18978. func (s DescribeVpcsInput) String() string {
  18979. return awsutil.Prettify(s)
  18980. }
  18981. // GoString returns the string representation
  18982. func (s DescribeVpcsInput) GoString() string {
  18983. return s.String()
  18984. }
  18985. // Contains the output of DescribeVpcs.
  18986. type DescribeVpcsOutput struct {
  18987. _ struct{} `type:"structure"`
  18988. // Information about one or more VPCs.
  18989. Vpcs []*Vpc `locationName:"vpcSet" locationNameList:"item" type:"list"`
  18990. }
  18991. // String returns the string representation
  18992. func (s DescribeVpcsOutput) String() string {
  18993. return awsutil.Prettify(s)
  18994. }
  18995. // GoString returns the string representation
  18996. func (s DescribeVpcsOutput) GoString() string {
  18997. return s.String()
  18998. }
  18999. // Contains the parameters for DescribeVpnConnections.
  19000. type DescribeVpnConnectionsInput struct {
  19001. _ struct{} `type:"structure"`
  19002. // Checks whether you have the required permissions for the action, without
  19003. // actually making the request, and provides an error response. If you have
  19004. // the required permissions, the error response is DryRunOperation. Otherwise,
  19005. // it is UnauthorizedOperation.
  19006. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19007. // One or more filters.
  19008. //
  19009. // customer-gateway-configuration - The configuration information for the
  19010. // customer gateway.
  19011. //
  19012. // customer-gateway-id - The ID of a customer gateway associated with the
  19013. // VPN connection.
  19014. //
  19015. // state - The state of the VPN connection (pending | available | deleting
  19016. // | deleted).
  19017. //
  19018. // option.static-routes-only - Indicates whether the connection has static
  19019. // routes only. Used for devices that do not support Border Gateway Protocol
  19020. // (BGP).
  19021. //
  19022. // route.destination-cidr-block - The destination CIDR block. This corresponds
  19023. // to the subnet used in a customer data center.
  19024. //
  19025. // bgp-asn - The BGP Autonomous System Number (ASN) associated with a BGP
  19026. // device.
  19027. //
  19028. // tag:key=value - The key/value combination of a tag assigned to the resource.
  19029. //
  19030. // tag-key - The key of a tag assigned to the resource. This filter is independent
  19031. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  19032. // and the filter "tag-value=X", you get any resources assigned both the tag
  19033. // key Purpose (regardless of what the tag's value is), and the tag value X
  19034. // (regardless of what the tag's key is). If you want to list only resources
  19035. // where Purpose is X, see the tag:key=value filter.
  19036. //
  19037. // tag-value - The value of a tag assigned to the resource. This filter
  19038. // is independent of the tag-key filter.
  19039. //
  19040. // type - The type of VPN connection. Currently the only supported type
  19041. // is ipsec.1.
  19042. //
  19043. // vpn-connection-id - The ID of the VPN connection.
  19044. //
  19045. // vpn-gateway-id - The ID of a virtual private gateway associated with
  19046. // the VPN connection.
  19047. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  19048. // One or more VPN connection IDs.
  19049. //
  19050. // Default: Describes your VPN connections.
  19051. VpnConnectionIds []*string `locationName:"VpnConnectionId" locationNameList:"VpnConnectionId" type:"list"`
  19052. }
  19053. // String returns the string representation
  19054. func (s DescribeVpnConnectionsInput) String() string {
  19055. return awsutil.Prettify(s)
  19056. }
  19057. // GoString returns the string representation
  19058. func (s DescribeVpnConnectionsInput) GoString() string {
  19059. return s.String()
  19060. }
  19061. // Contains the output of DescribeVpnConnections.
  19062. type DescribeVpnConnectionsOutput struct {
  19063. _ struct{} `type:"structure"`
  19064. // Information about one or more VPN connections.
  19065. VpnConnections []*VpnConnection `locationName:"vpnConnectionSet" locationNameList:"item" type:"list"`
  19066. }
  19067. // String returns the string representation
  19068. func (s DescribeVpnConnectionsOutput) String() string {
  19069. return awsutil.Prettify(s)
  19070. }
  19071. // GoString returns the string representation
  19072. func (s DescribeVpnConnectionsOutput) GoString() string {
  19073. return s.String()
  19074. }
  19075. // Contains the parameters for DescribeVpnGateways.
  19076. type DescribeVpnGatewaysInput struct {
  19077. _ struct{} `type:"structure"`
  19078. // Checks whether you have the required permissions for the action, without
  19079. // actually making the request, and provides an error response. If you have
  19080. // the required permissions, the error response is DryRunOperation. Otherwise,
  19081. // it is UnauthorizedOperation.
  19082. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19083. // One or more filters.
  19084. //
  19085. // attachment.state - The current state of the attachment between the gateway
  19086. // and the VPC (attaching | attached | detaching | detached).
  19087. //
  19088. // attachment.vpc-id - The ID of an attached VPC.
  19089. //
  19090. // availability-zone - The Availability Zone for the virtual private gateway
  19091. // (if applicable).
  19092. //
  19093. // state - The state of the virtual private gateway (pending | available
  19094. // | deleting | deleted).
  19095. //
  19096. // tag:key=value - The key/value combination of a tag assigned to the resource.
  19097. //
  19098. // tag-key - The key of a tag assigned to the resource. This filter is independent
  19099. // of the tag-value filter. For example, if you use both the filter "tag-key=Purpose"
  19100. // and the filter "tag-value=X", you get any resources assigned both the tag
  19101. // key Purpose (regardless of what the tag's value is), and the tag value X
  19102. // (regardless of what the tag's key is). If you want to list only resources
  19103. // where Purpose is X, see the tag:key=value filter.
  19104. //
  19105. // tag-value - The value of a tag assigned to the resource. This filter
  19106. // is independent of the tag-key filter.
  19107. //
  19108. // type - The type of virtual private gateway. Currently the only supported
  19109. // type is ipsec.1.
  19110. //
  19111. // vpn-gateway-id - The ID of the virtual private gateway.
  19112. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
  19113. // One or more virtual private gateway IDs.
  19114. //
  19115. // Default: Describes all your virtual private gateways.
  19116. VpnGatewayIds []*string `locationName:"VpnGatewayId" locationNameList:"VpnGatewayId" type:"list"`
  19117. }
  19118. // String returns the string representation
  19119. func (s DescribeVpnGatewaysInput) String() string {
  19120. return awsutil.Prettify(s)
  19121. }
  19122. // GoString returns the string representation
  19123. func (s DescribeVpnGatewaysInput) GoString() string {
  19124. return s.String()
  19125. }
  19126. // Contains the output of DescribeVpnGateways.
  19127. type DescribeVpnGatewaysOutput struct {
  19128. _ struct{} `type:"structure"`
  19129. // Information about one or more virtual private gateways.
  19130. VpnGateways []*VpnGateway `locationName:"vpnGatewaySet" locationNameList:"item" type:"list"`
  19131. }
  19132. // String returns the string representation
  19133. func (s DescribeVpnGatewaysOutput) String() string {
  19134. return awsutil.Prettify(s)
  19135. }
  19136. // GoString returns the string representation
  19137. func (s DescribeVpnGatewaysOutput) GoString() string {
  19138. return s.String()
  19139. }
  19140. // Contains the parameters for DetachClassicLinkVpc.
  19141. type DetachClassicLinkVpcInput struct {
  19142. _ struct{} `type:"structure"`
  19143. // Checks whether you have the required permissions for the action, without
  19144. // actually making the request, and provides an error response. If you have
  19145. // the required permissions, the error response is DryRunOperation. Otherwise,
  19146. // it is UnauthorizedOperation.
  19147. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19148. // The ID of the instance to unlink from the VPC.
  19149. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  19150. // The ID of the VPC to which the instance is linked.
  19151. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  19152. }
  19153. // String returns the string representation
  19154. func (s DetachClassicLinkVpcInput) String() string {
  19155. return awsutil.Prettify(s)
  19156. }
  19157. // GoString returns the string representation
  19158. func (s DetachClassicLinkVpcInput) GoString() string {
  19159. return s.String()
  19160. }
  19161. // Validate inspects the fields of the type to determine if they are valid.
  19162. func (s *DetachClassicLinkVpcInput) Validate() error {
  19163. invalidParams := request.ErrInvalidParams{Context: "DetachClassicLinkVpcInput"}
  19164. if s.InstanceId == nil {
  19165. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  19166. }
  19167. if s.VpcId == nil {
  19168. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  19169. }
  19170. if invalidParams.Len() > 0 {
  19171. return invalidParams
  19172. }
  19173. return nil
  19174. }
  19175. // Contains the output of DetachClassicLinkVpc.
  19176. type DetachClassicLinkVpcOutput struct {
  19177. _ struct{} `type:"structure"`
  19178. // Returns true if the request succeeds; otherwise, it returns an error.
  19179. Return *bool `locationName:"return" type:"boolean"`
  19180. }
  19181. // String returns the string representation
  19182. func (s DetachClassicLinkVpcOutput) String() string {
  19183. return awsutil.Prettify(s)
  19184. }
  19185. // GoString returns the string representation
  19186. func (s DetachClassicLinkVpcOutput) GoString() string {
  19187. return s.String()
  19188. }
  19189. // Contains the parameters for DetachInternetGateway.
  19190. type DetachInternetGatewayInput struct {
  19191. _ struct{} `type:"structure"`
  19192. // Checks whether you have the required permissions for the action, without
  19193. // actually making the request, and provides an error response. If you have
  19194. // the required permissions, the error response is DryRunOperation. Otherwise,
  19195. // it is UnauthorizedOperation.
  19196. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19197. // The ID of the Internet gateway.
  19198. InternetGatewayId *string `locationName:"internetGatewayId" type:"string" required:"true"`
  19199. // The ID of the VPC.
  19200. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  19201. }
  19202. // String returns the string representation
  19203. func (s DetachInternetGatewayInput) String() string {
  19204. return awsutil.Prettify(s)
  19205. }
  19206. // GoString returns the string representation
  19207. func (s DetachInternetGatewayInput) GoString() string {
  19208. return s.String()
  19209. }
  19210. // Validate inspects the fields of the type to determine if they are valid.
  19211. func (s *DetachInternetGatewayInput) Validate() error {
  19212. invalidParams := request.ErrInvalidParams{Context: "DetachInternetGatewayInput"}
  19213. if s.InternetGatewayId == nil {
  19214. invalidParams.Add(request.NewErrParamRequired("InternetGatewayId"))
  19215. }
  19216. if s.VpcId == nil {
  19217. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  19218. }
  19219. if invalidParams.Len() > 0 {
  19220. return invalidParams
  19221. }
  19222. return nil
  19223. }
  19224. type DetachInternetGatewayOutput struct {
  19225. _ struct{} `type:"structure"`
  19226. }
  19227. // String returns the string representation
  19228. func (s DetachInternetGatewayOutput) String() string {
  19229. return awsutil.Prettify(s)
  19230. }
  19231. // GoString returns the string representation
  19232. func (s DetachInternetGatewayOutput) GoString() string {
  19233. return s.String()
  19234. }
  19235. // Contains the parameters for DetachNetworkInterface.
  19236. type DetachNetworkInterfaceInput struct {
  19237. _ struct{} `type:"structure"`
  19238. // The ID of the attachment.
  19239. AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"`
  19240. // Checks whether you have the required permissions for the action, without
  19241. // actually making the request, and provides an error response. If you have
  19242. // the required permissions, the error response is DryRunOperation. Otherwise,
  19243. // it is UnauthorizedOperation.
  19244. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19245. // Specifies whether to force a detachment.
  19246. Force *bool `locationName:"force" type:"boolean"`
  19247. }
  19248. // String returns the string representation
  19249. func (s DetachNetworkInterfaceInput) String() string {
  19250. return awsutil.Prettify(s)
  19251. }
  19252. // GoString returns the string representation
  19253. func (s DetachNetworkInterfaceInput) GoString() string {
  19254. return s.String()
  19255. }
  19256. // Validate inspects the fields of the type to determine if they are valid.
  19257. func (s *DetachNetworkInterfaceInput) Validate() error {
  19258. invalidParams := request.ErrInvalidParams{Context: "DetachNetworkInterfaceInput"}
  19259. if s.AttachmentId == nil {
  19260. invalidParams.Add(request.NewErrParamRequired("AttachmentId"))
  19261. }
  19262. if invalidParams.Len() > 0 {
  19263. return invalidParams
  19264. }
  19265. return nil
  19266. }
  19267. type DetachNetworkInterfaceOutput struct {
  19268. _ struct{} `type:"structure"`
  19269. }
  19270. // String returns the string representation
  19271. func (s DetachNetworkInterfaceOutput) String() string {
  19272. return awsutil.Prettify(s)
  19273. }
  19274. // GoString returns the string representation
  19275. func (s DetachNetworkInterfaceOutput) GoString() string {
  19276. return s.String()
  19277. }
  19278. // Contains the parameters for DetachVolume.
  19279. type DetachVolumeInput struct {
  19280. _ struct{} `type:"structure"`
  19281. // The device name.
  19282. Device *string `type:"string"`
  19283. // Checks whether you have the required permissions for the action, without
  19284. // actually making the request, and provides an error response. If you have
  19285. // the required permissions, the error response is DryRunOperation. Otherwise,
  19286. // it is UnauthorizedOperation.
  19287. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19288. // Forces detachment if the previous detachment attempt did not occur cleanly
  19289. // (for example, logging into an instance, unmounting the volume, and detaching
  19290. // normally). This option can lead to data loss or a corrupted file system.
  19291. // Use this option only as a last resort to detach a volume from a failed instance.
  19292. // The instance won't have an opportunity to flush file system caches or file
  19293. // system metadata. If you use this option, you must perform file system check
  19294. // and repair procedures.
  19295. Force *bool `type:"boolean"`
  19296. // The ID of the instance.
  19297. InstanceId *string `type:"string"`
  19298. // The ID of the volume.
  19299. VolumeId *string `type:"string" required:"true"`
  19300. }
  19301. // String returns the string representation
  19302. func (s DetachVolumeInput) String() string {
  19303. return awsutil.Prettify(s)
  19304. }
  19305. // GoString returns the string representation
  19306. func (s DetachVolumeInput) GoString() string {
  19307. return s.String()
  19308. }
  19309. // Validate inspects the fields of the type to determine if they are valid.
  19310. func (s *DetachVolumeInput) Validate() error {
  19311. invalidParams := request.ErrInvalidParams{Context: "DetachVolumeInput"}
  19312. if s.VolumeId == nil {
  19313. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  19314. }
  19315. if invalidParams.Len() > 0 {
  19316. return invalidParams
  19317. }
  19318. return nil
  19319. }
  19320. // Contains the parameters for DetachVpnGateway.
  19321. type DetachVpnGatewayInput struct {
  19322. _ struct{} `type:"structure"`
  19323. // Checks whether you have the required permissions for the action, without
  19324. // actually making the request, and provides an error response. If you have
  19325. // the required permissions, the error response is DryRunOperation. Otherwise,
  19326. // it is UnauthorizedOperation.
  19327. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19328. // The ID of the VPC.
  19329. VpcId *string `type:"string" required:"true"`
  19330. // The ID of the virtual private gateway.
  19331. VpnGatewayId *string `type:"string" required:"true"`
  19332. }
  19333. // String returns the string representation
  19334. func (s DetachVpnGatewayInput) String() string {
  19335. return awsutil.Prettify(s)
  19336. }
  19337. // GoString returns the string representation
  19338. func (s DetachVpnGatewayInput) GoString() string {
  19339. return s.String()
  19340. }
  19341. // Validate inspects the fields of the type to determine if they are valid.
  19342. func (s *DetachVpnGatewayInput) Validate() error {
  19343. invalidParams := request.ErrInvalidParams{Context: "DetachVpnGatewayInput"}
  19344. if s.VpcId == nil {
  19345. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  19346. }
  19347. if s.VpnGatewayId == nil {
  19348. invalidParams.Add(request.NewErrParamRequired("VpnGatewayId"))
  19349. }
  19350. if invalidParams.Len() > 0 {
  19351. return invalidParams
  19352. }
  19353. return nil
  19354. }
  19355. type DetachVpnGatewayOutput struct {
  19356. _ struct{} `type:"structure"`
  19357. }
  19358. // String returns the string representation
  19359. func (s DetachVpnGatewayOutput) String() string {
  19360. return awsutil.Prettify(s)
  19361. }
  19362. // GoString returns the string representation
  19363. func (s DetachVpnGatewayOutput) GoString() string {
  19364. return s.String()
  19365. }
  19366. // Describes a DHCP configuration option.
  19367. type DhcpConfiguration struct {
  19368. _ struct{} `type:"structure"`
  19369. // The name of a DHCP option.
  19370. Key *string `locationName:"key" type:"string"`
  19371. // One or more values for the DHCP option.
  19372. Values []*AttributeValue `locationName:"valueSet" locationNameList:"item" type:"list"`
  19373. }
  19374. // String returns the string representation
  19375. func (s DhcpConfiguration) String() string {
  19376. return awsutil.Prettify(s)
  19377. }
  19378. // GoString returns the string representation
  19379. func (s DhcpConfiguration) GoString() string {
  19380. return s.String()
  19381. }
  19382. // Describes a set of DHCP options.
  19383. type DhcpOptions struct {
  19384. _ struct{} `type:"structure"`
  19385. // One or more DHCP options in the set.
  19386. DhcpConfigurations []*DhcpConfiguration `locationName:"dhcpConfigurationSet" locationNameList:"item" type:"list"`
  19387. // The ID of the set of DHCP options.
  19388. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`
  19389. // Any tags assigned to the DHCP options set.
  19390. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  19391. }
  19392. // String returns the string representation
  19393. func (s DhcpOptions) String() string {
  19394. return awsutil.Prettify(s)
  19395. }
  19396. // GoString returns the string representation
  19397. func (s DhcpOptions) GoString() string {
  19398. return s.String()
  19399. }
  19400. // Contains the parameters for DisableVgwRoutePropagation.
  19401. type DisableVgwRoutePropagationInput struct {
  19402. _ struct{} `type:"structure"`
  19403. // The ID of the virtual private gateway.
  19404. GatewayId *string `type:"string" required:"true"`
  19405. // The ID of the route table.
  19406. RouteTableId *string `type:"string" required:"true"`
  19407. }
  19408. // String returns the string representation
  19409. func (s DisableVgwRoutePropagationInput) String() string {
  19410. return awsutil.Prettify(s)
  19411. }
  19412. // GoString returns the string representation
  19413. func (s DisableVgwRoutePropagationInput) GoString() string {
  19414. return s.String()
  19415. }
  19416. // Validate inspects the fields of the type to determine if they are valid.
  19417. func (s *DisableVgwRoutePropagationInput) Validate() error {
  19418. invalidParams := request.ErrInvalidParams{Context: "DisableVgwRoutePropagationInput"}
  19419. if s.GatewayId == nil {
  19420. invalidParams.Add(request.NewErrParamRequired("GatewayId"))
  19421. }
  19422. if s.RouteTableId == nil {
  19423. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  19424. }
  19425. if invalidParams.Len() > 0 {
  19426. return invalidParams
  19427. }
  19428. return nil
  19429. }
  19430. type DisableVgwRoutePropagationOutput struct {
  19431. _ struct{} `type:"structure"`
  19432. }
  19433. // String returns the string representation
  19434. func (s DisableVgwRoutePropagationOutput) String() string {
  19435. return awsutil.Prettify(s)
  19436. }
  19437. // GoString returns the string representation
  19438. func (s DisableVgwRoutePropagationOutput) GoString() string {
  19439. return s.String()
  19440. }
  19441. // Contains the parameters for DisableVpcClassicLinkDnsSupport.
  19442. type DisableVpcClassicLinkDnsSupportInput struct {
  19443. _ struct{} `type:"structure"`
  19444. // The ID of the VPC.
  19445. VpcId *string `type:"string"`
  19446. }
  19447. // String returns the string representation
  19448. func (s DisableVpcClassicLinkDnsSupportInput) String() string {
  19449. return awsutil.Prettify(s)
  19450. }
  19451. // GoString returns the string representation
  19452. func (s DisableVpcClassicLinkDnsSupportInput) GoString() string {
  19453. return s.String()
  19454. }
  19455. // Contains the output of DisableVpcClassicLinkDnsSupport.
  19456. type DisableVpcClassicLinkDnsSupportOutput struct {
  19457. _ struct{} `type:"structure"`
  19458. // Returns true if the request succeeds; otherwise, it returns an error.
  19459. Return *bool `locationName:"return" type:"boolean"`
  19460. }
  19461. // String returns the string representation
  19462. func (s DisableVpcClassicLinkDnsSupportOutput) String() string {
  19463. return awsutil.Prettify(s)
  19464. }
  19465. // GoString returns the string representation
  19466. func (s DisableVpcClassicLinkDnsSupportOutput) GoString() string {
  19467. return s.String()
  19468. }
  19469. // Contains the parameters for DisableVpcClassicLink.
  19470. type DisableVpcClassicLinkInput struct {
  19471. _ struct{} `type:"structure"`
  19472. // Checks whether you have the required permissions for the action, without
  19473. // actually making the request, and provides an error response. If you have
  19474. // the required permissions, the error response is DryRunOperation. Otherwise,
  19475. // it is UnauthorizedOperation.
  19476. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19477. // The ID of the VPC.
  19478. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  19479. }
  19480. // String returns the string representation
  19481. func (s DisableVpcClassicLinkInput) String() string {
  19482. return awsutil.Prettify(s)
  19483. }
  19484. // GoString returns the string representation
  19485. func (s DisableVpcClassicLinkInput) GoString() string {
  19486. return s.String()
  19487. }
  19488. // Validate inspects the fields of the type to determine if they are valid.
  19489. func (s *DisableVpcClassicLinkInput) Validate() error {
  19490. invalidParams := request.ErrInvalidParams{Context: "DisableVpcClassicLinkInput"}
  19491. if s.VpcId == nil {
  19492. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  19493. }
  19494. if invalidParams.Len() > 0 {
  19495. return invalidParams
  19496. }
  19497. return nil
  19498. }
  19499. // Contains the output of DisableVpcClassicLink.
  19500. type DisableVpcClassicLinkOutput struct {
  19501. _ struct{} `type:"structure"`
  19502. // Returns true if the request succeeds; otherwise, it returns an error.
  19503. Return *bool `locationName:"return" type:"boolean"`
  19504. }
  19505. // String returns the string representation
  19506. func (s DisableVpcClassicLinkOutput) String() string {
  19507. return awsutil.Prettify(s)
  19508. }
  19509. // GoString returns the string representation
  19510. func (s DisableVpcClassicLinkOutput) GoString() string {
  19511. return s.String()
  19512. }
  19513. // Contains the parameters for DisassociateAddress.
  19514. type DisassociateAddressInput struct {
  19515. _ struct{} `type:"structure"`
  19516. // [EC2-VPC] The association ID. Required for EC2-VPC.
  19517. AssociationId *string `type:"string"`
  19518. // Checks whether you have the required permissions for the action, without
  19519. // actually making the request, and provides an error response. If you have
  19520. // the required permissions, the error response is DryRunOperation. Otherwise,
  19521. // it is UnauthorizedOperation.
  19522. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19523. // [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  19524. PublicIp *string `type:"string"`
  19525. }
  19526. // String returns the string representation
  19527. func (s DisassociateAddressInput) String() string {
  19528. return awsutil.Prettify(s)
  19529. }
  19530. // GoString returns the string representation
  19531. func (s DisassociateAddressInput) GoString() string {
  19532. return s.String()
  19533. }
  19534. type DisassociateAddressOutput struct {
  19535. _ struct{} `type:"structure"`
  19536. }
  19537. // String returns the string representation
  19538. func (s DisassociateAddressOutput) String() string {
  19539. return awsutil.Prettify(s)
  19540. }
  19541. // GoString returns the string representation
  19542. func (s DisassociateAddressOutput) GoString() string {
  19543. return s.String()
  19544. }
  19545. // Contains the parameters for DisassociateRouteTable.
  19546. type DisassociateRouteTableInput struct {
  19547. _ struct{} `type:"structure"`
  19548. // The association ID representing the current association between the route
  19549. // table and subnet.
  19550. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  19551. // Checks whether you have the required permissions for the action, without
  19552. // actually making the request, and provides an error response. If you have
  19553. // the required permissions, the error response is DryRunOperation. Otherwise,
  19554. // it is UnauthorizedOperation.
  19555. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19556. }
  19557. // String returns the string representation
  19558. func (s DisassociateRouteTableInput) String() string {
  19559. return awsutil.Prettify(s)
  19560. }
  19561. // GoString returns the string representation
  19562. func (s DisassociateRouteTableInput) GoString() string {
  19563. return s.String()
  19564. }
  19565. // Validate inspects the fields of the type to determine if they are valid.
  19566. func (s *DisassociateRouteTableInput) Validate() error {
  19567. invalidParams := request.ErrInvalidParams{Context: "DisassociateRouteTableInput"}
  19568. if s.AssociationId == nil {
  19569. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  19570. }
  19571. if invalidParams.Len() > 0 {
  19572. return invalidParams
  19573. }
  19574. return nil
  19575. }
  19576. type DisassociateRouteTableOutput struct {
  19577. _ struct{} `type:"structure"`
  19578. }
  19579. // String returns the string representation
  19580. func (s DisassociateRouteTableOutput) String() string {
  19581. return awsutil.Prettify(s)
  19582. }
  19583. // GoString returns the string representation
  19584. func (s DisassociateRouteTableOutput) GoString() string {
  19585. return s.String()
  19586. }
  19587. // Describes a disk image.
  19588. type DiskImage struct {
  19589. _ struct{} `type:"structure"`
  19590. // A description of the disk image.
  19591. Description *string `type:"string"`
  19592. // Information about the disk image.
  19593. Image *DiskImageDetail `type:"structure"`
  19594. // Information about the volume.
  19595. Volume *VolumeDetail `type:"structure"`
  19596. }
  19597. // String returns the string representation
  19598. func (s DiskImage) String() string {
  19599. return awsutil.Prettify(s)
  19600. }
  19601. // GoString returns the string representation
  19602. func (s DiskImage) GoString() string {
  19603. return s.String()
  19604. }
  19605. // Validate inspects the fields of the type to determine if they are valid.
  19606. func (s *DiskImage) Validate() error {
  19607. invalidParams := request.ErrInvalidParams{Context: "DiskImage"}
  19608. if s.Image != nil {
  19609. if err := s.Image.Validate(); err != nil {
  19610. invalidParams.AddNested("Image", err.(request.ErrInvalidParams))
  19611. }
  19612. }
  19613. if s.Volume != nil {
  19614. if err := s.Volume.Validate(); err != nil {
  19615. invalidParams.AddNested("Volume", err.(request.ErrInvalidParams))
  19616. }
  19617. }
  19618. if invalidParams.Len() > 0 {
  19619. return invalidParams
  19620. }
  19621. return nil
  19622. }
  19623. // Describes a disk image.
  19624. type DiskImageDescription struct {
  19625. _ struct{} `type:"structure"`
  19626. // The checksum computed for the disk image.
  19627. Checksum *string `locationName:"checksum" type:"string"`
  19628. // The disk image format.
  19629. Format *string `locationName:"format" type:"string" required:"true" enum:"DiskImageFormat"`
  19630. // A presigned URL for the import manifest stored in Amazon S3. For information
  19631. // about creating a presigned URL for an Amazon S3 object, read the "Query String
  19632. // Request Authentication Alternative" section of the Authenticating REST Requests
  19633. // (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
  19634. // topic in the Amazon Simple Storage Service Developer Guide.
  19635. //
  19636. // For information about the import manifest referenced by this API action,
  19637. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  19638. ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"`
  19639. // The size of the disk image, in GiB.
  19640. Size *int64 `locationName:"size" type:"long" required:"true"`
  19641. }
  19642. // String returns the string representation
  19643. func (s DiskImageDescription) String() string {
  19644. return awsutil.Prettify(s)
  19645. }
  19646. // GoString returns the string representation
  19647. func (s DiskImageDescription) GoString() string {
  19648. return s.String()
  19649. }
  19650. // Describes a disk image.
  19651. type DiskImageDetail struct {
  19652. _ struct{} `type:"structure"`
  19653. // The size of the disk image, in GiB.
  19654. Bytes *int64 `locationName:"bytes" type:"long" required:"true"`
  19655. // The disk image format.
  19656. Format *string `locationName:"format" type:"string" required:"true" enum:"DiskImageFormat"`
  19657. // A presigned URL for the import manifest stored in Amazon S3 and presented
  19658. // here as an Amazon S3 presigned URL. For information about creating a presigned
  19659. // URL for an Amazon S3 object, read the "Query String Request Authentication
  19660. // Alternative" section of the Authenticating REST Requests (http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html)
  19661. // topic in the Amazon Simple Storage Service Developer Guide.
  19662. //
  19663. // For information about the import manifest referenced by this API action,
  19664. // see VM Import Manifest (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html).
  19665. ImportManifestUrl *string `locationName:"importManifestUrl" type:"string" required:"true"`
  19666. }
  19667. // String returns the string representation
  19668. func (s DiskImageDetail) String() string {
  19669. return awsutil.Prettify(s)
  19670. }
  19671. // GoString returns the string representation
  19672. func (s DiskImageDetail) GoString() string {
  19673. return s.String()
  19674. }
  19675. // Validate inspects the fields of the type to determine if they are valid.
  19676. func (s *DiskImageDetail) Validate() error {
  19677. invalidParams := request.ErrInvalidParams{Context: "DiskImageDetail"}
  19678. if s.Bytes == nil {
  19679. invalidParams.Add(request.NewErrParamRequired("Bytes"))
  19680. }
  19681. if s.Format == nil {
  19682. invalidParams.Add(request.NewErrParamRequired("Format"))
  19683. }
  19684. if s.ImportManifestUrl == nil {
  19685. invalidParams.Add(request.NewErrParamRequired("ImportManifestUrl"))
  19686. }
  19687. if invalidParams.Len() > 0 {
  19688. return invalidParams
  19689. }
  19690. return nil
  19691. }
  19692. // Describes a disk image volume.
  19693. type DiskImageVolumeDescription struct {
  19694. _ struct{} `type:"structure"`
  19695. // The volume identifier.
  19696. Id *string `locationName:"id" type:"string" required:"true"`
  19697. // The size of the volume, in GiB.
  19698. Size *int64 `locationName:"size" type:"long"`
  19699. }
  19700. // String returns the string representation
  19701. func (s DiskImageVolumeDescription) String() string {
  19702. return awsutil.Prettify(s)
  19703. }
  19704. // GoString returns the string representation
  19705. func (s DiskImageVolumeDescription) GoString() string {
  19706. return s.String()
  19707. }
  19708. // Describes a block device for an EBS volume.
  19709. type EbsBlockDevice struct {
  19710. _ struct{} `type:"structure"`
  19711. // Indicates whether the EBS volume is deleted on instance termination.
  19712. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  19713. // Indicates whether the EBS volume is encrypted. Encrypted Amazon EBS volumes
  19714. // may only be attached to instances that support Amazon EBS encryption.
  19715. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  19716. // The number of I/O operations per second (IOPS) that the volume supports.
  19717. // For io1, this represents the number of IOPS that are provisioned for the
  19718. // volume. For gp2, this represents the baseline performance of the volume and
  19719. // the rate at which the volume accumulates I/O credits for bursting. For more
  19720. // information about General Purpose SSD baseline performance, I/O credits,
  19721. // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  19722. // in the Amazon Elastic Compute Cloud User Guide.
  19723. //
  19724. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  19725. // gp2 volumes.
  19726. //
  19727. // Condition: This parameter is required for requests to create io1 volumes;
  19728. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  19729. Iops *int64 `locationName:"iops" type:"integer"`
  19730. // The ID of the snapshot.
  19731. SnapshotId *string `locationName:"snapshotId" type:"string"`
  19732. // The size of the volume, in GiB.
  19733. //
  19734. // Constraints: 1-16384 for General Purpose SSD (gp2), 4-16384 for Provisioned
  19735. // IOPS SSD (io1), 500-16384 for Throughput Optimized HDD (st1), 500-16384 for
  19736. // Cold HDD (sc1), and 1-1024 for Magnetic (standard) volumes. If you specify
  19737. // a snapshot, the volume size must be equal to or larger than the snapshot
  19738. // size.
  19739. //
  19740. // Default: If you're creating the volume from a snapshot and don't specify
  19741. // a volume size, the default is the snapshot size.
  19742. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  19743. // The volume type: gp2, io1, st1, sc1, or standard.
  19744. //
  19745. // Default: standard
  19746. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  19747. }
  19748. // String returns the string representation
  19749. func (s EbsBlockDevice) String() string {
  19750. return awsutil.Prettify(s)
  19751. }
  19752. // GoString returns the string representation
  19753. func (s EbsBlockDevice) GoString() string {
  19754. return s.String()
  19755. }
  19756. // Describes a parameter used to set up an EBS volume in a block device mapping.
  19757. type EbsInstanceBlockDevice struct {
  19758. _ struct{} `type:"structure"`
  19759. // The time stamp when the attachment initiated.
  19760. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  19761. // Indicates whether the volume is deleted on instance termination.
  19762. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  19763. // The attachment state.
  19764. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  19765. // The ID of the EBS volume.
  19766. VolumeId *string `locationName:"volumeId" type:"string"`
  19767. }
  19768. // String returns the string representation
  19769. func (s EbsInstanceBlockDevice) String() string {
  19770. return awsutil.Prettify(s)
  19771. }
  19772. // GoString returns the string representation
  19773. func (s EbsInstanceBlockDevice) GoString() string {
  19774. return s.String()
  19775. }
  19776. // Describes information used to set up an EBS volume specified in a block device
  19777. // mapping.
  19778. type EbsInstanceBlockDeviceSpecification struct {
  19779. _ struct{} `type:"structure"`
  19780. // Indicates whether the volume is deleted on instance termination.
  19781. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  19782. // The ID of the EBS volume.
  19783. VolumeId *string `locationName:"volumeId" type:"string"`
  19784. }
  19785. // String returns the string representation
  19786. func (s EbsInstanceBlockDeviceSpecification) String() string {
  19787. return awsutil.Prettify(s)
  19788. }
  19789. // GoString returns the string representation
  19790. func (s EbsInstanceBlockDeviceSpecification) GoString() string {
  19791. return s.String()
  19792. }
  19793. // Contains the parameters for EnableVgwRoutePropagation.
  19794. type EnableVgwRoutePropagationInput struct {
  19795. _ struct{} `type:"structure"`
  19796. // The ID of the virtual private gateway.
  19797. GatewayId *string `type:"string" required:"true"`
  19798. // The ID of the route table.
  19799. RouteTableId *string `type:"string" required:"true"`
  19800. }
  19801. // String returns the string representation
  19802. func (s EnableVgwRoutePropagationInput) String() string {
  19803. return awsutil.Prettify(s)
  19804. }
  19805. // GoString returns the string representation
  19806. func (s EnableVgwRoutePropagationInput) GoString() string {
  19807. return s.String()
  19808. }
  19809. // Validate inspects the fields of the type to determine if they are valid.
  19810. func (s *EnableVgwRoutePropagationInput) Validate() error {
  19811. invalidParams := request.ErrInvalidParams{Context: "EnableVgwRoutePropagationInput"}
  19812. if s.GatewayId == nil {
  19813. invalidParams.Add(request.NewErrParamRequired("GatewayId"))
  19814. }
  19815. if s.RouteTableId == nil {
  19816. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  19817. }
  19818. if invalidParams.Len() > 0 {
  19819. return invalidParams
  19820. }
  19821. return nil
  19822. }
  19823. type EnableVgwRoutePropagationOutput struct {
  19824. _ struct{} `type:"structure"`
  19825. }
  19826. // String returns the string representation
  19827. func (s EnableVgwRoutePropagationOutput) String() string {
  19828. return awsutil.Prettify(s)
  19829. }
  19830. // GoString returns the string representation
  19831. func (s EnableVgwRoutePropagationOutput) GoString() string {
  19832. return s.String()
  19833. }
  19834. // Contains the parameters for EnableVolumeIO.
  19835. type EnableVolumeIOInput struct {
  19836. _ struct{} `type:"structure"`
  19837. // Checks whether you have the required permissions for the action, without
  19838. // actually making the request, and provides an error response. If you have
  19839. // the required permissions, the error response is DryRunOperation. Otherwise,
  19840. // it is UnauthorizedOperation.
  19841. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19842. // The ID of the volume.
  19843. VolumeId *string `locationName:"volumeId" type:"string" required:"true"`
  19844. }
  19845. // String returns the string representation
  19846. func (s EnableVolumeIOInput) String() string {
  19847. return awsutil.Prettify(s)
  19848. }
  19849. // GoString returns the string representation
  19850. func (s EnableVolumeIOInput) GoString() string {
  19851. return s.String()
  19852. }
  19853. // Validate inspects the fields of the type to determine if they are valid.
  19854. func (s *EnableVolumeIOInput) Validate() error {
  19855. invalidParams := request.ErrInvalidParams{Context: "EnableVolumeIOInput"}
  19856. if s.VolumeId == nil {
  19857. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  19858. }
  19859. if invalidParams.Len() > 0 {
  19860. return invalidParams
  19861. }
  19862. return nil
  19863. }
  19864. type EnableVolumeIOOutput struct {
  19865. _ struct{} `type:"structure"`
  19866. }
  19867. // String returns the string representation
  19868. func (s EnableVolumeIOOutput) String() string {
  19869. return awsutil.Prettify(s)
  19870. }
  19871. // GoString returns the string representation
  19872. func (s EnableVolumeIOOutput) GoString() string {
  19873. return s.String()
  19874. }
  19875. // Contains the parameters for EnableVpcClassicLinkDnsSupport.
  19876. type EnableVpcClassicLinkDnsSupportInput struct {
  19877. _ struct{} `type:"structure"`
  19878. // The ID of the VPC.
  19879. VpcId *string `type:"string"`
  19880. }
  19881. // String returns the string representation
  19882. func (s EnableVpcClassicLinkDnsSupportInput) String() string {
  19883. return awsutil.Prettify(s)
  19884. }
  19885. // GoString returns the string representation
  19886. func (s EnableVpcClassicLinkDnsSupportInput) GoString() string {
  19887. return s.String()
  19888. }
  19889. // Contains the output of EnableVpcClassicLinkDnsSupport.
  19890. type EnableVpcClassicLinkDnsSupportOutput struct {
  19891. _ struct{} `type:"structure"`
  19892. // Returns true if the request succeeds; otherwise, it returns an error.
  19893. Return *bool `locationName:"return" type:"boolean"`
  19894. }
  19895. // String returns the string representation
  19896. func (s EnableVpcClassicLinkDnsSupportOutput) String() string {
  19897. return awsutil.Prettify(s)
  19898. }
  19899. // GoString returns the string representation
  19900. func (s EnableVpcClassicLinkDnsSupportOutput) GoString() string {
  19901. return s.String()
  19902. }
  19903. // Contains the parameters for EnableVpcClassicLink.
  19904. type EnableVpcClassicLinkInput struct {
  19905. _ struct{} `type:"structure"`
  19906. // Checks whether you have the required permissions for the action, without
  19907. // actually making the request, and provides an error response. If you have
  19908. // the required permissions, the error response is DryRunOperation. Otherwise,
  19909. // it is UnauthorizedOperation.
  19910. DryRun *bool `locationName:"dryRun" type:"boolean"`
  19911. // The ID of the VPC.
  19912. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  19913. }
  19914. // String returns the string representation
  19915. func (s EnableVpcClassicLinkInput) String() string {
  19916. return awsutil.Prettify(s)
  19917. }
  19918. // GoString returns the string representation
  19919. func (s EnableVpcClassicLinkInput) GoString() string {
  19920. return s.String()
  19921. }
  19922. // Validate inspects the fields of the type to determine if they are valid.
  19923. func (s *EnableVpcClassicLinkInput) Validate() error {
  19924. invalidParams := request.ErrInvalidParams{Context: "EnableVpcClassicLinkInput"}
  19925. if s.VpcId == nil {
  19926. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  19927. }
  19928. if invalidParams.Len() > 0 {
  19929. return invalidParams
  19930. }
  19931. return nil
  19932. }
  19933. // Contains the output of EnableVpcClassicLink.
  19934. type EnableVpcClassicLinkOutput struct {
  19935. _ struct{} `type:"structure"`
  19936. // Returns true if the request succeeds; otherwise, it returns an error.
  19937. Return *bool `locationName:"return" type:"boolean"`
  19938. }
  19939. // String returns the string representation
  19940. func (s EnableVpcClassicLinkOutput) String() string {
  19941. return awsutil.Prettify(s)
  19942. }
  19943. // GoString returns the string representation
  19944. func (s EnableVpcClassicLinkOutput) GoString() string {
  19945. return s.String()
  19946. }
  19947. // Describes a Spot fleet event.
  19948. type EventInformation struct {
  19949. _ struct{} `type:"structure"`
  19950. // The description of the event.
  19951. EventDescription *string `locationName:"eventDescription" type:"string"`
  19952. // The event.
  19953. //
  19954. // The following are the error events.
  19955. //
  19956. // iamFleetRoleInvalid - The Spot fleet did not have the required permissions
  19957. // either to launch or terminate an instance.
  19958. //
  19959. // launchSpecTemporarilyBlacklisted - The configuration is not valid and
  19960. // several attempts to launch instances have failed. For more information, see
  19961. // the description of the event.
  19962. //
  19963. // spotFleetRequestConfigurationInvalid - The configuration is not valid.
  19964. // For more information, see the description of the event.
  19965. //
  19966. // spotInstanceCountLimitExceeded - You've reached the limit on the number
  19967. // of Spot instances that you can launch.
  19968. //
  19969. // The following are the fleetRequestChange events.
  19970. //
  19971. // active - The Spot fleet has been validated and Amazon EC2 is attempting
  19972. // to maintain the target number of running Spot instances.
  19973. //
  19974. // cancelled - The Spot fleet is canceled and has no running Spot instances.
  19975. // The Spot fleet will be deleted two days after its instances were terminated.
  19976. //
  19977. // cancelled_running - The Spot fleet is canceled and will not launch additional
  19978. // Spot instances, but its existing Spot instances continue to run until they
  19979. // are interrupted or terminated.
  19980. //
  19981. // cancelled_terminating - The Spot fleet is canceled and its Spot instances
  19982. // are terminating.
  19983. //
  19984. // expired - The Spot fleet request has expired. A subsequent event indicates
  19985. // that the instances were terminated, if the request was created with TerminateInstancesWithExpiration
  19986. // set.
  19987. //
  19988. // modify_in_progress - A request to modify the Spot fleet request was accepted
  19989. // and is in progress.
  19990. //
  19991. // modify_successful - The Spot fleet request was modified.
  19992. //
  19993. // price_update - The bid price for a launch configuration was adjusted
  19994. // because it was too high. This change is permanent.
  19995. //
  19996. // submitted - The Spot fleet request is being evaluated and Amazon EC2
  19997. // is preparing to launch the target number of Spot instances.
  19998. //
  19999. // The following are the instanceChange events.
  20000. //
  20001. // launched - A bid was fulfilled and a new instance was launched.
  20002. //
  20003. // terminated - An instance was terminated by the user.
  20004. EventSubType *string `locationName:"eventSubType" type:"string"`
  20005. // The ID of the instance. This information is available only for instanceChange
  20006. // events.
  20007. InstanceId *string `locationName:"instanceId" type:"string"`
  20008. }
  20009. // String returns the string representation
  20010. func (s EventInformation) String() string {
  20011. return awsutil.Prettify(s)
  20012. }
  20013. // GoString returns the string representation
  20014. func (s EventInformation) GoString() string {
  20015. return s.String()
  20016. }
  20017. // Describes an instance export task.
  20018. type ExportTask struct {
  20019. _ struct{} `type:"structure"`
  20020. // A description of the resource being exported.
  20021. Description *string `locationName:"description" type:"string"`
  20022. // The ID of the export task.
  20023. ExportTaskId *string `locationName:"exportTaskId" type:"string"`
  20024. // Information about the export task.
  20025. ExportToS3Task *ExportToS3Task `locationName:"exportToS3" type:"structure"`
  20026. // Information about the instance to export.
  20027. InstanceExportDetails *InstanceExportDetails `locationName:"instanceExport" type:"structure"`
  20028. // The state of the export task.
  20029. State *string `locationName:"state" type:"string" enum:"ExportTaskState"`
  20030. // The status message related to the export task.
  20031. StatusMessage *string `locationName:"statusMessage" type:"string"`
  20032. }
  20033. // String returns the string representation
  20034. func (s ExportTask) String() string {
  20035. return awsutil.Prettify(s)
  20036. }
  20037. // GoString returns the string representation
  20038. func (s ExportTask) GoString() string {
  20039. return s.String()
  20040. }
  20041. // Describes the format and location for an instance export task.
  20042. type ExportToS3Task struct {
  20043. _ struct{} `type:"structure"`
  20044. // The container format used to combine disk images with metadata (such as OVF).
  20045. // If absent, only the disk image is exported.
  20046. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"`
  20047. // The format for the exported image.
  20048. DiskImageFormat *string `locationName:"diskImageFormat" type:"string" enum:"DiskImageFormat"`
  20049. // The S3 bucket for the destination image. The destination bucket must exist
  20050. // and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
  20051. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  20052. // The encryption key for your S3 bucket.
  20053. S3Key *string `locationName:"s3Key" type:"string"`
  20054. }
  20055. // String returns the string representation
  20056. func (s ExportToS3Task) String() string {
  20057. return awsutil.Prettify(s)
  20058. }
  20059. // GoString returns the string representation
  20060. func (s ExportToS3Task) GoString() string {
  20061. return s.String()
  20062. }
  20063. // Describes an instance export task.
  20064. type ExportToS3TaskSpecification struct {
  20065. _ struct{} `type:"structure"`
  20066. // The container format used to combine disk images with metadata (such as OVF).
  20067. // If absent, only the disk image is exported.
  20068. ContainerFormat *string `locationName:"containerFormat" type:"string" enum:"ContainerFormat"`
  20069. // The format for the exported image.
  20070. DiskImageFormat *string `locationName:"diskImageFormat" type:"string" enum:"DiskImageFormat"`
  20071. // The S3 bucket for the destination image. The destination bucket must exist
  20072. // and grant WRITE and READ_ACP permissions to the AWS account vm-import-export@amazon.com.
  20073. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  20074. // The image is written to a single object in the S3 bucket at the S3 key s3prefix
  20075. // + exportTaskId + '.' + diskImageFormat.
  20076. S3Prefix *string `locationName:"s3Prefix" type:"string"`
  20077. }
  20078. // String returns the string representation
  20079. func (s ExportToS3TaskSpecification) String() string {
  20080. return awsutil.Prettify(s)
  20081. }
  20082. // GoString returns the string representation
  20083. func (s ExportToS3TaskSpecification) GoString() string {
  20084. return s.String()
  20085. }
  20086. // A filter name and value pair that is used to return a more specific list
  20087. // of results. Filters can be used to match a set of resources by various criteria,
  20088. // such as tags, attributes, or IDs.
  20089. type Filter struct {
  20090. _ struct{} `type:"structure"`
  20091. // The name of the filter. Filter names are case-sensitive.
  20092. Name *string `type:"string"`
  20093. // One or more filter values. Filter values are case-sensitive.
  20094. Values []*string `locationName:"Value" locationNameList:"item" type:"list"`
  20095. }
  20096. // String returns the string representation
  20097. func (s Filter) String() string {
  20098. return awsutil.Prettify(s)
  20099. }
  20100. // GoString returns the string representation
  20101. func (s Filter) GoString() string {
  20102. return s.String()
  20103. }
  20104. // Describes a flow log.
  20105. type FlowLog struct {
  20106. _ struct{} `type:"structure"`
  20107. // The date and time the flow log was created.
  20108. CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"`
  20109. // Information about the error that occurred. Rate limited indicates that CloudWatch
  20110. // logs throttling has been applied for one or more network interfaces, or that
  20111. // you've reached the limit on the number of CloudWatch Logs log groups that
  20112. // you can create. Access error indicates that the IAM role associated with
  20113. // the flow log does not have sufficient permissions to publish to CloudWatch
  20114. // Logs. Unknown error indicates an internal error.
  20115. DeliverLogsErrorMessage *string `locationName:"deliverLogsErrorMessage" type:"string"`
  20116. // The ARN of the IAM role that posts logs to CloudWatch Logs.
  20117. DeliverLogsPermissionArn *string `locationName:"deliverLogsPermissionArn" type:"string"`
  20118. // The status of the logs delivery (SUCCESS | FAILED).
  20119. DeliverLogsStatus *string `locationName:"deliverLogsStatus" type:"string"`
  20120. // The flow log ID.
  20121. FlowLogId *string `locationName:"flowLogId" type:"string"`
  20122. // The status of the flow log (ACTIVE).
  20123. FlowLogStatus *string `locationName:"flowLogStatus" type:"string"`
  20124. // The name of the flow log group.
  20125. LogGroupName *string `locationName:"logGroupName" type:"string"`
  20126. // The ID of the resource on which the flow log was created.
  20127. ResourceId *string `locationName:"resourceId" type:"string"`
  20128. // The type of traffic captured for the flow log.
  20129. TrafficType *string `locationName:"trafficType" type:"string" enum:"TrafficType"`
  20130. }
  20131. // String returns the string representation
  20132. func (s FlowLog) String() string {
  20133. return awsutil.Prettify(s)
  20134. }
  20135. // GoString returns the string representation
  20136. func (s FlowLog) GoString() string {
  20137. return s.String()
  20138. }
  20139. // Contains the parameters for GetConsoleOutput.
  20140. type GetConsoleOutputInput struct {
  20141. _ struct{} `type:"structure"`
  20142. // Checks whether you have the required permissions for the action, without
  20143. // actually making the request, and provides an error response. If you have
  20144. // the required permissions, the error response is DryRunOperation. Otherwise,
  20145. // it is UnauthorizedOperation.
  20146. DryRun *bool `locationName:"dryRun" type:"boolean"`
  20147. // The ID of the instance.
  20148. InstanceId *string `type:"string" required:"true"`
  20149. }
  20150. // String returns the string representation
  20151. func (s GetConsoleOutputInput) String() string {
  20152. return awsutil.Prettify(s)
  20153. }
  20154. // GoString returns the string representation
  20155. func (s GetConsoleOutputInput) GoString() string {
  20156. return s.String()
  20157. }
  20158. // Validate inspects the fields of the type to determine if they are valid.
  20159. func (s *GetConsoleOutputInput) Validate() error {
  20160. invalidParams := request.ErrInvalidParams{Context: "GetConsoleOutputInput"}
  20161. if s.InstanceId == nil {
  20162. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  20163. }
  20164. if invalidParams.Len() > 0 {
  20165. return invalidParams
  20166. }
  20167. return nil
  20168. }
  20169. // Contains the output of GetConsoleOutput.
  20170. type GetConsoleOutputOutput struct {
  20171. _ struct{} `type:"structure"`
  20172. // The ID of the instance.
  20173. InstanceId *string `locationName:"instanceId" type:"string"`
  20174. // The console output, Base64-encoded. If using a command line tool, the tool
  20175. // decodes the output for you.
  20176. Output *string `locationName:"output" type:"string"`
  20177. // The time the output was last updated.
  20178. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  20179. }
  20180. // String returns the string representation
  20181. func (s GetConsoleOutputOutput) String() string {
  20182. return awsutil.Prettify(s)
  20183. }
  20184. // GoString returns the string representation
  20185. func (s GetConsoleOutputOutput) GoString() string {
  20186. return s.String()
  20187. }
  20188. // Contains the parameters for the request.
  20189. type GetConsoleScreenshotInput struct {
  20190. _ struct{} `type:"structure"`
  20191. // Checks whether you have the required permissions for the action, without
  20192. // actually making the request, and provides an error response. If you have
  20193. // the required permissions, the error response is DryRunOperation. Otherwise,
  20194. // it is UnauthorizedOperation.
  20195. DryRun *bool `type:"boolean"`
  20196. // The ID of the instance.
  20197. InstanceId *string `type:"string" required:"true"`
  20198. // When set to true, acts as keystroke input and wakes up an instance that's
  20199. // in standby or "sleep" mode.
  20200. WakeUp *bool `type:"boolean"`
  20201. }
  20202. // String returns the string representation
  20203. func (s GetConsoleScreenshotInput) String() string {
  20204. return awsutil.Prettify(s)
  20205. }
  20206. // GoString returns the string representation
  20207. func (s GetConsoleScreenshotInput) GoString() string {
  20208. return s.String()
  20209. }
  20210. // Validate inspects the fields of the type to determine if they are valid.
  20211. func (s *GetConsoleScreenshotInput) Validate() error {
  20212. invalidParams := request.ErrInvalidParams{Context: "GetConsoleScreenshotInput"}
  20213. if s.InstanceId == nil {
  20214. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  20215. }
  20216. if invalidParams.Len() > 0 {
  20217. return invalidParams
  20218. }
  20219. return nil
  20220. }
  20221. // Contains the output of the request.
  20222. type GetConsoleScreenshotOutput struct {
  20223. _ struct{} `type:"structure"`
  20224. // The data that comprises the image.
  20225. ImageData *string `locationName:"imageData" type:"string"`
  20226. // The ID of the instance.
  20227. InstanceId *string `locationName:"instanceId" type:"string"`
  20228. }
  20229. // String returns the string representation
  20230. func (s GetConsoleScreenshotOutput) String() string {
  20231. return awsutil.Prettify(s)
  20232. }
  20233. // GoString returns the string representation
  20234. func (s GetConsoleScreenshotOutput) GoString() string {
  20235. return s.String()
  20236. }
  20237. // Contains the parameters for GetPasswordData.
  20238. type GetPasswordDataInput struct {
  20239. _ struct{} `type:"structure"`
  20240. // Checks whether you have the required permissions for the action, without
  20241. // actually making the request, and provides an error response. If you have
  20242. // the required permissions, the error response is DryRunOperation. Otherwise,
  20243. // it is UnauthorizedOperation.
  20244. DryRun *bool `locationName:"dryRun" type:"boolean"`
  20245. // The ID of the Windows instance.
  20246. InstanceId *string `type:"string" required:"true"`
  20247. }
  20248. // String returns the string representation
  20249. func (s GetPasswordDataInput) String() string {
  20250. return awsutil.Prettify(s)
  20251. }
  20252. // GoString returns the string representation
  20253. func (s GetPasswordDataInput) GoString() string {
  20254. return s.String()
  20255. }
  20256. // Validate inspects the fields of the type to determine if they are valid.
  20257. func (s *GetPasswordDataInput) Validate() error {
  20258. invalidParams := request.ErrInvalidParams{Context: "GetPasswordDataInput"}
  20259. if s.InstanceId == nil {
  20260. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  20261. }
  20262. if invalidParams.Len() > 0 {
  20263. return invalidParams
  20264. }
  20265. return nil
  20266. }
  20267. // Contains the output of GetPasswordData.
  20268. type GetPasswordDataOutput struct {
  20269. _ struct{} `type:"structure"`
  20270. // The ID of the Windows instance.
  20271. InstanceId *string `locationName:"instanceId" type:"string"`
  20272. // The password of the instance.
  20273. PasswordData *string `locationName:"passwordData" type:"string"`
  20274. // The time the data was last updated.
  20275. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  20276. }
  20277. // String returns the string representation
  20278. func (s GetPasswordDataOutput) String() string {
  20279. return awsutil.Prettify(s)
  20280. }
  20281. // GoString returns the string representation
  20282. func (s GetPasswordDataOutput) GoString() string {
  20283. return s.String()
  20284. }
  20285. // Describes a security group.
  20286. type GroupIdentifier struct {
  20287. _ struct{} `type:"structure"`
  20288. // The ID of the security group.
  20289. GroupId *string `locationName:"groupId" type:"string"`
  20290. // The name of the security group.
  20291. GroupName *string `locationName:"groupName" type:"string"`
  20292. }
  20293. // String returns the string representation
  20294. func (s GroupIdentifier) String() string {
  20295. return awsutil.Prettify(s)
  20296. }
  20297. // GoString returns the string representation
  20298. func (s GroupIdentifier) GoString() string {
  20299. return s.String()
  20300. }
  20301. // Describes an event in the history of the Spot fleet request.
  20302. type HistoryRecord struct {
  20303. _ struct{} `type:"structure"`
  20304. // Information about the event.
  20305. EventInformation *EventInformation `locationName:"eventInformation" type:"structure" required:"true"`
  20306. // The event type.
  20307. //
  20308. // error - Indicates an error with the Spot fleet request.
  20309. //
  20310. // fleetRequestChange - Indicates a change in the status or configuration
  20311. // of the Spot fleet request.
  20312. //
  20313. // instanceChange - Indicates that an instance was launched or terminated.
  20314. EventType *string `locationName:"eventType" type:"string" required:"true" enum:"EventType"`
  20315. // The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  20316. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  20317. }
  20318. // String returns the string representation
  20319. func (s HistoryRecord) String() string {
  20320. return awsutil.Prettify(s)
  20321. }
  20322. // GoString returns the string representation
  20323. func (s HistoryRecord) GoString() string {
  20324. return s.String()
  20325. }
  20326. // Describes the properties of the Dedicated host.
  20327. type Host struct {
  20328. _ struct{} `type:"structure"`
  20329. // Whether auto-placement is on or off.
  20330. AutoPlacement *string `locationName:"autoPlacement" type:"string" enum:"AutoPlacement"`
  20331. // The Availability Zone of the Dedicated host.
  20332. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  20333. // The number of new instances that can be launched onto the Dedicated host.
  20334. AvailableCapacity *AvailableCapacity `locationName:"availableCapacity" type:"structure"`
  20335. // Unique, case-sensitive identifier you provide to ensure idempotency of the
  20336. // request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  20337. // in the Amazon Elastic Compute Cloud User Guide.
  20338. ClientToken *string `locationName:"clientToken" type:"string"`
  20339. // The ID of the Dedicated host.
  20340. HostId *string `locationName:"hostId" type:"string"`
  20341. // The hardware specifications of the Dedicated host.
  20342. HostProperties *HostProperties `locationName:"hostProperties" type:"structure"`
  20343. // The reservation ID of the Dedicated host. This returns a null response if
  20344. // the Dedicated host doesn't have an associated reservation.
  20345. HostReservationId *string `locationName:"hostReservationId" type:"string"`
  20346. // The IDs and instance type that are currently running on the Dedicated host.
  20347. Instances []*HostInstance `locationName:"instances" locationNameList:"item" type:"list"`
  20348. // The Dedicated host's state.
  20349. State *string `locationName:"state" type:"string" enum:"AllocationState"`
  20350. }
  20351. // String returns the string representation
  20352. func (s Host) String() string {
  20353. return awsutil.Prettify(s)
  20354. }
  20355. // GoString returns the string representation
  20356. func (s Host) GoString() string {
  20357. return s.String()
  20358. }
  20359. // Describes an instance running on a Dedicated host.
  20360. type HostInstance struct {
  20361. _ struct{} `type:"structure"`
  20362. // the IDs of instances that are running on the Dedicated host.
  20363. InstanceId *string `locationName:"instanceId" type:"string"`
  20364. // The instance type size (for example, m3.medium) of the running instance.
  20365. InstanceType *string `locationName:"instanceType" type:"string"`
  20366. }
  20367. // String returns the string representation
  20368. func (s HostInstance) String() string {
  20369. return awsutil.Prettify(s)
  20370. }
  20371. // GoString returns the string representation
  20372. func (s HostInstance) GoString() string {
  20373. return s.String()
  20374. }
  20375. // Describes properties of a Dedicated host.
  20376. type HostProperties struct {
  20377. _ struct{} `type:"structure"`
  20378. // The number of cores on the Dedicated host.
  20379. Cores *int64 `locationName:"cores" type:"integer"`
  20380. // The instance type size that the Dedicated host supports (for example, m3.medium).
  20381. InstanceType *string `locationName:"instanceType" type:"string"`
  20382. // The number of sockets on the Dedicated host.
  20383. Sockets *int64 `locationName:"sockets" type:"integer"`
  20384. // The number of vCPUs on the Dedicated host.
  20385. TotalVCpus *int64 `locationName:"totalVCpus" type:"integer"`
  20386. }
  20387. // String returns the string representation
  20388. func (s HostProperties) String() string {
  20389. return awsutil.Prettify(s)
  20390. }
  20391. // GoString returns the string representation
  20392. func (s HostProperties) GoString() string {
  20393. return s.String()
  20394. }
  20395. // Describes an IAM instance profile.
  20396. type IamInstanceProfile struct {
  20397. _ struct{} `type:"structure"`
  20398. // The Amazon Resource Name (ARN) of the instance profile.
  20399. Arn *string `locationName:"arn" type:"string"`
  20400. // The ID of the instance profile.
  20401. Id *string `locationName:"id" type:"string"`
  20402. }
  20403. // String returns the string representation
  20404. func (s IamInstanceProfile) String() string {
  20405. return awsutil.Prettify(s)
  20406. }
  20407. // GoString returns the string representation
  20408. func (s IamInstanceProfile) GoString() string {
  20409. return s.String()
  20410. }
  20411. // Describes an IAM instance profile.
  20412. type IamInstanceProfileSpecification struct {
  20413. _ struct{} `type:"structure"`
  20414. // The Amazon Resource Name (ARN) of the instance profile.
  20415. Arn *string `locationName:"arn" type:"string"`
  20416. // The name of the instance profile.
  20417. Name *string `locationName:"name" type:"string"`
  20418. }
  20419. // String returns the string representation
  20420. func (s IamInstanceProfileSpecification) String() string {
  20421. return awsutil.Prettify(s)
  20422. }
  20423. // GoString returns the string representation
  20424. func (s IamInstanceProfileSpecification) GoString() string {
  20425. return s.String()
  20426. }
  20427. // Describes the ICMP type and code.
  20428. type IcmpTypeCode struct {
  20429. _ struct{} `type:"structure"`
  20430. // The ICMP type. A value of -1 means all types.
  20431. Code *int64 `locationName:"code" type:"integer"`
  20432. // The ICMP code. A value of -1 means all codes for the specified ICMP type.
  20433. Type *int64 `locationName:"type" type:"integer"`
  20434. }
  20435. // String returns the string representation
  20436. func (s IcmpTypeCode) String() string {
  20437. return awsutil.Prettify(s)
  20438. }
  20439. // GoString returns the string representation
  20440. func (s IcmpTypeCode) GoString() string {
  20441. return s.String()
  20442. }
  20443. // Describes the ID format for a resource.
  20444. type IdFormat struct {
  20445. _ struct{} `type:"structure"`
  20446. // The date in UTC at which you are permanently switched over to using longer
  20447. // IDs. If a deadline is not yet available for this resource type, this field
  20448. // is not returned.
  20449. Deadline *time.Time `locationName:"deadline" type:"timestamp" timestampFormat:"iso8601"`
  20450. // The type of resource.
  20451. Resource *string `locationName:"resource" type:"string"`
  20452. // Indicates whether longer IDs (17-character IDs) are enabled for the resource.
  20453. UseLongIds *bool `locationName:"useLongIds" type:"boolean"`
  20454. }
  20455. // String returns the string representation
  20456. func (s IdFormat) String() string {
  20457. return awsutil.Prettify(s)
  20458. }
  20459. // GoString returns the string representation
  20460. func (s IdFormat) GoString() string {
  20461. return s.String()
  20462. }
  20463. // Describes an image.
  20464. type Image struct {
  20465. _ struct{} `type:"structure"`
  20466. // The architecture of the image.
  20467. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  20468. // Any block device mapping entries.
  20469. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  20470. // The date and time the image was created.
  20471. CreationDate *string `locationName:"creationDate" type:"string"`
  20472. // The description of the AMI that was provided during image creation.
  20473. Description *string `locationName:"description" type:"string"`
  20474. // Specifies whether enhanced networking with ENA is enabled.
  20475. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  20476. // The hypervisor type of the image.
  20477. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"`
  20478. // The ID of the AMI.
  20479. ImageId *string `locationName:"imageId" type:"string"`
  20480. // The location of the AMI.
  20481. ImageLocation *string `locationName:"imageLocation" type:"string"`
  20482. // The AWS account alias (for example, amazon, self) or the AWS account ID of
  20483. // the AMI owner.
  20484. ImageOwnerAlias *string `locationName:"imageOwnerAlias" type:"string"`
  20485. // The type of image.
  20486. ImageType *string `locationName:"imageType" type:"string" enum:"ImageTypeValues"`
  20487. // The kernel associated with the image, if any. Only applicable for machine
  20488. // images.
  20489. KernelId *string `locationName:"kernelId" type:"string"`
  20490. // The name of the AMI that was provided during image creation.
  20491. Name *string `locationName:"name" type:"string"`
  20492. // The AWS account ID of the image owner.
  20493. OwnerId *string `locationName:"imageOwnerId" type:"string"`
  20494. // The value is Windows for Windows AMIs; otherwise blank.
  20495. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  20496. // Any product codes associated with the AMI.
  20497. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  20498. // Indicates whether the image has public launch permissions. The value is true
  20499. // if this image has public launch permissions or false if it has only implicit
  20500. // and explicit launch permissions.
  20501. Public *bool `locationName:"isPublic" type:"boolean"`
  20502. // The RAM disk associated with the image, if any. Only applicable for machine
  20503. // images.
  20504. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  20505. // The device name of the root device (for example, /dev/sda1 or /dev/xvda).
  20506. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  20507. // The type of root device used by the AMI. The AMI can use an EBS volume or
  20508. // an instance store volume.
  20509. RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"`
  20510. // Specifies whether enhanced networking with the Intel 82599 Virtual Function
  20511. // interface is enabled.
  20512. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  20513. // The current state of the AMI. If the state is available, the image is successfully
  20514. // registered and can be used to launch an instance.
  20515. State *string `locationName:"imageState" type:"string" enum:"ImageState"`
  20516. // The reason for the state change.
  20517. StateReason *StateReason `locationName:"stateReason" type:"structure"`
  20518. // Any tags assigned to the image.
  20519. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  20520. // The type of virtualization of the AMI.
  20521. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"`
  20522. }
  20523. // String returns the string representation
  20524. func (s Image) String() string {
  20525. return awsutil.Prettify(s)
  20526. }
  20527. // GoString returns the string representation
  20528. func (s Image) GoString() string {
  20529. return s.String()
  20530. }
  20531. // Describes the disk container object for an import image task.
  20532. type ImageDiskContainer struct {
  20533. _ struct{} `type:"structure"`
  20534. // The description of the disk image.
  20535. Description *string `type:"string"`
  20536. // The block device mapping for the disk.
  20537. DeviceName *string `type:"string"`
  20538. // The format of the disk image being imported.
  20539. //
  20540. // Valid values: RAW | VHD | VMDK | OVA
  20541. Format *string `type:"string"`
  20542. // The ID of the EBS snapshot to be used for importing the snapshot.
  20543. SnapshotId *string `type:"string"`
  20544. // The URL to the Amazon S3-based disk image being imported. The URL can either
  20545. // be a https URL (https://..) or an Amazon S3 URL (s3://..)
  20546. Url *string `type:"string"`
  20547. // The S3 bucket for the disk image.
  20548. UserBucket *UserBucket `type:"structure"`
  20549. }
  20550. // String returns the string representation
  20551. func (s ImageDiskContainer) String() string {
  20552. return awsutil.Prettify(s)
  20553. }
  20554. // GoString returns the string representation
  20555. func (s ImageDiskContainer) GoString() string {
  20556. return s.String()
  20557. }
  20558. // Contains the parameters for ImportImage.
  20559. type ImportImageInput struct {
  20560. _ struct{} `type:"structure"`
  20561. // The architecture of the virtual machine.
  20562. //
  20563. // Valid values: i386 | x86_64
  20564. Architecture *string `type:"string"`
  20565. // The client-specific data.
  20566. ClientData *ClientData `type:"structure"`
  20567. // The token to enable idempotency for VM import requests.
  20568. ClientToken *string `type:"string"`
  20569. // A description string for the import image task.
  20570. Description *string `type:"string"`
  20571. // Information about the disk containers.
  20572. DiskContainers []*ImageDiskContainer `locationName:"DiskContainer" locationNameList:"item" type:"list"`
  20573. // Checks whether you have the required permissions for the action, without
  20574. // actually making the request, and provides an error response. If you have
  20575. // the required permissions, the error response is DryRunOperation. Otherwise,
  20576. // it is UnauthorizedOperation.
  20577. DryRun *bool `type:"boolean"`
  20578. // The target hypervisor platform.
  20579. //
  20580. // Valid values: xen
  20581. Hypervisor *string `type:"string"`
  20582. // The license type to be used for the Amazon Machine Image (AMI) after importing.
  20583. //
  20584. // Note: You may only use BYOL if you have existing licenses with rights to
  20585. // use these licenses in a third party cloud like AWS. For more information,
  20586. // see VM Import/Export Prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/VMImportPrerequisites.html)
  20587. // in the Amazon Elastic Compute Cloud User Guide.
  20588. //
  20589. // Valid values: AWS | BYOL
  20590. LicenseType *string `type:"string"`
  20591. // The operating system of the virtual machine.
  20592. //
  20593. // Valid values: Windows | Linux
  20594. Platform *string `type:"string"`
  20595. // The name of the role to use when not using the default role, 'vmimport'.
  20596. RoleName *string `type:"string"`
  20597. }
  20598. // String returns the string representation
  20599. func (s ImportImageInput) String() string {
  20600. return awsutil.Prettify(s)
  20601. }
  20602. // GoString returns the string representation
  20603. func (s ImportImageInput) GoString() string {
  20604. return s.String()
  20605. }
  20606. // Contains the output for ImportImage.
  20607. type ImportImageOutput struct {
  20608. _ struct{} `type:"structure"`
  20609. // The architecture of the virtual machine.
  20610. Architecture *string `locationName:"architecture" type:"string"`
  20611. // A description of the import task.
  20612. Description *string `locationName:"description" type:"string"`
  20613. // The target hypervisor of the import task.
  20614. Hypervisor *string `locationName:"hypervisor" type:"string"`
  20615. // The ID of the Amazon Machine Image (AMI) created by the import task.
  20616. ImageId *string `locationName:"imageId" type:"string"`
  20617. // The task ID of the import image task.
  20618. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  20619. // The license type of the virtual machine.
  20620. LicenseType *string `locationName:"licenseType" type:"string"`
  20621. // The operating system of the virtual machine.
  20622. Platform *string `locationName:"platform" type:"string"`
  20623. // The progress of the task.
  20624. Progress *string `locationName:"progress" type:"string"`
  20625. // Information about the snapshots.
  20626. SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`
  20627. // A brief status of the task.
  20628. Status *string `locationName:"status" type:"string"`
  20629. // A detailed status message of the import task.
  20630. StatusMessage *string `locationName:"statusMessage" type:"string"`
  20631. }
  20632. // String returns the string representation
  20633. func (s ImportImageOutput) String() string {
  20634. return awsutil.Prettify(s)
  20635. }
  20636. // GoString returns the string representation
  20637. func (s ImportImageOutput) GoString() string {
  20638. return s.String()
  20639. }
  20640. // Describes an import image task.
  20641. type ImportImageTask struct {
  20642. _ struct{} `type:"structure"`
  20643. // The architecture of the virtual machine.
  20644. //
  20645. // Valid values: i386 | x86_64
  20646. Architecture *string `locationName:"architecture" type:"string"`
  20647. // A description of the import task.
  20648. Description *string `locationName:"description" type:"string"`
  20649. // The target hypervisor for the import task.
  20650. //
  20651. // Valid values: xen
  20652. Hypervisor *string `locationName:"hypervisor" type:"string"`
  20653. // The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
  20654. ImageId *string `locationName:"imageId" type:"string"`
  20655. // The ID of the import image task.
  20656. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  20657. // The license type of the virtual machine.
  20658. LicenseType *string `locationName:"licenseType" type:"string"`
  20659. // The description string for the import image task.
  20660. Platform *string `locationName:"platform" type:"string"`
  20661. // The percentage of progress of the import image task.
  20662. Progress *string `locationName:"progress" type:"string"`
  20663. // Information about the snapshots.
  20664. SnapshotDetails []*SnapshotDetail `locationName:"snapshotDetailSet" locationNameList:"item" type:"list"`
  20665. // A brief status for the import image task.
  20666. Status *string `locationName:"status" type:"string"`
  20667. // A descriptive status message for the import image task.
  20668. StatusMessage *string `locationName:"statusMessage" type:"string"`
  20669. }
  20670. // String returns the string representation
  20671. func (s ImportImageTask) String() string {
  20672. return awsutil.Prettify(s)
  20673. }
  20674. // GoString returns the string representation
  20675. func (s ImportImageTask) GoString() string {
  20676. return s.String()
  20677. }
  20678. // Contains the parameters for ImportInstance.
  20679. type ImportInstanceInput struct {
  20680. _ struct{} `type:"structure"`
  20681. // A description for the instance being imported.
  20682. Description *string `locationName:"description" type:"string"`
  20683. // The disk image.
  20684. DiskImages []*DiskImage `locationName:"diskImage" type:"list"`
  20685. // Checks whether you have the required permissions for the action, without
  20686. // actually making the request, and provides an error response. If you have
  20687. // the required permissions, the error response is DryRunOperation. Otherwise,
  20688. // it is UnauthorizedOperation.
  20689. DryRun *bool `locationName:"dryRun" type:"boolean"`
  20690. // The launch specification.
  20691. LaunchSpecification *ImportInstanceLaunchSpecification `locationName:"launchSpecification" type:"structure"`
  20692. // The instance operating system.
  20693. Platform *string `locationName:"platform" type:"string" required:"true" enum:"PlatformValues"`
  20694. }
  20695. // String returns the string representation
  20696. func (s ImportInstanceInput) String() string {
  20697. return awsutil.Prettify(s)
  20698. }
  20699. // GoString returns the string representation
  20700. func (s ImportInstanceInput) GoString() string {
  20701. return s.String()
  20702. }
  20703. // Validate inspects the fields of the type to determine if they are valid.
  20704. func (s *ImportInstanceInput) Validate() error {
  20705. invalidParams := request.ErrInvalidParams{Context: "ImportInstanceInput"}
  20706. if s.Platform == nil {
  20707. invalidParams.Add(request.NewErrParamRequired("Platform"))
  20708. }
  20709. if s.DiskImages != nil {
  20710. for i, v := range s.DiskImages {
  20711. if v == nil {
  20712. continue
  20713. }
  20714. if err := v.Validate(); err != nil {
  20715. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DiskImages", i), err.(request.ErrInvalidParams))
  20716. }
  20717. }
  20718. }
  20719. if invalidParams.Len() > 0 {
  20720. return invalidParams
  20721. }
  20722. return nil
  20723. }
  20724. // Describes the launch specification for VM import.
  20725. type ImportInstanceLaunchSpecification struct {
  20726. _ struct{} `type:"structure"`
  20727. // Reserved.
  20728. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  20729. // The architecture of the instance.
  20730. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  20731. // One or more security group IDs.
  20732. GroupIds []*string `locationName:"GroupId" locationNameList:"SecurityGroupId" type:"list"`
  20733. // One or more security group names.
  20734. GroupNames []*string `locationName:"GroupName" locationNameList:"SecurityGroup" type:"list"`
  20735. // Indicates whether an instance stops or terminates when you initiate shutdown
  20736. // from the instance (using the operating system command for system shutdown).
  20737. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  20738. // The instance type. For more information about the instance types that you
  20739. // can import, see Before You Get Started (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/VMImportPrerequisites.html)
  20740. // in the Amazon Elastic Compute Cloud User Guide.
  20741. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  20742. // Indicates whether monitoring is enabled.
  20743. Monitoring *bool `locationName:"monitoring" type:"boolean"`
  20744. // The placement information for the instance.
  20745. Placement *Placement `locationName:"placement" type:"structure"`
  20746. // [EC2-VPC] An available IP address from the IP address range of the subnet.
  20747. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  20748. // [EC2-VPC] The ID of the subnet in which to launch the instance.
  20749. SubnetId *string `locationName:"subnetId" type:"string"`
  20750. // The user data to make available to the instance. If you are using an AWS
  20751. // SDK or command line tool, Base64-encoding is performed for you, and you can
  20752. // load the text from a file. Otherwise, you must provide Base64-encoded text.
  20753. UserData *UserData `locationName:"userData" type:"structure"`
  20754. }
  20755. // String returns the string representation
  20756. func (s ImportInstanceLaunchSpecification) String() string {
  20757. return awsutil.Prettify(s)
  20758. }
  20759. // GoString returns the string representation
  20760. func (s ImportInstanceLaunchSpecification) GoString() string {
  20761. return s.String()
  20762. }
  20763. // Contains the output for ImportInstance.
  20764. type ImportInstanceOutput struct {
  20765. _ struct{} `type:"structure"`
  20766. // Information about the conversion task.
  20767. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
  20768. }
  20769. // String returns the string representation
  20770. func (s ImportInstanceOutput) String() string {
  20771. return awsutil.Prettify(s)
  20772. }
  20773. // GoString returns the string representation
  20774. func (s ImportInstanceOutput) GoString() string {
  20775. return s.String()
  20776. }
  20777. // Describes an import instance task.
  20778. type ImportInstanceTaskDetails struct {
  20779. _ struct{} `type:"structure"`
  20780. // A description of the task.
  20781. Description *string `locationName:"description" type:"string"`
  20782. // The ID of the instance.
  20783. InstanceId *string `locationName:"instanceId" type:"string"`
  20784. // The instance operating system.
  20785. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  20786. // One or more volumes.
  20787. Volumes []*ImportInstanceVolumeDetailItem `locationName:"volumes" locationNameList:"item" type:"list" required:"true"`
  20788. }
  20789. // String returns the string representation
  20790. func (s ImportInstanceTaskDetails) String() string {
  20791. return awsutil.Prettify(s)
  20792. }
  20793. // GoString returns the string representation
  20794. func (s ImportInstanceTaskDetails) GoString() string {
  20795. return s.String()
  20796. }
  20797. // Describes an import volume task.
  20798. type ImportInstanceVolumeDetailItem struct {
  20799. _ struct{} `type:"structure"`
  20800. // The Availability Zone where the resulting instance will reside.
  20801. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  20802. // The number of bytes converted so far.
  20803. BytesConverted *int64 `locationName:"bytesConverted" type:"long" required:"true"`
  20804. // A description of the task.
  20805. Description *string `locationName:"description" type:"string"`
  20806. // The image.
  20807. Image *DiskImageDescription `locationName:"image" type:"structure" required:"true"`
  20808. // The status of the import of this particular disk image.
  20809. Status *string `locationName:"status" type:"string" required:"true"`
  20810. // The status information or errors related to the disk image.
  20811. StatusMessage *string `locationName:"statusMessage" type:"string"`
  20812. // The volume.
  20813. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure" required:"true"`
  20814. }
  20815. // String returns the string representation
  20816. func (s ImportInstanceVolumeDetailItem) String() string {
  20817. return awsutil.Prettify(s)
  20818. }
  20819. // GoString returns the string representation
  20820. func (s ImportInstanceVolumeDetailItem) GoString() string {
  20821. return s.String()
  20822. }
  20823. // Contains the parameters for ImportKeyPair.
  20824. type ImportKeyPairInput struct {
  20825. _ struct{} `type:"structure"`
  20826. // Checks whether you have the required permissions for the action, without
  20827. // actually making the request, and provides an error response. If you have
  20828. // the required permissions, the error response is DryRunOperation. Otherwise,
  20829. // it is UnauthorizedOperation.
  20830. DryRun *bool `locationName:"dryRun" type:"boolean"`
  20831. // A unique name for the key pair.
  20832. KeyName *string `locationName:"keyName" type:"string" required:"true"`
  20833. // The public key. For API calls, the text must be base64-encoded. For command
  20834. // line tools, base64 encoding is performed for you.
  20835. //
  20836. // PublicKeyMaterial is automatically base64 encoded/decoded by the SDK.
  20837. PublicKeyMaterial []byte `locationName:"publicKeyMaterial" type:"blob" required:"true"`
  20838. }
  20839. // String returns the string representation
  20840. func (s ImportKeyPairInput) String() string {
  20841. return awsutil.Prettify(s)
  20842. }
  20843. // GoString returns the string representation
  20844. func (s ImportKeyPairInput) GoString() string {
  20845. return s.String()
  20846. }
  20847. // Validate inspects the fields of the type to determine if they are valid.
  20848. func (s *ImportKeyPairInput) Validate() error {
  20849. invalidParams := request.ErrInvalidParams{Context: "ImportKeyPairInput"}
  20850. if s.KeyName == nil {
  20851. invalidParams.Add(request.NewErrParamRequired("KeyName"))
  20852. }
  20853. if s.PublicKeyMaterial == nil {
  20854. invalidParams.Add(request.NewErrParamRequired("PublicKeyMaterial"))
  20855. }
  20856. if invalidParams.Len() > 0 {
  20857. return invalidParams
  20858. }
  20859. return nil
  20860. }
  20861. // Contains the output of ImportKeyPair.
  20862. type ImportKeyPairOutput struct {
  20863. _ struct{} `type:"structure"`
  20864. // The MD5 public key fingerprint as specified in section 4 of RFC 4716.
  20865. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  20866. // The key pair name you provided.
  20867. KeyName *string `locationName:"keyName" type:"string"`
  20868. }
  20869. // String returns the string representation
  20870. func (s ImportKeyPairOutput) String() string {
  20871. return awsutil.Prettify(s)
  20872. }
  20873. // GoString returns the string representation
  20874. func (s ImportKeyPairOutput) GoString() string {
  20875. return s.String()
  20876. }
  20877. // Contains the parameters for ImportSnapshot.
  20878. type ImportSnapshotInput struct {
  20879. _ struct{} `type:"structure"`
  20880. // The client-specific data.
  20881. ClientData *ClientData `type:"structure"`
  20882. // Token to enable idempotency for VM import requests.
  20883. ClientToken *string `type:"string"`
  20884. // The description string for the import snapshot task.
  20885. Description *string `type:"string"`
  20886. // Information about the disk container.
  20887. DiskContainer *SnapshotDiskContainer `type:"structure"`
  20888. // Checks whether you have the required permissions for the action, without
  20889. // actually making the request, and provides an error response. If you have
  20890. // the required permissions, the error response is DryRunOperation. Otherwise,
  20891. // it is UnauthorizedOperation.
  20892. DryRun *bool `type:"boolean"`
  20893. // The name of the role to use when not using the default role, 'vmimport'.
  20894. RoleName *string `type:"string"`
  20895. }
  20896. // String returns the string representation
  20897. func (s ImportSnapshotInput) String() string {
  20898. return awsutil.Prettify(s)
  20899. }
  20900. // GoString returns the string representation
  20901. func (s ImportSnapshotInput) GoString() string {
  20902. return s.String()
  20903. }
  20904. // Contains the output for ImportSnapshot.
  20905. type ImportSnapshotOutput struct {
  20906. _ struct{} `type:"structure"`
  20907. // A description of the import snapshot task.
  20908. Description *string `locationName:"description" type:"string"`
  20909. // The ID of the import snapshot task.
  20910. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  20911. // Information about the import snapshot task.
  20912. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`
  20913. }
  20914. // String returns the string representation
  20915. func (s ImportSnapshotOutput) String() string {
  20916. return awsutil.Prettify(s)
  20917. }
  20918. // GoString returns the string representation
  20919. func (s ImportSnapshotOutput) GoString() string {
  20920. return s.String()
  20921. }
  20922. // Describes an import snapshot task.
  20923. type ImportSnapshotTask struct {
  20924. _ struct{} `type:"structure"`
  20925. // A description of the import snapshot task.
  20926. Description *string `locationName:"description" type:"string"`
  20927. // The ID of the import snapshot task.
  20928. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  20929. // Describes an import snapshot task.
  20930. SnapshotTaskDetail *SnapshotTaskDetail `locationName:"snapshotTaskDetail" type:"structure"`
  20931. }
  20932. // String returns the string representation
  20933. func (s ImportSnapshotTask) String() string {
  20934. return awsutil.Prettify(s)
  20935. }
  20936. // GoString returns the string representation
  20937. func (s ImportSnapshotTask) GoString() string {
  20938. return s.String()
  20939. }
  20940. // Contains the parameters for ImportVolume.
  20941. type ImportVolumeInput struct {
  20942. _ struct{} `type:"structure"`
  20943. // The Availability Zone for the resulting EBS volume.
  20944. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  20945. // A description of the volume.
  20946. Description *string `locationName:"description" type:"string"`
  20947. // Checks whether you have the required permissions for the action, without
  20948. // actually making the request, and provides an error response. If you have
  20949. // the required permissions, the error response is DryRunOperation. Otherwise,
  20950. // it is UnauthorizedOperation.
  20951. DryRun *bool `locationName:"dryRun" type:"boolean"`
  20952. // The disk image.
  20953. Image *DiskImageDetail `locationName:"image" type:"structure" required:"true"`
  20954. // The volume size.
  20955. Volume *VolumeDetail `locationName:"volume" type:"structure" required:"true"`
  20956. }
  20957. // String returns the string representation
  20958. func (s ImportVolumeInput) String() string {
  20959. return awsutil.Prettify(s)
  20960. }
  20961. // GoString returns the string representation
  20962. func (s ImportVolumeInput) GoString() string {
  20963. return s.String()
  20964. }
  20965. // Validate inspects the fields of the type to determine if they are valid.
  20966. func (s *ImportVolumeInput) Validate() error {
  20967. invalidParams := request.ErrInvalidParams{Context: "ImportVolumeInput"}
  20968. if s.AvailabilityZone == nil {
  20969. invalidParams.Add(request.NewErrParamRequired("AvailabilityZone"))
  20970. }
  20971. if s.Image == nil {
  20972. invalidParams.Add(request.NewErrParamRequired("Image"))
  20973. }
  20974. if s.Volume == nil {
  20975. invalidParams.Add(request.NewErrParamRequired("Volume"))
  20976. }
  20977. if s.Image != nil {
  20978. if err := s.Image.Validate(); err != nil {
  20979. invalidParams.AddNested("Image", err.(request.ErrInvalidParams))
  20980. }
  20981. }
  20982. if s.Volume != nil {
  20983. if err := s.Volume.Validate(); err != nil {
  20984. invalidParams.AddNested("Volume", err.(request.ErrInvalidParams))
  20985. }
  20986. }
  20987. if invalidParams.Len() > 0 {
  20988. return invalidParams
  20989. }
  20990. return nil
  20991. }
  20992. // Contains the output for ImportVolume.
  20993. type ImportVolumeOutput struct {
  20994. _ struct{} `type:"structure"`
  20995. // Information about the conversion task.
  20996. ConversionTask *ConversionTask `locationName:"conversionTask" type:"structure"`
  20997. }
  20998. // String returns the string representation
  20999. func (s ImportVolumeOutput) String() string {
  21000. return awsutil.Prettify(s)
  21001. }
  21002. // GoString returns the string representation
  21003. func (s ImportVolumeOutput) GoString() string {
  21004. return s.String()
  21005. }
  21006. // Describes an import volume task.
  21007. type ImportVolumeTaskDetails struct {
  21008. _ struct{} `type:"structure"`
  21009. // The Availability Zone where the resulting volume will reside.
  21010. AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"`
  21011. // The number of bytes converted so far.
  21012. BytesConverted *int64 `locationName:"bytesConverted" type:"long" required:"true"`
  21013. // The description you provided when starting the import volume task.
  21014. Description *string `locationName:"description" type:"string"`
  21015. // The image.
  21016. Image *DiskImageDescription `locationName:"image" type:"structure" required:"true"`
  21017. // The volume.
  21018. Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure" required:"true"`
  21019. }
  21020. // String returns the string representation
  21021. func (s ImportVolumeTaskDetails) String() string {
  21022. return awsutil.Prettify(s)
  21023. }
  21024. // GoString returns the string representation
  21025. func (s ImportVolumeTaskDetails) GoString() string {
  21026. return s.String()
  21027. }
  21028. // Describes an instance.
  21029. type Instance struct {
  21030. _ struct{} `type:"structure"`
  21031. // The AMI launch index, which can be used to find this instance in the launch
  21032. // group.
  21033. AmiLaunchIndex *int64 `locationName:"amiLaunchIndex" type:"integer"`
  21034. // The architecture of the image.
  21035. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  21036. // Any block device mapping entries for the instance.
  21037. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  21038. // The idempotency token you provided when you launched the instance, if applicable.
  21039. ClientToken *string `locationName:"clientToken" type:"string"`
  21040. // Indicates whether the instance is optimized for EBS I/O. This optimization
  21041. // provides dedicated throughput to Amazon EBS and an optimized configuration
  21042. // stack to provide optimal I/O performance. This optimization isn't available
  21043. // with all instance types. Additional usage charges apply when using an EBS
  21044. // Optimized instance.
  21045. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  21046. // Specifies whether enhanced networking with ENA is enabled.
  21047. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  21048. // The hypervisor type of the instance.
  21049. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"`
  21050. // The IAM instance profile associated with the instance, if applicable.
  21051. IamInstanceProfile *IamInstanceProfile `locationName:"iamInstanceProfile" type:"structure"`
  21052. // The ID of the AMI used to launch the instance.
  21053. ImageId *string `locationName:"imageId" type:"string"`
  21054. // The ID of the instance.
  21055. InstanceId *string `locationName:"instanceId" type:"string"`
  21056. // Indicates whether this is a Spot instance or a Scheduled Instance.
  21057. InstanceLifecycle *string `locationName:"instanceLifecycle" type:"string" enum:"InstanceLifecycleType"`
  21058. // The instance type.
  21059. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  21060. // The kernel associated with this instance, if applicable.
  21061. KernelId *string `locationName:"kernelId" type:"string"`
  21062. // The name of the key pair, if this instance was launched with an associated
  21063. // key pair.
  21064. KeyName *string `locationName:"keyName" type:"string"`
  21065. // The time the instance was launched.
  21066. LaunchTime *time.Time `locationName:"launchTime" type:"timestamp" timestampFormat:"iso8601"`
  21067. // The monitoring information for the instance.
  21068. Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
  21069. // [EC2-VPC] One or more network interfaces for the instance.
  21070. NetworkInterfaces []*InstanceNetworkInterface `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  21071. // The location where the instance launched, if applicable.
  21072. Placement *Placement `locationName:"placement" type:"structure"`
  21073. // The value is Windows for Windows instances; otherwise blank.
  21074. Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"`
  21075. // The private DNS name assigned to the instance. This DNS name can only be
  21076. // used inside the Amazon EC2 network. This name is not available until the
  21077. // instance enters the running state. For EC2-VPC, this name is only available
  21078. // if you've enabled DNS hostnames for your VPC.
  21079. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  21080. // The private IP address assigned to the instance.
  21081. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  21082. // The product codes attached to this instance, if applicable.
  21083. ProductCodes []*ProductCode `locationName:"productCodes" locationNameList:"item" type:"list"`
  21084. // The public DNS name assigned to the instance. This name is not available
  21085. // until the instance enters the running state. For EC2-VPC, this name is only
  21086. // available if you've enabled DNS hostnames for your VPC.
  21087. PublicDnsName *string `locationName:"dnsName" type:"string"`
  21088. // The public IP address assigned to the instance, if applicable.
  21089. PublicIpAddress *string `locationName:"ipAddress" type:"string"`
  21090. // The RAM disk associated with this instance, if applicable.
  21091. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  21092. // The root device name (for example, /dev/sda1 or /dev/xvda).
  21093. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  21094. // The root device type used by the AMI. The AMI can use an EBS volume or an
  21095. // instance store volume.
  21096. RootDeviceType *string `locationName:"rootDeviceType" type:"string" enum:"DeviceType"`
  21097. // One or more security groups for the instance.
  21098. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  21099. // Specifies whether to enable an instance launched in a VPC to perform NAT.
  21100. // This controls whether source/destination checking is enabled on the instance.
  21101. // A value of true means checking is enabled, and false means checking is disabled.
  21102. // The value must be false for the instance to perform NAT. For more information,
  21103. // see NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  21104. // in the Amazon Virtual Private Cloud User Guide.
  21105. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  21106. // If the request is a Spot instance request, the ID of the request.
  21107. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  21108. // Specifies whether enhanced networking with the Intel 82599 Virtual Function
  21109. // interface is enabled.
  21110. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  21111. // The current state of the instance.
  21112. State *InstanceState `locationName:"instanceState" type:"structure"`
  21113. // The reason for the most recent state transition.
  21114. StateReason *StateReason `locationName:"stateReason" type:"structure"`
  21115. // The reason for the most recent state transition. This might be an empty string.
  21116. StateTransitionReason *string `locationName:"reason" type:"string"`
  21117. // [EC2-VPC] The ID of the subnet in which the instance is running.
  21118. SubnetId *string `locationName:"subnetId" type:"string"`
  21119. // Any tags assigned to the instance.
  21120. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  21121. // The virtualization type of the instance.
  21122. VirtualizationType *string `locationName:"virtualizationType" type:"string" enum:"VirtualizationType"`
  21123. // [EC2-VPC] The ID of the VPC in which the instance is running.
  21124. VpcId *string `locationName:"vpcId" type:"string"`
  21125. }
  21126. // String returns the string representation
  21127. func (s Instance) String() string {
  21128. return awsutil.Prettify(s)
  21129. }
  21130. // GoString returns the string representation
  21131. func (s Instance) GoString() string {
  21132. return s.String()
  21133. }
  21134. // Describes a block device mapping.
  21135. type InstanceBlockDeviceMapping struct {
  21136. _ struct{} `type:"structure"`
  21137. // The device name exposed to the instance (for example, /dev/sdh or xvdh).
  21138. DeviceName *string `locationName:"deviceName" type:"string"`
  21139. // Parameters used to automatically set up EBS volumes when the instance is
  21140. // launched.
  21141. Ebs *EbsInstanceBlockDevice `locationName:"ebs" type:"structure"`
  21142. }
  21143. // String returns the string representation
  21144. func (s InstanceBlockDeviceMapping) String() string {
  21145. return awsutil.Prettify(s)
  21146. }
  21147. // GoString returns the string representation
  21148. func (s InstanceBlockDeviceMapping) GoString() string {
  21149. return s.String()
  21150. }
  21151. // Describes a block device mapping entry.
  21152. type InstanceBlockDeviceMappingSpecification struct {
  21153. _ struct{} `type:"structure"`
  21154. // The device name exposed to the instance (for example, /dev/sdh or xvdh).
  21155. DeviceName *string `locationName:"deviceName" type:"string"`
  21156. // Parameters used to automatically set up EBS volumes when the instance is
  21157. // launched.
  21158. Ebs *EbsInstanceBlockDeviceSpecification `locationName:"ebs" type:"structure"`
  21159. // suppress the specified device included in the block device mapping.
  21160. NoDevice *string `locationName:"noDevice" type:"string"`
  21161. // The virtual device name.
  21162. VirtualName *string `locationName:"virtualName" type:"string"`
  21163. }
  21164. // String returns the string representation
  21165. func (s InstanceBlockDeviceMappingSpecification) String() string {
  21166. return awsutil.Prettify(s)
  21167. }
  21168. // GoString returns the string representation
  21169. func (s InstanceBlockDeviceMappingSpecification) GoString() string {
  21170. return s.String()
  21171. }
  21172. // Information about the instance type that the Dedicated host supports.
  21173. type InstanceCapacity struct {
  21174. _ struct{} `type:"structure"`
  21175. // The number of instances that can still be launched onto the Dedicated host.
  21176. AvailableCapacity *int64 `locationName:"availableCapacity" type:"integer"`
  21177. // The instance type size supported by the Dedicated host.
  21178. InstanceType *string `locationName:"instanceType" type:"string"`
  21179. // The total number of instances that can be launched onto the Dedicated host.
  21180. TotalCapacity *int64 `locationName:"totalCapacity" type:"integer"`
  21181. }
  21182. // String returns the string representation
  21183. func (s InstanceCapacity) String() string {
  21184. return awsutil.Prettify(s)
  21185. }
  21186. // GoString returns the string representation
  21187. func (s InstanceCapacity) GoString() string {
  21188. return s.String()
  21189. }
  21190. // Describes a Reserved Instance listing state.
  21191. type InstanceCount struct {
  21192. _ struct{} `type:"structure"`
  21193. // The number of listed Reserved Instances in the state specified by the state.
  21194. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  21195. // The states of the listed Reserved Instances.
  21196. State *string `locationName:"state" type:"string" enum:"ListingState"`
  21197. }
  21198. // String returns the string representation
  21199. func (s InstanceCount) String() string {
  21200. return awsutil.Prettify(s)
  21201. }
  21202. // GoString returns the string representation
  21203. func (s InstanceCount) GoString() string {
  21204. return s.String()
  21205. }
  21206. // Describes an instance to export.
  21207. type InstanceExportDetails struct {
  21208. _ struct{} `type:"structure"`
  21209. // The ID of the resource being exported.
  21210. InstanceId *string `locationName:"instanceId" type:"string"`
  21211. // The target virtualization environment.
  21212. TargetEnvironment *string `locationName:"targetEnvironment" type:"string" enum:"ExportEnvironment"`
  21213. }
  21214. // String returns the string representation
  21215. func (s InstanceExportDetails) String() string {
  21216. return awsutil.Prettify(s)
  21217. }
  21218. // GoString returns the string representation
  21219. func (s InstanceExportDetails) GoString() string {
  21220. return s.String()
  21221. }
  21222. // Describes the monitoring information of the instance.
  21223. type InstanceMonitoring struct {
  21224. _ struct{} `type:"structure"`
  21225. // The ID of the instance.
  21226. InstanceId *string `locationName:"instanceId" type:"string"`
  21227. // The monitoring information.
  21228. Monitoring *Monitoring `locationName:"monitoring" type:"structure"`
  21229. }
  21230. // String returns the string representation
  21231. func (s InstanceMonitoring) String() string {
  21232. return awsutil.Prettify(s)
  21233. }
  21234. // GoString returns the string representation
  21235. func (s InstanceMonitoring) GoString() string {
  21236. return s.String()
  21237. }
  21238. // Describes a network interface.
  21239. type InstanceNetworkInterface struct {
  21240. _ struct{} `type:"structure"`
  21241. // The association information for an Elastic IP associated with the network
  21242. // interface.
  21243. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`
  21244. // The network interface attachment.
  21245. Attachment *InstanceNetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  21246. // The description.
  21247. Description *string `locationName:"description" type:"string"`
  21248. // One or more security groups.
  21249. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  21250. // The MAC address.
  21251. MacAddress *string `locationName:"macAddress" type:"string"`
  21252. // The ID of the network interface.
  21253. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  21254. // The ID of the AWS account that created the network interface.
  21255. OwnerId *string `locationName:"ownerId" type:"string"`
  21256. // The private DNS name.
  21257. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  21258. // The IP address of the network interface within the subnet.
  21259. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  21260. // The private IP addresses associated with the network interface.
  21261. PrivateIpAddresses []*InstancePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  21262. // Indicates whether to validate network traffic to or from this network interface.
  21263. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  21264. // The status of the network interface.
  21265. Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"`
  21266. // The ID of the subnet.
  21267. SubnetId *string `locationName:"subnetId" type:"string"`
  21268. // The ID of the VPC.
  21269. VpcId *string `locationName:"vpcId" type:"string"`
  21270. }
  21271. // String returns the string representation
  21272. func (s InstanceNetworkInterface) String() string {
  21273. return awsutil.Prettify(s)
  21274. }
  21275. // GoString returns the string representation
  21276. func (s InstanceNetworkInterface) GoString() string {
  21277. return s.String()
  21278. }
  21279. // Describes association information for an Elastic IP address.
  21280. type InstanceNetworkInterfaceAssociation struct {
  21281. _ struct{} `type:"structure"`
  21282. // The ID of the owner of the Elastic IP address.
  21283. IpOwnerId *string `locationName:"ipOwnerId" type:"string"`
  21284. // The public DNS name.
  21285. PublicDnsName *string `locationName:"publicDnsName" type:"string"`
  21286. // The public IP address or Elastic IP address bound to the network interface.
  21287. PublicIp *string `locationName:"publicIp" type:"string"`
  21288. }
  21289. // String returns the string representation
  21290. func (s InstanceNetworkInterfaceAssociation) String() string {
  21291. return awsutil.Prettify(s)
  21292. }
  21293. // GoString returns the string representation
  21294. func (s InstanceNetworkInterfaceAssociation) GoString() string {
  21295. return s.String()
  21296. }
  21297. // Describes a network interface attachment.
  21298. type InstanceNetworkInterfaceAttachment struct {
  21299. _ struct{} `type:"structure"`
  21300. // The time stamp when the attachment initiated.
  21301. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  21302. // The ID of the network interface attachment.
  21303. AttachmentId *string `locationName:"attachmentId" type:"string"`
  21304. // Indicates whether the network interface is deleted when the instance is terminated.
  21305. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  21306. // The index of the device on the instance for the network interface attachment.
  21307. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  21308. // The attachment state.
  21309. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  21310. }
  21311. // String returns the string representation
  21312. func (s InstanceNetworkInterfaceAttachment) String() string {
  21313. return awsutil.Prettify(s)
  21314. }
  21315. // GoString returns the string representation
  21316. func (s InstanceNetworkInterfaceAttachment) GoString() string {
  21317. return s.String()
  21318. }
  21319. // Describes a network interface.
  21320. type InstanceNetworkInterfaceSpecification struct {
  21321. _ struct{} `type:"structure"`
  21322. // Indicates whether to assign a public IP address to an instance you launch
  21323. // in a VPC. The public IP address can only be assigned to a network interface
  21324. // for eth0, and can only be assigned to a new network interface, not an existing
  21325. // one. You cannot specify more than one network interface in the request. If
  21326. // launching into a default subnet, the default value is true.
  21327. AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`
  21328. // If set to true, the interface is deleted when the instance is terminated.
  21329. // You can specify true only if creating a new network interface when launching
  21330. // an instance.
  21331. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  21332. // The description of the network interface. Applies only if creating a network
  21333. // interface when launching an instance.
  21334. Description *string `locationName:"description" type:"string"`
  21335. // The index of the device on the instance for the network interface attachment.
  21336. // If you are specifying a network interface in a RunInstances request, you
  21337. // must provide the device index.
  21338. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  21339. // The IDs of the security groups for the network interface. Applies only if
  21340. // creating a network interface when launching an instance.
  21341. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  21342. // The ID of the network interface.
  21343. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  21344. // The private IP address of the network interface. Applies only if creating
  21345. // a network interface when launching an instance.
  21346. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  21347. // One or more private IP addresses to assign to the network interface. Only
  21348. // one private IP address can be designated as primary.
  21349. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" queryName:"PrivateIpAddresses" locationNameList:"item" type:"list"`
  21350. // The number of secondary private IP addresses. You can't specify this option
  21351. // and specify more than one private IP address using the private IP addresses
  21352. // option.
  21353. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"`
  21354. // The ID of the subnet associated with the network string. Applies only if
  21355. // creating a network interface when launching an instance.
  21356. SubnetId *string `locationName:"subnetId" type:"string"`
  21357. }
  21358. // String returns the string representation
  21359. func (s InstanceNetworkInterfaceSpecification) String() string {
  21360. return awsutil.Prettify(s)
  21361. }
  21362. // GoString returns the string representation
  21363. func (s InstanceNetworkInterfaceSpecification) GoString() string {
  21364. return s.String()
  21365. }
  21366. // Validate inspects the fields of the type to determine if they are valid.
  21367. func (s *InstanceNetworkInterfaceSpecification) Validate() error {
  21368. invalidParams := request.ErrInvalidParams{Context: "InstanceNetworkInterfaceSpecification"}
  21369. if s.PrivateIpAddresses != nil {
  21370. for i, v := range s.PrivateIpAddresses {
  21371. if v == nil {
  21372. continue
  21373. }
  21374. if err := v.Validate(); err != nil {
  21375. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PrivateIpAddresses", i), err.(request.ErrInvalidParams))
  21376. }
  21377. }
  21378. }
  21379. if invalidParams.Len() > 0 {
  21380. return invalidParams
  21381. }
  21382. return nil
  21383. }
  21384. // Describes a private IP address.
  21385. type InstancePrivateIpAddress struct {
  21386. _ struct{} `type:"structure"`
  21387. // The association information for an Elastic IP address for the network interface.
  21388. Association *InstanceNetworkInterfaceAssociation `locationName:"association" type:"structure"`
  21389. // Indicates whether this IP address is the primary private IP address of the
  21390. // network interface.
  21391. Primary *bool `locationName:"primary" type:"boolean"`
  21392. // The private DNS name.
  21393. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  21394. // The private IP address of the network interface.
  21395. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  21396. }
  21397. // String returns the string representation
  21398. func (s InstancePrivateIpAddress) String() string {
  21399. return awsutil.Prettify(s)
  21400. }
  21401. // GoString returns the string representation
  21402. func (s InstancePrivateIpAddress) GoString() string {
  21403. return s.String()
  21404. }
  21405. // Describes the current state of the instance.
  21406. type InstanceState struct {
  21407. _ struct{} `type:"structure"`
  21408. // The low byte represents the state. The high byte is an opaque internal value
  21409. // and should be ignored.
  21410. //
  21411. // 0 : pending
  21412. //
  21413. // 16 : running
  21414. //
  21415. // 32 : shutting-down
  21416. //
  21417. // 48 : terminated
  21418. //
  21419. // 64 : stopping
  21420. //
  21421. // 80 : stopped
  21422. Code *int64 `locationName:"code" type:"integer"`
  21423. // The current state of the instance.
  21424. Name *string `locationName:"name" type:"string" enum:"InstanceStateName"`
  21425. }
  21426. // String returns the string representation
  21427. func (s InstanceState) String() string {
  21428. return awsutil.Prettify(s)
  21429. }
  21430. // GoString returns the string representation
  21431. func (s InstanceState) GoString() string {
  21432. return s.String()
  21433. }
  21434. // Describes an instance state change.
  21435. type InstanceStateChange struct {
  21436. _ struct{} `type:"structure"`
  21437. // The current state of the instance.
  21438. CurrentState *InstanceState `locationName:"currentState" type:"structure"`
  21439. // The ID of the instance.
  21440. InstanceId *string `locationName:"instanceId" type:"string"`
  21441. // The previous state of the instance.
  21442. PreviousState *InstanceState `locationName:"previousState" type:"structure"`
  21443. }
  21444. // String returns the string representation
  21445. func (s InstanceStateChange) String() string {
  21446. return awsutil.Prettify(s)
  21447. }
  21448. // GoString returns the string representation
  21449. func (s InstanceStateChange) GoString() string {
  21450. return s.String()
  21451. }
  21452. // Describes the status of an instance.
  21453. type InstanceStatus struct {
  21454. _ struct{} `type:"structure"`
  21455. // The Availability Zone of the instance.
  21456. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  21457. // Any scheduled events associated with the instance.
  21458. Events []*InstanceStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`
  21459. // The ID of the instance.
  21460. InstanceId *string `locationName:"instanceId" type:"string"`
  21461. // The intended state of the instance. DescribeInstanceStatus requires that
  21462. // an instance be in the running state.
  21463. InstanceState *InstanceState `locationName:"instanceState" type:"structure"`
  21464. // Reports impaired functionality that stems from issues internal to the instance,
  21465. // such as impaired reachability.
  21466. InstanceStatus *InstanceStatusSummary `locationName:"instanceStatus" type:"structure"`
  21467. // Reports impaired functionality that stems from issues related to the systems
  21468. // that support an instance, such as hardware failures and network connectivity
  21469. // problems.
  21470. SystemStatus *InstanceStatusSummary `locationName:"systemStatus" type:"structure"`
  21471. }
  21472. // String returns the string representation
  21473. func (s InstanceStatus) String() string {
  21474. return awsutil.Prettify(s)
  21475. }
  21476. // GoString returns the string representation
  21477. func (s InstanceStatus) GoString() string {
  21478. return s.String()
  21479. }
  21480. // Describes the instance status.
  21481. type InstanceStatusDetails struct {
  21482. _ struct{} `type:"structure"`
  21483. // The time when a status check failed. For an instance that was launched and
  21484. // impaired, this is the time when the instance was launched.
  21485. ImpairedSince *time.Time `locationName:"impairedSince" type:"timestamp" timestampFormat:"iso8601"`
  21486. // The type of instance status.
  21487. Name *string `locationName:"name" type:"string" enum:"StatusName"`
  21488. // The status.
  21489. Status *string `locationName:"status" type:"string" enum:"StatusType"`
  21490. }
  21491. // String returns the string representation
  21492. func (s InstanceStatusDetails) String() string {
  21493. return awsutil.Prettify(s)
  21494. }
  21495. // GoString returns the string representation
  21496. func (s InstanceStatusDetails) GoString() string {
  21497. return s.String()
  21498. }
  21499. // Describes a scheduled event for an instance.
  21500. type InstanceStatusEvent struct {
  21501. _ struct{} `type:"structure"`
  21502. // The event code.
  21503. Code *string `locationName:"code" type:"string" enum:"EventCode"`
  21504. // A description of the event.
  21505. //
  21506. // After a scheduled event is completed, it can still be described for up to
  21507. // a week. If the event has been completed, this description starts with the
  21508. // following text: [Completed].
  21509. Description *string `locationName:"description" type:"string"`
  21510. // The latest scheduled end time for the event.
  21511. NotAfter *time.Time `locationName:"notAfter" type:"timestamp" timestampFormat:"iso8601"`
  21512. // The earliest scheduled start time for the event.
  21513. NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"iso8601"`
  21514. }
  21515. // String returns the string representation
  21516. func (s InstanceStatusEvent) String() string {
  21517. return awsutil.Prettify(s)
  21518. }
  21519. // GoString returns the string representation
  21520. func (s InstanceStatusEvent) GoString() string {
  21521. return s.String()
  21522. }
  21523. // Describes the status of an instance.
  21524. type InstanceStatusSummary struct {
  21525. _ struct{} `type:"structure"`
  21526. // The system instance health or application instance health.
  21527. Details []*InstanceStatusDetails `locationName:"details" locationNameList:"item" type:"list"`
  21528. // The status.
  21529. Status *string `locationName:"status" type:"string" enum:"SummaryStatus"`
  21530. }
  21531. // String returns the string representation
  21532. func (s InstanceStatusSummary) String() string {
  21533. return awsutil.Prettify(s)
  21534. }
  21535. // GoString returns the string representation
  21536. func (s InstanceStatusSummary) GoString() string {
  21537. return s.String()
  21538. }
  21539. // Describes an Internet gateway.
  21540. type InternetGateway struct {
  21541. _ struct{} `type:"structure"`
  21542. // Any VPCs attached to the Internet gateway.
  21543. Attachments []*InternetGatewayAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  21544. // The ID of the Internet gateway.
  21545. InternetGatewayId *string `locationName:"internetGatewayId" type:"string"`
  21546. // Any tags assigned to the Internet gateway.
  21547. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  21548. }
  21549. // String returns the string representation
  21550. func (s InternetGateway) String() string {
  21551. return awsutil.Prettify(s)
  21552. }
  21553. // GoString returns the string representation
  21554. func (s InternetGateway) GoString() string {
  21555. return s.String()
  21556. }
  21557. // Describes the attachment of a VPC to an Internet gateway.
  21558. type InternetGatewayAttachment struct {
  21559. _ struct{} `type:"structure"`
  21560. // The current state of the attachment.
  21561. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"`
  21562. // The ID of the VPC.
  21563. VpcId *string `locationName:"vpcId" type:"string"`
  21564. }
  21565. // String returns the string representation
  21566. func (s InternetGatewayAttachment) String() string {
  21567. return awsutil.Prettify(s)
  21568. }
  21569. // GoString returns the string representation
  21570. func (s InternetGatewayAttachment) GoString() string {
  21571. return s.String()
  21572. }
  21573. // Describes a security group rule.
  21574. type IpPermission struct {
  21575. _ struct{} `type:"structure"`
  21576. // The start of port range for the TCP and UDP protocols, or an ICMP type number.
  21577. // A value of -1 indicates all ICMP types.
  21578. FromPort *int64 `locationName:"fromPort" type:"integer"`
  21579. // The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers
  21580. // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  21581. //
  21582. // [EC2-VPC only] When you authorize or revoke security group rules, you can
  21583. // use -1 to specify all.
  21584. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  21585. // One or more IP ranges.
  21586. IpRanges []*IpRange `locationName:"ipRanges" locationNameList:"item" type:"list"`
  21587. // (Valid for AuthorizeSecurityGroupEgress, RevokeSecurityGroupEgress and DescribeSecurityGroups
  21588. // only) One or more prefix list IDs for an AWS service. In an AuthorizeSecurityGroupEgress
  21589. // request, this is the AWS service that you want to access through a VPC endpoint
  21590. // from instances associated with the security group.
  21591. PrefixListIds []*PrefixListId `locationName:"prefixListIds" locationNameList:"item" type:"list"`
  21592. // The end of port range for the TCP and UDP protocols, or an ICMP code. A value
  21593. // of -1 indicates all ICMP codes for the specified ICMP type.
  21594. ToPort *int64 `locationName:"toPort" type:"integer"`
  21595. // One or more security group and AWS account ID pairs.
  21596. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
  21597. }
  21598. // String returns the string representation
  21599. func (s IpPermission) String() string {
  21600. return awsutil.Prettify(s)
  21601. }
  21602. // GoString returns the string representation
  21603. func (s IpPermission) GoString() string {
  21604. return s.String()
  21605. }
  21606. // Describes an IP range.
  21607. type IpRange struct {
  21608. _ struct{} `type:"structure"`
  21609. // The CIDR range. You can either specify a CIDR range or a source security
  21610. // group, not both.
  21611. CidrIp *string `locationName:"cidrIp" type:"string"`
  21612. }
  21613. // String returns the string representation
  21614. func (s IpRange) String() string {
  21615. return awsutil.Prettify(s)
  21616. }
  21617. // GoString returns the string representation
  21618. func (s IpRange) GoString() string {
  21619. return s.String()
  21620. }
  21621. // Describes a key pair.
  21622. type KeyPairInfo struct {
  21623. _ struct{} `type:"structure"`
  21624. // If you used CreateKeyPair to create the key pair, this is the SHA-1 digest
  21625. // of the DER encoded private key. If you used ImportKeyPair to provide AWS
  21626. // the public key, this is the MD5 public key fingerprint as specified in section
  21627. // 4 of RFC4716.
  21628. KeyFingerprint *string `locationName:"keyFingerprint" type:"string"`
  21629. // The name of the key pair.
  21630. KeyName *string `locationName:"keyName" type:"string"`
  21631. }
  21632. // String returns the string representation
  21633. func (s KeyPairInfo) String() string {
  21634. return awsutil.Prettify(s)
  21635. }
  21636. // GoString returns the string representation
  21637. func (s KeyPairInfo) GoString() string {
  21638. return s.String()
  21639. }
  21640. // Describes a launch permission.
  21641. type LaunchPermission struct {
  21642. _ struct{} `type:"structure"`
  21643. // The name of the group.
  21644. Group *string `locationName:"group" type:"string" enum:"PermissionGroup"`
  21645. // The AWS account ID.
  21646. UserId *string `locationName:"userId" type:"string"`
  21647. }
  21648. // String returns the string representation
  21649. func (s LaunchPermission) String() string {
  21650. return awsutil.Prettify(s)
  21651. }
  21652. // GoString returns the string representation
  21653. func (s LaunchPermission) GoString() string {
  21654. return s.String()
  21655. }
  21656. // Describes a launch permission modification.
  21657. type LaunchPermissionModifications struct {
  21658. _ struct{} `type:"structure"`
  21659. // The AWS account ID to add to the list of launch permissions for the AMI.
  21660. Add []*LaunchPermission `locationNameList:"item" type:"list"`
  21661. // The AWS account ID to remove from the list of launch permissions for the
  21662. // AMI.
  21663. Remove []*LaunchPermission `locationNameList:"item" type:"list"`
  21664. }
  21665. // String returns the string representation
  21666. func (s LaunchPermissionModifications) String() string {
  21667. return awsutil.Prettify(s)
  21668. }
  21669. // GoString returns the string representation
  21670. func (s LaunchPermissionModifications) GoString() string {
  21671. return s.String()
  21672. }
  21673. // Describes the launch specification for an instance.
  21674. type LaunchSpecification struct {
  21675. _ struct{} `type:"structure"`
  21676. // Deprecated.
  21677. AddressingType *string `locationName:"addressingType" type:"string"`
  21678. // One or more block device mapping entries.
  21679. //
  21680. // Although you can specify encrypted EBS volumes in this block device mapping
  21681. // for your Spot Instances, these volumes are not encrypted.
  21682. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  21683. // Indicates whether the instance is optimized for EBS I/O. This optimization
  21684. // provides dedicated throughput to Amazon EBS and an optimized configuration
  21685. // stack to provide optimal EBS I/O performance. This optimization isn't available
  21686. // with all instance types. Additional usage charges apply when using an EBS
  21687. // Optimized instance.
  21688. //
  21689. // Default: false
  21690. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  21691. // The IAM instance profile.
  21692. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  21693. // The ID of the AMI.
  21694. ImageId *string `locationName:"imageId" type:"string"`
  21695. // The instance type.
  21696. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  21697. // The ID of the kernel.
  21698. KernelId *string `locationName:"kernelId" type:"string"`
  21699. // The name of the key pair.
  21700. KeyName *string `locationName:"keyName" type:"string"`
  21701. // Describes the monitoring for the instance.
  21702. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`
  21703. // One or more network interfaces.
  21704. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  21705. // The placement information for the instance.
  21706. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  21707. // The ID of the RAM disk.
  21708. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  21709. // One or more security groups. When requesting instances in a VPC, you must
  21710. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  21711. // you can specify the names or the IDs of the security groups.
  21712. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  21713. // The ID of the subnet in which to launch the instance.
  21714. SubnetId *string `locationName:"subnetId" type:"string"`
  21715. // The user data to make available to the instances. If you are using an AWS
  21716. // SDK or command line tool, Base64-encoding is performed for you, and you can
  21717. // load the text from a file. Otherwise, you must provide Base64-encoded text.
  21718. UserData *string `locationName:"userData" type:"string"`
  21719. }
  21720. // String returns the string representation
  21721. func (s LaunchSpecification) String() string {
  21722. return awsutil.Prettify(s)
  21723. }
  21724. // GoString returns the string representation
  21725. func (s LaunchSpecification) GoString() string {
  21726. return s.String()
  21727. }
  21728. // Contains the parameters for ModifyHosts.
  21729. type ModifyHostsInput struct {
  21730. _ struct{} `type:"structure"`
  21731. // Specify whether to enable or disable auto-placement.
  21732. AutoPlacement *string `locationName:"autoPlacement" type:"string" required:"true" enum:"AutoPlacement"`
  21733. // The host IDs of the Dedicated hosts you want to modify.
  21734. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
  21735. }
  21736. // String returns the string representation
  21737. func (s ModifyHostsInput) String() string {
  21738. return awsutil.Prettify(s)
  21739. }
  21740. // GoString returns the string representation
  21741. func (s ModifyHostsInput) GoString() string {
  21742. return s.String()
  21743. }
  21744. // Validate inspects the fields of the type to determine if they are valid.
  21745. func (s *ModifyHostsInput) Validate() error {
  21746. invalidParams := request.ErrInvalidParams{Context: "ModifyHostsInput"}
  21747. if s.AutoPlacement == nil {
  21748. invalidParams.Add(request.NewErrParamRequired("AutoPlacement"))
  21749. }
  21750. if s.HostIds == nil {
  21751. invalidParams.Add(request.NewErrParamRequired("HostIds"))
  21752. }
  21753. if invalidParams.Len() > 0 {
  21754. return invalidParams
  21755. }
  21756. return nil
  21757. }
  21758. // Contains the output of ModifyHosts.
  21759. type ModifyHostsOutput struct {
  21760. _ struct{} `type:"structure"`
  21761. // The IDs of the Dedicated hosts that were successfully modified.
  21762. Successful []*string `locationName:"successful" locationNameList:"item" type:"list"`
  21763. // The IDs of the Dedicated hosts that could not be modified. Check whether
  21764. // the setting you requested can be used.
  21765. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  21766. }
  21767. // String returns the string representation
  21768. func (s ModifyHostsOutput) String() string {
  21769. return awsutil.Prettify(s)
  21770. }
  21771. // GoString returns the string representation
  21772. func (s ModifyHostsOutput) GoString() string {
  21773. return s.String()
  21774. }
  21775. // Contains the parameters of ModifyIdFormat.
  21776. type ModifyIdFormatInput struct {
  21777. _ struct{} `type:"structure"`
  21778. // The type of resource.
  21779. Resource *string `type:"string" required:"true"`
  21780. // Indicate whether the resource should use longer IDs (17-character IDs).
  21781. UseLongIds *bool `type:"boolean" required:"true"`
  21782. }
  21783. // String returns the string representation
  21784. func (s ModifyIdFormatInput) String() string {
  21785. return awsutil.Prettify(s)
  21786. }
  21787. // GoString returns the string representation
  21788. func (s ModifyIdFormatInput) GoString() string {
  21789. return s.String()
  21790. }
  21791. // Validate inspects the fields of the type to determine if they are valid.
  21792. func (s *ModifyIdFormatInput) Validate() error {
  21793. invalidParams := request.ErrInvalidParams{Context: "ModifyIdFormatInput"}
  21794. if s.Resource == nil {
  21795. invalidParams.Add(request.NewErrParamRequired("Resource"))
  21796. }
  21797. if s.UseLongIds == nil {
  21798. invalidParams.Add(request.NewErrParamRequired("UseLongIds"))
  21799. }
  21800. if invalidParams.Len() > 0 {
  21801. return invalidParams
  21802. }
  21803. return nil
  21804. }
  21805. type ModifyIdFormatOutput struct {
  21806. _ struct{} `type:"structure"`
  21807. }
  21808. // String returns the string representation
  21809. func (s ModifyIdFormatOutput) String() string {
  21810. return awsutil.Prettify(s)
  21811. }
  21812. // GoString returns the string representation
  21813. func (s ModifyIdFormatOutput) GoString() string {
  21814. return s.String()
  21815. }
  21816. // Contains the parameters of ModifyIdentityIdFormat.
  21817. type ModifyIdentityIdFormatInput struct {
  21818. _ struct{} `type:"structure"`
  21819. // The ARN of the principal, which can be an IAM user, IAM role, or the root
  21820. // user.
  21821. PrincipalArn *string `locationName:"principalArn" type:"string" required:"true"`
  21822. // The type of resource.
  21823. Resource *string `locationName:"resource" type:"string" required:"true"`
  21824. // Indicates whether the resource should use longer IDs (17-character IDs)
  21825. UseLongIds *bool `locationName:"useLongIds" type:"boolean" required:"true"`
  21826. }
  21827. // String returns the string representation
  21828. func (s ModifyIdentityIdFormatInput) String() string {
  21829. return awsutil.Prettify(s)
  21830. }
  21831. // GoString returns the string representation
  21832. func (s ModifyIdentityIdFormatInput) GoString() string {
  21833. return s.String()
  21834. }
  21835. // Validate inspects the fields of the type to determine if they are valid.
  21836. func (s *ModifyIdentityIdFormatInput) Validate() error {
  21837. invalidParams := request.ErrInvalidParams{Context: "ModifyIdentityIdFormatInput"}
  21838. if s.PrincipalArn == nil {
  21839. invalidParams.Add(request.NewErrParamRequired("PrincipalArn"))
  21840. }
  21841. if s.Resource == nil {
  21842. invalidParams.Add(request.NewErrParamRequired("Resource"))
  21843. }
  21844. if s.UseLongIds == nil {
  21845. invalidParams.Add(request.NewErrParamRequired("UseLongIds"))
  21846. }
  21847. if invalidParams.Len() > 0 {
  21848. return invalidParams
  21849. }
  21850. return nil
  21851. }
  21852. type ModifyIdentityIdFormatOutput struct {
  21853. _ struct{} `type:"structure"`
  21854. }
  21855. // String returns the string representation
  21856. func (s ModifyIdentityIdFormatOutput) String() string {
  21857. return awsutil.Prettify(s)
  21858. }
  21859. // GoString returns the string representation
  21860. func (s ModifyIdentityIdFormatOutput) GoString() string {
  21861. return s.String()
  21862. }
  21863. // Contains the parameters for ModifyImageAttribute.
  21864. type ModifyImageAttributeInput struct {
  21865. _ struct{} `type:"structure"`
  21866. // The name of the attribute to modify.
  21867. Attribute *string `type:"string"`
  21868. // A description for the AMI.
  21869. Description *AttributeValue `type:"structure"`
  21870. // Checks whether you have the required permissions for the action, without
  21871. // actually making the request, and provides an error response. If you have
  21872. // the required permissions, the error response is DryRunOperation. Otherwise,
  21873. // it is UnauthorizedOperation.
  21874. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21875. // The ID of the AMI.
  21876. ImageId *string `type:"string" required:"true"`
  21877. // A launch permission modification.
  21878. LaunchPermission *LaunchPermissionModifications `type:"structure"`
  21879. // The operation type.
  21880. OperationType *string `type:"string" enum:"OperationType"`
  21881. // One or more product codes. After you add a product code to an AMI, it can't
  21882. // be removed. This is only valid when modifying the productCodes attribute.
  21883. ProductCodes []*string `locationName:"ProductCode" locationNameList:"ProductCode" type:"list"`
  21884. // One or more user groups. This is only valid when modifying the launchPermission
  21885. // attribute.
  21886. UserGroups []*string `locationName:"UserGroup" locationNameList:"UserGroup" type:"list"`
  21887. // One or more AWS account IDs. This is only valid when modifying the launchPermission
  21888. // attribute.
  21889. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  21890. // The value of the attribute being modified. This is only valid when modifying
  21891. // the description attribute.
  21892. Value *string `type:"string"`
  21893. }
  21894. // String returns the string representation
  21895. func (s ModifyImageAttributeInput) String() string {
  21896. return awsutil.Prettify(s)
  21897. }
  21898. // GoString returns the string representation
  21899. func (s ModifyImageAttributeInput) GoString() string {
  21900. return s.String()
  21901. }
  21902. // Validate inspects the fields of the type to determine if they are valid.
  21903. func (s *ModifyImageAttributeInput) Validate() error {
  21904. invalidParams := request.ErrInvalidParams{Context: "ModifyImageAttributeInput"}
  21905. if s.ImageId == nil {
  21906. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  21907. }
  21908. if invalidParams.Len() > 0 {
  21909. return invalidParams
  21910. }
  21911. return nil
  21912. }
  21913. type ModifyImageAttributeOutput struct {
  21914. _ struct{} `type:"structure"`
  21915. }
  21916. // String returns the string representation
  21917. func (s ModifyImageAttributeOutput) String() string {
  21918. return awsutil.Prettify(s)
  21919. }
  21920. // GoString returns the string representation
  21921. func (s ModifyImageAttributeOutput) GoString() string {
  21922. return s.String()
  21923. }
  21924. // Contains the parameters for ModifyInstanceAttribute.
  21925. type ModifyInstanceAttributeInput struct {
  21926. _ struct{} `type:"structure"`
  21927. // The name of the attribute.
  21928. Attribute *string `locationName:"attribute" type:"string" enum:"InstanceAttributeName"`
  21929. // Modifies the DeleteOnTermination attribute for volumes that are currently
  21930. // attached. The volume must be owned by the caller. If no value is specified
  21931. // for DeleteOnTermination, the default is true and the volume is deleted when
  21932. // the instance is terminated.
  21933. //
  21934. // To add instance store volumes to an Amazon EBS-backed instance, you must
  21935. // add them when you launch the instance. For more information, see Updating
  21936. // the Block Device Mapping when Launching an Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM)
  21937. // in the Amazon Elastic Compute Cloud User Guide.
  21938. BlockDeviceMappings []*InstanceBlockDeviceMappingSpecification `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  21939. // If the value is true, you can't terminate the instance using the Amazon EC2
  21940. // console, CLI, or API; otherwise, you can. You cannot use this paramater for
  21941. // Spot Instances.
  21942. DisableApiTermination *AttributeBooleanValue `locationName:"disableApiTermination" type:"structure"`
  21943. // Checks whether you have the required permissions for the action, without
  21944. // actually making the request, and provides an error response. If you have
  21945. // the required permissions, the error response is DryRunOperation. Otherwise,
  21946. // it is UnauthorizedOperation.
  21947. DryRun *bool `locationName:"dryRun" type:"boolean"`
  21948. // Specifies whether the instance is optimized for EBS I/O. This optimization
  21949. // provides dedicated throughput to Amazon EBS and an optimized configuration
  21950. // stack to provide optimal EBS I/O performance. This optimization isn't available
  21951. // with all instance types. Additional usage charges apply when using an EBS
  21952. // Optimized instance.
  21953. EbsOptimized *AttributeBooleanValue `locationName:"ebsOptimized" type:"structure"`
  21954. // Set to true to enable enhanced networking with ENA for the instance.
  21955. //
  21956. // This option is supported only for HVM instances. Specifying this option
  21957. // with a PV instance can make it unreachable.
  21958. EnaSupport *AttributeBooleanValue `locationName:"enaSupport" type:"structure"`
  21959. // [EC2-VPC] Changes the security groups of the instance. You must specify at
  21960. // least one security group, even if it's just the default security group for
  21961. // the VPC. You must specify the security group ID, not the security group name.
  21962. Groups []*string `locationName:"GroupId" locationNameList:"groupId" type:"list"`
  21963. // The ID of the instance.
  21964. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  21965. // Specifies whether an instance stops or terminates when you initiate shutdown
  21966. // from the instance (using the operating system command for system shutdown).
  21967. InstanceInitiatedShutdownBehavior *AttributeValue `locationName:"instanceInitiatedShutdownBehavior" type:"structure"`
  21968. // Changes the instance type to the specified value. For more information, see
  21969. // Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
  21970. // If the instance type is not valid, the error returned is InvalidInstanceAttributeValue.
  21971. InstanceType *AttributeValue `locationName:"instanceType" type:"structure"`
  21972. // Changes the instance's kernel to the specified value. We recommend that you
  21973. // use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB
  21974. // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
  21975. Kernel *AttributeValue `locationName:"kernel" type:"structure"`
  21976. // Changes the instance's RAM disk to the specified value. We recommend that
  21977. // you use PV-GRUB instead of kernels and RAM disks. For more information, see
  21978. // PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html).
  21979. Ramdisk *AttributeValue `locationName:"ramdisk" type:"structure"`
  21980. // Specifies whether source/destination checking is enabled. A value of true
  21981. // means that checking is enabled, and false means checking is disabled. This
  21982. // value must be false for a NAT instance to perform NAT.
  21983. SourceDestCheck *AttributeBooleanValue `type:"structure"`
  21984. // Set to simple to enable enhanced networking with the Intel 82599 Virtual
  21985. // Function interface for the instance.
  21986. //
  21987. // There is no way to disable enhanced networking with the Intel 82599 Virtual
  21988. // Function interface at this time.
  21989. //
  21990. // This option is supported only for HVM instances. Specifying this option
  21991. // with a PV instance can make it unreachable.
  21992. SriovNetSupport *AttributeValue `locationName:"sriovNetSupport" type:"structure"`
  21993. // Changes the instance's user data to the specified value. If you are using
  21994. // an AWS SDK or command line tool, Base64-encoding is performed for you, and
  21995. // you can load the text from a file. Otherwise, you must provide Base64-encoded
  21996. // text.
  21997. UserData *BlobAttributeValue `locationName:"userData" type:"structure"`
  21998. // A new value for the attribute. Use only with the kernel, ramdisk, userData,
  21999. // disableApiTermination, or instanceInitiatedShutdownBehavior attribute.
  22000. Value *string `locationName:"value" type:"string"`
  22001. }
  22002. // String returns the string representation
  22003. func (s ModifyInstanceAttributeInput) String() string {
  22004. return awsutil.Prettify(s)
  22005. }
  22006. // GoString returns the string representation
  22007. func (s ModifyInstanceAttributeInput) GoString() string {
  22008. return s.String()
  22009. }
  22010. // Validate inspects the fields of the type to determine if they are valid.
  22011. func (s *ModifyInstanceAttributeInput) Validate() error {
  22012. invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceAttributeInput"}
  22013. if s.InstanceId == nil {
  22014. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  22015. }
  22016. if invalidParams.Len() > 0 {
  22017. return invalidParams
  22018. }
  22019. return nil
  22020. }
  22021. type ModifyInstanceAttributeOutput struct {
  22022. _ struct{} `type:"structure"`
  22023. }
  22024. // String returns the string representation
  22025. func (s ModifyInstanceAttributeOutput) String() string {
  22026. return awsutil.Prettify(s)
  22027. }
  22028. // GoString returns the string representation
  22029. func (s ModifyInstanceAttributeOutput) GoString() string {
  22030. return s.String()
  22031. }
  22032. // Contains the parameters for ModifyInstancePlacement.
  22033. type ModifyInstancePlacementInput struct {
  22034. _ struct{} `type:"structure"`
  22035. // The new affinity setting for the instance.
  22036. Affinity *string `locationName:"affinity" type:"string" enum:"Affinity"`
  22037. // The ID of the Dedicated host that the instance will have affinity with.
  22038. HostId *string `locationName:"hostId" type:"string"`
  22039. // The ID of the instance that you are modifying.
  22040. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  22041. // The tenancy of the instance that you are modifying.
  22042. Tenancy *string `locationName:"tenancy" type:"string" enum:"HostTenancy"`
  22043. }
  22044. // String returns the string representation
  22045. func (s ModifyInstancePlacementInput) String() string {
  22046. return awsutil.Prettify(s)
  22047. }
  22048. // GoString returns the string representation
  22049. func (s ModifyInstancePlacementInput) GoString() string {
  22050. return s.String()
  22051. }
  22052. // Validate inspects the fields of the type to determine if they are valid.
  22053. func (s *ModifyInstancePlacementInput) Validate() error {
  22054. invalidParams := request.ErrInvalidParams{Context: "ModifyInstancePlacementInput"}
  22055. if s.InstanceId == nil {
  22056. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  22057. }
  22058. if invalidParams.Len() > 0 {
  22059. return invalidParams
  22060. }
  22061. return nil
  22062. }
  22063. // Contains the output of ModifyInstancePlacement.
  22064. type ModifyInstancePlacementOutput struct {
  22065. _ struct{} `type:"structure"`
  22066. // Is true if the request succeeds, and an error otherwise.
  22067. Return *bool `locationName:"return" type:"boolean"`
  22068. }
  22069. // String returns the string representation
  22070. func (s ModifyInstancePlacementOutput) String() string {
  22071. return awsutil.Prettify(s)
  22072. }
  22073. // GoString returns the string representation
  22074. func (s ModifyInstancePlacementOutput) GoString() string {
  22075. return s.String()
  22076. }
  22077. // Contains the parameters for ModifyNetworkInterfaceAttribute.
  22078. type ModifyNetworkInterfaceAttributeInput struct {
  22079. _ struct{} `type:"structure"`
  22080. // Information about the interface attachment. If modifying the 'delete on termination'
  22081. // attribute, you must specify the ID of the interface attachment.
  22082. Attachment *NetworkInterfaceAttachmentChanges `locationName:"attachment" type:"structure"`
  22083. // A description for the network interface.
  22084. Description *AttributeValue `locationName:"description" type:"structure"`
  22085. // Checks whether you have the required permissions for the action, without
  22086. // actually making the request, and provides an error response. If you have
  22087. // the required permissions, the error response is DryRunOperation. Otherwise,
  22088. // it is UnauthorizedOperation.
  22089. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22090. // Changes the security groups for the network interface. The new set of groups
  22091. // you specify replaces the current set. You must specify at least one group,
  22092. // even if it's just the default security group in the VPC. You must specify
  22093. // the ID of the security group, not the name.
  22094. Groups []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  22095. // The ID of the network interface.
  22096. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  22097. // Indicates whether source/destination checking is enabled. A value of true
  22098. // means checking is enabled, and false means checking is disabled. This value
  22099. // must be false for a NAT instance to perform NAT. For more information, see
  22100. // NAT Instances (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html)
  22101. // in the Amazon Virtual Private Cloud User Guide.
  22102. SourceDestCheck *AttributeBooleanValue `locationName:"sourceDestCheck" type:"structure"`
  22103. }
  22104. // String returns the string representation
  22105. func (s ModifyNetworkInterfaceAttributeInput) String() string {
  22106. return awsutil.Prettify(s)
  22107. }
  22108. // GoString returns the string representation
  22109. func (s ModifyNetworkInterfaceAttributeInput) GoString() string {
  22110. return s.String()
  22111. }
  22112. // Validate inspects the fields of the type to determine if they are valid.
  22113. func (s *ModifyNetworkInterfaceAttributeInput) Validate() error {
  22114. invalidParams := request.ErrInvalidParams{Context: "ModifyNetworkInterfaceAttributeInput"}
  22115. if s.NetworkInterfaceId == nil {
  22116. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  22117. }
  22118. if invalidParams.Len() > 0 {
  22119. return invalidParams
  22120. }
  22121. return nil
  22122. }
  22123. type ModifyNetworkInterfaceAttributeOutput struct {
  22124. _ struct{} `type:"structure"`
  22125. }
  22126. // String returns the string representation
  22127. func (s ModifyNetworkInterfaceAttributeOutput) String() string {
  22128. return awsutil.Prettify(s)
  22129. }
  22130. // GoString returns the string representation
  22131. func (s ModifyNetworkInterfaceAttributeOutput) GoString() string {
  22132. return s.String()
  22133. }
  22134. // Contains the parameters for ModifyReservedInstances.
  22135. type ModifyReservedInstancesInput struct {
  22136. _ struct{} `type:"structure"`
  22137. // A unique, case-sensitive token you provide to ensure idempotency of your
  22138. // modification request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  22139. ClientToken *string `locationName:"clientToken" type:"string"`
  22140. // The IDs of the Reserved Instances to modify.
  22141. ReservedInstancesIds []*string `locationName:"ReservedInstancesId" locationNameList:"ReservedInstancesId" type:"list" required:"true"`
  22142. // The configuration settings for the Reserved Instances to modify.
  22143. TargetConfigurations []*ReservedInstancesConfiguration `locationName:"ReservedInstancesConfigurationSetItemType" locationNameList:"item" type:"list" required:"true"`
  22144. }
  22145. // String returns the string representation
  22146. func (s ModifyReservedInstancesInput) String() string {
  22147. return awsutil.Prettify(s)
  22148. }
  22149. // GoString returns the string representation
  22150. func (s ModifyReservedInstancesInput) GoString() string {
  22151. return s.String()
  22152. }
  22153. // Validate inspects the fields of the type to determine if they are valid.
  22154. func (s *ModifyReservedInstancesInput) Validate() error {
  22155. invalidParams := request.ErrInvalidParams{Context: "ModifyReservedInstancesInput"}
  22156. if s.ReservedInstancesIds == nil {
  22157. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesIds"))
  22158. }
  22159. if s.TargetConfigurations == nil {
  22160. invalidParams.Add(request.NewErrParamRequired("TargetConfigurations"))
  22161. }
  22162. if invalidParams.Len() > 0 {
  22163. return invalidParams
  22164. }
  22165. return nil
  22166. }
  22167. // Contains the output of ModifyReservedInstances.
  22168. type ModifyReservedInstancesOutput struct {
  22169. _ struct{} `type:"structure"`
  22170. // The ID for the modification.
  22171. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
  22172. }
  22173. // String returns the string representation
  22174. func (s ModifyReservedInstancesOutput) String() string {
  22175. return awsutil.Prettify(s)
  22176. }
  22177. // GoString returns the string representation
  22178. func (s ModifyReservedInstancesOutput) GoString() string {
  22179. return s.String()
  22180. }
  22181. // Contains the parameters for ModifySnapshotAttribute.
  22182. type ModifySnapshotAttributeInput struct {
  22183. _ struct{} `type:"structure"`
  22184. // The snapshot attribute to modify.
  22185. //
  22186. // Only volume creation permissions may be modified at the customer level.
  22187. Attribute *string `type:"string" enum:"SnapshotAttributeName"`
  22188. // A JSON representation of the snapshot attribute modification.
  22189. CreateVolumePermission *CreateVolumePermissionModifications `type:"structure"`
  22190. // Checks whether you have the required permissions for the action, without
  22191. // actually making the request, and provides an error response. If you have
  22192. // the required permissions, the error response is DryRunOperation. Otherwise,
  22193. // it is UnauthorizedOperation.
  22194. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22195. // The group to modify for the snapshot.
  22196. GroupNames []*string `locationName:"UserGroup" locationNameList:"GroupName" type:"list"`
  22197. // The type of operation to perform to the attribute.
  22198. OperationType *string `type:"string" enum:"OperationType"`
  22199. // The ID of the snapshot.
  22200. SnapshotId *string `type:"string" required:"true"`
  22201. // The account ID to modify for the snapshot.
  22202. UserIds []*string `locationName:"UserId" locationNameList:"UserId" type:"list"`
  22203. }
  22204. // String returns the string representation
  22205. func (s ModifySnapshotAttributeInput) String() string {
  22206. return awsutil.Prettify(s)
  22207. }
  22208. // GoString returns the string representation
  22209. func (s ModifySnapshotAttributeInput) GoString() string {
  22210. return s.String()
  22211. }
  22212. // Validate inspects the fields of the type to determine if they are valid.
  22213. func (s *ModifySnapshotAttributeInput) Validate() error {
  22214. invalidParams := request.ErrInvalidParams{Context: "ModifySnapshotAttributeInput"}
  22215. if s.SnapshotId == nil {
  22216. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  22217. }
  22218. if invalidParams.Len() > 0 {
  22219. return invalidParams
  22220. }
  22221. return nil
  22222. }
  22223. type ModifySnapshotAttributeOutput struct {
  22224. _ struct{} `type:"structure"`
  22225. }
  22226. // String returns the string representation
  22227. func (s ModifySnapshotAttributeOutput) String() string {
  22228. return awsutil.Prettify(s)
  22229. }
  22230. // GoString returns the string representation
  22231. func (s ModifySnapshotAttributeOutput) GoString() string {
  22232. return s.String()
  22233. }
  22234. // Contains the parameters for ModifySpotFleetRequest.
  22235. type ModifySpotFleetRequestInput struct {
  22236. _ struct{} `type:"structure"`
  22237. // Indicates whether running Spot instances should be terminated if the target
  22238. // capacity of the Spot fleet request is decreased below the current size of
  22239. // the Spot fleet.
  22240. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"`
  22241. // The ID of the Spot fleet request.
  22242. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  22243. // The size of the fleet.
  22244. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer"`
  22245. }
  22246. // String returns the string representation
  22247. func (s ModifySpotFleetRequestInput) String() string {
  22248. return awsutil.Prettify(s)
  22249. }
  22250. // GoString returns the string representation
  22251. func (s ModifySpotFleetRequestInput) GoString() string {
  22252. return s.String()
  22253. }
  22254. // Validate inspects the fields of the type to determine if they are valid.
  22255. func (s *ModifySpotFleetRequestInput) Validate() error {
  22256. invalidParams := request.ErrInvalidParams{Context: "ModifySpotFleetRequestInput"}
  22257. if s.SpotFleetRequestId == nil {
  22258. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestId"))
  22259. }
  22260. if invalidParams.Len() > 0 {
  22261. return invalidParams
  22262. }
  22263. return nil
  22264. }
  22265. // Contains the output of ModifySpotFleetRequest.
  22266. type ModifySpotFleetRequestOutput struct {
  22267. _ struct{} `type:"structure"`
  22268. // Is true if the request succeeds, and an error otherwise.
  22269. Return *bool `locationName:"return" type:"boolean"`
  22270. }
  22271. // String returns the string representation
  22272. func (s ModifySpotFleetRequestOutput) String() string {
  22273. return awsutil.Prettify(s)
  22274. }
  22275. // GoString returns the string representation
  22276. func (s ModifySpotFleetRequestOutput) GoString() string {
  22277. return s.String()
  22278. }
  22279. // Contains the parameters for ModifySubnetAttribute.
  22280. type ModifySubnetAttributeInput struct {
  22281. _ struct{} `type:"structure"`
  22282. // Specify true to indicate that instances launched into the specified subnet
  22283. // should be assigned public IP address.
  22284. MapPublicIpOnLaunch *AttributeBooleanValue `type:"structure"`
  22285. // The ID of the subnet.
  22286. SubnetId *string `locationName:"subnetId" type:"string" required:"true"`
  22287. }
  22288. // String returns the string representation
  22289. func (s ModifySubnetAttributeInput) String() string {
  22290. return awsutil.Prettify(s)
  22291. }
  22292. // GoString returns the string representation
  22293. func (s ModifySubnetAttributeInput) GoString() string {
  22294. return s.String()
  22295. }
  22296. // Validate inspects the fields of the type to determine if they are valid.
  22297. func (s *ModifySubnetAttributeInput) Validate() error {
  22298. invalidParams := request.ErrInvalidParams{Context: "ModifySubnetAttributeInput"}
  22299. if s.SubnetId == nil {
  22300. invalidParams.Add(request.NewErrParamRequired("SubnetId"))
  22301. }
  22302. if invalidParams.Len() > 0 {
  22303. return invalidParams
  22304. }
  22305. return nil
  22306. }
  22307. type ModifySubnetAttributeOutput struct {
  22308. _ struct{} `type:"structure"`
  22309. }
  22310. // String returns the string representation
  22311. func (s ModifySubnetAttributeOutput) String() string {
  22312. return awsutil.Prettify(s)
  22313. }
  22314. // GoString returns the string representation
  22315. func (s ModifySubnetAttributeOutput) GoString() string {
  22316. return s.String()
  22317. }
  22318. // Contains the parameters for ModifyVolumeAttribute.
  22319. type ModifyVolumeAttributeInput struct {
  22320. _ struct{} `type:"structure"`
  22321. // Indicates whether the volume should be auto-enabled for I/O operations.
  22322. AutoEnableIO *AttributeBooleanValue `type:"structure"`
  22323. // Checks whether you have the required permissions for the action, without
  22324. // actually making the request, and provides an error response. If you have
  22325. // the required permissions, the error response is DryRunOperation. Otherwise,
  22326. // it is UnauthorizedOperation.
  22327. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22328. // The ID of the volume.
  22329. VolumeId *string `type:"string" required:"true"`
  22330. }
  22331. // String returns the string representation
  22332. func (s ModifyVolumeAttributeInput) String() string {
  22333. return awsutil.Prettify(s)
  22334. }
  22335. // GoString returns the string representation
  22336. func (s ModifyVolumeAttributeInput) GoString() string {
  22337. return s.String()
  22338. }
  22339. // Validate inspects the fields of the type to determine if they are valid.
  22340. func (s *ModifyVolumeAttributeInput) Validate() error {
  22341. invalidParams := request.ErrInvalidParams{Context: "ModifyVolumeAttributeInput"}
  22342. if s.VolumeId == nil {
  22343. invalidParams.Add(request.NewErrParamRequired("VolumeId"))
  22344. }
  22345. if invalidParams.Len() > 0 {
  22346. return invalidParams
  22347. }
  22348. return nil
  22349. }
  22350. type ModifyVolumeAttributeOutput struct {
  22351. _ struct{} `type:"structure"`
  22352. }
  22353. // String returns the string representation
  22354. func (s ModifyVolumeAttributeOutput) String() string {
  22355. return awsutil.Prettify(s)
  22356. }
  22357. // GoString returns the string representation
  22358. func (s ModifyVolumeAttributeOutput) GoString() string {
  22359. return s.String()
  22360. }
  22361. // Contains the parameters for ModifyVpcAttribute.
  22362. type ModifyVpcAttributeInput struct {
  22363. _ struct{} `type:"structure"`
  22364. // Indicates whether the instances launched in the VPC get DNS hostnames. If
  22365. // enabled, instances in the VPC get DNS hostnames; otherwise, they do not.
  22366. //
  22367. // You cannot modify the DNS resolution and DNS hostnames attributes in the
  22368. // same request. Use separate requests for each attribute. You can only enable
  22369. // DNS hostnames if you've enabled DNS support.
  22370. EnableDnsHostnames *AttributeBooleanValue `type:"structure"`
  22371. // Indicates whether the DNS resolution is supported for the VPC. If enabled,
  22372. // queries to the Amazon provided DNS server at the 169.254.169.253 IP address,
  22373. // or the reserved IP address at the base of the VPC network range "plus two"
  22374. // will succeed. If disabled, the Amazon provided DNS service in the VPC that
  22375. // resolves public DNS hostnames to IP addresses is not enabled.
  22376. //
  22377. // You cannot modify the DNS resolution and DNS hostnames attributes in the
  22378. // same request. Use separate requests for each attribute.
  22379. EnableDnsSupport *AttributeBooleanValue `type:"structure"`
  22380. // The ID of the VPC.
  22381. VpcId *string `locationName:"vpcId" type:"string" required:"true"`
  22382. }
  22383. // String returns the string representation
  22384. func (s ModifyVpcAttributeInput) String() string {
  22385. return awsutil.Prettify(s)
  22386. }
  22387. // GoString returns the string representation
  22388. func (s ModifyVpcAttributeInput) GoString() string {
  22389. return s.String()
  22390. }
  22391. // Validate inspects the fields of the type to determine if they are valid.
  22392. func (s *ModifyVpcAttributeInput) Validate() error {
  22393. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcAttributeInput"}
  22394. if s.VpcId == nil {
  22395. invalidParams.Add(request.NewErrParamRequired("VpcId"))
  22396. }
  22397. if invalidParams.Len() > 0 {
  22398. return invalidParams
  22399. }
  22400. return nil
  22401. }
  22402. type ModifyVpcAttributeOutput struct {
  22403. _ struct{} `type:"structure"`
  22404. }
  22405. // String returns the string representation
  22406. func (s ModifyVpcAttributeOutput) String() string {
  22407. return awsutil.Prettify(s)
  22408. }
  22409. // GoString returns the string representation
  22410. func (s ModifyVpcAttributeOutput) GoString() string {
  22411. return s.String()
  22412. }
  22413. // Contains the parameters for ModifyVpcEndpoint.
  22414. type ModifyVpcEndpointInput struct {
  22415. _ struct{} `type:"structure"`
  22416. // One or more route tables IDs to associate with the endpoint.
  22417. AddRouteTableIds []*string `locationName:"AddRouteTableId" locationNameList:"item" type:"list"`
  22418. // Checks whether you have the required permissions for the action, without
  22419. // actually making the request, and provides an error response. If you have
  22420. // the required permissions, the error response is DryRunOperation. Otherwise,
  22421. // it is UnauthorizedOperation.
  22422. DryRun *bool `type:"boolean"`
  22423. // A policy document to attach to the endpoint. The policy must be in valid
  22424. // JSON format.
  22425. PolicyDocument *string `type:"string"`
  22426. // One or more route table IDs to disassociate from the endpoint.
  22427. RemoveRouteTableIds []*string `locationName:"RemoveRouteTableId" locationNameList:"item" type:"list"`
  22428. // Specify true to reset the policy document to the default policy. The default
  22429. // policy allows access to the service.
  22430. ResetPolicy *bool `type:"boolean"`
  22431. // The ID of the endpoint.
  22432. VpcEndpointId *string `type:"string" required:"true"`
  22433. }
  22434. // String returns the string representation
  22435. func (s ModifyVpcEndpointInput) String() string {
  22436. return awsutil.Prettify(s)
  22437. }
  22438. // GoString returns the string representation
  22439. func (s ModifyVpcEndpointInput) GoString() string {
  22440. return s.String()
  22441. }
  22442. // Validate inspects the fields of the type to determine if they are valid.
  22443. func (s *ModifyVpcEndpointInput) Validate() error {
  22444. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcEndpointInput"}
  22445. if s.VpcEndpointId == nil {
  22446. invalidParams.Add(request.NewErrParamRequired("VpcEndpointId"))
  22447. }
  22448. if invalidParams.Len() > 0 {
  22449. return invalidParams
  22450. }
  22451. return nil
  22452. }
  22453. // Contains the output of ModifyVpcEndpoint.
  22454. type ModifyVpcEndpointOutput struct {
  22455. _ struct{} `type:"structure"`
  22456. // Returns true if the request succeeds; otherwise, it returns an error.
  22457. Return *bool `locationName:"return" type:"boolean"`
  22458. }
  22459. // String returns the string representation
  22460. func (s ModifyVpcEndpointOutput) String() string {
  22461. return awsutil.Prettify(s)
  22462. }
  22463. // GoString returns the string representation
  22464. func (s ModifyVpcEndpointOutput) GoString() string {
  22465. return s.String()
  22466. }
  22467. type ModifyVpcPeeringConnectionOptionsInput struct {
  22468. _ struct{} `type:"structure"`
  22469. // The VPC peering connection options for the accepter VPC.
  22470. AccepterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
  22471. // Checks whether you have the required permissions for the operation, without
  22472. // actually making the request, and provides an error response. If you have
  22473. // the required permissions, the error response is DryRunOperation. Otherwise,
  22474. // it is UnauthorizedOperation.
  22475. DryRun *bool `type:"boolean"`
  22476. // The VPC peering connection options for the requester VPC.
  22477. RequesterPeeringConnectionOptions *PeeringConnectionOptionsRequest `type:"structure"`
  22478. // The ID of the VPC peering connection.
  22479. VpcPeeringConnectionId *string `type:"string" required:"true"`
  22480. }
  22481. // String returns the string representation
  22482. func (s ModifyVpcPeeringConnectionOptionsInput) String() string {
  22483. return awsutil.Prettify(s)
  22484. }
  22485. // GoString returns the string representation
  22486. func (s ModifyVpcPeeringConnectionOptionsInput) GoString() string {
  22487. return s.String()
  22488. }
  22489. // Validate inspects the fields of the type to determine if they are valid.
  22490. func (s *ModifyVpcPeeringConnectionOptionsInput) Validate() error {
  22491. invalidParams := request.ErrInvalidParams{Context: "ModifyVpcPeeringConnectionOptionsInput"}
  22492. if s.VpcPeeringConnectionId == nil {
  22493. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  22494. }
  22495. if invalidParams.Len() > 0 {
  22496. return invalidParams
  22497. }
  22498. return nil
  22499. }
  22500. type ModifyVpcPeeringConnectionOptionsOutput struct {
  22501. _ struct{} `type:"structure"`
  22502. // Information about the VPC peering connection options for the accepter VPC.
  22503. AccepterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"accepterPeeringConnectionOptions" type:"structure"`
  22504. // Information about the VPC peering connection options for the requester VPC.
  22505. RequesterPeeringConnectionOptions *PeeringConnectionOptions `locationName:"requesterPeeringConnectionOptions" type:"structure"`
  22506. }
  22507. // String returns the string representation
  22508. func (s ModifyVpcPeeringConnectionOptionsOutput) String() string {
  22509. return awsutil.Prettify(s)
  22510. }
  22511. // GoString returns the string representation
  22512. func (s ModifyVpcPeeringConnectionOptionsOutput) GoString() string {
  22513. return s.String()
  22514. }
  22515. // Contains the parameters for MonitorInstances.
  22516. type MonitorInstancesInput struct {
  22517. _ struct{} `type:"structure"`
  22518. // Checks whether you have the required permissions for the action, without
  22519. // actually making the request, and provides an error response. If you have
  22520. // the required permissions, the error response is DryRunOperation. Otherwise,
  22521. // it is UnauthorizedOperation.
  22522. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22523. // One or more instance IDs.
  22524. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  22525. }
  22526. // String returns the string representation
  22527. func (s MonitorInstancesInput) String() string {
  22528. return awsutil.Prettify(s)
  22529. }
  22530. // GoString returns the string representation
  22531. func (s MonitorInstancesInput) GoString() string {
  22532. return s.String()
  22533. }
  22534. // Validate inspects the fields of the type to determine if they are valid.
  22535. func (s *MonitorInstancesInput) Validate() error {
  22536. invalidParams := request.ErrInvalidParams{Context: "MonitorInstancesInput"}
  22537. if s.InstanceIds == nil {
  22538. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  22539. }
  22540. if invalidParams.Len() > 0 {
  22541. return invalidParams
  22542. }
  22543. return nil
  22544. }
  22545. // Contains the output of MonitorInstances.
  22546. type MonitorInstancesOutput struct {
  22547. _ struct{} `type:"structure"`
  22548. // Monitoring information for one or more instances.
  22549. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
  22550. }
  22551. // String returns the string representation
  22552. func (s MonitorInstancesOutput) String() string {
  22553. return awsutil.Prettify(s)
  22554. }
  22555. // GoString returns the string representation
  22556. func (s MonitorInstancesOutput) GoString() string {
  22557. return s.String()
  22558. }
  22559. // Describes the monitoring for the instance.
  22560. type Monitoring struct {
  22561. _ struct{} `type:"structure"`
  22562. // Indicates whether monitoring is enabled for the instance.
  22563. State *string `locationName:"state" type:"string" enum:"MonitoringState"`
  22564. }
  22565. // String returns the string representation
  22566. func (s Monitoring) String() string {
  22567. return awsutil.Prettify(s)
  22568. }
  22569. // GoString returns the string representation
  22570. func (s Monitoring) GoString() string {
  22571. return s.String()
  22572. }
  22573. // Contains the parameters for MoveAddressToVpc.
  22574. type MoveAddressToVpcInput struct {
  22575. _ struct{} `type:"structure"`
  22576. // Checks whether you have the required permissions for the action, without
  22577. // actually making the request, and provides an error response. If you have
  22578. // the required permissions, the error response is DryRunOperation. Otherwise,
  22579. // it is UnauthorizedOperation.
  22580. DryRun *bool `locationName:"dryRun" type:"boolean"`
  22581. // The Elastic IP address.
  22582. PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
  22583. }
  22584. // String returns the string representation
  22585. func (s MoveAddressToVpcInput) String() string {
  22586. return awsutil.Prettify(s)
  22587. }
  22588. // GoString returns the string representation
  22589. func (s MoveAddressToVpcInput) GoString() string {
  22590. return s.String()
  22591. }
  22592. // Validate inspects the fields of the type to determine if they are valid.
  22593. func (s *MoveAddressToVpcInput) Validate() error {
  22594. invalidParams := request.ErrInvalidParams{Context: "MoveAddressToVpcInput"}
  22595. if s.PublicIp == nil {
  22596. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  22597. }
  22598. if invalidParams.Len() > 0 {
  22599. return invalidParams
  22600. }
  22601. return nil
  22602. }
  22603. // Contains the output of MoveAddressToVpc.
  22604. type MoveAddressToVpcOutput struct {
  22605. _ struct{} `type:"structure"`
  22606. // The allocation ID for the Elastic IP address.
  22607. AllocationId *string `locationName:"allocationId" type:"string"`
  22608. // The status of the move of the IP address.
  22609. Status *string `locationName:"status" type:"string" enum:"Status"`
  22610. }
  22611. // String returns the string representation
  22612. func (s MoveAddressToVpcOutput) String() string {
  22613. return awsutil.Prettify(s)
  22614. }
  22615. // GoString returns the string representation
  22616. func (s MoveAddressToVpcOutput) GoString() string {
  22617. return s.String()
  22618. }
  22619. // Describes the status of a moving Elastic IP address.
  22620. type MovingAddressStatus struct {
  22621. _ struct{} `type:"structure"`
  22622. // The status of the Elastic IP address that's being moved to the EC2-VPC platform,
  22623. // or restored to the EC2-Classic platform.
  22624. MoveStatus *string `locationName:"moveStatus" type:"string" enum:"MoveStatus"`
  22625. // The Elastic IP address.
  22626. PublicIp *string `locationName:"publicIp" type:"string"`
  22627. }
  22628. // String returns the string representation
  22629. func (s MovingAddressStatus) String() string {
  22630. return awsutil.Prettify(s)
  22631. }
  22632. // GoString returns the string representation
  22633. func (s MovingAddressStatus) GoString() string {
  22634. return s.String()
  22635. }
  22636. // Describes a NAT gateway.
  22637. type NatGateway struct {
  22638. _ struct{} `type:"structure"`
  22639. // The date and time the NAT gateway was created.
  22640. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  22641. // The date and time the NAT gateway was deleted, if applicable.
  22642. DeleteTime *time.Time `locationName:"deleteTime" type:"timestamp" timestampFormat:"iso8601"`
  22643. // If the NAT gateway could not be created, specifies the error code for the
  22644. // failure. (InsufficientFreeAddressesInSubnet | Gateway.NotAttached | InvalidAllocationID.NotFound
  22645. // | Resource.AlreadyAssociated | InternalError | InvalidSubnetID.NotFound)
  22646. FailureCode *string `locationName:"failureCode" type:"string"`
  22647. // If the NAT gateway could not be created, specifies the error message for
  22648. // the failure, that corresponds to the error code.
  22649. //
  22650. // For InsufficientFreeAddressesInSubnet: "Subnet has insufficient free addresses
  22651. // to create this NAT gateway"
  22652. //
  22653. // For Gateway.NotAttached: "Network vpc-xxxxxxxx has no Internet gateway
  22654. // attached"
  22655. //
  22656. // For InvalidAllocationID.NotFound: "Elastic IP address eipalloc-xxxxxxxx
  22657. // could not be associated with this NAT gateway"
  22658. //
  22659. // For Resource.AlreadyAssociated: "Elastic IP address eipalloc-xxxxxxxx
  22660. // is already associated"
  22661. //
  22662. // For InternalError: "Network interface eni-xxxxxxxx, created and used internally
  22663. // by this NAT gateway is in an invalid state. Please try again."
  22664. //
  22665. // For InvalidSubnetID.NotFound: "The specified subnet subnet-xxxxxxxx does
  22666. // not exist or could not be found."
  22667. FailureMessage *string `locationName:"failureMessage" type:"string"`
  22668. // Information about the IP addresses and network interface associated with
  22669. // the NAT gateway.
  22670. NatGatewayAddresses []*NatGatewayAddress `locationName:"natGatewayAddressSet" locationNameList:"item" type:"list"`
  22671. // The ID of the NAT gateway.
  22672. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  22673. // Reserved. If you need to sustain traffic greater than the documented limits
  22674. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  22675. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  22676. ProvisionedBandwidth *ProvisionedBandwidth `locationName:"provisionedBandwidth" type:"structure"`
  22677. // The state of the NAT gateway.
  22678. //
  22679. // pending: The NAT gateway is being created and is not ready to process
  22680. // traffic.
  22681. //
  22682. // failed: The NAT gateway could not be created. Check the failureCode and
  22683. // failureMessage fields for the reason.
  22684. //
  22685. // available: The NAT gateway is able to process traffic. This status remains
  22686. // until you delete the NAT gateway, and does not indicate the health of the
  22687. // NAT gateway.
  22688. //
  22689. // deleting: The NAT gateway is in the process of being terminated and may
  22690. // still be processing traffic.
  22691. //
  22692. // deleted: The NAT gateway has been terminated and is no longer processing
  22693. // traffic.
  22694. State *string `locationName:"state" type:"string" enum:"NatGatewayState"`
  22695. // The ID of the subnet in which the NAT gateway is located.
  22696. SubnetId *string `locationName:"subnetId" type:"string"`
  22697. // The ID of the VPC in which the NAT gateway is located.
  22698. VpcId *string `locationName:"vpcId" type:"string"`
  22699. }
  22700. // String returns the string representation
  22701. func (s NatGateway) String() string {
  22702. return awsutil.Prettify(s)
  22703. }
  22704. // GoString returns the string representation
  22705. func (s NatGateway) GoString() string {
  22706. return s.String()
  22707. }
  22708. // Describes the IP addresses and network interface associated with a NAT gateway.
  22709. type NatGatewayAddress struct {
  22710. _ struct{} `type:"structure"`
  22711. // The allocation ID of the Elastic IP address that's associated with the NAT
  22712. // gateway.
  22713. AllocationId *string `locationName:"allocationId" type:"string"`
  22714. // The ID of the network interface associated with the NAT gateway.
  22715. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  22716. // The private IP address associated with the Elastic IP address.
  22717. PrivateIp *string `locationName:"privateIp" type:"string"`
  22718. // The Elastic IP address associated with the NAT gateway.
  22719. PublicIp *string `locationName:"publicIp" type:"string"`
  22720. }
  22721. // String returns the string representation
  22722. func (s NatGatewayAddress) String() string {
  22723. return awsutil.Prettify(s)
  22724. }
  22725. // GoString returns the string representation
  22726. func (s NatGatewayAddress) GoString() string {
  22727. return s.String()
  22728. }
  22729. // Describes a network ACL.
  22730. type NetworkAcl struct {
  22731. _ struct{} `type:"structure"`
  22732. // Any associations between the network ACL and one or more subnets
  22733. Associations []*NetworkAclAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`
  22734. // One or more entries (rules) in the network ACL.
  22735. Entries []*NetworkAclEntry `locationName:"entrySet" locationNameList:"item" type:"list"`
  22736. // Indicates whether this is the default network ACL for the VPC.
  22737. IsDefault *bool `locationName:"default" type:"boolean"`
  22738. // The ID of the network ACL.
  22739. NetworkAclId *string `locationName:"networkAclId" type:"string"`
  22740. // Any tags assigned to the network ACL.
  22741. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  22742. // The ID of the VPC for the network ACL.
  22743. VpcId *string `locationName:"vpcId" type:"string"`
  22744. }
  22745. // String returns the string representation
  22746. func (s NetworkAcl) String() string {
  22747. return awsutil.Prettify(s)
  22748. }
  22749. // GoString returns the string representation
  22750. func (s NetworkAcl) GoString() string {
  22751. return s.String()
  22752. }
  22753. // Describes an association between a network ACL and a subnet.
  22754. type NetworkAclAssociation struct {
  22755. _ struct{} `type:"structure"`
  22756. // The ID of the association between a network ACL and a subnet.
  22757. NetworkAclAssociationId *string `locationName:"networkAclAssociationId" type:"string"`
  22758. // The ID of the network ACL.
  22759. NetworkAclId *string `locationName:"networkAclId" type:"string"`
  22760. // The ID of the subnet.
  22761. SubnetId *string `locationName:"subnetId" type:"string"`
  22762. }
  22763. // String returns the string representation
  22764. func (s NetworkAclAssociation) String() string {
  22765. return awsutil.Prettify(s)
  22766. }
  22767. // GoString returns the string representation
  22768. func (s NetworkAclAssociation) GoString() string {
  22769. return s.String()
  22770. }
  22771. // Describes an entry in a network ACL.
  22772. type NetworkAclEntry struct {
  22773. _ struct{} `type:"structure"`
  22774. // The network range to allow or deny, in CIDR notation.
  22775. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  22776. // Indicates whether the rule is an egress rule (applied to traffic leaving
  22777. // the subnet).
  22778. Egress *bool `locationName:"egress" type:"boolean"`
  22779. // ICMP protocol: The ICMP type and code.
  22780. IcmpTypeCode *IcmpTypeCode `locationName:"icmpTypeCode" type:"structure"`
  22781. // TCP or UDP protocols: The range of ports the rule applies to.
  22782. PortRange *PortRange `locationName:"portRange" type:"structure"`
  22783. // The protocol. A value of -1 means all protocols.
  22784. Protocol *string `locationName:"protocol" type:"string"`
  22785. // Indicates whether to allow or deny the traffic that matches the rule.
  22786. RuleAction *string `locationName:"ruleAction" type:"string" enum:"RuleAction"`
  22787. // The rule number for the entry. ACL entries are processed in ascending order
  22788. // by rule number.
  22789. RuleNumber *int64 `locationName:"ruleNumber" type:"integer"`
  22790. }
  22791. // String returns the string representation
  22792. func (s NetworkAclEntry) String() string {
  22793. return awsutil.Prettify(s)
  22794. }
  22795. // GoString returns the string representation
  22796. func (s NetworkAclEntry) GoString() string {
  22797. return s.String()
  22798. }
  22799. // Describes a network interface.
  22800. type NetworkInterface struct {
  22801. _ struct{} `type:"structure"`
  22802. // The association information for an Elastic IP associated with the network
  22803. // interface.
  22804. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`
  22805. // The network interface attachment.
  22806. Attachment *NetworkInterfaceAttachment `locationName:"attachment" type:"structure"`
  22807. // The Availability Zone.
  22808. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  22809. // A description.
  22810. Description *string `locationName:"description" type:"string"`
  22811. // Any security groups for the network interface.
  22812. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  22813. // The type of interface.
  22814. InterfaceType *string `locationName:"interfaceType" type:"string" enum:"NetworkInterfaceType"`
  22815. // The MAC address.
  22816. MacAddress *string `locationName:"macAddress" type:"string"`
  22817. // The ID of the network interface.
  22818. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  22819. // The AWS account ID of the owner of the network interface.
  22820. OwnerId *string `locationName:"ownerId" type:"string"`
  22821. // The private DNS name.
  22822. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  22823. // The IP address of the network interface within the subnet.
  22824. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  22825. // The private IP addresses associated with the network interface.
  22826. PrivateIpAddresses []*NetworkInterfacePrivateIpAddress `locationName:"privateIpAddressesSet" locationNameList:"item" type:"list"`
  22827. // The ID of the entity that launched the instance on your behalf (for example,
  22828. // AWS Management Console or Auto Scaling).
  22829. RequesterId *string `locationName:"requesterId" type:"string"`
  22830. // Indicates whether the network interface is being managed by AWS.
  22831. RequesterManaged *bool `locationName:"requesterManaged" type:"boolean"`
  22832. // Indicates whether traffic to or from the instance is validated.
  22833. SourceDestCheck *bool `locationName:"sourceDestCheck" type:"boolean"`
  22834. // The status of the network interface.
  22835. Status *string `locationName:"status" type:"string" enum:"NetworkInterfaceStatus"`
  22836. // The ID of the subnet.
  22837. SubnetId *string `locationName:"subnetId" type:"string"`
  22838. // Any tags assigned to the network interface.
  22839. TagSet []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  22840. // The ID of the VPC.
  22841. VpcId *string `locationName:"vpcId" type:"string"`
  22842. }
  22843. // String returns the string representation
  22844. func (s NetworkInterface) String() string {
  22845. return awsutil.Prettify(s)
  22846. }
  22847. // GoString returns the string representation
  22848. func (s NetworkInterface) GoString() string {
  22849. return s.String()
  22850. }
  22851. // Describes association information for an Elastic IP address.
  22852. type NetworkInterfaceAssociation struct {
  22853. _ struct{} `type:"structure"`
  22854. // The allocation ID.
  22855. AllocationId *string `locationName:"allocationId" type:"string"`
  22856. // The association ID.
  22857. AssociationId *string `locationName:"associationId" type:"string"`
  22858. // The ID of the Elastic IP address owner.
  22859. IpOwnerId *string `locationName:"ipOwnerId" type:"string"`
  22860. // The public DNS name.
  22861. PublicDnsName *string `locationName:"publicDnsName" type:"string"`
  22862. // The address of the Elastic IP address bound to the network interface.
  22863. PublicIp *string `locationName:"publicIp" type:"string"`
  22864. }
  22865. // String returns the string representation
  22866. func (s NetworkInterfaceAssociation) String() string {
  22867. return awsutil.Prettify(s)
  22868. }
  22869. // GoString returns the string representation
  22870. func (s NetworkInterfaceAssociation) GoString() string {
  22871. return s.String()
  22872. }
  22873. // Describes a network interface attachment.
  22874. type NetworkInterfaceAttachment struct {
  22875. _ struct{} `type:"structure"`
  22876. // The timestamp indicating when the attachment initiated.
  22877. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  22878. // The ID of the network interface attachment.
  22879. AttachmentId *string `locationName:"attachmentId" type:"string"`
  22880. // Indicates whether the network interface is deleted when the instance is terminated.
  22881. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  22882. // The device index of the network interface attachment on the instance.
  22883. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"`
  22884. // The ID of the instance.
  22885. InstanceId *string `locationName:"instanceId" type:"string"`
  22886. // The AWS account ID of the owner of the instance.
  22887. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`
  22888. // The attachment state.
  22889. Status *string `locationName:"status" type:"string" enum:"AttachmentStatus"`
  22890. }
  22891. // String returns the string representation
  22892. func (s NetworkInterfaceAttachment) String() string {
  22893. return awsutil.Prettify(s)
  22894. }
  22895. // GoString returns the string representation
  22896. func (s NetworkInterfaceAttachment) GoString() string {
  22897. return s.String()
  22898. }
  22899. // Describes an attachment change.
  22900. type NetworkInterfaceAttachmentChanges struct {
  22901. _ struct{} `type:"structure"`
  22902. // The ID of the network interface attachment.
  22903. AttachmentId *string `locationName:"attachmentId" type:"string"`
  22904. // Indicates whether the network interface is deleted when the instance is terminated.
  22905. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  22906. }
  22907. // String returns the string representation
  22908. func (s NetworkInterfaceAttachmentChanges) String() string {
  22909. return awsutil.Prettify(s)
  22910. }
  22911. // GoString returns the string representation
  22912. func (s NetworkInterfaceAttachmentChanges) GoString() string {
  22913. return s.String()
  22914. }
  22915. // Describes the private IP address of a network interface.
  22916. type NetworkInterfacePrivateIpAddress struct {
  22917. _ struct{} `type:"structure"`
  22918. // The association information for an Elastic IP address associated with the
  22919. // network interface.
  22920. Association *NetworkInterfaceAssociation `locationName:"association" type:"structure"`
  22921. // Indicates whether this IP address is the primary private IP address of the
  22922. // network interface.
  22923. Primary *bool `locationName:"primary" type:"boolean"`
  22924. // The private DNS name.
  22925. PrivateDnsName *string `locationName:"privateDnsName" type:"string"`
  22926. // The private IP address.
  22927. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  22928. }
  22929. // String returns the string representation
  22930. func (s NetworkInterfacePrivateIpAddress) String() string {
  22931. return awsutil.Prettify(s)
  22932. }
  22933. // GoString returns the string representation
  22934. func (s NetworkInterfacePrivateIpAddress) GoString() string {
  22935. return s.String()
  22936. }
  22937. type NewDhcpConfiguration struct {
  22938. _ struct{} `type:"structure"`
  22939. Key *string `locationName:"key" type:"string"`
  22940. Values []*string `locationName:"Value" locationNameList:"item" type:"list"`
  22941. }
  22942. // String returns the string representation
  22943. func (s NewDhcpConfiguration) String() string {
  22944. return awsutil.Prettify(s)
  22945. }
  22946. // GoString returns the string representation
  22947. func (s NewDhcpConfiguration) GoString() string {
  22948. return s.String()
  22949. }
  22950. // Describes the VPC peering connection options.
  22951. type PeeringConnectionOptions struct {
  22952. _ struct{} `type:"structure"`
  22953. // If true, enables a local VPC to resolve public DNS hostnames to private IP
  22954. // addresses when queried from instances in the peer VPC.
  22955. AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
  22956. // If true, enables outbound communication from an EC2-Classic instance that's
  22957. // linked to a local VPC via ClassicLink to instances in a peer VPC.
  22958. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
  22959. // If true, enables outbound communication from instances in a local VPC to
  22960. // an EC2-Classic instance that's linked to a peer VPC via ClassicLink.
  22961. AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
  22962. }
  22963. // String returns the string representation
  22964. func (s PeeringConnectionOptions) String() string {
  22965. return awsutil.Prettify(s)
  22966. }
  22967. // GoString returns the string representation
  22968. func (s PeeringConnectionOptions) GoString() string {
  22969. return s.String()
  22970. }
  22971. // The VPC peering connection options.
  22972. type PeeringConnectionOptionsRequest struct {
  22973. _ struct{} `type:"structure"`
  22974. // If true, enables a local VPC to resolve public DNS hostnames to private IP
  22975. // addresses when queried from instances in the peer VPC.
  22976. AllowDnsResolutionFromRemoteVpc *bool `type:"boolean"`
  22977. // If true, enables outbound communication from an EC2-Classic instance that's
  22978. // linked to a local VPC via ClassicLink to instances in a peer VPC.
  22979. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `type:"boolean"`
  22980. // If true, enables outbound communication from instances in a local VPC to
  22981. // an EC2-Classic instance that's linked to a peer VPC via ClassicLink.
  22982. AllowEgressFromLocalVpcToRemoteClassicLink *bool `type:"boolean"`
  22983. }
  22984. // String returns the string representation
  22985. func (s PeeringConnectionOptionsRequest) String() string {
  22986. return awsutil.Prettify(s)
  22987. }
  22988. // GoString returns the string representation
  22989. func (s PeeringConnectionOptionsRequest) GoString() string {
  22990. return s.String()
  22991. }
  22992. // Describes the placement for the instance.
  22993. type Placement struct {
  22994. _ struct{} `type:"structure"`
  22995. // The affinity setting for the instance on the Dedicated host. This parameter
  22996. // is not supported for the ImportInstance command.
  22997. Affinity *string `locationName:"affinity" type:"string"`
  22998. // The Availability Zone of the instance.
  22999. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  23000. // The name of the placement group the instance is in (for cluster compute instances).
  23001. GroupName *string `locationName:"groupName" type:"string"`
  23002. // The ID of the Dedicted host on which the instance resides. This parameter
  23003. // is not support for the ImportInstance command.
  23004. HostId *string `locationName:"hostId" type:"string"`
  23005. // The tenancy of the instance (if the instance is running in a VPC). An instance
  23006. // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy
  23007. // is not supported for the ImportInstance command.
  23008. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"`
  23009. }
  23010. // String returns the string representation
  23011. func (s Placement) String() string {
  23012. return awsutil.Prettify(s)
  23013. }
  23014. // GoString returns the string representation
  23015. func (s Placement) GoString() string {
  23016. return s.String()
  23017. }
  23018. // Describes a placement group.
  23019. type PlacementGroup struct {
  23020. _ struct{} `type:"structure"`
  23021. // The name of the placement group.
  23022. GroupName *string `locationName:"groupName" type:"string"`
  23023. // The state of the placement group.
  23024. State *string `locationName:"state" type:"string" enum:"PlacementGroupState"`
  23025. // The placement strategy.
  23026. Strategy *string `locationName:"strategy" type:"string" enum:"PlacementStrategy"`
  23027. }
  23028. // String returns the string representation
  23029. func (s PlacementGroup) String() string {
  23030. return awsutil.Prettify(s)
  23031. }
  23032. // GoString returns the string representation
  23033. func (s PlacementGroup) GoString() string {
  23034. return s.String()
  23035. }
  23036. // Describes a range of ports.
  23037. type PortRange struct {
  23038. _ struct{} `type:"structure"`
  23039. // The first port in the range.
  23040. From *int64 `locationName:"from" type:"integer"`
  23041. // The last port in the range.
  23042. To *int64 `locationName:"to" type:"integer"`
  23043. }
  23044. // String returns the string representation
  23045. func (s PortRange) String() string {
  23046. return awsutil.Prettify(s)
  23047. }
  23048. // GoString returns the string representation
  23049. func (s PortRange) GoString() string {
  23050. return s.String()
  23051. }
  23052. // Describes prefixes for AWS services.
  23053. type PrefixList struct {
  23054. _ struct{} `type:"structure"`
  23055. // The IP address range of the AWS service.
  23056. Cidrs []*string `locationName:"cidrSet" locationNameList:"item" type:"list"`
  23057. // The ID of the prefix.
  23058. PrefixListId *string `locationName:"prefixListId" type:"string"`
  23059. // The name of the prefix.
  23060. PrefixListName *string `locationName:"prefixListName" type:"string"`
  23061. }
  23062. // String returns the string representation
  23063. func (s PrefixList) String() string {
  23064. return awsutil.Prettify(s)
  23065. }
  23066. // GoString returns the string representation
  23067. func (s PrefixList) GoString() string {
  23068. return s.String()
  23069. }
  23070. // The ID of the prefix.
  23071. type PrefixListId struct {
  23072. _ struct{} `type:"structure"`
  23073. // The ID of the prefix.
  23074. PrefixListId *string `locationName:"prefixListId" type:"string"`
  23075. }
  23076. // String returns the string representation
  23077. func (s PrefixListId) String() string {
  23078. return awsutil.Prettify(s)
  23079. }
  23080. // GoString returns the string representation
  23081. func (s PrefixListId) GoString() string {
  23082. return s.String()
  23083. }
  23084. // Describes the price for a Reserved Instance.
  23085. type PriceSchedule struct {
  23086. _ struct{} `type:"structure"`
  23087. // The current price schedule, as determined by the term remaining for the Reserved
  23088. // Instance in the listing.
  23089. //
  23090. // A specific price schedule is always in effect, but only one price schedule
  23091. // can be active at any time. Take, for example, a Reserved Instance listing
  23092. // that has five months remaining in its term. When you specify price schedules
  23093. // for five months and two months, this means that schedule 1, covering the
  23094. // first three months of the remaining term, will be active during months 5,
  23095. // 4, and 3. Then schedule 2, covering the last two months of the term, will
  23096. // be active for months 2 and 1.
  23097. Active *bool `locationName:"active" type:"boolean"`
  23098. // The currency for transacting the Reserved Instance resale. At this time,
  23099. // the only supported currency is USD.
  23100. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  23101. // The fixed price for the term.
  23102. Price *float64 `locationName:"price" type:"double"`
  23103. // The number of months remaining in the reservation. For example, 2 is the
  23104. // second to the last month before the capacity reservation expires.
  23105. Term *int64 `locationName:"term" type:"long"`
  23106. }
  23107. // String returns the string representation
  23108. func (s PriceSchedule) String() string {
  23109. return awsutil.Prettify(s)
  23110. }
  23111. // GoString returns the string representation
  23112. func (s PriceSchedule) GoString() string {
  23113. return s.String()
  23114. }
  23115. // Describes the price for a Reserved Instance.
  23116. type PriceScheduleSpecification struct {
  23117. _ struct{} `type:"structure"`
  23118. // The currency for transacting the Reserved Instance resale. At this time,
  23119. // the only supported currency is USD.
  23120. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  23121. // The fixed price for the term.
  23122. Price *float64 `locationName:"price" type:"double"`
  23123. // The number of months remaining in the reservation. For example, 2 is the
  23124. // second to the last month before the capacity reservation expires.
  23125. Term *int64 `locationName:"term" type:"long"`
  23126. }
  23127. // String returns the string representation
  23128. func (s PriceScheduleSpecification) String() string {
  23129. return awsutil.Prettify(s)
  23130. }
  23131. // GoString returns the string representation
  23132. func (s PriceScheduleSpecification) GoString() string {
  23133. return s.String()
  23134. }
  23135. // Describes a Reserved Instance offering.
  23136. type PricingDetail struct {
  23137. _ struct{} `type:"structure"`
  23138. // The number of reservations available for the price.
  23139. Count *int64 `locationName:"count" type:"integer"`
  23140. // The price per instance.
  23141. Price *float64 `locationName:"price" type:"double"`
  23142. }
  23143. // String returns the string representation
  23144. func (s PricingDetail) String() string {
  23145. return awsutil.Prettify(s)
  23146. }
  23147. // GoString returns the string representation
  23148. func (s PricingDetail) GoString() string {
  23149. return s.String()
  23150. }
  23151. // Describes a secondary private IP address for a network interface.
  23152. type PrivateIpAddressSpecification struct {
  23153. _ struct{} `type:"structure"`
  23154. // Indicates whether the private IP address is the primary private IP address.
  23155. // Only one IP address can be designated as primary.
  23156. Primary *bool `locationName:"primary" type:"boolean"`
  23157. // The private IP addresses.
  23158. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string" required:"true"`
  23159. }
  23160. // String returns the string representation
  23161. func (s PrivateIpAddressSpecification) String() string {
  23162. return awsutil.Prettify(s)
  23163. }
  23164. // GoString returns the string representation
  23165. func (s PrivateIpAddressSpecification) GoString() string {
  23166. return s.String()
  23167. }
  23168. // Validate inspects the fields of the type to determine if they are valid.
  23169. func (s *PrivateIpAddressSpecification) Validate() error {
  23170. invalidParams := request.ErrInvalidParams{Context: "PrivateIpAddressSpecification"}
  23171. if s.PrivateIpAddress == nil {
  23172. invalidParams.Add(request.NewErrParamRequired("PrivateIpAddress"))
  23173. }
  23174. if invalidParams.Len() > 0 {
  23175. return invalidParams
  23176. }
  23177. return nil
  23178. }
  23179. // Describes a product code.
  23180. type ProductCode struct {
  23181. _ struct{} `type:"structure"`
  23182. // The product code.
  23183. ProductCodeId *string `locationName:"productCode" type:"string"`
  23184. // The type of product code.
  23185. ProductCodeType *string `locationName:"type" type:"string" enum:"ProductCodeValues"`
  23186. }
  23187. // String returns the string representation
  23188. func (s ProductCode) String() string {
  23189. return awsutil.Prettify(s)
  23190. }
  23191. // GoString returns the string representation
  23192. func (s ProductCode) GoString() string {
  23193. return s.String()
  23194. }
  23195. // Describes a virtual private gateway propagating route.
  23196. type PropagatingVgw struct {
  23197. _ struct{} `type:"structure"`
  23198. // The ID of the virtual private gateway (VGW).
  23199. GatewayId *string `locationName:"gatewayId" type:"string"`
  23200. }
  23201. // String returns the string representation
  23202. func (s PropagatingVgw) String() string {
  23203. return awsutil.Prettify(s)
  23204. }
  23205. // GoString returns the string representation
  23206. func (s PropagatingVgw) GoString() string {
  23207. return s.String()
  23208. }
  23209. // Reserved. If you need to sustain traffic greater than the documented limits
  23210. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  23211. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  23212. type ProvisionedBandwidth struct {
  23213. _ struct{} `type:"structure"`
  23214. // Reserved. If you need to sustain traffic greater than the documented limits
  23215. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  23216. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  23217. ProvisionTime *time.Time `locationName:"provisionTime" type:"timestamp" timestampFormat:"iso8601"`
  23218. // Reserved. If you need to sustain traffic greater than the documented limits
  23219. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  23220. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  23221. Provisioned *string `locationName:"provisioned" type:"string"`
  23222. // Reserved. If you need to sustain traffic greater than the documented limits
  23223. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  23224. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  23225. RequestTime *time.Time `locationName:"requestTime" type:"timestamp" timestampFormat:"iso8601"`
  23226. // Reserved. If you need to sustain traffic greater than the documented limits
  23227. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  23228. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  23229. Requested *string `locationName:"requested" type:"string"`
  23230. // Reserved. If you need to sustain traffic greater than the documented limits
  23231. // (http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-nat-gateway.html),
  23232. // contact us through the Support Center (https://console.aws.amazon.com/support/home?).
  23233. Status *string `locationName:"status" type:"string"`
  23234. }
  23235. // String returns the string representation
  23236. func (s ProvisionedBandwidth) String() string {
  23237. return awsutil.Prettify(s)
  23238. }
  23239. // GoString returns the string representation
  23240. func (s ProvisionedBandwidth) GoString() string {
  23241. return s.String()
  23242. }
  23243. // Describes a request to purchase Scheduled Instances.
  23244. type PurchaseRequest struct {
  23245. _ struct{} `type:"structure"`
  23246. // The number of instances.
  23247. InstanceCount *int64 `type:"integer" required:"true"`
  23248. // The purchase token.
  23249. PurchaseToken *string `type:"string" required:"true"`
  23250. }
  23251. // String returns the string representation
  23252. func (s PurchaseRequest) String() string {
  23253. return awsutil.Prettify(s)
  23254. }
  23255. // GoString returns the string representation
  23256. func (s PurchaseRequest) GoString() string {
  23257. return s.String()
  23258. }
  23259. // Validate inspects the fields of the type to determine if they are valid.
  23260. func (s *PurchaseRequest) Validate() error {
  23261. invalidParams := request.ErrInvalidParams{Context: "PurchaseRequest"}
  23262. if s.InstanceCount == nil {
  23263. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  23264. }
  23265. if s.PurchaseToken == nil {
  23266. invalidParams.Add(request.NewErrParamRequired("PurchaseToken"))
  23267. }
  23268. if invalidParams.Len() > 0 {
  23269. return invalidParams
  23270. }
  23271. return nil
  23272. }
  23273. // Contains the parameters for PurchaseReservedInstancesOffering.
  23274. type PurchaseReservedInstancesOfferingInput struct {
  23275. _ struct{} `type:"structure"`
  23276. // Checks whether you have the required permissions for the action, without
  23277. // actually making the request, and provides an error response. If you have
  23278. // the required permissions, the error response is DryRunOperation. Otherwise,
  23279. // it is UnauthorizedOperation.
  23280. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23281. // The number of Reserved Instances to purchase.
  23282. InstanceCount *int64 `type:"integer" required:"true"`
  23283. // Specified for Reserved Instance Marketplace offerings to limit the total
  23284. // order and ensure that the Reserved Instances are not purchased at unexpected
  23285. // prices.
  23286. LimitPrice *ReservedInstanceLimitPrice `locationName:"limitPrice" type:"structure"`
  23287. // The ID of the Reserved Instance offering to purchase.
  23288. ReservedInstancesOfferingId *string `type:"string" required:"true"`
  23289. }
  23290. // String returns the string representation
  23291. func (s PurchaseReservedInstancesOfferingInput) String() string {
  23292. return awsutil.Prettify(s)
  23293. }
  23294. // GoString returns the string representation
  23295. func (s PurchaseReservedInstancesOfferingInput) GoString() string {
  23296. return s.String()
  23297. }
  23298. // Validate inspects the fields of the type to determine if they are valid.
  23299. func (s *PurchaseReservedInstancesOfferingInput) Validate() error {
  23300. invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedInstancesOfferingInput"}
  23301. if s.InstanceCount == nil {
  23302. invalidParams.Add(request.NewErrParamRequired("InstanceCount"))
  23303. }
  23304. if s.ReservedInstancesOfferingId == nil {
  23305. invalidParams.Add(request.NewErrParamRequired("ReservedInstancesOfferingId"))
  23306. }
  23307. if invalidParams.Len() > 0 {
  23308. return invalidParams
  23309. }
  23310. return nil
  23311. }
  23312. // Contains the output of PurchaseReservedInstancesOffering.
  23313. type PurchaseReservedInstancesOfferingOutput struct {
  23314. _ struct{} `type:"structure"`
  23315. // The IDs of the purchased Reserved Instances.
  23316. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  23317. }
  23318. // String returns the string representation
  23319. func (s PurchaseReservedInstancesOfferingOutput) String() string {
  23320. return awsutil.Prettify(s)
  23321. }
  23322. // GoString returns the string representation
  23323. func (s PurchaseReservedInstancesOfferingOutput) GoString() string {
  23324. return s.String()
  23325. }
  23326. // Contains the parameters for PurchaseScheduledInstances.
  23327. type PurchaseScheduledInstancesInput struct {
  23328. _ struct{} `type:"structure"`
  23329. // Unique, case-sensitive identifier that ensures the idempotency of the request.
  23330. // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  23331. ClientToken *string `type:"string" idempotencyToken:"true"`
  23332. // Checks whether you have the required permissions for the action, without
  23333. // actually making the request, and provides an error response. If you have
  23334. // the required permissions, the error response is DryRunOperation. Otherwise,
  23335. // it is UnauthorizedOperation.
  23336. DryRun *bool `type:"boolean"`
  23337. // One or more purchase requests.
  23338. PurchaseRequests []*PurchaseRequest `locationName:"PurchaseRequest" locationNameList:"PurchaseRequest" min:"1" type:"list" required:"true"`
  23339. }
  23340. // String returns the string representation
  23341. func (s PurchaseScheduledInstancesInput) String() string {
  23342. return awsutil.Prettify(s)
  23343. }
  23344. // GoString returns the string representation
  23345. func (s PurchaseScheduledInstancesInput) GoString() string {
  23346. return s.String()
  23347. }
  23348. // Validate inspects the fields of the type to determine if they are valid.
  23349. func (s *PurchaseScheduledInstancesInput) Validate() error {
  23350. invalidParams := request.ErrInvalidParams{Context: "PurchaseScheduledInstancesInput"}
  23351. if s.PurchaseRequests == nil {
  23352. invalidParams.Add(request.NewErrParamRequired("PurchaseRequests"))
  23353. }
  23354. if s.PurchaseRequests != nil && len(s.PurchaseRequests) < 1 {
  23355. invalidParams.Add(request.NewErrParamMinLen("PurchaseRequests", 1))
  23356. }
  23357. if s.PurchaseRequests != nil {
  23358. for i, v := range s.PurchaseRequests {
  23359. if v == nil {
  23360. continue
  23361. }
  23362. if err := v.Validate(); err != nil {
  23363. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PurchaseRequests", i), err.(request.ErrInvalidParams))
  23364. }
  23365. }
  23366. }
  23367. if invalidParams.Len() > 0 {
  23368. return invalidParams
  23369. }
  23370. return nil
  23371. }
  23372. // Contains the output of PurchaseScheduledInstances.
  23373. type PurchaseScheduledInstancesOutput struct {
  23374. _ struct{} `type:"structure"`
  23375. // Information about the Scheduled Instances.
  23376. ScheduledInstanceSet []*ScheduledInstance `locationName:"scheduledInstanceSet" locationNameList:"item" type:"list"`
  23377. }
  23378. // String returns the string representation
  23379. func (s PurchaseScheduledInstancesOutput) String() string {
  23380. return awsutil.Prettify(s)
  23381. }
  23382. // GoString returns the string representation
  23383. func (s PurchaseScheduledInstancesOutput) GoString() string {
  23384. return s.String()
  23385. }
  23386. // Contains the parameters for RebootInstances.
  23387. type RebootInstancesInput struct {
  23388. _ struct{} `type:"structure"`
  23389. // Checks whether you have the required permissions for the action, without
  23390. // actually making the request, and provides an error response. If you have
  23391. // the required permissions, the error response is DryRunOperation. Otherwise,
  23392. // it is UnauthorizedOperation.
  23393. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23394. // One or more instance IDs.
  23395. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  23396. }
  23397. // String returns the string representation
  23398. func (s RebootInstancesInput) String() string {
  23399. return awsutil.Prettify(s)
  23400. }
  23401. // GoString returns the string representation
  23402. func (s RebootInstancesInput) GoString() string {
  23403. return s.String()
  23404. }
  23405. // Validate inspects the fields of the type to determine if they are valid.
  23406. func (s *RebootInstancesInput) Validate() error {
  23407. invalidParams := request.ErrInvalidParams{Context: "RebootInstancesInput"}
  23408. if s.InstanceIds == nil {
  23409. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  23410. }
  23411. if invalidParams.Len() > 0 {
  23412. return invalidParams
  23413. }
  23414. return nil
  23415. }
  23416. type RebootInstancesOutput struct {
  23417. _ struct{} `type:"structure"`
  23418. }
  23419. // String returns the string representation
  23420. func (s RebootInstancesOutput) String() string {
  23421. return awsutil.Prettify(s)
  23422. }
  23423. // GoString returns the string representation
  23424. func (s RebootInstancesOutput) GoString() string {
  23425. return s.String()
  23426. }
  23427. // Describes a recurring charge.
  23428. type RecurringCharge struct {
  23429. _ struct{} `type:"structure"`
  23430. // The amount of the recurring charge.
  23431. Amount *float64 `locationName:"amount" type:"double"`
  23432. // The frequency of the recurring charge.
  23433. Frequency *string `locationName:"frequency" type:"string" enum:"RecurringChargeFrequency"`
  23434. }
  23435. // String returns the string representation
  23436. func (s RecurringCharge) String() string {
  23437. return awsutil.Prettify(s)
  23438. }
  23439. // GoString returns the string representation
  23440. func (s RecurringCharge) GoString() string {
  23441. return s.String()
  23442. }
  23443. // Describes a region.
  23444. type Region struct {
  23445. _ struct{} `type:"structure"`
  23446. // The region service endpoint.
  23447. Endpoint *string `locationName:"regionEndpoint" type:"string"`
  23448. // The name of the region.
  23449. RegionName *string `locationName:"regionName" type:"string"`
  23450. }
  23451. // String returns the string representation
  23452. func (s Region) String() string {
  23453. return awsutil.Prettify(s)
  23454. }
  23455. // GoString returns the string representation
  23456. func (s Region) GoString() string {
  23457. return s.String()
  23458. }
  23459. // Contains the parameters for RegisterImage.
  23460. type RegisterImageInput struct {
  23461. _ struct{} `type:"structure"`
  23462. // The architecture of the AMI.
  23463. //
  23464. // Default: For Amazon EBS-backed AMIs, i386. For instance store-backed AMIs,
  23465. // the architecture specified in the manifest file.
  23466. Architecture *string `locationName:"architecture" type:"string" enum:"ArchitectureValues"`
  23467. // One or more block device mapping entries.
  23468. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  23469. // A description for your AMI.
  23470. Description *string `locationName:"description" type:"string"`
  23471. // Checks whether you have the required permissions for the action, without
  23472. // actually making the request, and provides an error response. If you have
  23473. // the required permissions, the error response is DryRunOperation. Otherwise,
  23474. // it is UnauthorizedOperation.
  23475. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23476. // Set to true to enable enhanced networking with ENA for the AMI and any instances
  23477. // that you launch from the AMI.
  23478. //
  23479. // This option is supported only for HVM AMIs. Specifying this option with
  23480. // a PV AMI can make instances launched from the AMI unreachable.
  23481. EnaSupport *bool `locationName:"enaSupport" type:"boolean"`
  23482. // The full path to your AMI manifest in Amazon S3 storage.
  23483. ImageLocation *string `type:"string"`
  23484. // The ID of the kernel.
  23485. KernelId *string `locationName:"kernelId" type:"string"`
  23486. // A name for your AMI.
  23487. //
  23488. // Constraints: 3-128 alphanumeric characters, parentheses (()), square brackets
  23489. // ([]), spaces ( ), periods (.), slashes (/), dashes (-), single quotes ('),
  23490. // at-signs (@), or underscores(_)
  23491. Name *string `locationName:"name" type:"string" required:"true"`
  23492. // The ID of the RAM disk.
  23493. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  23494. // The name of the root device (for example, /dev/sda1, or /dev/xvda).
  23495. RootDeviceName *string `locationName:"rootDeviceName" type:"string"`
  23496. // Set to simple to enable enhanced networking with the Intel 82599 Virtual
  23497. // Function interface for the AMI and any instances that you launch from the
  23498. // AMI.
  23499. //
  23500. // There is no way to disable sriovNetSupport at this time.
  23501. //
  23502. // This option is supported only for HVM AMIs. Specifying this option with
  23503. // a PV AMI can make instances launched from the AMI unreachable.
  23504. SriovNetSupport *string `locationName:"sriovNetSupport" type:"string"`
  23505. // The type of virtualization.
  23506. //
  23507. // Default: paravirtual
  23508. VirtualizationType *string `locationName:"virtualizationType" type:"string"`
  23509. }
  23510. // String returns the string representation
  23511. func (s RegisterImageInput) String() string {
  23512. return awsutil.Prettify(s)
  23513. }
  23514. // GoString returns the string representation
  23515. func (s RegisterImageInput) GoString() string {
  23516. return s.String()
  23517. }
  23518. // Validate inspects the fields of the type to determine if they are valid.
  23519. func (s *RegisterImageInput) Validate() error {
  23520. invalidParams := request.ErrInvalidParams{Context: "RegisterImageInput"}
  23521. if s.Name == nil {
  23522. invalidParams.Add(request.NewErrParamRequired("Name"))
  23523. }
  23524. if invalidParams.Len() > 0 {
  23525. return invalidParams
  23526. }
  23527. return nil
  23528. }
  23529. // Contains the output of RegisterImage.
  23530. type RegisterImageOutput struct {
  23531. _ struct{} `type:"structure"`
  23532. // The ID of the newly registered AMI.
  23533. ImageId *string `locationName:"imageId" type:"string"`
  23534. }
  23535. // String returns the string representation
  23536. func (s RegisterImageOutput) String() string {
  23537. return awsutil.Prettify(s)
  23538. }
  23539. // GoString returns the string representation
  23540. func (s RegisterImageOutput) GoString() string {
  23541. return s.String()
  23542. }
  23543. // Contains the parameters for RejectVpcPeeringConnection.
  23544. type RejectVpcPeeringConnectionInput struct {
  23545. _ struct{} `type:"structure"`
  23546. // Checks whether you have the required permissions for the action, without
  23547. // actually making the request, and provides an error response. If you have
  23548. // the required permissions, the error response is DryRunOperation. Otherwise,
  23549. // it is UnauthorizedOperation.
  23550. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23551. // The ID of the VPC peering connection.
  23552. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string" required:"true"`
  23553. }
  23554. // String returns the string representation
  23555. func (s RejectVpcPeeringConnectionInput) String() string {
  23556. return awsutil.Prettify(s)
  23557. }
  23558. // GoString returns the string representation
  23559. func (s RejectVpcPeeringConnectionInput) GoString() string {
  23560. return s.String()
  23561. }
  23562. // Validate inspects the fields of the type to determine if they are valid.
  23563. func (s *RejectVpcPeeringConnectionInput) Validate() error {
  23564. invalidParams := request.ErrInvalidParams{Context: "RejectVpcPeeringConnectionInput"}
  23565. if s.VpcPeeringConnectionId == nil {
  23566. invalidParams.Add(request.NewErrParamRequired("VpcPeeringConnectionId"))
  23567. }
  23568. if invalidParams.Len() > 0 {
  23569. return invalidParams
  23570. }
  23571. return nil
  23572. }
  23573. // Contains the output of RejectVpcPeeringConnection.
  23574. type RejectVpcPeeringConnectionOutput struct {
  23575. _ struct{} `type:"structure"`
  23576. // Returns true if the request succeeds; otherwise, it returns an error.
  23577. Return *bool `locationName:"return" type:"boolean"`
  23578. }
  23579. // String returns the string representation
  23580. func (s RejectVpcPeeringConnectionOutput) String() string {
  23581. return awsutil.Prettify(s)
  23582. }
  23583. // GoString returns the string representation
  23584. func (s RejectVpcPeeringConnectionOutput) GoString() string {
  23585. return s.String()
  23586. }
  23587. // Contains the parameters for ReleaseAddress.
  23588. type ReleaseAddressInput struct {
  23589. _ struct{} `type:"structure"`
  23590. // [EC2-VPC] The allocation ID. Required for EC2-VPC.
  23591. AllocationId *string `type:"string"`
  23592. // Checks whether you have the required permissions for the action, without
  23593. // actually making the request, and provides an error response. If you have
  23594. // the required permissions, the error response is DryRunOperation. Otherwise,
  23595. // it is UnauthorizedOperation.
  23596. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23597. // [EC2-Classic] The Elastic IP address. Required for EC2-Classic.
  23598. PublicIp *string `type:"string"`
  23599. }
  23600. // String returns the string representation
  23601. func (s ReleaseAddressInput) String() string {
  23602. return awsutil.Prettify(s)
  23603. }
  23604. // GoString returns the string representation
  23605. func (s ReleaseAddressInput) GoString() string {
  23606. return s.String()
  23607. }
  23608. type ReleaseAddressOutput struct {
  23609. _ struct{} `type:"structure"`
  23610. }
  23611. // String returns the string representation
  23612. func (s ReleaseAddressOutput) String() string {
  23613. return awsutil.Prettify(s)
  23614. }
  23615. // GoString returns the string representation
  23616. func (s ReleaseAddressOutput) GoString() string {
  23617. return s.String()
  23618. }
  23619. // Contains the parameters for ReleaseHosts.
  23620. type ReleaseHostsInput struct {
  23621. _ struct{} `type:"structure"`
  23622. // The IDs of the Dedicated hosts you want to release.
  23623. HostIds []*string `locationName:"hostId" locationNameList:"item" type:"list" required:"true"`
  23624. }
  23625. // String returns the string representation
  23626. func (s ReleaseHostsInput) String() string {
  23627. return awsutil.Prettify(s)
  23628. }
  23629. // GoString returns the string representation
  23630. func (s ReleaseHostsInput) GoString() string {
  23631. return s.String()
  23632. }
  23633. // Validate inspects the fields of the type to determine if they are valid.
  23634. func (s *ReleaseHostsInput) Validate() error {
  23635. invalidParams := request.ErrInvalidParams{Context: "ReleaseHostsInput"}
  23636. if s.HostIds == nil {
  23637. invalidParams.Add(request.NewErrParamRequired("HostIds"))
  23638. }
  23639. if invalidParams.Len() > 0 {
  23640. return invalidParams
  23641. }
  23642. return nil
  23643. }
  23644. // Contains the output of ReleaseHosts.
  23645. type ReleaseHostsOutput struct {
  23646. _ struct{} `type:"structure"`
  23647. // The IDs of the Dedicated hosts that were successfully released.
  23648. Successful []*string `locationName:"successful" locationNameList:"item" type:"list"`
  23649. // The IDs of the Dedicated hosts that could not be released, including an error
  23650. // message.
  23651. Unsuccessful []*UnsuccessfulItem `locationName:"unsuccessful" locationNameList:"item" type:"list"`
  23652. }
  23653. // String returns the string representation
  23654. func (s ReleaseHostsOutput) String() string {
  23655. return awsutil.Prettify(s)
  23656. }
  23657. // GoString returns the string representation
  23658. func (s ReleaseHostsOutput) GoString() string {
  23659. return s.String()
  23660. }
  23661. // Contains the parameters for ReplaceNetworkAclAssociation.
  23662. type ReplaceNetworkAclAssociationInput struct {
  23663. _ struct{} `type:"structure"`
  23664. // The ID of the current association between the original network ACL and the
  23665. // subnet.
  23666. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  23667. // Checks whether you have the required permissions for the action, without
  23668. // actually making the request, and provides an error response. If you have
  23669. // the required permissions, the error response is DryRunOperation. Otherwise,
  23670. // it is UnauthorizedOperation.
  23671. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23672. // The ID of the new network ACL to associate with the subnet.
  23673. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  23674. }
  23675. // String returns the string representation
  23676. func (s ReplaceNetworkAclAssociationInput) String() string {
  23677. return awsutil.Prettify(s)
  23678. }
  23679. // GoString returns the string representation
  23680. func (s ReplaceNetworkAclAssociationInput) GoString() string {
  23681. return s.String()
  23682. }
  23683. // Validate inspects the fields of the type to determine if they are valid.
  23684. func (s *ReplaceNetworkAclAssociationInput) Validate() error {
  23685. invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclAssociationInput"}
  23686. if s.AssociationId == nil {
  23687. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  23688. }
  23689. if s.NetworkAclId == nil {
  23690. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  23691. }
  23692. if invalidParams.Len() > 0 {
  23693. return invalidParams
  23694. }
  23695. return nil
  23696. }
  23697. // Contains the output of ReplaceNetworkAclAssociation.
  23698. type ReplaceNetworkAclAssociationOutput struct {
  23699. _ struct{} `type:"structure"`
  23700. // The ID of the new association.
  23701. NewAssociationId *string `locationName:"newAssociationId" type:"string"`
  23702. }
  23703. // String returns the string representation
  23704. func (s ReplaceNetworkAclAssociationOutput) String() string {
  23705. return awsutil.Prettify(s)
  23706. }
  23707. // GoString returns the string representation
  23708. func (s ReplaceNetworkAclAssociationOutput) GoString() string {
  23709. return s.String()
  23710. }
  23711. // Contains the parameters for ReplaceNetworkAclEntry.
  23712. type ReplaceNetworkAclEntryInput struct {
  23713. _ struct{} `type:"structure"`
  23714. // The network range to allow or deny, in CIDR notation.
  23715. CidrBlock *string `locationName:"cidrBlock" type:"string" required:"true"`
  23716. // Checks whether you have the required permissions for the action, without
  23717. // actually making the request, and provides an error response. If you have
  23718. // the required permissions, the error response is DryRunOperation. Otherwise,
  23719. // it is UnauthorizedOperation.
  23720. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23721. // Indicates whether to replace the egress rule.
  23722. //
  23723. // Default: If no value is specified, we replace the ingress rule.
  23724. Egress *bool `locationName:"egress" type:"boolean" required:"true"`
  23725. // ICMP protocol: The ICMP type and code. Required if specifying 1 (ICMP) for
  23726. // the protocol.
  23727. IcmpTypeCode *IcmpTypeCode `locationName:"Icmp" type:"structure"`
  23728. // The ID of the ACL.
  23729. NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"`
  23730. // TCP or UDP protocols: The range of ports the rule applies to. Required if
  23731. // specifying 6 (TCP) or 17 (UDP) for the protocol.
  23732. PortRange *PortRange `locationName:"portRange" type:"structure"`
  23733. // The IP protocol. You can specify all or -1 to mean all protocols.
  23734. Protocol *string `locationName:"protocol" type:"string" required:"true"`
  23735. // Indicates whether to allow or deny the traffic that matches the rule.
  23736. RuleAction *string `locationName:"ruleAction" type:"string" required:"true" enum:"RuleAction"`
  23737. // The rule number of the entry to replace.
  23738. RuleNumber *int64 `locationName:"ruleNumber" type:"integer" required:"true"`
  23739. }
  23740. // String returns the string representation
  23741. func (s ReplaceNetworkAclEntryInput) String() string {
  23742. return awsutil.Prettify(s)
  23743. }
  23744. // GoString returns the string representation
  23745. func (s ReplaceNetworkAclEntryInput) GoString() string {
  23746. return s.String()
  23747. }
  23748. // Validate inspects the fields of the type to determine if they are valid.
  23749. func (s *ReplaceNetworkAclEntryInput) Validate() error {
  23750. invalidParams := request.ErrInvalidParams{Context: "ReplaceNetworkAclEntryInput"}
  23751. if s.CidrBlock == nil {
  23752. invalidParams.Add(request.NewErrParamRequired("CidrBlock"))
  23753. }
  23754. if s.Egress == nil {
  23755. invalidParams.Add(request.NewErrParamRequired("Egress"))
  23756. }
  23757. if s.NetworkAclId == nil {
  23758. invalidParams.Add(request.NewErrParamRequired("NetworkAclId"))
  23759. }
  23760. if s.Protocol == nil {
  23761. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  23762. }
  23763. if s.RuleAction == nil {
  23764. invalidParams.Add(request.NewErrParamRequired("RuleAction"))
  23765. }
  23766. if s.RuleNumber == nil {
  23767. invalidParams.Add(request.NewErrParamRequired("RuleNumber"))
  23768. }
  23769. if invalidParams.Len() > 0 {
  23770. return invalidParams
  23771. }
  23772. return nil
  23773. }
  23774. type ReplaceNetworkAclEntryOutput struct {
  23775. _ struct{} `type:"structure"`
  23776. }
  23777. // String returns the string representation
  23778. func (s ReplaceNetworkAclEntryOutput) String() string {
  23779. return awsutil.Prettify(s)
  23780. }
  23781. // GoString returns the string representation
  23782. func (s ReplaceNetworkAclEntryOutput) GoString() string {
  23783. return s.String()
  23784. }
  23785. // Contains the parameters for ReplaceRoute.
  23786. type ReplaceRouteInput struct {
  23787. _ struct{} `type:"structure"`
  23788. // The CIDR address block used for the destination match. The value you provide
  23789. // must match the CIDR of an existing route in the table.
  23790. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string" required:"true"`
  23791. // Checks whether you have the required permissions for the action, without
  23792. // actually making the request, and provides an error response. If you have
  23793. // the required permissions, the error response is DryRunOperation. Otherwise,
  23794. // it is UnauthorizedOperation.
  23795. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23796. // The ID of an Internet gateway or virtual private gateway.
  23797. GatewayId *string `locationName:"gatewayId" type:"string"`
  23798. // The ID of a NAT instance in your VPC.
  23799. InstanceId *string `locationName:"instanceId" type:"string"`
  23800. // The ID of a NAT gateway.
  23801. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  23802. // The ID of a network interface.
  23803. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  23804. // The ID of the route table.
  23805. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  23806. // The ID of a VPC peering connection.
  23807. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  23808. }
  23809. // String returns the string representation
  23810. func (s ReplaceRouteInput) String() string {
  23811. return awsutil.Prettify(s)
  23812. }
  23813. // GoString returns the string representation
  23814. func (s ReplaceRouteInput) GoString() string {
  23815. return s.String()
  23816. }
  23817. // Validate inspects the fields of the type to determine if they are valid.
  23818. func (s *ReplaceRouteInput) Validate() error {
  23819. invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteInput"}
  23820. if s.DestinationCidrBlock == nil {
  23821. invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock"))
  23822. }
  23823. if s.RouteTableId == nil {
  23824. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  23825. }
  23826. if invalidParams.Len() > 0 {
  23827. return invalidParams
  23828. }
  23829. return nil
  23830. }
  23831. type ReplaceRouteOutput struct {
  23832. _ struct{} `type:"structure"`
  23833. }
  23834. // String returns the string representation
  23835. func (s ReplaceRouteOutput) String() string {
  23836. return awsutil.Prettify(s)
  23837. }
  23838. // GoString returns the string representation
  23839. func (s ReplaceRouteOutput) GoString() string {
  23840. return s.String()
  23841. }
  23842. // Contains the parameters for ReplaceRouteTableAssociation.
  23843. type ReplaceRouteTableAssociationInput struct {
  23844. _ struct{} `type:"structure"`
  23845. // The association ID.
  23846. AssociationId *string `locationName:"associationId" type:"string" required:"true"`
  23847. // Checks whether you have the required permissions for the action, without
  23848. // actually making the request, and provides an error response. If you have
  23849. // the required permissions, the error response is DryRunOperation. Otherwise,
  23850. // it is UnauthorizedOperation.
  23851. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23852. // The ID of the new route table to associate with the subnet.
  23853. RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"`
  23854. }
  23855. // String returns the string representation
  23856. func (s ReplaceRouteTableAssociationInput) String() string {
  23857. return awsutil.Prettify(s)
  23858. }
  23859. // GoString returns the string representation
  23860. func (s ReplaceRouteTableAssociationInput) GoString() string {
  23861. return s.String()
  23862. }
  23863. // Validate inspects the fields of the type to determine if they are valid.
  23864. func (s *ReplaceRouteTableAssociationInput) Validate() error {
  23865. invalidParams := request.ErrInvalidParams{Context: "ReplaceRouteTableAssociationInput"}
  23866. if s.AssociationId == nil {
  23867. invalidParams.Add(request.NewErrParamRequired("AssociationId"))
  23868. }
  23869. if s.RouteTableId == nil {
  23870. invalidParams.Add(request.NewErrParamRequired("RouteTableId"))
  23871. }
  23872. if invalidParams.Len() > 0 {
  23873. return invalidParams
  23874. }
  23875. return nil
  23876. }
  23877. // Contains the output of ReplaceRouteTableAssociation.
  23878. type ReplaceRouteTableAssociationOutput struct {
  23879. _ struct{} `type:"structure"`
  23880. // The ID of the new association.
  23881. NewAssociationId *string `locationName:"newAssociationId" type:"string"`
  23882. }
  23883. // String returns the string representation
  23884. func (s ReplaceRouteTableAssociationOutput) String() string {
  23885. return awsutil.Prettify(s)
  23886. }
  23887. // GoString returns the string representation
  23888. func (s ReplaceRouteTableAssociationOutput) GoString() string {
  23889. return s.String()
  23890. }
  23891. // Contains the parameters for ReportInstanceStatus.
  23892. type ReportInstanceStatusInput struct {
  23893. _ struct{} `type:"structure"`
  23894. // Descriptive text about the health state of your instance.
  23895. Description *string `locationName:"description" type:"string"`
  23896. // Checks whether you have the required permissions for the action, without
  23897. // actually making the request, and provides an error response. If you have
  23898. // the required permissions, the error response is DryRunOperation. Otherwise,
  23899. // it is UnauthorizedOperation.
  23900. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23901. // The time at which the reported instance health state ended.
  23902. EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
  23903. // One or more instances.
  23904. Instances []*string `locationName:"instanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  23905. // One or more reason codes that describes the health state of your instance.
  23906. //
  23907. // instance-stuck-in-state: My instance is stuck in a state.
  23908. //
  23909. // unresponsive: My instance is unresponsive.
  23910. //
  23911. // not-accepting-credentials: My instance is not accepting my credentials.
  23912. //
  23913. // password-not-available: A password is not available for my instance.
  23914. //
  23915. // performance-network: My instance is experiencing performance problems
  23916. // which I believe are network related.
  23917. //
  23918. // performance-instance-store: My instance is experiencing performance problems
  23919. // which I believe are related to the instance stores.
  23920. //
  23921. // performance-ebs-volume: My instance is experiencing performance problems
  23922. // which I believe are related to an EBS volume.
  23923. //
  23924. // performance-other: My instance is experiencing performance problems.
  23925. //
  23926. // other: [explain using the description parameter]
  23927. ReasonCodes []*string `locationName:"reasonCode" locationNameList:"item" type:"list" required:"true"`
  23928. // The time at which the reported instance health state began.
  23929. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  23930. // The status of all instances listed.
  23931. Status *string `locationName:"status" type:"string" required:"true" enum:"ReportStatusType"`
  23932. }
  23933. // String returns the string representation
  23934. func (s ReportInstanceStatusInput) String() string {
  23935. return awsutil.Prettify(s)
  23936. }
  23937. // GoString returns the string representation
  23938. func (s ReportInstanceStatusInput) GoString() string {
  23939. return s.String()
  23940. }
  23941. // Validate inspects the fields of the type to determine if they are valid.
  23942. func (s *ReportInstanceStatusInput) Validate() error {
  23943. invalidParams := request.ErrInvalidParams{Context: "ReportInstanceStatusInput"}
  23944. if s.Instances == nil {
  23945. invalidParams.Add(request.NewErrParamRequired("Instances"))
  23946. }
  23947. if s.ReasonCodes == nil {
  23948. invalidParams.Add(request.NewErrParamRequired("ReasonCodes"))
  23949. }
  23950. if s.Status == nil {
  23951. invalidParams.Add(request.NewErrParamRequired("Status"))
  23952. }
  23953. if invalidParams.Len() > 0 {
  23954. return invalidParams
  23955. }
  23956. return nil
  23957. }
  23958. type ReportInstanceStatusOutput struct {
  23959. _ struct{} `type:"structure"`
  23960. }
  23961. // String returns the string representation
  23962. func (s ReportInstanceStatusOutput) String() string {
  23963. return awsutil.Prettify(s)
  23964. }
  23965. // GoString returns the string representation
  23966. func (s ReportInstanceStatusOutput) GoString() string {
  23967. return s.String()
  23968. }
  23969. // Contains the parameters for RequestSpotFleet.
  23970. type RequestSpotFleetInput struct {
  23971. _ struct{} `type:"structure"`
  23972. // Checks whether you have the required permissions for the action, without
  23973. // actually making the request, and provides an error response. If you have
  23974. // the required permissions, the error response is DryRunOperation. Otherwise,
  23975. // it is UnauthorizedOperation.
  23976. DryRun *bool `locationName:"dryRun" type:"boolean"`
  23977. // The configuration for the Spot fleet request.
  23978. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"`
  23979. }
  23980. // String returns the string representation
  23981. func (s RequestSpotFleetInput) String() string {
  23982. return awsutil.Prettify(s)
  23983. }
  23984. // GoString returns the string representation
  23985. func (s RequestSpotFleetInput) GoString() string {
  23986. return s.String()
  23987. }
  23988. // Validate inspects the fields of the type to determine if they are valid.
  23989. func (s *RequestSpotFleetInput) Validate() error {
  23990. invalidParams := request.ErrInvalidParams{Context: "RequestSpotFleetInput"}
  23991. if s.SpotFleetRequestConfig == nil {
  23992. invalidParams.Add(request.NewErrParamRequired("SpotFleetRequestConfig"))
  23993. }
  23994. if s.SpotFleetRequestConfig != nil {
  23995. if err := s.SpotFleetRequestConfig.Validate(); err != nil {
  23996. invalidParams.AddNested("SpotFleetRequestConfig", err.(request.ErrInvalidParams))
  23997. }
  23998. }
  23999. if invalidParams.Len() > 0 {
  24000. return invalidParams
  24001. }
  24002. return nil
  24003. }
  24004. // Contains the output of RequestSpotFleet.
  24005. type RequestSpotFleetOutput struct {
  24006. _ struct{} `type:"structure"`
  24007. // The ID of the Spot fleet request.
  24008. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  24009. }
  24010. // String returns the string representation
  24011. func (s RequestSpotFleetOutput) String() string {
  24012. return awsutil.Prettify(s)
  24013. }
  24014. // GoString returns the string representation
  24015. func (s RequestSpotFleetOutput) GoString() string {
  24016. return s.String()
  24017. }
  24018. // Contains the parameters for RequestSpotInstances.
  24019. type RequestSpotInstancesInput struct {
  24020. _ struct{} `type:"structure"`
  24021. // The user-specified name for a logical grouping of bids.
  24022. //
  24023. // When you specify an Availability Zone group in a Spot Instance request,
  24024. // all Spot instances in the request are launched in the same Availability Zone.
  24025. // Instance proximity is maintained with this parameter, but the choice of Availability
  24026. // Zone is not. The group applies only to bids for Spot Instances of the same
  24027. // instance type. Any additional Spot instance requests that are specified with
  24028. // the same Availability Zone group name are launched in that same Availability
  24029. // Zone, as long as at least one instance from the group is still active.
  24030. //
  24031. // If there is no active instance running in the Availability Zone group that
  24032. // you specify for a new Spot instance request (all instances are terminated,
  24033. // the bid is expired, or the bid falls below current market), then Amazon EC2
  24034. // launches the instance in any Availability Zone where the constraint can be
  24035. // met. Consequently, the subsequent set of Spot instances could be placed in
  24036. // a different zone from the original request, even if you specified the same
  24037. // Availability Zone group.
  24038. //
  24039. // Default: Instances are launched in any available Availability Zone.
  24040. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`
  24041. // The required duration for the Spot instances (also known as Spot blocks),
  24042. // in minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300,
  24043. // or 360).
  24044. //
  24045. // The duration period starts as soon as your Spot instance receives its instance
  24046. // ID. At the end of the duration period, Amazon EC2 marks the Spot instance
  24047. // for termination and provides a Spot instance termination notice, which gives
  24048. // the instance a two-minute warning before it terminates.
  24049. //
  24050. // Note that you can't specify an Availability Zone group or a launch group
  24051. // if you specify a duration.
  24052. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  24053. // Unique, case-sensitive identifier that you provide to ensure the idempotency
  24054. // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html)
  24055. // in the Amazon Elastic Compute Cloud User Guide.
  24056. ClientToken *string `locationName:"clientToken" type:"string"`
  24057. // Checks whether you have the required permissions for the action, without
  24058. // actually making the request, and provides an error response. If you have
  24059. // the required permissions, the error response is DryRunOperation. Otherwise,
  24060. // it is UnauthorizedOperation.
  24061. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24062. // The maximum number of Spot instances to launch.
  24063. //
  24064. // Default: 1
  24065. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  24066. // The instance launch group. Launch groups are Spot instances that launch together
  24067. // and terminate together.
  24068. //
  24069. // Default: Instances are launched and terminated individually
  24070. LaunchGroup *string `locationName:"launchGroup" type:"string"`
  24071. // Describes the launch specification for an instance.
  24072. LaunchSpecification *RequestSpotLaunchSpecification `type:"structure"`
  24073. // The maximum hourly price (bid) for any Spot instance launched to fulfill
  24074. // the request.
  24075. SpotPrice *string `locationName:"spotPrice" type:"string" required:"true"`
  24076. // The Spot instance request type.
  24077. //
  24078. // Default: one-time
  24079. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"`
  24080. // The start date of the request. If this is a one-time request, the request
  24081. // becomes active at this date and time and remains active until all instances
  24082. // launch, the request expires, or the request is canceled. If the request is
  24083. // persistent, the request becomes active at this date and time and remains
  24084. // active until it expires or is canceled.
  24085. //
  24086. // Default: The request is effective indefinitely.
  24087. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  24088. // The end date of the request. If this is a one-time request, the request remains
  24089. // active until all instances launch, the request is canceled, or this date
  24090. // is reached. If the request is persistent, it remains active until it is canceled
  24091. // or this date and time is reached.
  24092. //
  24093. // Default: The request is effective indefinitely.
  24094. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  24095. }
  24096. // String returns the string representation
  24097. func (s RequestSpotInstancesInput) String() string {
  24098. return awsutil.Prettify(s)
  24099. }
  24100. // GoString returns the string representation
  24101. func (s RequestSpotInstancesInput) GoString() string {
  24102. return s.String()
  24103. }
  24104. // Validate inspects the fields of the type to determine if they are valid.
  24105. func (s *RequestSpotInstancesInput) Validate() error {
  24106. invalidParams := request.ErrInvalidParams{Context: "RequestSpotInstancesInput"}
  24107. if s.SpotPrice == nil {
  24108. invalidParams.Add(request.NewErrParamRequired("SpotPrice"))
  24109. }
  24110. if s.LaunchSpecification != nil {
  24111. if err := s.LaunchSpecification.Validate(); err != nil {
  24112. invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams))
  24113. }
  24114. }
  24115. if invalidParams.Len() > 0 {
  24116. return invalidParams
  24117. }
  24118. return nil
  24119. }
  24120. // Contains the output of RequestSpotInstances.
  24121. type RequestSpotInstancesOutput struct {
  24122. _ struct{} `type:"structure"`
  24123. // One or more Spot instance requests.
  24124. SpotInstanceRequests []*SpotInstanceRequest `locationName:"spotInstanceRequestSet" locationNameList:"item" type:"list"`
  24125. }
  24126. // String returns the string representation
  24127. func (s RequestSpotInstancesOutput) String() string {
  24128. return awsutil.Prettify(s)
  24129. }
  24130. // GoString returns the string representation
  24131. func (s RequestSpotInstancesOutput) GoString() string {
  24132. return s.String()
  24133. }
  24134. // Describes the launch specification for an instance.
  24135. type RequestSpotLaunchSpecification struct {
  24136. _ struct{} `type:"structure"`
  24137. // Deprecated.
  24138. AddressingType *string `locationName:"addressingType" type:"string"`
  24139. // One or more block device mapping entries.
  24140. //
  24141. // Although you can specify encrypted EBS volumes in this block device mapping
  24142. // for your Spot Instances, these volumes are not encrypted.
  24143. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  24144. // Indicates whether the instance is optimized for EBS I/O. This optimization
  24145. // provides dedicated throughput to Amazon EBS and an optimized configuration
  24146. // stack to provide optimal EBS I/O performance. This optimization isn't available
  24147. // with all instance types. Additional usage charges apply when using an EBS
  24148. // Optimized instance.
  24149. //
  24150. // Default: false
  24151. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  24152. // The IAM instance profile.
  24153. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  24154. // The ID of the AMI.
  24155. ImageId *string `locationName:"imageId" type:"string"`
  24156. // The instance type.
  24157. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  24158. // The ID of the kernel.
  24159. KernelId *string `locationName:"kernelId" type:"string"`
  24160. // The name of the key pair.
  24161. KeyName *string `locationName:"keyName" type:"string"`
  24162. // Describes the monitoring for the instance.
  24163. Monitoring *RunInstancesMonitoringEnabled `locationName:"monitoring" type:"structure"`
  24164. // One or more network interfaces.
  24165. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"NetworkInterface" locationNameList:"item" type:"list"`
  24166. // The placement information for the instance.
  24167. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  24168. // The ID of the RAM disk.
  24169. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  24170. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"item" type:"list"`
  24171. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"item" type:"list"`
  24172. // The ID of the subnet in which to launch the instance.
  24173. SubnetId *string `locationName:"subnetId" type:"string"`
  24174. // The user data to make available to the instances. If you are using an AWS
  24175. // SDK or command line tool, Base64-encoding is performed for you, and you can
  24176. // load the text from a file. Otherwise, you must provide Base64-encoded text.
  24177. UserData *string `locationName:"userData" type:"string"`
  24178. }
  24179. // String returns the string representation
  24180. func (s RequestSpotLaunchSpecification) String() string {
  24181. return awsutil.Prettify(s)
  24182. }
  24183. // GoString returns the string representation
  24184. func (s RequestSpotLaunchSpecification) GoString() string {
  24185. return s.String()
  24186. }
  24187. // Validate inspects the fields of the type to determine if they are valid.
  24188. func (s *RequestSpotLaunchSpecification) Validate() error {
  24189. invalidParams := request.ErrInvalidParams{Context: "RequestSpotLaunchSpecification"}
  24190. if s.Monitoring != nil {
  24191. if err := s.Monitoring.Validate(); err != nil {
  24192. invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams))
  24193. }
  24194. }
  24195. if s.NetworkInterfaces != nil {
  24196. for i, v := range s.NetworkInterfaces {
  24197. if v == nil {
  24198. continue
  24199. }
  24200. if err := v.Validate(); err != nil {
  24201. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  24202. }
  24203. }
  24204. }
  24205. if invalidParams.Len() > 0 {
  24206. return invalidParams
  24207. }
  24208. return nil
  24209. }
  24210. // Describes a reservation.
  24211. type Reservation struct {
  24212. _ struct{} `type:"structure"`
  24213. // [EC2-Classic only] One or more security groups.
  24214. Groups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  24215. // One or more instances.
  24216. Instances []*Instance `locationName:"instancesSet" locationNameList:"item" type:"list"`
  24217. // The ID of the AWS account that owns the reservation.
  24218. OwnerId *string `locationName:"ownerId" type:"string"`
  24219. // The ID of the requester that launched the instances on your behalf (for example,
  24220. // AWS Management Console or Auto Scaling).
  24221. RequesterId *string `locationName:"requesterId" type:"string"`
  24222. // The ID of the reservation.
  24223. ReservationId *string `locationName:"reservationId" type:"string"`
  24224. }
  24225. // String returns the string representation
  24226. func (s Reservation) String() string {
  24227. return awsutil.Prettify(s)
  24228. }
  24229. // GoString returns the string representation
  24230. func (s Reservation) GoString() string {
  24231. return s.String()
  24232. }
  24233. // Describes the limit price of a Reserved Instance offering.
  24234. type ReservedInstanceLimitPrice struct {
  24235. _ struct{} `type:"structure"`
  24236. // Used for Reserved Instance Marketplace offerings. Specifies the limit price
  24237. // on the total order (instanceCount * price).
  24238. Amount *float64 `locationName:"amount" type:"double"`
  24239. // The currency in which the limitPrice amount is specified. At this time, the
  24240. // only supported currency is USD.
  24241. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  24242. }
  24243. // String returns the string representation
  24244. func (s ReservedInstanceLimitPrice) String() string {
  24245. return awsutil.Prettify(s)
  24246. }
  24247. // GoString returns the string representation
  24248. func (s ReservedInstanceLimitPrice) GoString() string {
  24249. return s.String()
  24250. }
  24251. // Describes a Reserved Instance.
  24252. type ReservedInstances struct {
  24253. _ struct{} `type:"structure"`
  24254. // The Availability Zone in which the Reserved Instance can be used.
  24255. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  24256. // The currency of the Reserved Instance. It's specified using ISO 4217 standard
  24257. // currency codes. At this time, the only supported currency is USD.
  24258. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  24259. // The duration of the Reserved Instance, in seconds.
  24260. Duration *int64 `locationName:"duration" type:"long"`
  24261. // The time when the Reserved Instance expires.
  24262. End *time.Time `locationName:"end" type:"timestamp" timestampFormat:"iso8601"`
  24263. // The purchase price of the Reserved Instance.
  24264. FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
  24265. // The number of reservations purchased.
  24266. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  24267. // The tenancy of the instance.
  24268. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  24269. // The instance type on which the Reserved Instance can be used.
  24270. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  24271. // The Reserved Instance offering type.
  24272. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  24273. // The Reserved Instance product platform description.
  24274. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  24275. // The recurring charge tag assigned to the resource.
  24276. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`
  24277. // The ID of the Reserved Instance.
  24278. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  24279. // The date and time the Reserved Instance started.
  24280. Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"iso8601"`
  24281. // The state of the Reserved Instance purchase.
  24282. State *string `locationName:"state" type:"string" enum:"ReservedInstanceState"`
  24283. // Any tags assigned to the resource.
  24284. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  24285. // The usage price of the Reserved Instance, per hour.
  24286. UsagePrice *float64 `locationName:"usagePrice" type:"float"`
  24287. }
  24288. // String returns the string representation
  24289. func (s ReservedInstances) String() string {
  24290. return awsutil.Prettify(s)
  24291. }
  24292. // GoString returns the string representation
  24293. func (s ReservedInstances) GoString() string {
  24294. return s.String()
  24295. }
  24296. // Describes the configuration settings for the modified Reserved Instances.
  24297. type ReservedInstancesConfiguration struct {
  24298. _ struct{} `type:"structure"`
  24299. // The Availability Zone for the modified Reserved Instances.
  24300. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  24301. // The number of modified Reserved Instances.
  24302. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  24303. // The instance type for the modified Reserved Instances.
  24304. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  24305. // The network platform of the modified Reserved Instances, which is either
  24306. // EC2-Classic or EC2-VPC.
  24307. Platform *string `locationName:"platform" type:"string"`
  24308. }
  24309. // String returns the string representation
  24310. func (s ReservedInstancesConfiguration) String() string {
  24311. return awsutil.Prettify(s)
  24312. }
  24313. // GoString returns the string representation
  24314. func (s ReservedInstancesConfiguration) GoString() string {
  24315. return s.String()
  24316. }
  24317. // Describes the ID of a Reserved Instance.
  24318. type ReservedInstancesId struct {
  24319. _ struct{} `type:"structure"`
  24320. // The ID of the Reserved Instance.
  24321. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  24322. }
  24323. // String returns the string representation
  24324. func (s ReservedInstancesId) String() string {
  24325. return awsutil.Prettify(s)
  24326. }
  24327. // GoString returns the string representation
  24328. func (s ReservedInstancesId) GoString() string {
  24329. return s.String()
  24330. }
  24331. // Describes a Reserved Instance listing.
  24332. type ReservedInstancesListing struct {
  24333. _ struct{} `type:"structure"`
  24334. // A unique, case-sensitive key supplied by the client to ensure that the request
  24335. // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  24336. ClientToken *string `locationName:"clientToken" type:"string"`
  24337. // The time the listing was created.
  24338. CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
  24339. // The number of instances in this state.
  24340. InstanceCounts []*InstanceCount `locationName:"instanceCounts" locationNameList:"item" type:"list"`
  24341. // The price of the Reserved Instance listing.
  24342. PriceSchedules []*PriceSchedule `locationName:"priceSchedules" locationNameList:"item" type:"list"`
  24343. // The ID of the Reserved Instance.
  24344. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  24345. // The ID of the Reserved Instance listing.
  24346. ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"`
  24347. // The status of the Reserved Instance listing.
  24348. Status *string `locationName:"status" type:"string" enum:"ListingStatus"`
  24349. // The reason for the current status of the Reserved Instance listing. The response
  24350. // can be blank.
  24351. StatusMessage *string `locationName:"statusMessage" type:"string"`
  24352. // Any tags assigned to the resource.
  24353. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  24354. // The last modified timestamp of the listing.
  24355. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"iso8601"`
  24356. }
  24357. // String returns the string representation
  24358. func (s ReservedInstancesListing) String() string {
  24359. return awsutil.Prettify(s)
  24360. }
  24361. // GoString returns the string representation
  24362. func (s ReservedInstancesListing) GoString() string {
  24363. return s.String()
  24364. }
  24365. // Describes a Reserved Instance modification.
  24366. type ReservedInstancesModification struct {
  24367. _ struct{} `type:"structure"`
  24368. // A unique, case-sensitive key supplied by the client to ensure that the request
  24369. // is idempotent. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  24370. ClientToken *string `locationName:"clientToken" type:"string"`
  24371. // The time when the modification request was created.
  24372. CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
  24373. // The time for the modification to become effective.
  24374. EffectiveDate *time.Time `locationName:"effectiveDate" type:"timestamp" timestampFormat:"iso8601"`
  24375. // Contains target configurations along with their corresponding new Reserved
  24376. // Instance IDs.
  24377. ModificationResults []*ReservedInstancesModificationResult `locationName:"modificationResultSet" locationNameList:"item" type:"list"`
  24378. // The IDs of one or more Reserved Instances.
  24379. ReservedInstancesIds []*ReservedInstancesId `locationName:"reservedInstancesSet" locationNameList:"item" type:"list"`
  24380. // A unique ID for the Reserved Instance modification.
  24381. ReservedInstancesModificationId *string `locationName:"reservedInstancesModificationId" type:"string"`
  24382. // The status of the Reserved Instances modification request.
  24383. Status *string `locationName:"status" type:"string"`
  24384. // The reason for the status.
  24385. StatusMessage *string `locationName:"statusMessage" type:"string"`
  24386. // The time when the modification request was last updated.
  24387. UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" timestampFormat:"iso8601"`
  24388. }
  24389. // String returns the string representation
  24390. func (s ReservedInstancesModification) String() string {
  24391. return awsutil.Prettify(s)
  24392. }
  24393. // GoString returns the string representation
  24394. func (s ReservedInstancesModification) GoString() string {
  24395. return s.String()
  24396. }
  24397. // Describes the modification request/s.
  24398. type ReservedInstancesModificationResult struct {
  24399. _ struct{} `type:"structure"`
  24400. // The ID for the Reserved Instances that were created as part of the modification
  24401. // request. This field is only available when the modification is fulfilled.
  24402. ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"`
  24403. // The target Reserved Instances configurations supplied as part of the modification
  24404. // request.
  24405. TargetConfiguration *ReservedInstancesConfiguration `locationName:"targetConfiguration" type:"structure"`
  24406. }
  24407. // String returns the string representation
  24408. func (s ReservedInstancesModificationResult) String() string {
  24409. return awsutil.Prettify(s)
  24410. }
  24411. // GoString returns the string representation
  24412. func (s ReservedInstancesModificationResult) GoString() string {
  24413. return s.String()
  24414. }
  24415. // Describes a Reserved Instance offering.
  24416. type ReservedInstancesOffering struct {
  24417. _ struct{} `type:"structure"`
  24418. // The Availability Zone in which the Reserved Instance can be used.
  24419. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  24420. // The currency of the Reserved Instance offering you are purchasing. It's specified
  24421. // using ISO 4217 standard currency codes. At this time, the only supported
  24422. // currency is USD.
  24423. CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"`
  24424. // The duration of the Reserved Instance, in seconds.
  24425. Duration *int64 `locationName:"duration" type:"long"`
  24426. // The purchase price of the Reserved Instance.
  24427. FixedPrice *float64 `locationName:"fixedPrice" type:"float"`
  24428. // The tenancy of the instance.
  24429. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  24430. // The instance type on which the Reserved Instance can be used.
  24431. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  24432. // Indicates whether the offering is available through the Reserved Instance
  24433. // Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering,
  24434. // this is true.
  24435. Marketplace *bool `locationName:"marketplace" type:"boolean"`
  24436. // The Reserved Instance offering type.
  24437. OfferingType *string `locationName:"offeringType" type:"string" enum:"OfferingTypeValues"`
  24438. // The pricing details of the Reserved Instance offering.
  24439. PricingDetails []*PricingDetail `locationName:"pricingDetailsSet" locationNameList:"item" type:"list"`
  24440. // The Reserved Instance product platform description.
  24441. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  24442. // The recurring charge tag assigned to the resource.
  24443. RecurringCharges []*RecurringCharge `locationName:"recurringCharges" locationNameList:"item" type:"list"`
  24444. // The ID of the Reserved Instance offering.
  24445. ReservedInstancesOfferingId *string `locationName:"reservedInstancesOfferingId" type:"string"`
  24446. // The usage price of the Reserved Instance, per hour.
  24447. UsagePrice *float64 `locationName:"usagePrice" type:"float"`
  24448. }
  24449. // String returns the string representation
  24450. func (s ReservedInstancesOffering) String() string {
  24451. return awsutil.Prettify(s)
  24452. }
  24453. // GoString returns the string representation
  24454. func (s ReservedInstancesOffering) GoString() string {
  24455. return s.String()
  24456. }
  24457. // Contains the parameters for ResetImageAttribute.
  24458. type ResetImageAttributeInput struct {
  24459. _ struct{} `type:"structure"`
  24460. // The attribute to reset (currently you can only reset the launch permission
  24461. // attribute).
  24462. Attribute *string `type:"string" required:"true" enum:"ResetImageAttributeName"`
  24463. // Checks whether you have the required permissions for the action, without
  24464. // actually making the request, and provides an error response. If you have
  24465. // the required permissions, the error response is DryRunOperation. Otherwise,
  24466. // it is UnauthorizedOperation.
  24467. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24468. // The ID of the AMI.
  24469. ImageId *string `type:"string" required:"true"`
  24470. }
  24471. // String returns the string representation
  24472. func (s ResetImageAttributeInput) String() string {
  24473. return awsutil.Prettify(s)
  24474. }
  24475. // GoString returns the string representation
  24476. func (s ResetImageAttributeInput) GoString() string {
  24477. return s.String()
  24478. }
  24479. // Validate inspects the fields of the type to determine if they are valid.
  24480. func (s *ResetImageAttributeInput) Validate() error {
  24481. invalidParams := request.ErrInvalidParams{Context: "ResetImageAttributeInput"}
  24482. if s.Attribute == nil {
  24483. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  24484. }
  24485. if s.ImageId == nil {
  24486. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  24487. }
  24488. if invalidParams.Len() > 0 {
  24489. return invalidParams
  24490. }
  24491. return nil
  24492. }
  24493. type ResetImageAttributeOutput struct {
  24494. _ struct{} `type:"structure"`
  24495. }
  24496. // String returns the string representation
  24497. func (s ResetImageAttributeOutput) String() string {
  24498. return awsutil.Prettify(s)
  24499. }
  24500. // GoString returns the string representation
  24501. func (s ResetImageAttributeOutput) GoString() string {
  24502. return s.String()
  24503. }
  24504. // Contains the parameters for ResetInstanceAttribute.
  24505. type ResetInstanceAttributeInput struct {
  24506. _ struct{} `type:"structure"`
  24507. // The attribute to reset.
  24508. //
  24509. // You can only reset the following attributes: kernel | ramdisk | sourceDestCheck.
  24510. // To change an instance attribute, use ModifyInstanceAttribute.
  24511. Attribute *string `locationName:"attribute" type:"string" required:"true" enum:"InstanceAttributeName"`
  24512. // Checks whether you have the required permissions for the action, without
  24513. // actually making the request, and provides an error response. If you have
  24514. // the required permissions, the error response is DryRunOperation. Otherwise,
  24515. // it is UnauthorizedOperation.
  24516. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24517. // The ID of the instance.
  24518. InstanceId *string `locationName:"instanceId" type:"string" required:"true"`
  24519. }
  24520. // String returns the string representation
  24521. func (s ResetInstanceAttributeInput) String() string {
  24522. return awsutil.Prettify(s)
  24523. }
  24524. // GoString returns the string representation
  24525. func (s ResetInstanceAttributeInput) GoString() string {
  24526. return s.String()
  24527. }
  24528. // Validate inspects the fields of the type to determine if they are valid.
  24529. func (s *ResetInstanceAttributeInput) Validate() error {
  24530. invalidParams := request.ErrInvalidParams{Context: "ResetInstanceAttributeInput"}
  24531. if s.Attribute == nil {
  24532. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  24533. }
  24534. if s.InstanceId == nil {
  24535. invalidParams.Add(request.NewErrParamRequired("InstanceId"))
  24536. }
  24537. if invalidParams.Len() > 0 {
  24538. return invalidParams
  24539. }
  24540. return nil
  24541. }
  24542. type ResetInstanceAttributeOutput struct {
  24543. _ struct{} `type:"structure"`
  24544. }
  24545. // String returns the string representation
  24546. func (s ResetInstanceAttributeOutput) String() string {
  24547. return awsutil.Prettify(s)
  24548. }
  24549. // GoString returns the string representation
  24550. func (s ResetInstanceAttributeOutput) GoString() string {
  24551. return s.String()
  24552. }
  24553. // Contains the parameters for ResetNetworkInterfaceAttribute.
  24554. type ResetNetworkInterfaceAttributeInput struct {
  24555. _ struct{} `type:"structure"`
  24556. // Checks whether you have the required permissions for the action, without
  24557. // actually making the request, and provides an error response. If you have
  24558. // the required permissions, the error response is DryRunOperation. Otherwise,
  24559. // it is UnauthorizedOperation.
  24560. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24561. // The ID of the network interface.
  24562. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  24563. // The source/destination checking attribute. Resets the value to true.
  24564. SourceDestCheck *string `locationName:"sourceDestCheck" type:"string"`
  24565. }
  24566. // String returns the string representation
  24567. func (s ResetNetworkInterfaceAttributeInput) String() string {
  24568. return awsutil.Prettify(s)
  24569. }
  24570. // GoString returns the string representation
  24571. func (s ResetNetworkInterfaceAttributeInput) GoString() string {
  24572. return s.String()
  24573. }
  24574. // Validate inspects the fields of the type to determine if they are valid.
  24575. func (s *ResetNetworkInterfaceAttributeInput) Validate() error {
  24576. invalidParams := request.ErrInvalidParams{Context: "ResetNetworkInterfaceAttributeInput"}
  24577. if s.NetworkInterfaceId == nil {
  24578. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  24579. }
  24580. if invalidParams.Len() > 0 {
  24581. return invalidParams
  24582. }
  24583. return nil
  24584. }
  24585. type ResetNetworkInterfaceAttributeOutput struct {
  24586. _ struct{} `type:"structure"`
  24587. }
  24588. // String returns the string representation
  24589. func (s ResetNetworkInterfaceAttributeOutput) String() string {
  24590. return awsutil.Prettify(s)
  24591. }
  24592. // GoString returns the string representation
  24593. func (s ResetNetworkInterfaceAttributeOutput) GoString() string {
  24594. return s.String()
  24595. }
  24596. // Contains the parameters for ResetSnapshotAttribute.
  24597. type ResetSnapshotAttributeInput struct {
  24598. _ struct{} `type:"structure"`
  24599. // The attribute to reset. Currently, only the attribute for permission to create
  24600. // volumes can be reset.
  24601. Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeName"`
  24602. // Checks whether you have the required permissions for the action, without
  24603. // actually making the request, and provides an error response. If you have
  24604. // the required permissions, the error response is DryRunOperation. Otherwise,
  24605. // it is UnauthorizedOperation.
  24606. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24607. // The ID of the snapshot.
  24608. SnapshotId *string `type:"string" required:"true"`
  24609. }
  24610. // String returns the string representation
  24611. func (s ResetSnapshotAttributeInput) String() string {
  24612. return awsutil.Prettify(s)
  24613. }
  24614. // GoString returns the string representation
  24615. func (s ResetSnapshotAttributeInput) GoString() string {
  24616. return s.String()
  24617. }
  24618. // Validate inspects the fields of the type to determine if they are valid.
  24619. func (s *ResetSnapshotAttributeInput) Validate() error {
  24620. invalidParams := request.ErrInvalidParams{Context: "ResetSnapshotAttributeInput"}
  24621. if s.Attribute == nil {
  24622. invalidParams.Add(request.NewErrParamRequired("Attribute"))
  24623. }
  24624. if s.SnapshotId == nil {
  24625. invalidParams.Add(request.NewErrParamRequired("SnapshotId"))
  24626. }
  24627. if invalidParams.Len() > 0 {
  24628. return invalidParams
  24629. }
  24630. return nil
  24631. }
  24632. type ResetSnapshotAttributeOutput struct {
  24633. _ struct{} `type:"structure"`
  24634. }
  24635. // String returns the string representation
  24636. func (s ResetSnapshotAttributeOutput) String() string {
  24637. return awsutil.Prettify(s)
  24638. }
  24639. // GoString returns the string representation
  24640. func (s ResetSnapshotAttributeOutput) GoString() string {
  24641. return s.String()
  24642. }
  24643. // Contains the parameters for RestoreAddressToClassic.
  24644. type RestoreAddressToClassicInput struct {
  24645. _ struct{} `type:"structure"`
  24646. // Checks whether you have the required permissions for the action, without
  24647. // actually making the request, and provides an error response. If you have
  24648. // the required permissions, the error response is DryRunOperation. Otherwise,
  24649. // it is UnauthorizedOperation.
  24650. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24651. // The Elastic IP address.
  24652. PublicIp *string `locationName:"publicIp" type:"string" required:"true"`
  24653. }
  24654. // String returns the string representation
  24655. func (s RestoreAddressToClassicInput) String() string {
  24656. return awsutil.Prettify(s)
  24657. }
  24658. // GoString returns the string representation
  24659. func (s RestoreAddressToClassicInput) GoString() string {
  24660. return s.String()
  24661. }
  24662. // Validate inspects the fields of the type to determine if they are valid.
  24663. func (s *RestoreAddressToClassicInput) Validate() error {
  24664. invalidParams := request.ErrInvalidParams{Context: "RestoreAddressToClassicInput"}
  24665. if s.PublicIp == nil {
  24666. invalidParams.Add(request.NewErrParamRequired("PublicIp"))
  24667. }
  24668. if invalidParams.Len() > 0 {
  24669. return invalidParams
  24670. }
  24671. return nil
  24672. }
  24673. // Contains the output of RestoreAddressToClassic.
  24674. type RestoreAddressToClassicOutput struct {
  24675. _ struct{} `type:"structure"`
  24676. // The Elastic IP address.
  24677. PublicIp *string `locationName:"publicIp" type:"string"`
  24678. // The move status for the IP address.
  24679. Status *string `locationName:"status" type:"string" enum:"Status"`
  24680. }
  24681. // String returns the string representation
  24682. func (s RestoreAddressToClassicOutput) String() string {
  24683. return awsutil.Prettify(s)
  24684. }
  24685. // GoString returns the string representation
  24686. func (s RestoreAddressToClassicOutput) GoString() string {
  24687. return s.String()
  24688. }
  24689. // Contains the parameters for RevokeSecurityGroupEgress.
  24690. type RevokeSecurityGroupEgressInput struct {
  24691. _ struct{} `type:"structure"`
  24692. // The CIDR IP address range. We recommend that you specify the CIDR range in
  24693. // a set of IP permissions instead.
  24694. CidrIp *string `locationName:"cidrIp" type:"string"`
  24695. // Checks whether you have the required permissions for the action, without
  24696. // actually making the request, and provides an error response. If you have
  24697. // the required permissions, the error response is DryRunOperation. Otherwise,
  24698. // it is UnauthorizedOperation.
  24699. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24700. // The start of port range for the TCP and UDP protocols, or an ICMP type number.
  24701. // We recommend that you specify the port range in a set of IP permissions instead.
  24702. FromPort *int64 `locationName:"fromPort" type:"integer"`
  24703. // The ID of the security group.
  24704. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  24705. // A set of IP permissions. You can't specify a destination security group and
  24706. // a CIDR IP address range.
  24707. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  24708. // The IP protocol name or number. We recommend that you specify the protocol
  24709. // in a set of IP permissions instead.
  24710. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  24711. // The name of a destination security group. To revoke outbound access to a
  24712. // destination security group, we recommend that you use a set of IP permissions
  24713. // instead.
  24714. SourceSecurityGroupName *string `locationName:"sourceSecurityGroupName" type:"string"`
  24715. // The AWS account number for a destination security group. To revoke outbound
  24716. // access to a destination security group, we recommend that you use a set of
  24717. // IP permissions instead.
  24718. SourceSecurityGroupOwnerId *string `locationName:"sourceSecurityGroupOwnerId" type:"string"`
  24719. // The end of port range for the TCP and UDP protocols, or an ICMP type number.
  24720. // We recommend that you specify the port range in a set of IP permissions instead.
  24721. ToPort *int64 `locationName:"toPort" type:"integer"`
  24722. }
  24723. // String returns the string representation
  24724. func (s RevokeSecurityGroupEgressInput) String() string {
  24725. return awsutil.Prettify(s)
  24726. }
  24727. // GoString returns the string representation
  24728. func (s RevokeSecurityGroupEgressInput) GoString() string {
  24729. return s.String()
  24730. }
  24731. // Validate inspects the fields of the type to determine if they are valid.
  24732. func (s *RevokeSecurityGroupEgressInput) Validate() error {
  24733. invalidParams := request.ErrInvalidParams{Context: "RevokeSecurityGroupEgressInput"}
  24734. if s.GroupId == nil {
  24735. invalidParams.Add(request.NewErrParamRequired("GroupId"))
  24736. }
  24737. if invalidParams.Len() > 0 {
  24738. return invalidParams
  24739. }
  24740. return nil
  24741. }
  24742. type RevokeSecurityGroupEgressOutput struct {
  24743. _ struct{} `type:"structure"`
  24744. }
  24745. // String returns the string representation
  24746. func (s RevokeSecurityGroupEgressOutput) String() string {
  24747. return awsutil.Prettify(s)
  24748. }
  24749. // GoString returns the string representation
  24750. func (s RevokeSecurityGroupEgressOutput) GoString() string {
  24751. return s.String()
  24752. }
  24753. // Contains the parameters for RevokeSecurityGroupIngress.
  24754. type RevokeSecurityGroupIngressInput struct {
  24755. _ struct{} `type:"structure"`
  24756. // The CIDR IP address range. You can't specify this parameter when specifying
  24757. // a source security group.
  24758. CidrIp *string `type:"string"`
  24759. // Checks whether you have the required permissions for the action, without
  24760. // actually making the request, and provides an error response. If you have
  24761. // the required permissions, the error response is DryRunOperation. Otherwise,
  24762. // it is UnauthorizedOperation.
  24763. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24764. // The start of port range for the TCP and UDP protocols, or an ICMP type number.
  24765. // For the ICMP type number, use -1 to specify all ICMP types.
  24766. FromPort *int64 `type:"integer"`
  24767. // The ID of the security group. Required for a security group in a nondefault
  24768. // VPC.
  24769. GroupId *string `type:"string"`
  24770. // [EC2-Classic, default VPC] The name of the security group.
  24771. GroupName *string `type:"string"`
  24772. // A set of IP permissions. You can't specify a source security group and a
  24773. // CIDR IP address range.
  24774. IpPermissions []*IpPermission `locationNameList:"item" type:"list"`
  24775. // The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
  24776. // Use -1 to specify all.
  24777. IpProtocol *string `type:"string"`
  24778. // [EC2-Classic, default VPC] The name of the source security group. You can't
  24779. // specify this parameter in combination with the following parameters: the
  24780. // CIDR IP address range, the start of the port range, the IP protocol, and
  24781. // the end of the port range. For EC2-VPC, the source security group must be
  24782. // in the same VPC. To revoke a specific rule for an IP protocol and port range,
  24783. // use a set of IP permissions instead.
  24784. SourceSecurityGroupName *string `type:"string"`
  24785. // [EC2-Classic] The AWS account ID of the source security group, if the source
  24786. // security group is in a different account. You can't specify this parameter
  24787. // in combination with the following parameters: the CIDR IP address range,
  24788. // the IP protocol, the start of the port range, and the end of the port range.
  24789. // To revoke a specific rule for an IP protocol and port range, use a set of
  24790. // IP permissions instead.
  24791. SourceSecurityGroupOwnerId *string `type:"string"`
  24792. // The end of port range for the TCP and UDP protocols, or an ICMP code number.
  24793. // For the ICMP code number, use -1 to specify all ICMP codes for the ICMP type.
  24794. ToPort *int64 `type:"integer"`
  24795. }
  24796. // String returns the string representation
  24797. func (s RevokeSecurityGroupIngressInput) String() string {
  24798. return awsutil.Prettify(s)
  24799. }
  24800. // GoString returns the string representation
  24801. func (s RevokeSecurityGroupIngressInput) GoString() string {
  24802. return s.String()
  24803. }
  24804. type RevokeSecurityGroupIngressOutput struct {
  24805. _ struct{} `type:"structure"`
  24806. }
  24807. // String returns the string representation
  24808. func (s RevokeSecurityGroupIngressOutput) String() string {
  24809. return awsutil.Prettify(s)
  24810. }
  24811. // GoString returns the string representation
  24812. func (s RevokeSecurityGroupIngressOutput) GoString() string {
  24813. return s.String()
  24814. }
  24815. // Describes a route in a route table.
  24816. type Route struct {
  24817. _ struct{} `type:"structure"`
  24818. // The CIDR block used for the destination match.
  24819. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  24820. // The prefix of the AWS service.
  24821. DestinationPrefixListId *string `locationName:"destinationPrefixListId" type:"string"`
  24822. // The ID of a gateway attached to your VPC.
  24823. GatewayId *string `locationName:"gatewayId" type:"string"`
  24824. // The ID of a NAT instance in your VPC.
  24825. InstanceId *string `locationName:"instanceId" type:"string"`
  24826. // The AWS account ID of the owner of the instance.
  24827. InstanceOwnerId *string `locationName:"instanceOwnerId" type:"string"`
  24828. // The ID of a NAT gateway.
  24829. NatGatewayId *string `locationName:"natGatewayId" type:"string"`
  24830. // The ID of the network interface.
  24831. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"`
  24832. // Describes how the route was created.
  24833. //
  24834. // CreateRouteTable - The route was automatically created when the route
  24835. // table was created.
  24836. //
  24837. // CreateRoute - The route was manually added to the route table.
  24838. //
  24839. // EnableVgwRoutePropagation - The route was propagated by route propagation.
  24840. Origin *string `locationName:"origin" type:"string" enum:"RouteOrigin"`
  24841. // The state of the route. The blackhole state indicates that the route's target
  24842. // isn't available (for example, the specified gateway isn't attached to the
  24843. // VPC, or the specified NAT instance has been terminated).
  24844. State *string `locationName:"state" type:"string" enum:"RouteState"`
  24845. // The ID of the VPC peering connection.
  24846. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  24847. }
  24848. // String returns the string representation
  24849. func (s Route) String() string {
  24850. return awsutil.Prettify(s)
  24851. }
  24852. // GoString returns the string representation
  24853. func (s Route) GoString() string {
  24854. return s.String()
  24855. }
  24856. // Describes a route table.
  24857. type RouteTable struct {
  24858. _ struct{} `type:"structure"`
  24859. // The associations between the route table and one or more subnets.
  24860. Associations []*RouteTableAssociation `locationName:"associationSet" locationNameList:"item" type:"list"`
  24861. // Any virtual private gateway (VGW) propagating routes.
  24862. PropagatingVgws []*PropagatingVgw `locationName:"propagatingVgwSet" locationNameList:"item" type:"list"`
  24863. // The ID of the route table.
  24864. RouteTableId *string `locationName:"routeTableId" type:"string"`
  24865. // The routes in the route table.
  24866. Routes []*Route `locationName:"routeSet" locationNameList:"item" type:"list"`
  24867. // Any tags assigned to the route table.
  24868. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  24869. // The ID of the VPC.
  24870. VpcId *string `locationName:"vpcId" type:"string"`
  24871. }
  24872. // String returns the string representation
  24873. func (s RouteTable) String() string {
  24874. return awsutil.Prettify(s)
  24875. }
  24876. // GoString returns the string representation
  24877. func (s RouteTable) GoString() string {
  24878. return s.String()
  24879. }
  24880. // Describes an association between a route table and a subnet.
  24881. type RouteTableAssociation struct {
  24882. _ struct{} `type:"structure"`
  24883. // Indicates whether this is the main route table.
  24884. Main *bool `locationName:"main" type:"boolean"`
  24885. // The ID of the association between a route table and a subnet.
  24886. RouteTableAssociationId *string `locationName:"routeTableAssociationId" type:"string"`
  24887. // The ID of the route table.
  24888. RouteTableId *string `locationName:"routeTableId" type:"string"`
  24889. // The ID of the subnet. A subnet ID is not returned for an implicit association.
  24890. SubnetId *string `locationName:"subnetId" type:"string"`
  24891. }
  24892. // String returns the string representation
  24893. func (s RouteTableAssociation) String() string {
  24894. return awsutil.Prettify(s)
  24895. }
  24896. // GoString returns the string representation
  24897. func (s RouteTableAssociation) GoString() string {
  24898. return s.String()
  24899. }
  24900. // Contains the parameters for RunInstances.
  24901. type RunInstancesInput struct {
  24902. _ struct{} `type:"structure"`
  24903. // Reserved.
  24904. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  24905. // The block device mapping.
  24906. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  24907. // Unique, case-sensitive identifier you provide to ensure the idempotency of
  24908. // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  24909. //
  24910. // Constraints: Maximum 64 ASCII characters
  24911. ClientToken *string `locationName:"clientToken" type:"string"`
  24912. // If you set this parameter to true, you can't terminate the instance using
  24913. // the Amazon EC2 console, CLI, or API; otherwise, you can. If you set this
  24914. // parameter to true and then later want to be able to terminate the instance,
  24915. // you must first change the value of the disableApiTermination attribute to
  24916. // false using ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior
  24917. // to terminate, you can terminate the instance by running the shutdown command
  24918. // from the instance.
  24919. //
  24920. // Default: false
  24921. DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"`
  24922. // Checks whether you have the required permissions for the action, without
  24923. // actually making the request, and provides an error response. If you have
  24924. // the required permissions, the error response is DryRunOperation. Otherwise,
  24925. // it is UnauthorizedOperation.
  24926. DryRun *bool `locationName:"dryRun" type:"boolean"`
  24927. // Indicates whether the instance is optimized for EBS I/O. This optimization
  24928. // provides dedicated throughput to Amazon EBS and an optimized configuration
  24929. // stack to provide optimal EBS I/O performance. This optimization isn't available
  24930. // with all instance types. Additional usage charges apply when using an EBS-optimized
  24931. // instance.
  24932. //
  24933. // Default: false
  24934. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  24935. // The IAM instance profile.
  24936. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  24937. // The ID of the AMI, which you can get by calling DescribeImages.
  24938. ImageId *string `type:"string" required:"true"`
  24939. // Indicates whether an instance stops or terminates when you initiate shutdown
  24940. // from the instance (using the operating system command for system shutdown).
  24941. //
  24942. // Default: stop
  24943. InstanceInitiatedShutdownBehavior *string `locationName:"instanceInitiatedShutdownBehavior" type:"string" enum:"ShutdownBehavior"`
  24944. // The instance type. For more information, see Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
  24945. // in the Amazon Elastic Compute Cloud User Guide.
  24946. //
  24947. // Default: m1.small
  24948. InstanceType *string `type:"string" enum:"InstanceType"`
  24949. // The ID of the kernel.
  24950. //
  24951. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For
  24952. // more information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  24953. // in the Amazon Elastic Compute Cloud User Guide.
  24954. KernelId *string `type:"string"`
  24955. // The name of the key pair. You can create a key pair using CreateKeyPair or
  24956. // ImportKeyPair.
  24957. //
  24958. // If you do not specify a key pair, you can't connect to the instance unless
  24959. // you choose an AMI that is configured to allow users another way to log in.
  24960. KeyName *string `type:"string"`
  24961. // The maximum number of instances to launch. If you specify more instances
  24962. // than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches
  24963. // the largest possible number of instances above MinCount.
  24964. //
  24965. // Constraints: Between 1 and the maximum number you're allowed for the specified
  24966. // instance type. For more information about the default limits, and how to
  24967. // request an increase, see How many instances can I run in Amazon EC2 (http://aws.amazon.com/ec2/faqs/#How_many_instances_can_I_run_in_Amazon_EC2)
  24968. // in the Amazon EC2 FAQ.
  24969. MaxCount *int64 `type:"integer" required:"true"`
  24970. // The minimum number of instances to launch. If you specify a minimum that
  24971. // is more instances than Amazon EC2 can launch in the target Availability Zone,
  24972. // Amazon EC2 launches no instances.
  24973. //
  24974. // Constraints: Between 1 and the maximum number you're allowed for the specified
  24975. // instance type. For more information about the default limits, and how to
  24976. // request an increase, see How many instances can I run in Amazon EC2 (http://aws.amazon.com/ec2/faqs/#How_many_instances_can_I_run_in_Amazon_EC2)
  24977. // in the Amazon EC2 General FAQ.
  24978. MinCount *int64 `type:"integer" required:"true"`
  24979. // The monitoring for the instance.
  24980. Monitoring *RunInstancesMonitoringEnabled `type:"structure"`
  24981. // One or more network interfaces.
  24982. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterface" locationNameList:"item" type:"list"`
  24983. // The placement for the instance.
  24984. Placement *Placement `type:"structure"`
  24985. // [EC2-VPC] The primary IP address. You must specify a value from the IP address
  24986. // range of the subnet.
  24987. //
  24988. // Only one private IP address can be designated as primary. Therefore, you
  24989. // can't specify this parameter if PrivateIpAddresses.n.Primary is set to true
  24990. // and PrivateIpAddresses.n.PrivateIpAddress is set to an IP address.
  24991. //
  24992. // Default: We select an IP address from the IP address range of the subnet.
  24993. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"`
  24994. // The ID of the RAM disk.
  24995. //
  24996. // We recommend that you use PV-GRUB instead of kernels and RAM disks. For
  24997. // more information, see PV-GRUB (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html)
  24998. // in the Amazon Elastic Compute Cloud User Guide.
  24999. RamdiskId *string `type:"string"`
  25000. // One or more security group IDs. You can create a security group using CreateSecurityGroup.
  25001. //
  25002. // Default: Amazon EC2 uses the default security group.
  25003. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  25004. // [EC2-Classic, default VPC] One or more security group names. For a nondefault
  25005. // VPC, you must use security group IDs instead.
  25006. //
  25007. // Default: Amazon EC2 uses the default security group.
  25008. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"`
  25009. // [EC2-VPC] The ID of the subnet to launch the instance into.
  25010. SubnetId *string `type:"string"`
  25011. // The user data to make available to the instance. For more information, see
  25012. // Running Commands on Your Linux Instance at Launch (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html)
  25013. // (Linux) and Adding User Data (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data)
  25014. // (Windows). If you are using an AWS SDK or command line tool, Base64-encoding
  25015. // is performed for you, and you can load the text from a file. Otherwise, you
  25016. // must provide Base64-encoded text.
  25017. UserData *string `type:"string"`
  25018. }
  25019. // String returns the string representation
  25020. func (s RunInstancesInput) String() string {
  25021. return awsutil.Prettify(s)
  25022. }
  25023. // GoString returns the string representation
  25024. func (s RunInstancesInput) GoString() string {
  25025. return s.String()
  25026. }
  25027. // Validate inspects the fields of the type to determine if they are valid.
  25028. func (s *RunInstancesInput) Validate() error {
  25029. invalidParams := request.ErrInvalidParams{Context: "RunInstancesInput"}
  25030. if s.ImageId == nil {
  25031. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  25032. }
  25033. if s.MaxCount == nil {
  25034. invalidParams.Add(request.NewErrParamRequired("MaxCount"))
  25035. }
  25036. if s.MinCount == nil {
  25037. invalidParams.Add(request.NewErrParamRequired("MinCount"))
  25038. }
  25039. if s.Monitoring != nil {
  25040. if err := s.Monitoring.Validate(); err != nil {
  25041. invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams))
  25042. }
  25043. }
  25044. if s.NetworkInterfaces != nil {
  25045. for i, v := range s.NetworkInterfaces {
  25046. if v == nil {
  25047. continue
  25048. }
  25049. if err := v.Validate(); err != nil {
  25050. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  25051. }
  25052. }
  25053. }
  25054. if invalidParams.Len() > 0 {
  25055. return invalidParams
  25056. }
  25057. return nil
  25058. }
  25059. // Describes the monitoring for the instance.
  25060. type RunInstancesMonitoringEnabled struct {
  25061. _ struct{} `type:"structure"`
  25062. // Indicates whether monitoring is enabled for the instance.
  25063. Enabled *bool `locationName:"enabled" type:"boolean" required:"true"`
  25064. }
  25065. // String returns the string representation
  25066. func (s RunInstancesMonitoringEnabled) String() string {
  25067. return awsutil.Prettify(s)
  25068. }
  25069. // GoString returns the string representation
  25070. func (s RunInstancesMonitoringEnabled) GoString() string {
  25071. return s.String()
  25072. }
  25073. // Validate inspects the fields of the type to determine if they are valid.
  25074. func (s *RunInstancesMonitoringEnabled) Validate() error {
  25075. invalidParams := request.ErrInvalidParams{Context: "RunInstancesMonitoringEnabled"}
  25076. if s.Enabled == nil {
  25077. invalidParams.Add(request.NewErrParamRequired("Enabled"))
  25078. }
  25079. if invalidParams.Len() > 0 {
  25080. return invalidParams
  25081. }
  25082. return nil
  25083. }
  25084. // Contains the parameters for RunScheduledInstances.
  25085. type RunScheduledInstancesInput struct {
  25086. _ struct{} `type:"structure"`
  25087. // Unique, case-sensitive identifier that ensures the idempotency of the request.
  25088. // For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  25089. ClientToken *string `type:"string" idempotencyToken:"true"`
  25090. // Checks whether you have the required permissions for the action, without
  25091. // actually making the request, and provides an error response. If you have
  25092. // the required permissions, the error response is DryRunOperation. Otherwise,
  25093. // it is UnauthorizedOperation.
  25094. DryRun *bool `type:"boolean"`
  25095. // The number of instances.
  25096. //
  25097. // Default: 1
  25098. InstanceCount *int64 `type:"integer"`
  25099. // The launch specification.
  25100. LaunchSpecification *ScheduledInstancesLaunchSpecification `type:"structure" required:"true"`
  25101. // The Scheduled Instance ID.
  25102. ScheduledInstanceId *string `type:"string" required:"true"`
  25103. }
  25104. // String returns the string representation
  25105. func (s RunScheduledInstancesInput) String() string {
  25106. return awsutil.Prettify(s)
  25107. }
  25108. // GoString returns the string representation
  25109. func (s RunScheduledInstancesInput) GoString() string {
  25110. return s.String()
  25111. }
  25112. // Validate inspects the fields of the type to determine if they are valid.
  25113. func (s *RunScheduledInstancesInput) Validate() error {
  25114. invalidParams := request.ErrInvalidParams{Context: "RunScheduledInstancesInput"}
  25115. if s.LaunchSpecification == nil {
  25116. invalidParams.Add(request.NewErrParamRequired("LaunchSpecification"))
  25117. }
  25118. if s.ScheduledInstanceId == nil {
  25119. invalidParams.Add(request.NewErrParamRequired("ScheduledInstanceId"))
  25120. }
  25121. if s.LaunchSpecification != nil {
  25122. if err := s.LaunchSpecification.Validate(); err != nil {
  25123. invalidParams.AddNested("LaunchSpecification", err.(request.ErrInvalidParams))
  25124. }
  25125. }
  25126. if invalidParams.Len() > 0 {
  25127. return invalidParams
  25128. }
  25129. return nil
  25130. }
  25131. // Contains the output of RunScheduledInstances.
  25132. type RunScheduledInstancesOutput struct {
  25133. _ struct{} `type:"structure"`
  25134. // The IDs of the newly launched instances.
  25135. InstanceIdSet []*string `locationName:"instanceIdSet" locationNameList:"item" type:"list"`
  25136. }
  25137. // String returns the string representation
  25138. func (s RunScheduledInstancesOutput) String() string {
  25139. return awsutil.Prettify(s)
  25140. }
  25141. // GoString returns the string representation
  25142. func (s RunScheduledInstancesOutput) GoString() string {
  25143. return s.String()
  25144. }
  25145. // Describes the storage parameters for S3 and S3 buckets for an instance store-backed
  25146. // AMI.
  25147. type S3Storage struct {
  25148. _ struct{} `type:"structure"`
  25149. // The access key ID of the owner of the bucket. Before you specify a value
  25150. // for your access key ID, review and follow the guidance in Best Practices
  25151. // for Managing AWS Access Keys (http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html).
  25152. AWSAccessKeyId *string `type:"string"`
  25153. // The bucket in which to store the AMI. You can specify a bucket that you already
  25154. // own or a new bucket that Amazon EC2 creates on your behalf. If you specify
  25155. // a bucket that belongs to someone else, Amazon EC2 returns an error.
  25156. Bucket *string `locationName:"bucket" type:"string"`
  25157. // The beginning of the file name of the AMI.
  25158. Prefix *string `locationName:"prefix" type:"string"`
  25159. // An Amazon S3 upload policy that gives Amazon EC2 permission to upload items
  25160. // into Amazon S3 on your behalf.
  25161. //
  25162. // UploadPolicy is automatically base64 encoded/decoded by the SDK.
  25163. UploadPolicy []byte `locationName:"uploadPolicy" type:"blob"`
  25164. // The signature of the JSON document.
  25165. UploadPolicySignature *string `locationName:"uploadPolicySignature" type:"string"`
  25166. }
  25167. // String returns the string representation
  25168. func (s S3Storage) String() string {
  25169. return awsutil.Prettify(s)
  25170. }
  25171. // GoString returns the string representation
  25172. func (s S3Storage) GoString() string {
  25173. return s.String()
  25174. }
  25175. // Describes a Scheduled Instance.
  25176. type ScheduledInstance struct {
  25177. _ struct{} `type:"structure"`
  25178. // The Availability Zone.
  25179. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  25180. // The date when the Scheduled Instance was purchased.
  25181. CreateDate *time.Time `locationName:"createDate" type:"timestamp" timestampFormat:"iso8601"`
  25182. // The hourly price for a single instance.
  25183. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  25184. // The number of instances.
  25185. InstanceCount *int64 `locationName:"instanceCount" type:"integer"`
  25186. // The instance type.
  25187. InstanceType *string `locationName:"instanceType" type:"string"`
  25188. // The network platform (EC2-Classic or EC2-VPC).
  25189. NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
  25190. // The time for the next schedule to start.
  25191. NextSlotStartTime *time.Time `locationName:"nextSlotStartTime" type:"timestamp" timestampFormat:"iso8601"`
  25192. // The platform (Linux/UNIX or Windows).
  25193. Platform *string `locationName:"platform" type:"string"`
  25194. // The time that the previous schedule ended or will end.
  25195. PreviousSlotEndTime *time.Time `locationName:"previousSlotEndTime" type:"timestamp" timestampFormat:"iso8601"`
  25196. // The schedule recurrence.
  25197. Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
  25198. // The Scheduled Instance ID.
  25199. ScheduledInstanceId *string `locationName:"scheduledInstanceId" type:"string"`
  25200. // The number of hours in the schedule.
  25201. SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
  25202. // The end date for the Scheduled Instance.
  25203. TermEndDate *time.Time `locationName:"termEndDate" type:"timestamp" timestampFormat:"iso8601"`
  25204. // The start date for the Scheduled Instance.
  25205. TermStartDate *time.Time `locationName:"termStartDate" type:"timestamp" timestampFormat:"iso8601"`
  25206. // The total number of hours for a single instance for the entire term.
  25207. TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
  25208. }
  25209. // String returns the string representation
  25210. func (s ScheduledInstance) String() string {
  25211. return awsutil.Prettify(s)
  25212. }
  25213. // GoString returns the string representation
  25214. func (s ScheduledInstance) GoString() string {
  25215. return s.String()
  25216. }
  25217. // Describes a schedule that is available for your Scheduled Instances.
  25218. type ScheduledInstanceAvailability struct {
  25219. _ struct{} `type:"structure"`
  25220. // The Availability Zone.
  25221. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  25222. // The number of available instances.
  25223. AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"`
  25224. // The time period for the first schedule to start.
  25225. FirstSlotStartTime *time.Time `locationName:"firstSlotStartTime" type:"timestamp" timestampFormat:"iso8601"`
  25226. // The hourly price for a single instance.
  25227. HourlyPrice *string `locationName:"hourlyPrice" type:"string"`
  25228. // The instance type. You can specify one of the C3, C4, M4, or R3 instance
  25229. // types.
  25230. InstanceType *string `locationName:"instanceType" type:"string"`
  25231. // The maximum term. The only possible value is 365 days.
  25232. MaxTermDurationInDays *int64 `locationName:"maxTermDurationInDays" type:"integer"`
  25233. // The minimum term. The only possible value is 365 days.
  25234. MinTermDurationInDays *int64 `locationName:"minTermDurationInDays" type:"integer"`
  25235. // The network platform (EC2-Classic or EC2-VPC).
  25236. NetworkPlatform *string `locationName:"networkPlatform" type:"string"`
  25237. // The platform (Linux/UNIX or Windows).
  25238. Platform *string `locationName:"platform" type:"string"`
  25239. // The purchase token. This token expires in two hours.
  25240. PurchaseToken *string `locationName:"purchaseToken" type:"string"`
  25241. // The schedule recurrence.
  25242. Recurrence *ScheduledInstanceRecurrence `locationName:"recurrence" type:"structure"`
  25243. // The number of hours in the schedule.
  25244. SlotDurationInHours *int64 `locationName:"slotDurationInHours" type:"integer"`
  25245. // The total number of hours for a single instance for the entire term.
  25246. TotalScheduledInstanceHours *int64 `locationName:"totalScheduledInstanceHours" type:"integer"`
  25247. }
  25248. // String returns the string representation
  25249. func (s ScheduledInstanceAvailability) String() string {
  25250. return awsutil.Prettify(s)
  25251. }
  25252. // GoString returns the string representation
  25253. func (s ScheduledInstanceAvailability) GoString() string {
  25254. return s.String()
  25255. }
  25256. // Describes the recurring schedule for a Scheduled Instance.
  25257. type ScheduledInstanceRecurrence struct {
  25258. _ struct{} `type:"structure"`
  25259. // The frequency (Daily, Weekly, or Monthly).
  25260. Frequency *string `locationName:"frequency" type:"string"`
  25261. // The interval quantity. The interval unit depends on the value of frequency.
  25262. // For example, every 2 weeks or every 2 months.
  25263. Interval *int64 `locationName:"interval" type:"integer"`
  25264. // The days. For a monthly schedule, this is one or more days of the month (1-31).
  25265. // For a weekly schedule, this is one or more days of the week (1-7, where 1
  25266. // is Sunday).
  25267. OccurrenceDaySet []*int64 `locationName:"occurrenceDaySet" locationNameList:"item" type:"list"`
  25268. // Indicates whether the occurrence is relative to the end of the specified
  25269. // week or month.
  25270. OccurrenceRelativeToEnd *bool `locationName:"occurrenceRelativeToEnd" type:"boolean"`
  25271. // The unit for occurrenceDaySet (DayOfWeek or DayOfMonth).
  25272. OccurrenceUnit *string `locationName:"occurrenceUnit" type:"string"`
  25273. }
  25274. // String returns the string representation
  25275. func (s ScheduledInstanceRecurrence) String() string {
  25276. return awsutil.Prettify(s)
  25277. }
  25278. // GoString returns the string representation
  25279. func (s ScheduledInstanceRecurrence) GoString() string {
  25280. return s.String()
  25281. }
  25282. // Describes the recurring schedule for a Scheduled Instance.
  25283. type ScheduledInstanceRecurrenceRequest struct {
  25284. _ struct{} `type:"structure"`
  25285. // The frequency (Daily, Weekly, or Monthly).
  25286. Frequency *string `type:"string"`
  25287. // The interval quantity. The interval unit depends on the value of Frequency.
  25288. // For example, every 2 weeks or every 2 months.
  25289. Interval *int64 `type:"integer"`
  25290. // The days. For a monthly schedule, this is one or more days of the month (1-31).
  25291. // For a weekly schedule, this is one or more days of the week (1-7, where 1
  25292. // is Sunday). You can't specify this value with a daily schedule. If the occurrence
  25293. // is relative to the end of the month, you can specify only a single day.
  25294. OccurrenceDays []*int64 `locationName:"OccurrenceDay" locationNameList:"OccurenceDay" type:"list"`
  25295. // Indicates whether the occurrence is relative to the end of the specified
  25296. // week or month. You can't specify this value with a daily schedule.
  25297. OccurrenceRelativeToEnd *bool `type:"boolean"`
  25298. // The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required
  25299. // for a monthly schedule. You can't specify DayOfWeek with a weekly schedule.
  25300. // You can't specify this value with a daily schedule.
  25301. OccurrenceUnit *string `type:"string"`
  25302. }
  25303. // String returns the string representation
  25304. func (s ScheduledInstanceRecurrenceRequest) String() string {
  25305. return awsutil.Prettify(s)
  25306. }
  25307. // GoString returns the string representation
  25308. func (s ScheduledInstanceRecurrenceRequest) GoString() string {
  25309. return s.String()
  25310. }
  25311. // Describes a block device mapping for a Scheduled Instance.
  25312. type ScheduledInstancesBlockDeviceMapping struct {
  25313. _ struct{} `type:"structure"`
  25314. // The device name exposed to the instance (for example, /dev/sdh or xvdh).
  25315. DeviceName *string `type:"string"`
  25316. // Parameters used to set up EBS volumes automatically when the instance is
  25317. // launched.
  25318. Ebs *ScheduledInstancesEbs `type:"structure"`
  25319. // Suppresses the specified device included in the block device mapping of the
  25320. // AMI.
  25321. NoDevice *string `type:"string"`
  25322. // The virtual device name (ephemeralN). Instance store volumes are numbered
  25323. // starting from 0. An instance type with two available instance store volumes
  25324. // can specify mappings for ephemeral0 and ephemeral1.The number of available
  25325. // instance store volumes depends on the instance type. After you connect to
  25326. // the instance, you must mount the volume.
  25327. //
  25328. // Constraints: For M3 instances, you must specify instance store volumes in
  25329. // the block device mapping for the instance. When you launch an M3 instance,
  25330. // we ignore any instance store volumes specified in the block device mapping
  25331. // for the AMI.
  25332. VirtualName *string `type:"string"`
  25333. }
  25334. // String returns the string representation
  25335. func (s ScheduledInstancesBlockDeviceMapping) String() string {
  25336. return awsutil.Prettify(s)
  25337. }
  25338. // GoString returns the string representation
  25339. func (s ScheduledInstancesBlockDeviceMapping) GoString() string {
  25340. return s.String()
  25341. }
  25342. // Describes an EBS volume for a Scheduled Instance.
  25343. type ScheduledInstancesEbs struct {
  25344. _ struct{} `type:"structure"`
  25345. // Indicates whether the volume is deleted on instance termination.
  25346. DeleteOnTermination *bool `type:"boolean"`
  25347. // Indicates whether the volume is encrypted. You can attached encrypted volumes
  25348. // only to instances that support them.
  25349. Encrypted *bool `type:"boolean"`
  25350. // The number of I/O operations per second (IOPS) that the volume supports.
  25351. // For io1 volumes, this represents the number of IOPS that are provisioned
  25352. // for the volume. For gp2 volumes, this represents the baseline performance
  25353. // of the volume and the rate at which the volume accumulates I/O credits for
  25354. // bursting. For more information about gp2 baseline performance, I/O credits,
  25355. // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  25356. // in the Amazon Elastic Compute Cloud User Guide.
  25357. //
  25358. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  25359. // gp2 volumes.
  25360. //
  25361. // Condition: This parameter is required for requests to create io1volumes;
  25362. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  25363. Iops *int64 `type:"integer"`
  25364. // The ID of the snapshot.
  25365. SnapshotId *string `type:"string"`
  25366. // The size of the volume, in GiB.
  25367. //
  25368. // Default: If you're creating the volume from a snapshot and don't specify
  25369. // a volume size, the default is the snapshot size.
  25370. VolumeSize *int64 `type:"integer"`
  25371. // The volume type. gp2 for General Purpose SSD, io1 for Provisioned IOPS SSD,
  25372. // Throughput Optimized HDD for st1, Cold HDD for sc1, or standard for Magnetic.
  25373. //
  25374. // Default: standard
  25375. VolumeType *string `type:"string"`
  25376. }
  25377. // String returns the string representation
  25378. func (s ScheduledInstancesEbs) String() string {
  25379. return awsutil.Prettify(s)
  25380. }
  25381. // GoString returns the string representation
  25382. func (s ScheduledInstancesEbs) GoString() string {
  25383. return s.String()
  25384. }
  25385. // Describes an IAM instance profile for a Scheduled Instance.
  25386. type ScheduledInstancesIamInstanceProfile struct {
  25387. _ struct{} `type:"structure"`
  25388. // The Amazon Resource Name (ARN).
  25389. Arn *string `type:"string"`
  25390. // The name.
  25391. Name *string `type:"string"`
  25392. }
  25393. // String returns the string representation
  25394. func (s ScheduledInstancesIamInstanceProfile) String() string {
  25395. return awsutil.Prettify(s)
  25396. }
  25397. // GoString returns the string representation
  25398. func (s ScheduledInstancesIamInstanceProfile) GoString() string {
  25399. return s.String()
  25400. }
  25401. // Describes the launch specification for a Scheduled Instance.
  25402. //
  25403. // If you are launching the Scheduled Instance in EC2-VPC, you must specify
  25404. // the ID of the subnet. You can specify the subnet using either SubnetId or
  25405. // NetworkInterface.
  25406. type ScheduledInstancesLaunchSpecification struct {
  25407. _ struct{} `type:"structure"`
  25408. // One or more block device mapping entries.
  25409. BlockDeviceMappings []*ScheduledInstancesBlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"`
  25410. // Indicates whether the instances are optimized for EBS I/O. This optimization
  25411. // provides dedicated throughput to Amazon EBS and an optimized configuration
  25412. // stack to provide optimal EBS I/O performance. This optimization isn't available
  25413. // with all instance types. Additional usage charges apply when using an EBS-optimized
  25414. // instance.
  25415. //
  25416. // Default: false
  25417. EbsOptimized *bool `type:"boolean"`
  25418. // The IAM instance profile.
  25419. IamInstanceProfile *ScheduledInstancesIamInstanceProfile `type:"structure"`
  25420. // The ID of the Amazon Machine Image (AMI).
  25421. ImageId *string `type:"string" required:"true"`
  25422. // The instance type.
  25423. InstanceType *string `type:"string"`
  25424. // The ID of the kernel.
  25425. KernelId *string `type:"string"`
  25426. // The name of the key pair.
  25427. KeyName *string `type:"string"`
  25428. // Enable or disable monitoring for the instances.
  25429. Monitoring *ScheduledInstancesMonitoring `type:"structure"`
  25430. // One or more network interfaces.
  25431. NetworkInterfaces []*ScheduledInstancesNetworkInterface `locationName:"NetworkInterface" locationNameList:"NetworkInterface" type:"list"`
  25432. // The placement information.
  25433. Placement *ScheduledInstancesPlacement `type:"structure"`
  25434. // The ID of the RAM disk.
  25435. RamdiskId *string `type:"string"`
  25436. // The IDs of one or more security groups.
  25437. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"`
  25438. // The ID of the subnet in which to launch the instances.
  25439. SubnetId *string `type:"string"`
  25440. // The base64-encoded MIME user data.
  25441. UserData *string `type:"string"`
  25442. }
  25443. // String returns the string representation
  25444. func (s ScheduledInstancesLaunchSpecification) String() string {
  25445. return awsutil.Prettify(s)
  25446. }
  25447. // GoString returns the string representation
  25448. func (s ScheduledInstancesLaunchSpecification) GoString() string {
  25449. return s.String()
  25450. }
  25451. // Validate inspects the fields of the type to determine if they are valid.
  25452. func (s *ScheduledInstancesLaunchSpecification) Validate() error {
  25453. invalidParams := request.ErrInvalidParams{Context: "ScheduledInstancesLaunchSpecification"}
  25454. if s.ImageId == nil {
  25455. invalidParams.Add(request.NewErrParamRequired("ImageId"))
  25456. }
  25457. if invalidParams.Len() > 0 {
  25458. return invalidParams
  25459. }
  25460. return nil
  25461. }
  25462. // Describes whether monitoring is enabled for a Scheduled Instance.
  25463. type ScheduledInstancesMonitoring struct {
  25464. _ struct{} `type:"structure"`
  25465. // Indicates whether monitoring is enabled.
  25466. Enabled *bool `type:"boolean"`
  25467. }
  25468. // String returns the string representation
  25469. func (s ScheduledInstancesMonitoring) String() string {
  25470. return awsutil.Prettify(s)
  25471. }
  25472. // GoString returns the string representation
  25473. func (s ScheduledInstancesMonitoring) GoString() string {
  25474. return s.String()
  25475. }
  25476. // Describes a network interface for a Scheduled Instance.
  25477. type ScheduledInstancesNetworkInterface struct {
  25478. _ struct{} `type:"structure"`
  25479. // Indicates whether to assign a public IP address to instances launched in
  25480. // a VPC. The public IP address can only be assigned to a network interface
  25481. // for eth0, and can only be assigned to a new network interface, not an existing
  25482. // one. You cannot specify more than one network interface in the request. If
  25483. // launching into a default subnet, the default value is true.
  25484. AssociatePublicIpAddress *bool `type:"boolean"`
  25485. // Indicates whether to delete the interface when the instance is terminated.
  25486. DeleteOnTermination *bool `type:"boolean"`
  25487. // The description.
  25488. Description *string `type:"string"`
  25489. // The index of the device for the network interface attachment.
  25490. DeviceIndex *int64 `type:"integer"`
  25491. // The IDs of one or more security groups.
  25492. Groups []*string `locationName:"Group" locationNameList:"SecurityGroupId" type:"list"`
  25493. // The ID of the network interface.
  25494. NetworkInterfaceId *string `type:"string"`
  25495. // The IP address of the network interface within the subnet.
  25496. PrivateIpAddress *string `type:"string"`
  25497. // The private IP addresses.
  25498. PrivateIpAddressConfigs []*ScheduledInstancesPrivateIpAddressConfig `locationName:"PrivateIpAddressConfig" locationNameList:"PrivateIpAddressConfigSet" type:"list"`
  25499. // The number of secondary private IP addresses.
  25500. SecondaryPrivateIpAddressCount *int64 `type:"integer"`
  25501. // The ID of the subnet.
  25502. SubnetId *string `type:"string"`
  25503. }
  25504. // String returns the string representation
  25505. func (s ScheduledInstancesNetworkInterface) String() string {
  25506. return awsutil.Prettify(s)
  25507. }
  25508. // GoString returns the string representation
  25509. func (s ScheduledInstancesNetworkInterface) GoString() string {
  25510. return s.String()
  25511. }
  25512. // Describes the placement for a Scheduled Instance.
  25513. type ScheduledInstancesPlacement struct {
  25514. _ struct{} `type:"structure"`
  25515. // The Availability Zone.
  25516. AvailabilityZone *string `type:"string"`
  25517. // The name of the placement group.
  25518. GroupName *string `type:"string"`
  25519. }
  25520. // String returns the string representation
  25521. func (s ScheduledInstancesPlacement) String() string {
  25522. return awsutil.Prettify(s)
  25523. }
  25524. // GoString returns the string representation
  25525. func (s ScheduledInstancesPlacement) GoString() string {
  25526. return s.String()
  25527. }
  25528. // Describes a private IP address for a Scheduled Instance.
  25529. type ScheduledInstancesPrivateIpAddressConfig struct {
  25530. _ struct{} `type:"structure"`
  25531. // Indicates whether this is a primary IP address. Otherwise, this is a secondary
  25532. // IP address.
  25533. Primary *bool `type:"boolean"`
  25534. // The IP address.
  25535. PrivateIpAddress *string `type:"string"`
  25536. }
  25537. // String returns the string representation
  25538. func (s ScheduledInstancesPrivateIpAddressConfig) String() string {
  25539. return awsutil.Prettify(s)
  25540. }
  25541. // GoString returns the string representation
  25542. func (s ScheduledInstancesPrivateIpAddressConfig) GoString() string {
  25543. return s.String()
  25544. }
  25545. // Describes a security group
  25546. type SecurityGroup struct {
  25547. _ struct{} `type:"structure"`
  25548. // A description of the security group.
  25549. Description *string `locationName:"groupDescription" type:"string"`
  25550. // The ID of the security group.
  25551. GroupId *string `locationName:"groupId" type:"string"`
  25552. // The name of the security group.
  25553. GroupName *string `locationName:"groupName" type:"string"`
  25554. // One or more inbound rules associated with the security group.
  25555. IpPermissions []*IpPermission `locationName:"ipPermissions" locationNameList:"item" type:"list"`
  25556. // [EC2-VPC] One or more outbound rules associated with the security group.
  25557. IpPermissionsEgress []*IpPermission `locationName:"ipPermissionsEgress" locationNameList:"item" type:"list"`
  25558. // The AWS account ID of the owner of the security group.
  25559. OwnerId *string `locationName:"ownerId" type:"string"`
  25560. // Any tags assigned to the security group.
  25561. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  25562. // [EC2-VPC] The ID of the VPC for the security group.
  25563. VpcId *string `locationName:"vpcId" type:"string"`
  25564. }
  25565. // String returns the string representation
  25566. func (s SecurityGroup) String() string {
  25567. return awsutil.Prettify(s)
  25568. }
  25569. // GoString returns the string representation
  25570. func (s SecurityGroup) GoString() string {
  25571. return s.String()
  25572. }
  25573. // Describes a VPC with a security group that references your security group.
  25574. type SecurityGroupReference struct {
  25575. _ struct{} `type:"structure"`
  25576. // The ID of your security group.
  25577. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  25578. // The ID of the VPC with the referencing security group.
  25579. ReferencingVpcId *string `locationName:"referencingVpcId" type:"string" required:"true"`
  25580. // The ID of the VPC peering connection.
  25581. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  25582. }
  25583. // String returns the string representation
  25584. func (s SecurityGroupReference) String() string {
  25585. return awsutil.Prettify(s)
  25586. }
  25587. // GoString returns the string representation
  25588. func (s SecurityGroupReference) GoString() string {
  25589. return s.String()
  25590. }
  25591. // Describes the time period for a Scheduled Instance to start its first schedule.
  25592. // The time period must span less than one day.
  25593. type SlotDateTimeRangeRequest struct {
  25594. _ struct{} `type:"structure"`
  25595. // The earliest date and time, in UTC, for the Scheduled Instance to start.
  25596. EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  25597. // The latest date and time, in UTC, for the Scheduled Instance to start. This
  25598. // value must be later than or equal to the earliest date and at most three
  25599. // months in the future.
  25600. LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  25601. }
  25602. // String returns the string representation
  25603. func (s SlotDateTimeRangeRequest) String() string {
  25604. return awsutil.Prettify(s)
  25605. }
  25606. // GoString returns the string representation
  25607. func (s SlotDateTimeRangeRequest) GoString() string {
  25608. return s.String()
  25609. }
  25610. // Validate inspects the fields of the type to determine if they are valid.
  25611. func (s *SlotDateTimeRangeRequest) Validate() error {
  25612. invalidParams := request.ErrInvalidParams{Context: "SlotDateTimeRangeRequest"}
  25613. if s.EarliestTime == nil {
  25614. invalidParams.Add(request.NewErrParamRequired("EarliestTime"))
  25615. }
  25616. if s.LatestTime == nil {
  25617. invalidParams.Add(request.NewErrParamRequired("LatestTime"))
  25618. }
  25619. if invalidParams.Len() > 0 {
  25620. return invalidParams
  25621. }
  25622. return nil
  25623. }
  25624. // Describes the time period for a Scheduled Instance to start its first schedule.
  25625. type SlotStartTimeRangeRequest struct {
  25626. _ struct{} `type:"structure"`
  25627. // The earliest date and time, in UTC, for the Scheduled Instance to start.
  25628. EarliestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  25629. // The latest date and time, in UTC, for the Scheduled Instance to start.
  25630. LatestTime *time.Time `type:"timestamp" timestampFormat:"iso8601"`
  25631. }
  25632. // String returns the string representation
  25633. func (s SlotStartTimeRangeRequest) String() string {
  25634. return awsutil.Prettify(s)
  25635. }
  25636. // GoString returns the string representation
  25637. func (s SlotStartTimeRangeRequest) GoString() string {
  25638. return s.String()
  25639. }
  25640. // Describes a snapshot.
  25641. type Snapshot struct {
  25642. _ struct{} `type:"structure"`
  25643. // The data encryption key identifier for the snapshot. This value is a unique
  25644. // identifier that corresponds to the data encryption key that was used to encrypt
  25645. // the original volume or snapshot copy. Because data encryption keys are inherited
  25646. // by volumes created from snapshots, and vice versa, if snapshots share the
  25647. // same data encryption key identifier, then they belong to the same volume/snapshot
  25648. // lineage. This parameter is only returned by the DescribeSnapshots API operation.
  25649. DataEncryptionKeyId *string `locationName:"dataEncryptionKeyId" type:"string"`
  25650. // The description for the snapshot.
  25651. Description *string `locationName:"description" type:"string"`
  25652. // Indicates whether the snapshot is encrypted.
  25653. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  25654. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  25655. // key (CMK) that was used to protect the volume encryption key for the parent
  25656. // volume.
  25657. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  25658. // The AWS account alias (for example, amazon, self) or AWS account ID that
  25659. // owns the snapshot.
  25660. OwnerAlias *string `locationName:"ownerAlias" type:"string"`
  25661. // The AWS account ID of the EBS snapshot owner.
  25662. OwnerId *string `locationName:"ownerId" type:"string"`
  25663. // The progress of the snapshot, as a percentage.
  25664. Progress *string `locationName:"progress" type:"string"`
  25665. // The ID of the snapshot. Each snapshot receives a unique identifier when it
  25666. // is created.
  25667. SnapshotId *string `locationName:"snapshotId" type:"string"`
  25668. // The time stamp when the snapshot was initiated.
  25669. StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
  25670. // The snapshot state.
  25671. State *string `locationName:"status" type:"string" enum:"SnapshotState"`
  25672. // Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy
  25673. // operation fails (for example, if the proper AWS Key Management Service (AWS
  25674. // KMS) permissions are not obtained) this field displays error state details
  25675. // to help you diagnose why the error occurred. This parameter is only returned
  25676. // by the DescribeSnapshots API operation.
  25677. StateMessage *string `locationName:"statusMessage" type:"string"`
  25678. // Any tags assigned to the snapshot.
  25679. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  25680. // The ID of the volume that was used to create the snapshot. Snapshots created
  25681. // by the CopySnapshot action have an arbitrary volume ID that should not be
  25682. // used for any purpose.
  25683. VolumeId *string `locationName:"volumeId" type:"string"`
  25684. // The size of the volume, in GiB.
  25685. VolumeSize *int64 `locationName:"volumeSize" type:"integer"`
  25686. }
  25687. // String returns the string representation
  25688. func (s Snapshot) String() string {
  25689. return awsutil.Prettify(s)
  25690. }
  25691. // GoString returns the string representation
  25692. func (s Snapshot) GoString() string {
  25693. return s.String()
  25694. }
  25695. // Describes the snapshot created from the imported disk.
  25696. type SnapshotDetail struct {
  25697. _ struct{} `type:"structure"`
  25698. // A description for the snapshot.
  25699. Description *string `locationName:"description" type:"string"`
  25700. // The block device mapping for the snapshot.
  25701. DeviceName *string `locationName:"deviceName" type:"string"`
  25702. // The size of the disk in the snapshot, in GiB.
  25703. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`
  25704. // The format of the disk image from which the snapshot is created.
  25705. Format *string `locationName:"format" type:"string"`
  25706. // The percentage of progress for the task.
  25707. Progress *string `locationName:"progress" type:"string"`
  25708. // The snapshot ID of the disk being imported.
  25709. SnapshotId *string `locationName:"snapshotId" type:"string"`
  25710. // A brief status of the snapshot creation.
  25711. Status *string `locationName:"status" type:"string"`
  25712. // A detailed status message for the snapshot creation.
  25713. StatusMessage *string `locationName:"statusMessage" type:"string"`
  25714. // The URL used to access the disk image.
  25715. Url *string `locationName:"url" type:"string"`
  25716. // The S3 bucket for the disk image.
  25717. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
  25718. }
  25719. // String returns the string representation
  25720. func (s SnapshotDetail) String() string {
  25721. return awsutil.Prettify(s)
  25722. }
  25723. // GoString returns the string representation
  25724. func (s SnapshotDetail) GoString() string {
  25725. return s.String()
  25726. }
  25727. // The disk container object for the import snapshot request.
  25728. type SnapshotDiskContainer struct {
  25729. _ struct{} `type:"structure"`
  25730. // The description of the disk image being imported.
  25731. Description *string `type:"string"`
  25732. // The format of the disk image being imported.
  25733. //
  25734. // Valid values: RAW | VHD | VMDK | OVA
  25735. Format *string `type:"string"`
  25736. // The URL to the Amazon S3-based disk image being imported. It can either be
  25737. // a https URL (https://..) or an Amazon S3 URL (s3://..).
  25738. Url *string `type:"string"`
  25739. // The S3 bucket for the disk image.
  25740. UserBucket *UserBucket `type:"structure"`
  25741. }
  25742. // String returns the string representation
  25743. func (s SnapshotDiskContainer) String() string {
  25744. return awsutil.Prettify(s)
  25745. }
  25746. // GoString returns the string representation
  25747. func (s SnapshotDiskContainer) GoString() string {
  25748. return s.String()
  25749. }
  25750. // Details about the import snapshot task.
  25751. type SnapshotTaskDetail struct {
  25752. _ struct{} `type:"structure"`
  25753. // The description of the snapshot.
  25754. Description *string `locationName:"description" type:"string"`
  25755. // The size of the disk in the snapshot, in GiB.
  25756. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"`
  25757. // The format of the disk image from which the snapshot is created.
  25758. Format *string `locationName:"format" type:"string"`
  25759. // The percentage of completion for the import snapshot task.
  25760. Progress *string `locationName:"progress" type:"string"`
  25761. // The snapshot ID of the disk being imported.
  25762. SnapshotId *string `locationName:"snapshotId" type:"string"`
  25763. // A brief status for the import snapshot task.
  25764. Status *string `locationName:"status" type:"string"`
  25765. // A detailed status message for the import snapshot task.
  25766. StatusMessage *string `locationName:"statusMessage" type:"string"`
  25767. // The URL of the disk image from which the snapshot is created.
  25768. Url *string `locationName:"url" type:"string"`
  25769. // The S3 bucket for the disk image.
  25770. UserBucket *UserBucketDetails `locationName:"userBucket" type:"structure"`
  25771. }
  25772. // String returns the string representation
  25773. func (s SnapshotTaskDetail) String() string {
  25774. return awsutil.Prettify(s)
  25775. }
  25776. // GoString returns the string representation
  25777. func (s SnapshotTaskDetail) GoString() string {
  25778. return s.String()
  25779. }
  25780. // Describes the data feed for a Spot instance.
  25781. type SpotDatafeedSubscription struct {
  25782. _ struct{} `type:"structure"`
  25783. // The Amazon S3 bucket where the Spot instance data feed is located.
  25784. Bucket *string `locationName:"bucket" type:"string"`
  25785. // The fault codes for the Spot instance request, if any.
  25786. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
  25787. // The AWS account ID of the account.
  25788. OwnerId *string `locationName:"ownerId" type:"string"`
  25789. // The prefix that is prepended to data feed files.
  25790. Prefix *string `locationName:"prefix" type:"string"`
  25791. // The state of the Spot instance data feed subscription.
  25792. State *string `locationName:"state" type:"string" enum:"DatafeedSubscriptionState"`
  25793. }
  25794. // String returns the string representation
  25795. func (s SpotDatafeedSubscription) String() string {
  25796. return awsutil.Prettify(s)
  25797. }
  25798. // GoString returns the string representation
  25799. func (s SpotDatafeedSubscription) GoString() string {
  25800. return s.String()
  25801. }
  25802. // Describes the launch specification for one or more Spot instances.
  25803. type SpotFleetLaunchSpecification struct {
  25804. _ struct{} `type:"structure"`
  25805. // Deprecated.
  25806. AddressingType *string `locationName:"addressingType" type:"string"`
  25807. // One or more block device mapping entries.
  25808. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"`
  25809. // Indicates whether the instances are optimized for EBS I/O. This optimization
  25810. // provides dedicated throughput to Amazon EBS and an optimized configuration
  25811. // stack to provide optimal EBS I/O performance. This optimization isn't available
  25812. // with all instance types. Additional usage charges apply when using an EBS
  25813. // Optimized instance.
  25814. //
  25815. // Default: false
  25816. EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"`
  25817. // The IAM instance profile.
  25818. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"`
  25819. // The ID of the AMI.
  25820. ImageId *string `locationName:"imageId" type:"string"`
  25821. // The instance type.
  25822. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  25823. // The ID of the kernel.
  25824. KernelId *string `locationName:"kernelId" type:"string"`
  25825. // The name of the key pair.
  25826. KeyName *string `locationName:"keyName" type:"string"`
  25827. // Enable or disable monitoring for the instances.
  25828. Monitoring *SpotFleetMonitoring `locationName:"monitoring" type:"structure"`
  25829. // One or more network interfaces.
  25830. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterfaceSet" locationNameList:"item" type:"list"`
  25831. // The placement information.
  25832. Placement *SpotPlacement `locationName:"placement" type:"structure"`
  25833. // The ID of the RAM disk.
  25834. RamdiskId *string `locationName:"ramdiskId" type:"string"`
  25835. // One or more security groups. When requesting instances in a VPC, you must
  25836. // specify the IDs of the security groups. When requesting instances in EC2-Classic,
  25837. // you can specify the names or the IDs of the security groups.
  25838. SecurityGroups []*GroupIdentifier `locationName:"groupSet" locationNameList:"item" type:"list"`
  25839. // The bid price per unit hour for the specified instance type. If this value
  25840. // is not specified, the default is the Spot bid price specified for the fleet.
  25841. // To determine the bid price per unit hour, divide the Spot bid price by the
  25842. // value of WeightedCapacity.
  25843. SpotPrice *string `locationName:"spotPrice" type:"string"`
  25844. // The ID of the subnet in which to launch the instances. To specify multiple
  25845. // subnets, separate them using commas; for example, "subnet-a61dafcf, subnet-65ea5f08".
  25846. SubnetId *string `locationName:"subnetId" type:"string"`
  25847. // The user data to make available to the instances. If you are using an AWS
  25848. // SDK or command line tool, Base64-encoding is performed for you, and you can
  25849. // load the text from a file. Otherwise, you must provide Base64-encoded text.
  25850. UserData *string `locationName:"userData" type:"string"`
  25851. // The number of units provided by the specified instance type. These are the
  25852. // same units that you chose to set the target capacity in terms (instances
  25853. // or a performance characteristic such as vCPUs, memory, or I/O).
  25854. //
  25855. // If the target capacity divided by this value is not a whole number, we round
  25856. // the number of instances to the next whole number. If this value is not specified,
  25857. // the default is 1.
  25858. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"`
  25859. }
  25860. // String returns the string representation
  25861. func (s SpotFleetLaunchSpecification) String() string {
  25862. return awsutil.Prettify(s)
  25863. }
  25864. // GoString returns the string representation
  25865. func (s SpotFleetLaunchSpecification) GoString() string {
  25866. return s.String()
  25867. }
  25868. // Validate inspects the fields of the type to determine if they are valid.
  25869. func (s *SpotFleetLaunchSpecification) Validate() error {
  25870. invalidParams := request.ErrInvalidParams{Context: "SpotFleetLaunchSpecification"}
  25871. if s.NetworkInterfaces != nil {
  25872. for i, v := range s.NetworkInterfaces {
  25873. if v == nil {
  25874. continue
  25875. }
  25876. if err := v.Validate(); err != nil {
  25877. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NetworkInterfaces", i), err.(request.ErrInvalidParams))
  25878. }
  25879. }
  25880. }
  25881. if invalidParams.Len() > 0 {
  25882. return invalidParams
  25883. }
  25884. return nil
  25885. }
  25886. // Describes whether monitoring is enabled.
  25887. type SpotFleetMonitoring struct {
  25888. _ struct{} `type:"structure"`
  25889. // Enables monitoring for the instance.
  25890. //
  25891. // Default: false
  25892. Enabled *bool `locationName:"enabled" type:"boolean"`
  25893. }
  25894. // String returns the string representation
  25895. func (s SpotFleetMonitoring) String() string {
  25896. return awsutil.Prettify(s)
  25897. }
  25898. // GoString returns the string representation
  25899. func (s SpotFleetMonitoring) GoString() string {
  25900. return s.String()
  25901. }
  25902. // Describes a Spot fleet request.
  25903. type SpotFleetRequestConfig struct {
  25904. _ struct{} `type:"structure"`
  25905. // The creation date and time of the request.
  25906. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  25907. // Information about the configuration of the Spot fleet request.
  25908. SpotFleetRequestConfig *SpotFleetRequestConfigData `locationName:"spotFleetRequestConfig" type:"structure" required:"true"`
  25909. // The ID of the Spot fleet request.
  25910. SpotFleetRequestId *string `locationName:"spotFleetRequestId" type:"string" required:"true"`
  25911. // The state of the Spot fleet request.
  25912. SpotFleetRequestState *string `locationName:"spotFleetRequestState" type:"string" required:"true" enum:"BatchState"`
  25913. }
  25914. // String returns the string representation
  25915. func (s SpotFleetRequestConfig) String() string {
  25916. return awsutil.Prettify(s)
  25917. }
  25918. // GoString returns the string representation
  25919. func (s SpotFleetRequestConfig) GoString() string {
  25920. return s.String()
  25921. }
  25922. // Describes the configuration of a Spot fleet request.
  25923. type SpotFleetRequestConfigData struct {
  25924. _ struct{} `type:"structure"`
  25925. // Indicates how to allocate the target capacity across the Spot pools specified
  25926. // by the Spot fleet request. The default is lowestPrice.
  25927. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"AllocationStrategy"`
  25928. // A unique, case-sensitive identifier you provide to ensure idempotency of
  25929. // your listings. This helps avoid duplicate listings. For more information,
  25930. // see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).
  25931. ClientToken *string `locationName:"clientToken" type:"string"`
  25932. // Indicates whether running Spot instances should be terminated if the target
  25933. // capacity of the Spot fleet request is decreased below the current size of
  25934. // the Spot fleet.
  25935. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"`
  25936. // The number of units fulfilled by this request compared to the set target
  25937. // capacity.
  25938. FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"`
  25939. // Grants the Spot fleet permission to terminate Spot instances on your behalf
  25940. // when you cancel its Spot fleet request using CancelSpotFleetRequests or when
  25941. // the Spot fleet request expires, if you set terminateInstancesWithExpiration.
  25942. IamFleetRole *string `locationName:"iamFleetRole" type:"string" required:"true"`
  25943. // Information about the launch specifications for the Spot fleet request.
  25944. LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" min:"1" type:"list" required:"true"`
  25945. // The bid price per unit hour.
  25946. SpotPrice *string `locationName:"spotPrice" type:"string" required:"true"`
  25947. // The number of units to request. You can choose to set the target capacity
  25948. // in terms of instances or a performance characteristic that is important to
  25949. // your application workload, such as vCPUs, memory, or I/O.
  25950. TargetCapacity *int64 `locationName:"targetCapacity" type:"integer" required:"true"`
  25951. // Indicates whether running Spot instances should be terminated when the Spot
  25952. // fleet request expires.
  25953. TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"`
  25954. // The type of request. Indicates whether the fleet will only request the target
  25955. // capacity or also attempt to maintain it. When you request a certain target
  25956. // capacity, the fleet will only place the required bids. It will not attempt
  25957. // to replenish Spot instances if capacity is diminished, nor will it submit
  25958. // bids in alternative Spot pools if capacity is not available. When you want
  25959. // to maintain a certain target capacity, fleet will place the required bids
  25960. // to meet this target capacity. It will also automatically replenish any interrupted
  25961. // instances. Default: maintain.
  25962. Type *string `locationName:"type" type:"string" enum:"FleetType"`
  25963. // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  25964. // The default is to start fulfilling the request immediately.
  25965. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  25966. // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  25967. // At this point, no new Spot instance requests are placed or enabled to fulfill
  25968. // the request.
  25969. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  25970. }
  25971. // String returns the string representation
  25972. func (s SpotFleetRequestConfigData) String() string {
  25973. return awsutil.Prettify(s)
  25974. }
  25975. // GoString returns the string representation
  25976. func (s SpotFleetRequestConfigData) GoString() string {
  25977. return s.String()
  25978. }
  25979. // Validate inspects the fields of the type to determine if they are valid.
  25980. func (s *SpotFleetRequestConfigData) Validate() error {
  25981. invalidParams := request.ErrInvalidParams{Context: "SpotFleetRequestConfigData"}
  25982. if s.IamFleetRole == nil {
  25983. invalidParams.Add(request.NewErrParamRequired("IamFleetRole"))
  25984. }
  25985. if s.LaunchSpecifications == nil {
  25986. invalidParams.Add(request.NewErrParamRequired("LaunchSpecifications"))
  25987. }
  25988. if s.LaunchSpecifications != nil && len(s.LaunchSpecifications) < 1 {
  25989. invalidParams.Add(request.NewErrParamMinLen("LaunchSpecifications", 1))
  25990. }
  25991. if s.SpotPrice == nil {
  25992. invalidParams.Add(request.NewErrParamRequired("SpotPrice"))
  25993. }
  25994. if s.TargetCapacity == nil {
  25995. invalidParams.Add(request.NewErrParamRequired("TargetCapacity"))
  25996. }
  25997. if s.LaunchSpecifications != nil {
  25998. for i, v := range s.LaunchSpecifications {
  25999. if v == nil {
  26000. continue
  26001. }
  26002. if err := v.Validate(); err != nil {
  26003. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LaunchSpecifications", i), err.(request.ErrInvalidParams))
  26004. }
  26005. }
  26006. }
  26007. if invalidParams.Len() > 0 {
  26008. return invalidParams
  26009. }
  26010. return nil
  26011. }
  26012. // Describes a Spot instance request.
  26013. type SpotInstanceRequest struct {
  26014. _ struct{} `type:"structure"`
  26015. // If you specified a duration and your Spot instance request was fulfilled,
  26016. // this is the fixed hourly price in effect for the Spot instance while it runs.
  26017. ActualBlockHourlyPrice *string `locationName:"actualBlockHourlyPrice" type:"string"`
  26018. // The Availability Zone group. If you specify the same Availability Zone group
  26019. // for all Spot instance requests, all Spot instances are launched in the same
  26020. // Availability Zone.
  26021. AvailabilityZoneGroup *string `locationName:"availabilityZoneGroup" type:"string"`
  26022. // The duration for the Spot instance, in minutes.
  26023. BlockDurationMinutes *int64 `locationName:"blockDurationMinutes" type:"integer"`
  26024. // The date and time when the Spot instance request was created, in UTC format
  26025. // (for example, YYYY-MM-DDTHH:MM:SSZ).
  26026. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  26027. // The fault codes for the Spot instance request, if any.
  26028. Fault *SpotInstanceStateFault `locationName:"fault" type:"structure"`
  26029. // The instance ID, if an instance has been launched to fulfill the Spot instance
  26030. // request.
  26031. InstanceId *string `locationName:"instanceId" type:"string"`
  26032. // The instance launch group. Launch groups are Spot instances that launch together
  26033. // and terminate together.
  26034. LaunchGroup *string `locationName:"launchGroup" type:"string"`
  26035. // Additional information for launching instances.
  26036. LaunchSpecification *LaunchSpecification `locationName:"launchSpecification" type:"structure"`
  26037. // The Availability Zone in which the bid is launched.
  26038. LaunchedAvailabilityZone *string `locationName:"launchedAvailabilityZone" type:"string"`
  26039. // The product description associated with the Spot instance.
  26040. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  26041. // The ID of the Spot instance request.
  26042. SpotInstanceRequestId *string `locationName:"spotInstanceRequestId" type:"string"`
  26043. // The maximum hourly price (bid) for the Spot instance launched to fulfill
  26044. // the request.
  26045. SpotPrice *string `locationName:"spotPrice" type:"string"`
  26046. // The state of the Spot instance request. Spot bid status information can help
  26047. // you track your Spot instance requests. For more information, see Spot Bid
  26048. // Status (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html)
  26049. // in the Amazon Elastic Compute Cloud User Guide.
  26050. State *string `locationName:"state" type:"string" enum:"SpotInstanceState"`
  26051. // The status code and status message describing the Spot instance request.
  26052. Status *SpotInstanceStatus `locationName:"status" type:"structure"`
  26053. // Any tags assigned to the resource.
  26054. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  26055. // The Spot instance request type.
  26056. Type *string `locationName:"type" type:"string" enum:"SpotInstanceType"`
  26057. // The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  26058. // The request becomes active at this date and time.
  26059. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp" timestampFormat:"iso8601"`
  26060. // The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  26061. // If this is a one-time request, it remains active until all instances launch,
  26062. // the request is canceled, or this date is reached. If the request is persistent,
  26063. // it remains active until it is canceled or this date is reached.
  26064. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp" timestampFormat:"iso8601"`
  26065. }
  26066. // String returns the string representation
  26067. func (s SpotInstanceRequest) String() string {
  26068. return awsutil.Prettify(s)
  26069. }
  26070. // GoString returns the string representation
  26071. func (s SpotInstanceRequest) GoString() string {
  26072. return s.String()
  26073. }
  26074. // Describes a Spot instance state change.
  26075. type SpotInstanceStateFault struct {
  26076. _ struct{} `type:"structure"`
  26077. // The reason code for the Spot instance state change.
  26078. Code *string `locationName:"code" type:"string"`
  26079. // The message for the Spot instance state change.
  26080. Message *string `locationName:"message" type:"string"`
  26081. }
  26082. // String returns the string representation
  26083. func (s SpotInstanceStateFault) String() string {
  26084. return awsutil.Prettify(s)
  26085. }
  26086. // GoString returns the string representation
  26087. func (s SpotInstanceStateFault) GoString() string {
  26088. return s.String()
  26089. }
  26090. // Describes the status of a Spot instance request.
  26091. type SpotInstanceStatus struct {
  26092. _ struct{} `type:"structure"`
  26093. // The status code. For a list of status codes, see Spot Bid Status Codes (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-bid-status.html#spot-instance-bid-status-understand)
  26094. // in the Amazon Elastic Compute Cloud User Guide.
  26095. Code *string `locationName:"code" type:"string"`
  26096. // The description for the status code.
  26097. Message *string `locationName:"message" type:"string"`
  26098. // The date and time of the most recent status update, in UTC format (for example,
  26099. // YYYY-MM-DDTHH:MM:SSZ).
  26100. UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" timestampFormat:"iso8601"`
  26101. }
  26102. // String returns the string representation
  26103. func (s SpotInstanceStatus) String() string {
  26104. return awsutil.Prettify(s)
  26105. }
  26106. // GoString returns the string representation
  26107. func (s SpotInstanceStatus) GoString() string {
  26108. return s.String()
  26109. }
  26110. // Describes Spot instance placement.
  26111. type SpotPlacement struct {
  26112. _ struct{} `type:"structure"`
  26113. // The Availability Zone.
  26114. //
  26115. // [Spot fleet only] To specify multiple Availability Zones, separate them
  26116. // using commas; for example, "us-west-2a, us-west-2b".
  26117. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  26118. // The name of the placement group (for cluster instances).
  26119. GroupName *string `locationName:"groupName" type:"string"`
  26120. }
  26121. // String returns the string representation
  26122. func (s SpotPlacement) String() string {
  26123. return awsutil.Prettify(s)
  26124. }
  26125. // GoString returns the string representation
  26126. func (s SpotPlacement) GoString() string {
  26127. return s.String()
  26128. }
  26129. // Describes the maximum hourly price (bid) for any Spot instance launched to
  26130. // fulfill the request.
  26131. type SpotPrice struct {
  26132. _ struct{} `type:"structure"`
  26133. // The Availability Zone.
  26134. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  26135. // The instance type.
  26136. InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"`
  26137. // A general description of the AMI.
  26138. ProductDescription *string `locationName:"productDescription" type:"string" enum:"RIProductDescription"`
  26139. // The maximum price (bid) that you are willing to pay for a Spot instance.
  26140. SpotPrice *string `locationName:"spotPrice" type:"string"`
  26141. // The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
  26142. Timestamp *time.Time `locationName:"timestamp" type:"timestamp" timestampFormat:"iso8601"`
  26143. }
  26144. // String returns the string representation
  26145. func (s SpotPrice) String() string {
  26146. return awsutil.Prettify(s)
  26147. }
  26148. // GoString returns the string representation
  26149. func (s SpotPrice) GoString() string {
  26150. return s.String()
  26151. }
  26152. // Describes a stale rule in a security group.
  26153. type StaleIpPermission struct {
  26154. _ struct{} `type:"structure"`
  26155. // The start of the port range for the TCP and UDP protocols, or an ICMP type
  26156. // number. A value of -1 indicates all ICMP types.
  26157. FromPort *int64 `locationName:"fromPort" type:"integer"`
  26158. // The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers)
  26159. // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml).
  26160. IpProtocol *string `locationName:"ipProtocol" type:"string"`
  26161. // One or more IP ranges. Not applicable for stale security group rules.
  26162. IpRanges []*string `locationName:"ipRanges" locationNameList:"item" type:"list"`
  26163. // One or more prefix list IDs for an AWS service. Not applicable for stale
  26164. // security group rules.
  26165. PrefixListIds []*string `locationName:"prefixListIds" locationNameList:"item" type:"list"`
  26166. // The end of the port range for the TCP and UDP protocols, or an ICMP type
  26167. // number. A value of -1 indicates all ICMP types.
  26168. ToPort *int64 `locationName:"toPort" type:"integer"`
  26169. // One or more security group pairs. Returns the ID of the referenced security
  26170. // group and VPC, and the ID and status of the VPC peering connection.
  26171. UserIdGroupPairs []*UserIdGroupPair `locationName:"groups" locationNameList:"item" type:"list"`
  26172. }
  26173. // String returns the string representation
  26174. func (s StaleIpPermission) String() string {
  26175. return awsutil.Prettify(s)
  26176. }
  26177. // GoString returns the string representation
  26178. func (s StaleIpPermission) GoString() string {
  26179. return s.String()
  26180. }
  26181. // Describes a stale security group (a security group that contains stale rules).
  26182. type StaleSecurityGroup struct {
  26183. _ struct{} `type:"structure"`
  26184. // The description of the security group.
  26185. Description *string `locationName:"description" type:"string"`
  26186. // The ID of the security group.
  26187. GroupId *string `locationName:"groupId" type:"string" required:"true"`
  26188. // The name of the security group.
  26189. GroupName *string `locationName:"groupName" type:"string"`
  26190. // Information about the stale inbound rules in the security group.
  26191. StaleIpPermissions []*StaleIpPermission `locationName:"staleIpPermissions" locationNameList:"item" type:"list"`
  26192. // Information about the stale outbound rules in the security group.
  26193. StaleIpPermissionsEgress []*StaleIpPermission `locationName:"staleIpPermissionsEgress" locationNameList:"item" type:"list"`
  26194. // The ID of the VPC for the security group.
  26195. VpcId *string `locationName:"vpcId" type:"string"`
  26196. }
  26197. // String returns the string representation
  26198. func (s StaleSecurityGroup) String() string {
  26199. return awsutil.Prettify(s)
  26200. }
  26201. // GoString returns the string representation
  26202. func (s StaleSecurityGroup) GoString() string {
  26203. return s.String()
  26204. }
  26205. // Contains the parameters for StartInstances.
  26206. type StartInstancesInput struct {
  26207. _ struct{} `type:"structure"`
  26208. // Reserved.
  26209. AdditionalInfo *string `locationName:"additionalInfo" type:"string"`
  26210. // Checks whether you have the required permissions for the action, without
  26211. // actually making the request, and provides an error response. If you have
  26212. // the required permissions, the error response is DryRunOperation. Otherwise,
  26213. // it is UnauthorizedOperation.
  26214. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26215. // One or more instance IDs.
  26216. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  26217. }
  26218. // String returns the string representation
  26219. func (s StartInstancesInput) String() string {
  26220. return awsutil.Prettify(s)
  26221. }
  26222. // GoString returns the string representation
  26223. func (s StartInstancesInput) GoString() string {
  26224. return s.String()
  26225. }
  26226. // Validate inspects the fields of the type to determine if they are valid.
  26227. func (s *StartInstancesInput) Validate() error {
  26228. invalidParams := request.ErrInvalidParams{Context: "StartInstancesInput"}
  26229. if s.InstanceIds == nil {
  26230. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  26231. }
  26232. if invalidParams.Len() > 0 {
  26233. return invalidParams
  26234. }
  26235. return nil
  26236. }
  26237. // Contains the output of StartInstances.
  26238. type StartInstancesOutput struct {
  26239. _ struct{} `type:"structure"`
  26240. // Information about one or more started instances.
  26241. StartingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  26242. }
  26243. // String returns the string representation
  26244. func (s StartInstancesOutput) String() string {
  26245. return awsutil.Prettify(s)
  26246. }
  26247. // GoString returns the string representation
  26248. func (s StartInstancesOutput) GoString() string {
  26249. return s.String()
  26250. }
  26251. // Describes a state change.
  26252. type StateReason struct {
  26253. _ struct{} `type:"structure"`
  26254. // The reason code for the state change.
  26255. Code *string `locationName:"code" type:"string"`
  26256. // The message for the state change.
  26257. //
  26258. // Server.SpotInstanceTermination: A Spot instance was terminated due to
  26259. // an increase in the market price.
  26260. //
  26261. // Server.InternalError: An internal error occurred during instance launch,
  26262. // resulting in termination.
  26263. //
  26264. // Server.InsufficientInstanceCapacity: There was insufficient instance
  26265. // capacity to satisfy the launch request.
  26266. //
  26267. // Client.InternalError: A client error caused the instance to terminate
  26268. // on launch.
  26269. //
  26270. // Client.InstanceInitiatedShutdown: The instance was shut down using the
  26271. // shutdown -h command from the instance.
  26272. //
  26273. // Client.UserInitiatedShutdown: The instance was shut down using the Amazon
  26274. // EC2 API.
  26275. //
  26276. // Client.VolumeLimitExceeded: The limit on the number of EBS volumes or
  26277. // total storage was exceeded. Decrease usage or request an increase in your
  26278. // limits.
  26279. //
  26280. // Client.InvalidSnapshot.NotFound: The specified snapshot was not found.
  26281. Message *string `locationName:"message" type:"string"`
  26282. }
  26283. // String returns the string representation
  26284. func (s StateReason) String() string {
  26285. return awsutil.Prettify(s)
  26286. }
  26287. // GoString returns the string representation
  26288. func (s StateReason) GoString() string {
  26289. return s.String()
  26290. }
  26291. // Contains the parameters for StopInstances.
  26292. type StopInstancesInput struct {
  26293. _ struct{} `type:"structure"`
  26294. // Checks whether you have the required permissions for the action, without
  26295. // actually making the request, and provides an error response. If you have
  26296. // the required permissions, the error response is DryRunOperation. Otherwise,
  26297. // it is UnauthorizedOperation.
  26298. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26299. // Forces the instances to stop. The instances do not have an opportunity to
  26300. // flush file system caches or file system metadata. If you use this option,
  26301. // you must perform file system check and repair procedures. This option is
  26302. // not recommended for Windows instances.
  26303. //
  26304. // Default: false
  26305. Force *bool `locationName:"force" type:"boolean"`
  26306. // One or more instance IDs.
  26307. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  26308. }
  26309. // String returns the string representation
  26310. func (s StopInstancesInput) String() string {
  26311. return awsutil.Prettify(s)
  26312. }
  26313. // GoString returns the string representation
  26314. func (s StopInstancesInput) GoString() string {
  26315. return s.String()
  26316. }
  26317. // Validate inspects the fields of the type to determine if they are valid.
  26318. func (s *StopInstancesInput) Validate() error {
  26319. invalidParams := request.ErrInvalidParams{Context: "StopInstancesInput"}
  26320. if s.InstanceIds == nil {
  26321. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  26322. }
  26323. if invalidParams.Len() > 0 {
  26324. return invalidParams
  26325. }
  26326. return nil
  26327. }
  26328. // Contains the output of StopInstances.
  26329. type StopInstancesOutput struct {
  26330. _ struct{} `type:"structure"`
  26331. // Information about one or more stopped instances.
  26332. StoppingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  26333. }
  26334. // String returns the string representation
  26335. func (s StopInstancesOutput) String() string {
  26336. return awsutil.Prettify(s)
  26337. }
  26338. // GoString returns the string representation
  26339. func (s StopInstancesOutput) GoString() string {
  26340. return s.String()
  26341. }
  26342. // Describes the storage location for an instance store-backed AMI.
  26343. type Storage struct {
  26344. _ struct{} `type:"structure"`
  26345. // An Amazon S3 storage location.
  26346. S3 *S3Storage `type:"structure"`
  26347. }
  26348. // String returns the string representation
  26349. func (s Storage) String() string {
  26350. return awsutil.Prettify(s)
  26351. }
  26352. // GoString returns the string representation
  26353. func (s Storage) GoString() string {
  26354. return s.String()
  26355. }
  26356. // Describes a subnet.
  26357. type Subnet struct {
  26358. _ struct{} `type:"structure"`
  26359. // The Availability Zone of the subnet.
  26360. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  26361. // The number of unused IP addresses in the subnet. Note that the IP addresses
  26362. // for any stopped instances are considered unavailable.
  26363. AvailableIpAddressCount *int64 `locationName:"availableIpAddressCount" type:"integer"`
  26364. // The CIDR block assigned to the subnet.
  26365. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  26366. // Indicates whether this is the default subnet for the Availability Zone.
  26367. DefaultForAz *bool `locationName:"defaultForAz" type:"boolean"`
  26368. // Indicates whether instances launched in this subnet receive a public IP address.
  26369. MapPublicIpOnLaunch *bool `locationName:"mapPublicIpOnLaunch" type:"boolean"`
  26370. // The current state of the subnet.
  26371. State *string `locationName:"state" type:"string" enum:"SubnetState"`
  26372. // The ID of the subnet.
  26373. SubnetId *string `locationName:"subnetId" type:"string"`
  26374. // Any tags assigned to the subnet.
  26375. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  26376. // The ID of the VPC the subnet is in.
  26377. VpcId *string `locationName:"vpcId" type:"string"`
  26378. }
  26379. // String returns the string representation
  26380. func (s Subnet) String() string {
  26381. return awsutil.Prettify(s)
  26382. }
  26383. // GoString returns the string representation
  26384. func (s Subnet) GoString() string {
  26385. return s.String()
  26386. }
  26387. // Describes a tag.
  26388. type Tag struct {
  26389. _ struct{} `type:"structure"`
  26390. // The key of the tag.
  26391. //
  26392. // Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode
  26393. // characters. May not begin with aws:
  26394. Key *string `locationName:"key" type:"string"`
  26395. // The value of the tag.
  26396. //
  26397. // Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode
  26398. // characters.
  26399. Value *string `locationName:"value" type:"string"`
  26400. }
  26401. // String returns the string representation
  26402. func (s Tag) String() string {
  26403. return awsutil.Prettify(s)
  26404. }
  26405. // GoString returns the string representation
  26406. func (s Tag) GoString() string {
  26407. return s.String()
  26408. }
  26409. // Describes a tag.
  26410. type TagDescription struct {
  26411. _ struct{} `type:"structure"`
  26412. // The tag key.
  26413. Key *string `locationName:"key" type:"string"`
  26414. // The ID of the resource. For example, ami-1a2b3c4d.
  26415. ResourceId *string `locationName:"resourceId" type:"string"`
  26416. // The resource type.
  26417. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
  26418. // The tag value.
  26419. Value *string `locationName:"value" type:"string"`
  26420. }
  26421. // String returns the string representation
  26422. func (s TagDescription) String() string {
  26423. return awsutil.Prettify(s)
  26424. }
  26425. // GoString returns the string representation
  26426. func (s TagDescription) GoString() string {
  26427. return s.String()
  26428. }
  26429. // Contains the parameters for TerminateInstances.
  26430. type TerminateInstancesInput struct {
  26431. _ struct{} `type:"structure"`
  26432. // Checks whether you have the required permissions for the action, without
  26433. // actually making the request, and provides an error response. If you have
  26434. // the required permissions, the error response is DryRunOperation. Otherwise,
  26435. // it is UnauthorizedOperation.
  26436. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26437. // One or more instance IDs.
  26438. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  26439. }
  26440. // String returns the string representation
  26441. func (s TerminateInstancesInput) String() string {
  26442. return awsutil.Prettify(s)
  26443. }
  26444. // GoString returns the string representation
  26445. func (s TerminateInstancesInput) GoString() string {
  26446. return s.String()
  26447. }
  26448. // Validate inspects the fields of the type to determine if they are valid.
  26449. func (s *TerminateInstancesInput) Validate() error {
  26450. invalidParams := request.ErrInvalidParams{Context: "TerminateInstancesInput"}
  26451. if s.InstanceIds == nil {
  26452. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  26453. }
  26454. if invalidParams.Len() > 0 {
  26455. return invalidParams
  26456. }
  26457. return nil
  26458. }
  26459. // Contains the output of TerminateInstances.
  26460. type TerminateInstancesOutput struct {
  26461. _ struct{} `type:"structure"`
  26462. // Information about one or more terminated instances.
  26463. TerminatingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"`
  26464. }
  26465. // String returns the string representation
  26466. func (s TerminateInstancesOutput) String() string {
  26467. return awsutil.Prettify(s)
  26468. }
  26469. // GoString returns the string representation
  26470. func (s TerminateInstancesOutput) GoString() string {
  26471. return s.String()
  26472. }
  26473. // Contains the parameters for UnassignPrivateIpAddresses.
  26474. type UnassignPrivateIpAddressesInput struct {
  26475. _ struct{} `type:"structure"`
  26476. // The ID of the network interface.
  26477. NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string" required:"true"`
  26478. // The secondary private IP addresses to unassign from the network interface.
  26479. // You can specify this option multiple times to unassign more than one IP address.
  26480. PrivateIpAddresses []*string `locationName:"privateIpAddress" locationNameList:"PrivateIpAddress" type:"list" required:"true"`
  26481. }
  26482. // String returns the string representation
  26483. func (s UnassignPrivateIpAddressesInput) String() string {
  26484. return awsutil.Prettify(s)
  26485. }
  26486. // GoString returns the string representation
  26487. func (s UnassignPrivateIpAddressesInput) GoString() string {
  26488. return s.String()
  26489. }
  26490. // Validate inspects the fields of the type to determine if they are valid.
  26491. func (s *UnassignPrivateIpAddressesInput) Validate() error {
  26492. invalidParams := request.ErrInvalidParams{Context: "UnassignPrivateIpAddressesInput"}
  26493. if s.NetworkInterfaceId == nil {
  26494. invalidParams.Add(request.NewErrParamRequired("NetworkInterfaceId"))
  26495. }
  26496. if s.PrivateIpAddresses == nil {
  26497. invalidParams.Add(request.NewErrParamRequired("PrivateIpAddresses"))
  26498. }
  26499. if invalidParams.Len() > 0 {
  26500. return invalidParams
  26501. }
  26502. return nil
  26503. }
  26504. type UnassignPrivateIpAddressesOutput struct {
  26505. _ struct{} `type:"structure"`
  26506. }
  26507. // String returns the string representation
  26508. func (s UnassignPrivateIpAddressesOutput) String() string {
  26509. return awsutil.Prettify(s)
  26510. }
  26511. // GoString returns the string representation
  26512. func (s UnassignPrivateIpAddressesOutput) GoString() string {
  26513. return s.String()
  26514. }
  26515. // Contains the parameters for UnmonitorInstances.
  26516. type UnmonitorInstancesInput struct {
  26517. _ struct{} `type:"structure"`
  26518. // Checks whether you have the required permissions for the action, without
  26519. // actually making the request, and provides an error response. If you have
  26520. // the required permissions, the error response is DryRunOperation. Otherwise,
  26521. // it is UnauthorizedOperation.
  26522. DryRun *bool `locationName:"dryRun" type:"boolean"`
  26523. // One or more instance IDs.
  26524. InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"`
  26525. }
  26526. // String returns the string representation
  26527. func (s UnmonitorInstancesInput) String() string {
  26528. return awsutil.Prettify(s)
  26529. }
  26530. // GoString returns the string representation
  26531. func (s UnmonitorInstancesInput) GoString() string {
  26532. return s.String()
  26533. }
  26534. // Validate inspects the fields of the type to determine if they are valid.
  26535. func (s *UnmonitorInstancesInput) Validate() error {
  26536. invalidParams := request.ErrInvalidParams{Context: "UnmonitorInstancesInput"}
  26537. if s.InstanceIds == nil {
  26538. invalidParams.Add(request.NewErrParamRequired("InstanceIds"))
  26539. }
  26540. if invalidParams.Len() > 0 {
  26541. return invalidParams
  26542. }
  26543. return nil
  26544. }
  26545. // Contains the output of UnmonitorInstances.
  26546. type UnmonitorInstancesOutput struct {
  26547. _ struct{} `type:"structure"`
  26548. // Monitoring information for one or more instances.
  26549. InstanceMonitorings []*InstanceMonitoring `locationName:"instancesSet" locationNameList:"item" type:"list"`
  26550. }
  26551. // String returns the string representation
  26552. func (s UnmonitorInstancesOutput) String() string {
  26553. return awsutil.Prettify(s)
  26554. }
  26555. // GoString returns the string representation
  26556. func (s UnmonitorInstancesOutput) GoString() string {
  26557. return s.String()
  26558. }
  26559. // Information about items that were not successfully processed in a batch call.
  26560. type UnsuccessfulItem struct {
  26561. _ struct{} `type:"structure"`
  26562. // Information about the error.
  26563. Error *UnsuccessfulItemError `locationName:"error" type:"structure" required:"true"`
  26564. // The ID of the resource.
  26565. ResourceId *string `locationName:"resourceId" type:"string"`
  26566. }
  26567. // String returns the string representation
  26568. func (s UnsuccessfulItem) String() string {
  26569. return awsutil.Prettify(s)
  26570. }
  26571. // GoString returns the string representation
  26572. func (s UnsuccessfulItem) GoString() string {
  26573. return s.String()
  26574. }
  26575. // Information about the error that occurred. For more information about errors,
  26576. // see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html).
  26577. type UnsuccessfulItemError struct {
  26578. _ struct{} `type:"structure"`
  26579. // The error code.
  26580. Code *string `locationName:"code" type:"string" required:"true"`
  26581. // The error message accompanying the error code.
  26582. Message *string `locationName:"message" type:"string" required:"true"`
  26583. }
  26584. // String returns the string representation
  26585. func (s UnsuccessfulItemError) String() string {
  26586. return awsutil.Prettify(s)
  26587. }
  26588. // GoString returns the string representation
  26589. func (s UnsuccessfulItemError) GoString() string {
  26590. return s.String()
  26591. }
  26592. // Describes the S3 bucket for the disk image.
  26593. type UserBucket struct {
  26594. _ struct{} `type:"structure"`
  26595. // The name of the S3 bucket where the disk image is located.
  26596. S3Bucket *string `type:"string"`
  26597. // The file name of the disk image.
  26598. S3Key *string `type:"string"`
  26599. }
  26600. // String returns the string representation
  26601. func (s UserBucket) String() string {
  26602. return awsutil.Prettify(s)
  26603. }
  26604. // GoString returns the string representation
  26605. func (s UserBucket) GoString() string {
  26606. return s.String()
  26607. }
  26608. // Describes the S3 bucket for the disk image.
  26609. type UserBucketDetails struct {
  26610. _ struct{} `type:"structure"`
  26611. // The S3 bucket from which the disk image was created.
  26612. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  26613. // The file name of the disk image.
  26614. S3Key *string `locationName:"s3Key" type:"string"`
  26615. }
  26616. // String returns the string representation
  26617. func (s UserBucketDetails) String() string {
  26618. return awsutil.Prettify(s)
  26619. }
  26620. // GoString returns the string representation
  26621. func (s UserBucketDetails) GoString() string {
  26622. return s.String()
  26623. }
  26624. // Describes the user data for an instance.
  26625. type UserData struct {
  26626. _ struct{} `type:"structure"`
  26627. // The user data. If you are using an AWS SDK or command line tool, Base64-encoding
  26628. // is performed for you, and you can load the text from a file. Otherwise, you
  26629. // must provide Base64-encoded text.
  26630. Data *string `locationName:"data" type:"string"`
  26631. }
  26632. // String returns the string representation
  26633. func (s UserData) String() string {
  26634. return awsutil.Prettify(s)
  26635. }
  26636. // GoString returns the string representation
  26637. func (s UserData) GoString() string {
  26638. return s.String()
  26639. }
  26640. // Describes a security group and AWS account ID pair.
  26641. type UserIdGroupPair struct {
  26642. _ struct{} `type:"structure"`
  26643. // The ID of the security group.
  26644. GroupId *string `locationName:"groupId" type:"string"`
  26645. // The name of the security group. In a request, use this parameter for a security
  26646. // group in EC2-Classic or a default VPC only. For a security group in a nondefault
  26647. // VPC, use the security group ID.
  26648. GroupName *string `locationName:"groupName" type:"string"`
  26649. // The status of a VPC peering connection, if applicable.
  26650. PeeringStatus *string `locationName:"peeringStatus" type:"string"`
  26651. // The ID of an AWS account. For a referenced security group in another VPC,
  26652. // the account ID of the referenced security group is returned.
  26653. //
  26654. // [EC2-Classic] Required when adding or removing rules that reference a security
  26655. // group in another AWS account.
  26656. UserId *string `locationName:"userId" type:"string"`
  26657. // The ID of the VPC for the referenced security group, if applicable.
  26658. VpcId *string `locationName:"vpcId" type:"string"`
  26659. // The ID of the VPC peering connection, if applicable.
  26660. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  26661. }
  26662. // String returns the string representation
  26663. func (s UserIdGroupPair) String() string {
  26664. return awsutil.Prettify(s)
  26665. }
  26666. // GoString returns the string representation
  26667. func (s UserIdGroupPair) GoString() string {
  26668. return s.String()
  26669. }
  26670. // Describes telemetry for a VPN tunnel.
  26671. type VgwTelemetry struct {
  26672. _ struct{} `type:"structure"`
  26673. // The number of accepted routes.
  26674. AcceptedRouteCount *int64 `locationName:"acceptedRouteCount" type:"integer"`
  26675. // The date and time of the last change in status.
  26676. LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp" timestampFormat:"iso8601"`
  26677. // The Internet-routable IP address of the virtual private gateway's outside
  26678. // interface.
  26679. OutsideIpAddress *string `locationName:"outsideIpAddress" type:"string"`
  26680. // The status of the VPN tunnel.
  26681. Status *string `locationName:"status" type:"string" enum:"TelemetryStatus"`
  26682. // If an error occurs, a description of the error.
  26683. StatusMessage *string `locationName:"statusMessage" type:"string"`
  26684. }
  26685. // String returns the string representation
  26686. func (s VgwTelemetry) String() string {
  26687. return awsutil.Prettify(s)
  26688. }
  26689. // GoString returns the string representation
  26690. func (s VgwTelemetry) GoString() string {
  26691. return s.String()
  26692. }
  26693. // Describes a volume.
  26694. type Volume struct {
  26695. _ struct{} `type:"structure"`
  26696. // Information about the volume attachments.
  26697. Attachments []*VolumeAttachment `locationName:"attachmentSet" locationNameList:"item" type:"list"`
  26698. // The Availability Zone for the volume.
  26699. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  26700. // The time stamp when volume creation was initiated.
  26701. CreateTime *time.Time `locationName:"createTime" type:"timestamp" timestampFormat:"iso8601"`
  26702. // Indicates whether the volume will be encrypted.
  26703. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  26704. // The number of I/O operations per second (IOPS) that the volume supports.
  26705. // For Provisioned IOPS SSD volumes, this represents the number of IOPS that
  26706. // are provisioned for the volume. For General Purpose SSD volumes, this represents
  26707. // the baseline performance of the volume and the rate at which the volume accumulates
  26708. // I/O credits for bursting. For more information on General Purpose SSD baseline
  26709. // performance, I/O credits, and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html)
  26710. // in the Amazon Elastic Compute Cloud User Guide.
  26711. //
  26712. // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for
  26713. // gp2 volumes.
  26714. //
  26715. // Condition: This parameter is required for requests to create io1 volumes;
  26716. // it is not used in requests to create gp2, st1, sc1, or standard volumes.
  26717. Iops *int64 `locationName:"iops" type:"integer"`
  26718. // The full ARN of the AWS Key Management Service (AWS KMS) customer master
  26719. // key (CMK) that was used to protect the volume encryption key for the volume.
  26720. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  26721. // The size of the volume, in GiBs.
  26722. Size *int64 `locationName:"size" type:"integer"`
  26723. // The snapshot from which the volume was created, if applicable.
  26724. SnapshotId *string `locationName:"snapshotId" type:"string"`
  26725. // The volume state.
  26726. State *string `locationName:"status" type:"string" enum:"VolumeState"`
  26727. // Any tags assigned to the volume.
  26728. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  26729. // The ID of the volume.
  26730. VolumeId *string `locationName:"volumeId" type:"string"`
  26731. // The volume type. This can be gp2 for General Purpose SSD, io1 for Provisioned
  26732. // IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard
  26733. // for Magnetic volumes.
  26734. VolumeType *string `locationName:"volumeType" type:"string" enum:"VolumeType"`
  26735. }
  26736. // String returns the string representation
  26737. func (s Volume) String() string {
  26738. return awsutil.Prettify(s)
  26739. }
  26740. // GoString returns the string representation
  26741. func (s Volume) GoString() string {
  26742. return s.String()
  26743. }
  26744. // Describes volume attachment details.
  26745. type VolumeAttachment struct {
  26746. _ struct{} `type:"structure"`
  26747. // The time stamp when the attachment initiated.
  26748. AttachTime *time.Time `locationName:"attachTime" type:"timestamp" timestampFormat:"iso8601"`
  26749. // Indicates whether the EBS volume is deleted on instance termination.
  26750. DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
  26751. // The device name.
  26752. Device *string `locationName:"device" type:"string"`
  26753. // The ID of the instance.
  26754. InstanceId *string `locationName:"instanceId" type:"string"`
  26755. // The attachment state of the volume.
  26756. State *string `locationName:"status" type:"string" enum:"VolumeAttachmentState"`
  26757. // The ID of the volume.
  26758. VolumeId *string `locationName:"volumeId" type:"string"`
  26759. }
  26760. // String returns the string representation
  26761. func (s VolumeAttachment) String() string {
  26762. return awsutil.Prettify(s)
  26763. }
  26764. // GoString returns the string representation
  26765. func (s VolumeAttachment) GoString() string {
  26766. return s.String()
  26767. }
  26768. // Describes an EBS volume.
  26769. type VolumeDetail struct {
  26770. _ struct{} `type:"structure"`
  26771. // The size of the volume, in GiB.
  26772. Size *int64 `locationName:"size" type:"long" required:"true"`
  26773. }
  26774. // String returns the string representation
  26775. func (s VolumeDetail) String() string {
  26776. return awsutil.Prettify(s)
  26777. }
  26778. // GoString returns the string representation
  26779. func (s VolumeDetail) GoString() string {
  26780. return s.String()
  26781. }
  26782. // Validate inspects the fields of the type to determine if they are valid.
  26783. func (s *VolumeDetail) Validate() error {
  26784. invalidParams := request.ErrInvalidParams{Context: "VolumeDetail"}
  26785. if s.Size == nil {
  26786. invalidParams.Add(request.NewErrParamRequired("Size"))
  26787. }
  26788. if invalidParams.Len() > 0 {
  26789. return invalidParams
  26790. }
  26791. return nil
  26792. }
  26793. // Describes a volume status operation code.
  26794. type VolumeStatusAction struct {
  26795. _ struct{} `type:"structure"`
  26796. // The code identifying the operation, for example, enable-volume-io.
  26797. Code *string `locationName:"code" type:"string"`
  26798. // A description of the operation.
  26799. Description *string `locationName:"description" type:"string"`
  26800. // The ID of the event associated with this operation.
  26801. EventId *string `locationName:"eventId" type:"string"`
  26802. // The event type associated with this operation.
  26803. EventType *string `locationName:"eventType" type:"string"`
  26804. }
  26805. // String returns the string representation
  26806. func (s VolumeStatusAction) String() string {
  26807. return awsutil.Prettify(s)
  26808. }
  26809. // GoString returns the string representation
  26810. func (s VolumeStatusAction) GoString() string {
  26811. return s.String()
  26812. }
  26813. // Describes a volume status.
  26814. type VolumeStatusDetails struct {
  26815. _ struct{} `type:"structure"`
  26816. // The name of the volume status.
  26817. Name *string `locationName:"name" type:"string" enum:"VolumeStatusName"`
  26818. // The intended status of the volume status.
  26819. Status *string `locationName:"status" type:"string"`
  26820. }
  26821. // String returns the string representation
  26822. func (s VolumeStatusDetails) String() string {
  26823. return awsutil.Prettify(s)
  26824. }
  26825. // GoString returns the string representation
  26826. func (s VolumeStatusDetails) GoString() string {
  26827. return s.String()
  26828. }
  26829. // Describes a volume status event.
  26830. type VolumeStatusEvent struct {
  26831. _ struct{} `type:"structure"`
  26832. // A description of the event.
  26833. Description *string `locationName:"description" type:"string"`
  26834. // The ID of this event.
  26835. EventId *string `locationName:"eventId" type:"string"`
  26836. // The type of this event.
  26837. EventType *string `locationName:"eventType" type:"string"`
  26838. // The latest end time of the event.
  26839. NotAfter *time.Time `locationName:"notAfter" type:"timestamp" timestampFormat:"iso8601"`
  26840. // The earliest start time of the event.
  26841. NotBefore *time.Time `locationName:"notBefore" type:"timestamp" timestampFormat:"iso8601"`
  26842. }
  26843. // String returns the string representation
  26844. func (s VolumeStatusEvent) String() string {
  26845. return awsutil.Prettify(s)
  26846. }
  26847. // GoString returns the string representation
  26848. func (s VolumeStatusEvent) GoString() string {
  26849. return s.String()
  26850. }
  26851. // Describes the status of a volume.
  26852. type VolumeStatusInfo struct {
  26853. _ struct{} `type:"structure"`
  26854. // The details of the volume status.
  26855. Details []*VolumeStatusDetails `locationName:"details" locationNameList:"item" type:"list"`
  26856. // The status of the volume.
  26857. Status *string `locationName:"status" type:"string" enum:"VolumeStatusInfoStatus"`
  26858. }
  26859. // String returns the string representation
  26860. func (s VolumeStatusInfo) String() string {
  26861. return awsutil.Prettify(s)
  26862. }
  26863. // GoString returns the string representation
  26864. func (s VolumeStatusInfo) GoString() string {
  26865. return s.String()
  26866. }
  26867. // Describes the volume status.
  26868. type VolumeStatusItem struct {
  26869. _ struct{} `type:"structure"`
  26870. // The details of the operation.
  26871. Actions []*VolumeStatusAction `locationName:"actionsSet" locationNameList:"item" type:"list"`
  26872. // The Availability Zone of the volume.
  26873. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  26874. // A list of events associated with the volume.
  26875. Events []*VolumeStatusEvent `locationName:"eventsSet" locationNameList:"item" type:"list"`
  26876. // The volume ID.
  26877. VolumeId *string `locationName:"volumeId" type:"string"`
  26878. // The volume status.
  26879. VolumeStatus *VolumeStatusInfo `locationName:"volumeStatus" type:"structure"`
  26880. }
  26881. // String returns the string representation
  26882. func (s VolumeStatusItem) String() string {
  26883. return awsutil.Prettify(s)
  26884. }
  26885. // GoString returns the string representation
  26886. func (s VolumeStatusItem) GoString() string {
  26887. return s.String()
  26888. }
  26889. // Describes a VPC.
  26890. type Vpc struct {
  26891. _ struct{} `type:"structure"`
  26892. // The CIDR block for the VPC.
  26893. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  26894. // The ID of the set of DHCP options you've associated with the VPC (or default
  26895. // if the default options are associated with the VPC).
  26896. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"`
  26897. // The allowed tenancy of instances launched into the VPC.
  26898. InstanceTenancy *string `locationName:"instanceTenancy" type:"string" enum:"Tenancy"`
  26899. // Indicates whether the VPC is the default VPC.
  26900. IsDefault *bool `locationName:"isDefault" type:"boolean"`
  26901. // The current state of the VPC.
  26902. State *string `locationName:"state" type:"string" enum:"VpcState"`
  26903. // Any tags assigned to the VPC.
  26904. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  26905. // The ID of the VPC.
  26906. VpcId *string `locationName:"vpcId" type:"string"`
  26907. }
  26908. // String returns the string representation
  26909. func (s Vpc) String() string {
  26910. return awsutil.Prettify(s)
  26911. }
  26912. // GoString returns the string representation
  26913. func (s Vpc) GoString() string {
  26914. return s.String()
  26915. }
  26916. // Describes an attachment between a virtual private gateway and a VPC.
  26917. type VpcAttachment struct {
  26918. _ struct{} `type:"structure"`
  26919. // The current state of the attachment.
  26920. State *string `locationName:"state" type:"string" enum:"AttachmentStatus"`
  26921. // The ID of the VPC.
  26922. VpcId *string `locationName:"vpcId" type:"string"`
  26923. }
  26924. // String returns the string representation
  26925. func (s VpcAttachment) String() string {
  26926. return awsutil.Prettify(s)
  26927. }
  26928. // GoString returns the string representation
  26929. func (s VpcAttachment) GoString() string {
  26930. return s.String()
  26931. }
  26932. // Describes whether a VPC is enabled for ClassicLink.
  26933. type VpcClassicLink struct {
  26934. _ struct{} `type:"structure"`
  26935. // Indicates whether the VPC is enabled for ClassicLink.
  26936. ClassicLinkEnabled *bool `locationName:"classicLinkEnabled" type:"boolean"`
  26937. // Any tags assigned to the VPC.
  26938. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  26939. // The ID of the VPC.
  26940. VpcId *string `locationName:"vpcId" type:"string"`
  26941. }
  26942. // String returns the string representation
  26943. func (s VpcClassicLink) String() string {
  26944. return awsutil.Prettify(s)
  26945. }
  26946. // GoString returns the string representation
  26947. func (s VpcClassicLink) GoString() string {
  26948. return s.String()
  26949. }
  26950. // Describes a VPC endpoint.
  26951. type VpcEndpoint struct {
  26952. _ struct{} `type:"structure"`
  26953. // The date and time the VPC endpoint was created.
  26954. CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp" timestampFormat:"iso8601"`
  26955. // The policy document associated with the endpoint.
  26956. PolicyDocument *string `locationName:"policyDocument" type:"string"`
  26957. // One or more route tables associated with the endpoint.
  26958. RouteTableIds []*string `locationName:"routeTableIdSet" locationNameList:"item" type:"list"`
  26959. // The name of the AWS service to which the endpoint is associated.
  26960. ServiceName *string `locationName:"serviceName" type:"string"`
  26961. // The state of the VPC endpoint.
  26962. State *string `locationName:"state" type:"string" enum:"State"`
  26963. // The ID of the VPC endpoint.
  26964. VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"`
  26965. // The ID of the VPC to which the endpoint is associated.
  26966. VpcId *string `locationName:"vpcId" type:"string"`
  26967. }
  26968. // String returns the string representation
  26969. func (s VpcEndpoint) String() string {
  26970. return awsutil.Prettify(s)
  26971. }
  26972. // GoString returns the string representation
  26973. func (s VpcEndpoint) GoString() string {
  26974. return s.String()
  26975. }
  26976. // Describes a VPC peering connection.
  26977. type VpcPeeringConnection struct {
  26978. _ struct{} `type:"structure"`
  26979. // Information about the accepter VPC. CIDR block information is not returned
  26980. // when creating a VPC peering connection, or when describing a VPC peering
  26981. // connection that's in the initiating-request or pending-acceptance state.
  26982. AccepterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"accepterVpcInfo" type:"structure"`
  26983. // The time that an unaccepted VPC peering connection will expire.
  26984. ExpirationTime *time.Time `locationName:"expirationTime" type:"timestamp" timestampFormat:"iso8601"`
  26985. // Information about the requester VPC.
  26986. RequesterVpcInfo *VpcPeeringConnectionVpcInfo `locationName:"requesterVpcInfo" type:"structure"`
  26987. // The status of the VPC peering connection.
  26988. Status *VpcPeeringConnectionStateReason `locationName:"status" type:"structure"`
  26989. // Any tags assigned to the resource.
  26990. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  26991. // The ID of the VPC peering connection.
  26992. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"`
  26993. }
  26994. // String returns the string representation
  26995. func (s VpcPeeringConnection) String() string {
  26996. return awsutil.Prettify(s)
  26997. }
  26998. // GoString returns the string representation
  26999. func (s VpcPeeringConnection) GoString() string {
  27000. return s.String()
  27001. }
  27002. // Describes the VPC peering connection options.
  27003. type VpcPeeringConnectionOptionsDescription struct {
  27004. _ struct{} `type:"structure"`
  27005. // Indicates whether a local VPC can resolve public DNS hostnames to private
  27006. // IP addresses when queried from instances in a peer VPC.
  27007. AllowDnsResolutionFromRemoteVpc *bool `locationName:"allowDnsResolutionFromRemoteVpc" type:"boolean"`
  27008. // Indicates whether a local ClassicLink connection can communicate with the
  27009. // peer VPC over the VPC peering connection.
  27010. AllowEgressFromLocalClassicLinkToRemoteVpc *bool `locationName:"allowEgressFromLocalClassicLinkToRemoteVpc" type:"boolean"`
  27011. // Indicates whether a local VPC can communicate with a ClassicLink connection
  27012. // in the peer VPC over the VPC peering connection.
  27013. AllowEgressFromLocalVpcToRemoteClassicLink *bool `locationName:"allowEgressFromLocalVpcToRemoteClassicLink" type:"boolean"`
  27014. }
  27015. // String returns the string representation
  27016. func (s VpcPeeringConnectionOptionsDescription) String() string {
  27017. return awsutil.Prettify(s)
  27018. }
  27019. // GoString returns the string representation
  27020. func (s VpcPeeringConnectionOptionsDescription) GoString() string {
  27021. return s.String()
  27022. }
  27023. // Describes the status of a VPC peering connection.
  27024. type VpcPeeringConnectionStateReason struct {
  27025. _ struct{} `type:"structure"`
  27026. // The status of the VPC peering connection.
  27027. Code *string `locationName:"code" type:"string" enum:"VpcPeeringConnectionStateReasonCode"`
  27028. // A message that provides more information about the status, if applicable.
  27029. Message *string `locationName:"message" type:"string"`
  27030. }
  27031. // String returns the string representation
  27032. func (s VpcPeeringConnectionStateReason) String() string {
  27033. return awsutil.Prettify(s)
  27034. }
  27035. // GoString returns the string representation
  27036. func (s VpcPeeringConnectionStateReason) GoString() string {
  27037. return s.String()
  27038. }
  27039. // Describes a VPC in a VPC peering connection.
  27040. type VpcPeeringConnectionVpcInfo struct {
  27041. _ struct{} `type:"structure"`
  27042. // The CIDR block for the VPC.
  27043. CidrBlock *string `locationName:"cidrBlock" type:"string"`
  27044. // The AWS account ID of the VPC owner.
  27045. OwnerId *string `locationName:"ownerId" type:"string"`
  27046. // Information about the VPC peering connection options for the accepter or
  27047. // requester VPC.
  27048. PeeringOptions *VpcPeeringConnectionOptionsDescription `locationName:"peeringOptions" type:"structure"`
  27049. // The ID of the VPC.
  27050. VpcId *string `locationName:"vpcId" type:"string"`
  27051. }
  27052. // String returns the string representation
  27053. func (s VpcPeeringConnectionVpcInfo) String() string {
  27054. return awsutil.Prettify(s)
  27055. }
  27056. // GoString returns the string representation
  27057. func (s VpcPeeringConnectionVpcInfo) GoString() string {
  27058. return s.String()
  27059. }
  27060. // Describes a VPN connection.
  27061. type VpnConnection struct {
  27062. _ struct{} `type:"structure"`
  27063. // The configuration information for the VPN connection's customer gateway (in
  27064. // the native XML format). This element is always present in the CreateVpnConnection
  27065. // response; however, it's present in the DescribeVpnConnections response only
  27066. // if the VPN connection is in the pending or available state.
  27067. CustomerGatewayConfiguration *string `locationName:"customerGatewayConfiguration" type:"string"`
  27068. // The ID of the customer gateway at your end of the VPN connection.
  27069. CustomerGatewayId *string `locationName:"customerGatewayId" type:"string"`
  27070. // The VPN connection options.
  27071. Options *VpnConnectionOptions `locationName:"options" type:"structure"`
  27072. // The static routes associated with the VPN connection.
  27073. Routes []*VpnStaticRoute `locationName:"routes" locationNameList:"item" type:"list"`
  27074. // The current state of the VPN connection.
  27075. State *string `locationName:"state" type:"string" enum:"VpnState"`
  27076. // Any tags assigned to the VPN connection.
  27077. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  27078. // The type of VPN connection.
  27079. Type *string `locationName:"type" type:"string" enum:"GatewayType"`
  27080. // Information about the VPN tunnel.
  27081. VgwTelemetry []*VgwTelemetry `locationName:"vgwTelemetry" locationNameList:"item" type:"list"`
  27082. // The ID of the VPN connection.
  27083. VpnConnectionId *string `locationName:"vpnConnectionId" type:"string"`
  27084. // The ID of the virtual private gateway at the AWS side of the VPN connection.
  27085. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
  27086. }
  27087. // String returns the string representation
  27088. func (s VpnConnection) String() string {
  27089. return awsutil.Prettify(s)
  27090. }
  27091. // GoString returns the string representation
  27092. func (s VpnConnection) GoString() string {
  27093. return s.String()
  27094. }
  27095. // Describes VPN connection options.
  27096. type VpnConnectionOptions struct {
  27097. _ struct{} `type:"structure"`
  27098. // Indicates whether the VPN connection uses static routes only. Static routes
  27099. // must be used for devices that don't support BGP.
  27100. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`
  27101. }
  27102. // String returns the string representation
  27103. func (s VpnConnectionOptions) String() string {
  27104. return awsutil.Prettify(s)
  27105. }
  27106. // GoString returns the string representation
  27107. func (s VpnConnectionOptions) GoString() string {
  27108. return s.String()
  27109. }
  27110. // Describes VPN connection options.
  27111. type VpnConnectionOptionsSpecification struct {
  27112. _ struct{} `type:"structure"`
  27113. // Indicates whether the VPN connection uses static routes only. Static routes
  27114. // must be used for devices that don't support BGP.
  27115. StaticRoutesOnly *bool `locationName:"staticRoutesOnly" type:"boolean"`
  27116. }
  27117. // String returns the string representation
  27118. func (s VpnConnectionOptionsSpecification) String() string {
  27119. return awsutil.Prettify(s)
  27120. }
  27121. // GoString returns the string representation
  27122. func (s VpnConnectionOptionsSpecification) GoString() string {
  27123. return s.String()
  27124. }
  27125. // Describes a virtual private gateway.
  27126. type VpnGateway struct {
  27127. _ struct{} `type:"structure"`
  27128. // The Availability Zone where the virtual private gateway was created, if applicable.
  27129. // This field may be empty or not returned.
  27130. AvailabilityZone *string `locationName:"availabilityZone" type:"string"`
  27131. // The current state of the virtual private gateway.
  27132. State *string `locationName:"state" type:"string" enum:"VpnState"`
  27133. // Any tags assigned to the virtual private gateway.
  27134. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"`
  27135. // The type of VPN connection the virtual private gateway supports.
  27136. Type *string `locationName:"type" type:"string" enum:"GatewayType"`
  27137. // Any VPCs attached to the virtual private gateway.
  27138. VpcAttachments []*VpcAttachment `locationName:"attachments" locationNameList:"item" type:"list"`
  27139. // The ID of the virtual private gateway.
  27140. VpnGatewayId *string `locationName:"vpnGatewayId" type:"string"`
  27141. }
  27142. // String returns the string representation
  27143. func (s VpnGateway) String() string {
  27144. return awsutil.Prettify(s)
  27145. }
  27146. // GoString returns the string representation
  27147. func (s VpnGateway) GoString() string {
  27148. return s.String()
  27149. }
  27150. // Describes a static route for a VPN connection.
  27151. type VpnStaticRoute struct {
  27152. _ struct{} `type:"structure"`
  27153. // The CIDR block associated with the local subnet of the customer data center.
  27154. DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"`
  27155. // Indicates how the routes were provided.
  27156. Source *string `locationName:"source" type:"string" enum:"VpnStaticRouteSource"`
  27157. // The current state of the static route.
  27158. State *string `locationName:"state" type:"string" enum:"VpnState"`
  27159. }
  27160. // String returns the string representation
  27161. func (s VpnStaticRoute) String() string {
  27162. return awsutil.Prettify(s)
  27163. }
  27164. // GoString returns the string representation
  27165. func (s VpnStaticRoute) GoString() string {
  27166. return s.String()
  27167. }
  27168. const (
  27169. // @enum AccountAttributeName
  27170. AccountAttributeNameSupportedPlatforms = "supported-platforms"
  27171. // @enum AccountAttributeName
  27172. AccountAttributeNameDefaultVpc = "default-vpc"
  27173. )
  27174. const (
  27175. // @enum Affinity
  27176. AffinityDefault = "default"
  27177. // @enum Affinity
  27178. AffinityHost = "host"
  27179. )
  27180. const (
  27181. // @enum AllocationState
  27182. AllocationStateAvailable = "available"
  27183. // @enum AllocationState
  27184. AllocationStateUnderAssessment = "under-assessment"
  27185. // @enum AllocationState
  27186. AllocationStatePermanentFailure = "permanent-failure"
  27187. // @enum AllocationState
  27188. AllocationStateReleased = "released"
  27189. // @enum AllocationState
  27190. AllocationStateReleasedPermanentFailure = "released-permanent-failure"
  27191. )
  27192. const (
  27193. // @enum AllocationStrategy
  27194. AllocationStrategyLowestPrice = "lowestPrice"
  27195. // @enum AllocationStrategy
  27196. AllocationStrategyDiversified = "diversified"
  27197. )
  27198. const (
  27199. // @enum ArchitectureValues
  27200. ArchitectureValuesI386 = "i386"
  27201. // @enum ArchitectureValues
  27202. ArchitectureValuesX8664 = "x86_64"
  27203. )
  27204. const (
  27205. // @enum AttachmentStatus
  27206. AttachmentStatusAttaching = "attaching"
  27207. // @enum AttachmentStatus
  27208. AttachmentStatusAttached = "attached"
  27209. // @enum AttachmentStatus
  27210. AttachmentStatusDetaching = "detaching"
  27211. // @enum AttachmentStatus
  27212. AttachmentStatusDetached = "detached"
  27213. )
  27214. const (
  27215. // @enum AutoPlacement
  27216. AutoPlacementOn = "on"
  27217. // @enum AutoPlacement
  27218. AutoPlacementOff = "off"
  27219. )
  27220. const (
  27221. // @enum AvailabilityZoneState
  27222. AvailabilityZoneStateAvailable = "available"
  27223. // @enum AvailabilityZoneState
  27224. AvailabilityZoneStateInformation = "information"
  27225. // @enum AvailabilityZoneState
  27226. AvailabilityZoneStateImpaired = "impaired"
  27227. // @enum AvailabilityZoneState
  27228. AvailabilityZoneStateUnavailable = "unavailable"
  27229. )
  27230. const (
  27231. // @enum BatchState
  27232. BatchStateSubmitted = "submitted"
  27233. // @enum BatchState
  27234. BatchStateActive = "active"
  27235. // @enum BatchState
  27236. BatchStateCancelled = "cancelled"
  27237. // @enum BatchState
  27238. BatchStateFailed = "failed"
  27239. // @enum BatchState
  27240. BatchStateCancelledRunning = "cancelled_running"
  27241. // @enum BatchState
  27242. BatchStateCancelledTerminating = "cancelled_terminating"
  27243. // @enum BatchState
  27244. BatchStateModifying = "modifying"
  27245. )
  27246. const (
  27247. // @enum BundleTaskState
  27248. BundleTaskStatePending = "pending"
  27249. // @enum BundleTaskState
  27250. BundleTaskStateWaitingForShutdown = "waiting-for-shutdown"
  27251. // @enum BundleTaskState
  27252. BundleTaskStateBundling = "bundling"
  27253. // @enum BundleTaskState
  27254. BundleTaskStateStoring = "storing"
  27255. // @enum BundleTaskState
  27256. BundleTaskStateCancelling = "cancelling"
  27257. // @enum BundleTaskState
  27258. BundleTaskStateComplete = "complete"
  27259. // @enum BundleTaskState
  27260. BundleTaskStateFailed = "failed"
  27261. )
  27262. const (
  27263. // @enum CancelBatchErrorCode
  27264. CancelBatchErrorCodeFleetRequestIdDoesNotExist = "fleetRequestIdDoesNotExist"
  27265. // @enum CancelBatchErrorCode
  27266. CancelBatchErrorCodeFleetRequestIdMalformed = "fleetRequestIdMalformed"
  27267. // @enum CancelBatchErrorCode
  27268. CancelBatchErrorCodeFleetRequestNotInCancellableState = "fleetRequestNotInCancellableState"
  27269. // @enum CancelBatchErrorCode
  27270. CancelBatchErrorCodeUnexpectedError = "unexpectedError"
  27271. )
  27272. const (
  27273. // @enum CancelSpotInstanceRequestState
  27274. CancelSpotInstanceRequestStateActive = "active"
  27275. // @enum CancelSpotInstanceRequestState
  27276. CancelSpotInstanceRequestStateOpen = "open"
  27277. // @enum CancelSpotInstanceRequestState
  27278. CancelSpotInstanceRequestStateClosed = "closed"
  27279. // @enum CancelSpotInstanceRequestState
  27280. CancelSpotInstanceRequestStateCancelled = "cancelled"
  27281. // @enum CancelSpotInstanceRequestState
  27282. CancelSpotInstanceRequestStateCompleted = "completed"
  27283. )
  27284. const (
  27285. // @enum ContainerFormat
  27286. ContainerFormatOva = "ova"
  27287. )
  27288. const (
  27289. // @enum ConversionTaskState
  27290. ConversionTaskStateActive = "active"
  27291. // @enum ConversionTaskState
  27292. ConversionTaskStateCancelling = "cancelling"
  27293. // @enum ConversionTaskState
  27294. ConversionTaskStateCancelled = "cancelled"
  27295. // @enum ConversionTaskState
  27296. ConversionTaskStateCompleted = "completed"
  27297. )
  27298. const (
  27299. // @enum CurrencyCodeValues
  27300. CurrencyCodeValuesUsd = "USD"
  27301. )
  27302. const (
  27303. // @enum DatafeedSubscriptionState
  27304. DatafeedSubscriptionStateActive = "Active"
  27305. // @enum DatafeedSubscriptionState
  27306. DatafeedSubscriptionStateInactive = "Inactive"
  27307. )
  27308. const (
  27309. // @enum DeviceType
  27310. DeviceTypeEbs = "ebs"
  27311. // @enum DeviceType
  27312. DeviceTypeInstanceStore = "instance-store"
  27313. )
  27314. const (
  27315. // @enum DiskImageFormat
  27316. DiskImageFormatVmdk = "VMDK"
  27317. // @enum DiskImageFormat
  27318. DiskImageFormatRaw = "RAW"
  27319. // @enum DiskImageFormat
  27320. DiskImageFormatVhd = "VHD"
  27321. )
  27322. const (
  27323. // @enum DomainType
  27324. DomainTypeVpc = "vpc"
  27325. // @enum DomainType
  27326. DomainTypeStandard = "standard"
  27327. )
  27328. const (
  27329. // @enum EventCode
  27330. EventCodeInstanceReboot = "instance-reboot"
  27331. // @enum EventCode
  27332. EventCodeSystemReboot = "system-reboot"
  27333. // @enum EventCode
  27334. EventCodeSystemMaintenance = "system-maintenance"
  27335. // @enum EventCode
  27336. EventCodeInstanceRetirement = "instance-retirement"
  27337. // @enum EventCode
  27338. EventCodeInstanceStop = "instance-stop"
  27339. )
  27340. const (
  27341. // @enum EventType
  27342. EventTypeInstanceChange = "instanceChange"
  27343. // @enum EventType
  27344. EventTypeFleetRequestChange = "fleetRequestChange"
  27345. // @enum EventType
  27346. EventTypeError = "error"
  27347. )
  27348. const (
  27349. // @enum ExcessCapacityTerminationPolicy
  27350. ExcessCapacityTerminationPolicyNoTermination = "noTermination"
  27351. // @enum ExcessCapacityTerminationPolicy
  27352. ExcessCapacityTerminationPolicyDefault = "default"
  27353. )
  27354. const (
  27355. // @enum ExportEnvironment
  27356. ExportEnvironmentCitrix = "citrix"
  27357. // @enum ExportEnvironment
  27358. ExportEnvironmentVmware = "vmware"
  27359. // @enum ExportEnvironment
  27360. ExportEnvironmentMicrosoft = "microsoft"
  27361. )
  27362. const (
  27363. // @enum ExportTaskState
  27364. ExportTaskStateActive = "active"
  27365. // @enum ExportTaskState
  27366. ExportTaskStateCancelling = "cancelling"
  27367. // @enum ExportTaskState
  27368. ExportTaskStateCancelled = "cancelled"
  27369. // @enum ExportTaskState
  27370. ExportTaskStateCompleted = "completed"
  27371. )
  27372. const (
  27373. // @enum FleetType
  27374. FleetTypeRequest = "request"
  27375. // @enum FleetType
  27376. FleetTypeMaintain = "maintain"
  27377. )
  27378. const (
  27379. // @enum FlowLogsResourceType
  27380. FlowLogsResourceTypeVpc = "VPC"
  27381. // @enum FlowLogsResourceType
  27382. FlowLogsResourceTypeSubnet = "Subnet"
  27383. // @enum FlowLogsResourceType
  27384. FlowLogsResourceTypeNetworkInterface = "NetworkInterface"
  27385. )
  27386. const (
  27387. // @enum GatewayType
  27388. GatewayTypeIpsec1 = "ipsec.1"
  27389. )
  27390. const (
  27391. // @enum HostTenancy
  27392. HostTenancyDedicated = "dedicated"
  27393. // @enum HostTenancy
  27394. HostTenancyHost = "host"
  27395. )
  27396. const (
  27397. // @enum HypervisorType
  27398. HypervisorTypeOvm = "ovm"
  27399. // @enum HypervisorType
  27400. HypervisorTypeXen = "xen"
  27401. )
  27402. const (
  27403. // @enum ImageAttributeName
  27404. ImageAttributeNameDescription = "description"
  27405. // @enum ImageAttributeName
  27406. ImageAttributeNameKernel = "kernel"
  27407. // @enum ImageAttributeName
  27408. ImageAttributeNameRamdisk = "ramdisk"
  27409. // @enum ImageAttributeName
  27410. ImageAttributeNameLaunchPermission = "launchPermission"
  27411. // @enum ImageAttributeName
  27412. ImageAttributeNameProductCodes = "productCodes"
  27413. // @enum ImageAttributeName
  27414. ImageAttributeNameBlockDeviceMapping = "blockDeviceMapping"
  27415. // @enum ImageAttributeName
  27416. ImageAttributeNameSriovNetSupport = "sriovNetSupport"
  27417. )
  27418. const (
  27419. // @enum ImageState
  27420. ImageStatePending = "pending"
  27421. // @enum ImageState
  27422. ImageStateAvailable = "available"
  27423. // @enum ImageState
  27424. ImageStateInvalid = "invalid"
  27425. // @enum ImageState
  27426. ImageStateDeregistered = "deregistered"
  27427. // @enum ImageState
  27428. ImageStateTransient = "transient"
  27429. // @enum ImageState
  27430. ImageStateFailed = "failed"
  27431. // @enum ImageState
  27432. ImageStateError = "error"
  27433. )
  27434. const (
  27435. // @enum ImageTypeValues
  27436. ImageTypeValuesMachine = "machine"
  27437. // @enum ImageTypeValues
  27438. ImageTypeValuesKernel = "kernel"
  27439. // @enum ImageTypeValues
  27440. ImageTypeValuesRamdisk = "ramdisk"
  27441. )
  27442. const (
  27443. // @enum InstanceAttributeName
  27444. InstanceAttributeNameInstanceType = "instanceType"
  27445. // @enum InstanceAttributeName
  27446. InstanceAttributeNameKernel = "kernel"
  27447. // @enum InstanceAttributeName
  27448. InstanceAttributeNameRamdisk = "ramdisk"
  27449. // @enum InstanceAttributeName
  27450. InstanceAttributeNameUserData = "userData"
  27451. // @enum InstanceAttributeName
  27452. InstanceAttributeNameDisableApiTermination = "disableApiTermination"
  27453. // @enum InstanceAttributeName
  27454. InstanceAttributeNameInstanceInitiatedShutdownBehavior = "instanceInitiatedShutdownBehavior"
  27455. // @enum InstanceAttributeName
  27456. InstanceAttributeNameRootDeviceName = "rootDeviceName"
  27457. // @enum InstanceAttributeName
  27458. InstanceAttributeNameBlockDeviceMapping = "blockDeviceMapping"
  27459. // @enum InstanceAttributeName
  27460. InstanceAttributeNameProductCodes = "productCodes"
  27461. // @enum InstanceAttributeName
  27462. InstanceAttributeNameSourceDestCheck = "sourceDestCheck"
  27463. // @enum InstanceAttributeName
  27464. InstanceAttributeNameGroupSet = "groupSet"
  27465. // @enum InstanceAttributeName
  27466. InstanceAttributeNameEbsOptimized = "ebsOptimized"
  27467. // @enum InstanceAttributeName
  27468. InstanceAttributeNameSriovNetSupport = "sriovNetSupport"
  27469. // @enum InstanceAttributeName
  27470. InstanceAttributeNameEnaSupport = "enaSupport"
  27471. )
  27472. const (
  27473. // @enum InstanceLifecycleType
  27474. InstanceLifecycleTypeSpot = "spot"
  27475. // @enum InstanceLifecycleType
  27476. InstanceLifecycleTypeScheduled = "scheduled"
  27477. )
  27478. const (
  27479. // @enum InstanceStateName
  27480. InstanceStateNamePending = "pending"
  27481. // @enum InstanceStateName
  27482. InstanceStateNameRunning = "running"
  27483. // @enum InstanceStateName
  27484. InstanceStateNameShuttingDown = "shutting-down"
  27485. // @enum InstanceStateName
  27486. InstanceStateNameTerminated = "terminated"
  27487. // @enum InstanceStateName
  27488. InstanceStateNameStopping = "stopping"
  27489. // @enum InstanceStateName
  27490. InstanceStateNameStopped = "stopped"
  27491. )
  27492. const (
  27493. // @enum InstanceType
  27494. InstanceTypeT1Micro = "t1.micro"
  27495. // @enum InstanceType
  27496. InstanceTypeT2Nano = "t2.nano"
  27497. // @enum InstanceType
  27498. InstanceTypeT2Micro = "t2.micro"
  27499. // @enum InstanceType
  27500. InstanceTypeT2Small = "t2.small"
  27501. // @enum InstanceType
  27502. InstanceTypeT2Medium = "t2.medium"
  27503. // @enum InstanceType
  27504. InstanceTypeT2Large = "t2.large"
  27505. // @enum InstanceType
  27506. InstanceTypeM1Small = "m1.small"
  27507. // @enum InstanceType
  27508. InstanceTypeM1Medium = "m1.medium"
  27509. // @enum InstanceType
  27510. InstanceTypeM1Large = "m1.large"
  27511. // @enum InstanceType
  27512. InstanceTypeM1Xlarge = "m1.xlarge"
  27513. // @enum InstanceType
  27514. InstanceTypeM3Medium = "m3.medium"
  27515. // @enum InstanceType
  27516. InstanceTypeM3Large = "m3.large"
  27517. // @enum InstanceType
  27518. InstanceTypeM3Xlarge = "m3.xlarge"
  27519. // @enum InstanceType
  27520. InstanceTypeM32xlarge = "m3.2xlarge"
  27521. // @enum InstanceType
  27522. InstanceTypeM4Large = "m4.large"
  27523. // @enum InstanceType
  27524. InstanceTypeM4Xlarge = "m4.xlarge"
  27525. // @enum InstanceType
  27526. InstanceTypeM42xlarge = "m4.2xlarge"
  27527. // @enum InstanceType
  27528. InstanceTypeM44xlarge = "m4.4xlarge"
  27529. // @enum InstanceType
  27530. InstanceTypeM410xlarge = "m4.10xlarge"
  27531. // @enum InstanceType
  27532. InstanceTypeM2Xlarge = "m2.xlarge"
  27533. // @enum InstanceType
  27534. InstanceTypeM22xlarge = "m2.2xlarge"
  27535. // @enum InstanceType
  27536. InstanceTypeM24xlarge = "m2.4xlarge"
  27537. // @enum InstanceType
  27538. InstanceTypeCr18xlarge = "cr1.8xlarge"
  27539. // @enum InstanceType
  27540. InstanceTypeR3Large = "r3.large"
  27541. // @enum InstanceType
  27542. InstanceTypeR3Xlarge = "r3.xlarge"
  27543. // @enum InstanceType
  27544. InstanceTypeR32xlarge = "r3.2xlarge"
  27545. // @enum InstanceType
  27546. InstanceTypeR34xlarge = "r3.4xlarge"
  27547. // @enum InstanceType
  27548. InstanceTypeR38xlarge = "r3.8xlarge"
  27549. // @enum InstanceType
  27550. InstanceTypeX14xlarge = "x1.4xlarge"
  27551. // @enum InstanceType
  27552. InstanceTypeX18xlarge = "x1.8xlarge"
  27553. // @enum InstanceType
  27554. InstanceTypeX116xlarge = "x1.16xlarge"
  27555. // @enum InstanceType
  27556. InstanceTypeX132xlarge = "x1.32xlarge"
  27557. // @enum InstanceType
  27558. InstanceTypeI2Xlarge = "i2.xlarge"
  27559. // @enum InstanceType
  27560. InstanceTypeI22xlarge = "i2.2xlarge"
  27561. // @enum InstanceType
  27562. InstanceTypeI24xlarge = "i2.4xlarge"
  27563. // @enum InstanceType
  27564. InstanceTypeI28xlarge = "i2.8xlarge"
  27565. // @enum InstanceType
  27566. InstanceTypeHi14xlarge = "hi1.4xlarge"
  27567. // @enum InstanceType
  27568. InstanceTypeHs18xlarge = "hs1.8xlarge"
  27569. // @enum InstanceType
  27570. InstanceTypeC1Medium = "c1.medium"
  27571. // @enum InstanceType
  27572. InstanceTypeC1Xlarge = "c1.xlarge"
  27573. // @enum InstanceType
  27574. InstanceTypeC3Large = "c3.large"
  27575. // @enum InstanceType
  27576. InstanceTypeC3Xlarge = "c3.xlarge"
  27577. // @enum InstanceType
  27578. InstanceTypeC32xlarge = "c3.2xlarge"
  27579. // @enum InstanceType
  27580. InstanceTypeC34xlarge = "c3.4xlarge"
  27581. // @enum InstanceType
  27582. InstanceTypeC38xlarge = "c3.8xlarge"
  27583. // @enum InstanceType
  27584. InstanceTypeC4Large = "c4.large"
  27585. // @enum InstanceType
  27586. InstanceTypeC4Xlarge = "c4.xlarge"
  27587. // @enum InstanceType
  27588. InstanceTypeC42xlarge = "c4.2xlarge"
  27589. // @enum InstanceType
  27590. InstanceTypeC44xlarge = "c4.4xlarge"
  27591. // @enum InstanceType
  27592. InstanceTypeC48xlarge = "c4.8xlarge"
  27593. // @enum InstanceType
  27594. InstanceTypeCc14xlarge = "cc1.4xlarge"
  27595. // @enum InstanceType
  27596. InstanceTypeCc28xlarge = "cc2.8xlarge"
  27597. // @enum InstanceType
  27598. InstanceTypeG22xlarge = "g2.2xlarge"
  27599. // @enum InstanceType
  27600. InstanceTypeG28xlarge = "g2.8xlarge"
  27601. // @enum InstanceType
  27602. InstanceTypeCg14xlarge = "cg1.4xlarge"
  27603. // @enum InstanceType
  27604. InstanceTypeD2Xlarge = "d2.xlarge"
  27605. // @enum InstanceType
  27606. InstanceTypeD22xlarge = "d2.2xlarge"
  27607. // @enum InstanceType
  27608. InstanceTypeD24xlarge = "d2.4xlarge"
  27609. // @enum InstanceType
  27610. InstanceTypeD28xlarge = "d2.8xlarge"
  27611. )
  27612. const (
  27613. // @enum ListingState
  27614. ListingStateAvailable = "available"
  27615. // @enum ListingState
  27616. ListingStateSold = "sold"
  27617. // @enum ListingState
  27618. ListingStateCancelled = "cancelled"
  27619. // @enum ListingState
  27620. ListingStatePending = "pending"
  27621. )
  27622. const (
  27623. // @enum ListingStatus
  27624. ListingStatusActive = "active"
  27625. // @enum ListingStatus
  27626. ListingStatusPending = "pending"
  27627. // @enum ListingStatus
  27628. ListingStatusCancelled = "cancelled"
  27629. // @enum ListingStatus
  27630. ListingStatusClosed = "closed"
  27631. )
  27632. const (
  27633. // @enum MonitoringState
  27634. MonitoringStateDisabled = "disabled"
  27635. // @enum MonitoringState
  27636. MonitoringStateDisabling = "disabling"
  27637. // @enum MonitoringState
  27638. MonitoringStateEnabled = "enabled"
  27639. // @enum MonitoringState
  27640. MonitoringStatePending = "pending"
  27641. )
  27642. const (
  27643. // @enum MoveStatus
  27644. MoveStatusMovingToVpc = "movingToVpc"
  27645. // @enum MoveStatus
  27646. MoveStatusRestoringToClassic = "restoringToClassic"
  27647. )
  27648. const (
  27649. // @enum NatGatewayState
  27650. NatGatewayStatePending = "pending"
  27651. // @enum NatGatewayState
  27652. NatGatewayStateFailed = "failed"
  27653. // @enum NatGatewayState
  27654. NatGatewayStateAvailable = "available"
  27655. // @enum NatGatewayState
  27656. NatGatewayStateDeleting = "deleting"
  27657. // @enum NatGatewayState
  27658. NatGatewayStateDeleted = "deleted"
  27659. )
  27660. const (
  27661. // @enum NetworkInterfaceAttribute
  27662. NetworkInterfaceAttributeDescription = "description"
  27663. // @enum NetworkInterfaceAttribute
  27664. NetworkInterfaceAttributeGroupSet = "groupSet"
  27665. // @enum NetworkInterfaceAttribute
  27666. NetworkInterfaceAttributeSourceDestCheck = "sourceDestCheck"
  27667. // @enum NetworkInterfaceAttribute
  27668. NetworkInterfaceAttributeAttachment = "attachment"
  27669. )
  27670. const (
  27671. // @enum NetworkInterfaceStatus
  27672. NetworkInterfaceStatusAvailable = "available"
  27673. // @enum NetworkInterfaceStatus
  27674. NetworkInterfaceStatusAttaching = "attaching"
  27675. // @enum NetworkInterfaceStatus
  27676. NetworkInterfaceStatusInUse = "in-use"
  27677. // @enum NetworkInterfaceStatus
  27678. NetworkInterfaceStatusDetaching = "detaching"
  27679. )
  27680. const (
  27681. // @enum NetworkInterfaceType
  27682. NetworkInterfaceTypeInterface = "interface"
  27683. // @enum NetworkInterfaceType
  27684. NetworkInterfaceTypeNatGateway = "natGateway"
  27685. )
  27686. const (
  27687. // @enum OfferingTypeValues
  27688. OfferingTypeValuesHeavyUtilization = "Heavy Utilization"
  27689. // @enum OfferingTypeValues
  27690. OfferingTypeValuesMediumUtilization = "Medium Utilization"
  27691. // @enum OfferingTypeValues
  27692. OfferingTypeValuesLightUtilization = "Light Utilization"
  27693. // @enum OfferingTypeValues
  27694. OfferingTypeValuesNoUpfront = "No Upfront"
  27695. // @enum OfferingTypeValues
  27696. OfferingTypeValuesPartialUpfront = "Partial Upfront"
  27697. // @enum OfferingTypeValues
  27698. OfferingTypeValuesAllUpfront = "All Upfront"
  27699. )
  27700. const (
  27701. // @enum OperationType
  27702. OperationTypeAdd = "add"
  27703. // @enum OperationType
  27704. OperationTypeRemove = "remove"
  27705. )
  27706. const (
  27707. // @enum PermissionGroup
  27708. PermissionGroupAll = "all"
  27709. )
  27710. const (
  27711. // @enum PlacementGroupState
  27712. PlacementGroupStatePending = "pending"
  27713. // @enum PlacementGroupState
  27714. PlacementGroupStateAvailable = "available"
  27715. // @enum PlacementGroupState
  27716. PlacementGroupStateDeleting = "deleting"
  27717. // @enum PlacementGroupState
  27718. PlacementGroupStateDeleted = "deleted"
  27719. )
  27720. const (
  27721. // @enum PlacementStrategy
  27722. PlacementStrategyCluster = "cluster"
  27723. )
  27724. const (
  27725. // @enum PlatformValues
  27726. PlatformValuesWindows = "Windows"
  27727. )
  27728. const (
  27729. // @enum ProductCodeValues
  27730. ProductCodeValuesDevpay = "devpay"
  27731. // @enum ProductCodeValues
  27732. ProductCodeValuesMarketplace = "marketplace"
  27733. )
  27734. const (
  27735. // @enum RIProductDescription
  27736. RIProductDescriptionLinuxUnix = "Linux/UNIX"
  27737. // @enum RIProductDescription
  27738. RIProductDescriptionLinuxUnixamazonVpc = "Linux/UNIX (Amazon VPC)"
  27739. // @enum RIProductDescription
  27740. RIProductDescriptionWindows = "Windows"
  27741. // @enum RIProductDescription
  27742. RIProductDescriptionWindowsAmazonVpc = "Windows (Amazon VPC)"
  27743. )
  27744. const (
  27745. // @enum RecurringChargeFrequency
  27746. RecurringChargeFrequencyHourly = "Hourly"
  27747. )
  27748. const (
  27749. // @enum ReportInstanceReasonCodes
  27750. ReportInstanceReasonCodesInstanceStuckInState = "instance-stuck-in-state"
  27751. // @enum ReportInstanceReasonCodes
  27752. ReportInstanceReasonCodesUnresponsive = "unresponsive"
  27753. // @enum ReportInstanceReasonCodes
  27754. ReportInstanceReasonCodesNotAcceptingCredentials = "not-accepting-credentials"
  27755. // @enum ReportInstanceReasonCodes
  27756. ReportInstanceReasonCodesPasswordNotAvailable = "password-not-available"
  27757. // @enum ReportInstanceReasonCodes
  27758. ReportInstanceReasonCodesPerformanceNetwork = "performance-network"
  27759. // @enum ReportInstanceReasonCodes
  27760. ReportInstanceReasonCodesPerformanceInstanceStore = "performance-instance-store"
  27761. // @enum ReportInstanceReasonCodes
  27762. ReportInstanceReasonCodesPerformanceEbsVolume = "performance-ebs-volume"
  27763. // @enum ReportInstanceReasonCodes
  27764. ReportInstanceReasonCodesPerformanceOther = "performance-other"
  27765. // @enum ReportInstanceReasonCodes
  27766. ReportInstanceReasonCodesOther = "other"
  27767. )
  27768. const (
  27769. // @enum ReportStatusType
  27770. ReportStatusTypeOk = "ok"
  27771. // @enum ReportStatusType
  27772. ReportStatusTypeImpaired = "impaired"
  27773. )
  27774. const (
  27775. // @enum ReservedInstanceState
  27776. ReservedInstanceStatePaymentPending = "payment-pending"
  27777. // @enum ReservedInstanceState
  27778. ReservedInstanceStateActive = "active"
  27779. // @enum ReservedInstanceState
  27780. ReservedInstanceStatePaymentFailed = "payment-failed"
  27781. // @enum ReservedInstanceState
  27782. ReservedInstanceStateRetired = "retired"
  27783. )
  27784. const (
  27785. // @enum ResetImageAttributeName
  27786. ResetImageAttributeNameLaunchPermission = "launchPermission"
  27787. )
  27788. const (
  27789. // @enum ResourceType
  27790. ResourceTypeCustomerGateway = "customer-gateway"
  27791. // @enum ResourceType
  27792. ResourceTypeDhcpOptions = "dhcp-options"
  27793. // @enum ResourceType
  27794. ResourceTypeImage = "image"
  27795. // @enum ResourceType
  27796. ResourceTypeInstance = "instance"
  27797. // @enum ResourceType
  27798. ResourceTypeInternetGateway = "internet-gateway"
  27799. // @enum ResourceType
  27800. ResourceTypeNetworkAcl = "network-acl"
  27801. // @enum ResourceType
  27802. ResourceTypeNetworkInterface = "network-interface"
  27803. // @enum ResourceType
  27804. ResourceTypeReservedInstances = "reserved-instances"
  27805. // @enum ResourceType
  27806. ResourceTypeRouteTable = "route-table"
  27807. // @enum ResourceType
  27808. ResourceTypeSnapshot = "snapshot"
  27809. // @enum ResourceType
  27810. ResourceTypeSpotInstancesRequest = "spot-instances-request"
  27811. // @enum ResourceType
  27812. ResourceTypeSubnet = "subnet"
  27813. // @enum ResourceType
  27814. ResourceTypeSecurityGroup = "security-group"
  27815. // @enum ResourceType
  27816. ResourceTypeVolume = "volume"
  27817. // @enum ResourceType
  27818. ResourceTypeVpc = "vpc"
  27819. // @enum ResourceType
  27820. ResourceTypeVpnConnection = "vpn-connection"
  27821. // @enum ResourceType
  27822. ResourceTypeVpnGateway = "vpn-gateway"
  27823. )
  27824. const (
  27825. // @enum RouteOrigin
  27826. RouteOriginCreateRouteTable = "CreateRouteTable"
  27827. // @enum RouteOrigin
  27828. RouteOriginCreateRoute = "CreateRoute"
  27829. // @enum RouteOrigin
  27830. RouteOriginEnableVgwRoutePropagation = "EnableVgwRoutePropagation"
  27831. )
  27832. const (
  27833. // @enum RouteState
  27834. RouteStateActive = "active"
  27835. // @enum RouteState
  27836. RouteStateBlackhole = "blackhole"
  27837. )
  27838. const (
  27839. // @enum RuleAction
  27840. RuleActionAllow = "allow"
  27841. // @enum RuleAction
  27842. RuleActionDeny = "deny"
  27843. )
  27844. const (
  27845. // @enum ShutdownBehavior
  27846. ShutdownBehaviorStop = "stop"
  27847. // @enum ShutdownBehavior
  27848. ShutdownBehaviorTerminate = "terminate"
  27849. )
  27850. const (
  27851. // @enum SnapshotAttributeName
  27852. SnapshotAttributeNameProductCodes = "productCodes"
  27853. // @enum SnapshotAttributeName
  27854. SnapshotAttributeNameCreateVolumePermission = "createVolumePermission"
  27855. )
  27856. const (
  27857. // @enum SnapshotState
  27858. SnapshotStatePending = "pending"
  27859. // @enum SnapshotState
  27860. SnapshotStateCompleted = "completed"
  27861. // @enum SnapshotState
  27862. SnapshotStateError = "error"
  27863. )
  27864. const (
  27865. // @enum SpotInstanceState
  27866. SpotInstanceStateOpen = "open"
  27867. // @enum SpotInstanceState
  27868. SpotInstanceStateActive = "active"
  27869. // @enum SpotInstanceState
  27870. SpotInstanceStateClosed = "closed"
  27871. // @enum SpotInstanceState
  27872. SpotInstanceStateCancelled = "cancelled"
  27873. // @enum SpotInstanceState
  27874. SpotInstanceStateFailed = "failed"
  27875. )
  27876. const (
  27877. // @enum SpotInstanceType
  27878. SpotInstanceTypeOneTime = "one-time"
  27879. // @enum SpotInstanceType
  27880. SpotInstanceTypePersistent = "persistent"
  27881. )
  27882. const (
  27883. // @enum State
  27884. StatePending = "Pending"
  27885. // @enum State
  27886. StateAvailable = "Available"
  27887. // @enum State
  27888. StateDeleting = "Deleting"
  27889. // @enum State
  27890. StateDeleted = "Deleted"
  27891. )
  27892. const (
  27893. // @enum Status
  27894. StatusMoveInProgress = "MoveInProgress"
  27895. // @enum Status
  27896. StatusInVpc = "InVpc"
  27897. // @enum Status
  27898. StatusInClassic = "InClassic"
  27899. )
  27900. const (
  27901. // @enum StatusName
  27902. StatusNameReachability = "reachability"
  27903. )
  27904. const (
  27905. // @enum StatusType
  27906. StatusTypePassed = "passed"
  27907. // @enum StatusType
  27908. StatusTypeFailed = "failed"
  27909. // @enum StatusType
  27910. StatusTypeInsufficientData = "insufficient-data"
  27911. // @enum StatusType
  27912. StatusTypeInitializing = "initializing"
  27913. )
  27914. const (
  27915. // @enum SubnetState
  27916. SubnetStatePending = "pending"
  27917. // @enum SubnetState
  27918. SubnetStateAvailable = "available"
  27919. )
  27920. const (
  27921. // @enum SummaryStatus
  27922. SummaryStatusOk = "ok"
  27923. // @enum SummaryStatus
  27924. SummaryStatusImpaired = "impaired"
  27925. // @enum SummaryStatus
  27926. SummaryStatusInsufficientData = "insufficient-data"
  27927. // @enum SummaryStatus
  27928. SummaryStatusNotApplicable = "not-applicable"
  27929. // @enum SummaryStatus
  27930. SummaryStatusInitializing = "initializing"
  27931. )
  27932. const (
  27933. // @enum TelemetryStatus
  27934. TelemetryStatusUp = "UP"
  27935. // @enum TelemetryStatus
  27936. TelemetryStatusDown = "DOWN"
  27937. )
  27938. const (
  27939. // @enum Tenancy
  27940. TenancyDefault = "default"
  27941. // @enum Tenancy
  27942. TenancyDedicated = "dedicated"
  27943. // @enum Tenancy
  27944. TenancyHost = "host"
  27945. )
  27946. const (
  27947. // @enum TrafficType
  27948. TrafficTypeAccept = "ACCEPT"
  27949. // @enum TrafficType
  27950. TrafficTypeReject = "REJECT"
  27951. // @enum TrafficType
  27952. TrafficTypeAll = "ALL"
  27953. )
  27954. const (
  27955. // @enum VirtualizationType
  27956. VirtualizationTypeHvm = "hvm"
  27957. // @enum VirtualizationType
  27958. VirtualizationTypeParavirtual = "paravirtual"
  27959. )
  27960. const (
  27961. // @enum VolumeAttachmentState
  27962. VolumeAttachmentStateAttaching = "attaching"
  27963. // @enum VolumeAttachmentState
  27964. VolumeAttachmentStateAttached = "attached"
  27965. // @enum VolumeAttachmentState
  27966. VolumeAttachmentStateDetaching = "detaching"
  27967. // @enum VolumeAttachmentState
  27968. VolumeAttachmentStateDetached = "detached"
  27969. )
  27970. const (
  27971. // @enum VolumeAttributeName
  27972. VolumeAttributeNameAutoEnableIo = "autoEnableIO"
  27973. // @enum VolumeAttributeName
  27974. VolumeAttributeNameProductCodes = "productCodes"
  27975. )
  27976. const (
  27977. // @enum VolumeState
  27978. VolumeStateCreating = "creating"
  27979. // @enum VolumeState
  27980. VolumeStateAvailable = "available"
  27981. // @enum VolumeState
  27982. VolumeStateInUse = "in-use"
  27983. // @enum VolumeState
  27984. VolumeStateDeleting = "deleting"
  27985. // @enum VolumeState
  27986. VolumeStateDeleted = "deleted"
  27987. // @enum VolumeState
  27988. VolumeStateError = "error"
  27989. )
  27990. const (
  27991. // @enum VolumeStatusInfoStatus
  27992. VolumeStatusInfoStatusOk = "ok"
  27993. // @enum VolumeStatusInfoStatus
  27994. VolumeStatusInfoStatusImpaired = "impaired"
  27995. // @enum VolumeStatusInfoStatus
  27996. VolumeStatusInfoStatusInsufficientData = "insufficient-data"
  27997. )
  27998. const (
  27999. // @enum VolumeStatusName
  28000. VolumeStatusNameIoEnabled = "io-enabled"
  28001. // @enum VolumeStatusName
  28002. VolumeStatusNameIoPerformance = "io-performance"
  28003. )
  28004. const (
  28005. // @enum VolumeType
  28006. VolumeTypeStandard = "standard"
  28007. // @enum VolumeType
  28008. VolumeTypeIo1 = "io1"
  28009. // @enum VolumeType
  28010. VolumeTypeGp2 = "gp2"
  28011. // @enum VolumeType
  28012. VolumeTypeSc1 = "sc1"
  28013. // @enum VolumeType
  28014. VolumeTypeSt1 = "st1"
  28015. )
  28016. const (
  28017. // @enum VpcAttributeName
  28018. VpcAttributeNameEnableDnsSupport = "enableDnsSupport"
  28019. // @enum VpcAttributeName
  28020. VpcAttributeNameEnableDnsHostnames = "enableDnsHostnames"
  28021. )
  28022. const (
  28023. // @enum VpcPeeringConnectionStateReasonCode
  28024. VpcPeeringConnectionStateReasonCodeInitiatingRequest = "initiating-request"
  28025. // @enum VpcPeeringConnectionStateReasonCode
  28026. VpcPeeringConnectionStateReasonCodePendingAcceptance = "pending-acceptance"
  28027. // @enum VpcPeeringConnectionStateReasonCode
  28028. VpcPeeringConnectionStateReasonCodeActive = "active"
  28029. // @enum VpcPeeringConnectionStateReasonCode
  28030. VpcPeeringConnectionStateReasonCodeDeleted = "deleted"
  28031. // @enum VpcPeeringConnectionStateReasonCode
  28032. VpcPeeringConnectionStateReasonCodeRejected = "rejected"
  28033. // @enum VpcPeeringConnectionStateReasonCode
  28034. VpcPeeringConnectionStateReasonCodeFailed = "failed"
  28035. // @enum VpcPeeringConnectionStateReasonCode
  28036. VpcPeeringConnectionStateReasonCodeExpired = "expired"
  28037. // @enum VpcPeeringConnectionStateReasonCode
  28038. VpcPeeringConnectionStateReasonCodeProvisioning = "provisioning"
  28039. // @enum VpcPeeringConnectionStateReasonCode
  28040. VpcPeeringConnectionStateReasonCodeDeleting = "deleting"
  28041. )
  28042. const (
  28043. // @enum VpcState
  28044. VpcStatePending = "pending"
  28045. // @enum VpcState
  28046. VpcStateAvailable = "available"
  28047. )
  28048. const (
  28049. // @enum VpnState
  28050. VpnStatePending = "pending"
  28051. // @enum VpnState
  28052. VpnStateAvailable = "available"
  28053. // @enum VpnState
  28054. VpnStateDeleting = "deleting"
  28055. // @enum VpnState
  28056. VpnStateDeleted = "deleted"
  28057. )
  28058. const (
  28059. // @enum VpnStaticRouteSource
  28060. VpnStaticRouteSourceStatic = "Static"
  28061. )